Method and device for creating a network card queue in an RDMA network

By creating and associating network card queue pools and backup queues in the RDMA network, the problem of slow cloud service recovery caused by network failures in the data center is solved, and fast fault recovery and data transmission stability are achieved.

CN113300979BActive Publication Date: 2024-09-17ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110163193.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-05
Publication Date
2024-09-17
Estimated Expiration
2041-02-05

AI Technical Summary

Technical Problem

In the existing technology, when a network failure occurs in a data center, the recovery speed of cloud services is slow, causing the availability of cloud services to fluctuate or be unavailable for a long time, making it difficult to recover quickly.

Method used

Under the RDMA network, by receiving the queue creation request, create a network card queue pool and at least two network card queues based on the queue address information and port information, and associate them to achieve data transmission and switch to the backup queue when a failure occurs to avoid the fault path. , improve fault recovery efficiency.

Benefits of technology

There is no need to re-create the network card queue and quickly switch to the backup queue, which improves the stability of data transmission and fault recovery efficiency and reduces service unavailability time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113300979B
    Figure CN113300979B
Patent Text Reader

Abstract

The embodiments of the present specification provide a method and device for creating a network card queue under an RDMA network, wherein the method for creating a network card queue under an RDMA network includes: receiving a queue creation request, wherein the queue creation request carries queue address information and queue port information; creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; associating the at least two network card queues with the network card queue pool as network card queues of the network card queue pool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of data communication technology, and in particular to a method and device for creating a network card queue in an RDMA network. Background Art

[0002] With the development of the Internet, more and more companies support employees to work and take classes online. Online meetings have become the mainstream in the future. In this case, the global user demand for cloud computing has further increased, which has also prompted major infrastructure suppliers to continuously expand the scale and number of data centers to meet current and future needs. At present, data centers use ordinary commercial servers and network equipment. The scale of a single data center is very large, with the number of equipment ranging from tens of thousands to hundreds of thousands. The increase in the scale of data centers is accompanied by more network equipment failures (life expiration, hardware bugs, sudden power outages, regular failure probability, natural disasters, etc.). These network failures usually cause the availability of cloud services running on data centers to fluctuate, services to be temporarily offline, or even long-term unavailability. At present, when a failure occurs, the operation and maintenance system alarms, the operation and maintenance engineers manually isolate the faulty equipment, and switch the faulty traffic to the available equipment. This process usually takes minutes, which is quite long for service recovery. How to quickly restore the network availability of cloud services when a network failure occurs is an urgent problem to be solved. Summary of the invention

[0003] In view of this, an embodiment of this specification provides a method for creating a network card queue in an RDMA network. One or more embodiments of this specification also relate to a network card queue creation device in an RDMA network, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.

[0004] A first aspect of an embodiment of this specification provides a method for creating a network card queue in an RDMA network, including:

[0005] Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information;

[0006] Creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information;

[0007] The at least two network card queues are associated with the network card queue pool to serve as the network card queues of the network card queue pool.

[0008] A second aspect of the embodiments of this specification provides a network card queue creation device in an RDMA network, including:

[0009] A receiving module is configured to receive a queue creation request, wherein the queue creation request carries queue address information and queue port information;

[0010] A creation module, configured to create a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information;

[0011] The association module is configured to associate the at least two network card queues with the network card queue pool as the network card queues of the network card queue pool.

[0012] According to a third aspect of the embodiments of this specification, a computing device is provided, including:

[0013] Memory and processor;

[0014] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions:

[0015] Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information;

[0016] Creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information;

[0017] The at least two network card queues are associated with the network card queue pool to serve as the network card queues of the network card queue pool.

[0018] In a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the network card queue creation method under the RDMA network are implemented.

[0019] The present specification provides a method for creating a network card queue under an RDMA network, comprising: receiving a queue creation request, wherein the queue creation request carries queue address information and queue port information; creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; associating the at least two network card queues with the network card queue pool as network card queues of the network card queue pool, thereby creating a network card queue pool and at least two network card queues associated with the network card queue pool based on the queue creation request, so that when data transmission times out, the network card queue performing data transmission is switched to another network card queue in the network card queue pool, thereby avoiding data transmission from a fault path corresponding to the network card queue with transmission timeout, and there is no need to recreate a new network card queue, thereby improving fault recovery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a processing flow chart of a method for creating a network card queue under an RDMA network provided by an embodiment of this specification;

[0021] Figure 2 It is a schematic diagram of a method for creating a network card queue in an RDMA network provided by an embodiment of this specification;

[0022] Figure 3 It is a processing flow chart of a method for creating a network card queue under an RDMA network applied to an RDMA network transmission scenario provided by an embodiment of this specification;

[0023] Figure 4 It is a schematic diagram of a network card queue creation device under an RDMA network provided by an embodiment of this specification;

[0024] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0025] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0026] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0028] First, the terms involved in one or more embodiments of this specification are explained.

[0029] RDMA (Remote Direct Memory Access): It was created to solve the delay of server-side data processing in network transmission. RDMA transmits data directly to the computer's storage area through the network, quickly moving data from one system to the remote system memory without any impact on the operating system, so that little computer processing function is not required. It eliminates the overhead of external memory copying and context switching, thereby freeing up memory bandwidth and CPU cycles to improve application system performance.

[0030] RoCE protocol: It is a network protocol that supports RDMA. There are two versions, RoCEv1 and RoCEv2. The main difference is that RoCEv1 is an RDMA protocol implemented based on the Ethernet link layer (the switch needs to support flow control technologies such as PFC (Priority-based Flow Control) to ensure reliable transmission at the physical layer), while RoCEv2 is implemented at the UDP (User Datagram Protocol) layer in the Ethernet TCP / IP protocol.

[0031] QP (Queue Pairs): A transmission queue that supports the RDMA protocol, specifically including a send queue (SentQueue, SQ) and a receive queue (Receive Queue, RQ), and SQ and RQ are usually created in pairs.

[0032] MMU (Memory Management Unit): Sometimes called paged memory management unit (PMMU). It is a computer hardware responsible for processing memory access requests from the central processing unit (CPU). Its functions include virtual address to physical address conversion (i.e. virtual memory management), memory protection, CPU cache control, and in simpler computer architectures, bus arbitration and memory bank switching.

[0033] In this specification, a method for creating a network card queue in an RDMA network is provided. One or more embodiments of this specification also involve a network card queue creation device in an RDMA network, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0034] An embodiment of a method for creating a network card queue in an RDMA network provided in this specification is as follows:

[0035] Figure 1A processing flow chart of a method for creating a network card queue in an RDMA network according to an embodiment of the present specification is shown, which specifically includes the following steps:

[0036] Step 102: Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information.

[0037] In actual applications, before the communicating parties transmit data, a network connection (ie, a network card queue) for communication needs to be established between the communicating parties. Therefore, it is necessary to first create a network card queue for communication between the communicating parties based on a queue creation request.

[0038] Among them, the queue creation request refers to a request for creating a network card queue for data transmission, and the queue creation request carries queue address information and queue port information, wherein the queue address information can be understood as the IP addresses of the communicating parties (i.e., the source IP address and the target IP address), and the queue port information can be understood as the port number of the communicating party. Since the port number of the local end (i.e., the source port number) can be determined separately during the creation process, the queue port information at least includes the port number of the communicating party (i.e., the target port number). In specific implementation, the IP addresses and port numbers of the communicating parties are the data required to create the network card queue.

[0039] Specifically, the network card queue refers to a transmission queue that supports the RDMA protocol (which can also be understood as an RDMA network connection). In actual applications, the sender schedules the queue elements in the network card queue to transmit data between the sender and the receiver. Furthermore, the network card queue includes queue pairs (QP) composed of a send queue (Send Queue, SQ) and a receive queue (ReceiveQueue, RQ), where SQ is used to send data to the communication peer, and RQ is used to receive data sent by the communication peer.

[0040] Step 104: Create a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information.

[0041] Among them, the network card queue pool, when the network card queue is a transmission queue that supports RDMA, can be understood as a virtual transmission queue (virtual queue pairs, VQP) provided by the upper-layer application, or it can be understood as an abstract entity used to encapsulate the network card queue that actually performs data transmission. That is, the network card queue pool does not directly perform data transmission, and the network card queue pool is not provided to the communication peer, but only to the upper-layer application of the local end. Therefore, for the upper-layer application of the local end, data transmission is performed through the network card queue pool, but in fact, it is the network card queue in the network card queue pool that performs data transmission.

[0042] Based on this, there are various ways to create a network card queue pool for creating a queue request queue according to the queue address information and the queue port information. Since the network card queue pool is not used for data transmission, the network card queue pool can be in the form of a data record or a data list. In addition, it can also be other data forms, which are not limited here.

[0043] In a specific implementation, in an optional implementation mode provided in the embodiment of this specification, the at least two network card queues are created in the following manner:

[0044] According to the preset port selection rules, determine the queue sending port information;

[0045] Update the queue port information according to the queue sending port information;

[0046] At least two network card queues are created based on the queue address information and the queue port information.

[0047] Specifically, the preset port selection rule may be to randomly select an unoccupied port number in a preset port interval, or to select a port number according to the size of the port number, etc. In addition, the port number may also be specified as the sending port information of the network card queue.

[0048] It should be noted that, when the communication counterpart (i.e., the receiving end) is determined, since the source IP address of the sending end, and the target IP address and target port number of the receiving end have been determined, different network card queues for communicating with the same receiving end can be created by configuring different source port numbers for the network card queues. That is, the network card queues created belong to the same network card queue pool. Except for the source port numbers, the other queue address information and queue port information are the same.

[0049] In actual applications, after creating a network card queue, a queue identifier that uniquely identifies the network card queue may also be created for the network card queue.

[0050] In the embodiment of the present specification, at least two network card queues are created by determining different source port numbers, thereby forming network card queues (ie, network connections) that back up each other, improving the efficiency of fault recovery, and improving the stability of data transmission.

[0051] Step 106: associate the at least two network card queues with the network card queue pool to serve as the network card queues of the network card queue pool.

[0052] Specifically, there are various ways to associate the at least two network card queues with the network card queue pool, such as adding a corresponding network card queue pool label to each network card queue, or recording the correspondence between the at least two network card queues and the network card queue pool, etc., which are not limited here.

[0053] In a specific implementation, in an optional implementation provided by an embodiment of this specification, associating the at least two network card queues with the network card queue pool as the network card queues of the network card queue pool is specifically implemented in the following manner:

[0054] Associating the at least two network card queues with the network card queue pool as network card queues of the network card queue pool;

[0055] According to a preset selection rule, the first network card queue is selected from the at least two network card queues.

[0056] Among them, the preset selection rule refers to the preset selection rule for the network card queue for data transmission. Specifically, the preset selection rule can be a random selection, or a selection according to the size of the queue identifier, etc., which is not limited here. In actual applications, the purpose of selecting the first network card queue is to use the first network card queue as the main network card queue, that is, if the network port network card queue in the network card queue pool is needed to transmit data, the first network card queue is used for data transmission first, and other network card queues in the network card queue pool are used as backup network card queues in case the first network card queue fails to transmit data.

[0057] In specific implementation, after selecting the first network card queue, the first network card queue can be marked, or the queue identifier of the first network card queue can be recorded, so that in the subsequent process of data transmission through the network card queues in the network card queue pool, the first network card queue can be directly determined from the network card queue pool.

[0058] In the embodiments of the present specification, by pre-selecting the first network card queue from the network card queues in the network card queue pool for data transmission, and using other network card queues in the network card queue pool as backup network card queues, it is avoided to determine different network card queues for data transmission before each data transmission, thereby ensuring the stability of data transmission, and using other network card queues as backup network card queues for the first network card queue, thereby greatly avoiding long-term interruptions in data transmission.

[0059] Since the purpose of creating a network card queue is to perform data transmission, in an optional implementation manner provided by the embodiment of this specification, after creating a network card queue pool and creating a network card queue of the network card queue pool, the following is further included:

[0060] A transfer request for target data is received.

[0061] Determine a first network card queue from the network card queues in the network card queue pool according to the transmission request, and transmit the target data through the first network card queue;

[0062] When no reception response for the target data is received through the first network card queue within a preset time, the network card queue corresponding to the transmission request is modified to a target network card queue, and the target data is transmitted through the target network card queue, wherein the target network card queue is a network card queue in the network card queue pool except the first network card queue.

[0063] Among them, the target data can be understood as the data to be transmitted; the transmission request includes a data read request or a data write request; specifically, the data read request can be understood as a request to read data in the receiving end; the data write request can be understood as a request to write data to the receiving end.

[0064] In practical applications, the transmission request may carry data information of the target data. Specifically, the data information includes: the storage address of the target data, and / or the data identifier of the target data, etc. Then, the target data to be transmitted can be determined based on this data information.

[0065] In a specific implementation, in an optional implementation mode provided in an embodiment of this specification, the determining of the first network card queue from the network card queues in the network card queue pool according to the transmission request is specifically implemented in the following manner:

[0066] Determine, according to the queue information carried in the transmission request, a network card queue pool corresponding to the queue information;

[0067] The first network card queue is determined from the network card queues in the network card queue pool.

[0068] Specifically, the transmission request carries queue information of the network card queue, such as the IP address and port number of the communication end, or the identifier of the network card queue pool and other information. Then, based on the carried queue information, a network card queue pool can be uniquely determined, wherein the network card queue pool includes at least two network card queues, that is, at least two network card queues are associated with the network card queue pool as the network card queues in the network card queue pool.

[0069] Furthermore, after determining the network card queue pool, the first network card queue in the network card queue pool is determined. Specifically, the first network card queue can be determined from the network card queues in the network card queue pool based on the transmission label pre-added for the first network card queue (used to identify the main network card queue in the network card queue pool). There is no limitation here.

[0070] In the embodiment of the present specification, a network card queue pool is first determined according to a transmission request, and then a first network card queue is determined from the network card queue pool, thereby selecting a network card queue for data transmission based on the network card queue pool, so that when the first network card queue is disconnected, a backup network card queue for data transmission can be determined based on the network card queue pool.

[0071] In actual applications, if a receiving response to the target data is not received within the preset time, it indicates that the transmission of the target data has failed, and the network path corresponding to the first network card queue may fail, then data is transmitted through other network card queues; if a receiving response to the target data is received within the preset time, it indicates that the transmission of the target data is successful, then no operation is performed, wherein the receiving response can be an acknowledgment character (ACK) or other types of custom acknowledgment messages used to indicate that the receiving end has received the target data, which is not limited here.

[0072] In specific implementation, there are various ways to modify the network card queue corresponding to the transmission request to the target network card queue. It can be to modify the label or data used to mark the first network card queue as the main network card queue for data transmission, such as removing the transmission label corresponding to the first network card queue (used to mark the main network card queue for data transmission) and adding the transmission label to the target network card queue, or updating the data record of marking the first network card queue as the main network card queue to the data record of marking the target network card queue as the main network card queue, etc., without limitation here.

[0073] It should be noted that the data of the same network card queue (such as QP) will pass through several continuous fixed switch paths on the network, that is, the network path (represented as Path<S1..Sn> ) reaches the receiving end (the peer node), that is, if the path Path<S1..Sn> When a network failure such as port black hole, MMU blocking, continuous packet loss or switch unavailability occurs in one of the intermediate switches Si, the data in the same network card queue (such as QP) will not be able to reach the remote end until the path Path<S1..Sn> After the switch Si in the network resumes service, the network card queue (such as QP) can continue to be used in the network path Path<S1..Sn> The switch failure recovery usually takes minutes. At this time, the original network card queue (such as QP) will be disconnected due to data ACK timeout. The two communicating parties have to re-establish the network card queue (such as QP) connection. At this time, if the re-established message continues to pass through the fault path Path<S1..Sn> , a new round of timeout will cause the connection to fail, and the next round of reconnection will begin. After the connection is successfully established, the network card queue (such as QP) used for communication will still send data to the upstream switch because the network card randomly selects a port from the two network ports as a new fixed path. At this time, there is still a certain probability that it will continue to go through the faulty path Path<S1...Sn> , and then enter the process of timeout disconnection and reconnection. The time cost of successful connection is usually in the second level, the connection timeout is usually in the ten second level, and the data timeout is usually in the hundred millisecond level. Repeatedly entering the fault path will experience a long connection waiting and timeout retry, which will cause significant service unavailability problems for upper-layer applications. Therefore, when the upper-layer application encounters a switch failure when using a network card queue (such as QP) to communicate with the peer node, it will have a significant impact on the upper-layer service quality.

[0074] The switch in the network path will perform a hash operation based on the five-tuple (source IP address, source port, destination IP address, destination port and transport layer protocol) of the transmission connection (i.e., the network card queue) to determine the next-hop switch of the switch. Different network card queues correspond to different source port information, and each network card queue corresponds to a different network path. Therefore, when the network path corresponding to the first network card queue fails, the network path can be replaced by switching the network card queue to avoid the faulty network device and smoothly transmit data.

[0075] Based on the first network card queue determined from the network card queue pool, the network card queue corresponding to the transmission request is modified to be the target network card queue, which is specifically implemented in the following manner:

[0076] A target network card queue is determined from the network card queues in the network card queue pool, and the network card queue corresponding to the transmission request is modified to the target network card queue.

[0077] In actual applications, there are various ways to determine the target network card queue from the network card queues in the network card queue pool. You can randomly determine a network card queue from the network card queues included in the network card queue pool except the first network card queue as the target network card queue. In addition, you can also determine the network card queue corresponding to the same network port in the network card queue pool as the target network card queue based on the network port corresponding to the first network card queue. There is no restriction here.

[0078] Among them, the network port can be understood as the external connection interface of the network device (such as a network card). Each network port has a corresponding network port identifier (such as a network port number), such as 0, 1, or port0, port1, etc. In specific implementation, the network card queue and the network port have a corresponding relationship. When data is transmitted through a network card queue, the transmitted data will be sent from the network port corresponding to the network card queue to the receiving end, wherein the network port identifier refers to an identifier that can uniquely identify the network port of a network card.

[0079] In the embodiment of the present specification, a target network card queue is determined from a network card queue pool, thereby avoiding re-creating a new network card queue and improving the efficiency of resuming data transmission.

[0080] like Figure 2 As shown in the figure, the sender and the receiver communicate with each other. The network cards of the sender and the receiver have two network ports, and the network port identifiers of the two network ports are Port0 and Port1 respectively. The network card queue pool (i.e., virtual network card queue VQP) created by the sender contains 4 QPs, namely QP1, QP2, QP3, and QP4, wherein QP1 is the first network card queue (i.e., the main network card queue) for data transmission with the receiver, and the network ports corresponding to QP1 and QP3 are network port Port0, and the network ports corresponding to QP2 and QP4 are network port Port1. Among them, the network port Port0 of the sender is connected to a switch 1 (such as an access layer switch), and the switch 1 is connected to Eight switches are connected, namely switch 11, switch 12...switch 18, and the network port Port1 of the sending end is connected to a switch 2 (such as an access layer switch), and switch 2 is also connected to eight switches, namely switch 21, switch 22...switch 28, which are connected to switch 3 or switch 4 respectively, and switch 3 is connected to the network port Port0 of the receiving end, and switch 4 is connected to the network port Port1 of the receiving end. In the case of a failure of switch 11, the network card queue for data transmission between the sending end and the receiving end is changed from QP1 to QP2, that is, QP2 is used as the main network card queue, and data is transmitted with the receiving end through QP2.

[0081] Furthermore, since there is a backup network card queue in the network card queue pool, in an optional implementation manner provided by the embodiment of this specification, the network card queue creation method under the RDMA network also includes:

[0082] Sending a heartbeat signal through any network card queue in the network card queue pool except the first network card queue at a preset time interval;

[0083] If no reception response to the heartbeat signal is received through any network card queue within a preset time period, any network card queue is deleted.

[0084] The preset time interval refers to the preset time interval for sending heartbeat signals, such as 10 seconds, 2 seconds, etc., which is not limited here. The heartbeat signal refers to sending a very small data packet, such as 64 bytes, to the other party of the interconnection at regular intervals. Through the reply of the other party, it can be judged whether the communication link (i.e., the network card queue) between the two interconnected parties has been disconnected; and any network card queue in the network card queue pool except the first network card queue can be understood as a backup network card queue (backup connection) in the network card queue pool. In specific implementation, these backup network card queues can be combined into a backup network card queue set for unified management of the backup network card queues.

[0085] Specifically, the preset duration refers to the preset maximum duration for receiving a receiving response. The receiving response can be an Acknowledge character (ACK) or other types of self-defined confirmation messages, which are used to indicate that the receiving end has received the heartbeat information, and are not limited here.

[0086] Furthermore, if no reception response to the heartbeat signal is received within a preset time period, indicating that the transmission of the heartbeat signal has failed, it is possible that a transmission path corresponding to any of the network card queues has failed, that is, any of the network card queues is unavailable, and any of the network card queues is deleted; if a reception response to the heartbeat signal is received within the preset time period, indicating that the heartbeat signal is successfully transmitted, that is, the transmission path between the sending end and the receiving end (that is, any of the network card queues) is transmitting normally, and no operation is performed.

[0087] It should be noted that the transmission path can be understood as the network path through which data is transmitted, such as the network path is Path<S1,S2……Sn> , where S1, S2, and Sn represent switches from the sending end to the receiving end during data transmission. By sending heartbeat signals through the network card queue (backup connection) in the network card queue pool, the network path Path through which the backup connection passes can be detected.<S1,S2……Sn> Whether a fault occurs.

[0088] In the embodiment of this specification, a heartbeat signal is sent through a backup network card queue in a network card queue pool, and it is determined whether the backup network card queue has received a response to the heartbeat signal to determine whether the backup network card queue (i.e., the backup network connection) between the communicating parties is disconnected. If disconnected, the disconnected network card queue is deleted to ensure that the backup network card queues in the network card queue pool are all available.

[0089] After determining the target network card queue, in a first optional implementation manner provided by the embodiment of this specification, after modifying the network card queue corresponding to the transmission request to the target network card queue, the method further includes:

[0090] Deleting the first network card queue;

[0091] Creating a second network card queue based on the queue information corresponding to the network card queue pool;

[0092] The second network card queue is associated with the network card queue pool as the network card queue of the network card queue pool.

[0093] In actual applications, if the first network card queue fails to transmit data, it may be due to a failure of a switch in the network path corresponding to the first network card queue. In this case, an available target network card queue is determined from the network card queue pool to transmit data through the target network card queue. The unavailable first network card queue can be directly deleted. It should be noted that in the process of deleting the first network card queue, the association between the first network card queue and the network card queue pool will also be deleted.

[0094] A new network card queue (ie, the second network card queue) is created to replace the deleted first network card queue.

[0095] In the embodiment of this specification, after the data transmission network card queue is modified to the target network card queue, the first network card queue is deleted, and the network card queue pool is expanded by creating a second network card queue, thereby ensuring the number of network card queues used as backup in the network card queue pool and increasing the stability of data transmission.

[0096] In a second optional implementation manner provided by the embodiment of this specification, after the network card queue corresponding to the transmission request is modified to be a target network card queue, the method further includes:

[0097] Deleting the association between the first network card queue and the network card queue pool;

[0098] When a recovery instruction for the first network card queue is received, the first network card queue is associated with the network card queue pool as a network card queue of the network card queue pool.

[0099] Specifically, deleting the association between the first network card queue and the network card queue pool can be understood as removing the first network card queue from the network card queue pool, so that during data transmission, the first network card queue will no longer be selected from the network card queue pool.

[0100] The recovery instruction may be understood as a recovery completion instruction for the fault path corresponding to the first network card queue. When the recovery instruction is received, the first network card queue is added to the network card queue pool to become a backup network card queue in the network card queue pool.

[0101] It should be noted that in the event of a switch failure, more than one NIC queue may become unavailable. The available NIC queues will be restored and added to the NIC queue pool, ensuring the number of NIC queues in the NIC queue pool as backup and increasing the stability of data transmission.

[0102] In actual applications, since the network card queue needs to pass through the physical network port during data transmission, in an optional implementation manner provided by the embodiment of this specification, after creating at least two network card queues, the method further includes:

[0103] Allocate corresponding network ports to the at least two network card queues according to a preset network port allocation rule;

[0104] Correspondingly, the step of transmitting the target data through the first network card queue includes:

[0105] Transmitting the target data through the first network card queue and from the network port corresponding to the first network card queue;

[0106] Correspondingly, the step of transmitting the target data through the target network card queue includes:

[0107] The target data is transmitted through the target network card queue from the network port corresponding to the target network card queue.

[0108] Among them, the network port allocation rule can be to allocate network ports in sequence in a network port cycle manner. For example, there are two network ports: network port Port0 and network port Port1. Network port Port0 is allocated to the first created network card queue, and network port Port1 is allocated to the second created network card queue. When allocating network ports to the third network card queue, network port Port0 is allocated again, and so on. In addition, network ports can also be allocated proportionally, or network ports can be designated for allocation, etc., which are not limited here.

[0109] In practical applications, different network ports (network port numbers are, for example, 1, 0, 1, 0, 1...) can be assigned to each network card queue (such as QP), that is, two network card queues (such as QP) with adjacent numbers in the network card queue pool (which can be understood as queue identifiers) use network ports with different numbers, ensuring that the two network card queues (such as QP) pass through different upstream switches and thus through different network paths.<S1..Sn> ,In this case, if a network path fails, the network path can be switched by switching ,network card queues, thus avoiding repeatedly entering the ,faulty path and thus causing long periods of unsuccessful data transmission.

[0110] Furthermore, in an optional implementation manner provided by an embodiment of this specification, the data transmission of the target data through the first network card queue includes:

[0111] Transmitting the target data through the first network card queue and from the network port corresponding to the first network card queue;

[0112] Correspondingly, the step of transmitting the target data through the target network card queue includes:

[0113] The target data is transmitted through the target network card queue from the network port corresponding to the target network card queue;

[0114] Correspondingly, creating a second network card queue based on the queue information corresponding to the network card queue pool includes:

[0115] Creating a second network card queue based on the queue information corresponding to the network card queue pool;

[0116] The network port corresponding to the first network card queue is allocated to the second network card queue as the network port corresponding to the second network card queue.

[0117] Specifically, transmitting the target data from the network port corresponding to the first network card queue can be understood as sending the target data from the network port corresponding to the first network card queue to the sending end, that is, when determining which network card queue to use for data transmission, it is also determined from which network card queue the network port corresponding to the data is sent.

[0118] In actual applications, after creating the second network card queue, the network port corresponding to the first network card queue is allocated to the newly created second network card queue to maintain the balance of the network ports corresponding to the network card queues in the network card queue pool, thereby promoting traffic balance of each network port at the sending end.

[0119] In summary, the present specification provides a method for creating a network card queue under an RDMA network, comprising: receiving a queue creation request, wherein the queue creation request carries queue address information and queue port information; creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; associating the at least two network card queues with the network card queue pool as the network card queue of the network card queue pool, thereby realizing the creation of a network card queue pool and at least two network card queues associated with the network card queue pool based on the queue creation request, so that when data transmission times out, the network card queue performing data transmission is switched to another network card queue in the network card queue pool, thereby avoiding data transmission from the fault path corresponding to the network card queue with transmission timeout, and there is no need to recreate a new network card queue, thereby improving fault recovery efficiency.

[0120] The following combination Figure 3 , taking the application of a network card queue creation method under an RDMA network provided in this specification in an RDMA network transmission scenario as an example, the network card queue creation method under the RDMA network is further described. Among them, Figure 3 A processing flow chart of a method for creating a network card queue in an RDMA network applied to an RDMA network transmission scenario provided by an embodiment of the present specification is shown, which specifically includes the following steps:

[0121] Step 302: Receive an RDMA queue creation request, wherein the RDMA queue creation request carries queue address information and queue port information.

[0122] Specifically, the RDMA queue creation request refers to a creation request for requesting to create an RDMA network card queue, wherein the RDMA network card queue refers to a transmission queue that supports the RDMA protocol.

[0123] In actual applications, data center networks can use the RoCE protocol to provide data transmission for RDMA networks. Currently, data center networks mainly use the RoCEv2 protocol in the RoCE protocol to provide high-performance RDMA network transmission services to the upper layer. For upper-layer applications, a QP (an RDMA network connection) is usually used to communicate data with the receiving end, and it is usually a long connection, and the application will not actively disconnect.

[0124] Step 304: Create a network card queue pool corresponding to the RDMA queue creation request according to the queue address information and the queue port information.

[0125] Step 306: Create at least two RDMA network card queues based on the queue address information and the queue port information.

[0126] Step 308: associate the at least two RDMA network card queues with the network card queue pool as RDMA network card queues of the network card queue pool.

[0127] Step 310: Select a first network card queue from the at least two RDMA network card queues according to a preset selection rule.

[0128] Specifically, the backup RDMA network card queues in the network card queue pool other than the first network card queue need to periodically perform connection tests (heartbeat keep-alive) to ensure that the RDMA network card queues in the network card queue pool are available, which is specifically implemented in the following way:

[0129] Sending a heartbeat signal through any network card queue in the network card queue pool except the first network card queue at a preset time interval;

[0130] If no reception response to the heartbeat signal is received through any network card queue within a preset time period, any network card queue is deleted.

[0131] Step 312: Receive a transmission request for target data.

[0132] Step 314: Determine the network card queue pool corresponding to the queue information according to the queue information carried in the transmission request.

[0133] Step 316: determine the first network card queue from the network card queues in the network card queue pool, and perform data transmission on the target data through the first network card queue.

[0134] Step 318: If no reception response for the target data is received through the first network card queue within a preset time, a target network card queue is determined from the network card queues in the network card queue pool, and the network card queue corresponding to the transmission request is modified to the target network card queue.

[0135] Step 320: Transmit the target data through the target network card queue.

[0136] Step 322: Delete the first network card queue.

[0137] Step 324: Create a second network card queue based on the queue information corresponding to the network card queue pool.

[0138] Step 326: associate the second network card queue with the network card queue pool as the RDMA network card queue of the network card queue pool.

[0139] In summary, the present specification provides a method for creating a network card queue under an RDMA network, comprising: receiving a queue creation request, wherein the queue creation request carries queue address information and queue port information; creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; associating the at least two network card queues with the network card queue pool as the network card queue of the network card queue pool, thereby realizing the creation of a network card queue pool and at least two network card queues associated with the network card queue pool based on the queue creation request, so that when data transmission times out, the network card queue performing data transmission is switched to another network card queue in the network card queue pool, thereby avoiding data transmission from the fault path corresponding to the network card queue with transmission timeout, and there is no need to recreate a new network card queue, thereby improving fault recovery efficiency.

[0140] An embodiment of a network card queue creation device under an RDMA network provided in this specification is as follows:

[0141] Corresponding to the above method embodiment, this specification also provides an embodiment of a network card queue creation device under an RDMA network, Figure 4 FIG. 1 is a schematic diagram of a network card queue creation device under an RDMA network provided by an embodiment of the present specification. Figure 4 As shown, the device comprises:

[0142] The receiving module 402 is configured to receive a queue creation request, wherein the queue creation request carries queue address information and queue port information;

[0143] A creation module 404 is configured to create a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information;

[0144] The association module 406 is configured to associate the at least two network card queues with the network card queue pool as the network card queues of the network card queue pool.

[0145] Optionally, the network card queue creation device under the RDMA network further includes:

[0146] A request receiving module, configured to receive a transmission request for target data;

[0147] a transmission module, configured to determine a first network card queue from the network card queues in the network card queue pool according to the transmission request, and transmit the target data through the first network card queue;

[0148] The modification module is configured to modify the network card queue corresponding to the transmission request to a target network card queue if no reception response for the target data is received through the first network card queue within a preset time period, and to transmit the target data through the target network card queue, wherein the target network card queue is a network card queue in the network card queue pool except the first network card queue.

[0149] Optionally, the transmission module is further configured to:

[0150] Determine, according to the queue information carried in the transmission request, a network card queue pool corresponding to the queue information;

[0151] Determine the first network card queue from the network card queues in the network card queue pool;

[0152] Accordingly, the modification module is further configured as follows:

[0153] A target network card queue is determined from the network card queues in the network card queue pool, and the network card queue corresponding to the transmission request is modified to the target network card queue.

[0154] Optionally, the association module 406 is further configured to:

[0155] Associating the at least two network card queues with the network card queue pool as network card queues of the network card queue pool;

[0156] According to a preset selection rule, the first network card queue is selected from the at least two network card queues.

[0157] Optionally, the network card queue creation device in an RDMA network further includes:

[0158] A sending module, configured to send a heartbeat signal through any network card queue in the network card queue pool except the first network card queue at a preset time interval;

[0159] The first deleting module is configured to delete any network card queue if no reception response to the heartbeat signal is received through any network card queue within a preset time period.

[0160] Optionally, the network card queue creation device under the RDMA network further includes:

[0161] A second deleting module is configured to delete the first network card queue;

[0162] A queue creation module is configured to create a second network card queue based on the queue information corresponding to the network card queue pool;

[0163] The second associating module is configured to associate the second network card queue with the network card queue pool as the network card queue of the network card queue pool.

[0164] Optionally, the network card queue creation device under the RDMA network further includes:

[0165] a relationship deletion module, configured to delete the association relationship between the first network card queue and the network card queue pool;

[0166] The third associating module is configured to associate the first network card queue with the network card queue pool as a network card queue of the network card queue pool when receiving a recovery instruction for the first network card queue.

[0167] Optionally, the creation module 404 is further configured to:

[0168] According to the preset port selection rules, determine the queue sending port information;

[0169] Update the queue port information according to the queue sending port information;

[0170] At least two network card queues are created based on the queue address information and the queue port information.

[0171] Optionally, the network card queue creation device under the RDMA network further includes:

[0172] An allocation module, configured to allocate corresponding network ports to the at least two network card queues according to a preset network port allocation rule;

[0173] Accordingly, the transmission module is further configured as follows:

[0174] Transmitting the target data through the first network card queue and from the network port corresponding to the first network card queue;

[0175] Accordingly, the modification module is further configured as follows:

[0176] The target data is transmitted through the target network card queue from the network port corresponding to the target network card queue.

[0177] Optionally, the transmission module is further configured to:

[0178] Transmitting the target data through the first network card queue and from the network port corresponding to the first network card queue;

[0179] Accordingly, the modification module is further configured as follows:

[0180] The target data is transmitted through the target network card queue from the network port corresponding to the target network card queue;

[0181] Accordingly, the queue creation module is further configured as follows:

[0182] Creating a second network card queue based on the queue information corresponding to the network card queue pool;

[0183] The network port corresponding to the first network card queue is allocated to the second network card queue as the network port corresponding to the second network card queue.

[0184] In summary, the present specification provides a network card queue creation device under an RDMA network, comprising: receiving a queue creation request, wherein the queue creation request carries queue address information and queue port information; creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; associating the at least two network card queues with the network card queue pool as the network card queue of the network card queue pool, thereby realizing the creation of a network card queue pool and at least two network card queues associated with the network card queue pool based on the queue creation request, so that when data transmission times out, the network card queue performing data transmission is switched to another network card queue in the network card queue pool, thereby avoiding data transmission from the fault path corresponding to the first network card queue, and there is no need to recreate a new network card queue, thereby improving fault recovery efficiency.

[0185] The above is a schematic scheme of a network card queue creation device under an RDMA network of this embodiment. It should be noted that the technical scheme of the network card queue creation device under an RDMA network and the technical scheme of the network card queue creation method under an RDMA network belong to the same concept, and the details not described in detail in the technical scheme of the network card queue creation device under an RDMA network can be referred to the description of the technical scheme of the network card queue creation method under an RDMA network.

[0186] An embodiment of a computing device provided in this specification is as follows:

[0187] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

[0188] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0189] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0190] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 500 may also be a mobile or stationary server.

[0191] The processor 520 is used to execute the following computer executable instructions:

[0192] Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information;

[0193] Creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information;

[0194] The at least two network card queues are associated with the network card queue pool to serve as the network card queues of the network card queue pool.

[0195] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the network card queue creation method under the above RDMA network belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the network card queue creation method under the above RDMA network.

[0196] An embodiment of a computer-readable storage medium provided in this specification is as follows:

[0197] This specification provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, are used to:

[0198] Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information;

[0199] Creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information;

[0200] The at least two network card queues are associated with the network card queue pool to serve as the network card queues of the network card queue pool.

[0201] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the network card queue creation method under the above RDMA network belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the network card queue creation method under the above RDMA network.

[0202] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0203] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0204] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0205] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0206] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for creating a network card queue in an RDMA network, comprising: Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information; Creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; The at least two network card queues are associated with the network card queue pool as the network card queues of the network card queue pool, the first network card queue is randomly selected from the network card queue pool, or is selected according to the size of the queue identifier; the network card queues other than the first network card queue in the network card queue pool are backup network card queues, and when the first network card queue used for data transmission in the network card queue fails to transmit data, the first network card queue and the association relationship between the first network card queue and the network card queue pool are deleted, and a target network card queue is selected from the network card queue pool; the transmission tag of the first network card queue is removed, and a transmission tag is added to the target network card queue, and the target network card queue is changed to the first network card queue.

2. The method for creating a network card queue under an RDMA network according to claim 1, further comprising: receiving a transmission request for target data; Determine a first network card queue from the network card queues in the network card queue pool according to the transmission request, and transmit the target data through the first network card queue; When no reception response for the target data is received through the first network card queue within a preset time, the network card queue corresponding to the transmission request is modified to a target network card queue, and the target data is transmitted through the target network card queue, wherein the target network card queue is a network card queue in the network card queue pool except the first network card queue.

3. The method for creating a network card queue in an RDMA network according to claim 2, wherein determining the first network card queue from the network card queues in the network card queue pool according to the transmission request comprises: Determine, according to the queue information carried in the transmission request, a network card queue pool corresponding to the queue information; Determine the first network card queue from the network card queues in the network card queue pool; Correspondingly, modifying the network card queue corresponding to the transmission request to a target network card queue includes: A target network card queue is determined from the network card queues in the network card queue pool, and the network card queue corresponding to the transmission request is modified to the target network card queue.

4. The method for creating a network card queue under an RDMA network according to claim 1, wherein the at least two network card queues are associated with the network card queue pool as network card queues of the network card queue pool, comprising: Associating the at least two network card queues with the network card queue pool as network card queues of the network card queue pool; According to a preset selection rule, the first network card queue is selected from the at least two network card queues.

5. The method for creating a network card queue under an RDMA network according to claim 2, further comprising: Sending a heartbeat signal through any network card queue in the network card queue pool except the first network card queue at a preset time interval; If no reception response to the heartbeat signal is received through any network card queue within a preset time period, any network card queue is deleted.

6. The method for creating a network card queue in an RDMA network according to any one of claims 2 to 5, after modifying the network card queue corresponding to the transmission request to be a target network card queue, further comprising: Deleting the first network card queue; Creating a second network card queue based on the queue information corresponding to the network card queue pool; The second network card queue is associated with the network card queue pool as the network card queue of the network card queue pool.

7. The method for creating a network card queue in an RDMA network according to any one of claims 2 to 5, after modifying the network card queue corresponding to the transmission request to be a target network card queue, further comprising: Deleting the association between the first network card queue and the network card queue pool; When a recovery instruction for the first network card queue is received, the first network card queue is associated with the network card queue pool as a network card queue of the network card queue pool.

8. According to the method for creating a network card queue in an RDMA network according to claim 1, the at least two network card queues are created in the following manner: According to the preset port selection rules, determine the queue sending port information; Update the queue port information according to the queue sending port information; At least two network card queues are created based on the queue address information and the queue port information.

9. The method for creating a network card queue in an RDMA network according to claim 2, after creating at least two network card queues, further comprising: Allocate corresponding network ports to the at least two network card queues according to a preset network port allocation rule; Correspondingly, the step of transmitting the target data through the first network card queue includes: Transmitting the target data through the first network card queue and from the network port corresponding to the first network card queue; Correspondingly, the step of transmitting the target data through the target network card queue includes: The target data is transmitted through the target network card queue from the network port corresponding to the target network card queue.

10. The method for creating a network card queue in an RDMA network according to claim 6, wherein the step of transmitting the target data through the first network card queue comprises: Transmitting the target data through the first network card queue and from the network port corresponding to the first network card queue; Correspondingly, the step of transmitting the target data through the target network card queue includes: The target data is transmitted through the target network card queue from the network port corresponding to the target network card queue; Correspondingly, creating a second network card queue based on the queue information corresponding to the network card queue pool includes: Creating a second network card queue based on the queue information corresponding to the network card queue pool; The network port corresponding to the first network card queue is allocated to the second network card queue as the network port corresponding to the second network card queue.

11. A network card queue creation device under an RDMA network, comprising: A receiving module is configured to receive a queue creation request, wherein the queue creation request carries queue address information and queue port information; A creation module, configured to create a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; The association module is configured to associate the at least two network card queues with the network card queue pool, and as the network card queue of the network card queue pool, the first network card queue is randomly selected from the network card queue pool, or selected according to the size of the queue identifier; the network card queues other than the first network card queue in the network card queue pool are backup network card queues, and when the first network card queue used for data transmission in the network card queue fails to transmit data, the first network card queue and the association relationship between the first network card queue and the network card queue pool are deleted, and a target network card queue is selected from the network card queue pool; the transmission tag of the first network card queue is removed, and a transmission tag is added to the target network card queue, and the target network card queue is changed to the first network card queue.

12. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the following method: Receive a queue creation request, wherein the queue creation request carries queue address information and queue port information; Creating a network card queue pool and at least two network card queues corresponding to the queue creation request according to the queue address information and the queue port information; Associating the at least two network card queues with the network card queue pool as network card queues of the network card queue pool, wherein the first network card queue is randomly selected from the network card queue pool or selected according to the size of the queue identifier; the network card queues other than the first network card queue in the network card queue pool are backup network card queues, and when the first network card queue used for data transmission in the network card queue fails to transmit data, deleting the first network card queue and the association relationship between the first network card queue and the network card queue pool, and selecting a target network card queue in the network card queue pool; The transmission tag of the first network card queue is removed, and a transmission tag is added to the target network card queue, and the target network card queue is changed to the first network card queue.

13. A computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the method for creating a network card queue in an RDMA network as described in any one of claims 1 to 10.