CN106878165A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN106878165A
CN106878165A CN201710047819.7A CN201710047819A CN106878165A CN 106878165 A CN106878165 A CN 106878165A CN 201710047819 A CN201710047819 A CN 201710047819A CN 106878165 A CN106878165 A CN 106878165A
Authority
CN
China
Prior art keywords
link
medium
link medium
trunking
configuration information
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
CN201710047819.7A
Other languages
Chinese (zh)
Other versions
CN106878165B (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.)
Xinhuasan Intelligent Terminal Co ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710047819.7A priority Critical patent/CN106878165B/en
Publication of CN106878165A publication Critical patent/CN106878165A/en
Application granted granted Critical
Publication of CN106878165B publication Critical patent/CN106878165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS

Abstract

The application provides a data transmission method and a device, wherein the method comprises the following steps: receiving a detection message sent by a routing device through two or more link media, wherein the detection message comprises configuration information; performing link configuration of the two or more link mediums by using the configuration information; for each link medium, acquiring link quality and link parameters corresponding to the link medium, and distributing weights to the link medium according to the link quality and the link parameters; and carrying out data transmission with the routing equipment according to the weight corresponding to each link medium. By the technical scheme, the situation of data packet loss can be reduced, the quality and reliability of the relay equipment are guaranteed, the user experience is improved, and the purposes of expanding the uplink bandwidth, realizing QoS classification and uplink backup and the like are achieved.

Description

A kind of data transmission method and device
Technical field
The application is related to communication technical field, more particularly to a kind of data transmission method and device.
Background technology
Developing rapidly for internet brings greatly change to the work and life of user, interior in recent years, all kinds of without circuit Average family is progressed into by device.The convenience of wireless network with it is efficient so that wireless router is popularized rapidly.But, The greatest problem that wireless router exists in the family use is:Because concrete wall, reinforcing bar keel, stone material material etc. are blocked The presence of thing, causes house subregion to there is the covering blind spot of wireless signal.At present, the side that wireless signal covers blind spot is solved Formula is:Deployment trunking, the coverage of wireless signal is expanded by trunking, reaches cleaning wireless signal covering blind spot Purpose.
The content of the invention
The application provides a kind of data transmission method, is applied to trunking, and methods described includes:
The probe messages that routing device is sent by two or more link medium are received, wherein, the detection Message includes configuration information;
The link configuration of described two or two or more link mediums is carried out using the configuration information;
For every kind of link medium, the corresponding link-quality of the link medium and link parameter are obtained, and according to described Link-quality and the link parameter are that the link medium distributes weight;
Carried out data transmission according to the corresponding weight of every kind of link medium and the routing device.
The application provides a kind of data transmission method, is applied to routing device, and methods described includes:
Generate two or more link medium and distinguish corresponding probe messages, the probe messages include matching somebody with somebody confidence Breath;
Probe messages are sent to trunking by described two or two or more link mediums, so that the relaying sets The standby link configuration that described two or two or more link mediums are carried out using the configuration information;
For every kind of link medium, the corresponding link-quality of the link medium and link parameter are obtained, and according to described Link-quality and the link parameter are that the link medium distributes weight;
Carried out data transmission according to the corresponding weight of every kind of link medium and the trunking.
The application provides a kind of data transmission device, is applied to trunking, and described device includes:
Receiver module, for receiving the probe messages that routing device is sent by two or more link medium, Wherein, the probe messages include configuration information;
Configuration module, the link for being carried out described two or two or more link mediums using the configuration information is matched somebody with somebody Put;
Acquisition module, for for every kind of link medium, obtaining the corresponding link-quality of the link medium and link ginseng Number, and be that the link medium distributes weight according to the link-quality and the link parameter;
Sending module, for being carried out data transmission with routing device according to the corresponding weight of every kind of link medium.
The application provides a kind of data transmission device, is applied to routing device, and described device includes:
Generation module, corresponding probe messages, the detection are distinguished for generating two or more link medium Message includes configuration information;
Sending module, for sending probe messages to trunking by described two or two or more link mediums, So that the trunking carries out the link configuration of described two or two or more link mediums using the configuration information;
Acquisition module, for for every kind of link medium, obtaining the corresponding link-quality of the link medium and link ginseng Number, and be that the link medium distributes weight according to the link-quality and the link parameter;
The sending module, is additionally operable to carry out data biography according to the corresponding weight of every kind of link medium and the trunking It is defeated.
Based on above-mentioned technical proposal, in the embodiment of the present application, between routing device and trunking can by two kinds or Two or more link mediums carry out data transmission, and so, when the laser propagation effect of certain link medium is bad, can also pass through Other link mediums carry out data transmission, so as to reduce the situation of data packetloss, it is ensured that the q&r of trunking, and User experience is improved, expansion uplink bandwidth is reached, is realized QoS (Quality of Service, service quality) points The purpose such as class and backup of uplink.
Brief description of the drawings
In order to clearly illustrate the embodiment of the present application or technical scheme of the prior art, below will be to the application The accompanying drawing to be used needed for embodiment or description of the prior art is briefly described, it should be apparent that, in describing below Accompanying drawing is only some embodiments described in the application, for those of ordinary skill in the art, can also be according to this Shen Please these accompanying drawings of embodiment obtain other accompanying drawings.
Fig. 1 is the flow chart of the data transmission method in a kind of implementation method of the application;
Fig. 2 is the flow chart of the data transmission method in the application another embodiment;
Fig. 3 is the flow chart of the data transmission method in the application another embodiment;
Fig. 4 is the application scenarios schematic diagram in a kind of implementation method of the application;
Fig. 5 is the hardware structure diagram of the trunking in a kind of implementation method of the application;
Fig. 6 is the structure chart of the data transmission device in a kind of implementation method of the application;
Fig. 7 is the hardware structure diagram of the routing device in a kind of implementation method of the application;
Fig. 8 is the structure chart of the data transmission device in a kind of implementation method of the application.
Specific embodiment
In term used in this application merely for the sake of the purpose for describing specific embodiment, and unrestricted the application.This Shen Please it is also intended to include most forms with " one kind ", " described " and " being somebody's turn to do " of the singulative used in claims, unless Context clearly shows that other implications.It is also understood that term "and/or" used herein refers to comprising one or more Associated any or all of project listed may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, additionally, used word " if " can be construed to " and ... when " or " when ... when " Or " in response to determining ".
At present, the communication mode between wireless router and trunking is wireless mode, i.e. terminal device sends out data After giving trunking, trunking wirelessly sends the data to wireless router, and wireless router sends out data Deliver to Internet.However, the problems such as due to air interference, network quality can be caused to decline, trunking is sent to without circuit Packet loss occurs by the data of device, user experience is had a strong impact on.
Propose a kind of data transmission method in the embodiment of the present application, the method can apply to include trunking (such as without Line repeater or wired repeater) and the system of routing device (such as wireless router or cable router) in, referring to Fig. 1 It is shown, it is the flow chart of the data transmission method, the data transmission method can apply to trunking, and the method can include Following steps:
Step 101, receives the probe messages that routing device is sent by two or more link medium.
Wherein, the probe messages can include but is not limited to configuration information.Specifically, the probe messages can include Detection code and safety code, the safety code include the configuration information after AES is encrypted, and the detection code is that this adds The corresponding detection code of close algorithm.Based on this, it may be determined that go out the corresponding AES of detection code of probe messages carrying, then may be used Safety code is decrypted with using the AES;Wherein in an implementation method, the configuration information can include but not It is limited to one below or any combination:MAC (medium access control) addresses of routing device and IP address, WLAN SSID (service set) and password, wireless parameter.
Step 102, the link configuration of two or more link medium is carried out using the configuration information.
In one example, for " link that two or more link medium is carried out using the configuration information is matched somebody with somebody Put " process, can include but is not limited to:Determine the corresponding AES of the safety code using the detection code;Using the encryption Algorithm is decrypted treatment to the safety code, the configuration information after being decrypted;Two are carried out using the configuration information after the decryption The link configuration of kind or two or more link mediums.
Described two or two or more link mediums can include but is not limited to following any two kinds or more of:Electric power Line medium, Wireless LAN Medium, wired ethernet medium, coaxial cable medium.
In one example, for " carrying out two or more link medium using the configuration information after the decryption Link configuration " process, following manner can be included but is not limited to:For every kind of link medium, using matching somebody with somebody after the decryption Confidence breath carries out the downlink configuration and uplink configuration of the link medium.
Step 103, for every kind of link medium, obtains the corresponding link-quality of the link medium and link parameter, and root It is that the link medium distributes weight according to the link-quality and the link parameter.
Step 104, carries out data transmission according to the corresponding weight of every kind of link medium with routing device.
In one example, for " being carried out data transmission according to the corresponding weight of every kind of link medium and routing device " Process, can include but is not limited to following manner:Weight according to every kind of link medium determines the stream that every kind of link medium is shared Amount ratio, and the flow-rate ratio shared according to every kind of link medium sends data to routing device;Or, according to every kind of link medium Weight determines the priority of every kind of link medium, and priority and the priority of data according to every kind of link medium is to route Equipment sending data;Or, the maximum link medium of weight is defined as primary link medium, other link mediums are defined as standby With link medium, when the primary link medium does not break down, data are sent to routing device by the primary link medium, When the primary link medium breaks down, it is switched to reserve link medium and sends data to routing device.
Conceived based on the application same with the above method, it is shown in Figure 2, it is the flow chart of the data transmission method, should Data transmission method can apply to routing device, and the method may comprise steps of:
Step 201, generates two or more link medium and distinguishes corresponding probe messages.
Wherein, the probe messages can include but is not limited to configuration information.
Specifically, the probe messages can include detection code and safety code, the safety code includes entering by AES Configuration information after row encryption, and the detection code is the corresponding detection code of the AES.Based on this, routing device can be used AES is encrypted to configuration information, and the corresponding detection code of the AES is added into probe messages, and by after encryption Configuration information be defined as safety code, the safety code is added to probe messages;Wherein in an implementation method, confidence should be matched somebody with somebody Breath can include but is not limited to one below or any combination:The MAC Address and IP address of routing device, WLAN SSID and password, wireless parameter.
Step 202, probe messages are sent by described two or two or more link mediums to trunking, so that in The link configuration of described two or two or more link mediums is carried out after equipment utilization configuration information.
Step 203, for every kind of link medium, obtains the corresponding link-quality of the link medium and link parameter, and root It is that the link medium distributes weight according to the link-quality and the link parameter.
Step 204, carries out data transmission according to the corresponding weight of every kind of link medium with trunking.
In one example, for " being carried out data transmission according to the corresponding weight of every kind of link medium and trunking " Process, can include but is not limited to following manner:Weight according to every kind of link medium determines the stream that every kind of link medium is shared Amount ratio, and the flow-rate ratio shared according to every kind of link medium sends data to trunking;Or, according to every kind of link medium Weight determines the priority of every kind of link medium, and priority and the priority of data according to every kind of link medium is to relaying Equipment sending data;Or, the maximum link medium of weight is defined as primary link medium, other link mediums are defined as standby With link medium, when the primary link medium does not break down, data are sent to trunking by the primary link medium, When the primary link medium breaks down, it is switched to reserve link medium and sends data to trunking.
It is shown in Figure 3, it is the flow chart of the data transmission method, the method may comprise steps of:
Step 301, routing device generates two or more link medium and distinguishes corresponding probe messages.
In one example, there is two or more link medium between routing device and trunking, it is described Two or more link medium can include but is not limited to following any two kinds or more of:It is power line medium, wireless LAN Medium, wired ethernet medium, coaxial cable medium.
There is power line medium, Wireless LAN Medium, wired ethernet medium between routing device and trunking As a example by illustrate, then routing device can for power line medium generate probe messages 1, be Wireless LAN Medium generation detection Message 2, and for wired ethernet medium generates probe messages 3.Wherein, the type of the corresponding probe messages of different link mediums can With difference, it is also possible to identical, for example, for the probe messages 1 of power line medium generation can be DHCP (Dynamic Host Configuration Protocol, DHCP) message is the probe messages 2 of Wireless LAN Medium generation Can be Beacon (beacon) message, the probe messages 3 for being the generation of wired ethernet medium can be DHCP message.The application reality Apply in example, the type to this probe messages is not limited, can according to actual needs choose the type of probe messages.
In one example, routing device can add configuration information when probe messages are generated in probe messages, should Configuration information can be included but is not limited to:MAC (Media Access Control, medium access control) address of routing device With IP address, the SSID (Service Set Identifier, service set) and password, wireless parameter of WLAN Information such as (such as HT (High Throughput, high-throughput) pattern, channel requirements etc.).In actual applications, probe messages 1, Probe messages 2 and probe messages 3 can carry identical configuration information, such as can carry the MAC Address and IP of routing device The information such as address, the SSID of WLAN and password, wireless parameter, it is also possible to carry different configuration informations.
Further, for security consideration, routing device can also be carried out using predetermined encryption algorithm to configuration information Encryption, the configuration information after encryption is added in probe messages.Specifically, routing device can use predetermined encryption algorithm pair Configuration information is encrypted, and the corresponding detection code of predetermined encryption algorithm is added into probe messages, and by encryption after with confidence Breath is defined as safety code, and the safety code is added into probe messages.
Wherein, the detection code can be character string, and different detection codes can correspond to different AESs, for example, Detection code A can correspond to AES 1, and detection code B can correspond to AES 2 etc..Assuming that routing device uses AES 1 Configuration information is encrypted, then detection code A is added to probe messages.
Step 302, routing device sends detection report by described two or two or more link mediums to trunking Text.
Step 303, trunking receives the detection report that routing device is sent by two or more link medium Text.
For step 302 and step 303, in one example, routing device can be set by power line medium to relaying Preparation send probe messages 1, and trunking receives probe messages 1 by power line medium.And, routing device can be by wireless LAN Medium sends probe messages 2 to trunking, and trunking receives probe messages 2 by Wireless LAN Medium.And And, routing device can send probe messages 3 by wired ethernet medium to trunking, and trunking passes through wired ether Net medium receives probe messages 3.
Step 304, trunking using the configuration information (configuration information carried i.e. in probe messages) carry out two kinds or The link configuration of two or more link mediums.
In one example, for " link that two or more link medium is carried out using the configuration information is matched somebody with somebody Put " process, can include but is not limited to:Determine the corresponding AES of the safety code using the detection code;Using the encryption Algorithm is decrypted treatment to the safety code, the configuration information after being decrypted;Two are carried out using the configuration information after the decryption The link configuration of kind or two or more link mediums.
Wherein, different detection codes can correspond to different AESs, and, trunking can with preservation & testing code with The corresponding relation of the corresponding relation of AES, such as detection code A and AES 1, detection code B is corresponding with AES 2 to close System.Based on this, for the process of " trunking determines the corresponding AES of the safety code using the detection code ", trunking Detection code (such as detection code A) can be first parsed from probe messages, and detection code is corresponding with AES to close by inquiring about System, can obtain the corresponding AES of the detection code, such as AES 1, and the AES i.e. safety code are corresponding AES.
Wherein, for " link that two or more link medium is carried out using the configuration information after the decryption is matched somebody with somebody Put " process, following manner can be included but is not limited to:Every kind of chain in for described two or two or more link mediums Road medium, the downlink configuration and uplink configuration of the link medium are carried out using the configuration information after the decryption.
Step 305, for every kind of link medium, trunking obtains the corresponding link-quality of the link medium and link ginseng Number, and be that the link medium distributes weight according to the link-quality and the link parameter, and it is corresponding according to every kind of link medium Weight carries out data transmission with routing device.Routing device obtains the corresponding link-quality of the link medium and link parameter, and Be that the link medium distributes weight according to the link-quality and the link parameter, and according to the corresponding weight of every kind of link medium with Trunking carries out data transmission.
In one example, for " trunking enters line number according to the corresponding weight of every kind of link medium and routing device According to transmission " process, can include but is not limited to:Trunking determines every kind of link medium according to the weight of every kind of link medium The flow-rate ratio shared, and the flow-rate ratio shared according to every kind of link medium sends data to routing device;Or, according to every kind of chain The weight of road medium determines the priority of every kind of link medium, and priority according to every kind of link medium and data is preferential Level sends data to routing device;Or, the maximum link medium of weight is defined as primary link medium, by other link mediums It is defined as reserve link medium, when the primary link medium does not break down, by the primary link medium to routing device Data are sent, when the primary link medium breaks down, reserve link medium is switched to and is sent data to routing device.
In one example, for " routing device enters line number according to the corresponding weight of every kind of link medium and trunking According to transmission " process, can include but is not limited to:Routing device determines every kind of link medium according to the weight of every kind of link medium The flow-rate ratio shared, and the flow-rate ratio shared according to every kind of link medium sends data to trunking;Or, according to every kind of chain The weight of road medium determines the priority of every kind of link medium, and priority according to every kind of link medium and data is preferential Level sends data to trunking;Or, the maximum link medium of weight is defined as primary link medium, by other link mediums It is defined as reserve link medium, when the primary link medium does not break down, by the primary link medium to trunking Data are sent, when the primary link medium breaks down, reserve link medium is switched to and is sent data to trunking.
In one example, if trunking is in Preset Time, the detection of at least two routing devices transmission is received Message (has at least two routing devices to send probe messages to trunking), then trunking can also be according to preset strategy A routing device for needing relaying is chosen from least two routing devices, for the routing device of selection, trunking profit The link configuration of two or more link medium is carried out with configuration information.Wherein, preset strategy can include but not limit In:The reception of the priority and/or probe messages of the link medium between routing device and trunking is sequentially.For example, it is assumed that , better than the priority of power line medium, the priority of power line medium is better than WLAN for the priority of wired ethernet medium The priority of medium, if trunking receives the probe messages that routing device 1 sends by wired ethernet medium, by nothing Line LAN Medium receives the probe messages of the transmission of routing device 2, then choose routing device 1 for the route for needing relaying sets It is standby.If trunking first receive routing device 1 transmission probe messages, after receive routing device 2 transmission probe messages, Routing device 1 is chosen to need the routing device of relaying.If trunking receives routing device 1 by wired ethernet medium The probe messages of transmission, the probe messages that routing device 2 sends are received by wired ethernet medium, are first received route and are set Standby 1 probe messages for sending, after receive the probe messages of the transmission of routing device 2, choose routing device 1 to need the road of relaying By equipment.
Based on above-mentioned technical proposal, in the embodiment of the present application, between routing device and trunking can by two kinds or Two or more link mediums carry out data transmission, and so, when the laser propagation effect of certain link medium is bad, can also pass through Other link mediums carry out data transmission, so as to reduce the situation of data packetloss, it is ensured that the q&r of trunking, and User experience is improved, expansion uplink bandwidth is reached, is realized QoS (Quality of Service, service quality) points The purpose such as class and backup of uplink.
Below in conjunction with the application scenarios shown in Fig. 4, above-mentioned technical proposal is illustrated.Trunking and routing device it Between there is power line medium, Wireless LAN Medium, wired ethernet medium, coaxial cable medium.In actual applications, not Power line medium, Wireless LAN Medium, wired ethernet medium, coaxial cable medium are confined to, are situated between with power line in Fig. 2 Illustrated as a example by matter, Wireless LAN Medium, wired ethernet medium.Power line medium is the data communication based on power line Medium, can use HomePlug (Home Plug PowerLine Alliance, Home Plug alliance) agreement, based on electric power The trunking scheme of line medium is referred to as PLC (Power Line Communication, power line communication) relayings.Coaxial cable medium It is the data communication medium that Ethernet protocol is used based on wired TV coaxial cable net, HomePlug agreements, base can be used It is referred to as coaxial cable relaying in the trunking scheme of coaxial cable medium.Wireless LAN Medium is based on ISM (Industrial Scientific Medical, industrial scientific medical) channel (such as 2.4G, 5G) data communication medium, can use IEEE802.11 (Institute of Electrical and Electronics Engineers, Electrical and Electronic engineer Association) agreement, the trunking scheme based on Wireless LAN Medium is referred to as wireless relay.Wired ethernet medium is based on coaxial The data communication medium of cable, twisted-pair feeder and optical fiber, can use IEEE802.3 agreements, the relaying side based on wired ethernet medium Formula is referred to as line relay.
Under above-mentioned application scenarios, the data transmission method that the embodiment of the present application is proposed may comprise steps of:
Step 1, user complete the configuration of WLAN in routing device, such as configuration SSID of WLAN and close The information such as code, wireless parameter (such as HT patterns, channel requirements), repeat no more to this process.
Step 2, routing device are all link mediums generation probe messages that this equipment is supported, such as power line medium is given birth to It is Wireless LAN Medium generation probe messages 2 into probe messages 1, and for wired ethernet medium generates probe messages 3.Its In, the type of the corresponding probe messages of different link mediums can be with difference, it is also possible to identical, for example, being power line medium generation Probe messages 1 can be DHCP message, the probe messages 2 for being Wireless LAN Medium generation can be for Beacon messages The probe messages 3 of wired ethernet medium generation can be DHCP message.To the type of this probe messages in the embodiment of the present application It is not limited.
Step 3, routing device periodically send probe messages by every kind of link medium to trunking.
Step 4, trunking receive the probe messages that routing device is sent by every kind of link medium.
For example, routing device periodically can send probe messages 1 by power line medium to trunking, so that in Probe messages 1 are received by power line medium after equipment.And, routing device can periodically pass through Wireless LAN Medium Probe messages 2 are sent to trunking, so that trunking receives probe messages 2 by Wireless LAN Medium.And, route Equipment periodically can send probe messages 3 by wired ethernet medium to trunking, so that trunking is by having Line ethernet medium receives probe messages 3.
Wherein, routing device send probe messages cycle can be configured according to practical experience, every time reach send During the cycle, probe messages are just sent by every kind of link medium.In one example, if the period ratio of probe messages is shorter, Then the transmission frequency of probe messages is higher, may take compared with multiple resource, and if the cycle of probe messages is long, then detection is reported The transmission frequency of text is relatively low, and trunking may be caused to timely receive probe messages.Wherein in an implementation method, The cycle of probe messages is set to 60 seconds.
In one example, routing device can add configuration information when probe messages are generated in probe messages, should Configuration information can be included but is not limited to:The MAC Address and IP address of routing device, the SSID of WLAN and password, nothing The information such as line parameter (such as HT patterns, channel requirements).
Further, for security consideration, routing device can also be carried out using predetermined encryption algorithm to configuration information Encryption, the configuration information after encryption is added in probe messages.Specifically, routing device can use predetermined encryption algorithm pair Configuration information is encrypted, and the corresponding detection code of predetermined encryption algorithm is added into probe messages, and by encryption after with confidence Breath is defined as safety code, and the safety code is added into probe messages.
Wherein, the detection code can be character string, and different detection codes can correspond to different AESs, for example, Detection code A can correspond to AES 1, and detection code B can correspond to AES 2 etc..Assuming that routing device uses AES 1 Configuration information is encrypted, then detection code A is added to probe messages.
Wherein it is possible to increase Vendor Specific (specific supplier) field in probe messages, and in Vendor Specific fields add detection code and safety code, and the content of detection code is the character string of regular length, and the content of safety code is By the configuration information encrypted.As shown in table 1, it is an example of Vendor Specific fields, Element ID (elements Identify) for the content of 100 expression Value (value) fields is detection code.Element ID are the content of 101 expression Value fields It is safety code, safety code is by the corresponding AESs of detection code A (such as AES (Advanced Encryption Standard, Advanced Encryption Standard) algorithm, DES (Data Encryption Standard, data encryption standards) algorithm etc.) The configuration information being encrypted.
Table 1
Element id fields Value fields
100 Detection code A
101 Safety code X
In one example, by the message encapsulation format difference that different link mediums are used, therefore, it is possible to use not Represent that current message is probe messages with mark.For example, power line medium is directed to, can be by the MAC Header of probe messages Type (type) value is set to the first mark (such as 1111) in (head), to represent current message as probe messages, if trunking After power line medium receives message, Type values are 1111 in parsing MAC Header, determine that this message is to visit Observe and predict text.For Wireless LAN Medium, Type values in the MAC Header of probe messages can be set to the second mark (such as 0000) 1111, and by Subtype (subtype) value in MAC Header are set to, to represent current message as probe messages, if After Wireless LAN Medium receives message, Type values are 0000 to trunking in parsing MAC Header, and MAC Subtype values are 1111 in Header, determine that this message is probe messages.For wired ethernet medium, will can visit Type values are set to 1111 in observing and predicting the MAC Header of text, to represent current message as probe messages, if trunking passes through After wired ethernet medium receives message, Type values are 1111 in parsing MAC Header, determine that this message is to visit Observe and predict text.
If step 5, trunking are in Preset Time, the probe messages that a routing device sends are received only, then will The routing device is defined as needing the routing device of relaying;If trunking receives the detection of at least two routing devices transmission Message, then choose a routing device for needing relaying according to preset strategy from least two routing devices.Further, pin Routing device to needing relaying, trunking performs step 6.
Wherein, trunking can wait Preset Time, and based on all probe messages received in Preset Time, choosing Take out the routing device for needing relaying.In one example, if Preset Time is shorter, trunking possibly cannot be associated with Preferable routing device, if Preset Time is more long, may cause the speed of trunking completion network trunk slower.Wherein In one implementation method, Preset Time is set to 60 seconds.
Wherein, preset strategy can be included but is not limited to:Link medium between routing device and trunking it is preferential The reception of level and/or probe messages is sequentially.For example, it is assumed that the priority of wired ethernet medium is preferential better than power line medium Level, the priority of the priority better than Wireless LAN Medium of power line medium, if trunking passes through wired ethernet medium The probe messages of the transmission of routing device 1 are received, the detection report that routing device 2 sends is received by Wireless LAN Medium Text, then choose routing device 1 to need the routing device of relaying.If trunking first receives the detection of the transmission of routing device 1 Message, after receive routing device 2 transmission probe messages, then choose routing device 1 for need relaying routing device.If in The probe messages that routing device 1 sends are received by wired ethernet medium after equipment, is received by wired ethernet medium To the probe messages that routing device 2 sends, first receive the probe messages of the transmission of routing device 1, after receive routing device 2 and send out The probe messages sent, then choose routing device 1 to need the routing device of relaying.
Step 6, trunking parse detection code and safety code from the probe messages for receiving.
Wherein, for above-mentioned probe messages 1, probe messages 2, probe messages 3, the processing procedure of trunking is identical, is Simplified description, subsequently illustrates so that trunking is to a treatment for probe messages as an example.
In one example, trunking can analyze the Vendor of probe messages after probe messages are received Specific fields, and find the corresponding Value fields of Element ID100, the content i.e. detection code of the Value fields (such as detection code A).And, trunking can also find the corresponding Value fields of Element ID101, the Value fields Content is namely by the safety code (such as safety code X) of encryption.
Step 7, trunking determine the corresponding AES of the safety code using the detection code.
Wherein, different detection codes can correspond to different AESs, and, trunking can with preservation & testing code with The corresponding relation of the corresponding relation of AES, such as detection code A and AES 1, detection code B is corresponding with AES 2 to close System.Based on this, for the process of " trunking determines the corresponding AES of the safety code using the detection code ", trunking By inquiring about the corresponding relation of detection code and AES, the corresponding AES of code, the AES are can be detected It is exactly the corresponding AES of safety code.
To the safety code, (what is parsed from probe messages passes through encryption using the AES for step 8, trunking The safety code for the treatment of) treatment is decrypted, the configuration information after being decrypted.
In one example, the configuration information can include MAC Address and IP address, the WLAN of routing device SSID and password, wireless parameter (such as HT patterns, channel requirements) information.
Based on this, trunking can also check the real mac address of MAC Address in safety code and probe messages (i.e. The source MAC of probe messages) it is whether consistent.If consistent, verify successfully, probe messages through safety certification, if not Unanimously, then verification failure, abandons the probe messages.
Step 9, trunking determine the link medium between this trunking and routing device.
In one example, because trunking can be by power line medium, Wireless LAN Medium, wired ethernet Medium, coaxial cable medium receive the probe messages of routing device transmission, therefore, trunking can determine this trunking Link medium between routing device is power line medium, Wireless LAN Medium, wired ethernet medium, coaxial cable are situated between Matter.
Step 10, trunking carry out the link configuration of each link medium using the configuration information after decryption.
Wherein, for every kind of link medium, trunking can carry out link medium using the configuration information after decryption Downlink configuration, the uplink configuration of link medium is carried out using the configuration information after decryption.
For " trunking carries out the uplink configuration of power line medium/coaxial cable medium using configuration information " Process, can include but is not limited to following manner:Port can be set to link layer intercommunication pattern by trunking;Trunking Can using configuration information routing device complete register, from routing device application link identification (i.e. subsequent transmission message when make Link identification);IP address based on routing device, by DHCP (Dynamic Host Configuration Protocol, DHCP) mode, from routing device application IP address, and by the default route of this trunking It is set to the IP address of routing device.
For the process of " trunking carries out the uplink configuration of wired ethernet medium using configuration information ", can be with Port is set to link layer intercommunication pattern;IP address based on routing device, by DHCP modes from routing device application IP Address, the default route of trunking is set to the IP address of routing device.
For the process of " trunking carries out the uplink configuration of Wireless LAN Medium using configuration information ", relaying Port can be set to link layer intercommunication pattern by equipment;SSID and password based on WLAN, trunking are attempted connecting The wireless network of routing device is connect, and wireless connection is set up with routing device, after wireless connection is successfully established, based on route The IP address of equipment, trunking by DHCP modes from routing device application IP address, and default route can be set to The IP address of routing device.
For " trunking using configuration information carry out power line medium, coaxial cable medium, wired ethernet medium, The process of the downlink configuration of Wireless LAN Medium ", trunking can (such as HT patterns, channel will based on wireless parameter Ask), this trunking is set to Client (client) pattern, and the setting of descending wireless network is carried out, and incited somebody to action described Wireless parameter is stored in configuration file.
Wherein, wireless parameter is suggestion of the routing device to the wireless parameter of trunking.For example, routing device is multifrequency Wireless router, when trunking is multi-frequency radio repeater, routing device advises trunking with 5.1G mode transistroutes When the wireless signal of equipment, i.e. terminal device transfer data to trunking by 2.4G or 5.8G modes, trunking Routing device is transferred data to by 5.1G modes, wireless relay is done using 5.1G frequency ranges equivalent to specified trunking, made Wireless coverage is done with 2.4G and 5.8G frequency ranges.
Step 11, for every kind of link medium, trunking obtain the corresponding link-quality of the link medium and link ginseng Number, and be that the link medium distributes weight according to the link-quality and the link parameter, and it is corresponding according to every kind of link medium Weight carries out data transmission with routing device.Routing device obtains the corresponding link-quality of the link medium and link parameter, and Be that the link medium distributes weight according to the link-quality and the link parameter, and according to the corresponding weight of every kind of link medium with Trunking carries out data transmission.
Wherein, the mistake of the corresponding link-quality (i.e. the quality of up-link) of power line medium is obtained for trunking Journey, trunking can send ICMP by power line medium according to certain hour cycle (such as 1 second) to routing device (Internet Control Message Protocol, Internet Control Message Protocol) request message, and by power line Medium receives the ICMP response messages that routing device is returned.The contents such as packet loss, message delay based on ICMP response messages, in The corresponding link-quality of power line medium can be counted after equipment.For example, when packet loss is got over hour, link-quality is better, when When packet loss is bigger, link-quality is poorer;When message delay is got over hour, link-quality is better, when message delay is bigger, link Quality is poorer.
Similarly, the mistake of Wireless LAN Medium/corresponding link-quality of wired ethernet medium is obtained for trunking Journey, the process of link-quality corresponding with power line medium is obtained is similar to, and difference is:By Wireless LAN Medium/wired Ethernet medium sends ICMP request messages to routing device, and is received by Wireless LAN Medium/wired ethernet medium The ICMP response messages that routing device is returned, repeat no more to this.
Wherein, link parameter can include but is not limited to the parameters, relaying such as connection speed, connection bandwidth, link priority Equipment can be directly obtained the parameters such as connection speed, connection bandwidth, link priority.For example, the connection speed of power line medium Rate A, connection bandwidth A, the connection speed B of Wireless LAN Medium, connection bandwidth B, the connection speed C of wired ethernet medium, Connection bandwidth C.The priority of wired ethernet medium is better than the priority of power line medium, and the priority of power line medium is better than The priority of Wireless LAN Medium.
Wherein, for the process of " trunking is that link medium distributes weight according to link-quality and link parameter ", respectively The corresponding weight of link medium can be a constant, be the factors such as reference link quality and link parameter, based on preset strategy Distribution.During weight is distributed, an example of preset strategy can be:The weight of inaccessible link medium is 0. For reachable link medium, if link-quality is better, the weight being assigned to is bigger, if link-quality is poorer, is assigned to Weight it is smaller;If connection speed is bigger, the weight being assigned to is bigger, if connection speed is smaller, the weight being assigned to is got over It is small;If connection bandwidth is bigger, the weight being assigned to is bigger, if connection bandwidth is smaller, the weight being assigned to is smaller;If link Priority is bigger, then the weight being assigned to is bigger, if link priority is smaller, the weight being assigned to is smaller.
To this preset strategy, can be configured according to practical experience, such as be used above-mentioned strategy, it is without limitation. In subsequent process, for convenience of description, the weight for thinking the distribution of wired ethernet medium is 6, is the weight of power line medium distribution It is 3, the weight for being Wireless LAN Medium distribution is illustrated as a example by 1.
For the process of " trunking carries out data transmission according to the weight of each link medium with routing device ", relaying The routing policy that equipment can be selected according to user, carries out data transmission with routing device in different ways.If for example, route Strategy is balancing link load strategy, and trunking determines the stream that every kind of link medium is shared according to the weight of every kind of link medium Amount ratio, and the flow-rate ratio shared according to every kind of link medium sends data to routing device.If routing policy is business QOS (Quality of Service, service quality) strategy, trunking determines every kind of link according to the weight of every kind of link medium The priority of medium, and priority and the priority of data according to every kind of link medium send data to routing device.If Routing policy is link backup function policy, and the maximum link medium of weight is defined as primary link medium by trunking, by it Its link medium is defined as reserve link medium, when primary link medium does not break down, is sent out by main chain road direction routing device Data are sent, when primary link medium breaks down, reserve link medium is switched to and is sent data.
Situation one, trunking determines the flow-rate ratio that every kind of link medium is shared according to the weight of every kind of link medium, and The flow-rate ratio shared according to every kind of link medium sends data to routing device.For example, it is assumed that the weight of wired ethernet medium It is 6, power line medium weight is 3, the weight of Wireless LAN Medium is 1, then wired ethernet medium, power line medium, nothing The flow-rate ratio that line LAN Medium is shared is 6:3:1, i.e., for 10 data messages, there are 6 data messages can be by wired Ethernet medium sends, and has 3 data messages to be sent by power line medium, has 1 data message can be by wireless LAN Medium sends.
In order to realize above-mentioned functions, wherein in an implementation method:After data message is received, according to data message Fixed field content (such as source MAC, source IP address, purpose IP address, target MAC (Media Access Control) address, message characteristic code) enter Row HASH is calculated, and obtains HASH summaries, and carries out remainder treatment with weight and 10 to HASH summaries, if remainder result is 0-5, The data message is sent by wired ethernet medium, if remainder result is 6-8, the datagram is sent by power line medium Text, if remainder result is 9, the data message is sent by Wireless LAN Medium.
Certainly, aforesaid way is an example, all to realize " for 10 data messages, there is 6 data messages Sent by wired ethernet medium, there are 3 data messages to be sent by power line medium, there is 1 data message to pass through wireless The mode of LAN Medium transmission ", within the application protection domain.
Situation two, trunking determines the priority of every kind of link medium according to the weight of every kind of link medium, and according to The priority of every kind of link medium and the priority of data send data to routing device.
For example, it is assumed that the weight of wired ethernet medium is 6, power line medium weight is 3, the power of Wireless LAN Medium It is again 1, then, better than the priority of power line medium, the priority of power line medium is better than nothing for the priority of wired ethernet medium The priority of line LAN Medium.And, message characteristic code (such as numerical value of certain fixed field), purpose IP ground according to data The fields such as location, can identify type of service, and this RM is not limited, and determine the preferential of data based on type of service Level.Further, the data of high priority can be forwarded by the link medium of high priority, by the number of middle priority Forwarded according to the link medium by middle priority, the data of low priority are turned by the link medium of low priority Hair.
The maximum link medium of weight is defined as primary link medium by situation three, trunking, and other link mediums are true It is set to reserve link medium, when primary link medium does not break down, data is sent by main chain road direction routing device, in main chain When road medium breaks down, it is switched to reserve link medium and sends data.
For example, it is assumed that the weight of wired ethernet medium is 6, power line medium weight is 3, the power of Wireless LAN Medium It is again 1, then wired ethernet medium is defined as primary link medium, power line medium, Wireless LAN Medium is defined as standby Use link medium.When wired ethernet medium does not break down, send all to routing device by wired ethernet medium Data.When wired ethernet medium breaks down, power line medium is switched into primary link medium, and by power line medium All data are sent to routing device.
In one example, when being changed due to network environment, the corresponding link-quality of each link medium can become Change, cause the weight of each link medium distribution to change.For situation one, when the weight of link medium changes, weight Newly determine the flow-rate ratio that every kind of link medium is shared, and the flow-rate ratio shared according to every kind of link medium sends number to routing device According to.For situation two, when the weight of link medium changes, the priority of every kind of link medium is redefined, and The priority of priority and data according to every kind of link medium sends data to routing device.For situation one and feelings Condition two is no longer repeated in detail.
But, for situation three, when the weight of link medium changes, primary link medium may be caused to switch to standby With link medium, reserve link medium switches to primary link medium, and active-standby switch can cause network temporarily to interrupt, and influences user Experience.Based on this, in order to avoid adjusting primary link medium/reserve link medium repeatedly, can be solved with entrance link elastic mechanism The certainly adjustment problem repeatedly of primary link medium/reserve link medium.
For example, it is the first numerical value (such as 3) to set link upper elastic limit, it is the first number to set the initial value of link switching number of times Value 3.Because trunking is periodic statistics link-quality, therefore, in the corresponding link-quality of statistics link medium every time When, if based on current link-quality, causing active-standby switch event (explanation link is unstable), then by link switching number of times Subtract 1;If based on current link-quality, there is no active-standby switch event (explanation link stabilization), if link switching number of times is First numerical value, then keep link switching number of times constant, if link switching number of times is less than the first numerical value, link switching number of times is added 1, by that analogy.
Further, when primary link medium does not break down, if link switching number of times is not 0, being not carried out " will Primary link medium switches to reserve link medium, and reserve link medium is switched into primary link medium ", if link switching number of times It is 0, then can performs and " primary link medium be switched into reserve link medium, switches to primary link to be situated between in reserve link medium Matter ".But, when primary link medium breaks down, then it represents that primary link medium is unreachable, at this point it is possible to by standby chain Road medium switches to primary link medium.
In one example, for the process of " routing device obtains the corresponding link-quality of the link medium ", route sets It is standby to will not be repeated here, or trunking is being obtained by the way of above-mentioned trunking obtains link-quality To after the corresponding link-quality of each link medium, the corresponding link-quality of each link medium is notified to routing device, so that road The corresponding link-quality of each link medium is got by equipment, be will not be repeated here.For " routing device obtains link medium pair The link parameter answered, be that link medium distributes weight according to link-quality and link parameter " process, referring to above-mentioned trunking Treatment, will not be repeated here.For " routing device carries out data transmission according to the weight of each link medium with trunking " Process, referring to the data transmission procedure of above-mentioned trunking, it is no longer repeated herein.
By above-mentioned treatment, trunking can succeed the data of transistroute equipment, and, trunking is in success After after the data of routing device, can be by by LED (Light Emitting Diode, light emitting diode) indicator lamp, being set to Normal bright state, to point out user repeated success.It is of course also possible to pass through other states of LED light, user has been pointed out Repeated success, is not limited to this process.
Conceived based on the application same with the above method, a kind of data transmission device additionally provided in the embodiment of the present application, The data transmission device can be applied on trunking.Wherein, the data transmission device can be realized by software, it is also possible to Realized by way of hardware or software and hardware combining.It is logical as the device on a logical meaning as a example by implemented in software The processor of the trunking where crossing it, corresponding computer program instructions are formed in reading non-volatile storage.From For hardware view, as shown in figure 5, a kind of hardware configuration of the trunking where the data transmission device proposed for the application Figure, except the processor shown in Fig. 5, in addition to nonvolatile memory, trunking can also include other hardware, such as be responsible for treatment Forwarding chip, network interface, internal memory of message etc.;For from hardware configuration, the trunking is also possible to be distributed apparatus, Multiple interface cards are potentially included, to carry out the extension of Message processing in hardware view.
As shown in fig. 6, the structure chart of the data transmission device proposed for the application, described device includes:
Receiver module 11, for receiving the detection report that routing device is sent by two or more link medium Text, wherein, the probe messages include configuration information;Configuration module 12, it is described two for being carried out using the configuration information Or the link configuration of two or more link mediums;Acquisition module 13, is situated between for for every kind of link medium, obtaining the link The corresponding link-quality of matter and link parameter, and be link medium distribution according to the link-quality and the link parameter Weight;Sending module 14, for being carried out data transmission with routing device according to the corresponding weight of every kind of link medium.
In one example, the probe messages that the receiver module 11 is received specifically include detection code and safety code, The safety code includes the configuration information after AES is encrypted, and the detection code is that the AES is corresponding Detection code;Wherein in an implementation method, the configuration information includes one below or any combination:Jie of routing device Matter access control MAC addresses and IP address, the service set SSID and password, wireless parameter of WLAN;
The configuration module 12, specifically for carrying out described two or two or more links using the configuration information During the link configuration of medium, the corresponding AES of the safety code is determined using the detection code;Added using described Close algorithm is decrypted treatment to the safety code, the configuration information after being decrypted;Carried out using the configuration information after decryption The link configuration of described two or two or more link mediums.
In one example, the probe messages that the receiver module 11 is received are that the routing device passes through following chain Any two kinds or more of transmissions of road medium:It is power line medium, Wireless LAN Medium, wired ethernet medium, coaxial Cable dielectric;
The configuration module 12, is carried out described two or two or more specifically for the configuration information after using decryption During the link configuration of link medium, for every kind of link medium, carried out using the configuration information after the decryption described The downlink configuration and uplink configuration of link medium.
The sending module 14, specifically for being carried out according to the corresponding weight of every kind of link medium and the routing device During data transfer, the weight according to every kind of link medium determines the flow-rate ratio that every kind of link medium is shared, according to every kind of The flow-rate ratio that link medium is shared sends data;Or, the weight according to every kind of link medium determines the excellent of every kind of link medium First level, the priority of priority and data according to every kind of link medium sends data;Or, by the maximum link medium of weight It is defined as primary link medium, other link mediums is defined as reserve link medium, is not broken down in the primary link medium When, data are sent by the primary link medium, when the primary link medium breaks down, it is switched to reserve link medium hair Send data.
Conceived based on the application same with the above method, a kind of data transmission device additionally provided in the embodiment of the present application, The data transmission device can be applied on routing device.Wherein, the data transmission device can be realized by software, it is also possible to Realized by way of hardware or software and hardware combining.It is logical as the device on a logical meaning as a example by implemented in software The processor of the routing device where crossing it, corresponding computer program instructions are formed in reading non-volatile storage.From For hardware view, as shown in fig. 7, a kind of hardware configuration of the routing device where the data transmission device proposed for the application Figure, except the processor shown in Fig. 7, in addition to nonvolatile memory, routing device can also include other hardware, such as be responsible for treatment Forwarding chip, network interface, internal memory of message etc.;For from hardware configuration, the routing device is also possible to be distributed apparatus, Multiple interface cards are potentially included, to carry out the extension of Message processing in hardware view.
As shown in figure 8, the structure chart of the data transmission device proposed for the application, described device includes:
Generation module 21, corresponding probe messages, the spy are distinguished for generating two or more link medium Observing and predicting text includes configuration information;Sending module 22, for by described two or two or more link mediums to trunking Probe messages are sent, so that the trunking carries out described two or two or more link mediums using the configuration information Link configuration;Acquisition module 23, for for every kind of link medium, obtaining the corresponding link-quality of the link medium and chain Road parameter, and be that the link medium distributes weight according to the link-quality and the link parameter;The sending module 22, It is additionally operable to be carried out data transmission according to the corresponding weight of every kind of link medium and the trunking.
The sending module 22, specifically for being carried out according to the corresponding weight of every kind of link medium and the trunking During data transfer, the weight according to every kind of link medium determines the flow-rate ratio that every kind of link medium is shared, according to every kind of The flow-rate ratio that link medium is shared sends data;Or, the weight according to every kind of link medium determines the excellent of every kind of link medium First level, the priority of priority and data according to every kind of link medium sends data;Or, by the maximum link medium of weight It is defined as primary link medium, other link mediums is defined as reserve link medium, is not broken down in the primary link medium When, data are sent by the primary link medium, when the primary link medium breaks down, it is switched to reserve link medium hair Send data.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity, Or realized by the product with certain function.A kind of typically to realize equipment for computer, the concrete form of computer can Being personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units with function during description apparatus above to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the embodiment of the present application can be used and wherein include computer usable program code at one or more The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram are described.It is generally understood that each in realizing flow chart and/or block diagram by computer program instructions The combination of flow and/or square frame in flow and/or square frame and flow chart and/or block diagram.These computer journeys can be provided Sequence instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices processor with Produce a machine so that being produced by the instruction of computer or the computing device of other programmable data processing devices is used for The dress of the function that realization is specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames Put.
And, these computer program instructions can also be stored can guide computer or the treatment of other programmable datas to set In the standby computer-readable memory for working in a specific way so that instruction of the storage in the computer-readable memory is produced Manufacture including command device, the command device is realized in one flow of flow chart or multiple flows and/or block diagram one The function of being specified in individual square frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer Or the instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram The step of function of being specified in one square frame or multiple square frames.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, the application can be using the implementation in terms of complete hardware embodiment, complete software embodiment or combination software and hardware The form of example.And, the application can be used and wherein include the calculating of computer usable program code at one or more The computer implemented in machine usable storage medium (magnetic disk storage, CD-ROM, optical memory etc. can be included but is not limited to) The form of program product.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent Replace, improve etc., within the scope of should be included in claims hereof.

Claims (12)

1. a kind of data transmission method, is applied to trunking, it is characterised in that methods described includes:
The probe messages that routing device is sent by two or more link medium are received, wherein, the probe messages Including configuration information;
The link configuration of described two or two or more link mediums is carried out using the configuration information;
For every kind of link medium, the corresponding link-quality of the link medium and link parameter are obtained, and according to the link Quality and the link parameter are that the link medium distributes weight;
Carried out data transmission according to the corresponding weight of every kind of link medium and the routing device.
2. method according to claim 1, it is characterised in that the probe messages are specifically included:Detection code and safety code, The safety code includes the configuration information after AES is encrypted, and the detection code is that the AES is corresponding Detection code;The process of the link configuration that described two or two or more link mediums are carried out using the configuration information, Specifically include:
Determine the corresponding AES of the safety code using the detection code;
Treatment is decrypted to the safety code using the AES, the configuration information after being decrypted;
The link configuration of described two or two or more link mediums is carried out using the configuration information after decryption.
3. method according to claim 2, it is characterised in that
Described two or two or more link mediums includes following any two kinds or more of:Power line medium, wireless local Net medium, wired ethernet medium, coaxial cable medium;The configuration information using after decryption carries out described two or two kinds The process of the link configuration of link medium above, specifically includes:
For every kind of link medium, using the configuration information after the decryption carry out the link medium downlink configuration and Uplink configuration.
4. method according to claim 1, it is characterised in that it is described according to the corresponding weight of every kind of link medium with it is described The process that routing device carries out data transmission, specifically includes:
Weight according to every kind of link medium determines the flow-rate ratio that every kind of link medium is shared, and is shared according to every kind of link medium Flow-rate ratio send data;Or,
Weight according to every kind of link medium determines the priority of every kind of link medium, and according to the priority of every kind of link medium And the priority of data sends data;Or,
The maximum link medium of weight is defined as primary link medium, other link mediums are defined as reserve link medium, When the primary link medium does not break down, data are sent by the primary link medium, event occurs in the primary link medium During barrier, it is switched to reserve link medium and sends data.
5. a kind of data transmission method, is applied to routing device, it is characterised in that methods described includes:
Generate two or more link medium and distinguish corresponding probe messages, the probe messages include configuration information;
Probe messages are sent to trunking by described two or two or more link mediums, so that the trunking is sharp The link configuration of described two or two or more link mediums is carried out with the configuration information;
For every kind of link medium, the corresponding link-quality of the link medium and link parameter are obtained, and according to the link Quality and the link parameter are that the link medium distributes weight;
Carried out data transmission according to the corresponding weight of every kind of link medium and the trunking.
6. method according to claim 5, it is characterised in that it is described according to the corresponding weight of every kind of link medium with it is described The process that trunking carries out data transmission, specifically includes:
Weight according to every kind of link medium determines the flow-rate ratio that every kind of link medium is shared, and is shared according to every kind of link medium Flow-rate ratio send data;Or,
Weight according to every kind of link medium determines the priority of every kind of link medium, and according to the priority of every kind of link medium And the priority of data sends data;Or,
The maximum link medium of weight is defined as primary link medium, other link mediums are defined as reserve link medium, When the primary link medium does not break down, data are sent by the primary link medium, event occurs in the primary link medium During barrier, it is switched to reserve link medium and sends data.
7. a kind of data transmission device, is applied to trunking, it is characterised in that described device includes:
Receiver module, for receiving the probe messages that routing device is sent by two or more link medium, wherein, The probe messages include configuration information;
Configuration module, the link configuration for carrying out described two or two or more link mediums using the configuration information;
Acquisition module, for for every kind of link medium, obtaining the corresponding link-quality of the link medium and link parameter, and It is that the link medium distributes weight according to the link-quality and the link parameter;
Sending module, for being carried out data transmission with routing device according to the corresponding weight of every kind of link medium.
8. device according to claim 7, it is characterised in that the probe messages that the receiver module is received specifically are wrapped Detection code and safety code are included, the safety code includes the configuration information after AES is encrypted, and the detection code is The corresponding detection code of the AES;
The configuration module, specifically for carrying out described two or two or more link mediums using the configuration information During link configuration, the corresponding AES of the safety code is determined using the detection code;Using the AES Treatment is decrypted to the safety code, the configuration information after being decrypted;Described two are carried out using the configuration information after decryption The link configuration of kind or two or more link mediums.
9. device according to claim 8, it is characterised in that the probe messages that the receiver module is received are described Any two kinds or more of transmissions that routing device passes through following link medium:Power line medium, Wireless LAN Medium, have Line ethernet medium, coaxial cable medium;
The configuration module, carries out described two or two or more links and is situated between specifically for the configuration information after using decryption During the link configuration of matter, for every kind of link medium, link Jie is carried out using the configuration information after the decryption The downlink configuration and uplink configuration of matter.
10. device according to claim 7, it is characterised in that
The sending module, specifically for carrying out data biography according to the corresponding weight of every kind of link medium and the routing device In defeated process, the weight according to every kind of link medium determines the flow-rate ratio that every kind of link medium is shared, and is situated between according to every kind of link The flow-rate ratio that matter is shared sends data;Or, the weight according to every kind of link medium determines the priority of every kind of link medium, root Data are sent according to the priority of every kind of link medium and the priority of data;Or, the maximum link medium of weight is determined It is main link medium, other link mediums is defined as reserve link medium, when the primary link medium does not break down, leads to Cross the primary link medium and send data, when the primary link medium breaks down, be switched to reserve link medium and send number According to.
A kind of 11. data transmission devices, are applied to routing device, it is characterised in that described device includes:
Generation module, corresponding probe messages, the probe messages are distinguished for generating two or more link medium Including configuration information;
Sending module, for sending probe messages to trunking by described two or two or more link mediums, so that The trunking carries out the link configuration of described two or two or more link mediums using the configuration information;
Acquisition module, for for every kind of link medium, obtaining the corresponding link-quality of the link medium and link parameter, and It is that the link medium distributes weight according to the link-quality and the link parameter;
The sending module, is additionally operable to be carried out data transmission according to the corresponding weight of every kind of link medium and the trunking.
12. devices according to claim 11, it is characterised in that
The sending module, specifically for carrying out data biography according to the corresponding weight of every kind of link medium and the trunking In defeated process, the weight according to every kind of link medium determines the flow-rate ratio that every kind of link medium is shared, and is situated between according to every kind of link The flow-rate ratio that matter is shared sends data;Or, the weight according to every kind of link medium determines the priority of every kind of link medium, root Data are sent according to the priority of every kind of link medium and the priority of data;Or, the maximum link medium of weight is determined It is main link medium, other link mediums is defined as reserve link medium, when the primary link medium does not break down, leads to Cross the primary link medium and send data, when the primary link medium breaks down, be switched to reserve link medium and send number According to.
CN201710047819.7A 2017-01-22 2017-01-22 Data transmission method and device Active CN106878165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710047819.7A CN106878165B (en) 2017-01-22 2017-01-22 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710047819.7A CN106878165B (en) 2017-01-22 2017-01-22 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN106878165A true CN106878165A (en) 2017-06-20
CN106878165B CN106878165B (en) 2020-02-11

Family

ID=59159060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710047819.7A Active CN106878165B (en) 2017-01-22 2017-01-22 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN106878165B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682881A (en) * 2017-09-14 2018-02-09 深圳市共进电子股份有限公司 Method for parameter configuration, device, repeater and the storage medium of wireless repeater
CN108449267A (en) * 2018-03-15 2018-08-24 东北大学 A kind of reliable routing algorithm based on link quality estimation
CN109088822A (en) * 2018-09-21 2018-12-25 平安科技(深圳)有限公司 Data traffic retransmission method, device, system, computer equipment and storage medium
CN109104231A (en) * 2018-08-01 2018-12-28 深圳鲲鹏无限科技有限公司 A method of wireless access point and realization multi-frequency radio relaying for relaying
CN109803293A (en) * 2019-01-02 2019-05-24 新华三技术有限公司 A kind of data transmission method and device
CN109890087A (en) * 2018-12-29 2019-06-14 华为终端有限公司 A kind of method and apparatus handling data packet
CN111405531A (en) * 2020-03-26 2020-07-10 上海有个机器人有限公司 Method, medium, terminal and device for improving communication quality
CN112866108A (en) * 2021-02-01 2021-05-28 迪莲娜(上海)大数据服务有限公司 Edge gateway link optimization method, system, medium and cloud management system
CN113193989A (en) * 2021-04-08 2021-07-30 普联国际有限公司 Remote configuration method, device, equipment and system of routing equipment
CN113300958A (en) * 2021-05-24 2021-08-24 北京字跳网络技术有限公司 Message transmission method and device, electronic equipment and storage medium
CN116095019A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Route processing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012174565A2 (en) * 2011-06-16 2012-12-20 Radiumone, Inc. Building a social graph with sharing activity between users of the open web
CN103312613A (en) * 2012-03-16 2013-09-18 中兴通讯股份有限公司 Service message forwarding method and device
CN104333914A (en) * 2013-07-22 2015-02-04 杭州华三通信技术有限公司 Method and equipment of establishing Mesh link
CN104683210A (en) * 2015-03-10 2015-06-03 杭州华三通信技术有限公司 Automatic tunnel establishing method and device
CN105075184A (en) * 2013-03-12 2015-11-18 华为技术有限公司 Method and system to represent the impact of load variation on service outage over multiple links
CN105281904A (en) * 2014-06-06 2016-01-27 佛山市顺德区美的电热电器制造有限公司 Message data encryption method and system, internet of things server and internet of things terminal
US20170070422A1 (en) * 2008-01-25 2017-03-09 At&T Intellectual Property I, L.P. System and Method for Restoration in a Multimedia IP Network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170070422A1 (en) * 2008-01-25 2017-03-09 At&T Intellectual Property I, L.P. System and Method for Restoration in a Multimedia IP Network
WO2012174565A2 (en) * 2011-06-16 2012-12-20 Radiumone, Inc. Building a social graph with sharing activity between users of the open web
CN103312613A (en) * 2012-03-16 2013-09-18 中兴通讯股份有限公司 Service message forwarding method and device
CN105075184A (en) * 2013-03-12 2015-11-18 华为技术有限公司 Method and system to represent the impact of load variation on service outage over multiple links
CN104333914A (en) * 2013-07-22 2015-02-04 杭州华三通信技术有限公司 Method and equipment of establishing Mesh link
CN105281904A (en) * 2014-06-06 2016-01-27 佛山市顺德区美的电热电器制造有限公司 Message data encryption method and system, internet of things server and internet of things terminal
CN104683210A (en) * 2015-03-10 2015-06-03 杭州华三通信技术有限公司 Automatic tunnel establishing method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682881B (en) * 2017-09-14 2020-10-27 深圳市共进电子股份有限公司 Parameter configuration method and device of wireless repeater, repeater and storage medium
CN107682881A (en) * 2017-09-14 2018-02-09 深圳市共进电子股份有限公司 Method for parameter configuration, device, repeater and the storage medium of wireless repeater
CN108449267A (en) * 2018-03-15 2018-08-24 东北大学 A kind of reliable routing algorithm based on link quality estimation
CN108449267B (en) * 2018-03-15 2020-08-07 东北大学 Reliable routing algorithm based on link quality estimation
CN109104231A (en) * 2018-08-01 2018-12-28 深圳鲲鹏无限科技有限公司 A method of wireless access point and realization multi-frequency radio relaying for relaying
CN109088822A (en) * 2018-09-21 2018-12-25 平安科技(深圳)有限公司 Data traffic retransmission method, device, system, computer equipment and storage medium
CN109890087A (en) * 2018-12-29 2019-06-14 华为终端有限公司 A kind of method and apparatus handling data packet
CN109890087B (en) * 2018-12-29 2022-08-09 华为终端有限公司 Method and device for processing data packet
CN109803293A (en) * 2019-01-02 2019-05-24 新华三技术有限公司 A kind of data transmission method and device
CN109803293B (en) * 2019-01-02 2022-05-24 新华三技术有限公司 Data transmission method and device
CN111405531A (en) * 2020-03-26 2020-07-10 上海有个机器人有限公司 Method, medium, terminal and device for improving communication quality
CN112866108A (en) * 2021-02-01 2021-05-28 迪莲娜(上海)大数据服务有限公司 Edge gateway link optimization method, system, medium and cloud management system
CN113193989A (en) * 2021-04-08 2021-07-30 普联国际有限公司 Remote configuration method, device, equipment and system of routing equipment
CN113300958A (en) * 2021-05-24 2021-08-24 北京字跳网络技术有限公司 Message transmission method and device, electronic equipment and storage medium
CN116095019A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Route processing method, device, equipment and storage medium
CN116095019B (en) * 2022-08-19 2024-03-26 荣耀终端有限公司 Route processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106878165B (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN106878165A (en) Data transmission method and device
CN104935593B (en) The transmission method and device of data message
Akyol et al. A survey of wireless communications for the electric power system
US8718055B2 (en) Fast-tracking approach for building routing topologies in fast-moving networks
US8335918B2 (en) MAC frame provision method and apparatus capable of establishing security in IEEE 802.15.4 network
Van Tran et al. TTM: An efficient mechanism to detect wormhole attacks in wireless ad-hoc networks
US20140281670A1 (en) Providing a backup network topology without service disruption
US11050663B2 (en) Fast and loss-free local recovery by a RPL parent device
US10904097B2 (en) Concurrent network reformation for low-power and lossy networks
US10785809B1 (en) Coordinating zero touch network joins
US9537593B2 (en) Dynamically adjusting route or link topology to minimize self-interference
US10693777B2 (en) In-situ operations, administration, and maintenance (iOAM) for software defined architectures (SDAs)
Van Phuong et al. Transmission time-based mechanism to detect wormhole attacks
CN107438247A (en) Wireless relay implementation method and device
Saad et al. Performance evaluation improvement of energy consumption in adhoc wireless network
Saad et al. Total energy consumption analysis in wireless mobile ad hoc network with varying mobile nodes
Rinaldi et al. Analisys of modular bridge platform for heterogeneous software defined networking in smart city applications
CN109275164A (en) Communication means, device and household appliance based on Mesh network
CN111262787A (en) Data transmission method and electronic equipment
Herms et al. Realism in design and evaluation of wireless routing protocols
Owada et al. OLSRv2 implementation and performance evaluation with link layer feedback
Nguyen et al. On optimal relay nodes position and selection for multi-path data streaming
Petz et al. Passive network-awareness for dynamic resource-constrained networks
JP6894125B2 (en) Communication equipment, communication methods and programs
Ikeda et al. Tools for performance assessment of OLSR protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220518

Address after: 510555 100, room 406, No. 1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Xinhuasan Intelligent Terminal Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.