CN102790718A - Network communication method and device - Google Patents

Network communication method and device Download PDF

Info

Publication number
CN102790718A
CN102790718A CN2012102588625A CN201210258862A CN102790718A CN 102790718 A CN102790718 A CN 102790718A CN 2012102588625 A CN2012102588625 A CN 2012102588625A CN 201210258862 A CN201210258862 A CN 201210258862A CN 102790718 A CN102790718 A CN 102790718A
Authority
CN
China
Prior art keywords
communication
network
network card
card equipment
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102588625A
Other languages
Chinese (zh)
Other versions
CN102790718B (en
Inventor
侯磊
邓召基
陈勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201210258862.5A priority Critical patent/CN102790718B/en
Publication of CN102790718A publication Critical patent/CN102790718A/en
Application granted granted Critical
Publication of CN102790718B publication Critical patent/CN102790718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a network communication method and device. The network communication method comprises the following steps: respectively mapping a plurality of communication modules in communication equipment to a plurality of pieces of corresponding network card equipment , wherein the communication modules are respectively in communication with a plurality of corresponding communication networks through using different communication protocols; counting the data traffic of each piece of network card equipment in a set period; and selecting the communication network from the different communication networks so as to carry out network communication according to a set communication network selection rule and based on the data traffic of each of the network card equipment in the set period. Due to the adoption of the invention, an optimal communication manner can be automatically selected under different scenes.

Description

Network communication method and device
Technical field
The application relates to communication technical field, particularly relates to a kind of network communication method and device.
Background technology
Network service mainly is divided into wire communication and radio communication, and wire communication mainly utilizes netting twine, telephone wire to communicate; Radio communication mainly comprises modes such as LTE, TD, GSM, CDMA, Wifi, bluetooth and ZigBee.
For network communication services; Cable communicating technology is very ripe in very long a period of time; Utilize the mode of telephone wire online to be replaced, but ever-increasing bandwidth also has bottleneck, even aspect transmission speed, lag behind flourish wireless communication technology by the broadband.And at wireless communication field, the 3G and the 4G communication technology reach its maturity, China Mobile, China Telecom, CHINAUNICOM's three tame operator dog-eat-dogs.In addition, covering among a small circle in the radio communication, technology such as bluetooth, wifi, ZigBee also have been widely used in the Internet of Things sector application.Communication emerges in an endless stream, and technology innovation is maked rapid progress, communication quality even be higher than wire communication.
In the above-mentioned diverse network communication; Though the theoretical velocity of various communication modes is transparent relatively; But receive the influence of factors such as field source distance, transmission attenuation degree, noise interference,, can't confirm that the webserver quality of which kind of standard is best in a certain moment of areal.And present test instrumentation or equipment only are to test to a certain network formats, towards a tame Internet Service Provider.Can not from diverse network communication, select to meet the best mode of application scenarios, more can not cover communication mode among a small circle and compare, wherein good of examination with wire transmission network and wifi etc.Particularly, if when being used for project such as colliery, oil field, transportation, exploration, military affairs, in case leave the local or signal strength signal intensity of this standard network coverage very weak the time, this measuring instrument has just lost effect.
It is thus clear that; Various wired, communications cut both ways; How under different scenes, select preferable communication mode, especially in the colliery, oil field, transportation, exploration, military affairs, and in the important website safeguards system in city center; How to confirm effectively that any communication mode is optimal selection, becomes problem demanding prompt solution.
Summary of the invention
The application provides a kind of network communication method and device; Can't under different scenes, select preferable communication mode to solve prior art; Especially in the colliery, oil field, transportation, exploration, military affairs; And in the important website safeguards system in city center, can't confirm that any communication mode is the problem of optimal selection.
In order to address the above problem; The application discloses a kind of network communication method; Comprise: a plurality of communication modules in the communication equipment are mapped as corresponding a plurality of network card equipment respectively; Wherein, said a plurality of communication module uses different communication protocol to communicate with corresponding a plurality of different communication networks respectively; Add up in said a plurality of network card equipment each network card equipment in the data traffic of setting-up time section; According to the data traffic of said each network card equipment, according to the communication network selective rule of setting, from said a plurality of different communication networks, select communication network, and use the communication network of selecting to carry out network service in said setting-up time section.
Preferably, each network card equipment comprises in the step of the data traffic of setting-up time section in the said a plurality of network card equipments of said statistics: use in the said a plurality of network card equipments of many network interface cards selectivity load statistics each network card equipment in the data traffic of said setting-up time section.
Preferably, each network card equipment comprises in the step of the data traffic of said setting-up time section in the said a plurality of network card equipments of said many network interface cards of use selectivity load statistics: for said each network card equipment is set up a routing table; In the corresponding routing table of said each network card equipment, add one or more gateway IP; For each the said gateway IP in the routing table of said each network card equipment sets up routing rule; Use socket socket to bind gateway IP, the said gateway IP that statistics is bound is in the data traffic of said setting-up time section.
Preferably, said communication network selective rule comprise following one of at least: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed, speed.
Preferably, each said communication module comprises control interface, and said control interface is used to control the power-on and power-off of this communication module.
Preferably, the control interface of each said communication module connects through complex programmable logic device (CPLD).
Preferably, said communication equipment uses the usb protocol of (SuSE) Linux OS, controls said a plurality of communication module and uses different communication protocol to communicate with corresponding a plurality of different communication networks respectively.
In order to address the above problem; Disclosed herein as well is a kind of network communication device; Comprise: mapping block; Be used for a plurality of communication modules of communication equipment are mapped as corresponding a plurality of network card equipment respectively, wherein, said a plurality of communication modules use different communication protocol to communicate with corresponding a plurality of different communication networks respectively; Statistical module is used for adding up the data traffic of said each network card equipment of a plurality of network card equipment in the setting-up time section; Communication module; Be used for according to the data traffic of said each network card equipment in said setting-up time section; According to the communication network selective rule of setting, from said a plurality of different communication networks, select communication network, and use the communication network of selecting to carry out network service.
Preferably, said statistical module is used for using the data traffic of said each network card equipment of a plurality of network card equipments of many network interface cards selectivity load statistics in said setting-up time section.
Preferably, said communication network selective rule comprise following one of at least: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed, speed.
Preferably, each said communication module comprises control interface, and said control interface is used to control the power-on and power-off of this communication module.
Compared with prior art, the application has the following advantages:
In the application's the network communications scheme; Can a plurality of communication modules be arranged load in the communication equipment; As; LTE, TD, CDMA, Wifi, ZigBee, bluetooth, PSTN, Ethernet card even some proprietary protocol or military protocol module adopt the method for wired, wireless various network communications concurrent testing, respectively a plurality of communication modules are mapped as network card equipment; And then simultaneously network card equipment is done the data traffic business statistics, monitor each network card equipment throughput in real time, to reach the purpose of testing service quality; Then, select communication network to carry out network service according to the communication network selective rule of setting.Through the application, can test, contrast the quality of communication service, have more comprehensively analysis ability.The communication mode of reference is contained wired, wireless multiple COS; And, can on the test data basis, further analyze, utilize a series of selective rules automatically to screen out optimum communication mode, and without the manual switchover standard.The application's scheme can be from angle of practical application; Confirm in a certain place, at a time which kind of communication mode is best; Thereby efficiently solve prior art and can't under different scenes, select preferable communication mode; Especially in the colliery, oil field, transportation, exploration, military affairs, and in the important website safeguards system in city center, can't confirm that any communication mode is the problem of optimal selection.The application's scheme can be widely used in the selection of communication modes in the important website guarantee in colliery, oil field, transportation, exploration, military affairs and city center, also can be used for the test comparison of various communication modes user experiences.
Description of drawings
Fig. 1 is the flow chart of steps according to a kind of network communication method of the application embodiment one;
Fig. 2 is the flow chart of steps according to a kind of network communication method of the application embodiment two;
Fig. 3 is the flow chart of steps according to a kind of network communication method of the application embodiment three;
Fig. 4 be embodiment illustrated in fig. 3 in the hardware controls sketch map of each communication module;
Fig. 5 is the sketch map of USB driving framework under the (SuSE) Linux OS in embodiment illustrated in fig. 3;
Fig. 6 is the flow chart of a kind of many network interface cards selectivity load control in embodiment illustrated in fig. 3;
Fig. 7 is the flow chart of a kind of optimal communication network selecting in embodiment illustrated in fig. 3;
Fig. 8 is the structured flowchart according to a kind of network communication device of the application embodiment four.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
Embodiment one
With reference to Fig. 1, show flow chart of steps according to a kind of network communication method of the application embodiment one.
The network communication method of present embodiment may further comprise the steps:
Step S102: a plurality of communication modules in the communication equipment are mapped as corresponding a plurality of network card equipment respectively.
Wherein, a plurality of communication modules use different communication protocol to communicate with corresponding a plurality of different communication networks respectively.Communication module can suitably be provided with according to actual conditions by those skilled in the art, as, can be LTE, TD, CDMA, Wifi, ZigBee, bluetooth, PSTN, Ethernet card even some proprietary protocol or military protocol module etc.
Step S104: add up in a plurality of network card equipments each network card equipment in the data traffic of setting-up time section.
Time period can suitably be provided with according to actual conditions by those skilled in the art, and the application does not limit this.In some cases, the time period also can be some time points.
Step S106: according to the data traffic of each network card equipment,, from a plurality of different communication networks, select communication network, and use the communication network of selecting to carry out network service according to the communication network selective rule of setting in the setting-up time section.
In the network communications scheme of present embodiment; Can a plurality of communication modules be arranged load in the communication equipment; As; LTE, TD, CDMA, Wifi, ZigBee, bluetooth, PSTN, Ethernet card even some proprietary protocol or military protocol module adopt the method for wired, wireless various network communications concurrent testing, respectively a plurality of communication modules are mapped as network card equipment; And then simultaneously network card equipment is done the data traffic business statistics, monitor each network card equipment throughput in real time, to reach the purpose of testing service quality; Then, select communication network to carry out network service according to the communication network selective rule of setting.Through present embodiment, can test, contrast the quality of communication service, have more comprehensively analysis ability.The communication mode of reference is contained wired, wireless multiple COS; And, can on the test data basis, further analyze, utilize a series of selective rules automatically to screen out optimum communication mode, and without the manual switchover standard.The application's scheme can be from angle of practical application; Confirm in a certain place, at a time which kind of communication mode is best; Thereby efficiently solve prior art and can't under different scenes, select preferable communication mode; Especially in the colliery, oil field, transportation, exploration, military affairs, and in the important website safeguards system in city center, can't confirm that any communication mode is the problem of optimal selection.The scheme of present embodiment can be widely used in the selection of communication modes in the important website guarantee in colliery, oil field, transportation, exploration, military affairs and city center, also can be used for the test comparison of various communication modes user experiences.
Embodiment two
With reference to Fig. 2, show flow chart of steps according to a kind of network communication method of the application embodiment two.
The network communication method of present embodiment may further comprise the steps:
Step S202: in a communication equipment, a plurality of communication modules are set.
In the present embodiment, LTE module, TD module, CDMA module, Wifi module, ZigBee module, bluetooth module, PSTN module and Ethernet card module are set.Each communication module uses corresponding communication agreement and corresponding communication network to communicate.
Step S204: a plurality of communication modules are mapped as a plurality of network card equipments.
Under different scenes, can select suitable mode that communication module is mapped as network card equipment according to actual conditions by those skilled in the art.
Step S206: add up the data traffic of each network card equipment in the setting-up time section.
The quantitative statistics of network card equipment data flow can be realized through the size of the transmission of statistics current IP, receiving data stream amount, preferably, can also realize through many network interface cards selectivity load technology.Use the data traffic of many network interface cards selectivity load technology statistics network card equipment, the flow information statistics is accurate, and reliability is high.
Time period suitably is provided with according to actual conditions by those skilled in the art, and the time of time period is long more, and the reliability of the optimum network of selecting is high more.
Step S208: according to the data traffic of each network card equipment,, from a plurality of different communication networks, select communication network, and use the communication network of selecting to carry out network service according to the communication network selective rule of setting in the setting-up time section.
The communication network selective rule of setting can comprise following one of at least: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed, speed.Wherein, the fastest rule of peak velocity is used for confirming that according to the data traffic of network card equipment the fastest communication network of peak velocity, the highest rule of minimum speed are used for confirming that according to the data traffic of network card equipment the highest communication network of minimum speed, the highest rule of average speed are used for confirming that according to the data traffic of network card equipment the stability regular of the highest communication network of average speed, speed is used for confirming the communication network that speed is the most stable according to the data traffic of network card equipment.For example; Use the fastest rule of peak velocity; 11:00AM-11:05AM is in the time period for statistics; The data traffic of LTE module, TD module, CDMA module, Wifi module, ZigBee module, bluetooth module, PSTN module and Ethernet card module confirms that the peak velocity that uses LTE module and LTE network to communicate in this section period is the fastest, then can select the LTE network to carry out network service.
In the present embodiment, set the communication network selective rule and comprise: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed and speed.When reality is used, can select a use, also can multinomial combination use.Use a series of communication network selective rules to select communication network; Has more comprehensively analysis ability; Can automatically screen out optimum communication mode and communication network, without the manual switchover standard, particularly wire communication and radio communication relatively on have remarkable effect.
In addition, in actual the use, those skilled in the art also can be provided with other appropriate communication network selecting rule.
Pass through present embodiment; Adopt the method for wired, wireless various network communications concurrent testing; Many moneys of load communication module in same communication equipment; Comprise LTE module, TD module, CDMA module, Wifi module, ZigBee module, bluetooth module, PSTN module, Ethernet card module, respectively it is mapped as network card equipment; Utilize many network interface cards selectivity load technology, simultaneously it is done the data traffic business, monitor each device throughput in real time, to reach the purpose of testing service quality; Utilize multiple communication network selective rule to select the optimal communication network.Pass through present embodiment; Can be from angle of practical application; Confirm in a certain place, at a time which kind of communication mode transmision peak speed is the highest, average speed is the highest, minimum speed is the highest, it is the most stable to use; The network communications scheme of present embodiment can be used for the selection of communication modes in the important website guarantee in colliery, oil field, transportation, exploration, military affairs and city center, also can be used for the test comparison of various communication modes user experiences.
Embodiment three
With reference to Fig. 3, show flow chart of steps according to a kind of network communication method of the application embodiment three.
Present embodiment is an example with the communication equipment that disposes (SuSE) Linux OS, and the load of many network interface cards selectivity and three aspects of Intelligence Selection optimum network describe the application's network communication method under, the Linux integrated from the multi-modulation scheme communication module.
In the present embodiment; Communication module by an integrated various different systems of communication equipment; Comprise LTE module, TD module, CDMA module, Wifi module, ZigBee module, bluetooth module, PSTN module, Ethernet card module even some proprietary protocol module or military protocol module; Be they configurations communication link separately; Be independent of each other in the hardware and software aspect, in (SuSE) Linux OS, realize concurrent testing, according to the network communication mode of test result according to certain communication network selective rule Intelligence Selection optimum.
The network communication method of present embodiment may further comprise the steps:
Step S302: integrated multi-modulation scheme communication module in communication equipment, and be mapped as network card equipment.
The module interface of the communication module of present most of standard comprises various ways such as USB, Mini-USB, Mini-PCIE, and the hardware designs of present embodiment is carried out based on distinct interface, and the module interface of each communication module comprises data-interface and control interface.
At hardware aspect, data-interface mainly utilizes the built-in interface of each communication module, and unimpeded for data traffic guarantees transmission speed, and this interface is directly communicated by letter with industrial computer equipment (being communication equipment) system bus, shields hub at different levels.Preferably, the cpu performance of industrial computer equipment is more than double-core 2.3G dominant frequency, and more than the internal memory 2G, performance is affected when preventing each module concurrent working.
Control interface mainly refers to the power supply control to each communication module, is used to control the power-on and power-off of this communication module.In traditional industrial computer device design, only kept the external interface of single communication module, can not the docking port channel, power supply controls separately, makes the cold start-up of communication module become infeasible.Though the built-in control command of each communication module can satisfy the various operations of communication service, prevent to have fault in the test, through satisfying the needs that communication module is restarted separately to the control of communication module power supply.The power supply control of each communication module can adopt programmable logic controller (PLC) to realize, in the supply line of communication module, adds control interface, to user control program api interface is provided, but the real-time control unit power supply state.The hardware controls of each communication module is as shown in Figure 4.Utilize this mode to control each communication module, conveniently regulating and controlling.When appearance is unusual, need not manual intervention, software can realize automatically that communication module is electric down separately, and other modules are unaffected.Among Fig. 4, preferably, used CPLD (CPLD) to connect the control interface of each communication module.This is that supported crystal oscillator frequency is also higher, can accomplish more multitask at short notice, and price is lower because CPLD has a large amount of IO interfaces, therefore uses CPLD as control device, and cost performance is higher.Certainly, be not limited thereto, also can use single-chip microcomputer or FPGA to connect the control interface of each communication module.
Aspect software, present embodiment is based on (SuSE) Linux OS, and communication equipment uses the usb protocol of (SuSE) Linux OS, controls a plurality of communication modules and uses different communication protocol to communicate with corresponding a plurality of different communication networks respectively.
Though the interface that the communication module of big multi-vendor generation is used is different, all is to utilize usb protocol to communicate by letter with the upper strata control system under (SuSE) Linux OS.Linux USB driving framework is as shown in Figure 5, and the driving of each communication module mainly utilizes usb-storage driver module, option serial port drive module and driver network interface card driver module to realize.Wherein, Driver network interface card driver module belongs to the proprietary module of each communication module, is used for the mapping network interface of adaptive communication module, and this driver module also is not incorporated in the linux kernel version at present; Therefore; Need in kernel, add the exclusive dirver module of each communication module, recompilate kernel, realize control communication module.And usb-storage driver module and option serial port drive module then are driver modules built-in in the linux kernel version.This method of under Linux, utilizing usb protocol control communication module has good autgmentability and ease for use.When needs increase other communication modules newly, increase the relevant interface function and get final product.Through above-mentioned driver module, communication module is mapped as network card equipment.
The data traffic of each network card equipment setting-up time section of many network interface cards selectivity load statistics under the step S304:Linux.
In the concurrent testing, data flux statistics is crucial, adopts the mode of statistics network interface card flow in the present embodiment.After communication module drives the carry success, can in operating system, shine upon the network card equipment that makes new advances, this equipment is used for network communication.Each communication module all can shine upon a network interface card in the operating system aspect.Therefore, when parallel the test, controlling the data flows flows into from the network card equipment of appointment and/or flows out very crucial.
When many network interface cards selectivity load technology is applicable to equipment such as computer carry polylith network interface card under the Linux, selects a certain network interface card to carry out network and connect the impregnable application scenarios of other network interface card.But the communication module of carry comprises the network interface card mapping of wired network adapter, wireless network card and communication module.Every network interface card has self IP, can distinguish communication.
The concrete realization of this step is as shown in Figure 6, comprising:
Step S3042: for each network card equipment is set up a routing table.
In operating system, set up routing table, routing table of every network card equipment.
With ubuntu operating system is example, in/etc/iproute2/rt_tables file, and middle interpolation " numbering "+" table name ".
Step S3044: in the corresponding routing table of each network card equipment, add one or more gateway IP.
In routing table, add routing rule, every routing table is set up a rule at least, is equivalent to add at least one gateway IP for every routing table.
In the ubuntu operating system, utility command: ip ro add default via [local IP] table [table name].
Step S3046: for each the gateway IP in the routing table of each network card equipment sets up routing rule.
In operating system, set up routing rule, each IP sets up a rule in all network interface cards, the requirement that the data traffic business of expression a certain IP from this locality is all deferred to the IP routing rule of setting the routing table.
Step S3048: use socket (socket) to bind gateway IP, the gateway IP that statistics is bound is in the data traffic of setting-up time section.
Use socket to bind local IP when realizing the data service test, each application all needs to bind, and the gateway IP that statistics is bound is in the data traffic of setting-up time section.
Use the bind function to bind the IP of local socket in the C Plus Plus.
Through aforesaid operations, realized that each communication module uses network system IP address allocated separately, in (SuSE) Linux OS, utilize different routing tables, force data service to communicate from different gateway address.And, can prevent the internal loopback of many network card datas.Otherwise in a certain communication module communication quality of test, packet possibly pass through by the network interface card from another communication module in operating system inside.
Step S306: according to the data traffic that counts, select the optimal communication network, and use the optimal communication network of selecting to carry out network service according to the communication network selective rule of setting.
This step can analyze the optimal network path according to the communication network selective rule in the multipath concurrent testing.
The communication network selective rule can be formulated according to the different application scene, and in the present embodiment, the communication network selective rule comprises: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed and speed.Can select the fastest network communication mode of peak velocity through the fastest rule of peak velocity; Can select the highest network communication mode of minimum speed through the highest rule of minimum speed; Can select the highest network communication mode of average speed through the highest rule of average speed; Can select the stabilizing network communication modes of speed through the stability regular of speed.In practical application, above-mentioned rule can select one or combination use.
When selecting the optimal communication network, need communication network selective rule and testing time section (setting-up time section).The communication network selective rule is according to the needs of actual scene, and the testing time is used to indicate the time cycle of concurrent testing.Testing time is long more, selects the reliability of optimal communication network high more.
The flow process of a kind of optimal communication network selecting of present embodiment is as shown in Figure 7; In network test that has started each communication apparatus module and statistics setting-up time, on the basis of communication network rate information, use the communication network rule to select the flow process of optimal communication network to comprise:
Step S3062: judge whether to use the fastest rule of peak velocity to select the optimal communication network, if, then select the fastest network communication mode of peak velocity, finish communication network then and select flow process; If not, execution in step S3064 then.
Step S3064: judge whether to use the highest rule of minimum speed, if, then select the highest network communication mode of minimum speed, finish communication network then and select flow process; If not, execution in step S3066 then.
Step S3066: judge whether to use the highest rule of average speed, if, then select the highest network communication mode of average speed, finish communication network then and select flow process; If not, execution in step S3068 then.
Step S3068: judge whether the stability regular of operating speed, if, then select the stabilizing network communication modes of speed, finish communication network then to select flow process; If not, then directly finish communication network and select flow process.
Through present embodiment, the quality of each communication mode can be tested, contrasted in (1).The communication mode of reference is contained wired, wireless multiple COS.And the scheme of present embodiment can further be analyzed on the test data basis, utilizes a series of communication network selective rules, automatically screens out optimum communication mode, and without the manual switchover standard.Particularly wire communication and radio communication relatively on have remarkable effect.Compare other technologies, have more comprehensively analysis ability.(2) on hardware is integrated, to choose CPLD and do controlling parts, (SuSE) Linux OS is done to drive and is supported.Than not having control element or single-chip microcomputer to do the equipment of control element, CPLD has the clock frequency of more IO interface and Geng Gao, is convenient to the response speed of communication module expansion and control signal.Driving support under the (SuSE) Linux OS is compared the WinCE system and is had higher stability.(3) in the concurrent testing, normally add up the flow of IP address, so that statistics and programming.And the concurrent testing that present embodiment utilizes many network interface cards selectivity load technology to realize adopts the mode of statistics network interface card flow to calculate transmission speed, and the flow information statistics is accurately carried out Intelligence Selection in this way, and reliability is higher.
Embodiment four
With reference to 8, show structured flowchart according to a kind of network communication device of the application embodiment four.
The network communication device of present embodiment comprises: mapping block 402; Be used for a plurality of communication modules of communication equipment are mapped as corresponding a plurality of network card equipment respectively; Wherein, a plurality of communication modules use different communication protocol to communicate with corresponding a plurality of different communication networks respectively; Statistical module 404 is used for adding up the data traffic of each network card equipment of a plurality of network card equipments in the setting-up time section; Communication module 406 is used for according to the data traffic of each network card equipment in the setting-up time section, according to the communication network selective rule of setting, from a plurality of different communication networks, selects communication network, and uses the communication network of selecting to carry out network service.
Preferably, statistical module 404 is used for using the data traffic of each network card equipment of a plurality of network card equipments of many network interface cards selectivity load statistics in the setting-up time section.
Preferably, statistical module 404 is used to each network card equipment and sets up a routing table; In the corresponding routing table of each network card equipment, add one or more gateway IP; For each the gateway IP in the routing table of each network card equipment sets up routing rule; Use socket socket to bind gateway IP, the gateway IP that statistics is bound is in the data traffic of said setting-up time section.
Preferably, the communication network selective rule comprise following one of at least: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed, speed.
Preferably, each communication module comprises control interface, and control interface is used to control the power-on and power-off of this communication module.
Preferably, the control interface of each communication module connects through CPLD.
Preferably, communication equipment uses the usb protocol of (SuSE) Linux OS, controls a plurality of communication modules and uses different communication protocol to communicate with corresponding a plurality of different communication networks respectively.
The network communication device of present embodiment is used for realizing the corresponding network communication method of aforementioned a plurality of method embodiment, and has the beneficial effect of corresponding method embodiment, repeats no more at this.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than a kind of network communication method and device that the application provided have been carried out detailed introduction; Used concrete example among this paper the application's principle and execution mode are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.

Claims (11)

1. a network communication method is characterized in that, comprising:
A plurality of communication modules in the communication equipment are mapped as corresponding a plurality of network card equipment respectively, and wherein, said a plurality of communication modules use different communication protocol to communicate with corresponding a plurality of different communication networks respectively;
Add up in said a plurality of network card equipment each network card equipment in the data traffic of setting-up time section;
According to the data traffic of said each network card equipment, according to the communication network selective rule of setting, from said a plurality of different communication networks, select communication network, and use the communication network of selecting to carry out network service in said setting-up time section.
2. method according to claim 1 is characterized in that, each network card equipment comprises in the step of the data traffic of setting-up time section in the said a plurality of network card equipments of said statistics:
Use in the said a plurality of network card equipments of many network interface cards selectivity load statistics each network card equipment in the data traffic of said setting-up time section.
3. method according to claim 2 is characterized in that, each network card equipment comprises in the step of the data traffic of said setting-up time section in the said a plurality of network card equipments of said many network interface cards of use selectivity load statistics:
For said each network card equipment is set up a routing table;
In the corresponding routing table of said each network card equipment, add one or more gateway IP;
For each the said gateway IP in the routing table of said each network card equipment sets up routing rule;
Use socket socket to bind gateway IP, the said gateway IP that statistics is bound is in the data traffic of said setting-up time section.
4. method according to claim 1 is characterized in that, said communication network selective rule comprise following one of at least: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed, speed.
5. method according to claim 1 is characterized in that, each said communication module comprises control interface, and said control interface is used to control the power-on and power-off of this communication module.
6. method according to claim 5 is characterized in that, the control interface of each said communication module connects through complex programmable logic device (CPLD).
7. method according to claim 1 is characterized in that, said communication equipment uses the usb protocol of (SuSE) Linux OS, controls said a plurality of communication module and uses different communication protocol to communicate with corresponding a plurality of different communication networks respectively.
8. a network communication device is characterized in that, comprising:
Mapping block is used for a plurality of communication modules of communication equipment are mapped as corresponding a plurality of network card equipment respectively, and wherein, said a plurality of communication modules use different communication protocol to communicate with corresponding a plurality of different communication networks respectively;
Statistical module is used for adding up the data traffic of said each network card equipment of a plurality of network card equipment in the setting-up time section;
Communication module; Be used for according to the data traffic of said each network card equipment in said setting-up time section; According to the communication network selective rule of setting, from said a plurality of different communication networks, select communication network, and use the communication network of selecting to carry out network service.
9. device according to claim 8 is characterized in that, said statistical module is used for using the data traffic of said each network card equipment of a plurality of network card equipments of many network interface cards selectivity load statistics in said setting-up time section.
10. device according to claim 8 is characterized in that, said communication network selective rule comprise following one of at least: the stability regular of the fastest rule of peak velocity, the highest rule of minimum speed, the highest rule of average speed, speed.
11. device according to claim 8 is characterized in that, each said communication module comprises control interface, and said control interface is used to control the power-on and power-off of this communication module.
CN201210258862.5A 2012-07-24 2012-07-24 network communication method and device Active CN102790718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210258862.5A CN102790718B (en) 2012-07-24 2012-07-24 network communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210258862.5A CN102790718B (en) 2012-07-24 2012-07-24 network communication method and device

Publications (2)

Publication Number Publication Date
CN102790718A true CN102790718A (en) 2012-11-21
CN102790718B CN102790718B (en) 2016-02-03

Family

ID=47156024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210258862.5A Active CN102790718B (en) 2012-07-24 2012-07-24 network communication method and device

Country Status (1)

Country Link
CN (1) CN102790718B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152364A (en) * 2013-04-08 2013-06-12 王梓 Duplex communication auxiliary protocol
CN103248561A (en) * 2013-03-30 2013-08-14 百度在线网络技术(北京)有限公司 Cross-platform and cross-terminal communication method and message system
CN103368810A (en) * 2013-07-24 2013-10-23 北京辰安科技股份有限公司 Internet-of-things communication equipment and control method thereof and internet-of-things monitoring system
CN104053164A (en) * 2013-03-14 2014-09-17 深圳先进技术研究院 Internet-of-things gateway testing system and method
CN104468340A (en) * 2013-11-08 2015-03-25 成都万创科技有限责任公司 Method for utilizing computer program for controlling gateway equipment of Internet of Things to operate
CN105101054A (en) * 2015-06-30 2015-11-25 马维理 Multimedia transmission method and system
CN105871509A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 Data transmission method and device
CN105915454A (en) * 2016-03-14 2016-08-31 国网江苏省电力公司南京供电公司 Multimode communication method for state monitoring of power transmission line
CN106161137A (en) * 2016-06-14 2016-11-23 深圳市共进电子股份有限公司 A kind of network terminal detection method and device
CN106658616A (en) * 2016-12-26 2017-05-10 北京奇虎科技有限公司 Network switching method and apparatus based on network speed, and terminal device
CN107135551A (en) * 2017-05-05 2017-09-05 深圳Tcl新技术有限公司 A kind of wireless network card system of selection and device
CN108156044A (en) * 2018-02-27 2018-06-12 顺德职业技术学院 A kind of robot workstation's network topology structure
CN111699720A (en) * 2018-03-02 2020-09-22 松下知识产权经营株式会社 Device, system and communication method
CN112333105A (en) * 2020-09-30 2021-02-05 张成林 Communication method and device of cloud robot
CN113347017A (en) * 2021-04-09 2021-09-03 中科创达软件股份有限公司 Network communication method and device, network node equipment and hybrid network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527946A (en) * 2008-02-26 2009-09-09 英特尔公司 Device, system, and method of wireless network selection and handover

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527946A (en) * 2008-02-26 2009-09-09 英特尔公司 Device, system, and method of wireless network selection and handover

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104053164B (en) * 2013-03-14 2017-08-18 深圳先进技术研究院 Things-internet gateway test system and method
CN104053164A (en) * 2013-03-14 2014-09-17 深圳先进技术研究院 Internet-of-things gateway testing system and method
CN103248561A (en) * 2013-03-30 2013-08-14 百度在线网络技术(北京)有限公司 Cross-platform and cross-terminal communication method and message system
CN103152364A (en) * 2013-04-08 2013-06-12 王梓 Duplex communication auxiliary protocol
CN103368810A (en) * 2013-07-24 2013-10-23 北京辰安科技股份有限公司 Internet-of-things communication equipment and control method thereof and internet-of-things monitoring system
CN104468340A (en) * 2013-11-08 2015-03-25 成都万创科技有限责任公司 Method for utilizing computer program for controlling gateway equipment of Internet of Things to operate
CN105101054A (en) * 2015-06-30 2015-11-25 马维理 Multimedia transmission method and system
CN105101054B (en) * 2015-06-30 2019-04-02 郑州枫华实业股份有限公司 A kind of multimedia transmission method and system
WO2017156836A1 (en) * 2016-03-14 2017-09-21 国网江苏省电力公司南京供电公司 Multi-mode communication method for monitoring power transmission line state
US10652136B2 (en) 2016-03-14 2020-05-12 State Grid Jiangsu Electric Power Company Nanjing Power Supply Company Multimode communication method for transmission line condition monitoring
CN105915454A (en) * 2016-03-14 2016-08-31 国网江苏省电力公司南京供电公司 Multimode communication method for state monitoring of power transmission line
CN105871509A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 Data transmission method and device
CN106161137B (en) * 2016-06-14 2019-04-19 深圳市共进电子股份有限公司 A kind of network terminal detection method and device
CN106161137A (en) * 2016-06-14 2016-11-23 深圳市共进电子股份有限公司 A kind of network terminal detection method and device
CN106658616A (en) * 2016-12-26 2017-05-10 北京奇虎科技有限公司 Network switching method and apparatus based on network speed, and terminal device
CN107135551A (en) * 2017-05-05 2017-09-05 深圳Tcl新技术有限公司 A kind of wireless network card system of selection and device
CN107135551B (en) * 2017-05-05 2020-12-29 深圳Tcl新技术有限公司 Wireless network card selection method and device
CN108156044A (en) * 2018-02-27 2018-06-12 顺德职业技术学院 A kind of robot workstation's network topology structure
CN111699720A (en) * 2018-03-02 2020-09-22 松下知识产权经营株式会社 Device, system and communication method
CN111699720B (en) * 2018-03-02 2023-08-15 松下电器(美国)知识产权公司 Communication device, communication system, and communication method
CN112333105A (en) * 2020-09-30 2021-02-05 张成林 Communication method and device of cloud robot
CN113347017A (en) * 2021-04-09 2021-09-03 中科创达软件股份有限公司 Network communication method and device, network node equipment and hybrid network

Also Published As

Publication number Publication date
CN102790718B (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN102790718A (en) Network communication method and device
CN109710471B (en) LoRa communication serial port debugging tool
CN103338475A (en) AP (Access Point) testing method, device and terminal
CN109150605A (en) intelligent gateway, monitoring system and data processing method
CN106411637A (en) Internet-of-things device scenario testing method
CN104394544A (en) Automatic radio frequency test method for WiFi (Wireless Fidelity) product
CN109699056A (en) Method for switching network and device and computer readable storage medium
CN105357709A (en) Wireless router throughput testing method and system as well as router
CN109491890A (en) The interface scans method and terminal device of application program
CN107949071A (en) terminal wireless data transmission method, device, terminal and storage medium
CN103152115B (en) Full-channel data acquirer
CN102377606A (en) Network connection device and port test method thereof
CN106850368A (en) A kind of control method of repeater and its data transfer
CN102857948B (en) A kind of CDMA signal testing training platform device
CN104683254A (en) Route control method and route control device
KR101497896B1 (en) method for automatically setting wireless cmmunication testing equipment with multi port
CN106921807B (en) A kind of telephone operation machine system and its self checking method
CN114545825A (en) Multifunctional vibrating wire strain sensor acquisition instrument and acquisition base station
CN106900001A (en) communication system testing method and system
WO2016074396A1 (en) Power source monitoring method and device
CN114630343A (en) Multi-type terminal-oriented 5G access network testing system and testing method
CN102685924B (en) A kind of communication unit method to set up of terminal, setting device and terminal
CN108882289A (en) A kind of method and device for bluetooth throughput performance production line test
CN111769852B (en) Multi-display device configuration method, display device and multi-display device system
CN203504768U (en) Green non-driven wireless modem/WIFI router device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant