(19)
(11) EP 3 068 164 A1

(12) EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43) Date of publication:
14.09.2016 Bulletin 2016/37

(21) Application number: 14868822.9

(22) Date of filing: 10.07.2014
(51) International Patent Classification (IPC): 
H04W 28/08(2009.01)
(86) International application number:
PCT/CN2014/081944
(87) International publication number:
WO 2015/085763 (18.06.2015 Gazette 2015/24)
(84) Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME

(30) Priority: 10.12.2013 CN 201310673547

(71) Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72) Inventor:
  • TIAN, Xu
    Shenzhen Guangdong 518129 (CN)

(74) Representative: Maiwald Patentanwalts GmbH 
Engineering Elisenhof Elisenstrasse 3
80335 München
80335 München (DE)

   


(54) DATA TRANSMISSION METHOD AND ROUTER


(57) Embodiments of the present invention provide a data transmission method and a router, which are used to obtain a load sharing scheme according to current status information of a network, and perform data transmission according to the load sharing scheme, so as to improve data transmission efficiency. The method includes: communicating, by a first router, with a second router over multiple radio links; acquiring, by the first router, status information of each radio link; determining a transmission overhead of each radio link according to the status information of each radio link; determining load sharing of each radio link according to the transmission overhead of each radio link; and sending data to the second router according to the load sharing of each radio link.




Description


[0001] This application claims priority to Chinese Patent Application No. 201310673547.3, filed with the Chinese Patent Office on December 10, 2013 and entitled "DATA TRANSMISSION METHOD AND ROUTER", which is incorporated herein by reference in its entirety.

TECHNICAL FIELD



[0002] The present invention relates to the field of communications technologies, and in particular, to a data transmission method and a router.

BACKGROUND



[0003] A virtual private network (Virtual Private Network, VPN) refers to a private network set up on a public network. A common technology for setting up a VPN includes: the Layer 2 Tunneling Protocol (layer 2 tunneling protocol, L2TP for short), Internet Protocol Security (Internet protocol security, IPSec for short), the Secure Sockets Layer (secure sockets layer, SSL for short), and the like.

[0004] With development of wireless communications technologies, transmission bandwidth of wireless communication continuously increases, and a VPN technology begins to be used in combination with the wireless communications technologies. As shown in FIG. 1, when an enterprise establishes a VPN, a branch router on which a wireless communications module, such as a third generation mobile communication (third generation, 3G for short) or Long Term Evolution (Long Term Evolved, LTE for short) module, is configured is used on the enterprise's branch network. The branch router may access the Internet over a radio link provided by the wireless communications module, and set up the VPN with a headquarters router that is connected to a headquarters network, so as to implement data communication between the branch network and the headquarters network. Subscriber identity module (subscriber identity module, SIM for short) cards of different telecommunications operators can be respectively inserted into multiple wireless communications modules configured on the branch router. In this way, the branch router can use radio links of different telecommunications operators simultaneously to communicate with the headquarters router, which increases transmission bandwidth between the branch router and the headquarters router.

[0005] In a scenario in which the branch router simultaneously uses multiple radio links, the branch router and the headquarters router balance load of the radio links according to bandwidth contracted with the telecommunications operators. When strength of signals received by the branch router over any radio link decreases, or a network standard of the radio link switches to a network standard of a relatively low rate, for example, switches from a third generation mobile telecommunications (third generation, 3G) standard to a second generation mobile telecommunications (second generation, 2G) standard, actual bandwidth of the radio link is less than the contracted bandwidth, and link quality deteriorates. In this case, if the branch router or the headquarters router still balances the load of the radio links according to the contracted bandwidth, data transmission efficiency is unsatisfied. For example, contracted bandwidth of a radio link 1 and contracted bandwidth of a radio link 2 of the branch router are both 2 Mbit/s. When actual bandwidth of the radio link 1 is less than 2 Mbit/s because of signal strength, but actual bandwidth of the radio link 2 is still 2 Mbit/s, the branch router and the headquarters router still perform routing in a polling manner according to the contracted bandwidth, and load of the radio link 1 is the same as that of the radio link 2. In this case, a packet loss may occur on the radio link 1.

SUMMARY



[0006] Embodiments of the present invention provide a data transmission method and a router, to resolve a problem of a relatively poor load balancing effect that results from determining load of radio links by routers of two communication parties according to contracted bandwidth and improve data transmission efficiency.

[0007] According to a first aspect, an embodiment of the present invention provides a data transmission method, including:

communicating, by a first router, with a second router over multiple radio links;

acquiring, by the first router, status information of each radio link;

determining, by the first router, a transmission overhead of each radio link according to the status information of each radio link;

determining, by the first router, load sharing of each radio link according to the transmission overhead of each radio link; and

sending, by the first router, data to the second router according to the load sharing of each radio link.



[0008] With reference to the first aspect, in a first possible implementation manner of the first aspect, the acquiring, by the first router, status information of each radio link includes:

receiving, by the first router, the status information of each radio link that is sent by the second router.



[0009] With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the status information includes a network standard and a received signal strength indicator RSSI; and
the determining, by the first router, a transmission overhead of each radio link according to the status information of each radio link includes:

determining, by the first router, a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determining, by the first router, the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.



[0010] With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the status information further includes connection duration of a radio link or statistics traffic of a radio link; and
the determining, by the first router, a transmission overhead of each radio link according to the status information of each radio link includes:

for each radio link, determining, by the first router, whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic of the radio link exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, using, by the first router, a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determining the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determining the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.



[0011] With reference to the first aspect and any one of the first to the third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, after the determining, by the first router, load sharing of each radio link according to the transmission overhead of each radio link, the method further includes:

sending, by the first router, an indication message that includes the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.



[0012] According to a second aspect, a first router provided in an embodiment of the present invention includes:

a communications connection module, configured to communicate with a second router over multiple radio links;

a status information acquiring module, configured to acquire status information of each radio link;

a transmission overhead determining module, configured to determine a transmission overhead of each radio link according to the status information of each radio link;

a load sharing determining module, configured to determine load sharing of each radio link according to the transmission overhead of each radio link; and

a data sending module, configured to send data to the second router according to the load sharing of each radio link.



[0013] With reference to the second aspect, in a first possible implementation manner of the second aspect, the status information acquiring module is specifically configured to:

receive the status information of each radio link that is sent by the second router. With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the status information includes a network standard and an RSSI; and

the transmission overhead determining module is specifically configured to:

determine a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determine the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.



[0014] With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the status information further includes connection duration of a radio link or statistics traffic of a radio link; and
the transmission overhead determining module is specifically configured to:

for each radio link, determine whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic of the radio link exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, use a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determine the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determine the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.



[0015] With reference to the second aspect and any one of the first to the third possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect, the first router further includes:

a load sharing indication module, configured to: after the load sharing determining module determines the load sharing of each radio link, send an indication message that includes the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.



[0016] According to a third aspect, a first router provided in an embodiment of the present invention includes a processor, a memory, and a communications interface, where the processor, the memory, and the communications interface are connected to each other by using a bus or in another manner;
the memory is configured to store a program;
the communications interface is configured to communicate with a second router;
and
the processor is configured to execute the program stored by the memory, which includes:

communicating with the second router over multiple radio links;

acquiring status information of each radio link;

determining a transmission overhead of each radio link according to the status information of each radio link;

determining load sharing of each radio link according to the transmission overhead of each radio link; and

sending data to the second router according to the load sharing of each radio link. With reference to the third aspect, in a first possible implementation manner of the third aspect, when the processor is configured to acquire the status information of each radio link, the following step is specifically included:

receiving the status information of each radio link that is sent by the second router. With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the status information acquired by the processor includes a network standard and an RSSI; and

when the processor is configured to determine the transmission overheads of each radio link according to the status information of each radio link, the following steps are specifically included:

determining a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determining the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.



[0017] With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the status information acquired by the processor further includes connection duration of a radio link or statistics traffic of a radio link; and
when the processor is configured to determine the transmission overheads of each radio link according to the status information of each radio link, the following steps are specifically included:

for each radio link, determining whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic of the radio link exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, using a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determining the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determining the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.



[0018] With reference to the third aspect and any one of the first to the third possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the processor is further configured to:

after determining the load sharing of each radio link, send an indication message that includes the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.



[0019] In the embodiments of the present invention, a transmission overhead of each radio link is determined according to status information of each radio link, and load sharing of each radio link is determined according to the transmission overhead of each radio link. Compared with contracted bandwidth of a radio link, status information of the radio link can reflect a current network status more accurately. Therefore, load sharing finally determined is obtained according to the current network status, and a load sharing scheme is more proper. Data transmission according to the load sharing scheme can improve data transmission efficiency.

BRIEF DESCRIPTION OF DRAWINGS



[0020] 

FIG. 1 is a schematic diagram of a structure of a VPN network using a radio link in the prior art;

FIG. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;

FIG. 3 is a block diagram of a structure of a first router according to an embodiment of the present invention; and

FIG. 4 is a schematic diagram of a structure of a first router according to an embodiment of the present invention.


DESCRIPTION OF EMBODIMENTS



[0021] Embodiments of the present invention provide a data transmission method and a router, to properly determine load sharing of each radio link and improve data transmission efficiency. Referring to FIG. 2, a data transmission method provided in an embodiment of the present invention includes:

201: A first router communicates with a second router over multiple radio links.



[0022] Specifically, the first router includes multiple wireless communications modules, or the second router includes multiple wireless communications modules, and a radio link is set up by using each wireless communications module. There are multiple data links between the first router and the second router, where each data link includes one radio link.

[0023] 202: The first router acquires status information of each radio link.

[0024] Specifically, when the second router includes multiple wireless communications modules, the first router receives the status information of each radio link that is sent by the second router. The second router sends the status information of each radio link to the first router according to a preset period; and/or the second router sends the status information of each radio link to the first router when the second router determines that a network standard or an RSSI of any radio link of the multiple radio links changes.

[0025] The status information of the radio link includes a network standard and a received signal strength indicator (Received Signal Strength Indicator, RSSI), and may further include connection duration of the radio link and/or statistics traffic of the radio link.

[0026] The following lists several network standards in the prior art in ascending order of rates: a general packet radio service (General Packet Radio Service, GPRS), Enhanced Data rates for GSM Evolution (Enhanced Data rates for GSM Evolution, EDGE) used in a Global System for Mobile Communications (Global System for Mobile communications, GSM), Wideband Code Division Multiple Access (Wideband Code-Division Multiple Access, WCDMA), Evolution-Data Only (Evolution-Data Only, EVDO), High-Speed Packet Access (High-Speed Packet Access, HSPA), and the like.

[0027] 203: The first router determines a transmission overhead of each radio link according to the status information of each radio link.

[0028] In a case in which RSSIs are the same, a radio link using a higher rate network standard has better link quality, a higher transmission rate, and a lower transmission overhead than a radio link using a lower rate network standard; in a case in which network standards are the same, a radio link with a lower RSSI has better link quality, a higher transmission rate, and a lower transmission overhead.

[0029] Optionally, when the received status information of the radio link includes only a network standard and an RSSI, step 203 specifically includes: determining, by the first router, a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link, and determining the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link. For example, a sum of the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link is determined as the transmission overhead of the radio link. A weight corresponding to a high-speed network standard is less than a weight corresponding to a low-speed network standard. In a favorable signal condition, an RSSI is lower, and a weight corresponding to the RSSI is smaller.

[0030] Further, when the received status information of the radio link further includes connection duration of the radio link or statistics traffic of the radio link, step 203 specifically includes: for each radio link, determining, by the first router, whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, using a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determining the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link, and determining the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link. By determining whether connection duration for a current month exceeds the monthly duration quota or whether statistics traffic for a current month exceeds the monthly traffic quota, it can be avoided that a usage fee of the radio link exceeds a budget, so that usage costs of a radio resource are reduced. The monthly duration quota or the monthly traffic quota of the radio link is configured on a first router side in advance, or is configured on a second router side in advance and then transmitted to the first router.

[0031] In addition, the received status information of the radio link may further include a network standard, an RSSI, connection duration of the radio link, and statistics traffic of the radio link. The first router selects, according to whether the monthly duration quota or the monthly traffic quota of the radio link is recorded on the first router side, the connection duration of the radio link or the statistics traffic of the radio link to perform corresponding determining. Specifically, the determining a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link includes: determining, according to a predetermined ratio of a weight corresponding to each network standard of each radio link to the weight corresponding to the RSSI of each radio link, a weight corresponding to a network standard of any radio link and a weight corresponding to an RSSI of the any radio link. The ratio of the weight corresponding to each network standard of each radio link to the weight corresponding to the RSSI of each radio link is configured on the first router side in advance, or is configured on the second router side in advance and then transmitted to the first router. A scenario shown in FIG. 1 is used as an example. The first router is a headquarters router, and the second router is a branch router. Multiple wireless communications modules are configured on the branch router. The ratio of the weight corresponding to each network standard of each radio link to the weight corresponding to the RSSI of each radio link is configured on the headquarters router in advance. According to the configuration, the headquarters router performs load sharing management on a branch router connected to the headquarters router. Because multiple branch routers may be connected to the headquarters router, storing the configuration on the headquarters router helps a user centrally manage radio links of branch routers.

[0032] 204: The first router determines load sharing of each radio link according to the transmission overhead of each radio link.

[0033] Step 204 specifically includes: determining, by the first router, an overhead ratio between radio links according to the transmission overheads of the radio links, and determining a load ratio between the radio links according to the overhead ratio between the radio links. Specifically, the first router uses an inverse ratio of the overhead ratio between the radio links as the load ratio between the radio links. For example, it is determined that an overhead of a radio link 1 is 60 and an overhead of a radio link 2 is 70, an overhead ratio of the radio link 1 to the radio link 2 is 6:7, and link quality of the radio link 1 is better than link quality of the radio link 2. In this case, it is determined that a load ratio of the radio link 1 to the radio link 2 is 7:6, and a data transmission rate ratio of the radio link 1 to the radio link 2 is 7:6.

[0034] Alternatively, step 204 specifically includes: determining, by the first router, a radio link of the best link quality according to the transmission overheads of radio links; preferentially using, by the first router, the radio link of the best link quality to transmit data; and when a real-time rate of the radio link of the best link quality is higher than contracted bandwidth corresponding to a current network standard of the radio link, using another radio link and the radio link of the best link quality to jointly transmit the data.

[0035] 205: The first router sends data to the second router according to the load sharing of each radio link.

[0036] In this embodiment of the present invention, a transmission overhead of each radio link is determined according to status information of each radio link, and load sharing of each radio link is determined according to the transmission overhead of each radio link. Performing load sharing according to a current network status can improve data transmission efficiency.

[0037] For example, an implementation manner of the present invention is described in detail by using an example in which VPNs are set up between a headquarters network and a branch network in an enterprise as shown in FIG. 1 and a data link carrying the VPN includes a radio link.

[0038] A branch router used by the branch network is a 3G router, where the 3G router is connected to wireless networks of both operator A and operator B; there are two radio links between a headquarters router on the headquarters network and the branch router. After initial setup of the VPNs, initial configuration needs to be performed for the headquarters router and the branch router, where configuration content is as follows:

A private IP address of a VPN set up by the branch router by using a radio link of the operator A is ip.a2, and a private IP address of a VPN set up by using a radio link of the operator B is ip.b2; local interface addresses of the two VPNs at the headquarters are vpn.a and vpn.b; the headquarters network is network.0, and a mask is mask.0; the branch network is network.1, and a mask is mask.1. A range of a network transmission overhead is defined as 0-255, where a larger numeric value indicates a larger overhead, and an initial overhead value is 10.



[0039] A routing table of the initial configuration of the branch router is as follows:
Destination network Network mask Gateway/Interface Overhead
network.0 mask.0 vpn.a 10
network.0 mask.0 vpn.b 10


[0040] A routing table of the initial configuration of the headquarters router is as follows:
Destination network Network mask Gateway/Interface Overhead
network.1 mask.1 ip.a2 10
network.1 mask.1 Ip.b2 10


[0041] Traffic contracted with an operator, a contracted time, and weights corresponding to radio network parameters need to be further configured on the headquarters router, as listed in the following table:
Branch number Radio link Contracted traffic (M) Contracted time (hour) Contracted bandwidth (Kbps) Weight of network standard Weight ofRSSI
1 A 1000   GPRS: 100 GPRS: 60 RSSI*5 0%
  EDGE: 200 EDGE: 60
  WCDMA: 300 WCDMA: 50
  EVDO: 2000 EVDO: 30
  HSPA: 7000 HSPA: 20
B   60
LTE: 10000 LTE: 10


[0042] A branch number may be a number for a VPN connection between the headquarters router and the branch network or may be a number for the branch router.

[0043] It can be seen that, traffic over a radio link A is limited and connection duration of a radio link B is limited.

[0044] The branch router reports, in a periodic manner or when detecting that a signal or the network standard changes, status information of a radio link to the headquarters router by using a Wireless Link Administration Protocol (Wireless Link Administration Protocol, WLAP) packet, where WLAP carries a network standard, an RSSI, connection duration, and statistics traffic. A specific format of a WLAP packet is as follows:
Protocol/Port Length TLV31 TLV2 TLV3 TLV4 ...


[0045] In the foregoing table, "Protocol" refers to a protocol type of the Internet Protocol (Internet Protocol, IP) corresponding to WLAP, and "Port" refers to a User Datagram Protocol (User Datagram Protocol, UDP) or Transfer Control Protocol (Transfer Control Protocol, TCP) port number. For example, a protocol is 0x6A or a port number is 0x66AA. "Length" refers to a total length of the WLAP packet and is represented by 2 bytes. A type-length-value (type-length-value, TLV for short) is specifically as follows:
Type code (1 byte) Length (1 byte) Value (variable length)
1 3 Network standard (1)
2 4 Rssi (2)
3 6 Connection duration (4)
4 18 Statistics traffic (16)


[0046] A type code is represented by 1 byte, and type codes 1, 2, 3, and 4 respectively represent a network standard, an RSSI, connection duration, and statistics traffic. Values of the network standard include: 1. GRPS, 2. EDGE, 3. WCDMA, 4. HSDPA, 5. HSPA, and 6. LTE; the RSSI is in units of decibels-milliwatts (dbm); the connection duration may be in units of minutes, and the statistics traffic may be in units of megabytes (M). A length is represented by 1 byte and is used to record a total quantity of bytes of a TLV of this type. For example, a total quantity of bytes of a TLV for the type code 1 is 3, and a total quantity of bytes of a TLV for the type code 2 is 4. A value length is variable, and lengths of values corresponding to different type codes are different. For example, a value of a network standard is represented by 1 byte, and a value of an RSSI is represented by 2 bytes.

[0047] An example of calculating a transmission overhead by the headquarters router is as follows:

According to a WLAP received from a branch 1, the headquarters router acquires the following status information of a link A of the branch 1: used traffic is 10 M, duration is 1 hour, a network standard is HSPA, and a signal RSSI value is 80, and the following status information of a link B: used traffic is 8 M, duration is 1 hour, a network standard is EVDO, and a signal RSSI value is 70.



[0048] According to the initial configurations, overheads obtained by calculation are as follows:





[0049] The refreshed routing table is as follows.
Destination network Network mask Gateway/Interface Overhead
network.1 mask.1 ip.a2 70
network.1 mask.1 ip.b2 75


[0050] After the headquarters router calculates the overheads, the headquarters router sends values of the overheads to the branch router by using a WLAP packet, and the branch router synchronizes the routing table.
Destination network Network mask Gateway/Interface Overhead
network.0 mask.0 vpn.a 70
network.0 mask.0 vpn.b 75


[0051] The headquarters router and the branch router determine the load sharing of the two radio links according to the overheads. A possible manner of load sharing is determining an inverse ratio of the overheads as the load ratio between the two radio links. Another load sharing manner may also be used. For example, a primary link of the two radio links is determined, and data is transmitted preferentially over the primary link; when bandwidth of the primary link is not enough, the other radio link is used to assist the transmission.

[0052] In addition, the branch router may calculate the load sharing, and synchronize the load sharing with the headquarters router.

[0053] Referring to FIG. 3, an embodiment of the present invention provides a first router 30, configured to implement the data transmission method shown in FIG. 2 of the present invention, where the first router 30 includes:

a communications connection module 301, configured to communicate with a second router over multiple radio links;

a status information acquiring module 302, configured to acquire status information of each radio link;

a transmission overhead determining module 303, configured to determine a transmission overhead of each radio link according to the status information of each radio link;

a load sharing determining module 304, configured to determine load sharing of each radio link according to the transmission overhead of each radio link; and

a data sending module 305, configured to send data to the second router according to the load sharing of each radio link.



[0054] The first router 30 includes multiple wireless communications modules, or the second router includes multiple wireless communications module, and a radio link is set up by using each wireless communications module. There are multiple data links between the first router 30 and the second router, where each data link includes one radio link.

[0055] When the second router includes multiple wireless communications modules, the first router 30 receives the status information of each radio link that is sent by the second router. When the first router includes multiple wireless communications modules, the first router 30 may acquire the status information of each radio link from the multiple wireless communications modules. Optionally, the status information acquiring module 302 is specifically configured to:

receive the status information of each radio link that is sent by the second router. The status information includes a network standard and an RSSI; and

the transmission overhead determining module 303 is specifically configured to:

determine a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determine the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight

corresponding to the RSSI of each radio link.



[0056] The status information further includes connection duration of a radio link or statistics traffic of a radio link; and
the transmission overhead determining module 303 is specifically configured to:

for each radio link, determine whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, use a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determine the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determine the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.



[0057] The load sharing determining module 304 is specifically configured to:

determine an overhead ratio between the radio links according to the transmission overheads of the radio links; and

determine a load ratio between the radio links according to the overhead ratio between the radio links.



[0058] The first router 30 further includes:

a load sharing indication module, configured to: after the load sharing determining module determines the load sharing of each radio link, send an indication message that includes the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.



[0059] It should be noted that the first router 30 in this embodiment implements the foregoing method shown in FIG. 2, and the foregoing explanations and limitations of the method are also applicable to the first router in this embodiment.

[0060] Referring to FIG. 4, a first router 40 provided in an embodiment of the present invention includes a processor 401, a memory 402, and a communications interface 403. The processor 401, the memory 402, and the communications interface 403 are connected to each other by using a bus or in another manner. In FIG. 4, that the components are connected to each other by using a bus is used as an example.

[0061] The memory 402 is configured to store a program. Specifically, the program may include program code, where the program code includes a computer operation instruction. The memory may include a high-speed random access memory (random access memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk memory.

[0062] The communications interface 403 is configured to communicate with a second router.

[0063] The processor 401 executes the program stored by the memory 402 to implement the data transmission method provided in the embodiment of the present invention, which includes:

communicating with the second router over multiple radio links;

acquiring status information of each radio link;

determining a transmission overhead of each radio link according to the status information of each radio link;

determining load sharing of each radio link according to the transmission overhead of each radio link; and

sending data to the second router according to the load sharing of each radio link. The first router 40 includes multiple wireless communications modules, or the second router includes multiple wireless communications module, and a radio link is set up by using each wireless communications module. When the second router includes multiple wireless communications modules, the first router 40 receives the status information of each radio link that is sent by the second router. When the first router 40 includes multiple wireless communications modules, the first router 30 may acquire the status information of each radio link from the multiple wireless communications modules.



[0064] The acquiring status information of each radio link includes:

receiving the status information of each radio link that is sent by the second router.



[0065] The status information includes a network standard and a received signal strength indicator RSSI; and
the determining a transmission overhead of each radio link according to the status information of each radio link includes:

determining a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determining the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.



[0066] The status information further includes connection duration of a radio link or statistics traffic of a radio link; and
the determining a transmission overhead of each radio link according to the status information of each radio link includes:

for each radio link, determining whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, using a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determining the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determining the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.



[0067] The determining load sharing of each radio link according to the transmission overhead of each radio link includes:

determining an overhead ratio between the radio links according to the transmission overheads of the radio links; and

determining a load ratio between the radio links according to the overhead ratio between the radio links.



[0068] After the determining load sharing of each radio link according to the transmission overhead of each radio link, the data transmission method further includes:

sending an indication message that includes the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.



[0069] The processor may be a general purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), and the like, or may be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or another programmable logical device, discrete gate or transistor logical device, or a discrete hardware component.

[0070] In conclusion, the embodiments of the present invention provide a data transmission method and a router, to enable routers of two communication parties to determine load sharing of each radio link according to current status information of a network, which improves data transmission efficiency.

[0071] A person skilled in the art should understand that the embodiments of the present invention may be provided as a method, a device (system), or a computer program product. Therefore, the present invention may use a form of hardware only embodiments, software only embodiments, or embodiments with a combination of software and hardware. Moreover, the present invention may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, an optical memory, and the like) that include computer-usable program code.

[0072] The present invention is described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to the embodiments of the present invention. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

[0073] These computer program instructions may also be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or the another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

[0074] Obviously, a person skilled in the art can make various modifications and variations to the present invention without departing from the scope of the present invention. The present invention is intended to cover these modifications and variations provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.


Claims

1. A data transmission method, comprising:

communicating, by a first router, with a second router over multiple radio links;

acquiring, by the first router, status information of each radio link;

determining, by the first router, a transmission overhead of each radio link according to the status information of each radio link;

determining, by the first router, load sharing of each radio link according to the transmission overhead of each radio link; and

sending, by the first router, data to the second router according to the load sharing of each radio link.


 
2. The method according to claim 1, wherein the acquiring, by the first router, status information of each radio link comprises:

receiving, by the first router, the status information of each radio link that is sent by the second router.


 
3. The method according to claim 1 or 2, wherein status information comprises a network standard and a received signal strength indicator RSSI; and
the determining, by the first router, a transmission overhead of each radio link according to the status information of each radio link comprises:

determining, by the first router, a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determining, by the first router, the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.


 
4. The method according to claim 3, wherein the status information further comprises connection duration of a radio link or statistics traffic of a radio link; and
the determining, by the first router, a transmission overhead of each radio link according to the status information of each radio link comprises:

for each radio link, determining, by the first router, whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic of the radio link exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, using, by the first router, a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determining the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determining the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.


 
5. The method according to any one of claims 1 to 4, after the determining, by the first router, load sharing of each radio link according to the transmission overhead of each radio link, further comprising:

sending, by the first router, an indication message that comprises the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.


 
6. A first router, comprising:

a communications connection module, configured to communicate with a second router over multiple radio links;

a status information acquiring module, configured to acquire status information of each radio link;

a transmission overhead determining module, configured to determine a transmission overhead of each radio link according to the status information of each radio link;

a load sharing determining module, configured to determine load sharing of each radio link according to the transmission overhead of each radio link; and

a data sending module, configured to send data to the second router according to the load sharing of each radio link.


 
7. The first router according to claim 6, wherein the status information acquiring module is specifically configured to:

receive the status information of each radio link that is sent by the second router.


 
8. The first router according to claim 6 or 7, wherein the status information comprises a network standard and an RSSI; and
the transmission overhead determining module is specifically configured to:

determine a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determine the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.


 
9. The first router according to claim 8, wherein the status information further comprises connection duration of a radio link or statistics traffic of a radio link; and
the transmission overhead determining module is specifically configured to:

for each radio link, determine whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic of the radio link exceeds a monthly traffic quota; and if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, use a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or

if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determine the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link; and determine the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.


 
10. The first router according to any one of claims 6 to 9, further comprising:

a load sharing indication module, configured to: after the load sharing determining module determines the load sharing of each radio link, send an indication message that comprises the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.


 
11. A first router, comprising a processor, a memory, and a communications interface, wherein the processor, the memory, and the communications interface are connected to each other;
the memory is configured to store a program; the communications interface is configured to communicate with a second router; and
the processor executes the program stored by the memory to implement data transmission, which comprises:

communicating with the second router over multiple radio links;

acquiring status information of each radio link;

determining a transmission overhead of each radio link according to the status information of each radio link;

determining load sharing of each radio link according to the transmission overhead of each radio link; and

sending data to the second router according to the load sharing of each radio link.


 
12. The first router according to claim 11, wherein the acquiring status information of each radio link comprises:

receiving the status information of each radio link that is sent by the second router.


 
13. The first router according to claim 11 or 12, wherein the status information comprises a network standard and an RSSI; and
the determining a transmission overhead of each radio link according to the status information of each radio link comprises:

determining a weight corresponding to a network standard of each radio link and a weight corresponding to an RSSI of each radio link; and

determining the transmission overhead of each radio link according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI of each radio link.


 
14. The first router according to claim 13, wherein the status information further comprises connection duration of a radio link or statistics traffic of a radio link; and
the determining a transmission overhead of each radio link according to the status information of each radio link comprises:

for each radio link, determining whether connection duration of the radio link exceeds a monthly duration quota, or whether statistics traffic of the radio link exceeds a monthly traffic quota; and

if the connection duration exceeds the monthly duration quota or the statistics traffic exceeds the monthly traffic quota, using a preset upper limit of a transmission overhead as the transmission overhead of the radio link; or if the connection duration does not exceed the monthly duration quota or the statistics traffic does not exceed the monthly traffic quota, determining the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link, and determining the transmission overhead of the radio link according to the weight corresponding to the network standard of the radio link and the weight corresponding to the RSSI of the radio link.


 
15. The first router according to any one of claims 11 to 14, wherein that the processor executes the program stored by the memory to implement data transmission further comprises:

after the load sharing determining module determines the load sharing of each radio link, sending an indication message that comprises the load sharing of each radio link to the second router, so that the second router sends data according to the load sharing of each radio link.


 




Drawing










Search report










Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description