# US 2024/0187482 A1 · Device and method for remote direct memory access

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0187482 A1
- Document ID: US20240187482A1
- Status: Published application
- Kind: A1
- Application number: 18/439,289
- Filed: 2024-02-12
- Published: 2024-06-06
- Earliest claimed: 2021-08-12
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Ben-Shahar Belkar; Reuven Cohen; David Ganor; Amit Geron
- Web page: https://patentgrep.com/patent/US20240187482A1

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A transmitting device and a receiving device are provided. The transmitting device is configured to: maintain a send queue, wherein the send queue comprises one or more WQEs, each WQE comprising destination information of the WQE; assign each of the one or more WQEs with an XID, and translate each WQE into a respective packet, wherein each respective packet comprises the XID of the corresponding WQE and is associated with a PSN; transmit each packet to the receiving device of the destination information of the WQE; and receive a notification message indicating whether the transmitted packet is received, for each transmitted packet from the receiving device; determine whether or not to generate a completion for each WQE, based on the notification message, on information carried in the WQE and information held by the transmitting device.

## Claims

### Claim 1

A transmitting device for Remote Direct Memory Access (RDMA), wherein the transmitting device comprises:
a memory configured to store instructions; and
a processor coupled to the memory and configured to execute the instructions to cause the transmitting device to:
maintain a send queue, wherein the send queue comprises one or more working queue elements (WQEs), wherein each WQE comprises destination information of the WQE, wherein the destination information comprises at least one of: an address of a receiving device, an identifier of the receiving device, and an identifier of a target application of the receiving device;
assign each of the one or more WQEs with a transaction identifier (XID), and translate each WQE into a respective packet, wherein each respective packet comprises the XID of the corresponding WQE and is associated with a packet sequence number (PSN);
transmit each packet to the receiving device of the destination information of the WQE;
receive a notification message for each transmitted packet from the receiving device, wherein the notification message indicates whether the transmitted packet is received at the receiving device; and
based on the notification message, determine whether or not to generate a completion for each on information carried in the WQE and information held by the transmitting device.

### Claim 2 (depends on 1)

The transmitting device according to claim 1, wherein each WQE carries a message that is limited to fit in a single network maximum transmission unit.

### Claim 3 (depends on 1)

The transmitting device according to claim 1, wherein based on the WQE corresponding to a respective packet comprising a Write operation request or a Send operation request, and based on the notification message indicating that the respective packet is received at the receiving device, the processor is further configured to execute the instructions to cause the transmitting device to:
determine that the WQE is completed successfully.

### Claim 4 (depends on 1)

The transmitting device according to claim 1, wherein based on the WQE corresponding to a respective packet comprising a Read operation request or an Atomic operation request, the processor is further configured to execute the instructions to cause the transmitting device to:
receive, as an Atomic operation response or a Read operation response to the Atomic operation request or the Read operation request, respectively, a response packet indicating that the respective packet has been processed by the receiving device, wherein the response packet comprises an XID of a response WQE and the XID of the WQE that comprises the Read operation request or the Atomic operation request; and
determine that the WQE is completed successfully.

### Claim 5 (depends on 1)

The transmitting device according to claim 1, wherein the processor is further configured to execute the instructions to cause the transmitting device to:
obtain a maximum number of acceptable receive timeout that is associated with the receiving device; and
determine that the WQE corresponding to the respective packet is completed with error, based on a number of receive timeouts exceeding the maximum number of acceptable receive timeout.

### Claim 6 (depends on 1)

The transmitting device according to claim 1, wherein the notification message for each transmitted packet comprises a receiver not ready (RNR) indication, wherein the RNR indication indicates that the receiving device cannot process the transmitted packet, wherein the processor is further configured to execute the instructions to cause the transmitting device to:
determine an XID comprised in the transmitted packet; and
postpone transmitting another packet comprising the same XID before a timeout value expires.

### Claim 7 (depends on 6)

The transmitting device according to claim 6, wherein the WQE further includes a parameter indicating a maximum number of acceptable RNR indications, wherein the processor is further configured to execute the instructions to cause the transmitting device to
receive a further notification message that comprises an RNR indication for the retransmitted packet; and
determine that the WQE corresponding to the retransmitted packet is completed with error, based on a number of received RNR indications exceeding the maximum number of acceptable RNR indications.

### Claim 8 (depends on 6)

The transmitting device according to claim 6, wherein the notification message comprises a plurality of RNR indications, each RNR indication indicating that the receiving device cannot process a particular transmitted packet.

### Claim 9 (depends on 6)

The transmitting device according to claim 6, wherein the RNR indication further indicates the timeout value.

### Claim 10 (depends on 8)

The transmitting device according to claim 8, wherein each RNR indication further indicates that the receiving device cannot process a particular transmitted packet within a particular timeout value.

### Claim 11 (depends on 10)

The transmitting device according to claim 10, configured to:
manage WQEs corresponding to transmitted packets for which an RNR indication is received, based on the timeout values indicated by the RNR indications.

### Claim 12 (depends on 11)

The transmitting device according to claim 11, wherein a number of supported timeout values are configurable and agreed upon all communication devices.

### Claim 13 (depends on 1)

The transmitting device according to claim 1, wherein the one or more WQEs of the send queue comprises a first WQE and a second WQE, wherein the first WQE and the second WQE comprise different destination information.

### Claim 14 (depends on 1)

The transmitting device according to claim 1, wherein the one or more WQEs of the send queue comprises a set of WQEs comprising the same destination information, and wherein the processor is further configured to execute the instructions to cause the transmitting device to:
group the packets corresponding to the set of WQEs into a stream of packets; and
transmit the stream of packets to the receiving device of the set of WQEs.

### Claim 15 (depends on 1)

The transmitting device according to claim 1, wherein each WQE is further associated with a priority for being transmitted from the transmitting device.

### Claim 16 (depends on 15)

The transmitting device according to claim 15, configured to:
obtain the one or more WQEs from at least one upper layer process (ULP).

### Claim 17 (depends on 16)

The transmitting device according to claim 16, wherein the set of WQEs comprising the same destination information are obtained from different ULPs.

### Claim 18 (depends on 16)

The transmitting device according to claim 16, wherein XIDs for WQEs obtained from different ULPs are assigned from a same XID pool, and PSNs for packets associated with the WQEs obtained from different ULPs are assigned from a same PSN pool.

### Claim 19 (depends on 16)

The transmitting device according to claim 16, wherein the priority of each WQE is determined based on the ULP from which that WQE is obtained.

### Claim 20 (depends on 1)

The transmitting device according to claim 1, wherein each packet is further associated with a flowlet ID identifying a flowlet, wherein the flowlet comprises a plurality of packets, and the packet corresponding to the WQE further comprises the flowlet ID.

### Claim 21 (depends on 20)

The transmitting device according to claim 20, wherein the processor is further configured to execute the instructions to cause the transmitting device to:
transmit each packet to the receiving device via the flowlet, wherein the flowlet is associated with the receiving device.

### Claim 22

A receiving device for Remote Direct Memory Access (RDMA), wherein the receiving device comprises:
a memory configured to store instructions; and
a processor coupled to the memory and configured to execute the instructions to cause the receiving device to:
receive one or more packets from a transmitting device for RDMA, wherein each packet of the one or more packets is associated with a packet sequence number (PSN), and comprises a transaction identifier (XID) of a corresponding working queue element (WQE), wherein each WQE comprises destination information of the WQE, wherein the destination information comprises at least one of: an address of the receiving device, an identifier of the receiving device, and an identifier of a target application of the receiving device; and
transmit a notification message to the transmitting device, wherein the notification message indicates that the one or more packets are received at the receiving device.

### Claim 23 (depends on 22)

The receiving device according to claim 22, wherein based on the corresponding to a respective packet comprising a Write operation request or a Send operation request, the processor is further configured to execute the instructions to cause the receiving device to:
place data, which is carried on the Write operation request, into a destination memory location in the receiving device; or
place data, which is carried on the Send operation request, into a buffer from a receive queue of the receiving device.

### Claim 24 (depends on 22)

The receiving device according to claim 22, wherein based on the WQE corresponding to a respective packet comprising a Read operation request or an ATOMIC operation request, the processor is further configured to execute the instructions to cause the receiving device to:
transmit a response packet indicating that the respective packet has been processed by the receiving device, to the transmitting device.

### Claim 25 (depends on 24)

The receiving device according to claim 24, wherein the processor is further configured to execute the instructions to cause the receiving device to:
create a response WQE according to the Read operation request or the ATOMIC operation request;
assign the response WQE with an XID and translate the response WQE into the response packet, wherein the response packet comprises the XID of the response WQE and the XID of the WQE that comprises the Read operation request or the Atomic operation request.

### Claim 26 (depends on 24)

The receiving device according to claim 24, wherein the processor is further configured to execute the instructions to cause the receiving device to:
generate a receiver not ready (RNR) indication for a received packet, based on the receiving device being not able to process the respective packet,
wherein the notification message for the respective packet further comprises the RNR indication indicating the transmitting device that the receiving device cannot process the respective packet.

### Claim 27 (depends on 26)

The receiving device according to claim 26, wherein the RNR indication further indicates a preset timeout value, wherein the RNR indication indicates that the receiving device cannot process the respective packet within the preset timeout value.

### Claim 28 (depends on 26)

The receiving device according to claim 26, wherein the notification message comprises a plurality of RNR indications, each RNR indication indicating that the receiving device cannot process a particular transmitted packet.

### Claim 29 (depends on 22)

The receiving device according to claim 22, wherein the one or more packets comprise a first packet and a second packet, wherein a PSN of the first packet is smaller than a PSN of the second packet, and wherein the processor is further configured to execute the instructions to cause the receiving device to:
transmit the notification message for the first packet and the notification message for the second packet out-of-order; and/or
process the first packet and the second packet out-of-order; and
transmit the response message for the first packet and the response message for the second packet to the transmitting device out-of-order.

### Claim 30 (depends on 22)

The receiving device according to claim 22, wherein the processor is further configured to execute the instructions to cause the receiving device to:
maintain a database storing XIDs of WQEs that are received at the receiving device.

### Claim 31 (depends on 30)

The receiving device according to claim 30, wherein the processor is further configured to execute the instructions to cause the receiving device to:
determine for each received packet whether it is a duplicated packet, by checking whether a XID of WQE comprised in the received packet has been stored in the database; and
ignore any duplicated packet.

### Claim 32 (depends on 30)

The receiving device according to claim 30, wherein the database further comprises a state of each WQE that indicates whether the WQE has been processed.

### Claim 33

A method for Remote Direct Memory Access (RDMA) applied to a transmitting device, wherein the method comprises:
maintaining a send queue, wherein the send queue comprises one or more working queue elements (WQEs), wherein each WQE comprises destination information of the WQE, wherein the destination information comprises at least one of: an address of a receiving device, an identifier of a receiving device, and an identifier of a target application of a receiving device;
assigning each of the one or more WQEs with a transaction identifier (XID), and translate each WQE into a respective packet, wherein each respective packet comprises the XID of the corresponding WQE and is associated with a packet sequence number (PSN);
transmitting each packet to the receiving device of the destination information of the WQE;
receiving a notification message for each transmitted packet from the receiving device, wherein the notification message indicates whether the transmitted packet is received at the receiving device; and
based on the notification message, determining whether or not to generate a completion for each WQE on information carried in the WQE and information held by the transmitting device.

### Claim 34

A method for Remote Direct Memory Access (RDMA) applied to a receiving device, wherein the method comprises:
receiving one or more packets from a transmitting device for RDMA, wherein each packet of the one or more packets is associated with a packet sequence number (PSN), and comprises a transaction identifier (XID) of a corresponding working queue element (WQE), wherein each WQE comprises destination information of the WQE, wherein the destination information comprises at least one of: an address of the receiving device, an identifier of the receiving device, and an identifier of a target application of the receiving device; and
transmitting a notification message to the transmitting device, wherein the notification message indicates that the one or more packets are received and/or processed at the receiving device.

### Claim 35 (depends on 33)

A computer program product comprising a non-transitory computer readable medium for storing processor executable instructions which, upon being executed by a processor, cause the processor to perform the method of claim 33.
