WO2015131762A1 - 一种数据传输方法和装置 - Google Patents

一种数据传输方法和装置 Download PDF

Info

Publication number
WO2015131762A1
WO2015131762A1 PCT/CN2015/073134 CN2015073134W WO2015131762A1 WO 2015131762 A1 WO2015131762 A1 WO 2015131762A1 CN 2015073134 W CN2015073134 W CN 2015073134W WO 2015131762 A1 WO2015131762 A1 WO 2015131762A1
Authority
WO
WIPO (PCT)
Prior art keywords
tcp
layer
udp
udp packet
wireless connection
Prior art date
Application number
PCT/CN2015/073134
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 中兴通讯股份有限公司
Publication of WO2015131762A1 publication Critical patent/WO2015131762A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the embodiments of the present invention relate to the field of wireless communications, and in particular, to a data transmission method and apparatus based on multiple wireless connections.
  • SDR Software Defined Radio
  • WLAN Wireless LAN
  • MIMO Multiple-Input Multiple-Output
  • the application layer transmitting the wireless side data can only upload and download data from one outlet, or through Celluar, or through WLAN, so that the data transmission rate is slow.
  • the embodiment of the present invention provides a data transmission method and apparatus, which can improve the data transmission rate.
  • an embodiment of the present invention provides a data transmission method, including: presetting an Internet Protocol IP adaptation layer, and establishing an IP connection layer between the IP adaptation layer and a Transmission Control Protocol TCP/User Datagram Protocol UDP layer.
  • An uplink and downlink socket connection is established, and N sets of second uplink and downlink socket connections are established between the IP layers of the N wireless connections supported by the packet data gateway P-GW and the user equipment UE, respectively;
  • the method also includes:
  • each first TCP/UDP packet from the TCP/DUP layer through the established first uplink and downlink socket connection, and receiving each first TCP/UDP packet through the established second uplink and downlink socket connection.
  • the text is sent to the IP layer of different wireless connections;
  • N is an integer greater than or equal to 1.
  • the method further includes:
  • the second number of the second TCP/UDP packets is consecutive, and there is no next second TCP/UDP packet with the same source address and destination address, according to the second TCP/UDP packets.
  • the second number of the text is sent to the TCP/UDP layer in the order of being small to large.
  • the determining that the next second TCP/UDP message does not exist includes:
  • the identifier of the second second TCP/UDP packet with the second highest number indicating whether the next second data packet exists indicates that the next second TCP/UDP packet does not exist.
  • the method further includes: preserving a correspondence between the first number and the wireless connection in the IP adaptation layer;
  • the sending, by the established second uplink and downlink socket connection, the received first TCP/UDP packet to the IP layer of the different wireless connection includes:
  • the sending, by the established second uplink and downlink socket connection, the received first TCP/UDP packet to the IP layer of the different wireless connection includes:
  • the first TCP/UDP packet is smaller than the first threshold, and sending the first TCP/UDP packet to the IP layer of the first wireless connection;
  • the first TCP/UDP packet is greater than or equal to the (N-1)th threshold, and the first TCP/UDP packet is sent to the IP layer of the Nth wireless connection; when N is greater than or equal to 3, the location is determined.
  • the first TCP/UDP packet is greater than or equal to the Mth threshold, and is smaller than the (M+1)th threshold, and the first TCP/UDP packet is sent to the (M+1)th wireless connection; where An integer greater than or equal to 1 and less than or equal to (N-2); wherein, from the first wireless connection to the Nth wireless connection, the quality of service changes sequentially from poor to good.
  • the embodiment of the invention further provides a data transmission device, which at least includes:
  • a receiving module configured to receive at the IP adaptation layer through the established first uplink and downlink socket connection Each first TCP/UDP packet from the TCP/DUP layer;
  • the sending module is configured to send, according to the second uplink and downlink socket connection established by the IP adaptation layer, each received first TCP/UDP packet to an IP layer of a different wireless connection; where N is greater than or equal to 1.
  • the second uplink and downlink socket connection includes N sets of second uplink and downlink socket connections respectively connected to IP interfaces of N wireless connections supported by the PGW and the UE.
  • the receiving module is further configured to: receive, by the IP adaptation layer, a second TCP/UDP packet from the IP layer by using the established second uplink and downlink socket connection; correspondingly,
  • a cache module configured to cache each second TCP/UDP packet from the IP layer
  • the determining module is configured to determine that the second number of the second TCP/UDP packets that are cached is consecutive, and that the next second TCP/UDP packet with the same source address and destination address does not exist;
  • the sending module is further configured to:
  • the determining module is specifically configured to:
  • the cache module is further configured to: save a correspondence between the first number and the wireless connection in the IP adaptation layer;
  • the sending module is specifically configured to:
  • the sending module is specifically configured to: obtain quality of service of the N wireless connections, When it is determined that the first TCP/UDP packet is smaller than the first threshold, the first TCP/UDP packet is sent to the IP layer of the first wireless connection;
  • the first TCP/UDP packet is sent to the IP layer of the Nth wireless connection;
  • N is greater than or equal to 3
  • M is an integer greater than or equal to 1 and less than or equal to (N-2);
  • the quality of service changes sequentially from poor to good.
  • the embodiment of the present invention includes: receiving, by the IP adaptation layer, the first TCP/UDP packet from the TCP/DUP layer through the established first uplink and downlink socket connection, and establishing the second uplink and downlink The socket connection sends the received first TCP/UDP packets to the IP layer of different wireless connections.
  • the first TCP/UDP packet is sent to the IP layer corresponding to the different wireless connection by adding the set IP adaptation layer, so that the application layer is simultaneously sent through different wireless connections. Data, increasing the data transfer rate.
  • FIG. 1 is a flowchart of a data transmission method based on multiple wireless connections according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a communication model after adding an IP adaptation layer according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an IP adaptation layer sending a first TCP/UDP packet to an IP layer of a different wireless connection according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a first embodiment of a data transmission method based on multiple wireless connections according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a second embodiment of a data transmission method based on multiple wireless connections according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a data transmission apparatus based on multiple wireless connections according to an embodiment of the present invention.
  • an embodiment of the present invention provides a data transmission method based on multiple wireless connections, including: presetting an Internet Protocol (IP) adaptation layer, an IP adaptation layer, and a transmission control protocol (TCP, Transmission Control). Protocol)/User Data Protocol (UDP) layer establishes a first uplink and downlink socket connection between the user and the packet data gateway (PGW, Packet Data Gateway) and user equipment (UE, User) Equipment) N sets of second uplink and downlink socket connections are established between the IP layers of the N wireless connections.
  • IP Internet Protocol
  • TCP Transmission Control Protocol
  • Protocol/User Data Protocol (UDP) layer establishes a first uplink and downlink socket connection between the user and the packet data gateway (PGW, Packet Data Gateway) and user equipment (UE, User) Equipment) N sets of second uplink and downlink socket connections are established between the IP layers of the N wireless connections.
  • PGW Packet Data Gateway
  • UE User Equipment
  • FIG. 2 is a schematic diagram of a communication model after adding an IP adaptation layer according to an embodiment of the present invention.
  • N wireless connections are supported by themselves, where N is an integer greater than or equal to 1.
  • the IP adaptation layer establishes a first uplink and downlink socket connection with the TCP/DUP layer, and establishes N sets of second uplink and downlink socket connections with the N wirelessly connected IP layers respectively.
  • the wireless connection may be Long Term Evolution (LTE), Wireless Local Area Network (WLAN), or the like.
  • LTE Long Term Evolution
  • WLAN Wireless Local Area Network
  • the PGW can obtain the wireless connection supported by the UE by sending a query message to the UE; or the UE itself reports the wireless connection supported by the PGW.
  • the method also includes:
  • Step 100 Receive, by the IP adaptation layer, each first TCP/UDP packet from the TCP/DUP layer through the established first uplink and downlink socket connection, and receive each first TCP through the established second uplink and downlink socket connection. /UDP packets are sent to the IP layer of different wireless connections.
  • the IP layer that sends the received first TCP/UDP packets to the different wireless connections through the established second uplink and downlink socket connection in this step includes:
  • the IP layer that sends the received first TCP/UDP packets to the different wireless connections through the established second uplink and downlink socket connection in this step includes:
  • the first TCP/UDP packet is smaller than a preset first threshold, and sending the first TCP/UDP packet to the IP layer of the first wireless connection; determining the first TCP/ The UDP packet is greater than or equal to the (N-1)th threshold, and the first TCP/UDP packet is sent to the IP layer of the Nth wireless connection; when N is greater than or equal to 3, the first TCP/UDP packet is determined to be greater than Or equal to the Mth threshold, and less than the (M+1)th threshold, sending the first TCP/UDP message to the (M+1)th wireless connection; wherein, M is greater than or equal to 1 and less than or equal to (N- 2) an integer; wherein, from the first wireless connection to the Nth wireless connection, the quality of service changes from poor to good, that is, the first wireless connection is the worst quality wireless connection among the N wireless connections, The N wireless connection is the best quality wireless connection among the N wireless connections. In this way, the first TCP/ The UDP packet is greater than or equal to the (N-1)
  • the service quality of the wireless connection can be determined according to the transmission rate, the delay, the bit error rate, the number of retransmissions, and the like of the wireless connection, and the specific knowledge is known to those skilled in the art, and is not used to limit the protection scope of the embodiment of the present invention. , no longer repeat them here.
  • the transmission rate, the delay, the bit error rate, the number of retransmissions, and the like of the wireless connection may be sent to the IP adaptation layer by a Media Access Control (MAC) layer in a management frame manner.
  • MAC Media Access Control
  • FIG. 3 is a schematic diagram of an IP adaptation layer sending a first TCP/UDP packet to an IP layer of a different wireless connection according to an embodiment of the present invention.
  • N is equal to 2
  • the first number is 1 corresponding to the first wireless.
  • Connection when the first number is 2, corresponds to the second wireless connection.
  • the IP adaptation layer sends the second TCP/UDP packet numbered singularly, such as 1, 3, 5, etc. to the IP layer of the first wireless connection, and the second number is even number such as 2, 4, 6
  • the TCP/UDP packets are sent to the IP layer of the second wireless connection.
  • the method of the embodiment of the present invention further includes:
  • Step 101 Cache each second TCP/UDP packet from the IP layer.
  • Step 102 When it is determined that the second number of the second TCP/UDP packets that are buffered is consecutive, and there is no next second TCP/UDP packet whose source address and destination address are the same, according to each second TCP/UDP The second number of the packet is sent to the TCP/UDP layer in the order of small to large.
  • the identifier of the next second data packet indicating the presence of the next second data packet in the second TCP/UDP packet with the largest number indicates that the next second TCP/UDP packet does not exist.
  • the method for the UE to send data to the network side includes:
  • Step 400 Add an IP adaptation layer to the UE and the PGW respectively.
  • Step 401 The UE receives the first TCP/UDP packet from the first TCP/UDP layer of the LTE or the WLAN in the IP adaptation layer.
  • the second TCP/UDP with the second number is assumed to be singular.
  • the packet is sent to the IP layer of the LTE, and the second TCP/UDP packet with the second number is sent to the IP layer of the WLAN.
  • Step 402 The UE sends the data packet to the SGW through the air interface corresponding to the LTE according to the existing protocol in the IP layer of the LTE, and the IP layer of the WLAN sends the data packet to the AP, the SGW or the AP through the air interface corresponding to the WLAN according to the existing protocol.
  • the packet is sent to the PGW according to the existing protocol.
  • Step 403 If the PGW receives the second TCP/UDP packet from the IP layer of the LTE and the WLAN at the IP adaptation layer, the buffer receives the second TCP/UDP packet; in the first embodiment, it is assumed that when the buffer 8 If the second TCP/UDP packet is received, if the second number of the received second TCP/UDP packets is consecutive, and the second TCP/UDP packet with the second number is 8 indicates that there is no next second TCP.
  • the UDP packet is sent to the TCP/UDP layer of the LTE or WLAN in the order of the second number from the second to the second TCP/UDP packets.
  • the method for the network side to send data to the UE includes:
  • Step 500 Add an IP adaptation layer to the UE and the PGW respectively.
  • Step 501 The PGW receives the first TCP/UDP packet from the TCP/UDP layer of the LTE or WLAN in the IP adaptation layer.
  • the second TCP/UDP packet with the second number is assumed to be singular.
  • the IP layer sent to the LTE sends the second TCP/UDP packet with the second even number to the IP layer of the WLAN.
  • Step 502 The PGW sends the data packet to the SGW according to the existing protocol in the IP layer of the LTE, and the IP layer of the WLAN sends the data packet to the AP according to the existing protocol, and the SGW or the AP sends the data packet to the existing protocol according to the existing protocol.
  • UE User Equipment
  • Step 503 If the UE receives the second TCP/UDP packet from the IP layer of the LTE and the WLAN at the IP adaptation layer, the buffer receives the second TCP/UDP packet; in the first embodiment, it is assumed that when the buffer 8 If the second TCP/UDP packet is received, if the second number of the received second TCP/UDP packets is consecutive, and the second TCP/UDP packet with the second number is 8 indicates that there is no next first data. The packet is sent to the TCP/UDP layer of the LTE or WLAN in the order of the second number from the second to the second TCP/UDP packets.
  • an embodiment of the present invention further provides a data transmission apparatus based on multiple wireless connections, including at least a receiving module and a sending module, where:
  • a receiving module configured to receive, by the IP adaptation layer, each first TCP/UDP packet from the TCP/DUP layer by using the established first uplink and downlink socket connection;
  • the sending module is configured to send, by using the second uplink and downlink socket connection established by the IP adaptation layer, each received first TCP/UDP packet to an IP layer of a different wireless connection; wherein the second uplink and downlink socket connection includes N sets of second uplink and downlink socket connections respectively connected to the N wirelessly connected IP layers supported by the PGW and the UE, where N is an integer greater than or equal to 1.
  • the receiving module is further configured to: receive, by the IP adaptation layer, the second TCP/UDP packet from the IP layer by using the established second uplink and downlink socket connection.
  • a cache module configured to cache each second TCP/UDP packet from the IP layer
  • the determining module is configured to determine that the second number of the second TCP/UDP packets that are cached is consecutive, and that the next second TCP/UDP packet with the same source address and destination address does not exist;
  • the sending module is also set to:
  • Each second TCP/UDP message is sent to the TCP/UDP layer of the wireless connection in a small to large order according to the second number of each second TCP/UDP message.
  • the determining module is specifically configured to:
  • the second TCP/UDP packet with the second highest number indicates whether the identifier of the next second data packet indicates that the next second TCP/UDP packet does not exist
  • the second TCP/UDP packet that is cached is determined.
  • the second number of the text is continuous.
  • the cache module is further configured to:
  • the sending module is specifically set to:
  • the sending module is specifically configured to:
  • the quality of service of the N wireless connections determining that the first TCP/UDP packet is smaller than the first threshold, and transmitting the first TCP/UDP packet to the IP layer of the first wireless connection; and determining the first TCP/UDP packet If the value is greater than or equal to the (N-1)th threshold, the first TCP/UDP packet is sent to the IP layer of the Nth wireless connection; when N is greater than or equal to 3, the first TCP/UDP packet is determined to be greater than or equal to the first
  • the M threshold is less than the (M+1)th threshold, and the first TCP/UDP packet is sent to the (M+1)th wireless connection; wherein, M is greater than or equal to 1 and less than or equal to (N-2) An integer; wherein, from the first wireless connection to the Nth wireless connection, the quality of service changes from poor to good, that is, the first wireless connection is the worst quality wireless connection among the N wireless connections, and the Nth wireless connection The best quality wireless connection for N wireless connections.
  • the method and device for transmitting data based on multiple wireless connections include: presetting an Internet Protocol IP adaptation layer, establishing an initial connection between an IP adaptation layer and a Transmission Control Protocol TCP/User Datagram Protocol UDP layer A socket socket connection is established, and N sets of second uplink and downlink socket connections are established between the IP layers of the N wireless connections supported by the packet data gateway P-GW and the user equipment UE respectively; and the method includes: at the IP adaptation layer Receiving, by the first uplink and downlink socket connection, the first TCP/UDP packets from the TCP/DUP layer, and sending the received first TCP/UDP packets to different ones through the established second uplink and downlink socket connection.
  • the IP layer of the wireless connection With the solution provided by the embodiment of the present invention, the first TCP/UDP packet is sent to the IP layer corresponding to the different wireless connection by adding the set IP adaptation layer, so that the application layer simultaneously sends data through different wireless connections. , increased data transfer rate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种基于多无线连接的数据传输方法和装置,包括:增加互联网协议IP适配层,IP适配层与传输控制协议TCP/用户数据报协议UDP层之间建立第一上下行套接字socket连接,并分别与分组数据网关P-GW和用户设备UE均支持的N个无线连接的IP层之间建立N组第二上下行socket连接;还包括:在IP适配层通过建立的第一上下行socket连接将接收来自TCP/DUP层的各第一TCP/UDP报文,根据接收到的各第一TCP/UDP报文将各第一TCP/UDP报文通过建立的第二上下行socket连接发送给不同的无线连接的IP层。通过本发明实施例提供的方案,在增加的IP适配层,将各第一TCP/UDP报文发送给不同无线连接对应的IP层,从而通过不同的无线连接发送,提高了数据传输速率。

Description

一种数据传输方法和装置 技术领域
本发明实施例涉及无线通信领域,尤指一种基于多无线连接的数据传输方法和装置。
背景技术
随着软件无线电(SDR,Software Defined Radio)和无线局域网(WLAN,Wireless LAN)的广泛普及,蜂窝(Celluar)和WLAN趋于高度融合,并且各种应用对数据传输的速率要求越来越高。目前主要是通过载波聚合,多入多出(MIMO,Multiple-Input Multiple-Output)技术,带内全双工等来提高频谱利用率和数据传输速率,这些技术对任何一个无线制式都是通用的。
而现有技术中,传输无线侧数据的应用层只能从一个出口进行数据的上传和下载,或者是通过Celluar,或者是通过WLAN,从而数据传输速率较慢。
发明内容
为了解决上述技术问题,本发明实施例提出了一种数据传输方法和装置,能够提高数据传输速率。
为了达到上述技术目的,本发明实施例提出了一种数据传输方法,包括:预先设置互联网协议IP适配层,IP适配层与传输控制协议TCP/用户数据报协议UDP层之间建立第一上下行套接字socket连接,并分别与分组数据网关P-GW和用户设备UE均支持的N个无线连接的IP层之间建立N组第二上下行socket连接;
该方法还包括:
在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文,通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层;
其中,N为大于或等于1的整数。
优选地,当所述IP适配层通过建立的第二上下行socket连接接收到来自所述IP层的第二TCP/UDP报文时,该方法还包括:
对来自所述IP层的各第二TCP/UDP报文进行缓存;
当判断出缓存的各第二TCP/UDP报文的第二编号连续,且不存在源地址和目的地址相同的下一个第二TCP/UDP报文时,根据所述各第二TCP/UDP报文的第二编号按照由小到大的顺序将所述各第二TCP/UDP报文发送给所述TCP/UDP层。
优选地,所述判断出不存在下一个第二TCP/UDP报文包括:
所述第二编号最大的第二TCP/UDP报文中指示是否存在下一个第二数据包的标识显示不存在下一个第二TCP/UDP报文。
优选地,该方法之前还包括:在所述IP适配层中保存第一编号和无线连接之间的对应关系;
所述通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层包括:
对所属接收到的第一TCP/UDP报文的TCP/UDP头进行解析得到第一TCP/UDP报文的第二编号,将得到的第二编号除以N得到的余数作为第一编,在对应关系中查找其对应的无线连接,将所述第一TCP/UDP报文发送给查找到的无线连接的IP层。
优选地,所述通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层包括:
获取所述N个无线连接的服务质量,判断出所述第一TCP/UDP报文小于第一阈值,将所述第一TCP/UDP报文发送给第一无线连接的IP层;判断出所述第一TCP/UDP报文大于或等于第(N-1)阈值,将所述第一TCP/UDP报文发送给第N无线连接的IP层;当N大于或等于3时,判断出所述第一TCP/UDP报文大于或等于第M阈值,且小于第(M+1)阈值,将所述第一TCP/UDP报文发送给第(M+1)无线连接;其中,M为大于或等于1且小于或等于(N-2)的整数;其中,从所述第一无线连接至第N无线连接,服务质量由差到好依次变化。
本发明实施例还提出了一种数据传输装置,至少包括:
接收模块,设置为在IP适配层通过建立的第一上下行socket连接接收来 自TCP/DUP层的各第一TCP/UDP报文;
发送模块,设置为在IP适配层通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层;其中,N为大于或等于1的整数;
所述第二上下行socket连接包括分别与PGW和UE均支持的N个无线连接的IP层之间连接的N组第二上下行socket连接。
优选地,所述接收模块还设置为:在所述IP适配层通过建立的第二上下行socket连接接收到来自所述IP层的第二TCP/UDP报文;相应地,
还包括:
缓存模块,设置为对来自所述IP层的各第二TCP/UDP报文进行缓存;
判断模块,设置为判断出缓存的各第二TCP/UDP报文的第二编号连续,且不存在源地址和目的地址相同的下一个第二TCP/UDP报文;
此时,所述发送模块还设置为:
根据所述各第二TCP/UDP报文的第二编号按照由小到大的顺序将所述各第二TCP/UDP报文发送给无线连接的TCP/UDP层。
优选地,所述判断模块具体设置为:
当所述第二编号最大的第二TCP/UDP报文中指示是否存在下一个第二数据包的标识显示不存在下一个第二TCP/UDP报文,则判断出所述缓存的各第二TCP/UDP报文的第二编号连续。
优选地,所述缓存模块还设置为:在所述IP适配层中保存第一编号和无线连接之间的对应关系;此时,
所述发送模块具体设置为:
对所述接收到的第一TCP/UDP报文的TCP/UDP头进行解析得到第一TCP/UDP报文的第二编号,将得到的第二编号除以N得到的余数作为第一编号,在对应关系中查找其对应的无线连接,将所述第一TCP/UDP报文发送给查找到的无线连接的IP层。
优选地,所述发送模块具体设置为:获取所述N个无线连接的服务质量, 当判断出所述第一TCP/UDP报文小于第一阈值,将所述第一TCP/UDP报文发送给第一无线连接的IP层;
当判断出所述第一TCP/UDP报文大于或等于第(N-1)阈值,将所述第一TCP/UDP报文发送给第N无线连接的IP层;
当N大于或等于3时,判断出所述第一TCP/UDP报文大于或等于第M阈值,且小于第(M+1)阈值,将所述第一TCP/UDP报文发送给第(M+1)无线连接;其中,M为大于或等于1且小于或等于(N-2)的整数;
其中,从所述第一无线连接至第N无线连接,服务质量由差到好依次变化。
与现有技术相比,本发明实施例包括:在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文,通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层。通过本发明实施例提供的技术方案,在增加设置的IP适配层,将各第一TCP/UDP报文发送给不同无线连接对应的IP层,从而实现了应用层同时通过不同的无线连接发送数据,提高了数据传输速率。
附图概述
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为本发明实施例的基于多无线连接的数据传输方法的流程图;
图2为本发明实施例中增加IP适配层后的通信模型示意图;
图3为本发明实施例中IP适配层将第一TCP/UDP报文发送给不同的无线连接的IP层的示意图;
图4为本发明实施例的基于多无线连接的数据传输方法的第一实施例的流程图;
图5为本发明实施例的基于多无线连接的数据传输方法的第二实施例的流程图;
图6为本发明实施例的基于多无线连接的数据传输装置的结构组成示意图。
本发明的较佳实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
参见图1,本发明实施例提出了一种基于多无线连接的数据传输方法,包括:预先设置互联网协议(IP,Internet Protocol)适配层,IP适配层与传输控制协议(TCP,Transmission Control Protocol)/用户数据报协议(UDP,User Data Protocol)层之间建立第一上下行套接字(socket)连接,并分别与分组数据网关(PGW,Packet Data Gateway)和用户设备(UE,User Equipment)均支持的N个无线连接的IP层之间建立N组第二上下行socket连接。
图2为本发明实施例中增加IP适配层后的通信模型示意图。如图2所示,自身支持N个无线连接,其中,N为大于或等于1的整数。IP适配层与TCP/DUP层建立第一上下行socket连接,并分别与N个无线连接的IP层建立N组第二上下行socket连接。
其中,无线连接可以是长期演进(LTE,Long Term Evolution)、无线局域网络(WLAN,Wireless Local Area Network)等。
其中,PGW可以采用向UE发送查询消息的方式获取UE支持的无线连接;或UE自身向PGW上报自身支持的无线连接。
该方法还包括:
步骤100、在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文,通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层。
本步骤中的通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层包括:
预先在IP适配层中保存第一编号和无线连接之间的对应关系;
对接收到的第一TCP/UDP报文的TCP/UDP头进行解析得到第一TCP/UDP报文的第二编号;将得到的第二编号除以N得到的余数作为第一编号,在对应关系中查找其对应的无线连接,将第一TCP/UDP报文发送给查找到的无线连接的IP层。
或者,
本步骤中的通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层包括:
获取N个无线连接的服务质量,判断出第一TCP/UDP报文小于预先设置的第一阈值,将第一TCP/UDP报文发送给第一无线连接的IP层;判断出第一TCP/UDP报文大于或等于第(N-1)阈值,将第一TCP/UDP报文发送给第N无线连接的IP层;当N大于或等于3时,判断出第一TCP/UDP报文大于或等于第M阈值,且小于第(M+1)阈值,将第一TCP/UDP报文发送给第(M+1)无线连接;其中,M为大于或等于1且小于或等于(N-2)的整数;其中,从第一无线连接至第N无线连接,服务质量由差到好依次变化,也就是说,第一无线连接为N个无线连接中服务质量最差的无线连接,第N无线连接为N个无线连接中服务质量最好的无线连接。这样,将报文大的第一TCP/UDP报文发送给了服务质量好的无线连接。
其中,可以根据无线连接的传输速率、时延、误码率、重传次数等确定无线连接的服务质量,具体实现属于本领域技术人员的公知常识,并不用于限定本发明实施例的保护范围,这里不再赘述。
其中,无线连接的传输速率、时延、误码率、重传次数等可以由媒体访问控制(MAC,Media Access Control)层以管理帧的方式发送给IP适配层。
图3为本发明实施例中IP适配层将第一TCP/UDP报文发送给不同的无线连接的IP层的示意图。如图3所示,比如:假设N等于2,即只应用两个无线连接传输数据,假设预先设置的第一编号与无线连接之间的对应关系为:第一编号为1对应第一个无线连接,第一编号为2时对应第二个无线连接。那么,IP适配层会将第二编号为单数如1,3,5等的TCP/UDP报文发送给第一个无线连接的IP层,而将第二编号为偶数如2,4,6等的TCP/UDP报文发送给第二个无线连接的IP层。
当IP适配层通过建立的第二上下行socket连接接收到来自IP层的第二TCP/UDP报文时,本发明实施例的方法还包括:
步骤101、对来自IP层的各第二TCP/UDP报文进行缓存。
步骤102、当判断出缓存的各第二TCP/UDP报文的第二编号连续,且不存在源地址和目的地址相同的下一个第二TCP/UDP报文时,根据各第二TCP/UDP报文的第二编号按照由小到大的顺序将各第二TCP/UDP报文发送给TCP/UDP层。
本步骤中,判断出各源地址和目的地址相同的第二TCP/UDP报文不存在下一个第二TCP/UDP报文包括:
第二编号最大的第二TCP/UDP报文中指示是否存在下一个第二数据包的标识显示不存在下一个第二TCP/UDP报文。
下面通过具体实施例详细说明本发明实施例的方法。
第一实施例,参见图4,UE向网络侧发送数据的方法包括:
步骤400、分别在UE和PGW中增加设置IP适配层。
步骤401、UE在IP适配层接收到来自LTE或WLAN的第一TCP/UDP层的第一TCP/UDP报文,第一实施例中,假设将第二编号为单数的第一TCP/UDP报文发送给LTE的IP层,将第二编号为偶数的第一TCP/UDP报文发送给WLAN的IP层。
步骤402、UE在LTE的IP层按照现有的协议将数据包通过LTE对应的空口发送给SGW,WLAN的IP层按照现有的协议将数据包通过WLAN对应的空口发送给AP,SGW或AP按照现有的协议将数据包发送给PGW。
步骤403、如果PGW在IP适配层接收到来自LTE和WLAN的IP层的第二TCP/UDP报文,则缓存接收到第二TCP/UDP报文;第一实施例中,假设当缓存8个第二TCP/UDP报文时,如果接收到的8个第二TCP/UDP报文的第二编号连续,且第二编号为8的第二TCP/UDP报文指示没有下一个第二TCP/UDP报文,则将接收到的8个第二TCP/UDP报文按照第二编号由小到大的顺序发送给LTE或WLAN的TCP/UDP层。
第二实施例,参见图5,网络侧向UE发送数据的方法包括:
步骤500、分别在UE和PGW中增加设置IP适配层。
步骤501、PGW在IP适配层接收到来自LTE或WLAN的TCP/UDP层的第一TCP/UDP报文,第二实施例中,假设将第二编号为单数的第一TCP/UDP报文发送给LTE的IP层,将第二编号为偶数的第一TCP/UDP报文发送给WLAN的IP层。
步骤502、PGW在LTE的IP层按照现有的协议将数据包发送给SGW,WLAN的IP层按照现有的协议将数据包发送给AP,SGW或AP按照现有的协议将数据包发送给UE。
步骤503、如果UE在IP适配层接收到来自LTE和WLAN的IP层的第二TCP/UDP报文,则缓存接收到第二TCP/UDP报文;第一实施例中,假设当缓存8个第二TCP/UDP报文时,如果接收到的8个第二TCP/UDP报文的第二编号连续,且第二编号为8的第二TCP/UDP报文指示没有下一个第一数据包,则将接收到的8个第二TCP/UDP报文按照第二编号由小到大的顺序发送给LTE或WLAN的TCP/UDP层。
参见图6,本发明实施例还提出了一种基于多无线连接的数据传输装置,至少包括接收模块和发送模块,其中:
接收模块,设置为在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文;
发送模块,设置为在IP适配层通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层;其中,第二上下行socket连接包括分别与PGW和UE均支持的N个无线连接的IP层之间连接的N组第二上下行socket连接,N为大于或等于1的整数。
本发明实施例提供的装置中,接收模块还设置为:在IP适配层通过建立的第二上下行socket连接接收到来自IP层的第二TCP/UDP报文。相应地,
本发明实施例提供的装置还包括:
缓存模块,设置为对来自IP层的各第二TCP/UDP报文进行缓存;
判断模块,设置为判断出缓存的各第二TCP/UDP报文的第二编号连续,且不存在源地址和目的地址相同的下一个第二TCP/UDP报文;此时,
发送模块还设置为:
根据各第二TCP/UDP报文的第二编号按照由小到大的顺序将各第二TCP/UDP报文发送给无线连接的TCP/UDP层。
本发明实施例提供的装置中,判断模块具体设置为:
当第二编号最大的第二TCP/UDP报文中指示是否存在下一个第二数据包的标识显示不存在下一个第二TCP/UDP报文,则判断出缓存的各第二TCP/UDP报文的第二编号连续。
进一步地,本发明实施例提供的装置中,缓存模块还设置为:
在IP适配层中保存第一编号和无线连接之间的对应关系;其中,第一编号小于或等于N。相应地,发送模块具体设置为:
对接收到的第一TCP/UDP报文的TCP/UDP头进行解析得到第一TCP/UDP报文的第二编号,将得到的第二编号除以N得到的余数作为第一编号,在对应关系中查找其对应的无线连接,将第一TCP/UDP报文发送给查找到的无线连接的IP层。
进一步地,本发明实施例提供的装置中,发送模块具体设置为:
获取N个无线连接的服务质量,判断出第一TCP/UDP报文小于第一阈值,将第一TCP/UDP报文发送给第一无线连接的IP层;判断出第一TCP/UDP报文大于或等于第(N-1)阈值,将第一TCP/UDP报文发送给第N无线连接的IP层;当N大于或等于3时,判断出第一TCP/UDP报文大于或等于第M阈值,且小于第(M+1)阈值,将第一TCP/UDP报文发送给第(M+1)无线连接;其中,M为大于或等于1且小于或等于(N-2)的整数;其中,从第一无线连接至第N无线连接,服务质量由差到好依次变化,也就是说,第一无线连接为N个无线连接中服务质量最差的无线连接,第N无线连接为N个无线连接中服务质量最好的无线连接。
需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本发明的保护范围,在不脱离本发明的发明构思的前提下,本领域技术人员对本发明所做出的任何显而易见的替换和改进等均在本发明的保护范围之内。
工业实用性
本发明实施例提出的基于多无线连接的数据传输方法和装置,包括:预先设置互联网协议IP适配层,IP适配层与传输控制协议TCP/用户数据报协议UDP层之间建立第一上下行套接字socket连接,并分别与分组数据网关P-GW和用户设备UE均支持的N个无线连接的IP层之间建立N组第二上下行socket连接;还包括:在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文,通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层。通过本发明实施例提供的方案,在增加设置的IP适配层,将各第一TCP/UDP报文发送给不同无线连接对应的IP层,从而实现了应用层同时通过不同的无线连接发送数据,提高了数据传输速率。

Claims (10)

  1. 一种数据传输方法,其特征在于,包括:预先设置互联网协议IP适配层,IP适配层与传输控制协议TCP/用户数据报协议UDP层之间建立第一上下行套接字socket连接,并分别与分组数据网关P-GW和用户设备UE均支持的N个无线连接的IP层之间建立N组第二上下行socket连接;
    该方法还包括:
    在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文,通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层;
    其中,N为大于或等于1的整数。
  2. 根据权利要求1所述的数据传输方法,其特征在于,当所述IP适配层通过建立的第二上下行socket连接接收到来自所述IP层的第二TCP/UDP报文时,该方法还包括:
    对来自所述IP层的各第二TCP/UDP报文进行缓存;
    当判断出缓存的各第二TCP/UDP报文的第二编号连续,且不存在源地址和目的地址相同的下一个第二TCP/UDP报文时,根据所述各第二TCP/UDP报文的第二编号按照由小到大的顺序将所述各第二TCP/UDP报文发送给所述TCP/UDP层。
  3. 根据权利要求2所述的数据传输方法,其特征在于,所述判断出不存在下一个第二TCP/UDP报文包括:
    所述第二编号最大的第二TCP/UDP报文中指示是否存在下一个第二数据包的标识显示不存在下一个第二TCP/UDP报文。
  4. 根据权利要求1或2所述的数据传输方法,其特征在于,该方法之前还包括:在所述IP适配层中保存第一编号和无线连接之间的对应关系;
    所述通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层包括:
    对所述接收到的第一TCP/UDP报文的TCP/UDP头进行解析得到第一TCP/UDP报文的第二编号,将得到的第二编号除以N得到的余数作为第一编 号,在对应关系中查找其对应的无线连接,将所述第一TCP/UDP报文发送给查找到的无线连接的IP层。
  5. 根据权利要求1或2所述的数据传输方法,其特征在于,所述通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层包括:
    获取所述N个无线连接的服务质量,判断出所述第一TCP/UDP报文小于第一阈值,将所述第一TCP/UDP报文发送给第一无线连接的IP层;
    判断出所述第一TCP/UDP报文大于或等于第(N-1)阈值,将所述第一TCP/UDP报文发送给第N无线连接的IP层;
    当N大于或等于3时,判断出所述第一TCP/UDP报文大于或等于第M阈值,且小于第(M+1)阈值,将所述第一TCP/UDP报文发送给第(M+1)无线连接;
    其中,M为大于或等于1且小于或等于(N-2)的整数;
    其中,从所述第一无线连接至第N无线连接,服务质量由差到好依次变化。
  6. 一种基于多无线连接的数据传输装置,其特征在于,至少包括:
    接收模块,设置为在IP适配层通过建立的第一上下行socket连接接收来自TCP/DUP层的各第一TCP/UDP报文;
    发送模块,设置为在IP适配层通过建立的第二上下行socket连接将接收到的各第一TCP/UDP报文发送给不同的无线连接的IP层;其中,N为大于或等于1的整数;
    所述第二上下行socket连接包括分别与PGW和UE均支持的N个无线连接的IP层之间连接的N组第二上下行socket连接。
  7. 根据权利要求6所述的数据传输装置,其特征在于,所述接收模块还设置为:在所述IP适配层通过建立的第二上下行socket连接接收到来自所述IP层的第二TCP/UDP报文;相应地,
    还包括:
    缓存模块,设置为对来自所述IP层的各第二TCP/UDP报文进行缓存;
    判断模块,设置为判断出缓存的各第二TCP/UDP报文的第二编号连续,且不存在源地址和目的地址相同的下一个第二TCP/UDP报文;
    此时,所述发送模块还设置为:
    根据所述各第二TCP/UDP报文的第二编号按照由小到大的顺序将所述各第二TCP/UDP报文发送给无线连接的TCP/UDP层。
  8. 根据权利要求7所述的数据传输装置,其特征在于,所述判断模块具体设置为:当所述第二编号最大的第二TCP/UDP报文中指示是否存在下一个第二数据包的标识显示不存在下一个第二TCP/UDP报文,则判断出所述缓存的各第二TCP/UDP报文的第二编号连续。
  9. 根据权利要求6或7所述的数据传输装置,其特征在于,所述缓存模块还设置为:
    在所述IP适配层中保存第一编号和无线连接之间的对应关系;
    所述发送模块具体设置为:
    对所述接收到的第一TCP/UDP报文的TCP/UDP头进行解析得到第一TCP/UDP报文的第二编号,将得到的第二编号除以N得到的余数作为第一编号,在对应关系中查找其对应的无线连接,将所述第一TCP/UDP报文发送给查找到的无线连接的IP层。
  10. 根据权利要求6或7所述的数据传输装置,其特征在于,所述发送模块具体设置为:获取所述N个无线连接的服务质量,
    当判断出所述第一TCP/UDP报文小于第一阈值,将所述第一TCP/UDP报文发送给第一无线连接的IP层;
    当判断出所述第一TCP/UDP报文大于或等于第(N-1)阈值,将所述第一TCP/UDP报文发送给第N无线连接的IP层;
    当N大于或等于3时,判断出所述第一TCP/UDP报文大于或等于第M阈值,且小于第(M+1)阈值,将所述第一TCP/UDP报文发送给第(M+1)无线连接;其中,M为大于或等于1且小于或等于(N-2)的整数;
    其中,从所述第一无线连接至第N无线连接,服务质量由差到好依次变化。
PCT/CN2015/073134 2014-09-28 2015-02-15 一种数据传输方法和装置 WO2015131762A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410508818.4 2014-09-28
CN201410508818.4A CN105530713B (zh) 2014-09-28 2014-09-28 一种基于多无线连接的数据传输方法和装置

Publications (1)

Publication Number Publication Date
WO2015131762A1 true WO2015131762A1 (zh) 2015-09-11

Family

ID=54054588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073134 WO2015131762A1 (zh) 2014-09-28 2015-02-15 一种数据传输方法和装置

Country Status (2)

Country Link
CN (1) CN105530713B (zh)
WO (1) WO2015131762A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996164A (zh) * 2022-07-29 2022-09-02 润芯微科技(江苏)有限公司 一种利用ZigBee通讯进行鸿蒙系统HDC调试方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093061A1 (en) * 2000-05-26 2001-12-06 Vocaltec Ltd. Communications protocol
CN101262445A (zh) * 2008-04-10 2008-09-10 国家广播电影电视总局广播科学研究院 自适应IPv4/IPv6的流媒体服务器及实现方法
CN101690073A (zh) * 2007-07-04 2010-03-31 艾利森电话股份有限公司 跨越数据网络的ip链路建立
CN103731291A (zh) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 一种网络服务器池系统数据传输结构及其程序开发方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483931B (zh) * 2009-02-26 2011-03-02 中兴通讯股份有限公司 一种移动终端及多链路并发处理的方法
CN103179087B (zh) * 2011-12-21 2016-07-06 上海飞田通信技术有限公司 应用层到TCP层异步Socket数据传输方法及系统
US9137270B2 (en) * 2012-12-03 2015-09-15 International Business Machines Corporation Binding multiple addresses to a socket in a network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093061A1 (en) * 2000-05-26 2001-12-06 Vocaltec Ltd. Communications protocol
CN101690073A (zh) * 2007-07-04 2010-03-31 艾利森电话股份有限公司 跨越数据网络的ip链路建立
CN101262445A (zh) * 2008-04-10 2008-09-10 国家广播电影电视总局广播科学研究院 自适应IPv4/IPv6的流媒体服务器及实现方法
CN103731291A (zh) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 一种网络服务器池系统数据传输结构及其程序开发方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996164A (zh) * 2022-07-29 2022-09-02 润芯微科技(江苏)有限公司 一种利用ZigBee通讯进行鸿蒙系统HDC调试方法
CN114996164B (zh) * 2022-07-29 2022-10-21 润芯微科技(江苏)有限公司 一种利用ZigBee通讯进行鸿蒙系统HDC调试方法

Also Published As

Publication number Publication date
CN105530713A (zh) 2016-04-27
CN105530713B (zh) 2020-12-11

Similar Documents

Publication Publication Date Title
US11997534B2 (en) Multi-link aggregation link management
US10999852B2 (en) Methods and apparatus for requesting buffer status reports for implementing multiple user uplink medium access control protocols in a wireless network
WO2020238812A1 (zh) 一种适用于多链路的通信方法及相关设备
US20210112453A1 (en) Dual Connectivity
US20180367463A1 (en) Method And Apparatus For Handling Data Duplication In Mobile Communications
US9407734B2 (en) System and method for efficient frame aggregation based on aggregation limits or parameters
US10812292B2 (en) Packet processing method and device
WO2017000840A1 (zh) 一种数据传输方法及装置
JP2015111829A5 (zh)
JP2016523033A5 (zh)
KR20180059858A (ko) 무선 네트워크에서의 가변 길이 블록 확인응답 필드들을 시그널링하고 생성하기 위한 시스템들 및 방법들
US9602461B2 (en) Service forwarding method and device
US20190223256A1 (en) Data transmission method, network device, and terminal device
US9325523B2 (en) Method, device and system for accessing wireless local area network, wireless station, and wireless access point
US20210314815A1 (en) Device And Method For Flexible Frame Compression
CN102739375B (zh) 一种用于重传的方法和装置
JP6874074B2 (ja) 無線通信装置及び無線通信方法
TWI685265B (zh) 用於無線系統的方法以及無線設備
CN104618393A (zh) 一种低频无线Mesh自组网传输方法
US20170324518A1 (en) An adaptive block ack mechanism for a-mdpu
WO2015131762A1 (zh) 一种数据传输方法和装置
CN109906646A (zh) 信息传输方法、基站和终端设备
US20150381377A1 (en) Method and apparatus for managing addresses and connectivity arrangements for transporting multicast data in a wireless network
US20230413108A1 (en) Pdu rate reduction in mobile communications
Shin et al. New Retransmission Method using the minimum MPDU starting Spacing in Two-level Aggregation of IEEE 802.11 n

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: 15758914

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15758914

Country of ref document: EP

Kind code of ref document: A1