Overlapping network data transmission method, system, device and storage medium
By applying remote direct data access technology in the overlay network, the message to be sent is encapsulated into a remote direct data access packet carrying overlay network metadata, which solves the problem of insufficient data transmission rate in the existing technology and achieves Efficient and flexible overlapping network data transmission meets cloud computing's requirements for network performance and flexibility.
Patent Information
- Application Number
- CN202410695105.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The data transmission rate of existing overlay networks is insufficient to meet the network flexibility and performance requirements of cloud computing.
Remote direct data access (RDMA) technology is used to encapsulate the message to be sent into a remote direct data access packet carrying overlapping network metadata, and send it to the receiving node through remote direct data access data transmission, realizing the RDMA's overlapping network data transmission supports fast transmission and flexible connection management.
It improves the data transmission rate of the overlay network, meets the requirements of cloud computing for network flexibility, and facilitates fallback to the original communication method when transmission fails, realizing the construction of a large second-layer network with high performance and flexibility.
Smart Images

Figure CN118264617B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an overlapping network data transmission method, system, device and storage medium. Background Art
[0002] An overlay network is a virtual network located on top of one or more existing networks. It consists of three main parts: host, router, and tunnel. The tunnel is a path based on the underlying network and is also a logical link of the overlay network. Overlay network technology builds a virtual network layer on the basis of the existing network, allowing data centers to manage large-scale virtual machines and containers more flexibly.
[0003] With the upgrade of data center infrastructure and the increase in business performance requirements, a more powerful overlay network data transmission method is needed to meet current business development needs.
[0004] Therefore, how to improve the data transmission rate of the overlapping network is a technical problem that technical personnel in this field need to solve. Summary of the invention
[0005] The object of the present invention is to provide an overlapping network data transmission method, system, device and storage medium for improving the data transmission rate of the overlapping network.
[0006] In order to solve the above technical problems, the present invention provides an overlapping network data transmission method, which is applied to a sending node, comprising:
[0007] In response to the message sending task of the sending end virtual node, query the routing information of the message to be sent;
[0008] Encapsulating the message to be sent into a remote direct data access data packet carrying overlay network metadata according to routing information of the message to be sent;
[0009] The remote direct data access data packet is sent to the receiving node using a remote direct data access data transmission method, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet.
[0010] On the one hand, encapsulating the message to be sent into a remote direct data access data packet carrying overlay network metadata includes:
[0011] The overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by query are encapsulated into the message header of the message to be sent, and the obtained remote direct data access data packet is stored in a direct memory access buffer.
[0012] On the other hand, the querying of routing information of the message to be sent includes:
[0013] Performing a flow table query according to the message header of the message to be sent;
[0014] If no flow table is matched, the message to be sent is discarded;
[0015] If a flow table is matched, the overlapping network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table;
[0016] The types of the overlay network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type.
[0017] On the other hand, the adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node includes:
[0018] Checking the communication connection resources between the sending node and the receiving node;
[0019] If the communication connection resource supports remote direct data access communication, writing the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection between the sending node and the receiving node;
[0020] If the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is returned to the original kernel protocol stack mode for encapsulation tunnel message forwarding.
[0021] On the other hand, the adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node includes:
[0022] Checking the communication connection status between the sending node and the receiving node;
[0023] If a remote direct data access connection exists between the sending node and the receiving node and the state of the remote direct data access connection is a working state, acquiring information of the remote direct data access connection to send the remote direct data access data packet to the receiving node based on the remote direct data access connection;
[0024] If the remote direct data access connection does not exist between the sending node and the receiving node, the remote direct data access connection is created by exchanging remote direct data access metadata with the receiving node, and the remote direct data access data packet is sent to the receiving node based on the remote direct data access connection.
[0025] On the other hand, the adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node includes:
[0026] Querying information about a remote direct data access connection between the sending node and the receiving node from a communication connection resource pool of the cluster where the sending node is located;
[0027] The remote direct data access data packet is sent to the receiving node based on the remote direct data access connection.
[0028] On the other hand, it also includes:
[0029] The communication connection resource pool is applied to maintain the status of the communication connection between nodes in the cluster where the sending node is located, and the communication connection that is not a remote direct data access connection between the two ends of the communication is set to a normal state, and the remote direct data access connection that has data transmission within a first preset time is set to a working state, and the remote direct data access connection that has no data transmission within the first preset time is set to an invalid state, and the remote direct data access connection that has no data transmission within a second preset time is set to a timeout state and the corresponding remote direct data access communication resource is deleted.
[0030] On the other hand, the adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node includes:
[0031] Using a remote direct data access write operation to write the remote direct data access data packet in the local direct memory access buffer into the direct memory access buffer of the receiving node;
[0032] A remote direct data access sending operation is used to notify the receiving node of a message that the transmission of the remote direct data access data packet is completed, so that the receiving node can read the remote direct data access data packet.
[0033] On the other hand, the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlay network metadata obtained by parsing the remote direct data access data packet, including:
[0034] After the receiving node reads the remote direct data access data packet from the direct memory access buffer of the receiving node, the receiving node parses the message header of the remote direct data access data packet to obtain the overlay network metadata;
[0035] The receiving node restores the remote direct data access data packet into an overlay network message according to the overlay network metadata;
[0036] The receiving node performs a flow table query according to the overlapping network message, and transmits the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
[0037] On the other hand, in response to the message sending task of the sending end virtual node, querying the routing information of the message to be sent includes:
[0038] In response to the message sending task of the sending end virtual node, a flow table query is performed according to the message header of the message to be sent;
[0039] If no flow table is matched, the message to be sent is discarded;
[0040] If a flow table is matched, the overlapping network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table; wherein the types of the overlapping network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type;
[0041] The step of encapsulating the message to be sent into a remote direct data access data packet carrying the overlay network metadata according to the routing information of the message to be sent includes:
[0042] Encapsulating the overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by querying the flow table into the message header of the message to be sent, and storing the obtained remote direct data access data packet into a local direct memory access buffer;
[0043] The adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node comprises:
[0044] Checking the communication connection resources between the sending node and the receiving node;
[0045] If a remote direct data access connection exists between the sending node and the receiving node, acquiring information of the remote direct data access connection to write the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection;
[0046] If the remote direct data access connection does not exist between the sending node and the receiving node, creating the remote direct data access connection by exchanging remote direct data access metadata with the receiving node;
[0047] If the remote direct data access connection is successfully created, writing the remote direct data access data packet into the direct memory access buffer of the receiving node based on the remote direct data access connection;
[0048] If the remote direct data access connection is not successfully created or the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is returned to the original kernel protocol stack mode for encapsulation tunnel message forwarding;
[0049] The receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlay network metadata obtained by parsing the remote direct data access data packet, including:
[0050] After the receiving node reads the remote direct data access data packet from the direct memory access buffer of the receiving node, the receiving node parses the message header of the remote direct data access data packet to obtain the overlay network metadata;
[0051] The receiving node restores the remote direct data access data packet into an overlay network message according to the overlay network metadata;
[0052] The receiving node performs a flow table query according to the overlapping network message, and transmits the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
[0053] In order to solve the above technical problems, the present invention also provides an overlapping network data transmission method, which is applied to a receiving node, comprising:
[0054] In response to a write message of a remote direct data access data packet from a sending node, reading the remote direct data access data packet from a local direct memory access buffer;
[0055] Parsing the remote direct data access data packet to obtain overlay network metadata;
[0056] According to the overlay network metadata, the message data in the remote direct data access data packet is transmitted to the corresponding receiving end virtual node;
[0057] The remote direct data access data packet is the remote direct data access data packet carrying the overlay network metadata, which is obtained by encapsulating the message to be sent by the sending node according to the routing information of the message to be sent in the message sending task of the sending end virtual node.
[0058] To solve the above technical problems, the present invention also provides an overlapping network data transmission system, comprising a plurality of hosts; a remote direct data access connection is established between the hosts;
[0059] The host is used to query the routing information of the message to be sent in response to the message sending task of the sending virtual node; encapsulate the message to be sent into a remote direct data access data packet carrying overlapping network metadata according to the routing information of the message to be sent; and use a remote direct data access data transmission method to send the remote direct data access data packet to another host serving as a receiving node, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet.
[0060] In order to solve the above technical problems, the present invention further provides an overlapping network data transmission device, comprising:
[0061] Memory for storing computer programs;
[0062] The processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the overlapping network data transmission method as described in any one of the above items are implemented.
[0063] In order to solve the above technical problems, the present invention also provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the overlapping network data transmission method as described in any one of the above items are implemented.
[0064] In order to solve the above technical problems, the present invention also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of any one of the above-mentioned overlapping network data transmission methods.
[0065] The overlapping network data transmission method provided by the present invention has the beneficial effect that after receiving the message sending task of the sending virtual node, the routing information of the message to be sent is queried and the message to be sent is encapsulated as a remote direct data access data packet carrying the overlapping network metadata, and then the remote direct data access data packet is sent to the receiving node using the remote direct data access data transmission method, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet, thereby realizing an overlapping network data transmission scheme based on remote direct data access, and the sending and receiving virtual nodes are unaware of it, and it is also convenient to fall back to the original communication method when the transmission fails, thereby realizing fast data transmission of the overlapping network while meeting the network flexibility requirements of cloud computing.
[0066] The overlapping network data transmission method provided by the present invention can also use a communication connection resource pool to manage the remote direct data access connection between the sending node and the receiving node, and then the communication connection resource pool can be used to maintain the state of the communication connection between the nodes in the cluster where the sending node is located, thereby realizing life cycle management of remote direct data access connections, non-remote direct data access connections, remote direct data access connections with no data transmission for a short period of time, and remote direct data access connections with no data transmission for a long period of time, thereby improving the flexibility and scalability of the network.
[0067] The present invention also provides an overlapping network data transmission system, device, non-volatile storage medium and computer program product, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0069] Figure 1 An architectural diagram of an overlay network data transmission system provided by an embodiment of the present invention;
[0070] Figure 2 A flowchart of an overlapping network data transmission method provided by an embodiment of the present invention;
[0071] Figure 3 A schematic diagram of the message structure of a remote direct data access data packet provided by an embodiment of the present invention;
[0072] Figure 4 A schematic diagram of a communication connection state conversion provided by an embodiment of the present invention;
[0073] Figure 5 A flowchart of another overlapping network data transmission method provided by an embodiment of the present invention;
[0074] Figure 6 A schematic diagram of the structure of an overlay network data transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0075] The core of the present invention is to provide an overlapping network data transmission method, system, device and storage medium for improving the data transmission rate of the overlapping network.
[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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.
[0077] Figure 1 An architectural diagram of an overlay network data transmission system provided by an embodiment of the present invention.
[0078] For ease of understanding, the overlay network data transmission system provided by an embodiment of the present invention is first described.
[0079] In an overlay network, the sender of a message is a sender virtual node, and the receiver of a message is a receiver virtual node. The sender virtual node and the receiver virtual node can be virtual machines or containers. For virtual nodes, messages are forwarded through a virtual switch (Open vSwitch, OVS) during data transmission. The current mainstream overlay network layer 2 construction technologies are mainly divided into two types: host overlay (also known as host overlay) and network overlay (also known as network overlay). The host overlay technology performs encapsulation and decapsulation of the overlay tunnel on the server host. Although the deployment is flexible, the performance is low because all encapsulation and decapsulation operations are processed by the central processing unit (CPU). The network overlay technology encapsulates and decapsulates the tunnel by the switch. Although the performance is better, it is easy to cause virtual network fragmentation, high cost, insufficient flexibility, and inconvenient management.
[0080] The Remote Direct Memory Access (RDMA) technology supports direct memory access between different servers without the intervention of the central processor, thereby significantly reducing latency and increasing network bandwidth. Therefore, the embodiment of the present invention aims to apply the remote direct memory access technology to data transmission in overlapping networks to provide a large two-layer network construction method that can take into account high performance, flexibility, and scalability to meet current business development needs.
[0081] like Figure 1As shown, the overlapping network data transmission system provided by the embodiment of the present invention includes multiple hosts; a remote direct data access connection is established between the hosts; the host is used to respond to the message sending task of the sending virtual node and query the routing information of the message to be sent; according to the routing information of the message to be sent, the message to be sent is encapsulated into a remote direct data access data packet carrying overlapping network metadata; and the remote direct data access data packet is sent to another host serving as a receiving node using a remote direct data access data transmission method, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet.
[0082] It should be noted that among multiple hosts in a cluster, all hosts may have the remote direct data access function, or only some of them may have the remote direct data access function. In communication transmission, any host may serve as a sending node or a receiving node. Only when both the sending node and the receiving node have the remote direct data access function and a remote direct data access connection is successfully established between the two, can the remote direct data access connection be used to transmit a remote direct data access data packet carrying overlapping network metadata. The overlapping network data transmission system provided in an embodiment of the present invention may refer to the cluster, which may include hosts that do not have the remote direct data access function or have not established a remote direct data access connection, or may refer to a system that only includes hosts in the cluster that have established a remote direct data access connection.
[0083] Figure 1 In the example, two hosts are used as sending nodes and receiving nodes respectively. In traditional overlapping network data transmission, in the sending node, when the sending virtual node issues a message sending task, the message is forwarded through the slow path between the virtual switch of the sending node and the virtual switch of the receiving node. Applying the overlapping network data transmission scheme provided by the embodiment of the present invention, the message to be forwarded is intercepted, encapsulated into a remote direct data access data packet (RDMA data packet) carrying overlapping network metadata, and transmitted between the sending node and the receiving node using a remote direct data access communication method, forming a fast path for message forwarding, thereby effectively improving the overlapping network data transmission rate.
[0084] An overlapping network data transmission system provided by an embodiment of the present invention includes multiple hosts, and remote direct data access connections are established between the hosts; after receiving a message sending task from a sending end virtual node, the host queries the routing information of the message to be sent and encapsulates the message to be sent into a remote direct data access data packet carrying overlapping network metadata, and then uses a remote direct data access data transmission method to send the remote direct data access data packet to another host as a receiving node, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet, thereby realizing an overlapping network data transmission scheme based on remote direct data access, without perception of the sending and receiving end virtual nodes, and facilitating fallback to the original communication method when the transmission fails, thereby realizing fast data transmission of the overlapping network while meeting the requirements of cloud computing for network flexibility.
[0085] Based on the above architecture, the overlapping network data transmission method provided by the embodiment of the present invention is described below with reference to the accompanying drawings.
[0086] Figure 2 A flowchart of an overlapping network data transmission method provided by an embodiment of the present invention; Figure 3 A schematic diagram of the message structure of a remote direct data access data packet provided in an embodiment of the present invention.
[0087] like Figure 2 As shown, applied to a sending node, the overlapping network data transmission method provided by an embodiment of the present invention includes:
[0088] S201: In response to a message sending task of a sending end virtual node, query routing information of a message to be sent.
[0089] S202: Encapsulate the message to be sent into a remote direct data access data packet carrying overlay network metadata according to the routing information of the message to be sent.
[0090] S203: Sending the remote direct data access data packet to the receiving node using the remote direct data access data transmission method, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet.
[0091] In a specific implementation, the overlapping network data transmission method provided by the embodiment of the present invention can be implemented in the kernel of the host, that is, in the operating system, to achieve the effect that the upper-layer virtual service is not aware of it. Then the overlapping network data transmission method provided by the embodiment of the present invention can be applied to the central processing unit of the host, or to the smart network card with a central processing unit, or some functional modules can be deployed in the central processing unit of the host, and other functional modules can be deployed in the central processing unit of the smart network card.
[0092] For ease of management, the overlapping network data transmission method provided in the embodiment of the present invention can be implemented through three functional modules: a data routing tunnel adapter module (datapath adapter), a connection management module, and a data transmission module. These three modules are described below in conjunction with specific method steps.
[0093] For S201, when a message sending task is received from a sending end virtual node, the message to be sent is intercepted, that is, data is not transmitted through the slow path between virtual switches. The data routing tunnel adaptation module provided by the embodiment of the present invention is applied to search for routing information of the message to be sent, such as the destination network address (Internet Protocol Address, also known as IP address), tunnel type, overlapping network identity information, etc.
[0094] In S201, querying the routing information of the message to be sent may include:
[0095] Query the flow table according to the message header of the message to be sent;
[0096] If no flow table is matched, the message to be sent is discarded;
[0097] If a flow table is matched, the overlay network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table;
[0098] The types of the overlay network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type.
[0099] For S202, the data routing tunnel adaptation module provided by the embodiment of the present invention is applied to construct a message header (header message) with the metadata of the message to be sent obtained by query, so as to restore the overlapping network message after the receiving node receives the data packet and perform subsequent message forwarding actions.
[0100] In S202, encapsulating the message to be sent into a remote direct data access data packet carrying overlapping network metadata may include: encapsulating the overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by query into the message header of the message to be sent, and storing the obtained remote direct data access data packet into a direct memory access buffer.
[0101] By applying the data routing tunnel adaptation module provided in the embodiment of the present invention, the encapsulated remote direct data access data packet carrying the overlapping network metadata is converted from the socket buffer (skb) of the kernel and placed into the direct memory access buffer (DMA BUFFER) required for the remote direct data access operation, so as to prevent the page fault interrupt problem from occurring in the subsequent remote direct data access process.
[0102] The embodiment of the present invention provides an overlay network data packet based on remote direct data access (Overlay over RDMA packet), which is referred to as a remote direct data access data packet in the embodiment of the present invention. Figure 3 As shown, the message structure of the remote direct data access data packet provided by the embodiment of the present invention mainly includes a remote direct data access message header (RDMAHDR), a tunnel outer source address (src_ip), a tunnel outer destination address (dst_ip), an overlapping network identity information (OverlayID, i.e., a tenant ID), a tunnel type (type), message fragmentation and assembly information (Flag, used to identify whether the message is fragmented, and the fragmented message needs to be handed over to the application layer after subsequent message assembly), a message sequence number (Sequence, i.e., the sequence number of the message in a complete data segment), a virtual node message header (vm HDR), and payload information (payload).
[0103] The design principle of the remote direct data access data packet provided by the embodiment of the present invention is that in a large Layer 2 network, the most important point is to ensure the isolation of tenant traffic. For example, tunnel messages such as VXLAN and GENEVE have 2 to the power of 24 tenant IDs that can be allocated, but the RDMA native message focuses on the efficiency of data transmission, so there is no tenant isolation design. It is necessary to integrate tenant isolation with RDMA messages and design a specific message format, so that in the process of message forwarding, it can not only accelerate data transmission, but also meet the requirements of tenant isolation in a cloud environment. In addition, the message format is designed to be universal and transparent, not limited to a certain overlapping network protocol, so that the overall architecture has good scalability. It can be easily compatible with other tunnel protocols.
[0104] For S203, based on the established remote direct data access connection between the sending node and the receiving node, the remote direct data access data packet in the direct memory access buffer of the sending node is directly written into the direct memory access buffer of the receiving node, thereby realizing fast message transmission not based on the central processing unit.
[0105] In practical applications, in S203, the remote direct data access data packet is sent to the receiving node using the remote direct data access data transmission method, which may include:
[0106] Check the communication connection status between the sending node and the receiving node;
[0107] If a remote direct data access connection exists between the sending node and the receiving node and the state of the remote direct data access connection is a working state, obtaining information of the remote direct data access connection to send a remote direct data access data packet to the receiving node based on the remote direct data access connection;
[0108] If there is no remote direct data access connection between the sending node and the receiving node, a remote direct data access connection is created by exchanging remote direct data access metadata with the receiving node, and a remote direct data access data packet is sent to the receiving node based on the remote direct data access connection.
[0109] The above steps can be implemented by the connection management module and data transmission module provided by the embodiment of the present invention. For the convenience of management, the embodiment of the present invention deploys a connection management module to implement tasks such as management of remote direct data access connections and environmental checks before sending remote direct data access data packets, and deploys a data transmission module to implement the task of transmitting remote direct data access data packets based on the established remote direct data access connection.
[0110] The connection management module can also be used to negotiate, fallback, and manage the connection of nodes that need to communicate in the large Layer 2 network. After the data routing tunnel adapter module completes the basic metadata encapsulation and memory conversion, it requests the remote direct data access connection from the connection management module. The connection management module will check whether the current environment supports remote direct data access transmission. If not, it will fall back to the original kernel protocol stack mode to encapsulate the tunnel message forwarding.
[0111] Creating a remote direct data access connection requires the sending node and the receiving node to exchange local keys (r_key), remote keys (l_key) and virtual addresses.
[0112] In some other optional implementations of the embodiments of the present invention, the remote direct data access data packet is sent to the receiving node by using the remote direct data access data transmission method in S203, which may include:
[0113] Check the communication connection resources between the sending node and the receiving node;
[0114] If the communication connection resource supports remote direct data access communication, writing the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection between the sending node and the receiving node;
[0115] If the communication connection resource does not support remote direct data access communication, the remote direct data access data packet will be rolled back to the original kernel protocol stack mode for encapsulation tunnel message forwarding.
[0116] The overlapping network data transmission method provided in the embodiment of the present invention is unaware of the upper-layer virtual nodes, and a further advantage brought about by this is that it can support communication methods other than remote direct data access. For a host that does not support remote direct data access or does not have remote direct data access resources, the original overlapping network data transmission method can also be used. When the remote direct data access transmission fails, it can also fall back to the original overlapping network data transmission method.
[0117] There are also multiple communication modes for remote direct data access. In the embodiment of the present invention, the remote direct data access data transmission mode is used in S203 to send the remote direct data access data packet to the receiving node, which may include:
[0118] Using a remote direct data access write operation to write a remote direct data access data packet in a local direct memory access buffer into a direct memory access buffer of a receiving node;
[0119] The remote direct data access sending operation is used to notify the receiving node of the message that the remote direct data access data packet transmission is completed, so that the receiving node can read the remote direct data access data packet.
[0120] In some other optional implementations of the embodiments of the present invention, the remote direct data access data packet is sent to the receiving node by using the remote direct data access data transmission method in S203, which may include:
[0121] If the size of the remote direct data access data packet exceeds a first preset value, a remote direct data access write operation (RDMA Write) is used to write the remote direct data access data packet in the local direct memory access buffer into the direct memory access buffer of the receiving node; a remote direct data access send operation (RDMA SEND) is used to notify the receiving node of a message that the remote direct data access data packet transmission is completed, so that the receiving node can read the remote direct data access data packet;
[0122] If the size of the remote direct data access data packet is smaller than the first preset value, a remote direct data access sending operation (RDMA SEND) is directly used to send the remote direct data access data packet to the receiving node.
[0123] The receiving node is also equipped with a data routing tunnel adaptation module, a connection management module and a data transmission module provided by the embodiment of the present invention. The connection management module is used to cooperate with the connection management module of the sending node to maintain the remote direct data access connection between the sending node and the receiving node.
[0124] In S203, the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlay network metadata obtained by parsing the remote direct data access data packet, which may include:
[0125] After the receiving node reads the remote direct data access data packet from the direct memory access buffer of the receiving node, the receiving node parses the message header of the remote direct data access data packet to obtain the overlay network metadata;
[0126] The receiving node restores the remote direct data access data packet into an overlay network message according to the overlay network metadata;
[0127] The receiving node performs a flow table query according to the overlapping network message, and transmits the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
[0128] Among them, the receiving node data transmission module responds to the remote direct data access write message, and the receiving node data routing tunnel adapter module reads the remote direct data access data packet from the designated direct memory access buffer and parses it, recovers the interface of the metadata corresponding to the socket buffer (skb), including the virtual node message header, sets the metadata corresponding to the message overlay network according to the transmitted data, the overlay network identity information, etc. According to the overlay network identity information (Overlay ID) and the virtual node message header, the routing information (datapath) is searched, the corresponding flow table is matched, and the hit is sent to the corresponding receiving end virtual node.
[0129] The overlapping network data transmission method provided by the embodiment of the present invention queries the routing information of the message to be sent and encapsulates the message to be sent into a remote direct data access data packet carrying overlapping network metadata after receiving the message sending task of the sending virtual node, and then uses the remote direct data access data transmission method to send the remote direct data access data packet to the receiving node, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet, thereby realizing an overlapping network data transmission scheme based on remote direct data access, without perception of the sending and receiving virtual nodes, and facilitating fallback to the original communication method when the transmission fails, thereby realizing fast data transmission of the overlapping network and meeting the network flexibility requirements of cloud computing.
[0130] Figure 4 A schematic diagram of the transition of a communication connection state provided by an embodiment of the present invention.
[0131] Based on the above embodiment, in some other optional implementations of the embodiment of the present invention, the remote direct data access data packet is sent to the receiving node by using the remote direct data access data transmission mode in S203, which may include:
[0132] Querying information about a remote direct data access connection between a sending node and a receiving node from a communication connection resource pool of a cluster where the sending node is located;
[0133] The remote direct data access data packet is sent to a receiving node based on the remote direct data access connection.
[0134] In a specific implementation, the connection management module may be designed as a state machine to more efficiently manage the life cycle of the communication connection between nodes in the communication connection resource pool.
[0135] The overlay network data transmission method provided by the embodiment of the present invention may further include:
[0136] The application communication connection resource pool maintains the status of the communication connection between nodes in the cluster where the sending node is located, sets the communication connection between the two ends of the communication that is not a remote direct data access connection to a normal state (normal), sets the remote direct data access connection that has data transmission within a first preset time to a working state (active), sets the remote direct data access connection that has no data transmission within the first preset time to an invalid state (inactive), sets the remote direct data access connection that has no data transmission within a second preset time to a timeout state (dead) and deletes the corresponding remote direct data access communication resources.
[0137] It can be understood that the second preset time should be greater than the first preset time.
[0138] like Figure 4 As shown, for remote direct data access to the underlying hardware resources such as queue pairs (QP) and complete queues (CQ), it would be very time-consuming and inefficient if the corresponding resources need to be applied for each packet transmission. Therefore, the embodiment of the present invention adopts a communication connection resource pool to maintain the life cycle of the communication connection between nodes, so as to facilitate the efficient forwarding of subsequent messages.
[0139] Among them, the first preset time can be 60 seconds, and the second preset time can be 120 seconds. When the remote direct data access is not normally supported for acceleration, the state is in the normal state (normal). When the remote direct data access transmission is attempted and succeeds, the state will be migrated to the working state (active). If it fails, it will fall back to software sending and the state will be migrated to the normal state (normal). The remote direct data access in the working state (active) is a connection with data packets being transmitted; the remote direct data access connection that has no data transmission for more than 60 seconds enters the invalid state (inactive). If there is no data transmission for more than 120 seconds or the corresponding overlapping network tunnel is deleted by the system, the corresponding connection enters the timeout state (dead) and starts to clean up resources. At this time, only the information of the remote direct data access connection that has been established can be maintained.
[0140] The overlapping network data transmission method provided by the embodiment of the present invention can also use a communication connection resource pool to manage the remote direct data access connection between the sending node and the receiving node, and then the communication connection resource pool can be used to maintain the status of the communication connection between the nodes in the cluster where the sending node is located, thereby realizing life cycle management of remote direct data access connections, non-remote direct data access connections, remote direct data access connections with no data transmission for a short period of time, and remote direct data access connections with no data transmission for a long period of time, thereby improving the flexibility and scalability of the network.
[0141] On the basis of the above embodiments, the overlapping network data transmission method provided by the embodiment of the present invention may further include:
[0142] Querying local remote direct data access resource information, and determining the number of remote direct data access connections allowed to be established locally according to the local remote direct data access resource information;
[0143] The number of remote direct data access connections in the communication connection resource pool is adjusted according to the number of remote direct data access connections allowed to be established locally.
[0144] Further, adjusting the number of remote direct data access connections in the communication connection resource pool according to the number of remote direct data access connections established locally may include:
[0145] The first preset time and the second preset time are adjusted according to the number of remote direct data access connections allowed to be established locally, so that the number of remote direct data access connections in the communication connection resource pool is less than and close to the number of remote direct data access connections allowed to be established locally.
[0146] The overlapping network data transmission method provided by the embodiment of the present invention dynamically adjusts the number of remote direct data access connections to be established according to local remote direct data access resources, so as to fully utilize local hardware resources while ensuring smooth operation of the network.
[0147] Figure 5 A flowchart of another overlapping network data transmission method provided by an embodiment of the present invention.
[0148] On the basis of the above-mentioned embodiment, in the overlapping network data transmission method provided by the embodiment of the present invention, in response to the message sending task of the sending end virtual node, querying the routing information of the message to be sent in S201 may include:
[0149] In response to the message sending task of the sending end virtual node, a flow table query is performed according to the message header of the message to be sent;
[0150] If no flow table is matched, the message to be sent is discarded;
[0151] If a flow table is matched, the overlay network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table; wherein the types of the overlay network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type.
[0152] In S202, encapsulating the message to be sent into a remote direct data access data packet carrying the overlay network metadata according to the routing information of the message to be sent may include:
[0153] The overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by querying the flow table are encapsulated into the message header of the message to be sent, and the obtained remote direct data access data packet is stored in the local direct memory access buffer.
[0154] In S203, the remote direct data access data packet is sent to the receiving node by adopting the remote direct data access data transmission mode, which may include:
[0155] Check the communication connection resources between the sending node and the receiving node;
[0156] If a remote direct data access connection exists between the sending node and the receiving node, obtaining information of the remote direct data access connection to write the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection;
[0157] If a remote direct data access connection does not exist between the sending node and the receiving node, creating a remote direct data access connection by exchanging remote direct data access metadata with the receiving node;
[0158] If the remote direct data access connection is successfully created, writing the remote direct data access data packet into the direct memory access buffer of the receiving node based on the remote direct data access connection;
[0159] If the remote direct data access connection is not successfully created or the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is rolled back to the original kernel protocol stack mode for encapsulation tunnel message forwarding.
[0160] In S203, the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlay network metadata obtained by parsing the remote direct data access data packet, which may include:
[0161] After the receiving node reads the remote direct data access data packet from the direct memory access buffer of the receiving node, the receiving node parses the message header of the remote direct data access data packet to obtain the overlay network metadata;
[0162] The receiving node restores the remote direct data access data packet into an overlay network message according to the overlay network metadata;
[0163] The receiving node performs a flow table query according to the overlapping network message, and transmits the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
[0164] In a specific implementation, the data routing tunnel adapter module provided by the embodiment of the present invention is applied. The message header is sent by the virtual machine at the sending node to match the flow table. If no match is found, the message is discarded. If a specific flow table is hit, the metadata, tunnel information (tunnel ID), tunnel destination address, tunnel source address, and tunnel type of the message for tunnel encapsulation are obtained. The encapsulated remote direct data access data packet is integrated from the socket buffer and placed in the direct memory access buffer. The encapsulated remote direct data access data packet, including the metadata and the socket buffer, is submitted to the connection management module for transmission.
[0165] At the receiving node, when the data transmission module notifies the data routing tunnel adapter module that new data has arrived, the data in the designated direct memory access buffer is parsed, and the interface corresponding to the metadata of the socket buffer is restored, including the message header of the virtual node message, and the overlay network metadata of the message is set according to the transmitted data, such as the tenant identity information (Overaly ID), etc. The routing information is searched according to the Overlay ID and the virtual machine message header, the corresponding flow table is matched, and the hit is sent to the receiving end virtual node.
[0166] The connection management module provided in the embodiment of the present invention is applied to manage the remote direct data access connection according to the metadata related to the tunnel. When the data routing tunnel adapter module submits a data packet to be sent, the connection management module will check whether there is a corresponding reliable connection (RC) connection in the current connection resource pool. If not, a corresponding remote direct data access connection will be established. The remote direct data access connection needs to exchange the corresponding local key (r_key), remote key (l_key) and virtual address (virtual address) to facilitate the subsequent remote direct data access operation. The communication connection resource pool will regularly maintain the status of the communication connection between nodes, including normal status, working status (active), invalid status (inactive), timeout status (dead), etc. Its conversion rules can refer to the introduction of the above embodiments of the present invention.
[0167] By applying the data transmission module provided by the embodiment of the present invention, on the sending node, according to the overlapping network metadata and the remote direct data access metadata set by the data routing tunnel adaptation module, the overlapping network message header and the user data are assembled together, which may specifically include a 4-bit tunnel source address, a 4-bit tunnel destination address, a 4-bit tunnel ID, a 4-bit tunnel type and a tag message sequence number. The remote direct data access transmission mode is selected according to the size of the remote direct data access data packet. For example, the remote direct data access write operation can be used to directly transmit the data in the direct memory access buffer to the direct memory access buffer of the receiving node, and then the remote direct data access send operation is used to complete the data transmission through the receiving node.
[0168] At the receiving node, when receiving the notification that the remote direct data access data packet transmission is completed, the data in the direct memory access buffer is parsed according to the agreement and the overlapping network metadata is extracted; the extracted overlapping network metadata and the direct memory access buffer of the user data are handed over to the data routing tunnel adapter module, the corresponding message structure is restored, sent to the flow table query to find the route, and sent to the receiving end virtual node after matching the route.
[0169] If Figure 5 As shown in the figure, the process of using remote direct data access acceleration in a large Layer 2 network may include:
[0170] S501: Send the message to be sent.
[0171] Among them, the virtual node sends a data message (message to be sent), which passes through the virtualization layer and reaches the data routing tunnel adapter module of the kernel routing query (datapath) layer.
[0172] S502: Find the routing information of the message to be sent, and encapsulate the remote direct data access data packet.
[0173] The data routing tunnel adapter module searches for routing information of the message to be sent and encapsulates the remote direct data access data packet. Specifically, the data routing tunnel adapter module searches for routing information of the message to be sent, prepares metadata information of the tunnel encapsulation (i.e., remote direct data access metadata) according to the hit forwarding information, and converts the socket buffer into the direct memory access buffer.
[0174] S503: Request a remote direct data access connection.
[0175] The data routing tunnel adaptation module requests a remote direct data access connection from the connection management module.
[0176] S504: Create a remote direct data access connection and send information about the remote direct data access connection.
[0177] The connection management module creates a remote direct data access connection and sends the remote direct data access connection information to the remote direct data access connection network card. Specifically, if the connection management module does not find the required remote direct data access connection in the communication connection resource pool, it creates a new remote direct data access connection according to the remote direct data access metadata.
[0178] S505: Transmitting a remote direct data access connection data packet.
[0179] The connection management module transmits the remote direct data access connection data packet through the remote direct data access connection network card. Specifically, the remote direct data access connection write operation transmits the data in the direct memory access buffer; after the data is transmitted, the remote direct data access connection send operation is used to notify the receiving node that the data transmission is completed.
[0180] S506: Notify that data transmission is complete.
[0181] The remote direct data access network card notifies the data routing tunnel adapter module that the data transmission is completed.
[0182] S507: Packet dispatching is completed.
[0183] The data routing tunnel adaptation module notifies the virtual node to complete the packet sending.
[0184] The above embodiment introduces an overlapping network data transmission method applied to a sending node. The embodiment of the present invention further provides an overlapping network data transmission method applied to a receiving node, including:
[0185] In response to a write message of the remote direct data access data packet of the sending node, reading the remote direct data access data packet from the local direct memory access buffer;
[0186] Parsing remote direct data access data packets to obtain overlay network metadata;
[0187] According to the overlay network metadata, the message data in the remote direct data access data packet is transmitted to the corresponding receiving end virtual node;
[0188] The remote direct data access data packet is a remote direct data access data packet carrying overlay network metadata, which is encapsulated by the sending node according to the routing information of the message to be sent in the message sending task of the sending end virtual node.
[0189] Since the overlapping network data transmission method applied to the receiving node corresponds to the overlapping network data transmission method applied to the sending node, the embodiment of the overlapping network data transmission method applied to the receiving node can be found in the description of the above embodiment, which will not be repeated here.
[0190] It should be noted that in the embodiments of the overlapping network data transmission method of the present invention, some of the steps or features can be ignored or not executed. The hardware or software functional modules divided for the convenience of description are not the only implementation form of the overlapping network data transmission method provided in the embodiments of the present invention.
[0191] The above describes in detail various embodiments corresponding to the overlapping network data transmission method. On this basis, the present invention also discloses overlapping network data transmission devices, equipment, non-volatile storage media and computer program products corresponding to the above method.
[0192] Applied to a sending node, an overlay network data transmission device provided by an embodiment of the present invention includes:
[0193] The first adapter module is used to query the routing information of the message to be sent in response to the message sending task of the sending end virtual node; according to the routing information of the message to be sent, encapsulate the message to be sent into a remote direct data access data packet carrying the overlay network metadata;
[0194] The sending module is used to send the remote direct data access data packet to the receiving node using the remote direct data access data transmission method, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet.
[0195] In some optional implementations of the embodiments of the present invention, the first adaptation module may be designed as the data routing tunnel adaptation module introduced in the above embodiments of the present invention.
[0196] The sending module may include:
[0197] A connection management module, used for managing remote direct data access connections and performing environmental checks before sending remote direct data access data packets;
[0198] The data transmission module is used for transmitting the remote direct data access data packet based on the established remote direct data access connection.
[0199] Applied to a receiving node, an overlay network data transmission device provided by an embodiment of the present invention includes:
[0200] A receiving module, configured to read the remote direct data access data packet from the local direct memory access buffer in response to a write message of the remote direct data access data packet from the sending node;
[0201] The second adapter module is used to parse the remote direct data access data packet to obtain the overlay network metadata; according to the overlay network metadata, transmit the message data in the remote direct data access data packet to the corresponding receiving end virtual node;
[0202] The remote direct data access data packet is a remote direct data access data packet carrying overlay network metadata, which is encapsulated by the sending node according to the routing information of the message to be sent in the message sending task of the sending end virtual node.
[0203] The receiving module may be designed as the data transmission module introduced in the above embodiment of the present invention. The second adapting module may be designed as the data routing tunnel adapting module introduced in the above embodiment of the present invention.
[0204] It should be noted that in each implementation of the overlapping network data transmission device provided in the embodiment of the present invention, the division of units is only a logical functional division, and other division methods can be used. The connection method between different units can be electrical, mechanical or other connection methods. Separated units can be located in the same physical location or distributed on multiple network nodes. Each unit can be implemented in the form of hardware or in the form of a software functional unit. That is, part or all of the units provided in the embodiment of the present invention can be selected according to actual needs and the corresponding connection method or integration method can be adopted to achieve the purpose of the embodiment of the present invention.
[0205] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0206] Figure 6 A schematic diagram of the structure of an overlay network data transmission device provided by an embodiment of the present invention.
[0207] like Figure 6 As shown, the overlapping network data transmission device provided by the embodiment of the present invention includes:
[0208] A memory 610 for storing a computer program 611;
[0209] The processor 620 is used to execute the computer program 611. When the computer program 611 is executed by the processor 620, the steps of the overlapping network data transmission method provided in any one of the above embodiments are implemented.
[0210] Among them, the processor 620 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 620 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 620 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 620 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 620 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0211] The memory 610 may include one or more non-volatile storage media, which may be non-transitory. The memory 610 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 610 is at least used to store the following computer program 611, wherein the computer program 611, after being loaded and executed by the processor 620, can implement the relevant steps in the overlapping network data transmission method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 610 may also include an operating system 612 and data 613, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 612 may be Windows, Linux or other types of operating systems. Data 613 may include but is not limited to the data involved in the above method.
[0212] In some embodiments, the overlay network data transmission device may further include a display screen 630 , a power supply 640 , a communication interface 650 , an input / output interface 660 , a sensor 670 , and a communication bus 680 .
[0213] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the overlay network data transmission device, and may include more or fewer components than those shown in the figure.
[0214] The overlapping network data transmission device provided in the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the overlapping network data transmission method provided in the above embodiment, and the effect is the same as above.
[0215] An embodiment of the present invention provides a non-volatile storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the overlapping network data transmission method provided in any one of the above embodiments can be implemented.
[0216] The non-volatile storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0217] For the introduction of the non-volatile storage medium provided in the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the overlapping network data transmission method provided in the embodiment of the present invention, and the present invention will not elaborate on it here.
[0218] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the overlapping network data transmission method provided in any one of the above embodiments.
[0219] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the overlapping network data transmission method provided by the embodiment of the present invention, and the present invention will not elaborate on it here.
[0220] The above is a detailed introduction to an overlapping network data transmission method, system, device and storage medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the devices, equipment, non-volatile storage media and computer program products disclosed in the embodiments, since they correspond to the methods and systems disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method and system description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
[0221] It should also be noted that, in this specification, 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 "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for transmitting data in an overlapping network, characterized in that: Applicable to the sending node, including: In response to the message sending task of the sending end virtual node, after intercepting the message to be sent, query the routing information of the message to be sent; encapsulating the message to be sent into a remote direct data access data packet carrying overlay network metadata according to the routing information of the message to be sent; The remote direct data access data packet is sent to a receiving node by adopting a remote direct data access data transmission mode, so that the receiving node transmits the message data in the remote direct data access data packet to a corresponding receiving end virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet; Using the communication connection resource pool of the cluster where the sending node is located to maintain the state of the communication connection between nodes in the cluster where the sending node is located, setting the communication connection between the two ends of the communication that is not a remote direct data access connection to a normal state, setting the remote direct data access connection that has data transmission within a first preset time to a working state, setting the remote direct data access connection that has no data transmission within the first preset time to an invalid state, setting the remote direct data access connection that has no data transmission within a second preset time to a timeout state and deleting the corresponding remote direct data access communication resource; The querying of the routing information of the message to be sent includes: Performing a flow table query according to the message header of the message to be sent; If no flow table is matched, the message to be sent is discarded; If a flow table is matched, the overlapping network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table; wherein the types of the overlapping network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type; The step of encapsulating the message to be sent into a remote direct data access data packet carrying the overlay network metadata according to the routing information of the message to be sent includes: Encapsulating the overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by querying the flow table into the message header of the message to be sent, and storing the obtained remote direct data access data packet into a local direct memory access buffer; The message structure of the remote direct data access data packet includes a remote direct data access message header, a tunnel outer layer source address, a tunnel outer layer destination address, overlapping network identity information, a tunnel type, message fragmentation and assembly information, a tag message sequence number, a virtual node message header, and payload information; The adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node comprises: querying the communication connection resource pool for information on the remote direct data access connection between the sending node and the receiving node; If a remote direct data access connection exists between the sending node and the receiving node, acquiring information of the remote direct data access connection to write the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection; If the remote direct data access connection does not exist between the sending node and the receiving node, creating the remote direct data access connection by exchanging remote direct data access metadata with the receiving node; If the remote direct data access connection is successfully created, writing the remote direct data access data packet into the direct memory access buffer of the receiving node based on the remote direct data access connection; If the remote direct data access connection is not successfully created or the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is returned to the original kernel protocol stack mode for encapsulation tunnel message forwarding; The receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlay network metadata obtained by parsing the remote direct data access data packet, including: After the receiving node reads the remote direct data access data packet from the direct memory access buffer of the receiving node, the receiving node parses the message header of the remote direct data access data packet to obtain the overlay network metadata; The receiving node restores the remote direct data access data packet into an overlay network message according to the overlay network metadata; The receiving node performs a flow table query according to the overlapping network message, and transmits the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
2. The overlapping network data transmission method according to claim 1, characterized in that: The adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node comprises: Checking the communication connection resources between the sending node and the receiving node; If the communication connection resource supports remote direct data access communication, writing the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection between the sending node and the receiving node; If the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is returned to the original kernel protocol stack mode for encapsulation tunnel message forwarding.
3. The overlapping network data transmission method according to claim 1, characterized in that: The adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node comprises: Checking the communication connection status between the sending node and the receiving node; If a remote direct data access connection exists between the sending node and the receiving node and the state of the remote direct data access connection is a working state, acquiring information of the remote direct data access connection to send the remote direct data access data packet to the receiving node based on the remote direct data access connection; If the remote direct data access connection does not exist between the sending node and the receiving node, the remote direct data access connection is created by exchanging remote direct data access metadata with the receiving node, and the remote direct data access data packet is sent to the receiving node based on the remote direct data access connection.
4. The overlapping network data transmission method according to claim 1, characterized in that: The adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node comprises: Using a remote direct data access write operation to write the remote direct data access data packet in the local direct memory access buffer into the direct memory access buffer of the receiving node; A remote direct data access sending operation is used to notify the receiving node of a message that the transmission of the remote direct data access data packet is completed, so that the receiving node can read the remote direct data access data packet.
5. A method for transmitting data in an overlapping network, characterized in that: Applied to receiving nodes, including: In response to a write message of a remote direct data access data packet from a sending node, reading the remote direct data access data packet from a local direct memory access buffer; Parsing the remote direct data access data packet to obtain overlay network metadata; According to the overlay network metadata, the message data in the remote direct data access data packet is transmitted to the corresponding receiving end virtual node; Using the communication connection resource pool of the cluster where the sending node is located to maintain the state of the communication connection between nodes in the cluster where the sending node is located, setting the communication connection between the two ends of the communication that is not a remote direct data access connection to a normal state, setting the remote direct data access connection that has data transmission within a first preset time to a working state, setting the remote direct data access connection that has no data transmission within the first preset time to an invalid state, setting the remote direct data access connection that has no data transmission within a second preset time to a timeout state and deleting the corresponding remote direct data access communication resource; The remote direct data access data packet is the remote direct data access data packet carrying the overlay network metadata, which is obtained by encapsulating the message to be sent by the sending node according to the routing information of the message to be sent in the message sending task of the sending end virtual node; The sending node encapsulates the message to be sent into the remote direct data access data packet carrying the overlay network metadata according to the routing information of the message to be sent in the message sending task of the sending end virtual node, including: The sending node intercepts the message to be sent in response to the message sending task of the sending end virtual node, and then queries the routing information of the message to be sent; The sending node encapsulates the message to be sent into the remote direct data access data packet carrying the overlay network metadata according to the routing information of the message to be sent; The sending node sends the remote direct data access data packet to the receiving node using a remote direct data access data transmission mode; The sending node queries the routing information of the message to be sent, including: Performing a flow table query according to the message header of the message to be sent; If no flow table is matched, the message to be sent is discarded; If a flow table is matched, the overlapping network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table; wherein the types of the overlapping network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type; The sending node encapsulates the message to be sent into a remote direct data access data packet carrying overlay network metadata according to the routing information of the message to be sent, including: Encapsulating the overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by querying the flow table into the message header of the message to be sent, and storing the obtained remote direct data access data packet into a local direct memory access buffer; The message structure of the remote direct data access data packet includes a remote direct data access message header, a tunnel outer layer source address, a tunnel outer layer destination address, overlapping network identity information, a tunnel type, message fragmentation and assembly information, a tag message sequence number, a virtual node message header, and payload information. The sending node sends the remote direct data access data packet to the receiving node using a remote direct data access data transmission method, including: querying the communication connection resource pool for information on the remote direct data access connection between the sending node and the receiving node; If a remote direct data access connection exists between the sending node and the receiving node, acquiring information of the remote direct data access connection to write the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection; If the remote direct data access connection does not exist between the sending node and the receiving node, creating the remote direct data access connection by exchanging remote direct data access metadata with the receiving node; If the remote direct data access connection is successfully created, writing the remote direct data access data packet into the direct memory access buffer of the receiving node based on the remote direct data access connection; If the remote direct data access connection is not successfully created or the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is returned to the original kernel protocol stack mode for encapsulation tunnel message forwarding; The receiving node parses the remote direct data access data packet to obtain the overlay network metadata, including: parsing a message header of the remote direct data access data packet to obtain the overlay network metadata; The receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlapping network metadata, including: restoring the remote direct data access data packet to an overlapping network message according to the overlapping network metadata; performing a flow table query according to the overlapping network message, and transmitting the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
6. An overlapping network data transmission system, characterized in that: It includes a plurality of hosts; a remote direct data access connection is established between the hosts; The host is used to respond to the message sending task of the sending end virtual node, intercept the message to be sent, and query the routing information of the message to be sent; Encapsulating the message to be sent into a remote direct data access data packet carrying overlay network metadata according to routing information of the message to be sent; The remote direct data access data packet is sent to another host as a receiving node by adopting a remote direct data access data transmission mode, so that the receiving node transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlapping network metadata obtained by parsing the remote direct data access data packet; the communication connection resource pool of the cluster where the sending node is located is used to maintain the state of the communication connection between the nodes in the cluster where the sending node is located, and the communication connection between the two ends of the communication that is not a remote direct data access connection is set to a normal state, the remote direct data access connection with data transmission within a first preset time is set to a working state, the remote direct data access connection with no data transmission within the first preset time is set to an invalid state, and the remote direct data access connection with no data transmission within a second preset time is set to a timeout state and the corresponding remote direct data access communication resource is deleted; The querying of the routing information of the message to be sent includes: Performing a flow table query according to the message header of the message to be sent; If no flow table is matched, the message to be sent is discarded; If a flow table is matched, the overlapping network metadata required for tunnel encapsulation of the message to be sent is obtained from the flow table; wherein the types of the overlapping network metadata include tunnel information, tunnel destination address, tunnel source address and tunnel type; The step of encapsulating the message to be sent into a remote direct data access data packet carrying the overlay network metadata according to the routing information of the message to be sent includes: Encapsulating the overlapping network metadata of the message to be sent and the remote direct data access metadata of the message to be sent obtained by querying the flow table into the message header of the message to be sent, and storing the obtained remote direct data access data packet into a local direct memory access buffer; The message structure of the remote direct data access data packet includes a remote direct data access message header, a tunnel outer layer source address, a tunnel outer layer destination address, overlapping network identity information, a tunnel type, message fragmentation and assembly information, a tag message sequence number, a virtual node message header, and payload information; The adopting remote direct data access data transmission mode to send the remote direct data access data packet to the receiving node comprises: querying the communication connection resource pool for information on the remote direct data access connection between the sending node and the receiving node; If a remote direct data access connection exists between the host and another host, acquiring information of the remote direct data access connection to write the remote direct data access data packet into a direct memory access buffer of the receiving node based on the remote direct data access connection; If the remote direct data access connection does not exist between the host and the other host, creating the remote direct data access connection by exchanging remote direct data access metadata with the other host; If the remote direct data access connection is successfully established, writing the remote direct data access data packet into a direct memory access buffer of another host based on the remote direct data access connection; If the remote direct data access connection is not successfully created or the communication connection resource does not support remote direct data access communication, the remote direct data access data packet is returned to the original kernel protocol stack mode for encapsulation tunnel message forwarding; Another of the hosts transmits the message data in the remote direct data access data packet to the corresponding receiving end virtual node according to the overlay network metadata obtained by parsing the remote direct data access data packet, including: After another of the hosts reads the remote direct data access data packet from the direct memory access buffer of another of the hosts, the other host parses the message header of the remote direct data access data packet to obtain the overlay network metadata; Another of the hosts restores the remote direct data access data packet into an overlay network message according to the overlay network metadata; The other host performs a flow table query according to the overlapping network message, and transmits the overlapping network message to the receiving end virtual node according to the obtained routing information of the receiving end virtual node.
7. An overlapping network data transmission device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the overlapping network data transmission method as claimed in any one of claims 1 to 4 are implemented.
8. A non-volatile storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the overlapping network data transmission method according to any one of claims 1 to 4 are implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the overlapping network data transmission method as claimed in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Data transmission method, device and equipment and storage medium
CN111193653A
Method for providing multi-tenancy support for RDMA
CN111400237A
Message forwarding method, device and equipment based on remote direct data storage
CN113326228A
Data processing method, system and device
CN113596085A
Data transmission method and device, communication node and storage medium
CN113676391A
