CN106878165B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN106878165B
CN106878165B CN201710047819.7A CN201710047819A CN106878165B CN 106878165 B CN106878165 B CN 106878165B CN 201710047819 A CN201710047819 A CN 201710047819A CN 106878165 B CN106878165 B CN 106878165B
Authority
CN
China
Prior art keywords
link
medium
link medium
media
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.)
Active
Application number
CN201710047819.7A
Other languages
Chinese (zh)
Other versions
CN106878165A (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

Images

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

Data transmission method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method and apparatus.
Background
The rapid development of the internet brings great changes to the work and life of users, and in recent years, various wireless routers gradually enter common families. The convenience and high efficiency of wireless networks enable wireless routers to be rapidly popularized. However, the biggest problems of wireless routers in home use are: due to the existence of shelters such as concrete walls, steel bar keels, stone materials and the like, a coverage blind spot of a wireless signal exists in a part of the house area. At present, the method for solving the blind spot covered by the wireless signal is as follows: and (4) deploying relay equipment, and expanding the coverage range of the wireless signals through the relay equipment to achieve the purpose of sweeping the blind spots covered by the wireless signals.
Disclosure of Invention
The application provides a data transmission method, which is applied to relay equipment and 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.
The application provides a data transmission method, which is applied to a routing device, and the method comprises the following steps:
generating detection messages respectively corresponding to two or more than two link media, wherein the detection messages comprise configuration information;
sending a detection message to the relay equipment through the two or more link mediums so that the relay equipment performs 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 relay equipment according to the weight corresponding to each link medium.
The application provides a data transmission device, is applied to relay equipment, the device includes:
a receiving module, configured to receive a probe packet sent by a routing device through two or more link media, where the probe packet includes configuration information;
a configuration module, configured to perform link configuration of the two or more link mediums by using the configuration information;
an obtaining module, configured to obtain, for each link medium, link quality and link parameters corresponding to the link medium, and allocate a weight to the link medium according to the link quality and the link parameters;
and the sending module is used for carrying out data transmission with the routing equipment according to the weight corresponding to each link medium.
The application provides a data transmission device, is applied to the routing equipment, the device includes:
the system comprises a generation module, a transmission module and a processing module, wherein the generation module is used for generating detection messages respectively corresponding to two or more than two link media, and the detection messages comprise configuration information;
a sending module, configured to send a probe packet to a relay device through the two or more link mediums, so that the relay device performs link configuration on the two or more link mediums by using the configuration information;
an obtaining module, configured to obtain, for each link medium, link quality and link parameters corresponding to the link medium, and allocate a weight to the link medium according to the link quality and the link parameters;
the sending module is further configured to perform data transmission with the relay device according to the weight corresponding to each link medium.
Based on the above technical solution, in the embodiment of the present application, data transmission may be performed between the routing device and the relay device through two or more link media, so that when the transmission effect of a certain link medium is not good, data transmission may also be performed through other link media, thereby reducing the situation of data packet loss, ensuring the Quality and reliability of the relay device, improving the user experience, and achieving the purposes of expanding the uplink bandwidth, implementing QoS (Quality of Service) classification and uplink backup, and the like.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIG. 1 is a flow chart of a data transmission method in one embodiment of the present application;
FIG. 2 is a flow chart of a data transmission method in another embodiment of the present application;
FIG. 3 is a flow chart of a data transmission method in another embodiment of the present application;
FIG. 4 is a schematic diagram of an application scenario in an embodiment of the present application;
FIG. 5 is a diagram of a hardware configuration of a relay device in one embodiment of the present application;
FIG. 6 is a block diagram of a data transfer device according to an embodiment of the present application;
FIG. 7 is a hardware block diagram of a routing device in one embodiment of the present application;
fig. 8 is a block diagram of a data transfer device according to an embodiment of the present application.
Detailed Description
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
At present, the communication mode between the wireless router and the relay device is a wireless mode, that is, after the terminal device sends data to the relay device, the relay device sends the data to the wireless router in a wireless mode, and the wireless router sends the data to the Internet. However, due to the problems of wireless interference and the like, the network quality is reduced, and the data transmitted to the wireless router by the relay device is lost, which seriously affects the user experience.
The embodiment of the present application proposes a data transmission method, which may be applied to a system including a relay device (such as a wireless relay or a wired relay) and a routing device (such as a wireless router or a wired router), and as shown in fig. 1, is a flowchart of the data transmission method, and the data transmission method may be applied to the relay device, and the method may include the following steps:
step 101, receiving a detection message sent by a routing device through two or more link mediums.
The probe packet may include, but is not limited to, configuration information. Specifically, the detection packet may include a detection code and a security code, where the security code includes configuration information encrypted by an encryption algorithm, and the detection code is a detection code corresponding to the encryption algorithm. Based on the method, the encryption algorithm corresponding to the detection code carried by the detection message can be determined, and then the encryption algorithm can be used for decrypting the security code; in one embodiment, the configuration information may include, but is not limited to, one or any combination of the following: MAC (media access control) address and IP address of the routing device, SSID (service set identification) and password of the wireless local area network, wireless parameters.
And 102, performing link configuration of two or more link mediums by using the configuration information.
In one example, the process for "performing link configuration of two or more link mediums using the configuration information" may include, but is not limited to: determining an encryption algorithm corresponding to the security code by using the detection code; decrypting the security code by using the encryption algorithm to obtain decrypted configuration information; and performing link configuration of two or more link mediums by using the decrypted configuration information.
The two or more link mediums may include, but are not limited to, any two or more of the following: power line media, wireless local area network media, wired ethernet media, coaxial cable media.
In one example, the process of "performing link configuration of two or more link mediums using the decrypted configuration information" may include, but is not limited to, the following: and for each link medium, performing downlink configuration and uplink configuration of the link medium by using the decrypted configuration information.
Step 103, for each link medium, obtaining the link quality and the link parameter corresponding to the link medium, and assigning a weight to the link medium according to the link quality and the link parameter.
And 104, performing data transmission with the routing equipment according to the weight corresponding to each link medium.
In one example, the process of "performing data transmission with a routing device according to the weight corresponding to each link medium" may include, but is not limited to, the following ways: determining the flow rate shared by each link medium according to the weight of each link medium, and sending data to the routing equipment according to the flow rate shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data to the routing device according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, sending data to the routing device through the main link medium when the main link medium fails, and switching to the standby link medium to send data to the routing device when the main link medium fails.
Based on the same application concept as the method described above, referring to fig. 2, as a flowchart of the data transmission method, the data transmission method may be applied to a routing device, and the method may include the following steps:
step 201, generating two or more detection messages corresponding to link mediums respectively.
The probe packet may include, but is not limited to, configuration information.
Specifically, the detection packet may include a detection code and a security code, where the security code includes configuration information encrypted by an encryption algorithm, and the detection code is a detection code corresponding to the encryption algorithm. Based on this, the routing device may encrypt the configuration information using an encryption algorithm, add a detection code corresponding to the encryption algorithm to the detection packet, determine the encrypted configuration information as a security code, and add the security code to the detection packet; in one embodiment, the configuration information may include, but is not limited to, one or any combination of the following: MAC address and IP address of the routing device, SSID and password of the wireless local area network, and wireless parameters.
Step 202, sending a detection message to the relay device through the two or more link mediums, so that the relay device performs link configuration of the two or more link mediums by using the configuration information.
Step 203, for each link medium, obtaining the link quality and the link parameter corresponding to the link medium, and assigning a weight to the link medium according to the link quality and the link parameter.
And step 204, performing data transmission with the relay equipment according to the weight corresponding to each link medium.
In one example, the process of "performing data transmission with the relay device according to the weight corresponding to each link medium" may include, but is not limited to, the following manners: determining the flow rate shared by each link medium according to the weight of each link medium, and sending data to the relay equipment according to the flow rate shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data to the relay device according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data to the relay device through the main link medium when the main link medium fails, and switching to the standby link medium to transmit data to the relay device when the main link medium fails.
Referring to fig. 3, which is a flow chart of the data transmission method, the method may include the following steps:
step 301, the routing device generates two or more detection messages corresponding to the link mediums respectively.
In one example, two or more link mediums exist between the routing device and the relay device, and the two or more link mediums may include, but are not limited to, any two or more of the following: power line media, wireless local area network media, wired ethernet media, coaxial cable media.
Taking the example that there are a power line medium, a wireless local area network medium, and a wired ethernet medium between the routing device and the relay device, the routing device may generate a detection packet 1 for the power line medium, a detection packet 2 for the wireless local area network medium, and a detection packet 3 for the wired ethernet medium. For example, the probe packet 1 generated for the power line medium may be a DHCP (Dynamic host configuration Protocol) packet, the probe packet 2 generated for the wireless lan medium may be a Beacon packet, and the probe packet 3 generated for the wired ethernet medium may be a DHCP packet. In the embodiment of the application, the type of the detection message is not limited, and the type of the detection message can be selected according to actual needs.
In one example, when generating the probe packet, the routing device may add configuration information to the probe packet, where the configuration information may include, but is not limited to: media Access Control (MAC) address and IP address of the routing device, Service Set Identifier (SSID) and password of the wireless lan, wireless parameters (such as High Throughput (HT) mode, channel requirement, etc.), and other information. In practical application, the detection packet 1, the detection packet 2, and the detection packet 3 may carry the same configuration information, such as MAC address and IP address of the routing device, SSID and password of the wireless lan, and wireless parameter, and may also carry different configuration information.
Further, for security, the routing device may further encrypt the configuration information using a preset encryption algorithm, and add the encrypted configuration information to the detection message. Specifically, the routing device may encrypt the configuration information using a preset encryption algorithm, add a detection code corresponding to the preset encryption algorithm to the detection packet, determine the encrypted configuration information as a security code, and add the security code to the detection packet.
The detection code may be a character string, and different detection codes may correspond to different encryption algorithms, for example, the detection code a may correspond to the encryption algorithm 1, and the detection code B may correspond to the encryption algorithm 2, etc. Assuming that the routing device encrypts the configuration information using the encryption algorithm 1, the detection code a is added to the probe packet.
Step 302, the routing device sends the detection message to the relay device through the two or more link mediums.
Step 303, the relay device receives the detection packet sent by the routing device through two or more link mediums.
With respect to steps 302 and 303, in one example, the routing device may send the probe packet 1 to the relay device through the power line medium, and the relay device receives the probe packet 1 through the power line medium. Moreover, the routing device can send the detection message 2 to the relay device through the wireless local area network medium, and the relay device receives the detection message 2 through the wireless local area network medium. Furthermore, the routing device can send the detection message 3 to the relay device through the wired ethernet medium, and the relay device receives the detection message 3 through the wired ethernet medium.
In step 304, the relay device performs link configuration of two or more link mediums by using the configuration information (i.e. the configuration information carried in the probe packet).
In one example, the process for "performing link configuration of two or more link mediums using the configuration information" may include, but is not limited to: determining an encryption algorithm corresponding to the security code by using the detection code; decrypting the security code by using the encryption algorithm to obtain decrypted configuration information; and performing link configuration of two or more link mediums by using the decrypted configuration information.
Different detection codes can correspond to different encryption algorithms, and the relay equipment can maintain the corresponding relation between the detection codes and the encryption algorithms, such as the corresponding relation between the detection code A and the encryption algorithm 1, and the corresponding relation between the detection code B and the encryption algorithm 2. Based on this, in terms of the process of "the relay device determines the encryption algorithm corresponding to the security code by using the detection code", the relay device may first analyze the detection code (e.g., the detection code a) from the detection packet, and may obtain the encryption algorithm corresponding to the detection code, e.g., the encryption algorithm 1, etc., by querying the correspondence between the detection code and the encryption algorithm, which is the encryption algorithm corresponding to the security code.
The process of "performing link configuration of two or more link mediums by using the decrypted configuration information" may include, but is not limited to, the following manners: and for each of the two or more link mediums, performing downlink configuration and uplink configuration of the link medium by using the decrypted configuration information.
Step 305, for each link medium, the relay device obtains the link quality and the link parameter corresponding to the link medium, assigns a weight to the link medium according to the link quality and the link parameter, and performs data transmission with the routing device according to the weight corresponding to each link medium. The routing equipment acquires the link quality and the link parameter corresponding to the link medium, distributes the weight to the link medium according to the link quality and the link parameter, and performs data transmission with the relay equipment according to the weight corresponding to each link medium.
In one example, the process for the "relay device to perform data transmission with the routing device according to the weight corresponding to each link medium" may include, but is not limited to: the relay equipment determines the flow rate shared by each link medium according to the weight of each link medium, and sends data to the routing equipment according to the flow rate shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data to the routing device according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, sending data to the routing device through the main link medium when the main link medium fails, and switching to the standby link medium to send data to the routing device when the main link medium fails.
In one example, the process for "the routing device performs data transmission with the relay device according to the weight corresponding to each link medium" may include, but is not limited to: the routing equipment determines the flow rate shared by each link medium according to the weight of each link medium and sends data to the relay equipment according to the flow rate shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data to the relay device according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data to the relay device through the main link medium when the main link medium fails, and switching to the standby link medium to transmit data to the relay device when the main link medium fails.
In an example, if the relay device receives the probe packets sent by at least two routing devices within a preset time (that is, at least two routing devices send the probe packets to the relay device), the relay device may further select one routing device to be relayed from the at least two routing devices according to a preset policy, and for the selected routing device, the relay device performs link configuration of two or more link media by using the configuration information. The preset policy may include, but is not limited to: the priority of a link medium between the routing equipment and the relay equipment and/or the receiving sequence of the detection message. For example, assuming that the priority of the wired ethernet medium is higher than the priority of the power line medium, and the priority of the power line medium is higher than the priority of the wireless lan medium, if the relay device receives the probe packet sent by the routing device 1 through the wired ethernet medium, and receives the probe packet sent by the routing device 2 through the wireless lan medium, the routing device 1 is selected as the routing device to be relayed. If the relay device receives the detection message sent by the routing device 1 first and then receives the detection message sent by the routing device 2, the routing device 1 is selected as the routing device needing relaying. If the relay device receives the detection message sent by the routing device 1 through the wired ethernet medium, receives the detection message sent by the routing device 2 through the wired ethernet medium, receives the detection message sent by the routing device 1 first, then receives the detection message sent by the routing device 2, and selects the routing device 1 as the routing device to be relayed.
Based on the above technical solution, in the embodiment of the present application, data transmission may be performed between the routing device and the relay device through two or more link media, so that when the transmission effect of a certain link medium is not good, data transmission may also be performed through other link media, thereby reducing the situation of data packet loss, ensuring the Quality and reliability of the relay device, improving the user experience, and achieving the purposes of expanding the uplink bandwidth, implementing QoS (Quality of Service) classification and uplink backup, and the like.
The technical solution is described below with reference to the application scenario shown in fig. 4. A power line medium, a wireless local area network medium, a wired ethernet medium, and a coaxial cable medium exist between the relay device and the routing device. In practical applications, the present invention is not limited to the power line medium, the wireless lan medium, the wired ethernet medium, and the coaxial cable medium, but the power line medium, the wireless lan medium, and the wired ethernet medium are exemplified in fig. 2. The Power Line medium is a data Communication medium based on a Power Line, and may adopt a HomePlug (Home Plug Power Line Alliance) protocol, and a relay method based on the Power Line medium is called a PLC (Power Line Communication) relay. The coaxial cable medium is a data communication medium based on the cable television coaxial cable network and using an Ethernet protocol, a HomePlug protocol can be adopted, and a relay mode based on the coaxial cable medium is called coaxial cable relay. The wlan medium is a data communication medium based on ISM (industrial scientific Medical) channels (e.g., 2.4G, 5G, etc.), and may use IEEE802.11(Institute of Electrical and Electronics Engineers) protocol, and a relay method based on the wlan medium is called wireless relay. The wired ethernet medium is a data communication medium based on coaxial cable, twisted pair and optical fiber, and IEEE802.3 protocol can be adopted, and the relay method based on the wired ethernet medium is called wired relay.
In the application scenario, the data transmission method provided in the embodiment of the present application may include the following steps:
step 1, the user completes the configuration of the wireless local area network at the routing device, such as the configuration of the SSID and password of the wireless local area network, the information of wireless parameters (such as HT mode, channel requirements, etc.), and the process is not repeated.
And 2, the routing equipment generates detection messages for all link media supported by the equipment, such as a detection message 1 for a power line medium, a detection message 2 for a wireless local area network medium, and a detection message 3 for a wired Ethernet medium. The types of the detection messages corresponding to different link media may be different or the same, for example, the detection message 1 generated for the power line medium may be a DHCP message, the detection message 2 generated for the wireless lan medium may be a Beacon message, and the detection message 3 generated for the wired ethernet medium may be a DHCP message. In the embodiment of the present application, the type of the probe packet is not limited.
And step 3, the routing equipment periodically sends detection messages to the relay equipment through each link medium.
And 4, the relay equipment receives the detection message sent by the routing equipment through each link medium.
For example, the routing device may periodically send the probe message 1 to the relay device over the powerline medium, so that the relay device receives the probe message 1 over the powerline medium. Furthermore, the routing device may periodically send the probe packet 2 to the relay device through the wireless lan medium, so that the relay device receives the probe packet 2 through the wireless lan medium. Furthermore, the routing device may periodically send the probe packet 3 to the relay device through the wired ethernet medium, so that the relay device receives the probe packet 3 through the wired ethernet medium.
The period of sending the detection message by the routing equipment can be configured according to actual experience, and the detection message is sent through each link medium every time the sending period is reached. In one example, if the period of the probe packet is short, the sending frequency of the probe packet is high, which may occupy more resources, and if the period of the probe packet is long, the sending frequency of the probe packet is low, which may cause the relay device not to receive the probe packet in time. In one embodiment, the period of the probe message is set to 60 seconds.
In one example, when generating the probe packet, the routing device may add configuration information to the probe packet, where the configuration information may include, but is not limited to: the MAC address and IP address of the routing device, SSID and password of the wireless lan, wireless parameters (e.g., HT mode, channel requirements, etc.), and so on.
Further, for security, the routing device may further encrypt the configuration information using a preset encryption algorithm, and add the encrypted configuration information to the detection message. Specifically, the routing device may encrypt the configuration information using a preset encryption algorithm, add a detection code corresponding to the preset encryption algorithm to the detection packet, determine the encrypted configuration information as a security code, and add the security code to the detection packet.
The detection code may be a character string, and different detection codes may correspond to different encryption algorithms, for example, the detection code a may correspond to the encryption algorithm 1, and the detection code B may correspond to the encryption algorithm 2, etc. Assuming that the routing device encrypts the configuration information using the encryption algorithm 1, the detection code a is added to the probe packet.
A Vendor Specific field may be added to the probe message, and a detection code and a security code may be added to the Vendor Specific field, where the content of the detection code is a character string with a fixed length, and the content of the security code is encrypted configuration information. As shown in Table 1, an example of a Vendor Specific field, an Element ID of 100 indicates that the content of the Value field is a detection code. The Element ID is 101, which indicates that the content of the Value field is a security code, and the security code is configuration information encrypted by an Encryption algorithm (such as an AES (Advanced Encryption Standard) algorithm, a DES (Data Encryption Standard) algorithm, and the like) corresponding to the detection code a.
TABLE 1
Element ID field Value field
100 Detection code A
101 Security code X
In one example, different identifiers may be used to indicate that the current packet is a probe packet, since the packet encapsulation formats used by different link mediums are different. For example, for the power line medium, a Type value in the MAC Header of the probe packet may be set to be a first identifier (e.g. 1111) to indicate that the current packet is the probe packet, and if the relay device receives the packet through the power line medium, the Type value in the MAC Header is analyzed to be 1111, and it is determined that the packet is the probe packet. For the wireless lan medium, the Type value in the MAC Header of the probe packet may be set to the second identifier (e.g., 0000), and the Subtype value in the MAC Header may be set to 1111, so as to indicate that the current packet is the probe packet, and if the relay device receives the packet through the wireless lan medium, the Type value in the MAC Header is analyzed to be 0000, and the Subtype value in the MAC Header is 1111, it is determined that the packet is the probe packet. For a wired ethernet medium, the Type value in the MAC Header of the detection packet may be set to 1111, so as to indicate that the current packet is the detection packet, and if the relay device receives the packet through the wired ethernet medium, the Type value in the MAC Header is analyzed to 1111, and it is determined that the packet is the detection packet.
Step 5, if the relay equipment only receives the detection message sent by one routing equipment within the preset time, determining the routing equipment as the routing equipment needing relaying; and if the relay equipment receives the detection messages sent by the at least two routing equipment, selecting one routing equipment needing relaying from the at least two routing equipment according to a preset strategy. Further, the relay device executes step 6 for the routing device that needs to be relayed.
The relay device may wait for a preset time, and select a routing device to be relayed based on all the detection messages received within the preset time. In one example, if the preset time is short, the relay device may not be able to associate with the ideal routing device, and if the preset time is long, it may result in a slow speed for the relay device to complete network relay. In one embodiment, the preset time is set to 60 seconds.
The preset policy may include, but is not limited to: the priority of a link medium between the routing equipment and the relay equipment and/or the receiving sequence of the detection message. For example, assuming that the priority of the wired ethernet medium is higher than the priority of the power line medium, and the priority of the power line medium is higher than the priority of the wireless lan medium, if the relay device receives the probe packet sent by the routing device 1 through the wired ethernet medium, and receives the probe packet sent by the routing device 2 through the wireless lan medium, the routing device 1 is selected as the routing device to be relayed. If the relay device receives the detection message sent by the routing device 1 first and then receives the detection message sent by the routing device 2, the routing device 1 is selected as the routing device needing relaying. If the relay device receives the detection message sent by the routing device 1 through the wired ethernet medium, receives the detection message sent by the routing device 2 through the wired ethernet medium, receives the detection message sent by the routing device 1 first, and then receives the detection message sent by the routing device 2, then the routing device 1 is selected as the routing device to be relayed.
And 6, the relay equipment analyzes the detection code and the safety code from the received detection message.
For the above detection packet 1, detection packet 2, and detection packet 3, the processing procedures of the relay device are the same, and for simplifying the description, the following description will take an example of processing one detection packet by the relay device as an example.
In one example, after receiving the probe message, the relay device may analyze a VendorSpecific field of the probe message and find a Value field corresponding to the Element ID100, where the content of the Value field is a detection code (e.g., detection code a). Furthermore, the relay device may also find a Value field corresponding to the Element ID101, where the content of the Value field is the encrypted security code (e.g., security code X).
And 7, the relay equipment determines an encryption algorithm corresponding to the security code by using the detection code.
Different detection codes can correspond to different encryption algorithms, and the relay equipment can maintain the corresponding relation between the detection codes and the encryption algorithms, such as the corresponding relation between the detection code A and the encryption algorithm 1, and the corresponding relation between the detection code B and the encryption algorithm 2. Based on this, aiming at the process that the relay device determines the encryption algorithm corresponding to the security code by using the detection code, the relay device can obtain the encryption algorithm corresponding to the detection code by inquiring the corresponding relation between the detection code and the encryption algorithm, and the encryption algorithm is also the encryption algorithm corresponding to the security code.
And 8, the relay equipment decrypts the security code (namely, the encrypted security code analyzed from the detection message) by using the encryption algorithm to obtain the decrypted configuration information.
In one example, the configuration information may include MAC address and IP address of the routing device, SSID and password of the wireless lan, wireless parameters (e.g., HT mode, channel requirements), and so on.
Based on this, the relay device may also check whether the MAC address in the security code is consistent with the actual MAC address of the probe packet (i.e., the source MAC address of the probe packet). If the detection messages are consistent, the verification is successful, the detection messages pass through the safety authentication, if the detection messages are inconsistent, the verification fails, and the detection messages are discarded.
And 9, the relay equipment determines a link medium between the relay equipment and the routing equipment.
In an example, since the relay device may receive the probe packet sent by the routing device through a power line medium, a wireless local area network medium, a wired ethernet medium, and a coaxial cable medium, the relay device may determine that a link medium between the relay device and the routing device is the power line medium, the wireless local area network medium, the wired ethernet medium, and the coaxial cable medium.
And step 10, the relay equipment performs link configuration of each link medium by using the decrypted configuration information.
For each link medium, the relay device may perform downlink configuration of the link medium by using the decrypted configuration information, and perform uplink configuration of the link medium by using the decrypted configuration information.
The process for "uplink configuration of power line medium/coaxial cable medium by relay device using configuration information" may include, but is not limited to, the following ways: the relay device may set the port to a link layer interworking mode; the relay device can use the configuration information to complete registration in the routing device, and apply for a link identifier (namely, a link identifier used in subsequent message transmission) from the routing device; based on the IP address of the routing device, the IP address is applied from the routing device in a DHCP (Dynamic Host configuration protocol) manner, and the default route of the relay device is set as the IP address of the routing device.
For the process of 'the relay device performs uplink configuration of the wired ethernet medium by using the configuration information', the port may be set to a link layer interworking mode; and applying for the IP address from the routing equipment in a DHCP mode based on the IP address of the routing equipment, and setting the default route of the relay equipment as the IP address of the routing equipment.
For the process of configuring the uplink of the wireless local area network medium by the relay device by using the configuration information, the relay device can set the port to be in a link layer intercommunication mode; based on SSID and password of wireless local area network, the relay device tries to connect with wireless network of the routing device and establishes wireless connection with the routing device, after the wireless connection is successfully established, based on IP address of the routing device, the relay device can apply for IP address from the routing device in DHCP mode and set default route as IP address of the routing device.
For the process of "the relay device performs downlink configuration of the power line medium, the coaxial cable medium, the wired ethernet medium, and the wireless lan medium using the configuration information", the relay device may set the relay device to a Client (Client) mode based on wireless parameters (such as HT mode and channel requirements), perform setting of a downlink wireless network, and store the wireless parameters in a configuration file.
Wherein the wireless parameter is a suggestion of the wireless parameter of the relay device by the routing device. For example, when the routing device is a multi-frequency wireless router and the relay device is a multi-frequency wireless relay device, the routing device suggests the relay device to relay a wireless signal of the routing device in a 5.1G manner, that is, when the terminal device transmits data to the relay device in a 2.4G or 5.8G manner, the relay device transmits the data to the routing device in a 5.1G manner, which is equivalent to designating the relay device to use a 5.1G frequency band as a wireless relay and use 2.4G and 5.8G frequency bands as wireless coverage.
And 11, aiming at each link medium, the relay equipment acquires the link quality and the link parameter corresponding to the link medium, distributes the weight to the link medium according to the link quality and the link parameter, and performs data transmission with the routing equipment according to the weight corresponding to each link medium. The routing equipment acquires the link quality and the link parameter corresponding to the link medium, distributes the weight to the link medium according to the link quality and the link parameter, and performs data transmission with the relay equipment according to the weight corresponding to each link medium.
In the process of acquiring the link quality (i.e., the quality of the uplink) corresponding to the power line medium, the relay device may send an ICMP (Internet Control Message Protocol) request Message to the routing device through the power line medium according to a certain time period (e.g., 1 second), and receive an ICMP response Message returned by the routing device through the power line medium. Based on the content of the ICMP response message, such as packet loss rate, message delay and the like, the relay device can count the link quality corresponding to the power line medium. For example, the link quality is better when the packet loss rate is lower, and the link quality is worse when the packet loss rate is higher; the link quality is better when the message delay is smaller, and the link quality is worse when the message delay is larger.
Similarly, the process of acquiring the link quality corresponding to the wireless local area network medium/wired ethernet medium for the relay device is similar to the process of acquiring the link quality corresponding to the power line medium, and the difference is that: sending an ICMP request message to the routing device through the wlan medium/wired ethernet medium, and receiving an ICMP response message returned by the routing device through the wlan medium/wired ethernet medium, which is not described herein again.
The link parameters may include, but are not limited to, parameters such as connection rate, connection bandwidth, link priority, and the like, and the relay device may directly acquire the parameters such as connection rate, connection bandwidth, link priority, and the like. For example, a connection rate a, a connection bandwidth a of the power line medium, a connection rate B, a connection bandwidth B of the wireless lan medium, a connection rate C, a connection bandwidth C of the wired ethernet medium. The priority of the wired ethernet medium is superior to the priority of the powerline medium, which is superior to the priority of the wireless lan medium.
In the process of "the relay device assigns a weight to a link medium according to the link quality and the link parameter", the weight corresponding to each link medium may be a constant, and is assigned based on a preset policy with reference to factors such as the link quality and the link parameter. In the process of assigning the weight, one example of the preset policy may be: the weight of the unreachable link medium is 0. For the reachable link medium, if the link quality is better, the assigned weight is larger, and if the link quality is worse, the assigned weight is smaller; if the connection rate is larger, the assigned weight is larger, and if the connection rate is smaller, the assigned weight is smaller; if the connection bandwidth is larger, the assigned weight is larger, and if the connection bandwidth is smaller, the assigned weight is smaller; the larger the link priority, the larger the weight assigned, and the smaller the link priority, the smaller the weight assigned.
The preset policy may be configured according to actual experience, and is not limited if the above policy is adopted. In the following process, for convenience of description, the weight assigned to the wired ethernet medium is 6, the weight assigned to the power line medium is 3, and the weight assigned to the wireless lan medium is 1.
For the process of "the relay device performs data transmission with the routing device according to the weight of each link medium", the relay device may perform data transmission with the routing device in different manners according to the routing policy selected by the user. For example, if the routing policy is a link load balancing policy, the relay device determines a traffic ratio shared by each link medium according to the weight of each link medium, and sends data to the routing device according to the traffic ratio shared by each link medium. If the routing strategy is a Quality of Service (QOS) strategy, the relay device determines the priority of each link medium according to the weight of each link medium, and sends data to the routing device according to the priority of each link medium and the priority of the data. If the routing strategy is a link backup function strategy, the relay equipment determines the link medium with the maximum weight as a main link medium and determines other link media as backup link media, and when the main link medium fails, the relay equipment sends data to the routing equipment through the main link medium, and when the main link medium fails, the relay equipment switches to the backup link medium to send the data.
In the first case, the relay device determines the traffic ratio shared by each link medium according to the weight of each link medium, and sends data to the routing device according to the traffic ratio shared by each link medium. For example, assuming that the weight of the wired ethernet medium is 6, the weight of the power line medium is 3, and the weight of the wireless lan medium is 1, the ratio of the shared traffic of the wired ethernet medium, the power line medium, and the wireless lan medium is 6:3:1, that is, for 10 data packets, 6 data packets may be sent through the wired ethernet medium, 3 data packets may be sent through the power line medium, and 1 data packet may be sent through the wireless lan medium.
To achieve the above functionality, in one embodiment: after receiving the data message, performing HASH calculation according to the content (such as a source MAC address, a source IP address, a destination MAC address, a message feature code and the like) of a fixed field of the data message to obtain a HASH abstract, performing remainder processing on the HASH abstract and the weight sum 10, if the remainder result is 0-5, transmitting the data message through a wired Ethernet medium, if the remainder result is 6-8, transmitting the data message through a power line medium, and if the remainder result is 9, transmitting the data message through a wireless local area network medium.
Of course, the above-mentioned method is only an example, and all the methods that can achieve "for 10 data packets, 6 data packets are sent through a wired ethernet medium, 3 data packets are sent through a power line medium, and 1 data packet is sent through a wireless lan medium" are within the scope of the present application.
And in the second case, the relay equipment determines the priority of each link medium according to the weight of each link medium and sends data to the routing equipment according to the priority of each link medium and the priority of the data.
For example, assuming that the weight of the wired ethernet medium is 6, the weight of the power line medium is 3, and the weight of the wireless lan medium is 1, the priority of the wired ethernet medium is better than the priority of the power line medium, and the priority of the power line medium is better than the priority of the wireless lan medium. Moreover, the service type can be identified according to fields such as message feature codes (such as numerical values of a certain fixed field) and destination IP addresses of the data, the identification mode is not limited, and the priority of the data is determined based on the service type. Further, the data with high priority may be forwarded through a link medium with high priority, the data with medium priority may be forwarded through a link medium with medium priority, and the data with low priority may be forwarded through a link medium with low priority.
And thirdly, the relay equipment determines the link medium with the maximum weight as a main link medium, determines other link media as standby link media, transmits data to the routing equipment through the main link medium when the main link medium fails, and switches to the standby link medium to transmit the data when the main link medium fails.
For example, assuming that the wired ethernet medium has a weight of 6, the power line medium has a weight of 3, and the wireless lan medium has a weight of 1, the wired ethernet medium is determined as the primary link medium, and the power line medium and the wireless lan medium are determined as the backup link medium. And when the wired Ethernet medium does not fail, all data is transmitted to the routing equipment through the wired Ethernet medium. When the wired Ethernet medium fails, the power line medium is switched to the main link medium, and all data are sent to the routing device through the power line medium.
In one example, when the network environment changes, the link quality corresponding to each link medium changes, and the weight assigned to each link medium changes. For the first case, when the weight of the link medium changes, the traffic ratio shared by each link medium is determined again, and data is sent to the routing device according to the traffic ratio shared by each link medium. In case two, when the weight of the link medium changes, the priority of each link medium is determined again, and the data is sent to the routing device according to the priority of each link medium and the priority of the data. Details of the first case and the second case are not described in detail.
However, in case three, when the weight of the link medium changes, the main link medium may be switched to the standby link medium, and the standby link medium is switched to the main link medium, and the main-standby switching may cause a temporary interruption of the network, which affects user experience. Based on this, in order to avoid repeatedly adjusting the main link medium/the standby link medium, a link resilient mechanism may be introduced to solve the problem of repeatedly adjusting the main link medium/the standby link medium.
For example, the upper limit of the link flexibility is set to a first value (e.g., 3), and the initial value of the number of link switches is set to a first value of 3. Because the relay device periodically counts the link quality, when the link quality corresponding to the link medium is counted each time, if a master/slave switching event (indicating that the link is unstable) occurs based on the current link quality, the link switching frequency is reduced by 1; if the main/standby switching event does not occur (indicating that the link is stable) based on the current link quality, if the link switching frequency is a first value, keeping the link switching frequency unchanged, if the link switching frequency is smaller than the first value, adding 1 to the link switching frequency, and so on.
Further, when the main link medium is not failed, if the number of link switching times is not 0, "switching the main link medium to the backup link medium and switching the backup link medium to the main link medium" may not be performed, and if the number of link switching times is 0, "switching the main link medium to the backup link medium and switching the backup link medium to the main link medium" may be performed. However, when the main link medium fails, it indicates that the main link medium is not reachable, and at this time, the standby link medium may be switched to the main link medium.
In an example, for a process of "the routing device obtains the link quality corresponding to the link medium", the routing device may adopt the manner of obtaining the link quality by the relay device, which is not described herein again, or the relay device may notify the routing device of the link quality corresponding to each link medium after obtaining the link quality corresponding to each link medium, so that the routing device obtains the link quality corresponding to each link medium, which is not described herein again. For the process of "the routing device obtains the link parameter corresponding to the link medium and assigns the weight to the link medium according to the link quality and the link parameter", refer to the processing of the relay device described above, which is not described herein again. For the process of "the routing device performs data transmission with the relay device according to the weight of each link medium", refer to the data transmission process of the relay device, and details are not repeated here.
Through the above processing, the relay device can relay the data of the routing device successfully, and after the relay device relays the data of the routing device successfully, the relay device can set an LED (Light Emitting Diode) indicator lamp to a normally on state to prompt the user that the relay has been successful. Of course, the user may also be prompted by other states of the LED indicator light that the relay has been successful, and the process is not limited.
Based on the same application concept as the method, the embodiment of the application also provides a data transmission device, and the data transmission device can be applied to the relay equipment. The data transmission device may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, as a logical means, the device is formed by reading a corresponding computer program instruction in the nonvolatile memory through a processor of the relay device where the device is located. In terms of hardware, as shown in fig. 5, for a hardware structure diagram of a relay device where the data transmission apparatus provided by the present application is located, in addition to the processor and the nonvolatile memory shown in fig. 5, the relay device may further include other hardware, such as a forwarding chip, a network interface, and a memory, which are responsible for processing a packet; in terms of hardware structure, the relay device may also be a distributed device, and may include a plurality of interface cards, so as to perform an extension of message processing at a hardware level.
As shown in fig. 6, a block diagram of a data transmission device proposed in the present application includes:
a receiving module 11, configured to receive a probe packet sent by a routing device through two or more link media, where the probe packet includes configuration information; a configuration module 12, configured to perform link configuration of the two or more link mediums by using the configuration information; an obtaining module 13, configured to obtain, for each link medium, link quality and link parameter corresponding to the link medium, and allocate a weight to the link medium according to the link quality and the link parameter; and a sending module 14, configured to perform data transmission with the routing device according to the weight corresponding to each link medium.
In an example, the detection packet received by the receiving module 11 specifically includes a detection code and a security code, where the security code includes configuration information encrypted by an encryption algorithm, and the detection code is a detection code corresponding to the encryption algorithm; in one embodiment, the configuration information includes one or any combination of the following: the media access control MAC address and the IP address of the routing equipment, the service set identifier SSID and the password of the wireless local area network and wireless parameters;
the configuration module 12 is specifically configured to determine, by using the detection code, an encryption algorithm corresponding to the security code in a process of performing link configuration on the two or more link media by using the configuration information; decrypting the security code by using the encryption algorithm to obtain decrypted configuration information; and performing link configuration of the two or more link mediums by using the decrypted configuration information.
In an example, the probe packet received by the receiving module 11 is sent by the routing device through any two or more of the following link media: power line media, wireless local area network media, wired ethernet media, coaxial cable media;
the configuration module 12 is specifically configured to, in the process of performing link configuration on the two or more link mediums by using the decrypted configuration information, perform downlink configuration and uplink configuration on the link medium by using the decrypted configuration information for each link medium.
The sending module 14 is specifically configured to, during data transmission with the routing device according to the weight corresponding to each link medium, determine a traffic ratio shared by each link medium according to the weight of each link medium, and send data according to the traffic ratio shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data through the main link medium when the main link medium fails, and switching to the standby link medium to transmit data when the main link medium fails.
Based on the same application concept as the method, the embodiment of the application also provides a data transmission device, and the data transmission device can be applied to the routing equipment. The data transmission device may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, as a logical means, the device is formed by reading corresponding computer program instructions in the nonvolatile memory through the processor of the routing device where the device is located. From a hardware aspect, as shown in fig. 7, for a hardware structure diagram of a routing device where the data transmission apparatus provided by the present application is located, in addition to the processor and the nonvolatile memory shown in fig. 7, the routing device may further include other hardware, such as a forwarding chip, a network interface, and a memory, which are responsible for processing a packet; in terms of hardware structure, the routing device may also be a distributed device, and may include a plurality of interface cards, so as to perform packet processing extension at a hardware level.
As shown in fig. 8, a block diagram of a data transmission device proposed in the present application includes:
a generating module 21, configured to generate detection packets corresponding to two or more link media, where each detection packet includes configuration information; a sending module 22, configured to send a probe packet to a relay device through the two or more link mediums, so that the relay device performs link configuration on the two or more link mediums by using the configuration information; an obtaining module 23, configured to obtain, for each link medium, link quality and link parameter corresponding to the link medium, and allocate a weight to the link medium according to the link quality and the link parameter; the sending module 22 is further configured to perform data transmission with the relay device according to the weight corresponding to each link medium.
The sending module 22 is specifically configured to, during data transmission with the relay device according to the weight corresponding to each link medium, determine a traffic ratio shared by each link medium according to the weight of each link medium, and send data according to the traffic ratio shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data through the main link medium when the main link medium fails, and switching to the standby link medium to transmit data when the main link medium fails.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A data transmission method applied to a relay device is characterized by comprising 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; the two or more link mediums include any two or more of: power line media, wireless local area network media, wired ethernet media, coaxial cable media;
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.
2. The method according to claim 1, wherein the detecting the packet specifically includes: the detection method comprises the steps of detecting a code and a safety code, wherein the safety code comprises configuration information encrypted by an encryption algorithm, and the detection code is a detection code corresponding to the encryption algorithm; the process of performing link configuration of the two or more link mediums by using the configuration information specifically includes:
determining an encryption algorithm corresponding to the security code by using the detection code;
decrypting the security code by using the encryption algorithm to obtain decrypted configuration information;
and performing link configuration of the two or more link mediums by using the decrypted configuration information.
3. The method according to claim 2, wherein the process of performing link configuration of the two or more link mediums by using the decrypted configuration information specifically includes:
and for each link medium, performing downlink configuration and uplink configuration of the link medium by using the decrypted configuration information.
4. The method according to claim 1, wherein the process of performing data transmission with the routing device according to the weight corresponding to each link medium specifically includes:
determining the flow rate shared by each link medium according to the weight of each link medium, and sending data according to the flow rate shared by each link medium; alternatively, the first and second electrodes may be,
determining the priority of each link medium according to the weight of each link medium, and sending data according to the priority of each link medium and the priority of the data; alternatively, the first and second electrodes may be,
determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data through the main link medium when the main link medium is not failed, and switching to the standby link medium to transmit data when the main link medium is failed.
5. A data transmission method is applied to a routing device, and is characterized in that the method comprises the following steps:
generating detection messages respectively corresponding to two or more than two link media, wherein the detection messages comprise configuration information; the two or more link mediums include any two or more of: power line media, wireless local area network media, wired ethernet media, coaxial cable media;
sending a detection message to the relay equipment through the two or more link mediums so that the relay equipment performs 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 relay equipment according to the weight corresponding to each link medium.
6. The method according to claim 5, wherein the process of performing data transmission with the relay device according to the weight corresponding to each link medium specifically includes:
determining the flow rate shared by each link medium according to the weight of each link medium, and sending data according to the flow rate shared by each link medium; alternatively, the first and second electrodes may be,
determining the priority of each link medium according to the weight of each link medium, and sending data according to the priority of each link medium and the priority of the data; alternatively, the first and second electrodes may be,
determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data through the main link medium when the main link medium is not failed, and switching to the standby link medium to transmit data when the main link medium is failed.
7. A data transmission apparatus applied to a relay device, the apparatus comprising:
a receiving module, configured to receive a probe packet sent by a routing device through two or more link media, where the probe packet includes configuration information; the detection message received by the receiving module is sent by the routing device through any two or more of the following link media: power line media, wireless local area network media, wired ethernet media, coaxial cable media;
a configuration module, configured to perform link configuration of the two or more link mediums by using the configuration information;
an obtaining module, configured to obtain, for each link medium, link quality and link parameters corresponding to the link medium, and allocate a weight to the link medium according to the link quality and the link parameters;
and the sending module is used for carrying out data transmission with the routing equipment according to the weight corresponding to each link medium.
8. The apparatus according to claim 7, wherein the probe packet received by the receiving module specifically includes a detection code and a security code, the security code includes configuration information encrypted by an encryption algorithm, and the detection code is a detection code corresponding to the encryption algorithm;
the configuration module is specifically configured to determine, by using the detection code, an encryption algorithm corresponding to the security code in a process of performing link configuration on the two or more link media by using the configuration information; decrypting the security code by using the encryption algorithm to obtain decrypted configuration information; and performing link configuration of the two or more link mediums by using the decrypted configuration information.
9. The apparatus of claim 8,
the configuration module is specifically configured to, in a process of performing link configuration of the two or more link mediums by using the decrypted configuration information, perform, for each link medium, downlink configuration and uplink configuration of the link medium by using the decrypted configuration information.
10. The apparatus of claim 7,
the sending module is specifically configured to determine a traffic ratio shared by each link medium according to the weight of each link medium in a process of performing data transmission with the routing device according to the weight corresponding to each link medium, and send data according to the traffic ratio shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data through the main link medium when the main link medium fails, and switching to the standby link medium to transmit data when the main link medium fails.
11. A data transmission apparatus applied to a routing device, the apparatus comprising:
the system comprises a generation module, a transmission module and a processing module, wherein the generation module is used for generating detection messages respectively corresponding to two or more than two link media, and the detection messages comprise configuration information; the two or more link mediums include any two or more of: power line media, wireless local area network media, wired ethernet media, coaxial cable media;
a sending module, configured to send a probe packet to a relay device through the two or more link mediums, so that the relay device performs link configuration on the two or more link mediums by using the configuration information;
an obtaining module, configured to obtain, for each link medium, link quality and link parameters corresponding to the link medium, and allocate a weight to the link medium according to the link quality and the link parameters;
the sending module is further configured to perform data transmission with the relay device according to the weight corresponding to each link medium.
12. The apparatus of claim 11,
the sending module is specifically configured to determine a traffic ratio shared by each link medium according to the weight of each link medium in a process of performing data transmission with the relay device according to the weight corresponding to each link medium, and send data according to the traffic ratio shared by each link medium; or, determining the priority of each link medium according to the weight of each link medium, and sending data according to the priority of each link medium and the priority of the data; or, determining the link medium with the largest weight as a main link medium, determining other link media as standby link media, transmitting data through the main link medium when the main link medium fails, and switching to the standby link medium to transmit data when the main link medium fails.
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 CN106878165A (en) 2017-06-20
CN106878165B true 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)

Families Citing this family (11)

* 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
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
CN109088822B (en) * 2018-09-21 2022-08-16 平安科技(深圳)有限公司 Data flow forwarding method, device, system, computer equipment and storage medium
CN109890087B (en) * 2018-12-29 2022-08-09 华为终端有限公司 Method and device for processing data packet
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
CN116095019B (en) * 2022-08-19 2024-03-26 荣耀终端有限公司 Route processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7830785B2 (en) * 2008-01-25 2010-11-09 At&T Labs, Inc. 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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106878165A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106878165B (en) Data transmission method and device
CN110710162B (en) System and method for setting up mesh network using universal gateway node
US8121053B2 (en) Multi-radio wireless mesh network solutions
JP6240273B2 (en) Authentication using DHCP service in mesh networks
JP4281768B2 (en) Communication system, radio communication apparatus and control method thereof
US8582476B2 (en) Communication relay device and communication relay method
US20150078167A1 (en) Systems and Methods for Providing LTE-Based Backhaul
US10187296B2 (en) Access node device for forwarding data packets
JP2007074297A (en) Method for setting security of wireless communication network, security setting program, wireless communication network system, and client apparatus
JP2016538770A (en) System and method for integrated mesh authentication and association
CN111510365B (en) Wi-Fi data packet-based device bridging cloud method, device and medium
US11743173B2 (en) Independent redundant path discovery for Bluetooth mesh
CN107079524A (en) The method and controller of a kind of data forwarding
CN113068181B (en) Multi-type intelligent terminal safety network access method
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
US20130203454A1 (en) Method and arrangement for resource allocation in radio communication
JP2011199340A (en) Communication apparatus and method, and communication system
US9742578B2 (en) Simple mesh network for wireless transceivers
WO2017095303A1 (en) Provisioning node, communication node and methods therein for handling key identifiers in wireless communication
US10873897B2 (en) Base station device, base station management device, communication control method, and communication control system
Kim et al. Cross‐layer scheduling for multi‐users in cognitive multi‐radio mesh networks
CN113364893B (en) Data transmission method, device and system
KR101472914B1 (en) Apparatus and method for black hole attack detection
Inokuchi et al. Throughput improvement by disruption-suppressed channel switching in multi-channel Ad-hoc networks

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.