Network communication data processing method and device

By carrying self-describing information in the communication data packet, establishing temporary connection context information, and realizing stateless connection-oriented transmission, solving the problem of complexity in communication connection management between terminal nodes, reducing communication overhead and improving system performance.

CN119946115APending Publication Date: 2025-05-06VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510057861.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

With the increase of computing nodes, a large number of communication connections are needed between terminal nodes, resulting in a sharp increase in system management and maintenance complexity, which seriously limits the scalability and performance of the system.

Method used

By carrying self-description information in the communication data packet, temporary connection context information for the current communication channel is established, and communication data packets are processed based on the context information, thereby realizing stateless connection-oriented transmission.

Benefits of technology

Reduce dependence on connection state, no need to maintain complex connection states, reduce communication overhead, reduce connection management costs in the system, and improve system performance especially in high concurrent communication scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946115A_ABST
    Figure CN119946115A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network communication data processing method and device. The method comprises the following steps: receiving a communication data packet sent by a source node; wherein the communication data packet carries self-description information; and establishing temporary connection context information for a current communication channel according to the self-description information, and processing a communication data packet of the current communication channel based on the temporary connection context information. Through the embodiment of the invention, stateless connection-oriented transmission based on the self-description information carried by the data packet is realized, the dependence on a connection state is reduced, a complex connection state does not need to be maintained, and particularly in a high-concurrency communication scene, the communication overhead is reduced, and the management cost of connection in a system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and device for processing network communication data. Background Art

[0002] As computing platforms tend to be large-scale, such as high performance computing (HPC) and distributed systems, large-scale computing platforms require a large number of computing nodes.

[0003] As computing nodes increase, a large number of communication connections need to be maintained between terminal nodes, which leads to a sharp increase in the complexity of system management and maintenance, and a large amount of network resources are occupied. This is especially true in fully interconnected networks or systems that require frequent communication, which severely limits the scalability and performance of the system. Summary of the invention

[0004] In view of the above problems, a method and device for processing network communication data is proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A method for processing network communication data, applied to a target node, the method comprising:

[0006] Receiving a communication data packet sent by a source node; wherein the communication data packet carries self-describing information;

[0007] According to the self-description information, temporary connection context information for the current communication channel is established, and based on the temporary connection context information, the communication data packet of the current communication channel is processed.

[0008] Optionally, the communication data packet is a session data packet, the current communication channel is a current session, the self-description information carries a session identifier of the current session, and the processing of the communication data packet of the current communication channel based on the temporary connection context information includes:

[0009] Based on the temporary connection context information, the session data packet carrying the session identifier is cached in a session list.

[0010] Optionally, the self-description information further carries timestamp information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further comprises:

[0011] Determining whether the received session data packet is within the validity period according to the timestamp information;

[0012] If it is not within the validity period, the received session data packet will be discarded.

[0013] Optionally, the self-description information further carries verification information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further comprises:

[0014] The received session data packet is checked according to the verification information.

[0015] Optionally, the self-description information further carries sequence number information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes:

[0016] The received session data packets are reassembled according to the sequence number information.

[0017] A method for processing network communication data, applied to an intermediate node, the method comprising:

[0018] Receiving a communication data packet sent by a source node; wherein the communication data packet carries self-describing information;

[0019] According to the self-description information, the communication data packet is forwarded to the target node, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0020] A method for processing network communication data, applied to a source node, the method comprising:

[0021] Generate a communication data packet; wherein the communication data packet carries self-describing information;

[0022] The communication data packet is sent to a target node, so that the target node establishes temporary connection context information for a current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0023] A device for processing network communication data, applied to a target node, comprising:

[0024] The target node receiving module is used to receive the communication data packet sent by the source node; wherein the communication data packet carries self-description information;

[0025] The target node processing module is used to establish temporary connection context information for the current communication channel according to the self-description information, and process the communication data packet of the current communication channel based on the temporary connection context information.

[0026] A device for processing network communication data, applied to an intermediate node, comprising:

[0027] The intermediate node receiving module is used to receive the communication data packet sent by the source node; wherein the communication data packet carries self-description information;

[0028] The intermediate node forwarding module is used to forward the communication data packet to the target node according to the self-description information, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0029] A device for processing network communication data, applied to a source node, comprising:

[0030] A source node generation module, used to generate a communication data packet; wherein the communication data packet carries self-description information;

[0031] The source node sending module is used to send the communication data packet to the target node, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0032] The embodiments of the present invention have the following advantages:

[0033] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0035] Figure 1 is a flowchart of a method for processing network communication data provided by some embodiments of the present invention;

[0036] Figure 2is a flowchart of another method for processing network communication data provided by some embodiments of the present invention;

[0037] Figure 3 is a flowchart of another method for processing network communication data provided by some embodiments of the present invention;

[0038] Figure 4 is a structural block diagram of a device for processing network communication data provided by some embodiments of the present invention;

[0039] Figure 5 is a structural block diagram of another device for processing network communication data provided by some embodiments of the present invention;

[0040] Figure 6 It is a structural block diagram of another device for processing network communication data provided by some embodiments of the present invention. DETAILED DESCRIPTION

[0041] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In the connection protocol of the related technology, multiple handshakes are required between the communicating parties to establish and maintain the connection status, such as the three-way handshake process in TCP (Transmission Control Protocol). Although this method can ensure the reliability of the connection, it also increases the complexity, delay and system resource consumption of connection establishment.

[0043] On the premise of ensuring reliability and data consistency, how to achieve efficient data transmission by reducing dependence on connection status, especially in high-frequency communication scenarios, while avoiding a large amount of connection maintenance overhead between terminal nodes has become an urgent problem to be solved.

[0044] In an embodiment of the present invention, a stateless connection-oriented model is established for high-frequency data interaction. When transmitting data, each node does not need to maintain the status information of each connection for a long time. Instead, it performs self-describing connection management by carrying sufficient information in the data packet, thereby avoiding the handshake process required for traditional connections, while ensuring the orderliness and reliability of transmission.

[0045] The present invention is described below with reference to the accompanying drawings:

[0046] Reference Figure 1 , shows a flowchart of the steps of a method for processing network communication data provided by some embodiments of the present invention. The method can be applied to a target node, where the target node is a node indicated by a destination address of a communication data packet, a source node is a node that sends a communication data packet, and an intermediate node is a node that is passed through when transmitting between the source node and the target node. Specifically, the method may include the following steps:

[0047] Step 101, receiving a communication data packet sent by a source node; wherein the communication data packet carries self-description information.

[0048] In the initial transmission phase, when the source node wants to initiate data transmission, it does not need to establish a connection through the three-way handshake in TCP, but obtains self-description information containing a session identifier, and then carries the self-description information in a communication data packet and sends the communication data packet to the target node.

[0049] In a stateless connection-oriented model, each data packet carries enough information (i.e., self-describing information) to form a self-describing data packet, such as the source address, destination address, session identifier, etc. This information enables each data packet to be routed and transmitted independently without relying on the pre-established connection status. Intermediate nodes can forward data quickly and accurately through this self-describing information, and target nodes can receive and process data through this self-describing information.

[0050] In this mechanism, self-describing data packets play a core role in the stateless connection-oriented model. They contain sufficient metadata information to ensure that data packets can be transmitted smoothly without pre-establishing a connection. Intermediate nodes and target nodes identify, forward and process data packets by parsing the self-describing information in the data packets.

[0051] In some examples, the self-describing information may include the following core fields:

[0052] Source address and destination address: Used to identify the sender and receiver of the data packet, which ensures that the intermediate nodes and the destination node can determine the transmission direction of the data packet.

[0053] Session identifier: Each data transmission session generates a unique identifier to identify a specific data flow or session. The session identifier remains unique throughout the session, ensuring that data packets are correctly classified into the corresponding data flow.

[0054] Timestamp: Data packets can contain timestamps to define the validity period of a session. This timestamp not only helps the target node determine whether the data packet is within the validity period, but also assists intermediate nodes in optimizing transmission or discarding expired communication data packets.

[0055] Data payload length: indicates the payload data size in the data packet, helping the target node to correctly parse and process the payload part of the data packet.

[0056] Checksum: used for data integrity verification. The target node uses the checksum to determine whether errors occur in the data packet transmission process.

[0057] Sequence number: used to ensure that data packets arrive in order. The target node can use the sequence number to reassemble out-of-order packets to ensure the integrity and correctness of the data stream.

[0058] In some examples, the source node may first send a communication data packet to an intermediate node, and the intermediate node determines the data forwarding direction based on the self-description information carried in the communication data packet, and then forwards the communication data packet to the next hop until it is sent to the target node.

[0059] During data transmission, intermediate nodes do not need to maintain connection status. Instead, they forward and select routes by checking the self-description information carried in the data packet, thus achieving stateless transmission. This reduces the network's dependence on status tables and connection tables, reduces resource consumption, and improves network scalability.

[0060] For intermediate nodes, routing selection can be performed by reading the destination address and session identifier in the data packet. Due to the stateless design, intermediate nodes do not need to maintain the global state information of the data flow, but only need to determine the forwarding direction of the data based on the self-description information of the current data packet.

[0061] Specifically, the intermediate node determines which data flow the data packet belongs to based on the session identifier. Through a simple session identifier lookup mechanism, the intermediate node can quickly determine the downstream routing node or destination node without the need for complex state management, greatly simplifying the burden on network equipment.

[0062] In some examples, if a data packet contains a timestamp field, the intermediate node can determine whether the data packet has expired by comparing the timestamp. For expired data packets, the intermediate node can directly discard them to reduce network burden and improve overall efficiency, avoiding invalid transmission from occupying bandwidth resources.

[0063] Step 102: establishing temporary connection context information for the current communication channel according to the self-description information, and processing the communication data packets of the current communication channel based on the temporary connection context information.

[0064] After receiving the communication data packet, the target node may establish temporary connection context information for the current communication channel according to the self-description information carried in the communication data packet, especially the session information contained therein, and start receiving and processing data based on the temporary connection context information.

[0065] For temporary connection context information, the node only maintains temporary session information during the session (such as the life cycle of a set of data transmission) to maintain the short-term connection state, and clears it after the session ends to achieve lightweight session maintenance. Compared with long connection management, it reduces the long-term occupancy of the connection state.

[0066] In the connection process of related technologies, releasing the connection usually requires negotiation between the two parties (such as TCP's four handshakes), while in the stateless connection-oriented embodiment of the present invention, the connection release is managed by the node itself. When a session is completed, the node automatically clears the temporary state information related to the session without the need for an additional release process. This makes connection management more flexible and efficient.

[0067] In some embodiments of the present invention, the communication data packet is a session data packet, the current communication channel is a current session, the self-description information carries a session identifier of the current session, and the communication data packet of the current communication channel is processed based on the temporary connection context information, including: based on the temporary connection context information, caching the session data packet carrying the session identifier into a session list.

[0068] In actual applications, a unique identifier is generated for each transmission session. When subsequent data packets arrive, the target node uses the session identifier to match the corresponding data stream and puts the data packet into the corresponding session list, thereby realizing stateless connection-oriented transmission.

[0069] In some examples, the conversation list may be a conversation queue.

[0070] In the embodiment of the present invention, the continuity of the data stream is ensured in this way, and even if the data packets arrive out of order, they can be sorted into the correct session list through the session identifier.

[0071] In some embodiments of the present invention, the self-description information also carries timestamp information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes:

[0072] According to the timestamp information, it is determined whether the received session data packet is within the validity period; if not within the validity period, the received session data packet is discarded.

[0073] In actual applications, the target node determines whether the data packet is within the validity period through the timestamp information carried in the timestamp field in the session data packet, and prevents the processing of expired or invalid data packets.

[0074] In some embodiments of the present invention, the self-description information further carries verification information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the following further comprises:

[0075] The received session data packet is checked according to the verification information.

[0076] In practical applications, the target node can use the checksum field in the data packet to verify the data packet to ensure that there is no damage or loss during the data transmission process. If the checksum verification fails, the target node can request retransmission or discard the data packet.

[0077] In some embodiments of the present invention, the self-description information further carries sequence number information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes:

[0078] The received session data packets are reassembled according to the sequence number information.

[0079] In practical applications, data packets may be out of order during transmission. The target node can use the sequence number information carried in the sequence number field in the data packet to perform sequence verification and reorganization of the data packet to ensure that the data packets arrive in the correct order and are reorganized.

[0080] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system.

[0081] Reference Figure 2 , shows a flowchart of the steps of another method for processing network communication data provided by some embodiments of the present invention. The method can be applied to an intermediate node, the target node is a node indicated by the destination address of a communication data packet, the source node is a node that sends a communication data packet, and the intermediate node is a node that is passed through when transmitting between the source node and the target node. Specifically, the following steps may be included:

[0082] Step 201, receiving a communication data packet sent by a source node; wherein the communication data packet carries self-description information.

[0083] In the initial transmission phase, when the source node wants to initiate data transmission, it does not need to establish a connection through the three-way handshake in TCP, but obtains self-description information containing a session identifier, and then carries the self-description information in a communication data packet and sends the communication data packet to the target node.

[0084] In a stateless connection-oriented model, each data packet carries enough information (i.e., self-describing information) to form a self-describing data packet, such as the source address, destination address, session identifier, etc. This information enables each data packet to be routed and transmitted independently without relying on the pre-established connection status. Intermediate nodes can forward quickly and accurately through this self-describing information, and target nodes can process data through this self-describing information.

[0085] In this mechanism, self-describing data packets play a core role in the stateless connection-oriented model. They contain sufficient metadata information to ensure that data packets can be transmitted smoothly without pre-establishing a connection. Intermediate nodes and target nodes identify, forward and process data packets by parsing the self-describing information in the data packets.

[0086] In some examples, the self-describing information may include the following core fields:

[0087] Source address and destination address: Used to identify the sender and receiver of the data packet, which ensures that the intermediate nodes and the destination node can determine the transmission direction of the data packet.

[0088] Session identifier: Each data transmission session generates a unique identifier to identify a specific data flow or session. The session identifier remains unique throughout the session, ensuring that data packets are correctly classified into the corresponding data flow.

[0089] Timestamp: Data packets can contain timestamps to define the validity period of a session. This timestamp not only helps the target node determine whether the data packet is within the validity period, but also assists intermediate nodes in optimizing transmission or discarding expired communication data packets.

[0090] Data payload length: indicates the payload data size in the data packet, helping the target node to correctly parse and process the payload part of the data packet.

[0091] Checksum: used for data integrity verification. The target node uses the checksum to determine whether errors occur in the data packet transmission process.

[0092] Sequence number: used to ensure that data packets arrive in order. The target node can use the sequence number to reassemble out-of-order packets to ensure the integrity and correctness of the data stream.

[0093] In some examples, the source node may first send a communication data packet to an intermediate node, and the intermediate node determines the data forwarding direction based on the self-description information carried in the communication data packet, and then forwards the communication data packet to the next hop until it is sent to the target node.

[0094] During data transmission, intermediate nodes do not need to maintain connection status. Instead, they forward and select routes by checking the self-description information carried in the data packet, thus achieving stateless transmission. This reduces the network's dependence on status tables and connection tables, reduces resource consumption, and improves network scalability.

[0095] For intermediate nodes, routing selection can be performed by reading the destination address and session identifier in the data packet. Due to the stateless design, intermediate nodes do not need to maintain the global state information of the data flow, but only need to determine the forwarding direction of the data based on the self-description information of the current data packet.

[0096] Specifically, the intermediate node determines which data flow the data packet belongs to based on the session identifier. Through a simple session identifier lookup mechanism, the intermediate node can quickly determine the downstream routing node or destination node without the need for complex state management, greatly simplifying the burden on network equipment.

[0097] In some examples, if a data packet contains a timestamp field, the intermediate node can determine whether the data packet has expired by comparing the timestamp. For expired data packets, the intermediate node can directly discard them to reduce network burden and improve overall efficiency, avoiding invalid transmission from occupying bandwidth resources.

[0098] Step 202, forwarding the communication data packet to the target node according to the self-description information, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0099] After receiving the communication data packet, the target node may establish temporary connection context information for the current communication channel according to the self-description information carried in the communication data packet, especially the session information contained therein, and start processing data based on the temporary connection context information.

[0100] For temporary connection context information, the node only maintains temporary session information during the session (such as the life cycle of a set of data transmission) to maintain the short-term connection state, and clears it after the session ends to achieve lightweight session maintenance. Compared with long connection management, it reduces the long-term occupancy of the connection state.

[0101] In the connection process of related technologies, releasing the connection usually requires negotiation between the two parties (such as TCP's four handshakes), while in the stateless connection-oriented embodiment of the present invention, the connection release is managed by the node itself. When a session is completed, the node automatically clears the temporary state information related to the session without the need for an additional release process. This makes connection management more flexible and efficient.

[0102] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system.

[0103] Reference Figure 3 , shows a flowchart of the steps of another method for processing network communication data provided by some embodiments of the present invention, the method can be applied to a source node, the target node is a node indicated by the destination address of a communication data packet, the source node is a node that sends a communication data packet, and the intermediate node is a node that is passed through when transmitting between the source node and the target node, and specifically may include the following steps:

[0104] Step 301, generating a communication data packet; wherein the communication data packet carries self-describing information.

[0105] In the initial transmission phase, when the source node wants to initiate data transmission, it does not need to establish a connection through the three-way handshake in TCP, but obtains self-description information containing a session identifier, and then carries the self-description information in a communication data packet and sends the communication data packet to the target node.

[0106] In a stateless connection-oriented model, each data packet carries enough information (i.e., self-describing information) to form a self-describing data packet, such as the source address, destination address, session identifier, etc. This information enables each data packet to be routed and transmitted independently without relying on the pre-established connection status. Intermediate nodes can forward quickly and accurately through this self-describing information, and target nodes can process data through this self-describing information.

[0107] In this mechanism, self-describing data packets play a core role in the stateless connection-oriented model. They contain sufficient metadata information to ensure that data packets can be transmitted smoothly without pre-establishing a connection. Intermediate nodes and target nodes identify, forward and process data packets by parsing the self-describing information in the data packets.

[0108] In some examples, the self-describing information may include the following core fields:

[0109] Source address and destination address: Used to identify the sender and receiver of the data packet, which ensures that the intermediate nodes and the destination node can determine the transmission direction of the data packet.

[0110] Session identifier: Each data transmission session generates a unique identifier to identify a specific data flow or session. The session identifier remains unique throughout the session, ensuring that data packets are correctly classified into the corresponding data flow.

[0111] Timestamp: Data packets can contain timestamps to define the validity period of a session. This timestamp not only helps the target node determine whether the data packet is within the validity period, but also assists intermediate nodes in optimizing transmission or discarding expired communication data packets.

[0112] Data payload length: indicates the payload data size in the data packet, helping the target node to correctly parse and process the payload part of the data packet.

[0113] Checksum: used for data integrity verification. The target node uses the checksum to determine whether errors occur in the data packet transmission process.

[0114] Sequence number: used to ensure that data packets arrive in order. The target node can use the sequence number to reassemble out-of-order packets to ensure the integrity and correctness of the data stream.

[0115] In some examples, the source node may first send a communication data packet to an intermediate node, and the intermediate node determines the data forwarding direction based on the self-description information carried in the communication data packet, and then forwards the communication data packet to the next hop until it is sent to the target node.

[0116] During data transmission, intermediate nodes do not need to maintain connection status. Instead, they forward and select routes by checking the self-description information carried in the data packet, thus achieving stateless transmission. This reduces the network's dependence on status tables and connection tables, reduces resource consumption, and improves network scalability.

[0117] For intermediate nodes, routing selection can be performed by reading the destination address and session identifier in the data packet. Due to the stateless design, intermediate nodes do not need to maintain the global state information of the data flow, but only need to determine the forwarding direction of the data based on the self-description information of the current data packet.

[0118] Specifically, the intermediate node determines which data flow the data packet belongs to based on the session identifier. Through a simple session identifier lookup mechanism, the intermediate node can quickly determine the downstream routing node or destination node without the need for complex state management, greatly simplifying the burden on network equipment.

[0119] In some examples, if a data packet contains a timestamp field, the intermediate node can determine whether the data packet has expired by comparing the timestamp. For expired data packets, the intermediate node can directly discard them to reduce network burden and improve overall efficiency, avoiding invalid transmission from occupying bandwidth resources.

[0120] Step 302: Send the communication data packet to the target node, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0121] After receiving the communication data packet, the target node may establish temporary connection context information for the current communication channel according to the self-description information carried in the communication data packet, especially the session information contained therein, and start processing data based on the temporary connection context information.

[0122] For temporary connection context information, the node only maintains temporary session information during the session (such as the life cycle of a set of data transmission) to maintain the short-term connection state, and clears it after the session ends to achieve lightweight session maintenance. Compared with long connection management, it reduces the long-term occupancy of the connection state.

[0123] In the connection process of related technologies, releasing the connection usually requires negotiation between the two parties (such as TCP's four handshakes), while in the stateless connection-oriented embodiment of the present invention, the connection release is managed by the node itself. When a session is completed, the node automatically clears the temporary state information related to the session without the need for an additional release process. This makes connection management more flexible and efficient.

[0124] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system.

[0125] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0126] Reference Figure 4 , shows a schematic diagram of the structure of a device for processing network communication data provided by some embodiments of the present invention, the device can be applied to a target node, and specifically may include the following modules:

[0127] The target node receiving module 401 is used to receive a communication data packet sent by a source node; wherein the communication data packet carries self-description information;

[0128] The target node processing module 402 is used to establish temporary connection context information for the current communication channel according to the self-description information, and process the communication data packet of the current communication channel based on the temporary connection context information.

[0129] In some embodiments of the present invention, the communication data packet is a session data packet, the current communication channel is a current session, the self-description information carries a session identifier of the current session, and the processing of the communication data packet of the current communication channel based on the temporary connection context information includes:

[0130] Based on the temporary connection context information, the session data packet carrying the session identifier is cached in a session list.

[0131] In some embodiments of the present invention, the self-description information further carries timestamp information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes:

[0132] Determining whether the received session data packet is within the validity period according to the timestamp information;

[0133] If it is not within the validity period, the received session data packet will be discarded.

[0134] In some embodiments of the present invention, the self-description information further carries verification information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes:

[0135] The received session data packet is checked according to the verification information.

[0136] In some embodiments of the present invention, the self-description information further carries sequence number information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes:

[0137] The received session data packets are reassembled according to the sequence number information.

[0138] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system.

[0139] Reference Figure 5 , shows a schematic diagram of the structure of a device for processing network communication data provided by some embodiments of the present invention, the device can be applied to an intermediate node, and specifically may include the following modules:

[0140] The intermediate node receiving module 501 is used to receive a communication data packet sent by a source node; wherein the communication data packet carries self-description information;

[0141] The intermediate node forwarding module 502 is used to forward the communication data packet to the target node according to the self-description information, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0142] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system.

[0143] Reference Figure 6 , shows a schematic diagram of the structure of a device for processing network communication data provided by some embodiments of the present invention, the device can be applied to a source node, and specifically may include the following modules:

[0144] The source node generation module 601 is used to generate a communication data packet; wherein the communication data packet carries self-description information;

[0145] The source node sending module 602 is used to send the communication data packet to the target node, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

[0146] In an embodiment of the present invention, a communication data packet sent by a source node is received, the communication data packet carries self-description information, temporary connection context information for a current communication channel is established based on the self-description information, and the communication data packet of the current communication channel is processed based on the temporary connection context information, thereby realizing stateless connection-oriented transmission based on the self-description information carried by the data packet, reducing dependence on connection status, and eliminating the need to maintain complex connection status, especially in high-concurrency communication scenarios, reducing communication overhead and reducing the management cost of connections in the system.

[0147] Some embodiments of the present invention further provide an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the above method is implemented when the computer program is executed by the processor.

[0148] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0149] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above method when executed by a processor.

[0150] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0151] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0152] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0153] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0154] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0155] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0157] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0158] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.

[0159] The above is a detailed introduction to a method and device for processing network communication data. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for processing network communication data, characterized in that: Applied to a target node, the method comprises: Receiving a communication data packet sent by a source node; wherein the communication data packet carries self-describing information; According to the self-description information, temporary connection context information for the current communication channel is established, and based on the temporary connection context information, the communication data packet of the current communication channel is processed.

2. The method according to claim 1, characterized in that The communication data packet is a session data packet, the current communication channel is a current session, the self-description information carries a session identifier of the current session, and the processing of the communication data packet of the current communication channel based on the temporary connection context information includes: Based on the temporary connection context information, the session data packet carrying the session identifier is cached in a session list.

3. The method according to claim 2, characterized in that The self-description information also carries timestamp information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes: Determining whether the received session data packet is within the validity period according to the timestamp information; If it is not within the validity period, the received session data packet will be discarded.

4. The method according to claim 2 or 3, characterized in that: The self-description information also carries verification information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, it also includes: The received session data packet is checked according to the verification information.

5. The method according to claim 2 or 3, characterized in that: The self-description information also carries sequence number information, and after caching the session data packet carrying the session identifier into the session list based on the temporary connection context information, the method further includes: The received session data packets are reassembled according to the sequence number information.

6. A method for processing network communication data, characterized in that: Applied to an intermediate node, the method comprises: Receiving a communication data packet sent by a source node; wherein the communication data packet carries self-describing information; According to the self-description information, the communication data packet is forwarded to the target node, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

7. A method for processing network communication data, characterized in that: Applied to a source node, the method comprises: Generate a communication data packet; wherein the communication data packet carries self-describing information; The communication data packet is sent to a target node, so that the target node establishes temporary connection context information for a current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

8. A device for processing network communication data, characterized in that: Applied to a target node, the device comprises: The target node receiving module is used to receive the communication data packet sent by the source node; wherein the communication data packet carries self-description information; The target node processing module is used to establish temporary connection context information for the current communication channel according to the self-description information, and process the communication data packet of the current communication channel based on the temporary connection context information.

9. A device for processing network communication data, characterized in that: Applied to an intermediate node, the device comprises: The intermediate node receiving module is used to receive the communication data packet sent by the source node; wherein the communication data packet carries self-description information; The intermediate node forwarding module is used to forward the communication data packet to the target node according to the self-description information, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.

10. A device for processing network communication data, characterized in that: Applied to a source node, the device comprises: A source node generation module, used to generate a communication data packet; wherein the communication data packet carries self-description information; The source node sending module is used to send the communication data packet to the target node, so that the target node establishes temporary connection context information for the current communication channel according to the self-description information, and processes the communication data packet of the current communication channel based on the temporary connection context information.