RDMA transport with hardware integration and out-of-order placement

By integrating the RDMA network interface card consumer module in the hardware device, the interaction between the hardware and RNIC is optimized, which solves the problem of low interaction efficiency between hardware devices in the existing RDMA system and achieves more efficient computing resource utilization and data transmission. It is applicable in cloud-scale data centers.

CN113490927BActive Publication Date: 2024-08-23MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202080015706.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-02-22
Filing Date
2020-02-10
Publication Date
2024-08-23
Estimated Expiration
2040-02-10

AI Technical Summary

Technical Problem

The existing RDMA system is inefficient in the interaction between hardware devices, resulting in limited efficient utilization of computing resources. Especially in data center environments, the interaction between hardware and RNIC is not efficient, resulting in processor cycles, memory, network Waste of bandwidth and power.

Method used

By integrating the RDMA network interface card (RNIC) consumer module in the hardware device, the interface between the hardware and the RNIC is simplified, the transaction interface is optimized, the host interface logic is reduced, and a hardware-optimized RDMA client interface is implemented to support efficient retries and The response mechanism allows RDMA to be deployed in lossy networks to accelerate workloads and reduce latency jitter.

Benefits of technology

It improves the utilization of computing resources, reduces the impact of delay and network packet discarding on system performance, achieves more efficient RDMA data transmission and resource management, and is suitable for cloud-scale data center environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113490927B_ABST
    Figure CN113490927B_ABST
Patent Text Reader

Abstract

Techniques for implementing direct memory access in a virtualized computing environment are disclosed. A new interface mapping between RNIC consumers and RDMA transports is defined that implements efficient retries, zombie detection mechanisms, and identification and handling of invalid requests without disrupting RDMA connections. Techniques for out-of-order placement and delivery of ULP requests are disclosed without restricting the RNIC consumer to in-order networking behavior if the ULP (e.g., storage device) does not require it. This allows efficient deployment of RDMA-accelerated storage workloads in lossy network configurations and reduces latency jitter.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] A data center is a facility that houses computer systems and various networking, storage, and other related components. For example, a data center may provide computing services to businesses and individuals as a remote computing service, or provide "software as a service" (e.g., cloud computing).

[0002] Many data centers use Remote Direct Memory Access (RDMA). RDMA is a method for direct memory access from the memory of one computer to the memory of another computer without involving either operating system. RDMA allows high throughput, low latency networking, which is particularly useful in parallel computing environments. RDMA also allows for reduced CPU utilization and delivers higher processing rates compared to TCP.

[0003] Some computing environments allow applications to interact directly with RDMA-enabled hardware, bypassing operating system overhead, and allowing direct hardware access and RDMA capabilities to application buffers. RDMA systems have many disadvantages in interacting with RDMA-enabled hardware. Inefficiencies in interacting with RDMA-enabled hardware may be detrimental to efficient use of computing resources. With respect to these and other considerations, the disclosure presented herein is presented. Summary of the invention

[0004] The present disclosure describes techniques for implementing RDMA using hardware that supports RDMA. In various embodiments, in a scenario where a hardware device (user / client) interacts with an RNIC rather than a software user / client, an integrated model is implemented to implement an interface between a network interface card (RNIC) that supports RDMA and a hardware RNIC consumer. In this scenario, some software responsibilities have been offloaded to the hardware device, and the integrated model can make the RNIC functionality available to the hardware device in a manner that is optimized for this scenario rather than a software scenario. This hardware device may be referred to as a hardware RNIC consumer or a hardware RNIC consumer module, which may be any user or client that is connected to an RNIC interface to perform I / O operations using the RDMA capabilities of the RNIC. For example, a hardware RNIC consumer module may be implemented as an FPGA or ASIC. In some embodiments, the hardware RNIC consumer module may be integrated on the same FPGA or ASIC together with the RNIC.

[0005] Current RDMA specifications, such as the InfiniBand and iWARP specifications, define verbal semantics as standard interfaces for communicating with RDMA-capable devices. While these verbal semantics may be suitable for software RNIC consumers, they are less suitable for hardware RNIC consumers. The disclosed integration model simplifies interactions, reduces interface and interaction overhead, enables a distinct division of responsibilities between RNIC-capable and RNIC RDMA-capable hardware, and allows for further innovation and improvement of RNIC consumer capabilities while still leveraging RDMA transport and networking protocols. This can allow for more efficient use of computing resources, such as processor cycles, memory, network bandwidth, and power.

[0006] In the disclosed integration model, instead of utilizing the software optimized host interface defined by the RDMA verb specification, a hardware optimized transaction interface is implemented. The hardware optimized transaction interface effectively reduces or eliminates the RNIC host interface logic and moves some standard RNIC capabilities from the RNIC to the RNIC client hardware. Examples of modified or eliminated logic include memory registration and remote access semantics.

[0007] The disclosed integration model includes a hardware optimized RDMA client interface. The integration model can achieve the use of RDMA transport functionality in a cloud-scale data center environment. In some embodiments, the integration model includes: decoupling RDMA memory management and optimizing it for hardware RNIC consumer modules; efficient retries and responses to abandoned requests (zombie detection mechanism); identification and handling of invalid requests without interrupting RDMA connections; out-of-order placement and delivery of upper layer protocol (ULP) requests without restricting RNIC consumers to standard in-order networking behavior; and allowing efficient deployment of RDMA acceleration workloads in lossy network configurations while reducing latency jitter.

[0008] This summary is provided to introduce in a simplified form a selection of concepts that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, and this summary is not intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that solve any or all disadvantages noted in any part of this disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The detailed description is described with reference to the accompanying drawings. In the description in the detailed description herein, reference is made to the accompanying drawings which form a part thereof and show specific embodiments or examples by way of illustration. The drawings herein are not drawn to scale. In the multiple drawings, the same numerals represent the same elements.

[0010] Figure 1 is a diagram illustrating a data center according to the present disclosure;

[0011] Figure 2 is a diagram illustrating various aspects of RDMA according to the present disclosure;

[0012] Figure 3 is a diagram illustrating various aspects of RDMA according to the present disclosure;

[0013] Figure 4 is a flow chart depicting an example process for direct memory access according to the present disclosure;

[0014] Figure 5 is a flow chart depicting an example process for direct memory access according to the present disclosure;

[0015] Figure 6 is an example computing device according to the present disclosure. DETAILED DESCRIPTION

[0016] Remote Direct Memory Access (RDMA) provides one machine with the ability to directly access the memory of another machine without using the operating system networking stack of either machine, allowing high throughput, low latency data transfer. While RDMA adoption is increasing, its benefits as a networking transport may benefit not only networked communications between software processes, but also direct communications between hardware devices. For example, RDMA can be implemented in data centers by offloading network data transfers to peripheral devices (such as RNICs) and using enhancements in programmable logic (such as FPGAs), freeing up the host CPU to focus on user applications.

[0017] In some computing environments, host networking can be configured to offload tasks to hardware devices. Such devices may be referred to as hardware acceleration devices. For example, a device may be configured to perform computing and communication tasks offloaded from a CPU. The device may include hardware logic for implementing functions, such as a field programmable gate array (FPGA) device, a massively parallel processor array (MPPA) device, a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a multi-processor system on chip (MPSoC), etc., and may be capable of performing many of the same tasks typically performed by other devices (such as a CPU). The term hardware acceleration component may also encompass other ways of performing functions using hardware acceleration devices, such as, for example, a) at least some tasks are implemented in hard ASIC logic, etc.; b) at least some tasks are implemented in soft (configurable) FPGA logic, etc.; c) at least some tasks are run as software on an FPGA software processor overlay, etc.; d) at least some tasks are run as software on a hard ASIC processor, etc., or any combination thereof. In some embodiments, a peripheral device may be a network communication device, such as a network interface card (NIC). Such a NIC may be referred to herein as a smart NIC or sNIC.

[0018] Figure 1 An example computing environment is illustrated in which the embodiments described herein may be implemented. Figure 1 A data center 100 is illustrated, which is configured to provide computing resources to users 100a, 100b, or 100c (which may be referred to as "user 100" or "user 100" in the singular or plural) via a communication network 130 via user computers 102a, 102b, and 102c (which may be referred to as "computer 102" in the singular or "computer 102" in the plural) via a communication network 130. The computing resources provided by the data center 100 may include various types of resources, such as computing resources, data storage resources, data communication resources, etc. Each type of computing resource may be general or may be available in many specific configurations. For example, computing resources may be available as virtual machines. Virtual machines may be configured to execute applications, including web servers, application servers, media servers, database servers, etc. Data storage resources may include file storage devices, block storage devices, etc. Each type or configuration of computing resources may be available in different configurations, such as the number of processors and the size and / or storage capacity of memory. In some embodiments, resources may be provided to clients in units called instances, such as virtual machine instances or storage instances. A virtual computing instance may be referred to as a virtual machine, and may, for example, include one or more servers with specified computing capabilities (which may be specified by indicating the type and number of CPUs, the size of main memory, etc.) and a specified software stack (e.g., a specific version of an operating system, which may in turn run on top of a hypervisor).

[0019] Data center 100 may include servers 116a, 116b, and 116c (which may be referred to herein as "server 116" in the singular or "servers 116" in the plural) that provide computing resources available as virtual machines 118a and 118b (which may be referred to herein as "virtual machines 118" in the singular or "virtual machines 118" in the plural). Virtual machines 118 may be configured to execute applications such as web servers, application servers, media servers, database servers, etc. Other resources that may be provided include data storage resources (not described in Figure 1 ), and may include file storage devices, block storage devices, etc. Server 116 may also perform functions for managing and controlling resource allocation in a data center, such as controller 115. Controller 115 may be a fabric controller or another type of program configured to manage virtual machine allocation on server 116.

[0020] Reference Figure 1 , the communication network 130 may be, for example, a publicly accessible network of linked networks and may be operated by various entities such as the Internet, etc. In other embodiments, the communication network 130 may be a private network, such as a corporate network that is fully or partially inaccessible to the public.

[0021] The communication network 130 may provide access to a computer 102. The computer 102 may be a computer used by a user 100. The computer 102a, 102b, or 102c may be a server, a desktop or laptop personal computer, a tablet computer, a smart phone, a set-top box, or any other computing device capable of accessing the data center 100. The user computer 102a or 102b may be directly connected to the Internet (e.g., via a cable modem). The user computer 102c may be inside the data center 100 and may be directly connected to resources in the data center 100 via an internal network. Although only three user computers 102a, 102b, and 102c are depicted, it should be appreciated that multiple user computers may be present.

[0022] Computer 102 may also be used to configure various aspects of the computing resources provided by data center 100. For example, data center 100 may provide a Web interface through which various aspects of its operation may be configured using a Web browser application executing on user computer 102. Alternatively, a standalone application executing on user computer 102 may be used to access an application programming interface (API) exposed by data center 100 for performing configuration operations.

[0023] The servers 116 may be configured to provide the computing resources described above. One or more of the servers 116 may be configured to execute a manager 120a or 120b (which may be referred to herein as "manager 120" in the singular or "managers 120" in the plural) that is configured to execute virtual machines. For example, the manager 120 may be a virtual machine monitor (VMM), a fabric controller, or another type of program configured to enable execution of a virtual machine 118 on the server 116.

[0024] It should be appreciated that although the embodiments disclosed above are discussed in the context of virtual machines, other types of implementations may be used with the concepts and technologies disclosed herein.

[0025] exist Figure 1 In the example data center 100 shown, a network device 111 can be used to interconnect servers 116a and 116b. The network device 111 may include one or more switches, routers, or other network devices. The network device 111 may also be connected to a gateway 140, which is connected to a communication network 130. The network device 111 may support communications within the network in the data center 100, such as by appropriately forwarding packets or other data communications based on the characteristics of such communications (e.g., header information including source and / or destination addresses, protocol identifiers, etc.) and / or the characteristics of the private network (e.g., routes based on network topology, etc.). It is to be understood that, for simplicity, various aspects of the computing systems and other devices of this example are illustrated without showing certain conventional details. In other embodiments, additional computing systems and other devices may be interconnected, and may be interconnected in different ways.

[0026] It should be understood that Figure 1 The illustrated network topology has been greatly simplified, and many more networks and networking devices can be used to interconnect the various computing systems disclosed herein. These network topologies and devices should be apparent to those skilled in the art.

[0027] It should also be understood that Figure 1The described data center 100 is illustrative only, and other implementations may be used. Additionally, it should be understood that the functionality disclosed herein can be implemented with software, hardware, or a combination of software and hardware. Other implementations should be obvious to those skilled in the art. It should also be understood that a server, gateway, or other computing device may include any combination of hardware or software that can interact and execute the functionality of the described type, including but not limited to desktop computers or other computers, database servers, network storage devices and other network devices, PDAs, tablet computers, smart phones, Internet devices, TV-based systems (e.g., using set-top boxes and / or personal / digital video recorders) and various other consumer products including appropriate communication capabilities. In addition, in some embodiments, the functionality provided by the illustrated modules may be combined in fewer modules or distributed in additional modules. Similarly, in some embodiments, the functionality of some illustrated modules may not be provided and / or other additional functionality may be available.

[0028] The following detailed description describes techniques for implementing RDMA in a more efficient manner for hardware RDMA consumer modules. Interfaces that implement RDMA, such as the RNIC interface, are described by verb specifications and are typically optimized for interaction with software. The RNIC interface focuses on an asynchronous RNIC / software interaction model, a request and completion queue paradigm based on hardware interfaces, and has memory registration semantics that allow direct and remote access to application buffers. While the RNIC verb interface is well defined and suitable for software consumers of RDMA transport, it is not efficient for direct integration with hardware devices due to the implementation of procedures that are not required in hardware integration scenarios.

[0029] In the following example, an RNIC consuming hardware consumer module is described. This module implements a storage initiator and uses RDMA for remote access to storage system targets. The communication protocols for devices over RDMA-enabled networks include:

[0030] The module uses RDMA send messages to send requests to remote targets

[0031] • The target reads or writes the data to be stored or retrieved using an RDMA Read or RDMA Write message, respectively.

[0032] The target sends a response to the initiator using an RDMA send message

[0033] For a target to access the initiator's data buffers using an RDMA Read or RDMA Write message, those buffers must have been previously registered with the RNIC using a Memory Register or Fast Memory Register verb call.

[0034] Figure 2An example storage initiator and RNIC interaction for the above process is illustrated. RNIC consumer module 205:

[0035] Prepare buffer for response message 220

[0036] Write the receive descriptor to the RNIC response queue (RQ) 215, which references the response buffer 220

[0037] Writes to the RNIC’s memory-mapped I / O “doorbell” register to notify the RNIC that a new descriptor has been published by the RQ

[0038] Prepare a page list representing the data buffer 225

[0039] Write the Fast Memory Register (FMR) descriptor that references the page list to the RNIC Send Queue (SQ)

[0040] Prepare the request message and write it into the request buffer 210

[0041] Write the send message descriptor 230 of the reference request buffer 210 to the RNIC SQ

[0042] Write to the memory-mapped I / O “doorbell” register of the RNIC associated with the SQ, notifying the RNIC that a new work item has been posted to the SQ

[0043] RNIC 250:

[0044] Read the FMR descriptor from the SQ, read the list of pages referenced by that FMR, and then update its translation and protection tables to support RDMA access to the buffer described by the FMR

[0045] Read the send SQ descriptor and request from the request buffer, and then send the request message to the target over the network

[0046] Receives an acknowledgment for the sent message and then writes the completion to the send queue completion queue SQ CQ 255

[0047] Receive an RDMA read or RDMA write message from the target. For an RDMA read message, the RNIC 250 reads the data from the pre-registered data buffer 260 and returns it to the target over the network. For an RDMA write message, the RNIC 250 writes the data in the message to the pre-registered data buffer 260 and sends an acknowledgment to the target.

[0048] Receive a Send message with a response from the target, read the next available RQ descriptor, and use the referenced buffer to copy the response into the buffer

[0049] Write the completion to the response queue completion queue (RQ CQ) 270

[0050] RNIC Consumers:

[0051] Reading from RQ CQ completed

[0052] Read and process the response from the response buffer

[0053] While this process may be suitable for software, the process is complex and inefficient for the interaction between two hardware entities. For example, the process involves unnecessary overhead that can be eliminated with a more appropriate interaction model.

[0054] In an embodiment, the RDMA remote memory access semantics defined in the Infiniband and iWARP specifications and the mechanisms to make such access secure are described.

[0055] To allow remote memory access, the RNIC must be able to identify the buffer or memory region that is the target of the remote access and identify the offset within that buffer or memory region and the page list that describes the page addresses associated with the buffer in memory. The RNIC uses a remote key or RKey to identify a registered memory region that represents a buffer. Logically, an RKey can be viewed as an index into a memory protection table that defines the properties of the corresponding memory region. These properties include its state (valid, invalid), start or region, its size, and a reference to a page list that contains the page addresses that make up the buffer associated with the memory region.

[0056] An RDMA request to access a memory region also specifies a virtual address. The virtual address is used to specify an offset within a memory region. A memory region is associated with a page list, which is a list of memory pages that are pinned within a buffer in memory.

[0057] RDMA Read and RDMA Write messages carry a triple of RKey, Virtual Address and Length to precisely identify a specific region within a pre-registered data buffer. To enable remote access to a data buffer, an RNIC consumer must register a memory region, provide a list of pages, obtain an RKey and determine a virtual address within that memory region. This triple can then be advertised to the target (e.g. using a Request to Send message in the above example), where it can be used for remote memory access.

[0058] In an embodiment, an alternative integration model with hardware optimized verb semantics implemented between an in-hardware RNIC consumer module and the RNIC is described. The alternative integration model simplifies the interaction, reduces interface and interaction overhead, and implements a different division of responsibilities between the RNIC and the RNIC consumer. The alternative integration model allows for further innovation and improvement of RNIC consumer capabilities while still leveraging RDMA transport and networking protocols.

[0059] The alternative integration model does not use software optimization verbs, but includes hardware optimization transaction interface verbs, which can reduce or eliminate RNIC host interface logic and can move redundant RNIC capabilities from the RNIC to the RNIC consumer logic. Specifically, as further described herein, memory registration and remote access semantics can be reduced or eliminated.

[0060] Reference Figure 3 , illustrates an example of high-level interface definition semantics for hardware optimization verbs. Examples of hardware interface definitions are provided in this article.

[0061] Some embodiments assume that the RNIC hardware consumer module implements upper layer protocol (ULP) logic.A protocol transaction or data structure may be referred to as an ULP-related item, such as a ULP request, a data structure carrying ULP status, or a ULP request context.

[0062] In one embodiment, a high-level description of a flow using hardware optimization verbs may include:

[0063] Outbound ULP Request

[0064] RNIC consumer 305 selects the ULP request to service and issues a command to the RNIC via the transport command interface 320

[0065] The RNIC 350 may queue the command to the request queue 310 or it may process it directly depending on the implementation of its internal transmission scheduler, its configuration and state

[0066] • The RNIC scheduler 315 selects the next command to service and requests the RNIC consumer to provide the command payload using the data read interface 325. For example, the command payload may be a ULP request.

[0067] o The LKey provided in the data read interface refers to the RNIC consumer state associated with the ULP request, such as the ULP request context. The LKey may be provided by the hardware RNIC consumer within a command previously enqueued to the request queue

[0068] RNIC consumer 305 generates a ULP request based on the ULP request context

[0069] o The ULP request carries an RKey and a VA, which references the ULP request context, and a sequence number (SN) is carried by the RKey and the VA.

[0070] RNIC consumers use the data read interface to provide data. RNIC consumers can provide ULP requests as data.

[0071] RNIC uses RDMA to send messages to transfer ULP requests

[0072] Inbound RDMA write process:

[0073] The RNIC receives the RDMA Write message, which carries the data corresponding to the ULP request

[0074] οRKey and VA in the RDMA write packet refer to the ULP request context

[0075] RNIC 350 uses receive command interface 360 ​​to provide the RKey and VA of the received packet

[0076] • The RNIC Consumer 305 resolves the data destination by using the RKey and VA to uniquely identify the ULP request context and offset within any associated buffers.

[0077] RNIC consumer 305 uses the data write interface to consume the packet payload provided by the RNIC

[0078] Inbound RDMA Read Process

[0079] The RNIC 350 receives the RDMA read message and queues it to the RDMA read response queue

[0080] The RNIC scheduler selects a pending request from the RDMA read response queue and uses the data read interface to request the payload required to send the RDMA read response

[0081] οRKey and VA in the RDMA read packet refer to the ULP request context

[0082] The RNIC consumer resolves the data source using the RKey and VA to uniquely identify the ULP request context and offset within any associated buffers.

[0083] The RNIC consumer uses the data read response interface 325 to respond to the data read request

[0084] The RNIC uses the RDMA Read Response packet to transfer the data requested in the RDMA Read message

[0085] Inbound ULP Response

[0086] RNIC receives RDMA send message carrying ULP response

[0087] o The ULP response can be associated with the ULP request context using its content

[0088] The RNIC uses the receive command interface to indicate the ULP response to the RNIC consumer

[0089] The RNIC consumer uses the data write interface 350 to consume the ULP response payload provided by the RNIC and process it dynamically.

[0090] Table 1 includes an example mapping of RDMA semantics to RNIC consumers.

[0091] Table 1. Example of an integrated model and mapping of RDMA semantics

[0092]

[0093] The RNIC consumer may send multiple outstanding ULP requests to the target for processing. The target platform may be implemented as a large-scale distributed system, such as a storage system. ULP requests processed concurrently by a large-scale distributed storage system may be processed in parallel by different storage nodes, which may take different times to perform processing. In such a system, ULP requests may be processed and completed out of order. Given various failure scenarios, such as node failures, network partitions, etc., some requests may take a relatively long time to complete, or may not be completed at all.

[0094] It is desirable to track outstanding ULP requests so that requests that do not complete within a certain time limit can be retried or reported as failed. Resources allocated for these failed requests must eventually be reclaimed for use with other requests. RNIC consumers need to be able to identify timed out or orphaned requests so that resources can be reassigned and reused.

[0095] In an embodiment, the RNIC consumer may use a sequence number (SN) for this purpose. The RNIC consumer may implement a large (e.g., 48-bit) counter that increments with each new request submitted by the RNIC consumer. For each new request, the RNIC consumer may save the current counter value to the sequence number associated with the request and increment the counter value. The sequence number may be stored in the ULP request context.

[0096] When a new ULP request is generated, the RNIC consumer may update the ULP request header with the request sequence number and a reference to the ULP request context. These fields may be returned within the header of the ULP response message. The RNIC consumer may use these fields to identify the ULP request context assigned to the request. The context is retrieved and the embedded sequence number is compared to the value returned in the response message. If the sequence numbers match, then the ULP response corresponds to the original request and may be considered valid. In the event that the two sequence numbers do not match, the ULP response is invalid (referred to as a "zombie response" or "orphan response"), and processing of the ULP response should be skipped or handled as an error.

[0097] For RDMA reads and writes, a reference to the ULP request context and a sequence number are encoded in the RKey and / or virtual address sent along in the ULP request, as described further below. These values ​​can be used to verify that a particular RDMA packet represents a valid RDMA transaction for the ULP request context.

[0098] Rkey and virtual address are usually managed by RNIC as part of memory registration. Since memory registration is not required in the hardware optimization model, RNIC does not need to interpret the virtual address and can just send it together to RNIC consumer.

[0099] Since the RNIC Consumer provides all access to the data, it can use the RKey and VA to encode any information needed to locate that data when it later receives an RDMA read or write request.

[0100] The RKey and VA may carry the encoding of the client-specific lookup key and the generated sequence number (SN). For example, the RKey may carry the encoding of the ULP request context index in some table of active ULP request contexts. The RKey may also carry some higher bits of the generated SN for zombie RDMA access identification. Table 2 provides an example of the RKey encoding.

[0101] Table 1. Examples of RKey encoding

[0102]

[0103] A virtual address (VA) can be used to provide an offset into a buffer identified by an RKey. In addition to the offset, a portion of the VA can also be used to carry other information, such as the lower bits of the generated SN for validating RDMA access.

[0104] Table 2. Examples of virtual address encodings

[0105]

[0106] InfiniBand and iWARP verb semantics define a receive queue (RQ) as a mechanism for RNIC consumers to provide buffers for received send messages, and a completion queue (RCQ) associated with a receive queue as a mechanism for notifying software RNIC consumers of the delivery of received send messages. While this mechanism may be suitable for interaction with software, it comes at the cost of PCIe / memory reads from the RQ to identify the target buffer for inbound send packets, PCIe / memory writes to the RCQ, additional status in the RNIC transport engine, interrupts, and RQ / RCQ doorbells.

[0107] The hardware optimized verb semantics described further below allow the need for RQ / RCQ semantics for hardware RNIC consumers to be eliminated and allow inbound send messages to be delivered directly without storage through memory. The hardware RNIC consumer can dynamically process and consume inbound send messages, such as ULP responses. Since inbound send packets are delivered directly via the transaction interface, there is no need to implement a separate receive completion interface.

[0108] The InfiniBand and iWARP specifications define the semantics of memory registration to allow local and remote access to software RNIC consumer buffers. Each buffer must be registered as part of a memory region and identified by an RKey and a virtual address (VA).

[0109] When using the standard memory registration and remote access model, RNIC consumers must register buffers in advance, independent of actual remote access to the buffers. Actual remote access to pre-registered buffers is done independently and without any notification to the RNIC consumer. This model may be beneficial for software RNIC consumers, allowing one-sided RDMA read and write operations that do not consume CPU cycles on the remote machine.

[0110] In an embodiment, hardware optimized verbs may form part of an alternative integration model without using implicit memory registration semantics. RKeys and VAs are managed by the RNIC consumer, which is responsible for the generation of RKeys and VAs, their association with buffers and other corresponding resources, and the processing and consumption of data buffer access requests for remote access by the transmit and receive RNIC pipelines.

[0111] Hardware RNIC consumers may define and use the RKey and VA described herein. This definition allows the use of RKey and VA to identify the ULP request context and the corresponding data buffers for data and metadata transfers, as well as to identify invalid remote accesses, as described below.

[0112] Invalid RDMA accesses on a standard RDMA connection typically result in failed connection termination. Reestablishment of an RDMA connection incurs significant overhead and latency, and it is desirable to reduce this overhead in cloud-scale deployments of RDMA. Invalid RDMA accesses are typically detected by the RNIC based on memory region configuration, its state, base, and bounds checks. As discussed above, large-scale distributed systems introduce additional complexity in managing RNIC resources associated with outstanding ULP requests.

[0113] Eliminating the need for standard memory registration semantics and instead allowing the RNIC consumer to manage and validate remote memory accesses allows invalid RDMA accesses to be handled in a more efficient manner without having to interrupt the RDMA connection, thereby affecting other ongoing requests. For example, as described above, the RNIC consumer may associate the RKey and VA with the ULP request context and rely on the request related information stored in the ULP context to allow basis and bounds checking. Additionally, sequence number verification may be used to identify RDMA transfers associated with timed out, retried, or lost ULP requests. The results of the sequence number verification may take precedence over basis and bounds checking.

[0114] Depending on the type of RDMA access, the RNIC consumer can perform the following actions to recover from an invalid RDMA access:

[0115] Inbound RDMA write packets

[0116] Packets identified as zombies (ie, carrying invalid sequence numbers or for invalid ULP request contexts) may be silently discarded.

[0117] Inbound RDMA Read messages, resulting in outbound RDMA Read Response packets

[0118] Packets identified as zombies (i.e., carrying invalid sequence numbers, or for invalid ULP request contexts) may cause the RNIC consumer to generate padding data and invert the data CRC to ensure that the target or backend server can identify the data as invalid and respond with a failed ULP response.

[0119] Both situations can be handled without affecting the RDMA connection and other ongoing ULP requests already being processed on the same connection.

[0120] The RoCE standard based on Infiniband assumes a lossless network configuration. The iWARP standard was defined to allow for lossy networks and extends the Infiniband definition to allow for packet drops and out-of-order packet placement with in-order delivery.

[0121] While lossless network configuration simplifies RNIC transport implementation, it comes with the impact of increased congestion caused by link-level flow control. Uncontrolled congestion can cause severe network utilization degradation and affect overall system performance, especially in cloud-scale deployment scenarios. One way to address the increasing congestion is to avoid using lossless networks and adapt the RNIC implementation to better handle bounded packet losses.

[0122] While the out-of-order packet placement introduced by the iWARP specification may allow for improved RDMA performance in lossy networking environments and reduced reorder buffer space requirements, the iWARP specification still enforces an in-order network processing model on the RNIC consumer.

[0123] In an embodiment, the disclosed hardware RNIC consumer and RNIC interaction model can be used to extend the RNIC consumer's handling of out-of-order received packets to allow out-of-order delivery of ULP requests. Depending on the ULP, there may be no ordering requirements or dependencies between different requests to the same or different RDMA connections, such as the case of storage RDMA consumers. The only requirement is that all RDMA transactions involved in processing the storage request be completed. The ULP request can also be completed regardless of the status of other ULP requests issued before or after the same or different RDMA connections.

[0124] The described out-of-order delivery model may allow for a significant reduction in the performance impact of network packet drops on overall system performance. Only the ULP request associated with the dropped packet may be impacted, while other requests may be completed as if no packet was dropped. The described out-of-order delivery model may allow for improvements in jitter and high percentile latency for the overall system or network.

[0125] The RNIC consumer can track all RDMA transactions for each request. This can be performed via the ULP request context, and the RNIC can provide RDMA and out-of-order received send packets to the RNIC consumer. In some embodiments, the RNIC consumer can detect an out-of-order condition within a ULP request and transparently handle it by resubmitting the request associated with the ULP request.

[0126] The semantics of the interface between the RNIC consumer and the RDMA transport is further described below.

[0127] The RNIC consumer may use the transport command interface to submit new ULP requests to be transmitted by the RNIC. Table 4 lists the main fields and is not a complete interface definition.

[0128] Table 3. Transmission command interface

[0129]

[0130]

[0131] The RNIC may queue requests for the SQ associated with the QPN. The SQ may be used to schedule transmissions and retransmissions of new requests.

[0132] The RNIC consumer may maintain multiple in-flight requests posted to the RNIC SQ. If the total number of in-flight requests does not exceed the SQ depth, a new request may be posted to the SQ. The number of in-flight requests may be updated with each posted request and notifications through the completion interface described below. In some embodiments, the ULP may be allowed to manage the number of in-flight requests (and in-flight read requests), freeing the RNIC implementation from this detail.

[0133] Once an RDMA transport selects an SQ or corresponding read response queue to service, it can use the data read interface to request the RNIC consumer to provide the required payload. This interface can be used to retrieve the payload of send and RDMA write requests issued to the SQ and the request data of RDMA read requests.

[0134] The transport command interface definition assumes that the RDMA transport engine scheduler is responsible for determining which queue and which request to service based on the ETS configuration. Therefore, if one traffic class (TC) has a higher priority than another, it can be enforced by the scheduler based on the configuration. The data read interface can operate in bursts of networking packets. The number of packets in a burst can be configurable.

[0135] The Data Read Interface (DRI) interface may be used by the RDMA transport to retrieve data for newly transmitted and retransmitted packets. The order of packet scheduling and their position in the entire message payload may be controlled by the RDMA transport and may not be sequential within a QP.

[0136] Table 4. Data reading interface

[0137]

[0138] A Receive Command Interface (RCI) may be implemented and used to indicate to the RNIC consumer various messages received by the RNIC. Examples are described in Table 6. Messages may include received RDMA Send and RDMA Write messages. The RCI may indicate one received packet at a time.

[0139] Table 5. Receive command interface

[0140]

[0141]

[0142] RDMA packet payloads may be provided via a data FIFO interface. RDMA transport may provide separate command and data interfaces, allowing the RNIC consumer to pipeline command and data processing. Inbound RDMA packets may be delivered to the RNIC consumer in order within an RDMA QP.

[0143] For each SQ completion, the RNIC consumer may increment a completed SQ message counter, which may be compared to a published SQ message counter to assess the number of messages published to the SQ.

[0144] Table 6. Send completion interface

[0145] Field Name Bit describe qpn 6b Received QPN message.

[0146] The error notification interface can be used to communicate errors detected by RDMA transports. Errors can be severe and cause the specified QP to enter an error state.

[0147] Table 7. Error notification interface

[0148] Field Name Bit describe qpn 6b Received QPN message. Checksum 16b Error Checker

[0149] Now go to Figure 4 , illustrates an example operating program for direct memory access according to the present disclosure. The operating program may be implemented in a remote direct memory access (RDMA) capable device including programmable logic that, when executed by the RDMA capable device, causes the RDMA capable device to perform operations. Figure 4 , operation 401 illustrates instantiating an interface configured to interact with an RDMA transport mechanism.

[0150] Operation 401 may be followed by operation 403. Operation 403 illustrates mapping interfaces to enable detection of invalid RMDA responses and requests.

[0151] Operation 403 may be followed by operation 405. Operation 405 illustrates maintaining the RDMA connection when an invalid RDMA response or request is detected.

[0152] Reference Figure 5 , illustrates another example operating procedure for direct memory access in a virtualized computing environment. The operating procedure may be implemented in a network interface device. The network interface device may include programmable logic that, when executed by the network interface device, causes the network interface device to perform the described operations. Figure 5 , operation 501 illustrates instantiating an interface configured to interact with an RDMA transport mechanism.

[0153] Operation 501 may be followed by operation 503. Operation 503 illustrates sending an upper layer protocol (ULP) request via the interface.

[0154] Operation 503 may be followed by operation 505. Operation 505 illustrates receiving an RDMA packet in response to the ULP request.

[0155] Operation 505 may be followed by operation 507. Operation 507 illustrates continuing to complete the ULP request, including processing out-of-order RDMA packets.

[0156] Various aspects of the present disclosure are described herein with respect to certain examples and embodiments, which are intended to illustrate rather than limit the present disclosure. It should be understood that the subject matter presented herein can be implemented as a computer process, a computer-controlled device, a computing system, an article of manufacture (such as a computer-readable storage medium), or a component including hardware logic for implementing functions, such as a field programmable gate array (FPGA) device, a massively parallel processor array (MPPA) device, a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), a multi-processor system on a chip (MPSoC), etc. Components can also cover other ways of using devices to perform functions, such as, for example, a) at least some tasks are implemented in hard ASIC logic, etc.; b) at least some tasks are implemented in soft (configurable) FPGA logic, etc.; c) at least some tasks are run as software on FPGA software processor overlays, etc.; d) at least some tasks are run as software on hard ASIC processors, etc., or any combination thereof. A component can represent a homogeneous collection of hardware acceleration devices (such as, for example, FPGA devices). On the other hand, a component can represent a heterogeneous collection of different types of hardware acceleration devices, including different types of FPGA devices with different corresponding processing capabilities and architectures, a mixture of FPGA devices and other types of hardware acceleration devices, etc.

[0157] Figure 6 A general purpose computing device 600 is illustrated. In the illustrated embodiment, the computing device 600 includes one or more processors 610a, 610b, and / or 610n (which may be referred to herein as "processor 610" in the singular or as "processors 610" in the plural) coupled to a system memory 66 via an input / output (I / O) interface 630. The computing device 600 also includes a network interface 640 coupled to the I / O interface 630.

[0158] In various embodiments, computing device 600 may be a uniprocessor system including one processor 610 or a multiprocessor system including a plurality of processors 610 (e.g., two, four, eight, or another suitable number). Processor 610 may be any suitable processor capable of executing instructions. For example, in various embodiments, processor 610 may be a general-purpose or embedded processor that implements any of a variety of instruction set architectures (ISAs), such as an x86, PowerPC, SPARC, or MIPS ISA, or any other suitable ISA. In a multiprocessor system, each of processors 610 may typically, but not necessarily, implement the same ISA.

[0159] The system memory 66 may be configured to store instructions and data accessible by the processor(s) 610. In various embodiments, the system memory 66 may be implemented using any suitable memory technology, such as static random access memory (SRAM), synchronous dynamic RAM (SDRAM), non-volatile / flash-type memory, or any other type of memory. In the illustrated embodiment, program instructions and data that implement one or more desired functions (such as those methods, techniques, and data described above) are shown as stored within the system memory 66 as code 625 and data 626.

[0160] In one embodiment, the I / O interface 630 can be configured to coordinate I / O traffic between the processor 610, the system memory 66, and any peripheral devices in the device, including the network interface 640 or other peripheral interfaces. In some embodiments, the I / O interface 630 can perform any necessary protocol, timing, or other data transformations to convert data signals from one component (e.g., the system memory 66) into a format suitable for use by another component (e.g., the processor 610). For example, in some embodiments, the I / O interface 630 may include support for devices attached through various types of peripheral buses, such as a variation of the peripheral component interconnect (PCI) bus standard or the universal serial bus (USB) standard. In some embodiments, the functionality of the I / O interface 630 may be divided into two or more separate components. Moreover, in some embodiments, some or all of the functionality of the I / O interface 630 (such as an interface to the system memory 66) may be directly incorporated into the processor 610.

[0161] For example, network interface 640 may be configured to allow data to be exchanged between computing device 600 and other one or more devices 660 attached to a network or networks 650, such as Figures 1 to 4Other computer systems or devices as shown. For example, in various embodiments, network interface 640 can support communication via any suitable wired or wireless general data network, such as an Ethernet network type. Additionally, network interface 640 can support communication via a telecommunications / telephone network (such as an analog voice network or a digital fiber optic communication network), via a storage area network (such as a Fiber Channel SAN), or via any other suitable type of network and / or protocol.

[0162] In some embodiments, system memory 66 may be one embodiment of a computer-accessible medium configured to store the above-described Figures 1 to 5 The program instructions and data described herein are used to implement embodiments of the corresponding methods and apparatus. However, in other embodiments, the program instructions and / or data may be received, sent, or stored on different types of computer-accessible media. The computer-accessible medium may include a non-transitory storage medium or memory medium, such as a magnetic or optical medium, for example a disk or DVD / CD coupled to the computing device 600 via an I / O interface 630. The non-transitory computer-accessible storage medium may also include any volatile or non-volatile medium, such as RAM (e.g., SDRAM, DDR SDRAM, RDRAM, SRAM, etc.), ROM, etc., which may be included in some embodiments of the computing device 600 as system memory 66 or other types of memory. Further, the computer-accessible medium may include a transmission medium or signal, such as an electrical signal, an electromagnetic signal, or a digital signal, communicated via a communication medium such as a network and / or a wireless link, such as may be implemented via a network interface 640. Such as Figure 6 Some or all of the illustrated multiple computing devices may be used to implement the described functionality in various embodiments; for example, software components running on various different devices and servers may collaborate to provide functionality. In some embodiments, in addition to or instead of being implemented using a general-purpose computer system, portions of the described functionality may be implemented using storage devices, network devices, or special-purpose computer systems. The term "computing device" as used herein refers to at least all of these types of devices and is not limited to these types of devices.

[0163] Various storage devices and their associated computer-readable media provide non-volatile storage for the computing devices described herein. The computer-readable media discussed herein may refer to mass storage devices, such as solid-state drives, hard disks, or CD-ROM drives. However, it should be appreciated by those skilled in the art that computer-readable media may be any available computer storage media that can be accessed by a computing device.

[0164] By way of example and not limitation, computer storage media may include volatile and nonvolatile media, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. For example, computer media include, but are not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid-state memory technology, CD-ROM, digital versatile disk ("DVD"), HD-DVD, BLU-RAU or other optical storage devices, cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by the computing devices discussed herein. For the purposes of the claims, the phrases "computer storage medium", "computer readable storage medium" and variations thereof do not by themselves include waves, signals and / or other transient and / or intangible communication media.

[0165] Encoding the software modules proposed herein may also transform the physical structure of the computer-readable medium proposed herein. In different implementations of the present description, the specific transformation of the physical structure may depend on various factors. Examples of such factors may include, but are not limited to, technologies used to implement computer-readable media, whether the computer-readable media is characterized by primary storage devices or secondary storage devices, etc. For example, if the computer-readable medium is implemented as a semiconductor-based memory, the software disclosed herein may be encoded on the computer-readable medium by transforming the physical state of the semiconductor memory. For example, the software may transform the state of transistors, capacitors, or other discrete circuit elements that constitute the semiconductor memory. The software may also transform the physical state of such components in order to store data thereon.

[0166] As another example, the computer readable medium disclosed herein can be implemented using magnetic or optical technology. In such an implementation, when software is encoded therein, the software proposed herein can transform the physical state of the magnetic or optical medium. These transformations can include changing the magnetic characteristics of a specific location in a given magnetic medium. These transformations can also include changing the physical characteristics or characteristics of a specific location in a given optical medium to change the optical characteristics of those locations. Without departing from the scope and spirit of this description, other transformations of the physical medium are possible, and the aforementioned examples are provided only to support this discussion.

[0167] In view of the above, it should be appreciated that many types of physical transformations occur in the disclosed computing device in order to store and execute the software components and / or functionality presented herein. It is also contemplated that the disclosed computing device may not include Figure 6 All illustrated components shown may include those not shown Figure 6 Other components explicitly shown in the Figure 6 The architecture shown is a completely different architecture.

[0168] Although various configurations have been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended representations is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claimed subject matter.

[0169] Unless specifically stated otherwise or otherwise understood to be used within the context, conditional language used herein (such as "can," "could," "might," "may," "for example," etc.) is generally intended to convey that certain embodiments include and other embodiments do not include certain features, elements, and / or steps. Thus, such conditional language is generally not intended to imply that features, elements, and / or steps are in any way essential to one or more embodiments, or that one or more embodiments necessarily include logic for deciding, with or without author input or prompting, whether such features, elements, and / or steps are included or will be performed in any particular embodiment. The terms "comprising," "including," "having," and the like are synonymous and are used inclusively in an open-ended manner and do not exclude additional elements, features, actions, operations, and the like. Moreover, the term "or" is used in its inclusive sense (rather than an exclusive sense) such that, for example, when used to connect a list of elements, the term "or" means one, some, or all of the elements in the list.

[0170] Although certain example embodiments have been described, these embodiments are presented by way of example only and are not intended to limit the scope of the invention disclosed herein. Therefore, nothing in the foregoing description is intended to imply that any particular feature, characteristic, step, module, or block is necessary or indispensable. In fact, the novel methods and systems described herein may be implemented in a variety of other forms; in addition, various omissions, substitutions, and changes in the form of the methods and systems described herein may be made without departing from the spirit of the invention disclosed herein. The attached claims and their equivalents are intended to cover such forms or modifications that fall within the scope and spirit of certain inventions disclosed herein.

[0171] It should be understood that any reference to items and / or abstract concepts such as "first", "second", etc. within the description is not intended to and should not be interpreted as necessarily corresponding to any reference to elements such as "first", "second", etc. of the claims. Specifically, within the content of the invention and / or the detailed description below, items and / or abstract concepts (such as, for example, the operating states of a single computing device and / or a computing cluster) may be distinguished by numerical names, and such names do not correspond to the claims or even other paragraphs of the content of the invention and / or the detailed description. For example, any designation of a "first operating state" and a "second operating state" of a computing cluster within a paragraph of the present disclosure is used only to distinguish between two different operating states of the computing cluster within that specific paragraph - not any other paragraph, and especially not a claim.

[0172] Finally, although various techniques have been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the accompanying representations is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claimed subject matter.

[0173] Sample Clauses

[0174] The present disclosure presented herein encompasses the subject matter set forth in the following example clauses.

[0175] Example clause A, a network interface card (RNIC) consumer module having remote direct memory access (RDMA) capability, comprising logic to configure the RNIC consumer device to perform operations, the operations comprising:

[0176] executing an interface configured to interact with an RDMA transport mechanism;

[0177] Mapping interfaces to implement detection of invalid RMDA responses and requests; and

[0178] When an invalid RDMA response or request is detected, the RDMA connection is maintained.

[0179] Example clause B, an RNIC consumer module according to example clause A, wherein the RNIC is implemented as an FPGA or an ASIC.

[0180] Example clause C, an RNIC consumer module according to any of example clauses A to B, wherein the RNIC consumer module is configured to generate, allocate and manage remote access identifiers.

[0181] Example clause D. An RNIC consumer module according to any of example clauses A to C, wherein the remote access identifier is a remote key (RKey) and a virtual address (VA).

[0182] Example clause E, an RNIC consumer module according to any of example clauses A to D, wherein the RDMA-capable device is configured to pass the RKey and VA instead of implementing storage registration and remote access semantics.

[0183] Example clause F, an RNIC consumer module according to any one of example clauses A to E, wherein:

[0184] The RKey and VA are associated with the RNIC consumer request; and

[0185] The RDMA-capable device is configured to use an RKey to identify an RNIC consumer request context and to use a VA to specify an offset within an RNIC consumer request.

[0186] Example clause G. The RNIC consumer module of any of example clauses A to F, wherein the RNIC consumer request context is used to identify a data buffer associated with the RNIC consumer request.

[0187] Example clause H, an RNIC consumer module according to any of example clauses A to G, wherein the RDMA-capable device is configured to use the RKey and the VA to transmit a sequence number that can be used to identify invalid RDMA accesses.

[0188] Example clause I, an RNIC consumer module according to any of example clauses A to H, wherein the sequence number is matched with a sequence number within a request context to identify an invalid RDMA access.

[0189] Although example clauses A to I are described above with respect to an RNIC consumer module, it is to be understood in the context of the present disclosure that the subject matter of example clauses A to I may additionally or alternatively be implemented by an apparatus or via a method.

[0190] Example clause J, an apparatus comprising at least one module configured to perform operations comprising:

[0191] Instantiate an application interface configured to interact with the RDMA transport mechanism;

[0192] Mapping interfaces to implement retry and zombie detection; and

[0193] When an invalid RDMA request is identified, the RDMA connection is maintained.

[0194] Example clause K, a device according to example J, wherein:

[0195] The upper layer protocol (ULP) response includes a sequence number and an RNIC consumer request context identifier; and

[0196] The sequence number carried by the ULP response is matched with the sequence number within the request context to identify an invalid ULP response message.

[0197] Example clause L. The apparatus of any one of example clauses J to K, further configured to perform operations comprising:

[0198] The invalid RDMA write identified by the sequence number is discarded without changing the state of the RDMA connection used for the RDMA write.

[0199] Example clause M. The apparatus of any one of example clauses J to L, further configured to perform operations comprising:

[0200] Generates padding data for an RDMA read response without changing the state of the RDMA connection used for RDMA writes.

[0201] Example clause N. The apparatus of any one of example clauses J to M, further configured to perform operations comprising:

[0202] inverting a cyclic redundancy check (CRC) on the generated padding data; and

[0203] Invalid data transfers are detected based on the inverted CRC.

[0204] Example clause O. The apparatus of any one of example clauses J to N, further configured to perform operations comprising:

[0205] Communicates with a transaction interface configured to transmit inbound ULP responses without reading receive queue (RQ) descriptors or implementing RQ semantics.

[0206] Although example clauses J to Q are described above with respect to an apparatus, it is to be understood in the context of the present disclosure that the subject matter of example clauses A to I may additionally or alternatively be implemented by an RNIC consumer module or via a method.

[0207] Example Clause P, a method for implementing remote direct memory access (RDMA) in a networked computing environment including one or more computing devices, the method comprising:

[0208] Implementing an RDMA transport interface configured to receive RDMA requests from an application;

[0209] Mapping interfaces to enable detection of zombie responses and requests; and

[0210] When a zombie response or request is detected, the current RDMA connection is maintained.

[0211] Example clause Q, according to the method of example clause P, further comprising:

[0212] Generate and assign remote access identifiers; and

[0213] A remote access identifier is passed to the application instead to implement storage registration and remote access semantics.

[0214] Example clause R. A system according to any one of example clauses P to Q, further comprising:

[0215] Based on the remote access identifier, identifying the RNIC consumer request context and specifying an offset within the RNIC consumer request; and

[0216] Based on the RNIC consumer request context, a data buffer associated with the RNIC consumer request is identified.

[0217] Example clause S, according to any of the method of example clauses P to R, further comprising using the remote access identifier to transmit a sequence number that can be used to identify an invalid RDMA access, wherein the sequence number matches a sequence number within the request context to identify the invalid RDMA access.

[0218] Example clause T, a method according to any one of example clauses P to S, further comprising:

[0219] The sequence number carried by the upper layer protocol (ULP) response is matched with the sequence number within the request context to identify invalid ULP response messages.

[0220] Although example clauses P to T are described above with respect to methods, it is to be understood in the context of the present disclosure that the subject matter of example clauses A to I may additionally or alternatively be implemented by an RNIC consumer module or via an appliance.

[0221] The present disclosure presented herein encompasses the subject matter set forth in the following example clauses.

[0222] Example Clause AA, a network interface card (NIC) consumer module having remote direct memory access (RDMA) capability, comprising logic to configure an RNIC consumer device to perform operations comprising:

[0223] Instantiate an interface configured to interact with the RDMA transport mechanism;

[0224] Sending an upper layer protocol (ULP) request via the interface;

[0225] receiving an RDMA packet in response to a ULP request; and

[0226] In response to receiving the out-of-order RDMA packet, continuing to complete the ULP request includes processing the out-of-order RDMA packet.

[0227] Example clause BB, an RNIC consumer module according to example clause AA, wherein the RDMA delivery mechanism is implemented in a lossy network.

[0228] Example clause CC, an RNIC consumer module according to any of example clauses AA to BB, wherein the header of the RDMA packet includes data usable to allow independent and out-of-order packet placement.

[0229] Although example clauses AA to CC are described above with respect to an RNIC consumer module, it is to be understood in the context of the present disclosure that the subject matter of example clauses AA to CC may additionally or alternatively be implemented by an apparatus or via a method.

[0230] Example clause DD, an apparatus comprising at least one module configured to perform operations comprising:

[0231] Instantiate an interface configured to interact with the RDMA transport mechanism;

[0232] Sending an upper layer protocol (ULP) request via the interface;

[0233] receiving an RDMA packet in response to a ULP request; and

[0234] In response to receiving the out-of-order RDMA packet, continuing to complete the ULP request includes processing the out-of-order RDMA packet.

[0235] Example clause EE, the device of example clause DD, is further configured to perform an operation comprising identifying the RNIC consumer request context using a remote key (RKey) and a virtual address (VA), and accessing a destination buffer.

[0236] Example clause FF, a device according to any of example clauses DD to EE, further configured to perform operations comprising identifying an RNIC consumer request context using received out-of-order RDMA write and read packets, and accessing a destination buffer.

[0237] Example clause GG, a device according to any of example clauses DD to FF, is further configured to perform operations including using the most significant nibble (MSN) of the received transmit message and the payload of the ULP response to identify the corresponding RNIC consumer request context.

[0238] Example clause HH, a device according to any of example clauses DD to GG, configured to perform operations including tracking RDMA transfers and ULP responses associated with an RNIC consumer request context.

[0239] Example clause II, a device according to any one of example clauses DD to HH, further configured to perform operations including completing the RNIC consumer request in response to detecting all required RDMA transfers and ULP responses even if some of the RDMA transfers and ULP responses arrive out of order.

[0240] Example clause JJ, a device according to any of example clauses DD to II, further configured to perform operations comprising completing RNIC consumer requests out of order relative to other requests processed on the same or different RNIC queue pairs (QPs).

[0241] Example clause KK, a device according to any of example clauses DD to JJ, further configured to perform operations including completing an RNIC consumer request prior to in-order completion and delivery of all previous packets on the same RNIC queue pair (QP).

[0242] Although example clauses DD to KK are described above with respect to an apparatus, it is to be understood in the context of the present disclosure that the subject matter of example clauses SS to KK may additionally or alternatively be implemented by an RNIC consumer module or via a method.

[0243] Example Clause LL, A method for implementing remote direct memory access (RDMA) in a networked computing environment including one or more computing devices, the method comprising:

[0244] Instantiate an interface configured to interact with the RDMA transport mechanism;

[0245] Sending an upper layer protocol (ULP) request via the interface;

[0246] receiving an RDMA packet in response to a ULP request; and

[0247] In response to receiving the out-of-order RDMA packet, continuing to complete the ULP request includes processing the out-of-order RDMA packet.

[0248] Example clause MM, a method according to example clause LL, wherein the header of the RDMA packet includes data operable to allow independent and out-of-order packet placement.

[0249] Example clause NN, the method of any one of example clauses LL to MM, further comprising identifying the RNIC consumer request context using a remote key (RKey) and a virtual address (VA), and accessing a destination buffer.

[0250] Example clause OO, the method of any of example clauses LL to NN, further comprising using the received out-of-order RDMA write and read packets to identify an RNIC consumer request context and access a destination buffer.

[0251] Example clause PP, according to any of example clauses LL to OO, further comprising identifying a corresponding RNIC consumer request context using a most significant nibble (MSN) of the received transmit message and a payload of the ULP response.

[0252] Example clause QQ, a method according to any of example clauses LL to PP, further comprising tracking RDMA transfers and ULP responses associated with the RNIC consumer request context.

[0253] Example clause RR, a method according to any one of example clauses LL to QQ, further comprising completing the RNIC consumer request in response to detecting all required RDMA transfers and ULP responses even if some of the RDMA transfers and ULP responses arrive out of order.

[0254] Example clause SS, the method of any of example clauses LL to RR, further comprising completing the RNIC consumer request out of order relative to other requests processed on the same or different RNIC queue pairs (QPs).

[0255] Example clause TT, according to any of example clauses LL to SS, further comprising completing the RNIC consumer request prior to in-order completion and delivery of all previous packets on the same RNIC queue pair (QP).

[0256] Although example clauses LL to TT are described above with respect to methods, it is to be understood in the context of the present disclosure that the subject matter of example clauses LL to TT may additionally or alternatively be implemented by an RNIC consumer module or via a device.

Claims

1. A network interface card (RNIC) consumer device having remote direct memory access (RDMA) capability, configured to provide interface functionality between an RNIC and an RNIC consumer, the RNIC consumer device comprising a hardware-based interface, the hardware-based interface being configured to interact with an RDMA transport mechanism of the RNIC, the RNIC consumer device comprising hardware-based logic, the hardware-based logic configuring the RNIC consumer device to perform an operation, the operation include: Sending an upper layer protocol (ULP) request to the RNIC via the hardware-based interface; Receiving, by the hardware-based interface, an RDMA packet from the RNIC in response to the ULP request; and In response to receiving the out-of-order RDMA packet, continuing to complete the ULP request by the hardware-based interface includes processing the out-of-order RDMA packet.

2. The RNIC consumer device of claim 1, wherein the RDMA transport mechanism is implemented in a lossy network.

3. The RNIC consumer device of claim 1, wherein a header of the RDMA packet includes data operable to allow independent and out-of-order packet placement.

4. An electronic device comprising at least one hardware-based component, the at least one hardware-based component being configured to provide interface functionality between a network interface card (RNIC) having remote direct memory access (RDMA) capabilities and an RNIC consumer, the hardware-based component comprising a hardware-based interface, the hardware-based interface being configured to interact with an RDMA transport mechanism of the RNIC, the device comprising hardware-based logic, the hardware-based logic configuring the device to perform an operation, the operation include: Sending an upper layer protocol (ULP) request to the RNIC via the hardware-based interface; Receiving, by the hardware-based interface, an RDMA packet from the RNIC in response to the ULP request; and In response to receiving the out-of-order RDMA packet, continuing to complete the ULP request by the hardware-based interface includes processing the out-of-order RDMA packet.

5. The device of claim 4, further configured to perform operations comprising identifying an RNIC consumer request context and accessing a destination buffer using a remote key RKey and a virtual address VA.

6. The device of claim 4, further configured to perform operations comprising using received out-of-order RDMA write and read packets to identify an RNIC consumer request context and access a destination buffer.

7. The device of claim 4, further configured to perform operations comprising using the most significant nibble MSN of the received transmit message and a payload of the ULP response to identify a corresponding RNIC consumer request context.

8. The device of claim 4, configured to perform operations comprising tracking RDMA transfers and ULP responses associated with an RNIC consumer request context.

9. The device of claim 4, further configured to perform operations comprising completing an RNIC consumer request in response to detecting all required RDMA transfers and ULP responses even if some of the RDMA transfers and ULP responses arrive out of order.

10. The apparatus of claim 4, further configured to perform operations comprising completing RNIC consumer requests out of order relative to other requests being processed on the same or different RNIC queue pairs (QPs).

11. The apparatus of claim 4, further configured to perform operations comprising completing an RNIC consumer request prior to in-order completion and delivery of all previous packets on the same RNIC queue pair QP.

12. A method for implementing remote direct memory access (RDMA) in a networked computing environment including one or more computing devices, the method being performed by a network interface card (RNIC) consumer device having RDMA capabilities, the RNIC consumer device being configured to provide interface functionality between an RNIC and an RNIC consumer, the RNIC consumer device comprising a hardware-based interface, the hardware-based interface being configured to interact with an RDMA transport mechanism of the RNIC, the RNIC consumer device comprising hardware-based logic, the method include: Sending an upper layer protocol (ULP) request to the RNIC via the hardware-based interface; Receiving, by the hardware-based interface, an RDMA packet from the RNIC in response to the ULP request; and In response to receiving the out-of-order RDMA packet, continuing to complete the ULP request by the hardware-based interface includes processing the out-of-order RDMA packet.

13. The method of claim 12, wherein the header of the RDMA packet includes data operable to allow independent and out-of-order packet placement.

14. The method of claim 12, further comprising using a remote key RKey and a virtual address VA to identify an RNIC consumer request context and access a destination buffer.

15. The method of claim 12, further comprising using received out-of-order RDMA write and read packets to identify an RNIC consumer request context and access destination buffer.

16. The method of claim 12, further comprising using the most significant nibble MSN of the received transmit message and a payload of the ULP response to identify a corresponding RNIC consumer request context.

17. The method of claim 12, further comprising tracking RDMA transfers and ULP responses associated with an RNIC consumer request context.

18. The method of claim 12, further comprising completing an RNIC consumer request in response to detecting all needed RDMA transfers and ULP responses even if some of the RDMA transfers and ULP responses arrive out of order.

19. The method of claim 12, further comprising completing RNIC consumer requests out of order relative to other requests being processed on the same or different RNIC queue pairs (QPs).

20. The method of claim 12, further comprising completing an RNIC consumer request prior to in-order completion and delivery of all previous packets on the same RNIC queue pair QP.

Citation Information

Patent Citations

  • Reducing number of write operations relative to delivery of out-of-order RDMA send messages

    CN1997977A

  • Reducing number of write operations relative to delivery of out-of-order RDMA send messages

    US20050132017A1

  • Iwarp RDMA read extensions

    US20150026286A1