Data transmission method and system and conversion server
By using a combination of protocol conversion network cards and processors in the conversion server to directly process data and separate the connection and disconnection of communication channels, the complexity and resource consumption problems of multi-protocol data transmission in the existing technology are solved and more efficient is achieved. and stable data transmission, improving data transmission rate and server performance.
Patent Information
- Application Number
- CN202410768495.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, data transmission systems based on TCP and UDP protocols require multiple parsing and processing during protocol conversion, resulting in low data transmission rates and high host CPU resource usage, which affects the processing of other computing tasks and makes it difficult to achieve high-speed data transmission.
Provide a data transmission method that uses a combination of protocol conversion network card and processor to directly process data through the protocol conversion network card, reducing the burden on the processor, avoiding multiple parsing and encapsulation processes, and separating the connection and disconnection of the communication channel from the data transmission task , improve the transmission rate.
It effectively reduces processor resource requirements, increases data transmission rate, reduces delay and error rate, enhances the overall performance and response speed of the conversion server, and achieves more efficient and stable data transmission.
Smart Images

Figure CN118803083A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method, system and conversion server for data interaction based on different protocols. Background Art
[0002] In the TCP / IP four-layer protocol stack model, the transport layer protocols include TCP and UDP. Data transmission can be based on the TCP protocol, such as FTP (File Transfer Protocol), SCP (Secure Copy Protocol), rsync (Remote synchronization), etc.; it can also be based on the UDP protocol, such as RoCEv2 (RDMA over Converged Ethernet version 2), QUIC (Quick UDP Internet Connections), etc. RoCEv2 is an implementation of RDMA (Romote Direct Memmory Access) technology, with advantages such as high throughput and low latency.
[0003] When a TCP-based transport protocol (such as FTP) and a UDP-based transport protocol (such as RoCEv2) are used to transmit data on the same network, the device (such as a server, gateway, etc.) needs to support both protocols. Figure 5 and Figure 6 In the two networking modes, server B processes the traffic of TCP protocol and UDP protocol respectively to realize the conversion between the two protocols.
[0004] For this data transmission system, taking server A sending data through server B to server C as an example, the data processing flow is as follows:
[0005] ①Data based on TCP protocol is sent from server A and transmitted to network card-1 of server B via LAN equipment or WAN;
[0006] ②Server B completes the analysis of TCP protocol data, converts it into UDP protocol data and sends it through network card-2;
[0007] ③ The network card-2 of server B uses the UDP protocol to transmit data to server C through the LAN device or WAN.
[0008] Conversely, sending data from server C to server A via server B also requires server B to implement the conversion from UDP protocol to TCP protocol.
[0009] When the FTP protocol and RoCEv2 protocol messages are processed in server B, the network card, host CPU and host memory (including kernel space and user space) need to participate in the processing of each protocol layer.
[0010] For this data transmission system, the data transmission processing flow is as follows: Figure 7 Therefore, the message from FTP protocol to RoCEv2 protocol or from RoCEv2 protocol to FTP protocol must be parsed multiple times, which makes the processing complicated. In addition, the data transmission rate is affected by the performance of the host CPU, which occupies a large amount of host memory and affects the host's processing of other computing tasks, making it difficult to achieve high-speed data transmission. Summary of the invention
[0011] The object of the present invention is to provide a data transmission method, system and conversion server which can significantly reduce the resource requirements of the processor in the server and effectively improve the transmission rate.
[0012] In order to achieve the above object, the present invention provides a data transmission method for data interaction based on different protocols, which is used for a conversion server, wherein the conversion server is equipped with a protocol conversion network card and a processor, and the method comprises:
[0013] A conversion server is provided, wherein the conversion server is configured with a protocol conversion network card and a processor;
[0014] The protocol conversion network card receives a first control message having a first protocol from a first server based on a first protocol stack, and receives a second control message having a second protocol from a second server based on a second protocol stack;
[0015] The processor completes establishment or interruption of a communication channel between the conversion server and the first server and the second server based on the first control message and the second control message respectively;
[0016] The protocol conversion network card receives original data to be transmitted that satisfies the first protocol from the first server based on the first protocol stack, and converts the data protocol of the original data to be transmitted in the protocol conversion network card to generate target data to be transmitted that satisfies the second protocol, and sends the target data to be transmitted to the second server through the second protocol stack.
[0017] Preferably, in the protocol conversion network card, payload data corresponding to the original data to be transmitted is also received through a data buffer, and on one side of the second protocol stack, the payload data is read from the data storage device, and the payload data is encapsulated as the target data to be transmitted;
[0018] The data buffer monitors its own storage capacity in real time, and stops receiving load data when the storage capacity exceeds a preset value.
[0019] Preferably, the first protocol includes an FTP protocol carried on a TCP protocol architecture, and the second protocol includes a RoCEv2 protocol carried on a UDP protocol architecture.
[0020] Preferably, the method for establishing a communication channel between the conversion server and the first server comprises: the first control message is parsed and processed in sequence by a first protocol stack, a TCP data parsing module, a network layer protocol stack, a transport layer protocol stack and an application layer protocol stack to complete a handshake between the processor and the first server, the first protocol stack is a link layer protocol stack, the link layer protocol stack and the TCP data parsing module are located in the protocol conversion network card, and the network layer protocol stack, the transport layer protocol stack and the application layer protocol stack are located in the processor;
[0021] The method for establishing a communication channel between the conversion server and the second server includes:
[0022] The protocol conversion network card receives the second control message based on the second protocol stack, and transparently transmits the second control message to the processor to complete the handshake between the processor and the second server;
[0023] After the conversion server establishes a connection with the first server, the conversion server notifies the TCP data parsing module to parse and process the original data to be transmitted to obtain the payload data, and stores the payload data in the data buffer;
[0024] After receiving the payload data, the data buffer sends a read notification message carrying a storage address to the second protocol stack;
[0025] The second protocol stack receives and encapsulates the payload data from the data buffer to obtain the target data to be transmitted, and sends the target data to be transmitted to the second server.
[0026] Preferably, the first protocol includes a RoCEv2 protocol carried on a UDP protocol architecture, and the second protocol includes an FTP protocol carried on a TCP protocol architecture.
[0027] Preferably, the method for establishing a communication channel between the conversion server and the first server includes:
[0028] The protocol conversion network card receives the first control message based on the first protocol stack, and transparently transmits the first control message to the processor to complete the handshake between the processor and the first server;
[0029] The method for establishing a communication channel between the conversion server and the second server comprises: the second control message is parsed and processed in sequence by a link layer protocol stack, a TCP data encapsulation module, a network layer protocol stack, a transport layer protocol stack and an application layer protocol stack to complete a handshake between the processor and the second server, the link layer protocol stack and the TCP data encapsulation module are located in the protocol conversion network card, and the network layer protocol stack, the transport layer protocol stack and the application layer protocol stack are located in the processor;
[0030] After the conversion server establishes a connection with the first server, the conversion server receives and parses the original data to be transmitted through the first protocol stack to obtain the payload data, and notifies the TCP data encapsulation module deployed on the second protocol stack to read and encapsulate the payload data from the data buffer to obtain the target data to be transmitted;
[0031] The target data to be transmitted is sent to the second server through the second protocol stack.
[0032] The present invention also provides a conversion server, comprising a protocol conversion network card and a processor, wherein the protocol conversion network card is configured with a first protocol stack and a second protocol stack, wherein the first protocol stack is used to receive a first control message having a first protocol from a first server, and the second protocol stack is used to receive a second control message having a second protocol from a second server;
[0033] The processor is used to complete the establishment or interruption of the communication channel between the conversion server and the first server and the second server based on the first control message and the second control message respectively;
[0034] The protocol conversion network card is also used to receive original data to be transmitted that satisfies the first protocol from the first server based on the first protocol stack, and convert the data protocol of the original data to be transmitted in the protocol conversion network card to generate target data to be transmitted that satisfies the second protocol, and send the target data to be transmitted to the second server through the second protocol stack.
[0035] Preferably, a data buffer is also provided in the protocol conversion network card, and the data buffer is used to receive payload data corresponding to the original data to be transmitted, and send a notification message of reading the payload data to one side of the second protocol stack; the data buffer can also monitor its own storage capacity in real time, and stop receiving the payload data when the storage capacity exceeds the preset value.
[0036] Preferably, the first protocol includes an FTP protocol carried on a TCP protocol architecture, and the second protocol includes a RoCEv2 protocol carried on a UDP protocol architecture.
[0037] Preferably, the protocol conversion network card is also configured with a TCP data parsing module that is communicatively connected to the first protocol stack, and the TCP data parsing module is used to parse and process the data to be transmitted to obtain the payload data, and cache the payload data to the data buffer; the TCP data parsing module is also used to transparently transmit the first control message to the processor, parse the payload data of the data message during the data transmission stage, and cache it to the payload data cache module.
[0038] Preferably, the first protocol includes a RoCEv2 protocol carried on a UDP protocol architecture, and the second protocol includes an FTP protocol carried on a TCP protocol architecture.
[0039] Preferably, the protocol conversion network card is also configured with a TCP data encapsulation module that is communicatively connected to the first protocol stack. The TCP data encapsulation module is used to record the message header information of the network layer, transport layer, and application layer protocols, and to perform the encapsulation operation of the TCP protocol message after reading the payload data from the data buffer.
[0040] The present invention also provides a data transmission system, which includes a conversion server, and a first server and a second server communicatively connected to the conversion server, wherein data transmission is performed between the conversion server, the first server and the second server based on the data transmission method described above.
[0041] Compared with the prior art, the data transmission method provided by the above technical solution of the present invention separates the connection and disconnection of the communication channel from the data transmission, that is, in the conversion server, the connection and disconnection of the communication channel are executed by the processor, and then the task of data transmission is transferred to the protocol conversion network card, thereby reducing the burden of the processor in the conversion server, allowing it to handle other computing tasks, and enhancing the overall performance and response speed of the conversion server; in addition, since the protocol conversion network card directly processes the data, multiple data parsing and packaging processes are avoided, thereby improving the data transmission rate. In addition, the method also reduces the delay and error rate caused by multiple parsing and caching operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a principle structure diagram of a data transmission method in one embodiment of the present invention.
[0043] Figure 2 The data transmission principle diagram of the protocol conversion network card in an embodiment of the present invention.
[0044] Figure 3 This is a protocol conversion flow chart in one embodiment of the present invention.
[0045] Figure 4 This is a protocol conversion flow chart in another embodiment of the present invention.
[0046] Figure 5 This is the local area network topology in the prior art.
[0047] Figure 6 This is the wide area network topology in the prior art.
[0048] Figure 7 The figure is a schematic diagram of the data transmission process in the prior art. DETAILED DESCRIPTION
[0049] In order to explain the technical content, structural features, achieved objectives and effects of the present invention in detail, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.
[0050] This embodiment discloses a data transmission method based on different protocols for data exchange, which is used for data transmission when the data protocols of the data sender and the data receiver are different in the same data network. The data transmission method is used to control a data transmission system composed of a conversion server and a first server and a second server connected to the conversion server in communication, wherein the conversion server is configured with a protocol conversion network card and a processor (i.e., CPU). Figure 1 , the data transmission method comprises the following steps:
[0051] S1: the protocol conversion network card receives a first control message having a first protocol from a first server based on a first protocol stack, and receives a second control message having a second protocol from a second server based on a second protocol stack;
[0052] S2: the processor completes the establishment of a communication channel between the conversion server and the first server and the second server based on the first control message and the second control message respectively;
[0053] S3: the protocol conversion network card receives original data to be transmitted that meets the first protocol from the first server based on the first protocol stack, and converts the data protocol of the original data to be transmitted in the protocol conversion network card to generate target data to be transmitted that meets the second protocol;
[0054] S4: Sending the target data to be transmitted to the second server through the second protocol stack;
[0055] S5: After the data transmission is completed, the processor completes the establishment and interruption of the communication channel between the conversion server and the first server and the second server based on the first control message and the second control message respectively.
[0056] In this embodiment, for the first protocol stack and the second protocol stack in the protocol conversion network card, the interaction process includes three stages: establishing a connection, data transmission, and disconnecting the connection. Taking the interaction between the conversion server and the first server as an example, the three stages are as follows
[0057] 1. Establishing a connection: The processor in the conversion server and the first service establish a connection by exchanging a first control message;
[0058] 2. Data transmission: The first server sends a first data message that complies with the first protocol to the conversion server. In the protocol conversion network card, the first data message is converted into a second data message that complies with the second protocol. The conversion server sends the second data message to the second server.
[0059] 3. Disconnection: After the first server completes the file transfer, the connection with the conversion server is disconnected until the connection is reestablished during the next file transfer.
[0060] In actual applications, different devices or applications may use different communication protocols, and this data transmission method can achieve seamless communication between them. For example, converting sensor data from the Modbus protocol to the MQTT protocol to connect and exchange data with the cloud platform, or realizing data communication between the TCP protocol and the UDP protocol.
[0061] It should be noted that the data transmission method is not limited by a specific protocol and is applicable to various types and versions of communication protocols.
[0062] The data transmission method disclosed in this embodiment improves the efficiency of data processing and transmission and reduces delay and resource consumption through hardware acceleration and distributed processing.
[0063] On the other hand, in the protocol conversion network card, payload data corresponding to the original data to be transmitted is also received through a data buffer, and on one side of the second protocol stack, the payload data is read from the data storage device, and the payload data is encapsulated as the target data to be transmitted, that is, the payload data is encapsulated through the second protocol.
[0064] Furthermore, the data buffer can also monitor its own storage capacity in real time. When the storage capacity exceeds the preset value, it stops receiving the payload data to prevent the data buffer from overflowing and ensure the stability of data transmission. It should be noted that the stop receiving payload data here includes two meanings: one is that the data buffer actively closes the interface for receiving payload data; the other is that the data buffer sends a message to the data sender to inform the data sender to stop sending payload data.
[0065] In the above embodiment, the first server is a data sender based on the first protocol, and the second server is a data receiver based on the second protocol. For two devices, server A and server B, when server A sends data to server B, server A is the first server and server B is the second server. Conversely, when server A receives data sent by server B, server B is the first server and server A is the second server.
[0066] Specifically, as shown in the figure and Figure 3 , the first protocol includes the FTP protocol carried on the TCP protocol architecture, and the second protocol includes the RoCEv2 protocol carried on the UDP protocol architecture. At this time, the sent data is the FTP protocol data, and the received data is the RoCEv2 protocol data.
[0067] In this regard, the method for establishing a communication channel between the conversion server and the first server includes: the first control message is parsed and processed in sequence by the first protocol stack, the TCP data parsing module, the network layer protocol stack (i.e., the IP protocol stack), the transport layer protocol stack (i.e., the TCP protocol stack) and the application layer protocol stack to complete the handshake between the processor and the first server, the first protocol stack is a link layer protocol stack, the link layer protocol stack and the TCP data parsing module are located in the protocol conversion network card, and the network layer protocol stack, the transport layer protocol stack and the application layer protocol stack are located in the processor.
[0068] Accordingly, the method for establishing a communication channel between the conversion server and the second server includes:
[0069] The protocol conversion network card receives the second control message based on the second protocol stack (that is, the RoCEv2 protocol stack), and transparently transmits the second control message to the processor to complete the handshake between the processor and the second server;
[0070] After the conversion server establishes a connection with the first server, the conversion server notifies the TCP data parsing module to parse and process the original data to be transmitted to obtain the payload data, and stores the payload data in the data buffer;
[0071] After receiving the payload data, the data buffer sends a read notification message carrying a storage address to the RoCEv2 protocol stack;
[0072] The RoCEv2 protocol stack receives and encapsulates the payload data from the data buffer to obtain the target data to be transmitted, and sends the target data to be transmitted to the second server.
[0073] In this embodiment, the data protocol adopted by the data sender is the FTP protocol carried on the TCP protocol architecture, and the data protocol adopted by the data receiver is the RoCEv2 protocol carried on the UDP protocol architecture.
[0074] Specifically, in one scenario, there are two servers, Server A and Server B, which use TCP and UDP protocols for communication respectively. Server A (the first server) uses TCP to transmit FTP protocol data, while Server B (the second server) uses UDP to transmit RoCEv2 protocol data. Now Server A, as the data sender, sends data to Server B, and Server B is the data receiver. The data transmission process is as follows:
[0075] 1. Establish a communication channel
[0076] When server A needs to establish communication with server B, it sends a handshake request to the conversion server.
[0077] The protocol conversion network card of the conversion server receives a handshake request of TCP based on the first protocol stack and of UDP based on the second protocol stack, and transparently transmits it to the processor.
[0078] The processor completes the handshake with server A and server B according to the handshake request and establishes a communication channel.
[0079] 2. Data transmission
[0080] Server A sends FTP protocol data to the conversion server;
[0081] The TCP data parsing module of the conversion server parses the FTP protocol data, extracts the payload data and stores it in the data buffer;
[0082] The data buffer sends a read notification to the RoCEv2 protocol stack, requesting encapsulation of data;
[0083] The RoCEv2 protocol stack reads the payload data from the data buffer, encapsulates it into RoCEv2 protocol data, and sends it to server B;
[0084] During data transmission, the data buffer monitors the storage capacity in real time and stops receiving new payload data when it approaches the upper limit to prevent data overflow or transmission failure.
[0085] In another case, the first protocol includes the RoCEv2 protocol carried on the UDP protocol architecture, and the second protocol includes the FTP protocol carried on the TCP protocol architecture.
[0086] In this regard, the method for establishing a communication channel between the conversion server and the first server includes:
[0087] The protocol conversion network card receives the first control message based on the first protocol stack, and transparently transmits the first control message to the processor to complete the handshake between the processor and the first server;
[0088] The method for establishing a communication channel between the conversion server and the second server comprises: the second control message is parsed and processed in sequence by a link layer protocol stack, a TCP data encapsulation module, a network layer protocol stack, a transport layer protocol stack and an application layer protocol stack to complete a handshake between the processor and the second server, the link layer protocol stack and the TCP data encapsulation module are located in the protocol conversion network card, and the network layer protocol stack, the transport layer protocol stack and the application layer protocol stack are located in the processor;
[0089] After the conversion server establishes a connection with the first server, the conversion server receives and parses the original data to be transmitted through the first protocol stack to obtain the payload data, and notifies the TCP data encapsulation module deployed on the second protocol stack to read and encapsulate the payload data from the data buffer to obtain the target data to be transmitted;
[0090] The target data to be transmitted is sent to the second server through the second protocol stack.
[0091] For the TCP data encapsulation module in this embodiment: in the TCP protocol connection establishment and disconnection stages, after receiving the TCP protocol control message input by the data link layer, the message header information of the IP layer protocol, transport layer protocol, and application layer protocol is recorded, and then transparently transmitted to the IP protocol stack of the host CPU; in the TCP protocol data transmission stage, the payload data is read from the payload data buffer, and then the message headers of the IP layer protocol, transport layer protocol, and application layer protocol are encapsulated and sent to the link layer protocol stack.
[0092] It can be seen that when server B sends data to server A, the process of establishing the communication channel is the same as that when server B sends data to service network B, and will not be repeated here. Figure 2 and Figure 4 ,The workflow of the data transmission phase is as follows:
[0093] Server B sends RoCEv2 protocol data to the conversion server;
[0094] The RoCEv2 protocol stack of the conversion server receives the RoCEv2 protocol data and extracts the payload data;
[0095] The data buffer of the conversion server stores the payload data;
[0096] The TCP data encapsulation module reads the payload data from the data buffer, encapsulates it into FTP protocol data, and sends it to server A.
[0097] Similarly, during data transmission, the data buffer monitors the storage capacity in real time and stops receiving new payload data when it approaches the upper limit to prevent data overflow or transmission failure.
[0098] In addition, for the data buffer in the above embodiment:
[0099] Provide data storage address information during the RoCEv2 protocol connection establishment and disconnection phases;
[0100] During the data transmission stage, in the TCP protocol data input and UDP protocol data output scenarios, the payload data written by the TCP data parsing module is received, and data is provided according to the data storage address provided by the RoCEv2 protocol stack, and the data is output to the RoCEv2 protocol stack; in the UDP protocol data input and TCP protocol data output scenarios, the payload data written after the UDP protocol stack is parsed is received, the read instruction of the TCP data encapsulation module is received, and the payload data is output to the TCP data encapsulation module.
[0101] In summary, the data transmission method disclosed in the above embodiment of the present invention separates the connection and disconnection of the communication channel from the data transmission, that is, in the conversion server, the connection and disconnection of the communication channel are executed by the processor, and then the task of data transmission is transferred to the protocol conversion network card, thereby reducing the burden of the processor in the conversion server, so that it can handle other computing tasks, and enhancing the overall performance and response speed of the conversion server. In addition, since the protocol conversion network card directly processes the data, multiple data parsing and packaging processes are avoided, thereby improving the data transmission rate. In addition, the method also reduces the delay and error rate caused by multiple parsing and caching operations. Furthermore, the data buffer allows real-time monitoring of the data storage capacity, and can be adjusted in time when it is close to the upper limit, avoiding the problem of data overflow or reading failure, and ensuring the continuity and stability of data transmission.
[0102] In general, this data transmission method can effectively solve the complexity and high resource consumption problems of multi-protocol data processing in the existing technology, and realize a more efficient and stable data transmission method, which not only improves the efficiency of data transmission, but also optimizes resource utilization, which is especially beneficial for multi-protocol and high-performance network environments.
[0103] In another preferred embodiment of the present invention, a conversion server is also disclosed, which includes a protocol conversion network card and a processor. The working principle and working mode of the conversion server are detailed in the above-mentioned data transmission method, which will not be repeated here.
[0104] The present invention also discloses a data transmission system, which includes a conversion server, and a first server and a second server communicatively connected to the conversion server, and data transmission is performed between the conversion server, the first server and the second server based on the data transmission method in the above embodiment.
[0105] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention are still within the scope covered by the present invention.
Claims
1. A data transmission method for data interaction based on different protocols, used for a conversion server, wherein the conversion server is equipped with a protocol conversion network card and a processor, characterized in that: include: The protocol conversion network card receives a first control message having a first protocol from a first server based on a first protocol stack, and receives a second control message having a second protocol from a second server based on a second protocol stack; The processor completes establishment or interruption of a communication channel between the conversion server and the first server and the second server based on the first control message and the second control message respectively; The protocol conversion network card receives original data to be transmitted that satisfies the first protocol from the first server based on the first protocol stack, and converts the data protocol of the original data to be transmitted in the protocol conversion network card to generate target data to be transmitted that satisfies the second protocol, and sends the target data to be transmitted to the second server through the second protocol stack.
2. The data transmission method according to claim 1, characterized in that: In the protocol conversion network card, payload data corresponding to the original data to be transmitted is also received through a data buffer, and on one side of the second protocol stack, the payload data is read from the data storage device, and the payload data is encapsulated as the target data to be transmitted; The data buffer monitors its own storage capacity in real time, and stops receiving load data when the storage capacity exceeds a preset value.
3. The data transmission method according to claim 2, characterized in that: The first protocol includes an FTP protocol carried on a TCP protocol architecture, and the second protocol includes a RoCEv2 protocol carried on a UDP protocol architecture.
4. The data transmission method according to claim 3, characterized in that: The method for establishing a communication channel between the conversion server and the first server comprises: the first control message is parsed and processed in sequence by a first protocol stack, a TCP data parsing module, a network layer protocol stack, a transport layer protocol stack and an application layer protocol stack to complete a handshake between the processor and the first server, the first protocol stack is a link layer protocol stack, the link layer protocol stack and the TCP data parsing module are located in the protocol conversion network card, and the network layer protocol stack, the transport layer protocol stack and the application layer protocol stack are located in the processor; The method for establishing a communication channel between the conversion server and the second server includes: The protocol conversion network card receives the second control message based on the second protocol stack, and transparently transmits the second control message to the processor to complete the handshake between the processor and the second server; After the conversion server establishes a connection with the first server, the conversion server notifies the TCP data parsing module to parse and process the original data to be transmitted to obtain the payload data, and stores the payload data in the data buffer; After receiving the payload data, the data buffer sends a read notification message carrying a storage address to the second protocol stack; The second protocol stack receives and encapsulates the payload data from the data buffer to obtain the target data to be transmitted, and sends the target data to be transmitted to the second server.
5. The data transmission method according to claim 2, characterized in that: The first protocol includes the RoCEv2 protocol carried on the UDP protocol architecture, and the second protocol includes the FTP protocol carried on the TCP protocol architecture.
6. The data transmission method according to claim 5, characterized in that: The method for establishing a communication channel between the conversion server and the first server includes: The protocol conversion network card receives the first control message based on the first protocol stack, and transparently transmits the first control message to the processor to complete the handshake between the processor and the first server; The method for establishing a communication channel between the conversion server and the second server comprises: the second control message is parsed and processed in sequence by a link layer protocol stack, a TCP data encapsulation module, a network layer protocol stack, a transport layer protocol stack and an application layer protocol stack to complete a handshake between the processor and the second server, the link layer protocol stack and the TCP data encapsulation module are located in the protocol conversion network card, and the network layer protocol stack, the transport layer protocol stack and the application layer protocol stack are located in the processor; After the conversion server establishes a connection with the first server, the conversion server receives and parses the original data to be transmitted through the first protocol stack to obtain the payload data, and notifies the TCP data encapsulation module deployed on the second protocol stack to read and encapsulate the payload data from the data buffer to obtain the target data to be transmitted; The target data to be transmitted is sent to the second server through the second protocol stack.
7. A conversion server, characterized in that: It comprises a protocol conversion network card and a processor, wherein the protocol conversion network card is configured with a first protocol stack and a second protocol stack, wherein the first protocol stack is used to receive a first control message having a first protocol from a first server, and the second protocol stack is used to receive a second control message having a second protocol from a second server; The processor is used to complete the establishment or interruption of the communication channel between the conversion server and the first server and the second server based on the first control message and the second control message respectively; The protocol conversion network card is also used to receive original data to be transmitted that satisfies the first protocol from the first server based on the first protocol stack, and convert the data protocol of the original data to be transmitted in the protocol conversion network card to generate target data to be transmitted that satisfies the second protocol, and send the target data to be transmitted to the second server through the second protocol stack.
8. The conversion server according to claim 7, characterized in that: The protocol conversion network card is also provided with a data buffer, which is used to receive payload data corresponding to the original data to be transmitted, and send a notification message of reading the payload data to one side of the second protocol stack; the data buffer can also monitor its own storage capacity in real time, and stop receiving the payload data when the storage capacity exceeds the preset value.
9. The conversion server according to claim 8, characterized in that: The first protocol includes an FTP protocol carried on a TCP protocol architecture, and the second protocol includes a RoCEv2 protocol carried on a UDP protocol architecture.
10. The conversion server according to claim 9, characterized in that: The protocol conversion network card is also configured with a TCP data parsing module that is communicatively connected to the first protocol stack. The TCP data parsing module is used to parse and process the data to be transmitted to obtain the payload data, and cache the payload data to the data buffer; the TCP data parsing module is also used to transparently transmit the first control message to the processor, parse the payload data of the data message during the data transmission stage, and cache it to the payload data cache module.
11. The conversion server according to claim 8, characterized in that: The first protocol includes the RoCEv2 protocol carried on the UDP protocol architecture, and the second protocol includes the FTP protocol carried on the TCP protocol architecture.
12. The conversion server according to claim 11, characterized in that: The protocol conversion network card is also configured with a TCP data encapsulation module that is communicatively connected to the first protocol stack. The TCP data encapsulation module is used to record the message header information of the network layer, transport layer, and application layer protocols, and is used to read the payload data from the data buffer and then perform the encapsulation operation of the TCP protocol message.
13. A data transmission system, characterized in that: It includes a conversion server, and a first server and a second server which are communicatively connected to the conversion server, and data transmission is performed between the conversion server, the first server and the second server based on the data transmission method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Network safety protection method, gateway equipment, client terminal as well as network system
CN101257450A
Method for Lora gateway to receive sensing data based on 2.4G communication, and repeater
CN109246636A
Gateway and data communication system
CN111669419A
A Converting Gateway and Method for interfacing a message between Home Subscriber Server and Application Server through the same
KR100911105B1
