WO2015085763A1 - 一种数据传输方法及路由器 - Google Patents

一种数据传输方法及路由器 Download PDF

Info

Publication number
WO2015085763A1
WO2015085763A1 PCT/CN2014/081944 CN2014081944W WO2015085763A1 WO 2015085763 A1 WO2015085763 A1 WO 2015085763A1 CN 2014081944 W CN2014081944 W CN 2014081944W WO 2015085763 A1 WO2015085763 A1 WO 2015085763A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless link
router
status information
weight corresponding
transmission overhead
Prior art date
Application number
PCT/CN2014/081944
Other languages
English (en)
French (fr)
Inventor
田旭
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP14868822.9A priority Critical patent/EP3068164B1/en
Publication of WO2015085763A1 publication Critical patent/WO2015085763A1/zh
Priority to US15/176,837 priority patent/US10085194B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/22Performing reselection for specific purposes for handling the traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0958Management thereof based on metrics or performance parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/52Allocation or scheduling criteria for wireless resources based on load
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method and a router. Background technique
  • VPN Virtual Private Network
  • L2TP layer 2 tunneling protocol
  • IPSec Internet protocol security
  • SSL secure sockets layer
  • the enterprise branch network uses a branch router configured with a third-generation mobile communication (third generation, 3G) or Long Term Evolved (LTE) wireless communication module.
  • the branch router can access the Internet through the wireless link provided by the wireless communication module, and then establish a VPN with the headquarters router connected to the headquarters network to implement data communication between the branch network and the headquarters network.
  • a plurality of wireless communication modules configured on the branch routers can be respectively inserted into subscriber identity modules (SIMs) cards of different service carriers, so that the branch routers can simultaneously use the wireless links and the headquarters routers of different telecommunication carriers. Communication improves the transmission bandwidth between the branch router and the headquarters router.
  • SIMs subscriber identity modules
  • the branch router and the headquarters router balance the load of each wireless link according to the subscription bandwidth with the service provider.
  • the signal strength of any wireless link received by the branch router is reduced, or the network mode of the wireless link is switched to a lower rate network standard, for example, switching from the third generation (3G) system to the third generation In the second generation (2G) system
  • the actual bandwidth of the wireless link does not reach the subscription bandwidth, and the link quality deteriorates.
  • the branch router or the headquarters router still balances the load of each wireless link according to the contracted bandwidth, the data transmission efficiency is not ideal.
  • the subscription bandwidth of the wireless link 1 and the wireless link 2 of the branch router are both 2 Mbit/s.
  • the embodiment of the invention provides a data transmission method and a router, which are used to solve the problem that the routers of the two communication parties determine the load balancing effect caused by the load of each wireless link according to the signing bandwidth, and improve the data transmission efficiency.
  • an embodiment of the present invention provides a data transmission method, including:
  • the first router communicates with the second router through multiple wireless links
  • the first router acquires state information of each wireless link
  • the acquiring, by the first router, status information of each wireless link includes:
  • the first router receives status information of each wireless link sent by the second router.
  • the status information includes a network standard and a received signal strength indicator RSSI;
  • Determining, by the first router, the transmission cost of each radio link according to the status information of each radio link including: determining, by the first router, a weight corresponding to a network standard of each radio link and a weight corresponding to the RSSI; A router determines 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.
  • the status information further includes an online duration of the wireless link or a statistical traffic of the wireless link
  • Determining, by the first router, the transmission overhead of each radio link according to the status information of each radio link including: the first router determining, for each radio link, whether the online duration of the radio link exceeds a monthly duration Or, the statistical traffic exceeds the monthly traffic. If the online duration exceeds the monthly duration or the statistical traffic exceeds the monthly traffic, the first router uses the upper limit of the preset transmission overhead as the transmission overhead of the wireless link; otherwise, The weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI; determining the transmission overhead of the wireless link according to the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI.
  • the method further includes:
  • the first router sends an indication message including load distribution of each radio link to the second router, so that the second router transmits data according to load distribution of each radio link.
  • the first router provided by the embodiment of the present invention includes:
  • a communication connection module configured to communicate with the second router by using multiple wireless links
  • a status information acquiring module configured to acquire status information of each wireless link
  • a transmission overhead determining module configured to determine, according to status information of each wireless link, a transmission overhead of each wireless link
  • a load distribution determining module configured to determine load distribution of each wireless link according to a transmission overhead of each wireless link
  • a data sending module configured to send data to the second router according to load distribution of each wireless link.
  • the status information acquiring module is specifically configured to:
  • the state information includes a network standard and an RSSI
  • the transmission overhead determining module is specifically configured to:
  • the transmission overhead of each radio link is determined according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI.
  • the status information further includes an online duration of the wireless link or a statistical traffic of the wireless link
  • the transmission overhead determining module is specifically configured to:
  • the preset transmission overhead is set. The upper limit value is used as the transmission overhead of the wireless link;
  • the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI are determined; and the transmission overhead of the wireless link is determined according to the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI.
  • the first router further includes:
  • a load distribution indication module configured to send, after the load distribution determining module determines load distribution of each wireless link, an indication message including load distribution of each wireless link to the second router, to enable the second router The data is transmitted according to the load distribution of each wireless link.
  • the first router provided by the embodiment of the present invention includes: a processor, a memory, and a communication interface; the processor, the memory, and the communication interface are connected to each other through a bus or other manner;
  • the memory is used to store a program.
  • the communication interface is configured to communicate with a second router.
  • the processor is configured to execute a program stored in the memory, including:
  • Data is transmitted to the second router according to load distribution of each wireless link.
  • the method specifically includes:
  • the state information acquired by the processor includes a network standard and an RSSI
  • the processor is configured to determine a transmission cost of each radio link according to status information of each radio link, and specifically includes:
  • the transmission overhead of each radio link is determined according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI.
  • the status information acquired by the processor further includes an online duration of the wireless link or a statistical traffic of the wireless link.
  • the processor is configured to determine a transmission cost of each radio link according to status information of each radio link, and specifically includes:
  • the online duration of the wireless link exceeds the monthly duration, or whether the statistical traffic exceeds the monthly traffic. If the online duration exceeds the monthly duration or the statistical traffic exceeds the monthly traffic, the The upper limit of the set transmission overhead is used as the transmission overhead of the wireless link;
  • the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI are determined; and the transmission overhead of the wireless link is determined according to the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI.
  • the processor is further configured to:
  • an indication message including a load distribution of each wireless link is transmitted to the second router to cause the second router to transmit data according to load distribution of each wireless link.
  • the transmission overhead of each radio link is determined according to the state information of each radio link, and the load distribution of each radio link is determined according to the transmission overhead of each radio link;
  • the subscription bandwidth of the wireless link can more accurately reflect the current status of the network, so the final determined load distribution is obtained by combining the current situation of the network, and the load distribution scheme is more reasonable.
  • the data transmission according to the load allocation scheme can be improved.
  • FIG. 1 is a schematic diagram of a network structure of a VPN using a wireless 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 structural block diagram of a first router according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a first router according to an embodiment of the present invention. detailed description
  • Embodiments of the present invention provide a data transmission method and a router, which are used to reasonably determine load distribution of each wireless link, and improve data transmission efficiency.
  • a data transmission method provided by an embodiment of the present invention includes:
  • the first router communicates with the second router by using multiple wireless links.
  • the first router includes multiple wireless communication modules, or the second router includes multiple wireless communication modules, and each of the wireless communication modules establishes a wireless link.
  • a plurality of data links are included between the first router and the second router, and each data link includes a wireless link.
  • the first router acquires state information of each radio link.
  • the first router receives status information of each wireless link sent by the second router.
  • the second router sends each wireless to the first router in a preset period. Status information of the link; and/or, when the second router determines that the network standard or RSSI of any one of the plurality of wireless links changes, transmitting status information of each wireless link to the first router.
  • the status information of the wireless link includes: a network standard and a Received Signal Strength Indicator (RSI); and may also include: an online duration of the wireless link and/or a statistical traffic of the wireless link.
  • RSSI Received Signal Strength Indicator
  • the network standard is from low to high according to the rate, including the following: General Packet Radio Service (GPRS), Enhanced for Global System for Mobi le communications (GSM) Data rate (Enhanced Data rates for GSM Evolution,
  • GPRS General Packet Radio Service
  • GSM Global System for Mobi le communications
  • Data rate Enhanced Data rates for GSM Evolution
  • EDGE Wideband Code-Division Multiple Access
  • WCDMA Wideband Code-Division Multiple Access
  • EVDO Evolution-Data Only
  • HSPA High-Speed Packet Access
  • the first router determines, according to status information of each wireless link, a transmission overhead of each of the wireless links.
  • the wireless link using the high-speed network standard has higher link quality, faster transmission rate, and lower transmission overhead than the wireless link using the low-speed network standard; in the case of the same network standard, the RSSI is lower.
  • the link quality of the wireless link is higher, the transmission rate is faster, and the transmission overhead is lower.
  • the step 203 specifically includes: determining, by the first router, a weight corresponding to a network standard of each wireless link and a weight corresponding to the RSSI;
  • the weight corresponding to the network standard of each wireless link and the weight corresponding to the RSSI determine the transmission overhead of each wireless link.
  • the sum of the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI is determined as the transmission overhead of the wireless link; wherein the high-speed network standard has a lower weight than the low-speed network standard, and the RSSI is lower when the signal condition is good. , RSSI corresponds to a lower weight.
  • the step 203 specifically includes: the first router determining, for each wireless link, the wireless Whether the online duration of the link exceeds the monthly duration, or whether the statistical traffic exceeds the monthly traffic. If the online duration exceeds the monthly duration or the statistical traffic exceeds the monthly traffic, the first router sets the upper limit of the preset transmission overhead as the wireless. The transmission overhead of the link; otherwise, determining the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI; determining the transmission overhead of the wireless link according to the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI .
  • the monthly or monthly traffic of the wireless link is configured on the first router side in advance, or is configured in advance on the second router side and transmitted to the first router.
  • the status information of the received wireless link may also include the network standard, the RSSI, the online duration of the wireless link, and the statistical traffic of the wireless link, and the first router records, according to the side, whether the wireless link is in a monthly or monthly period. Traffic, select one of the online duration of the wireless link and the statistical traffic of the wireless link to make a corresponding judgment.
  • the method includes: determining, according to a predetermined weight of each network standard of each wireless link, and a ratio between weights of the RSSI and the RSSI.
  • the ratio between the weight of each network standard of each wireless link and the weight of the RSSI and the RSSI is configured in advance on the first router side, or is configured in advance on the second router side and transmitted to the first router. of. For example, the scenario shown in FIG.
  • the first router is a headquarters router
  • the second router is a branch router
  • the branch router is configured with multiple wireless communication modules
  • the headquarters router pre-configures each network standard of each wireless link.
  • load distribution management is performed on the branch routers connected to the headquarters router. Since the headquarters routers may be connected to multiple branch routers, the configuration is stored in the headquarters. The router can facilitate the unified management of the wireless links of each branch router.
  • the first router determines a load distribution of each radio link according to a transmission overhead of each radio link.
  • Step 204 specifically includes: determining, by the first router, an overhead ratio between each radio link according to a transmission overhead of each radio link; and determining, by the first router, a load ratio of each radio link according to an overhead ratio between the radio links .
  • the first router uses the inverse ratio of the proportion of the overhead of the wireless link as the load ratio of each wireless link, for example, determining that the cost of the wireless link 1 is 60, and the cost of the wireless link 2 is 70, and the wireless link 1
  • the overhead ratio of wireless link 2 is 6: 7, the link quality of wireless link 1 is better than the link quality of wireless link 2; then the load ratio of wireless link 1 and wireless link 2 is determined to be 7: 6
  • the ratio of the data transmission rates of the wireless link 1 and the wireless link 2 is 7:6.
  • the step 204 specifically includes: the first router determines the best link quality radio link according to the transmission overhead of each radio link; the first router preferentially uses the best link quality radio link to transmit data, when the link When the real-time rate of the best quality wireless link is greater than the subscription bandwidth corresponding to the current network standard of the wireless link, the other wireless link is used to transmit data together with the best-quality wireless link.
  • the first router sends data to the second router according to load distribution of each wireless link.
  • the transmission overhead of each radio link is determined according to the state information of each radio link, and the load distribution of each radio link is determined according to the transmission overhead of each radio link; and the load distribution according to the current status of the network can be improved. The efficiency of data transmission.
  • the embodiment of the present invention is described in detail by establishing a VPN with the branch network of the enterprise shown in FIG. 1 and the branch network, and the data link carrying the VPN includes a wireless link as an example.
  • the branch router used by the branch network is a 3G router.
  • the 3G router is connected to the wireless network of the carriers A and B at the same time.
  • the configuration is as follows:
  • the private IP address of the VPN established by the branch router through the wireless link of the carrier A is ip. a2, and the private IP address of the VPN established by the wireless link of the operator B is ip. b2 ; two VPNs of the local headquarters
  • the interface address is vpn. a and vpn. b;
  • the headquarters network is network.
  • the mask is mask. 0;
  • the branch network is network 1, the mask is mask. 1;
  • the network transmission overhead is defined as 0-255. The larger the value, the larger the overhead and the initial cost value is 10.
  • the routing table for the initial configuration of the branch router is as follows:
  • the routing table of the initial configuration of the headquarters router is as follows:
  • the headquarters router also needs to set the weights corresponding to the carrier's subscription traffic, time, and wireless network parameters, as shown in the following table:
  • the branch number may be the number of the VPN connection or the branch router that the headquarters router accesses to the branch network. It can be seen that the traffic of the wireless link A is limited, and the duration of the wireless link B is limited.
  • the branch router reports the status information of the wireless link to the headquarters router through the Wireless Link Administration Protocol (WLAP) packet periodically, or when the signal or the network system changes, the WLAP carries the network standard, RSSI. , online duration and statistical traffic.
  • the specific format of the WLAP packet is as follows:
  • the "protocol” refers to the protocol type of the Internet Protocol (IP) corresponding to WLAP.
  • the port refers to the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP).
  • UDP User Datagram Protocol
  • TCP Transmission Control Protocol
  • the port number For example, the protocol is 0x6A or the port number is 0x66AA.
  • the length refers to the total length of the WLAP message, which is represented by 2 bytes.
  • the type-length-value (TLV) is as follows:
  • the type code is represented by 1 byte, and the type code is 1, 2, 3, and 4 represent network standard, RSSI, online duration, and statistical traffic, respectively.
  • the values of the network standard include: 1. GRPS, 2, EDGE, 3, WCDMA, 4, HSDPA, 5, HSPA, 6, LTE; RSSI is in milliwatts (dbm); online duration can be in minutes; Statistical traffic can be in megabytes (M).
  • the length is represented by 1 byte, and the total number of bytes of the TLV of the type is recorded; for example, the total number of bytes of the TLV of type 1 is 3; the total number of bytes of the TLV of type 2 is 4.
  • the value of the value is variable, and the lengths of the values corresponding to different types of codes are different.
  • the value of the network standard is represented by 1 byte
  • the value of the RSSI is represented by 2 bytes.
  • the status information of the A link to the branch 1 is as follows:
  • the used traffic is 10 M, the duration is 1 hour, the network standard is HSPA, and the signal RSSI value is 80.
  • the B link status information As follows: The used traffic is 8M, the duration is 1 hour, the network standard is EVD0 and the signal RSSI value is 70.
  • the calculated overhead is:
  • the refreshed routing table is:
  • the overhead value is sent to the branch router through the WLAP packet, and the branch router synchronizes the routing state table.
  • the headquarters router and the branch router determine the load distribution of the two wireless links according to the overhead.
  • One possible load distribution method is to determine the inverse ratio of the overhead as the ratio of the load of the two wireless links.
  • Other load distribution methods can also be used, for example: determining the primary link in the two wireless links, preferentially transmitting data on the primary link, and using the other wireless link to assist transmission when the primary link bandwidth is insufficient.
  • the load distribution can be calculated by the branch router and synchronized to the headquarters router.
  • an embodiment of the present invention provides a first router 30, which is used to implement the data transmission method shown in FIG. 2 of the present invention.
  • the first router 30 includes:
  • a communication connection module 301 configured to communicate with the second router by using multiple wireless links
  • the status information obtaining module 302 is configured to acquire status information of each wireless link.
  • the transmission overhead determining module 303 is configured to determine, according to status information of each radio link, a transmission overhead of each radio link;
  • the load distribution determining module 304 is configured to determine a load distribution of each wireless link according to a transmission overhead of each wireless link;
  • the data sending module 305 is configured to send data to the second router according to load distribution of each wireless link.
  • the first router 30 includes multiple wireless communication modules, or the second router includes multiple wireless communication modules, and each of the wireless communication modules establishes a wireless link.
  • the first router 30 and the second router include multiple data links, and each data link includes one wireless link.
  • the first router 30 receives the second router Status information of each wireless link sent.
  • the first router 30 may acquire state information of each wireless link from the plurality of wireless communication modules.
  • the state information obtaining module 302 is specifically configured to:
  • the status information includes a network standard and an RSSI
  • the transmission overhead determining module 303 is specifically configured to:
  • the transmission overhead of each radio link is determined according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI.
  • the status information further includes an online duration of the wireless link or a statistical traffic of the wireless link;
  • the transmission overhead determining module 303 is specifically configured to:
  • the preset transmission overhead is set. The upper limit value is used as the transmission overhead of the wireless link;
  • the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI are determined; and the transmission overhead of the wireless link is determined according to the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI.
  • the load distribution determining module 304 is specifically configured to:
  • the load ratio of each wireless link is determined according to the proportion of overhead between the respective wireless links.
  • the first router 30 further includes:
  • a load distribution indication module configured to send, after the load distribution determining module determines load distribution of each wireless link, an indication message including load distribution of each wireless link to the second router, to enable the second router The data is transmitted according to the load distribution of each wireless link.
  • first router 30 of this embodiment implements the foregoing method shown in FIG. 2, and the above explanation and definition of the method are equally applicable to the first router of this embodiment.
  • the first router 40 provided by the embodiment of the present invention includes: a processor 401, a memory 402, and a communication interface 403.
  • the processor 401, the memory 402, and the communication interface 403 are connected to each other through a bus or the like.
  • the bus connection is an example.
  • the memory 402 is configured to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory may include a high-speed random access memory (RAM) storage
  • the memory may also include a non-volatile memory, such as at least one disk storage.
  • the communication interface 403 is configured to communicate with a second router.
  • the processor 401 executes the program stored in the memory 402 to implement the data transmission method provided by the embodiment of the present invention, including:
  • Data is transmitted to the second router according to load distribution of each wireless link.
  • the first router 40 includes multiple wireless communication modules, or the second router includes multiple wireless communication modules, and each of the wireless communication modules establishes a wireless link.
  • the first router 40 receives status information of each wireless link sent by the second router.
  • the first router 30 may acquire status information of each wireless link from the plurality of wireless communication modules.
  • the obtaining status information of each wireless link includes:
  • the status information includes a network standard and a received signal strength indicator RSSI;
  • the transmission overhead of each radio link is determined according to the weight corresponding to the network standard of each radio link and the weight corresponding to the RSSI.
  • the status information further includes an online duration of the wireless link or a statistical traffic of the wireless link;
  • the preset transmission overhead is set. The upper limit value is used as the transmission overhead of the wireless link;
  • the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI are determined; and the transmission overhead of the wireless link is determined according to the weight corresponding to the network standard of the wireless link and the weight corresponding to the RSSI.
  • Determining a load distribution of each radio link according to a transmission overhead of each radio link including:
  • the load ratio of each wireless link is determined according to the proportion of overhead between the respective wireless links.
  • the method further includes: sending, to the second router, an indication message including load allocation of each radio link, to enable the The two routers transmit data according to the load distribution of each wireless link.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP Processor, etc.), or a digital signal processor (DSP), an application specific integrated circuit ( ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • CPU central processing unit
  • NP Processor network processor
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the embodiment of the present invention provides a data transmission method and a router, where a router for communication parties determines load distribution of each wireless link according to status information of the current network, thereby improving data transmission efficiency.
  • embodiments of the present invention can be provided as a method, apparatus (system), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供了一种数据传输方法以及路由器,用于结合当前网络的状况信息得到负载分配方案,根据该负载分配方案进行数据传输,提高数据传输效率。该方法包括:第一路由器通过多条无线链路与第二路由器通信;所述第一路由器获取各个无线链路的状态信息;根据各个无线链路的状态信息,确定各个无线链路的传输开销;根据各个无线链路的传输开销,确定各个无线链路的负载分配;根据各个无线链路的负载分配,向所述第二路由器发送数据。

Description

一种数据传输方法及路由器 本申请要求于 2013年 12月 10日提交中国专利局、 申请号为 201310673547. 3、发明名称为 "一种数据传输方法及路由器" 的中国专利申请的优先权, 其全部内容通过引用结合在本 申请中。 技术领域
本发明涉及通信技术领域, 尤其涉及一种数据传输方法及路由器。 背景技术
虚拟专用网络 (Virtual Private Network, VPN) 指的是在公用网络上建立的专用网 络。常见的建立 VPN的技术包括:第二层隧道协议(layer 2 tunnel ing protocol, 简称 L2TP)、 网际协议安全协议(Internet protocol security, 简称 IPSec)禾口安全套接层(secure sockets layer, 简称 SSL)等。
随着无线通信技术的发展, 无线通信的传输带宽不断增加, VPN技术与无线通信技术开 始结合。如图 1所示, 企业在组建 VPN时, 企业分支网络使用配置有第三代移动通信 (third generation, 简称 3G)或长期演进(Long Term Evolved, 简称 LTE)等无线通信模块的分支 路由器。 分支路由器可以通过无线通信模块提供的无线链路接入到互联网, 然后与连接总 部网络的总部路由器建立 VPN, 实现分支网络与总部网络的数据通信。分支路由器上配置的 多个无线通信模块, 可以分别插入不同电信运营商的客户识别模块(subscriber identity module, 简称 SIM)卡, 这样, 分支路由器能够同时使用不同电信运营商的无线链路与总部 路由器通信, 提升了分支路由器与总部路由器之间的传输带宽。
在分支路由器同时使用多个无线链路的场景下, 分支路由器与总部路由器根据与电信 运营商的签约带宽来均衡各无线链路的负载。 当分支路由器接收的任一无线链路的信号强 度降低, 或者该无线链路的网络制式切换至较低速率的网络制式时, 比如从第三代移动通 信(third generation, 3G)制式切换为第二代移动通信(second generation, 2G)制式, 该 无线链路的实际带宽达不到签约带宽, 链路质量变差。 这种情况下, 如果分支路由器或总 部路由器仍然根据签约带宽来均衡各无线链路的负载, 会导致数据传输效率不理想。 例如: 分支路由器的无线链路 1和无线链路 2的签约带宽都是 2Mbit/s,当无线链路 1的实际带宽 因为信号强度原因不足 2Mbit/s, 而无线链路 2的实际带宽仍为 2Mbit/s时, 分支路由器和 总部路由器仍然根据签约带宽按照轮询方式选路, 无线链路 1和无线链路 2的负载相同, 此时, 无线链路 1上可能发生丢包。 发明内容
本发明实施例提供了一种数据传输方法及路由器, 用以解决通信双方的路由器根据签 约带宽确定各个无线链路的负载导致的负载均衡效果较差的问题, 提高数据传输效率。
第一方面, 本发明实施例提供了一种数据传输方法, 包括:
第一路由器通过多条无线链路与第二路由器通信;
所述第一路由器获取各个无线链路的状态信息;
所述第一路由器根据各个无线链路的状态信息, 确定各个无线链路的传输开销; 所述第一路由器根据各个无线链路的传输开销, 确定各个无线链路的负载分配; 所述第一路由器根据各个无线链路的负载分配, 向所述第二路由器发送数据。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述第一路由器获取各个无 线链路的状态信息, 包括:
所述第一路由器接收所述第二路由器发送的各个无线链路的状态信息。
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实现 方式中, 所述状态信息包括网络制式和接收信号强度指示 RSSI ;
所述第一路由器根据各个无线链路的状态信息, 确定各个无线链路的传输开销, 包括: 所述第一路由器确定各个无线链路的网络制式对应的权重和 RSSI对应的权重; 所述第一路由器根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各 个无线链路的传输开销。
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实现方式中, 所 述状态信息还包括无线链路的在线时长或无线链路的统计流量;
所述第一路由器根据各个无线链路的状态信息, 确定各个无线链路的传输开销, 包括: 所述第一路由器针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时 长, 或者, 统计流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包 月流量, 所述第一路由器将预先设置的传输开销的上限值作为该无线链路的传输开销; 否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
结合第一方面和第一方面的第一种至第三种可能的实现方式中的任一种, 在第一方面 的第四种可能的实现方式中, 所述第一路由器根据所述各个无线链路的传输开销, 确定各 个无线链路的负载分配之后, 还包括:
所述第一路由器向所述第二路由器发送包括各个无线链路的负载分配的指示消息, 以 使所述第二路由器根据各个无线链路的负载分配发送数据。
第二方面, 本发明实施例提供的第一路由器包括:
通信连接模块, 用于通过多条无线链路与第二路由器通信;
状态信息获取模块, 用于获取各个无线链路的状态信息;
传输开销确定模块, 用于根据各个无线链路的状态信息, 确定各个无线链路的传输开 销;
负载分配确定模块, 用于根据各个无线链路的传输开销, 确定各个无线链路的负载分 配;
数据发送模块, 用于根据各个无线链路的负载分配, 向所述第二路由器发送数据。 结合第二方面, 在第二方面的第一种可能的实现方式中, 所述状态信息获取模块具体 用于:
接收所述第二路由器发送的各个无线链路的状态信息。
结合第二方面或第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实现 方式中, 所述状态信息包括网络制式和 RSSI ;
所述传输开销确定模块具体用于:
确定各个无线链路的网络制式对应的权重和 RSSI对应的权重;
根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传 输开销。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的实现方式中, 所 述状态信息还包括无线链路的在线时长或无线链路的统计流量;
所述传输开销确定模块具体用于:
针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时长, 或者, 统计 流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包月流量, 将预先 设置的传输开销的上限值作为该无线链路的传输开销;
否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
结合第二方面和第二方面的第一种至第三种可能的实现方式中的任一种, 在第二方面 的第四种可能的实现方式中, 所述第一路由器还包括:
负载分配指示模块, 用于在所述负载分配确定模块确定各个无线链路的负载分配之后, 向所述第二路由器发送包括各个无线链路的负载分配的指示消息, 以使所述第二路由器根 据各个无线链路的负载分配发送数据。
第三方面, 本发明实施例提供的第一路由器包括: 处理器, 存储器和通信接口; 处理 器, 存储器和通信接口通过总线或其他方式相互连接;
所述存储器, 用于存放程序。
所述通信接口, 用于与第二路由器通信。
所述处理器用于执行所述存储器所存放的程序, 包括:
通过多条无线链路与第二路由器通信;
获取各个无线链路的状态信息;
根据各个无线链路的状态信息, 确定各个无线链路的传输开销;
根据各个无线链路的传输开销, 确定各个无线链路的负载分配;
根据各个无线链路的负载分配, 向所述第二路由器发送数据。
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述处理器用于获取各个无 线链路的状态信息时, 具体包括:
接收所述第二路由器发送的各个无线链路的状态信息。
结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第二种可能的实现 方式中, 所述处理器获取的状态信息包括网络制式和 RSSI ;
所述处理器用于根据各个无线链路的状态信息, 确定各个无线链路的传输开销时, 具 体包括:
确定各个无线链路的网络制式对应的权重和 RSSI对应的权重;
根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传 输开销。
结合第三方面的第二种可能的实现方式, 在第三方面的第三种可能的实现方式中, 所 述处理器获取的状态信息还包括无线链路的在线时长或无线链路的统计流量;
所述处理器用于根据各个无线链路的状态信息, 确定各个无线链路的传输开销时, 具 体包括:
针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时长, 或者, 统计 流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包月流量, 将预先 设置的传输开销的上限值作为该无线链路的传输开销;
否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
结合第三方面和第三方面的第一种至第三种可能的实现方式中的任一种, 在第三方面 的第四种可能的实现方式中, 所述处理器还用于:
在确定各个无线链路的负载分配之后, 向所述第二路由器发送包括各个无线链路的负 载分配的指示消息, 以使所述第二路由器根据各个无线链路的负载分配发送数据。
本发明实施例中, 根据各个无线链路的状态信息确定各个无线链路的传输开销, 根据 各个无线链路的传输开销, 确定各个无线链路的负载分配; 由于无线链路的状态信息相比 于无线链路的签约带宽能够更准确地反映出网络当前状况, 因而最终确定的负载分配是结 合网络当前状况得到的, 负载分配的方案更加合理, 按照该负载分配的方案进行数据传输, 能够提高数据传输的效率。 附图说明
图 1是现有技术中使用无线链路的 VPN的网络结构示意图;
图 2是本发明实施例提供的数据传输方法的流程示意图;
图 3是本发明实施例提供的第一路由器的结构框图;
图 4是本发明实施例提供的第一路由器的结构示意图。 具体实施方式
本发明实施例提供了一种数据传输方法及路由器, 用以合理确定各个无线链路的负载 分配, 提高数据传输效率。
参见图 2, 本发明实施例提供的一种数据传输方法, 包括:
201: 第一路由器通过多条无线链路与第二路由器通信。
具体地, 所述第一路由器包括多个无线通信模块, 或者, 所述第二路由器包括多个无 线通信模块, 并通过各个无线通信模块分别建立无线链路。 所述第一路由器与所述第二路 由器之间包括多条数据链路, 每条数据链路包括一条无线链路。
202: 所述第一路由器获取各个无线链路的状态信息。
具体的, 当所述第二路由器包括多个无线通信模块时, 第一路由器接收第二路由器发 送的各个无线链路的状态信息。 其中, 第二路由器以预设周期向第一路由器发送各个无线 链路的状态信息; 和 /或, 当第二路由器确定所述多条无线链路中任一无线链路的网络制式 或 RSSI发生变化时, 向第一路由器发送各个无线链路的状态信息。
无线链路的状态信息包括: 网络制式和接收信号强度指示(Received Signal Strength Indicator, RSSI); 还可能包括: 无线链路的在线时长和 /或无线链路的统计流量。
现有技术中, 网络制式按照速率从低到高, 包括如下几种: 通用分组无线业务 (General Packet Radio Service, GPRS) 、 全球移动通信系统(Global System for Mobi le communications, GSM)用的增强型数据速率(Enhanced Data rates for GSM Evolution,
EDGE) 宽带码分多址(Wideband Code-Division Multiple Access, WCDMA)、 演进 仅 数据(Evolution-Data Only, EVDO)和高速分组接入(High-Speed Packet Access, HSPA)等。
203: 所述第一路由器根据各个无线链路的状态信息, 确定所述各个无线链路的传输开 销。
相同 RSSI的情况下, 使用高速网络制式的无线链路比使用低速网络制式的无线链路的 链路质量高, 传输速率更快, 传输开销更低; 相同网络制式的情况下, RSSI 较低的无线链 路的链路质量较高, 传输速率较快, 传输开销较低。
可选地,当接收的无线链路的状态信息仅包括网络制式和 RSSI时,步骤 203具体包括: 第一路由器确定各个无线链路的网络制式对应的权重和 RSSI对应的权重; 第一路由器根据 各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传输开销。 例如: 将无线链路的网络制式对应的权重和 RSSI对应的权重之和, 确定为无线链路的传输 开销;其中,高速网络制式比低速网络制式对应的权重低,信号条件良好时 RSSI较低, RSSI 对应的权重也较低。
进一步地, 当接收的无线链路的状态信息还包括无线链路的在线时长或无线链路的统 计流量时, 步骤 203 具体包括: 所述第一路由器针对每一无线链路, 分别判断该无线链路 的在线时长是否超过包月时长, 或者, 统计流量是否超过包月流量, 如果在线时长超过包 月时长或者统计流量超过包月流量, 所述第一路由器将预先设置的传输开销的上限值作为 该无线链路的传输开销;否则,确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。 通过判断当月在线时长是否超过包月时长, 或当月统计流量是否超过包月流量, 能够避免 无线链路的使用费用超过预算, 节省了无线资源的使用成本。 其中, 无线链路的包月时长 或包月流量是预先在第一路由器侧配置的, 或者是预先在第二路由器侧配置并传输给第一 路由器的。 此外, 接收的无线链路的状态信息还可以同时包括网络制式、 RSSI、 无线链路的在线 时长和无线链路的统计流量, 第一路由器根据本侧记录的是无线链路的包月时长还是包月 流量, 从无线链路的在线时长和无线链路的统计流量中选择一个进行相应的判断。
具体的, 确定各个无线链路的网络制式对应的权重和 RSSI对应的权重, 包括: 根据预 先确定的各个无线链路的各个网络制式对应的权重以及 RSSI和 RSSI对应的权重之间的比 例, 确定任一无线链路的网络制式对应的权重和 RSSI对应的权重。 其中, 各个无线链路的 各个网络制式对应的权重以及 RSSI和 RSSI对应的权重之间的比例, 是预先在第一路由器 侧配置的, 或者是预先在第二路由器侧配置并传输给第一路由器的。 以图 1 所示的场景为 例, 所述第一路由器为总部路由器, 所述第二路由器为分支路由器, 分支路由器配置有多 个无线通信模块, 总部路由器预先配置各个无线链路的各个网络制式对应的权重以及 RSSI 和 RSSI对应的权重之间的比例, 根据该配置, 对连接到总部路由器的分支路由器进行负载 分配管理; 由于总部路由器可能与多个分支路由器相连接, 将该配置存储在总部路由器能 够方便用户对各个分支路由器的无线链路进行统一管理。
204: 所述第一路由器根据各个无线链路的传输开销, 确定各个无线链路的负载分配。 步骤 204 具体包括: 第一路由器根据各个无线链路的传输开销, 确定各个无线链路之 间的开销比例; 第一路由器根据各个无线链路之间的开销比例, 确定各个无线链路的负载 比例。 具体的, 第一路由器是将无线链路的开销比例的反比作为各个无线链路的负载比例, 例如: 确定无线链路 1的开销为 60, 无线链路 2的开销为 70, 无线链路 1和无线链路 2的 开销比为 6: 7, 无线链路 1的链路质量好于无线链路 2的链路质量; 则确定无线链路 1和 无线链路 2的负载比例为 7 : 6, 无线链路 1和无线链路 2的数据传输速率之比为 7 : 6。
或者, 步骤 204 具体包括: 第一路由器根据各个无线链路的传输开销, 确定链路质量 最好的无线链路; 第一路由器优先使用链路质量最好的无线链路传输数据, 当链路质量最 好的无线链路的实时速率大于该无线链路当前的网络制式对应的签约带宽时, 再使用其它 的无线链路与链路质量最好的无线链路共同传输数据。
205: 所述第一路由器根据各个无线链路的负载分配, 向所述第二路由器发送数据。 本发明实施例, 根据各个无线链路的状态信息确定各个无线链路的传输开销, 根据各 个无线链路的传输开销, 确定各个无线链路的负载分配; 结合网络当前状况进行负载分配, 能够提高数据传输的效率。
举例来说, 以图 1所示企业的总部网络与分支网络建立 VPN, 承载 VPN的数据链路包括 无线链路为例, 对本发明的实施方式进行详细的说明。 分支网络使用的分支路由器是 3G路由器, 3G路由器同时连接到运营商 A、 B的无线网 络, 总部网络的总部路由器与分支路由器之间存在两个无线链路。 VPN初始建立之后, 总部 路由器和分支路由器需要进行初始配置, 配置内容如下:
分支路由器通过运营商 A的无线链路建立的 VPN的私网 IP地址为 ip. a2, 通过运营商 B的无线链路建立的 VPN的私网 IP地址为 ip. b2; 总部本地的两个 VPN的接口地址分别为 vpn. a禾口 vpn. b; 总部网络为 network. 0, 掩码为 mask. 0; 分支网络为 network 1, 掩码为 mask. 1; 定义网络传输开销范围为 0-255, 数值越大表示开销越大, 初始开销值为 10。
分支路由器初始配置的路由表如下所示:
Figure imgf000009_0001
总部路由器初始配置的路由表如下所示:
Figure imgf000009_0002
总部路由器还需要配置与运营商的签约流量、 时间、 以及无线网络参数对应的权重, 如下表所示:
Figure imgf000009_0003
其中, 分支编号可以为总部路由器对该分支网络接入的 VPN连接或分支路由器的编号。 可以看出, 无线链路 A的流量是受限制的, 无线链路 B的上网时长是受限制的。
分支路由器周期性地, 或者在检测到信号或网络制式变化时, 通过无线链路管理协议 (Wireless Link Administration Protocol, WLAP) 报文向总部路由器上报无线链路的状 态信息, WLAP携带网络制式、 RSSI、 在线时长和统计流量。 WLAP报文的具体格式如下:
Figure imgf000010_0001
上表中, "协议"指的是 WLAP对应的网际协议(Internet Protocol, IP)的协议类型, 端口指的是用户数据报协议(User Datagram Protocol, UDP)或传输控制协议(Transfer Control Protocol, TCP)端口号。 例如, 协议为 0x6A或端口号为 0x66AA。 长度指的是 WLAP 报文的总长度, 用 2个字节表示。 类型长度值 (type-length-value, 简称 TLV)具体如下:
Figure imgf000010_0002
其中, 类型编码的用 1个字节表示, 类型编码为 1、 2、 3、 4分别代表网络制式、 RSSI、 在线时长和统计流量。 网络制式的取值包括: 1、 GRPS, 2、 EDGE, 3、 WCDMA, 4、 HSDPA, 5、 HSPA, 6、 LTE; RSSI 的单位为毫瓦分贝 (dbm); 在线时长可以以分钟为单位; 统计流量可 以以兆字节 (M) 为单位。 长度用 1个字节表示, 记录该类型 TLV的总字节数; 例如, 类型 编码为 1的 TLV的总字节数为 3; 类型编码为 2的 TLV的总字节数为 4。 取值的长度可变, 不同类型编码对应的取值的长度不同, 例如, 网络制式的取值用 1个字节表示, RSSI的取 值用 2个字节表示。
总路由器计算传输开销的示例如下:
总部路由器根据从分支 1收到的 WLAP, 获取到分支 1的 A链路的状态信息如下: 已使 用流量 10M, 时长 1小时, 网络制式为 HSPA, 信号 RSSI值为 80; B链路的状态信息如下: 已使用流量 8M, 时长 1小时, 网络制式为 EVD0和信号 RSSI值为 70。
按照初始配置, 计算后的开销分别为:
A链路开销 = 10 (初始) + 20 (HSPA) + 80*50% = 70; B链路开销 = 10 (初始) + 30 (EVD0) + 70*50% = 75。
刷新后的路由表为:
Figure imgf000011_0001
总部路由器计算开销后通过 WLAP报文将该开销值发送给分支路由器, 分支路由器同步 路由状态表。
Figure imgf000011_0002
总部路由器和分支路由器根据开销决定两个无线链路的负载分配, 一种可能的负载分 配方式是, 将开销的反比确定为两个无线链路的负载的比例。 还可以采用其它的负载分配 方式, 例如: 确定两个无线链路中的主链路, 优先在主链路传输数据, 当主链路带宽不够 时, 使用另一个无线链路辅助传输。
此外, 还可以由分支路由器计算负载分配并同步给总部路由器。
参见图 3, 本发明实施例提供了第一路由器 30, 用于实现本发明图 2所示的数据传输 方法, 所述第一路由器 30包括:
通信连接模块 301, 用于通过多条无线链路与第二路由器通信;
状态信息获取模块 302, 用于获取各个无线链路的状态信息;
传输开销确定模块 303, 用于根据各个无线链路的状态信息, 确定各个无线链路的传输 开销;
负载分配确定模块 304, 用于根据各个无线链路的传输开销, 确定各个无线链路的负载 分配;
数据发送模块 305, 用于根据各个无线链路的负载分配, 向所述第二路由器发送数据。 其中, 所述第一路由器 30包括多个无线通信模块, 或者, 所述第二路由器包括多个无 线通信模块, 并通过各个无线通信模块分别建立无线链路。 所述第一路由器 30与所述第二 路由器之间包括多条数据链路, 每条数据链路包括一条无线链路。
当所述第二路由器包括多个无线通信模块时, 所述第一路由器 30接收所述第二路由器 发送的各个无线链路的状态信息。 当所述第一路由器包括多个无线通信模块时, 所述第一 路由器 30可以从所述多个无线通信模块获取到各个无线链路的状态信息。
可选地, 所述状态信息获取模块 302具体用于:
接收所述第二路由器发送的各个无线链路的状态信息。
所述状态信息包括网络制式和 RSSI ;
所述传输开销确定模块 303具体用于:
确定各个无线链路的网络制式对应的权重和 RSSI对应的权重;
根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传 输开销。
所述状态信息还包括无线链路的在线时长或无线链路的统计流量;
所述传输开销确定模块 303具体用于:
针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时长, 或者, 统计 流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包月流量, 将预先 设置的传输开销的上限值作为该无线链路的传输开销;
否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
所述负载分配确定模块 304具体用于:
根据各个无线链路的传输开销, 确定各个无线链路之间的开销比例;
根据各个无线链路之间的开销比例, 确定各个无线链路的负载比例。
所述第一路由器 30还包括:
负载分配指示模块, 用于在所述负载分配确定模块确定各个无线链路的负载分配之后, 向所述第二路由器发送包括各个无线链路的负载分配的指示消息, 以使所述第二路由器根 据各个无线链路的负载分配发送数据。
需要说明的是, 本实施例的第一路由器 30实现上述图 2所示方法, 上述的对方法的解释 和限定同样适用于本实施例的第一路由器。
参见图 4, 本发明实施例提供的第一路由器 40包括: 处理器 401, 存储器 402和通信 接口 403; 处理器 401, 存储器 402和通信接口 403通过总线或其他方式相互连接, 图 4中 以通过总线连接为例。
存储器 402, 用于存放程序。 具体地, 程序可以包括程序代码, 所述程序代码包括计算 机操作指令。 存储器可能包含高速随机存取存储器 (random access memory, 简称 RAM) 存 储器, 也可能还包括非易失性存储器(non-volati le memory) , 例如至少一个磁盘存储器。 所述通信接口 403用于与第二路由器通信。
处理器 401执行存储器 402所存放的程序, 实现本发明实施例提供的数据传输方法, 包括:
通过多条无线链路与第二路由器通信;
获取各个无线链路的状态信息;
根据各个无线链路的状态信息, 确定各个无线链路的传输开销;
根据各个无线链路的传输开销, 确定各个无线链路的负载分配;
根据各个无线链路的负载分配, 向所述第二路由器发送数据。
其中, 所述第一路由器 40包括多个无线通信模块, 或者, 所述第二路由器包括多个无 线通信模块, 并通过各个无线通信模块分别建立无线链路。 当所述第二路由器包括多个无 线通信模块时, 所述第一路由器 40接收所述第二路由器发送的各个无线链路的状态信息。 当所述第一路由器 40包括多个无线通信模块时, 所述第一路由器 30可以从所述多个无线 通信模块获取到各个无线链路的状态信息。
所述获取各个无线链路的状态信息, 包括:
接收所述第二路由器发送的各个无线链路的状态信息。
所述状态信息包括网络制式和接收信号强度指示 RSSI ;
所述根据各个无线链路的状态信息, 确定各个无线链路的传输开销, 包括:
确定各个无线链路的网络制式对应的权重和 RSSI对应的权重;
根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传 输开销。
所述状态信息还包括无线链路的在线时长或无线链路的统计流量;
所述根据各个无线链路的状态信息, 确定各个无线链路的传输开销, 包括:
针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时长, 或者, 统计 流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包月流量, 将预先 设置的传输开销的上限值作为该无线链路的传输开销;
否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
所述根据各个无线链路的传输开销, 确定各个无线链路的负载分配, 包括:
根据各个无线链路的传输开销, 确定各个无线链路之间的开销比例; 根据各个无线链路之间的开销比例, 确定各个无线链路的负载比例。
所述根据所述各个无线链路的传输开销, 确定各个无线链路的负载分配之后, 还包括: 向所述第二路由器发送包括各个无线链路的负载分配的指示消息, 以使所述第二路由 器根据各个无线链路的负载分配发送数据。
上述的处理器可以是通用处理器, 包括中央处理器 (Central Processing Unit, 简称 CPU) 、 网络处理器(Network Processor, 简称 NP)等; 还可以是数字信号处理器(DSP) 、 专用集成电路 (ASIC) 、 现成可编程门阵列 (FPGA) 或者其他可编程逻辑器件、 分立门或 者晶体管逻辑器件、 分立硬件组件。
综上所述, 本发明实施例提供了一种数据传输方法以及路由器, 用于通信双方的路由 器根据当前网络的状态信息来确定各个无线链路的负载分配, 提高了数据传输效率。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 设备 (系统)、 或计算机 程序产品。 因此, 本发明可采用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方 面的实施例的形式。 而且, 本发明可采用在一个或多个其中包含有计算机可用程序代码的 计算机可用存储介质 (包括但不限于磁盘存储器和光学存储器等) 上实施的计算机程序产 品的形式。
本发明是参照根据本发明实施例的方法、 设备 (系统)、 和计算机程序产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图和 /或方框图中的每一流程 和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程 序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以 产生一个机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于 实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的装 置。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理, 从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个方 框或多个方框中指定的功能的步骤。
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内, 则本 发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种数据传输方法, 其特征在于, 包括:
第一路由器通过多条无线链路与第二路由器通信;
所述第一路由器获取各个无线链路的状态信息;
所述第一路由器根据各个无线链路的状态信息, 确定各个无线链路的传输开销; 所述第一路由器根据各个无线链路的传输开销, 确定各个无线链路的负载分配; 所述第一路由器根据各个无线链路的负载分配, 向所述第二路由器发送数据。
2、 如权利要求 1所述的方法, 其特征在于, 所述第一路由器获取各个无线链路的状态 信息, 包括:
所述第一路由器接收所述第二路由器发送的各个无线链路的状态信息。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述状态信息包括网络制式和接收信 号强度指示 RSSI ;
所述第一路由器根据各个无线链路的状态信息, 确定各个无线链路的传输开销, 包括: 所述第一路由器确定各个无线链路的网络制式对应的权重和 RSSI对应的权重; 所述第一路由器根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各 个无线链路的传输开销。
4、 如权利要求 3所述的方法, 其特征在于, 所述状态信息还包括无线链路的在线时长 或无线链路的统计流量;
所述第一路由器根据各个无线链路的状态信息, 确定各个无线链路的传输开销, 包括: 所述第一路由器针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时 长, 或者, 统计流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包 月流量, 所述第一路由器将预先设置的传输开销的上限值作为该无线链路的传输开销; 否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
5、 如权利要求 1至 4任一所述的方法, 其特征在于, 所述第一路由器根据所述各个无 线链路的传输开销, 确定各个无线链路的负载分配之后, 还包括:
所述第一路由器向所述第二路由器发送包括各个无线链路的负载分配的指示消息, 以 使所述第二路由器根据各个无线链路的负载分配发送数据。
6、 第一路由器, 其特征在于, 包括: 通信连接模块, 用于通过多条无线链路与第二路由器通信;
状态信息获取模块, 用于获取各个无线链路的状态信息;
传输开销确定模块, 用于根据各个无线链路的状态信息, 确定各个无线链路的传输开 销;
负载分配确定模块, 用于根据各个无线链路的传输开销, 确定各个无线链路的负载分 配;
数据发送模块, 用于根据各个无线链路的负载分配, 向所述第二路由器发送数据。
7、 如权利要求 6所述的第一路由器, 其特征在于, 所述状态信息获取模块具体用于: 接收所述第二路由器发送的各个无线链路的状态信息。
8、 如权利要求 6或 7所述的第一路由器, 其特征在于, 所述状态信息包括网络制式和 RSSI ;
所述传输开销确定模块具体用于:
确定各个无线链路的网络制式对应的权重和 RSSI对应的权重;
根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传 输开销。
9、 如权利要求 8所述的第一路由器, 其特征在于, 所述状态信息还包括无线链路的在 线时长或无线链路的统计流量;
所述传输开销确定模块具体用于:
针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时长, 或者, 统计 流量是否超过包月流量, 如果在线时长超过包月时长或者统计流量超过包月流量, 将预先 设置的传输开销的上限值作为该无线链路的传输开销;
否则, 确定该无线链路的网络制式对应的权重和 RSSI对应的权重; 根据该无线链路的 网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的传输开销。
10、 如权利要求 6至 9任一所述的第一路由器, 其特征在于, 还包括:
负载分配指示模块, 用于在所述负载分配确定模块确定各个无线链路的负载分配之后, 向所述第二路由器发送包括各个无线链路的负载分配的指示消息, 以使所述第二路由器根 据各个无线链路的负载分配发送数据。
11、 第一路由器, 其特征在于, 包括: 处理器, 存储器和通信接口; 所述处理器, 存 储器和通信接口相互连接;
所述存储器, 用于存放程序; 所述通信接口用于与第二路由器通信。 所述处理器执行所述存储器所存放的程序, 实现数据传输, 包括:
通过多条无线链路与第二路由器通信;
获取各个无线链路的状态信息;
根据各个无线链路的状态信息, 确定各个无线链路的传输开销;
根据各个无线链路的传输开销, 确定各个无线链路的负载分配;
根据各个无线链路的负载分配, 向所述第二路由器发送数据。
12、 如权利要求 11所述的第一路由器, 其特征在于, 所述获取各个无线链路的状态信 息包括:
接收所述第二路由器发送的各个无线链路的状态信息。
13、 如权利要求 11或 12所述的第一路由器, 其特征在于, 所述状态信息包括网络制 式和 RSSI ;
所述根据各个无线链路的状态信息确定各个无线链路的传输开销, 包括:
确定各个无线链路的网络制式对应的权重和 RSSI对应的权重;
根据各个无线链路的网络制式对应的权重和 RSSI对应的权重, 确定各个无线链路的传 输开销。
14、 如权利要求 13所述的第一路由器, 其特征在于, 所述状态信息还包括无线链路的 在线时长或无线链路的统计流量;
所述根据各个无线链路的状态信息确定各个无线链路的传输开销, 包括:
针对每一无线链路, 分别判断该无线链路的在线时长是否超过包月时长, 或者, 统计 流量是否超过包月流量;
如果在线时长超过包月时长或者统计流量超过包月流量, 将预先设置的传输开销的上 限值作为该无线链路的传输开销; 否则, 确定该无线链路的网络制式对应的权重和 RSSI对 应的权重; 根据该无线链路的网络制式对应的权重和 RSSI对应的权重, 确定该无线链路的 传输开销。
15、 如权利要求 11至 14任一所述的第一路由器, 其特征在于, 所述处理器执行所述 存储器所存放的程序, 实现数据传输, 还包括:
在所述负载分配确定模块确定各个无线链路的负载分配之后, 向所述第二路由器发送 包括各个无线链路的负载分配的指示消息, 以使所述第二路由器根据各个无线链路的负载 分配发送数据。
PCT/CN2014/081944 2013-12-10 2014-07-10 一种数据传输方法及路由器 WO2015085763A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14868822.9A EP3068164B1 (en) 2013-12-10 2014-07-10 Data transmission method and router
US15/176,837 US10085194B2 (en) 2013-12-10 2016-06-08 Data transmission method and router

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310673547.3 2013-12-10
CN201310673547.3A CN104703222B (zh) 2013-12-10 2013-12-10 一种数据传输方法及路由器

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/176,837 Continuation US10085194B2 (en) 2013-12-10 2016-06-08 Data transmission method and router

Publications (1)

Publication Number Publication Date
WO2015085763A1 true WO2015085763A1 (zh) 2015-06-18

Family

ID=53349898

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081944 WO2015085763A1 (zh) 2013-12-10 2014-07-10 一种数据传输方法及路由器

Country Status (4)

Country Link
US (1) US10085194B2 (zh)
EP (1) EP3068164B1 (zh)
CN (1) CN104703222B (zh)
WO (1) WO2015085763A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852561A (zh) * 2016-06-22 2021-12-28 华为技术有限公司 一种数据传输方法、装置以及网元

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901890B (zh) * 2015-06-24 2018-01-02 上海斐讯数据通信技术有限公司 一种sdn的路由生成、匹配方法和系统
CN108512686B (zh) * 2017-02-28 2023-02-21 中兴通讯股份有限公司 一种多设备数据传输方法、装置及系统
CN107046487A (zh) * 2017-03-26 2017-08-15 厦门四信通信科技有限公司 一种3g/4g通信网络中基于链路检测实现负载均衡的方法
TWI615047B (zh) * 2017-07-25 2018-02-11 廣達電腦股份有限公司 無線網路系統與無線網路連線方法
CN111416776A (zh) * 2019-01-07 2020-07-14 华为技术有限公司 传输数据的方法和网络设备
US11201790B2 (en) * 2019-03-27 2021-12-14 Saudi Arabian Oil Company System and method for virtual private network connectivity
US11516320B2 (en) * 2020-12-23 2022-11-29 Itron, Inc. Frame compatibility across network protocol versions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005456A (zh) * 2006-12-30 2007-07-25 华为技术有限公司 一种媒体流转发方法和媒体服务器
CN101335698A (zh) * 2007-06-28 2008-12-31 日电(中国)有限公司 多频无线网状网络中分配信道的方法和设备
CN103188721A (zh) * 2011-12-28 2013-07-03 华为技术有限公司 一种数据传输方法及装置
CN103312613A (zh) * 2012-03-16 2013-09-18 中兴通讯股份有限公司 业务报文转发方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073640A1 (en) * 2002-09-23 2004-04-15 Cricket Technologies Llc Network load management apparatus, system, method, and electronically stored computer product
US9955332B2 (en) * 2009-01-28 2018-04-24 Headwater Research Llc Method for child wireless device activation to subscriber account of a master wireless device
US8942215B2 (en) * 2010-07-15 2015-01-27 Dejero Labs Inc. System and method for transmission of data from a wireless mobile device over a multipath wireless router
US8761000B2 (en) * 2010-11-29 2014-06-24 Edge Velocity Corporation Router and rapid response network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005456A (zh) * 2006-12-30 2007-07-25 华为技术有限公司 一种媒体流转发方法和媒体服务器
CN101335698A (zh) * 2007-06-28 2008-12-31 日电(中国)有限公司 多频无线网状网络中分配信道的方法和设备
CN103188721A (zh) * 2011-12-28 2013-07-03 华为技术有限公司 一种数据传输方法及装置
CN103312613A (zh) * 2012-03-16 2013-09-18 中兴通讯股份有限公司 业务报文转发方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3068164A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852561A (zh) * 2016-06-22 2021-12-28 华为技术有限公司 一种数据传输方法、装置以及网元

Also Published As

Publication number Publication date
EP3068164A1 (en) 2016-09-14
US20160286452A1 (en) 2016-09-29
CN104703222A (zh) 2015-06-10
EP3068164B1 (en) 2018-05-16
CN104703222B (zh) 2018-06-15
US10085194B2 (en) 2018-09-25
EP3068164A4 (en) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2015085763A1 (zh) 一种数据传输方法及路由器
JP6701196B2 (ja) 通信における体感品質(QoE)の強化
CN105230068B (zh) 数据传输方法及设备
WO2017117968A1 (zh) 数据接口分流方法、装置、终端设备和计算机存储介质
US9173244B2 (en) Methods for establishing and using public path, M2M communication method, and systems thereof
WO2015168909A9 (zh) 数据传输控制节点、通信系统及数据传输管理方法
EP3611962B1 (en) Quality of service control method and device
WO2018121096A1 (zh) 流控方法、装置、cu、du和存储介质
WO2016011582A1 (zh) 链路控制节点、链路控制方法及通信系统
WO2015143610A1 (zh) 一种nfv系统的业务实现方法及通信单元
ES2866967T3 (es) Método y dispositivo para el procesamiento de tráfico de servicios
WO2011140898A1 (zh) 一种在接入网对互联网访问数据进行分流的方法及装置
WO2012130068A1 (zh) 数据包传输方法和相关装置
CN107113893A (zh) 一种承载建立方法及装置
US20180184332A1 (en) Wireless network function configuration method, wireless network node, and core network device
WO2015143763A1 (zh) 一种负荷信息传递方法、系统、网元及计算机存储介质
WO2017008697A1 (zh) 数据传输方法、装置、多通道路由方法及用户设备
WO2014180302A1 (zh) 一种应用上网处理方法、装置及终端
CN108307537B (zh) 一种报文交互方法及相关设备
WO2014134819A1 (zh) 计费方法、接入网设备及网关设备
WO2018082518A1 (zh) 一种隧道调整方法和装置和计算机存储介质
WO2017028681A1 (zh) 一种数据传输状态的报告、确定传输数据量的方法及装置
KR20220024832A (ko) 포트 제어를 지원하는 방법 및 장비
WO2018119595A1 (zh) 固网设备与移动网络设备间分流的方法、设备及系统
WO2022142657A1 (zh) 报文传输方法、报文传输系统及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14868822

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014868822

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014868822

Country of ref document: EP