WO2024022022A1 - Multi-network card fusion communication method and communication system - Google Patents

Multi-network card fusion communication method and communication system Download PDF

Info

Publication number
WO2024022022A1
WO2024022022A1 PCT/CN2023/104661 CN2023104661W WO2024022022A1 WO 2024022022 A1 WO2024022022 A1 WO 2024022022A1 CN 2023104661 W CN2023104661 W CN 2023104661W WO 2024022022 A1 WO2024022022 A1 WO 2024022022A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
client
data
server
data packets
Prior art date
Application number
PCT/CN2023/104661
Other languages
French (fr)
Chinese (zh)
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 WO2024022022A1 publication Critical patent/WO2024022022A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • 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]
    • H04L69/165Combined use of TCP and UDP protocols; selection criteria therefor

Definitions

  • the present invention relates to the field of network communication technology, and more specifically, to a multi-network card integrated communication method and a communication system.
  • the prior art discloses a communication method and communication device on a communication device having multiple communication links.
  • the communication method includes: obtaining the first downlink UDP data packet sent by the upper layer application to the remote host; obtaining information on the currently selected communication link; encapsulating the first downlink UDP data packet into a format suitable for the current in the second downlink UDP data packet of the selected communication link; sending the second downlink UDP data packet to the remote host through the currently selected communication link.
  • the present invention provides a multi-network card integrated communication method and a communication system.
  • the primary purpose of the present invention is to solve the above technical problems.
  • the technical solutions of the present invention are as follows:
  • a first aspect of the present invention provides a multi-network card integrated communication method, which includes the following steps:
  • the second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
  • the second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets according to the first communication protocol and performs fusion processing.
  • each second data packet is the same.
  • the server receives the second data packet according to the first communication protocol and performs fusion processing, which specifically includes:
  • the server identifies and registers the ID of the first received second data packet, and then unpacks it and sends it to the server application.
  • the server receives the subsequent second data packet, it identifies the ID of the subsequent second data packet. , If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet is discarded.
  • Each second data packet group includes a number of sub-data packets, and each sub-data packet is provided with a sequence number;
  • the second data packet group is simultaneously sent to the server using a preset network card, and the server receives the second data packet group according to the second communication protocol and performs fusion processing.
  • each of the second data packet groups are the same.
  • the server receives the second data packet group according to the second communication protocol and performs fusion processing, which specifically includes:
  • the server identifies and registers the ID of the first received second data packet group, and then unpacks and sends it to the server application.
  • the server receives the subsequent second data packet group, it identifies the subsequent second data packet. The ID of the group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
  • the first communication protocol is TCP protocol
  • the second communication protocol is UDP protocol
  • a second aspect of the present invention provides a multi-network card integrated communication method, which includes the following steps:
  • the second data packets are sent to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
  • the second data packets are sent to the client simultaneously using the preset network card, and the client is A communication protocol receives the second data packet and performs fusion processing.
  • the client receives the second data packet according to the first communication protocol and performs fusion processing, which specifically includes:
  • the client identifies and registers the ID of the first received second data packet, and then unpacks it and sends it to the client application.
  • the client receives the subsequent second data packet, it identifies the ID of the subsequent second data packet. , If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet is discarded.
  • Each second data packet group includes a number of sub-data packets, and each sub-data packet is provided with a sequence number;
  • the second data packet group is sent to the client simultaneously using the preset network card, and the client receives the second data packet group according to the second communication protocol and performs fusion processing.
  • the server receives the second data packet group according to the second communication protocol and performs fusion processing, which specifically includes:
  • the client identifies and registers the ID of the first received second data packet group, and then unpacks and sends it to the client application.
  • the client receives the subsequent second data packet group, it identifies the subsequent second data packet. The ID of the group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
  • the third aspect of the present invention provides a multi-network card integrated communication system, including:
  • the first data packet acquisition unit is used to acquire the first data packet sent by the client;
  • the second data packet encapsulation unit is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the second data packet;
  • the second data packet sending unit is used to send the second data packets to the server simultaneously using preset network cards.
  • the server receives the second data packets and performs fusion processing.
  • the fourth aspect of the present invention provides a multi-network card integrated communication system, including:
  • the first data packet acquisition unit is used to acquire the first data packet sent by the server;
  • the second data packet encapsulation unit is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the second data packet;
  • the second data packet sending unit is used to send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
  • This invention overcomes the problem of traditional point-to-point communication that relies on a single communication link and has poor communication quality and reliability by packetizing the data packets according to the preset number of network cards, and then sending the packetized data packets simultaneously using the preset network cards. problem and improves the reliability of communication.
  • the present invention processes data based on the transmission layer instead of processing the data at the application layer, so it can ensure that client and server applications are not invaded.
  • Figure 1 is a flow chart of a multi-network card integrated communication method in Embodiment 1 of the present invention.
  • Figure 2 is a flow chart of a multi-network card integrated communication method in Embodiment 2 of the present invention.
  • Figure 3 is a block diagram of a multi-network card converged communication system in Embodiment 3 of the present invention.
  • Figure 4 is a block diagram of a multi-network card converged communication system in Embodiment 4 of the present invention.
  • the TCP and UDP protocols are located above the IP protocol and are both transport layer protocols.
  • the communication link between the client and the server refers to the communication channel that can be established through network hardware modules (such as wired network cards, wireless network cards, mobile communication cards, etc.).
  • the communication device refers to any network access device equipped with the aforementioned communication link, such as mobile communication terminals, routers, smart TVs, tablets, etc.
  • the first aspect of the present invention provides a multi-network card integrated communication method, which includes the following steps:
  • S101 obtains the first data packet sent by the client
  • S102 Pack the first data packets according to the preset number of network cards to obtain second data packets
  • S103 Send the second data packets to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
  • the present invention overcomes the traditional point-to-point problem by encapsulating the first data packet according to the preset number of network cards to obtain the second data packet, and then sending the second data packet to the server simultaneously using the preset network cards.
  • Communication relies on a single communication link to solve the problem of poor communication quality and reliability.
  • the communication method of the present invention only processes data at the transmission layer and does not process data at the application layer. Therefore, it can ensure that it does not invade the client and the service. end application.
  • different network cards can be set up for communication.
  • multiple network operators can be configured with network cards. Because the communication quality of each network operator in different areas is inconsistent, the communication method of the present invention can choose The first packet received is delivered to the application.
  • the second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets according to the first communication protocol and performs fusion processing.
  • the first communication protocol can be TCP protocol
  • the second communication protocol can be UDP protocol.
  • One data packet is encapsulated to obtain three identical second data packets, in which each second data packet encapsulates the same data and ID.
  • the ID is added to the second data packet to facilitate the server to identify the data packet.
  • the second data packets are sent to the server simultaneously using preset network cards.
  • the server receives the second data packets according to the first communication protocol and performs fusion processing.
  • the second data packets are fused at the server.
  • the server identifies and registers the ID of the first received second data packet, and then unpacks and sends it to the server application.
  • the server receives the subsequent second data packet, it identifies the subsequent second data. The ID of the packet. If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet will be discarded.
  • the second data packet group is sent to the server simultaneously using the preset network card.
  • the server receives the second data packet group according to the UDP protocol and performs fusion processing.
  • the second data packet group performs fusion processing on the server.
  • the server identifies and registers the ID of the first received second data packet group, and then unpacks it and sends it to the server application.
  • the server receives the subsequent second data packet group, it identifies the subsequent The ID of the second data packet group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
  • this embodiment also provides another multi-network card integrated communication method.
  • This method illustrates the communication between the server and the client, including the following steps:
  • S201 obtains the first data packet sent by the server
  • S202 Pack the first data packets according to the number of network cards preset by the client to obtain second data packets
  • S203 Send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
  • the server when the server sends information to the client, the server can use the first communication protocol or the second communication protocol to send the information.
  • the first communication protocol can be the TCP protocol
  • the second communication protocol can be the UDP protocol.
  • One data packet is encapsulated to obtain three identical second data packets, in which each second data packet encapsulates the same data and ID.
  • the ID is added to the second data packet to facilitate the client to identify the data packet.
  • the second data packets are sent to the client simultaneously using preset network cards.
  • the client receives the second data packets according to the first communication protocol and performs fusion processing.
  • the second data packets are fused on the client side.
  • the client identifies and registers the ID of the first received second data packet, and then unpacks and sends it to the client application.
  • the client receives the subsequent second data packet, it identifies the subsequent second data. The ID of the packet. If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet will be discarded.
  • the second data packet group is sent to the client simultaneously using the preset network card.
  • the client receives the second data packet group according to the UDP protocol and performs fusion processing.
  • the second data packet group performs fusion processing on the client.
  • the client identifies and registers the ID of the first received second data packet group, and then unpacks it and sends it to the client application.
  • the client receives the subsequent second data packet group, it identifies the subsequent The ID of the second data packet group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
  • the third aspect of the present invention provides a multi-network card integrated communication system, which can be used to execute the multi-network card integrated communication method in Embodiment 1.
  • the communication system may include, but is not limited to, mobile communication terminals, routers, smart TVs and/or tablets, etc.
  • a multi-network card converged communication system includes:
  • the first data packet acquisition unit 310 is used to obtain the first data packet sent by the client; the second data packet encapsulating unit 320 is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the first data packet. Two data packets; the second data packet sending unit 330 is used to send the second data packets to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
  • the fourth aspect of the present invention provides a multi-network card integrated communication system, which can be used to execute the multi-network card integrated communication method in Embodiment 2.
  • the communication system may include, but is not limited to, mobile communication terminals, routers, smart TVs and/or tablets, etc.
  • a multi-network card converged communication system includes:
  • the first data packet acquisition unit 410 is used to obtain the first data packet sent by the server; the second data packet encapsulation unit 420 is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the first data packet. Two data packets; the second data packet sending unit 430 is used to send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
  • the communication system proposed by the present invention can include all the components shown in Figures 3 and 4 at the same time, so as to simultaneously support link aggregation processing of bidirectional data packets on the network protocol stack.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be electrical, mechanical, or other forms. of.
  • the units described above as separate components may or may not be physically separated; the components shown as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • all functional units in the embodiments of the present invention can be integrated into one processing unit, or each unit can be separately used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the aforementioned program can be stored in a computer-readable storage medium.
  • the execution includes: The steps of the above method embodiment; and the aforementioned storage media include: mobile storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
  • the medium on which program code is stored includes: mobile storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
  • the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium and include a number of instructions to A computer device (which may be a personal computer, a server, a network device, etc.) is caused to execute all or part of the methods described in various embodiments of the present invention.
  • the aforementioned storage media include: mobile storage devices, ROM, RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in the present invention are a multi-network card fusion communication method and communication system. The method comprises the following steps: obtaining a first data packet sent by a client; packaging the data packet separately according to a preset number of network cards to obtain second data packets; and sending the second data packets to a server at the same time by respectively using preset network cards, and the server receiving the second data packets and performing fusion processing. According to the present invention, the data packet is separately packaged according to the preset number of the network cards, and then the packaged data packets are sent at the same time by respectively using the preset network cards, so that the defect of low communication quality reliability due to dependence on a single communication link in the traditional point-to-point communication is overcome, and the communication reliability is improved; moreover, according to the present invention, the data is processed on the basis of a transmission layer, and the data is not processed in an application layer, thereby ensuring no intrusion into applications on the client and the server.

Description

一种多网卡融合通信方法及通信系统A multi-network card integrated communication method and communication system 技术领域Technical field
本发明涉及网络通信技术领域,更具体地,涉及一种多网卡融合通信方法及通信系统。The present invention relates to the field of network communication technology, and more specifically, to a multi-network card integrated communication method and a communication system.
背景技术Background technique
现在的数据从客户端发送到服务端都是使用点对点通讯,即使一台计算机上有多张网卡,也只使用一条链路来传输数据,选择的这条链路的好坏决定了这次通讯的质量,不能复用其他网卡来保障数据的可靠传输。Today's data is sent from the client to the server using point-to-point communication. Even if there are multiple network cards on a computer, only one link is used to transmit data. The quality of the selected link determines the communication. quality, other network cards cannot be reused to ensure reliable transmission of data.
现有技术中公开了一种在具有多个通信链路的通信设备上的通信方法及通信设备。所述通信方法包括:获取上层应用发往远程主机的第一下行UDP数据包;获取当前选定的通信链路的信息;将所述第一下行UDP数据包封装到适于所述当前选定的通信链路的第二下行UDP数据包中;通过所述当前选定的通信链路将所述第二下行UDP数据包发送给所述远程主机。该现有技术所公开的技术方案虽然具有多条通信链路,但其在实际的通信时仍然是依靠单一通信链路进行通信。The prior art discloses a communication method and communication device on a communication device having multiple communication links. The communication method includes: obtaining the first downlink UDP data packet sent by the upper layer application to the remote host; obtaining information on the currently selected communication link; encapsulating the first downlink UDP data packet into a format suitable for the current in the second downlink UDP data packet of the selected communication link; sending the second downlink UDP data packet to the remote host through the currently selected communication link. Although the technical solution disclosed in this prior art has multiple communication links, it still relies on a single communication link for actual communication.
发明内容Contents of the invention
本发明为克服上述现有技术中点对点通信依靠单一通信链路,通信质量可靠性不强,安全性不高的缺陷,提供一种多网卡融合通信方法及通信系统。In order to overcome the above-mentioned defects in the prior art that point-to-point communication relies on a single communication link, the communication quality is not reliable, and the security is not high, the present invention provides a multi-network card integrated communication method and a communication system.
本发明的首要目的是为解决上述技术问题,本发明的技术方案如下:The primary purpose of the present invention is to solve the above technical problems. The technical solutions of the present invention are as follows:
本发明第一方面提供了一种多网卡融合通信方法,包括以下步骤:A first aspect of the present invention provides a multi-network card integrated communication method, which includes the following steps:
获取客户端发出的第一数据包;Get the first data packet sent by the client;
将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端接收所述第二数据包并进行融合处理。The second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
进一步的,包括以下步骤:Further steps include:
获取客户端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the client according to the first communication protocol or the second communication protocol;
将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端按照第一通讯协议接收所述第二数据包并进行融合处理。 The second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets according to the first communication protocol and performs fusion processing.
进一步的,每一份所述第二数据包封装的数据、ID均相同。Further, the data and ID encapsulated in each second data packet are the same.
进一步的,所述服务端按照第一通讯协议接收所述第二数据包并进行融合处理具体包括:Further, the server receives the second data packet according to the first communication protocol and performs fusion processing, which specifically includes:
服务端对最先收到的第二数据包的ID进行识别并登记,再解包发送给服务端应用,当服务端收到后续的第二数据包时,识别后续的第二数据包的ID,若后续的第二数据包ID与已登记的第二数据包相同,则丢弃后续的第二数据包。The server identifies and registers the ID of the first received second data packet, and then unpacks it and sends it to the server application. When the server receives the subsequent second data packet, it identifies the ID of the subsequent second data packet. , If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet is discarded.
进一步的,包括以下步骤:Further steps include:
获取客户端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the client according to the first communication protocol or the second communication protocol;
将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包组,每个第二数据包组包括若干子数据包,每个子数据包均设有序号;Pack the first data packets according to the preset number of network cards to obtain a second data packet group. Each second data packet group includes a number of sub-data packets, and each sub-data packet is provided with a sequence number;
将所述第二数据包组分别采用预设网卡同时发送至服务端,所述服务端按照第二通讯协议接收所述第二数据包组并进行融合处理。The second data packet group is simultaneously sent to the server using a preset network card, and the server receives the second data packet group according to the second communication protocol and performs fusion processing.
进一步的,每一份所述第二数据包组封装的数据、ID均相同。Further, the data and ID encapsulated in each of the second data packet groups are the same.
进一步的,所述服务端按照第二通讯协议接收所述第二数据包组并进行融合处理具体包括:Further, the server receives the second data packet group according to the second communication protocol and performs fusion processing, which specifically includes:
服务端对最先收到的第二数据包组的ID进行识别并登记,再解包发送给服务端应用,当服务端收到后续的第二数据包组时,识别后续的第二数据包组的ID,若后续的第二数据包组ID与已登记的第二数据包组相同,则丢弃后续的第二数据包组。The server identifies and registers the ID of the first received second data packet group, and then unpacks and sends it to the server application. When the server receives the subsequent second data packet group, it identifies the subsequent second data packet. The ID of the group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
进一步的,所述第一通讯协议为TCP协议,所述第二通讯协议为UDP协议。Further, the first communication protocol is TCP protocol, and the second communication protocol is UDP protocol.
本发明第二方面提供了一种多网卡融合通信方法,包括以下步骤:A second aspect of the present invention provides a multi-network card integrated communication method, which includes the following steps:
获取服务端发出的第一数据包;Get the first data packet sent by the server;
将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the number of network cards preset by the client to obtain second data packets;
将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端接收所述第二数据包并进行融合处理。The second data packets are sent to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
进一步的,包括以下步骤:Further steps include:
获取服务端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the server according to the first communication protocol or the second communication protocol;
将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端按照第 一通讯协议接收所述第二数据包并进行融合处理。The second data packets are sent to the client simultaneously using the preset network card, and the client is A communication protocol receives the second data packet and performs fusion processing.
进一步的,所述客户端按照第一通讯协议接收所述第二数据包并进行融合处理具体包括:Further, the client receives the second data packet according to the first communication protocol and performs fusion processing, which specifically includes:
客户端对最先收到的第二数据包的ID进行识别并登记,再解包发送给客户端应用,当客户端收到后续的第二数据包时,识别后续的第二数据包的ID,若后续的第二数据包ID与已登记的第二数据包相同,则丢弃后续的第二数据包。The client identifies and registers the ID of the first received second data packet, and then unpacks it and sends it to the client application. When the client receives the subsequent second data packet, it identifies the ID of the subsequent second data packet. , If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet is discarded.
进一步的,包括以下步骤:Further steps include:
获取服务端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the server according to the first communication protocol or the second communication protocol;
将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包组,每个第二数据包组包括若干子数据包,每个子数据包均设有序号;Pack the first data packets according to the preset number of network cards to obtain a second data packet group. Each second data packet group includes a number of sub-data packets, and each sub-data packet is provided with a sequence number;
将所述第二数据包组分别采用预设网卡同时发送至客户端,所述客户端按照第二通讯协议接收所述第二数据包组并进行融合处理。The second data packet group is sent to the client simultaneously using the preset network card, and the client receives the second data packet group according to the second communication protocol and performs fusion processing.
进一步的,所述服务端按照第二通讯协议接收所述第二数据包组并进行融合处理具体包括:Further, the server receives the second data packet group according to the second communication protocol and performs fusion processing, which specifically includes:
客户端对最先收到的第二数据包组的ID进行识别并登记,再解包发送给客户端应用,当客户端收到后续的第二数据包组时,识别后续的第二数据包组的ID,若后续的第二数据包组ID与已登记的第二数据包组相同,则丢弃后续的第二数据包组。The client identifies and registers the ID of the first received second data packet group, and then unpacks and sends it to the client application. When the client receives the subsequent second data packet group, it identifies the subsequent second data packet. The ID of the group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
本发明第三方面提供了一种多网卡融合通信系统,包括:The third aspect of the present invention provides a multi-network card integrated communication system, including:
第一数据包获取单元,用于获取客户端发出的第一数据包;The first data packet acquisition unit is used to acquire the first data packet sent by the client;
第二数据包封包单元,用于将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;The second data packet encapsulation unit is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the second data packet;
第二数据包发送单元,用于将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端接收所述第二数据包并进行融合处理。The second data packet sending unit is used to send the second data packets to the server simultaneously using preset network cards. The server receives the second data packets and performs fusion processing.
本发明第四方面提供了一种多网卡融合通信系统,包括:The fourth aspect of the present invention provides a multi-network card integrated communication system, including:
第一数据包获取单元,用于获取服务端发出的第一数据包;The first data packet acquisition unit is used to acquire the first data packet sent by the server;
第二数据包封包单元,用于将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;The second data packet encapsulation unit is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the second data packet;
第二数据包发送单元,用于将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端接收所述第二数据包并进行融合处理。 The second data packet sending unit is used to send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
与现有技术相比,本发明技术方案的有益效果是:Compared with the existing technology, the beneficial effects of the technical solution of the present invention are:
本发明通过将数据包按照预设的网卡数目分别进行封包,然后将封包后的数据包分别采用预设网卡同时发送,克服了传统的点对点通信中依赖单条通信链路通信质量可靠性不强的问题,提高了通信的可靠性,同时本发明基于传输层对数据进行处理,而不会在应用层对数据进行处理,因此可保证了不侵入客户端与服务端应用。This invention overcomes the problem of traditional point-to-point communication that relies on a single communication link and has poor communication quality and reliability by packetizing the data packets according to the preset number of network cards, and then sending the packetized data packets simultaneously using the preset network cards. problem and improves the reliability of communication. At the same time, the present invention processes data based on the transmission layer instead of processing the data at the application layer, so it can ensure that client and server applications are not invaded.
附图说明Description of drawings
图1为本发明实施例1中一种多网卡融合通信方法流程图。Figure 1 is a flow chart of a multi-network card integrated communication method in Embodiment 1 of the present invention.
图2为本发明实施例2中一种多网卡融合通信方法流程图。Figure 2 is a flow chart of a multi-network card integrated communication method in Embodiment 2 of the present invention.
图3为本发明实施例3中的一种多网卡融合通信系统框图。Figure 3 is a block diagram of a multi-network card converged communication system in Embodiment 3 of the present invention.
图4为本发明实施例4中的一种多网卡融合通信系统框图。Figure 4 is a block diagram of a multi-network card converged communication system in Embodiment 4 of the present invention.
具体实施方式Detailed ways
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, as long as there is no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。Many specific details are set forth in the following description in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. Limitations of Examples.
需要说明的是,在TCP/IP协议栈中,TCP和UDP协议位于IP协议之上,都属于传输层协议。本发明中客户端与服务端之间的通信链路指通过网络硬件模块(如有线网卡、无线网卡、移动通信卡等)可建立的通信通道。所说的通信设备是指配备有前述通信链路的任何网络访问设备,如移动通信终端、路由器、智能电视、平板电脑等。It should be noted that in the TCP/IP protocol stack, the TCP and UDP protocols are located above the IP protocol and are both transport layer protocols. In the present invention, the communication link between the client and the server refers to the communication channel that can be established through network hardware modules (such as wired network cards, wireless network cards, mobile communication cards, etc.). The communication device refers to any network access device equipped with the aforementioned communication link, such as mobile communication terminals, routers, smart TVs, tablets, etc.
实施例1Example 1
如图1所示,本发明第一方面提供了一种多网卡融合通信方法,包括以下步骤:As shown in Figure 1, the first aspect of the present invention provides a multi-network card integrated communication method, which includes the following steps:
S101获取客户端发出的第一数据包;S101 obtains the first data packet sent by the client;
S102将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;S102 Pack the first data packets according to the preset number of network cards to obtain second data packets;
S103将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端接收所述第二数据包并进行融合处理。 S103: Send the second data packets to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
需要说明的是,本发明通过将第一数据包按照预设的网卡数目分别进行封包得到第二数据包,然后将第二数据包分别采用预设网卡同时发送至服务端,克服了传统的点对点通信中依赖单条通信链路通信质量可靠性不强的问题,同时本发明通信方式仅在传输层对数据进行处理,而不会在应用层对数据进行处理,因此可保证不侵入客户端与服务端应用。It should be noted that the present invention overcomes the traditional point-to-point problem by encapsulating the first data packet according to the preset number of network cards to obtain the second data packet, and then sending the second data packet to the server simultaneously using the preset network cards. Communication relies on a single communication link to solve the problem of poor communication quality and reliability. At the same time, the communication method of the present invention only processes data at the transmission layer and does not process data at the application layer. Therefore, it can ensure that it does not invade the client and the service. end application.
在一个具体的实施例中,可以设置不同的网卡进行通信,具体的可以是配置多个网络运营商网卡,因为每个网络运营商在不同区域的通信质量不一致,故本本发明的通信方法能够选取最先收到的数据包并交付给应用。In a specific embodiment, different network cards can be set up for communication. Specifically, multiple network operators can be configured with network cards. Because the communication quality of each network operator in different areas is inconsistent, the communication method of the present invention can choose The first packet received is delivered to the application.
进一步的,包括以下步骤:Further steps include:
获取客户端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the client according to the first communication protocol or the second communication protocol;
将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端按照第一通讯协议接收所述第二数据包并进行融合处理。The second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets according to the first communication protocol and performs fusion processing.
需要说明的是,在一个具体的实施例中,第一通讯协议可以为TCP协议,第二通讯协议可以为UDP协议,当客户端采用TCP协议或UDP协议发送,服务端采用TCP协议接收时,通信过程如下:It should be noted that, in a specific embodiment, the first communication protocol can be TCP protocol, and the second communication protocol can be UDP protocol. When the client uses TCP protocol or UDP protocol to send, and the server uses TCP protocol to receive, The communication process is as follows:
获取客户端按照TCP协议或UDP协议发出的第一数据包;将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;例如网卡数可以设置为3个,则将第一数据包进行封包得到3个相同的第二数据包,其中每个第二数据包封装的数据、ID均相同,通过在第二数据包打上ID便于服务端识别数据包。将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端按照第一通讯协议接收所述第二数据包并进行融合处理,第二数据包在服务端进行融合处理,具体为:服务端对最先收到的第二数据包的ID进行识别并登记,再解包发送给服务端应用,当服务端收到后续的第二数据包时,识别后续的第二数据包的ID,若后续的第二数据包ID与已登记的第二数据包相同,则丢弃后续的第二数据包。Obtain the first data packet sent by the client according to the TCP protocol or UDP protocol; package the first data packet according to the preset number of network cards to obtain the second data packet; for example, the number of network cards can be set to 3, then the first data packet One data packet is encapsulated to obtain three identical second data packets, in which each second data packet encapsulates the same data and ID. The ID is added to the second data packet to facilitate the server to identify the data packet. The second data packets are sent to the server simultaneously using preset network cards. The server receives the second data packets according to the first communication protocol and performs fusion processing. The second data packets are fused at the server. Specifically: the server identifies and registers the ID of the first received second data packet, and then unpacks and sends it to the server application. When the server receives the subsequent second data packet, it identifies the subsequent second data. The ID of the packet. If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet will be discarded.
当客户端采用TCP协议或UDP协议发送,服务端采用UDP协议接收时,通信过程如下:When the client uses TCP protocol or UDP protocol to send and the server uses UDP protocol to receive, the communication process is as follows:
获取客户端按照TCP协议或UDP协议发出的第一数据包;将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包组;例如网卡数可以设置为3个,则将第一数据包进行封包得到3个相同的第二数据包组,其中,每个第二 数据包组包括若干子数据包,每个子数据包均设有序号,以便服务端解包;每个第二数据包组封装的数据、ID均相同。将所述第二数据包组分别采用预设网卡同时发送至服务端,所述服务端按照UDP协议接收所述第二数据包组并进行融合处理,第二数据包组在服务端进行融合处理,具体为:服务端对最先收到的第二数据包组的ID进行识别并登记,再解包发送给服务端应用,当服务端收到后续的第二数据包组时,识别后续的第二数据包组的ID,若后续的第二数据包组ID与已登记的第二数据包组相同,则丢弃后续的第二数据包组。Obtain the first data packet sent by the client according to the TCP protocol or UDP protocol; package the first data packet according to the preset number of network cards to obtain the second data packet group; for example, the number of network cards can be set to 3, then The first data packet is encapsulated to obtain 3 identical second data packet groups, wherein each second data packet group The data packet group includes several sub-data packets, and each sub-data packet is provided with a sequence number to facilitate unpacking by the server; the data and ID encapsulated in each second data packet group are the same. The second data packet group is sent to the server simultaneously using the preset network card. The server receives the second data packet group according to the UDP protocol and performs fusion processing. The second data packet group performs fusion processing on the server. , specifically: the server identifies and registers the ID of the first received second data packet group, and then unpacks it and sends it to the server application. When the server receives the subsequent second data packet group, it identifies the subsequent The ID of the second data packet group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
实施例2Example 2
如图2所示,基于上述实施例,本实施例还提供另一种多网卡融合通信方法,该方法来说明服务端向客户端通信,包括以下步骤:As shown in Figure 2, based on the above embodiment, this embodiment also provides another multi-network card integrated communication method. This method illustrates the communication between the server and the client, including the following steps:
S201获取服务端发出的第一数据包;S201 obtains the first data packet sent by the server;
S202将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;S202: Pack the first data packets according to the number of network cards preset by the client to obtain second data packets;
S203将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端接收所述第二数据包并进行融合处理。S203: Send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
需要说明的是,服务端向客户端发送信息,服务端可以采用第一通信协议或第二通信协议进行发送,第一通讯协议可以为TCP协议,第二通讯协议可以为UDP协议,当服务端采用TCP协议或UDP协议发送,客户端采用TCP协议接收时,通信过程如下:It should be noted that when the server sends information to the client, the server can use the first communication protocol or the second communication protocol to send the information. The first communication protocol can be the TCP protocol, and the second communication protocol can be the UDP protocol. When the server Use TCP protocol or UDP protocol to send, and when the client uses TCP protocol to receive, the communication process is as follows:
获取服务端按照TCP协议或UDP协议发出的第一数据包;将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;例如网卡数可以设置为3个,则将第一数据包进行封包得到3个相同的第二数据包,其中每个第二数据包封装的数据、ID均相同,通过在第二数据包打上ID便于客户端识别数据包。将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端按照第一通讯协议接收所述第二数据包并进行融合处理,第二数据包在客户端进行融合处理,具体为:客户端对最先收到的第二数据包的ID进行识别并登记,再解包发送给客户端应用,当客户端收到后续的第二数据包时,识别后续的第二数据包的ID,若后续的第二数据包ID与已登记的第二数据包相同,则丢弃后续的第二数据包。Obtain the first data packet sent by the server according to the TCP protocol or UDP protocol; package the first data packet according to the preset number of network cards to obtain the second data packet; for example, the number of network cards can be set to 3, then the first data packet One data packet is encapsulated to obtain three identical second data packets, in which each second data packet encapsulates the same data and ID. The ID is added to the second data packet to facilitate the client to identify the data packet. The second data packets are sent to the client simultaneously using preset network cards. The client receives the second data packets according to the first communication protocol and performs fusion processing. The second data packets are fused on the client side. Specifically: the client identifies and registers the ID of the first received second data packet, and then unpacks and sends it to the client application. When the client receives the subsequent second data packet, it identifies the subsequent second data. The ID of the packet. If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet will be discarded.
当服务端采用TCP协议或UDP协议发送,客户端采用UDP协议接收时,通信过程如下: When the server uses TCP protocol or UDP protocol to send and the client uses UDP protocol to receive, the communication process is as follows:
获取服务端按照TCP协议或UDP协议发出的第一数据包;将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包组;例如网卡数可以设置为3个,则将第一数据包进行封包得到3个相同的第二数据包组,其中,每个第二数据包组包括若干子数据包,每个子数据包均设有序号,以便客户端解包;每个第二数据包组封装的数据、ID均相同。将所述第二数据包组分别采用预设网卡同时发送至客户端,所述客户端按照UDP协议接收所述第二数据包组并进行融合处理,第二数据包组在客户端进行融合处理,具体为:客户端对最先收到的第二数据包组的ID进行识别并登记,再解包发送给客户端应用,当客户端收到后续的第二数据包组时,识别后续的第二数据包组的ID,若后续的第二数据包组ID与已登记的第二数据包组相同,则丢弃后续的第二数据包组。Obtain the first data packet sent by the server according to the TCP protocol or UDP protocol; package the first data packet according to the preset number of network cards to obtain the second data packet group; for example, the number of network cards can be set to 3, then The first data packet is encapsulated to obtain 3 identical second data packet groups, in which each second data packet group includes several sub-data packets, and each sub-data packet is provided with a sequence number for the client to unpack; each second data packet group is The data and ID encapsulated in the two data packet groups are the same. The second data packet group is sent to the client simultaneously using the preset network card. The client receives the second data packet group according to the UDP protocol and performs fusion processing. The second data packet group performs fusion processing on the client. , specifically: the client identifies and registers the ID of the first received second data packet group, and then unpacks it and sends it to the client application. When the client receives the subsequent second data packet group, it identifies the subsequent The ID of the second data packet group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
实施例3Example 3
如图3所示,本发明第三方面提供了一种多网卡融合通信系统,该系统可用于执行实施例1中多网卡融合通信方法。通信系统可以包括但不限于移动通信终端、路由器、智能电视和/或平板电脑等等。参照图4,一种多网卡融合通信系统包括:As shown in Figure 3, the third aspect of the present invention provides a multi-network card integrated communication system, which can be used to execute the multi-network card integrated communication method in Embodiment 1. The communication system may include, but is not limited to, mobile communication terminals, routers, smart TVs and/or tablets, etc. Referring to Figure 4, a multi-network card converged communication system includes:
第一数据包获取单元310,用于获取客户端发出的第一数据包;第二数据包封包单元320,用于将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;第二数据包发送单元330,用于将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端接收所述第二数据包并进行融合处理。The first data packet acquisition unit 310 is used to obtain the first data packet sent by the client; the second data packet encapsulating unit 320 is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the first data packet. Two data packets; the second data packet sending unit 330 is used to send the second data packets to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
实施例4Example 4
如图4所示,本发明第四方面提供了一种多网卡融合通信系统,该系统可用于执行实施例2中多网卡融合通信方法。通信系统可以包括但不限于移动通信终端、路由器、智能电视和/或平板电脑等等。参照图3,一种多网卡融合通信系统包括:As shown in Figure 4, the fourth aspect of the present invention provides a multi-network card integrated communication system, which can be used to execute the multi-network card integrated communication method in Embodiment 2. The communication system may include, but is not limited to, mobile communication terminals, routers, smart TVs and/or tablets, etc. Referring to Figure 3, a multi-network card converged communication system includes:
第一数据包获取单元410,用于获取服务端发出的第一数据包;第二数据包封包单元420,用于将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;第二数据包发送单元430,用于将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端接收所述第二数据包并进行融合处理。可以理解,本发明提出的通信系统可同时包括图3和图4示出的全部部件,以同时支持对网络协议栈上的双向数据包的链路聚合处理。 The first data packet acquisition unit 410 is used to obtain the first data packet sent by the server; the second data packet encapsulation unit 420 is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the first data packet. Two data packets; the second data packet sending unit 430 is used to send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing. It can be understood that the communication system proposed by the present invention can include all the components shown in Figures 3 and 4 at the same time, so as to simultaneously support link aggregation processing of bidirectional data packets on the network protocol stack.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components may be combined, or can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be electrical, mechanical, or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated; the components shown as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, all functional units in the embodiments of the present invention can be integrated into one processing unit, or each unit can be separately used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed through hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the execution includes: The steps of the above method embodiment; and the aforementioned storage media include: mobile storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc. The medium on which program code is stored.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention can be embodied in the form of software products in essence or those that contribute to the existing technology. The computer software products are stored in a storage medium and include a number of instructions to A computer device (which may be a personal computer, a server, a network device, etc.) is caused to execute all or part of the methods described in various embodiments of the present invention. The aforementioned storage media include: mobile storage devices, ROM, RAM, magnetic disks or optical disks and other media that can store program codes.

Claims (15)

  1. 一种多网卡融合通信方法,其特征在于,包括以下步骤:A multi-network card integrated communication method, characterized by including the following steps:
    获取客户端发出的第一数据包;Get the first data packet sent by the client;
    将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
    将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端接收所述第二数据包并进行融合处理。The second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets and performs fusion processing.
  2. 根据权利要求1所述的一种多网卡融合通信方法,其特征在于,包括以下步骤:A multi-network card converged communication method according to claim 1, characterized in that it includes the following steps:
    获取客户端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the client according to the first communication protocol or the second communication protocol;
    将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
    将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端按照第一通讯协议接收所述第二数据包并进行融合处理。The second data packets are sent to the server simultaneously using preset network cards, and the server receives the second data packets according to the first communication protocol and performs fusion processing.
  3. 根据权利要求2所述的一种多网卡融合通信方法,其特征在于,每一份所述第二数据包封装的数据、ID均相同。A multi-network card integrated communication method according to claim 2, characterized in that the data and ID encapsulated in each second data packet are the same.
  4. 根据权利要求3所述的一种多网卡融合通信方法,其特征在于,所述服务端按照第一通讯协议接收所述第二数据包并进行融合处理具体包括:A multi-network card converged communication method according to claim 3, characterized in that the server receives the second data packet according to the first communication protocol and performs convergence processing, which specifically includes:
    服务端对最先收到的第二数据包的ID进行识别并登记,再解包发送给服务端应用,当服务端收到后续的第二数据包时,识别后续的第二数据包的ID,若后续的第二数据包ID与已登记的第二数据包相同,则丢弃后续的第二数据包。The server identifies and registers the ID of the first received second data packet, and then unpacks it and sends it to the server application. When the server receives the subsequent second data packet, it identifies the ID of the subsequent second data packet. , If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet is discarded.
  5. 根据权利要求1所述的一种多网卡融合通信方法,其特征在于,包括以下步骤:A multi-network card converged communication method according to claim 1, characterized in that it includes the following steps:
    获取客户端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the client according to the first communication protocol or the second communication protocol;
    将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包组,每个第二数据包组包括若干子数据包,每个子数据包均设有序号;Pack the first data packets according to the preset number of network cards to obtain a second data packet group. Each second data packet group includes a number of sub-data packets, and each sub-data packet is provided with a sequence number;
    将所述第二数据包组分别采用预设网卡同时发送至服务端,所述服务端按照第二通讯协议接收所述第二数据包组并进行融合处理。The second data packet group is simultaneously sent to the server using a preset network card, and the server receives the second data packet group according to the second communication protocol and performs fusion processing.
  6. 根据权利要求5所述的一种多网卡融合通信方法,其特征在于,每一份所述第二数据包组封装的数据、ID均相同。A multi-network card integrated communication method according to claim 5, characterized in that the data and ID encapsulated in each second data packet group are the same.
  7. 根据权利要求6所述的一种多网卡融合通信方法,其特征在于,所述服务 端按照第二通讯协议接收所述第二数据包组并进行融合处理具体包括:A multi-network card integrated communication method according to claim 6, characterized in that the service The terminal receives the second data packet group according to the second communication protocol and performs fusion processing, which specifically includes:
    服务端对最先收到的第二数据包组的ID进行识别并登记,再解包发送给服务端应用,当服务端收到后续的第二数据包组时,识别后续的第二数据包组的ID,若后续的第二数据包组ID与已登记的第二数据包组相同,则丢弃后续的第二数据包组。The server identifies and registers the ID of the first received second data packet group, and then unpacks and sends it to the server application. When the server receives the subsequent second data packet group, it identifies the subsequent second data packet. The ID of the group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
  8. 根据权利要求2或5所述的一种多网卡融合通信方法,其特征在于,所述第一通讯协议为TCP协议,所述第二通讯协议为UDP协议。A multi-network card integrated communication method according to claim 2 or 5, characterized in that the first communication protocol is a TCP protocol, and the second communication protocol is a UDP protocol.
  9. 一种多网卡融合通信方法,其特征在于,包括以下步骤:A multi-network card integrated communication method, characterized by including the following steps:
    获取服务端发出的第一数据包;Get the first data packet sent by the server;
    将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the number of network cards preset by the client to obtain second data packets;
    将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端接收所述第二数据包并进行融合处理。The second data packets are sent to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
  10. 根据权利要求9所述的一种多网卡融合通信方法,其特征在于,包括以下步骤:A multi-network card converged communication method according to claim 9, characterized in that it includes the following steps:
    获取服务端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the server according to the first communication protocol or the second communication protocol;
    将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包;Pack the first data packets according to the preset number of network cards to obtain second data packets;
    将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端按照第一通讯协议接收所述第二数据包并进行融合处理。The second data packets are sent to the client simultaneously using preset network cards, and the client receives the second data packets according to the first communication protocol and performs fusion processing.
  11. 根据权利要求9所述的一种多网卡融合通信方法,其特征在于,所述客户端按照第一通讯协议接收所述第二数据包并进行融合处理具体包括:A multi-network card converged communication method according to claim 9, wherein the client receives the second data packet according to the first communication protocol and performs convergence processing, which specifically includes:
    客户端对最先收到的第二数据包的ID进行识别并登记,再解包发送给客户端应用,当客户端收到后续的第二数据包时,识别后续的第二数据包的ID,若后续的第二数据包ID与已登记的第二数据包相同,则丢弃后续的第二数据包。The client identifies and registers the ID of the first received second data packet, and then unpacks it and sends it to the client application. When the client receives the subsequent second data packet, it identifies the ID of the subsequent second data packet. , If the subsequent second data packet ID is the same as the registered second data packet, the subsequent second data packet is discarded.
  12. 根据权利要求9所述的一种多网卡融合通信方法,其特征在于,包括以下步骤:A multi-network card converged communication method according to claim 9, characterized in that it includes the following steps:
    获取服务端按照第一通讯协议或第二通讯协议发出的第一数据包;Obtain the first data packet sent by the server according to the first communication protocol or the second communication protocol;
    将所述第一数据包按照预设的网卡数目分别进行封包得到第二数据包组,每个第二数据包组包括若干子数据包,每个子数据包均设有序号;Pack the first data packets according to the preset number of network cards to obtain a second data packet group. Each second data packet group includes a number of sub-data packets, and each sub-data packet is provided with a sequence number;
    将所述第二数据包组分别采用预设网卡同时发送至客户端,所述客户端按照 第二通讯协议接收所述第二数据包组并进行融合处理。The second data packet group is sent to the client simultaneously using the preset network card, and the client is The second communication protocol receives the second data packet group and performs fusion processing.
  13. 根据权利要求12所述的一种多网卡融合通信方法,其特征在于,所述服务端按照第二通讯协议接收所述第二数据包组并进行融合处理具体包括:A multi-network card converged communication method according to claim 12, wherein the server receives the second data packet group according to the second communication protocol and performs convergence processing, which specifically includes:
    客户端对最先收到的第二数据包组的ID进行识别并登记,再解包发送给客户端应用,当客户端收到后续的第二数据包组时,识别后续的第二数据包组的ID,若后续的第二数据包组ID与已登记的第二数据包组相同,则丢弃后续的第二数据包组。The client identifies and registers the ID of the first received second data packet group, and then unpacks and sends it to the client application. When the client receives the subsequent second data packet group, it identifies the subsequent second data packet. The ID of the group. If the ID of the subsequent second data packet group is the same as the registered second data packet group, the subsequent second data packet group is discarded.
  14. 一种多网卡融合通信系统,其特征在于,包括:A multi-network card converged communication system, which is characterized by including:
    第一数据包获取单元,用于获取客户端发出的第一数据包;The first data packet acquisition unit is used to acquire the first data packet sent by the client;
    第二数据包封包单元,用于将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;The second data packet encapsulation unit is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the second data packet;
    第二数据包发送单元,用于将所述第二数据包分别采用预设网卡同时发送至服务端,所述服务端接收所述第二数据包并进行融合处理。The second data packet sending unit is used to send the second data packets to the server simultaneously using preset network cards. The server receives the second data packets and performs fusion processing.
  15. 一种多网卡融合通信系统,其特征在于,包括:A multi-network card converged communication system, which is characterized by including:
    第一数据包获取单元,用于获取服务端发出的第一数据包;The first data packet acquisition unit is used to acquire the first data packet sent by the server;
    第二数据包封包单元,用于将所述第一数据包按照客户端预设的网卡数目分别进行封包得到第二数据包;The second data packet encapsulation unit is used to encapsulate the first data packet according to the number of network cards preset by the client to obtain the second data packet;
    第二数据包发送单元,用于将所述第二数据包分别采用预设网卡同时发送至客户端,所述客户端接收所述第二数据包并进行融合处理。 The second data packet sending unit is used to send the second data packets to the client simultaneously using preset network cards, and the client receives the second data packets and performs fusion processing.
PCT/CN2023/104661 2022-07-26 2023-06-30 Multi-network card fusion communication method and communication system WO2024022022A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210886277.3 2022-07-26
CN202210886277.3A CN115460157A (en) 2022-07-26 2022-07-26 Multi-network-card converged communication method and communication system

Publications (1)

Publication Number Publication Date
WO2024022022A1 true WO2024022022A1 (en) 2024-02-01

Family

ID=84296449

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/104661 WO2024022022A1 (en) 2022-07-26 2023-06-30 Multi-network card fusion communication method and communication system

Country Status (2)

Country Link
CN (1) CN115460157A (en)
WO (1) WO2024022022A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460157A (en) * 2022-07-26 2022-12-09 亿航智能设备(广州)有限公司 Multi-network-card converged communication method and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118434A (en) * 2010-12-28 2011-07-06 华为技术有限公司 Data packet transmission method and device
CN110300115A (en) * 2019-07-05 2019-10-01 腾讯科技(深圳)有限公司 A kind of data transmission method and relevant apparatus based on multichannel
CN110943935A (en) * 2018-09-25 2020-03-31 华为技术有限公司 Method, device and system for realizing data transmission
US20210385169A1 (en) * 2017-02-12 2021-12-09 Mellanox Technologies Ltd. Communication apparatus generating and eliminating redundant data packets
CN115460157A (en) * 2022-07-26 2022-12-09 亿航智能设备(广州)有限公司 Multi-network-card converged communication method and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118434A (en) * 2010-12-28 2011-07-06 华为技术有限公司 Data packet transmission method and device
US20210385169A1 (en) * 2017-02-12 2021-12-09 Mellanox Technologies Ltd. Communication apparatus generating and eliminating redundant data packets
CN110943935A (en) * 2018-09-25 2020-03-31 华为技术有限公司 Method, device and system for realizing data transmission
CN110300115A (en) * 2019-07-05 2019-10-01 腾讯科技(深圳)有限公司 A kind of data transmission method and relevant apparatus based on multichannel
CN115460157A (en) * 2022-07-26 2022-12-09 亿航智能设备(广州)有限公司 Multi-network-card converged communication method and communication system

Also Published As

Publication number Publication date
CN115460157A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN113411313B (en) Data transmission method, device and system
CN102377650B (en) Data transmission processing method, device and system
CN108848025B (en) Data processing method, intelligent gateway and Internet of things system
WO2010020197A1 (en) Data transmission method, communication equipment and communication system
WO2024022022A1 (en) Multi-network card fusion communication method and communication system
WO2016173076A1 (en) Data transfer method and system, and ue having relay function
CN101827031A (en) Method and device for packet transmission in user datagram protocol UDP tunnel
WO2014117517A1 (en) Method, device, and system for multi-standard network convergence
WO2021088813A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN110941862B (en) Data isolation system based on FPGA + ARM
CN104184646A (en) VPN data interaction method and system and VPN data interaction device
CN105897665B (en) Method for realizing TCP transmission in satellite network environment and corresponding gateway
EP2157727B1 (en) Wireless Base Station Applying Echo-Message
CN107528923A (en) The data transmission method and network adapter of a kind of network adapter
CN108064441B (en) Method and system for accelerating network transmission optimization
CN107948217A (en) Switch system and communication means
CN109067922A (en) A kind of data transmission method and device
CN101257517B (en) Method and device for processing address analysis protocol request message
CN116566763A (en) Network system, communication method, network node and storage medium
CN108900317B (en) Method for batch upgrading of multiple network devices in Ethernet broadcast mode
WO2016074354A1 (en) Wifi sharing method and system, home gateway and wireless local area network gateway
CN106254396B (en) The proprietary protocol information transmission system and method
CN102291402B (en) Method, device and system for passing through private network
WO2010097001A1 (en) Data service processing method, system and access network
JPH1117703A (en) Method for performing efficient communication through data transmission medium of computer network, system for computer network according to new medium standard and radio local area network

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

Country of ref document: EP

Kind code of ref document: A1