Home / Learn / AI Networking / What Is RDMA (Remote Direct Memory Access)?
On this page
What conventional networking costsWhat RDMA changesHow it worksTypes of operationBenefitsWhere RDMA runsUsesRDMA and acceleratorsChallengesHow RDMA is evolvingRDMA and DMAFor chip designersCommon questionsRelated guidesWhat Is RDMA (Remote Direct Memory Access)?
RDMA, or remote direct memory access, lets one computer read and write another computer’s memory over the network without involving either machine’s operating system in the transfer. The network adapter does the work in hardware and places data straight into the application’s memory. That removes the copying and processing that slow down conventional networking. RDMA delivers very low latency and high throughput with little load on the processor, and it is the standard way accelerators exchange data in AI clusters.
What conventional networking costs
When an application sends data over an ordinary network connection, a lot happens.
- The application asks the operating system to send.
- The data is copied from the application’s memory into the operating system’s.
- The operating system runs the network protocol, dividing the data into packets and adding headers.
- The packets go to the network adapter.
At the receiving end, the steps happen in reverse, with interrupts, more protocol processing and another copy.
Each step uses processor time. Each copy uses memory bandwidth. Switching between the application and the operating system has its own cost. At tens or hundreds of gigabits per second, a server’s processors can be largely consumed by networking alone.
What RDMA changes
RDMA rests on three ideas.
Kernel bypass. The application talks to the network adapter directly, without calling the operating system for each transfer.
Zero copy. The adapter reads data straight from the application’s memory and writes it straight into the receiving application’s memory. No intermediate copies are made.
Transport offload. The network protocol, including reliability and ordering, is run by the adapter’s hardware, not by the host processor.
The processors at both ends are almost uninvolved in moving the data.
How it works
Memory registration. Before memory can be used for RDMA, the application registers it with the adapter. The operating system fixes that memory in place and gives the adapter the information to reach it. The application receives keys that identify the region.
Queue pairs. Communication runs through pairs of queues, one for sending and one for receiving. The application posts requests describing work to be done.
Completion queues. When the adapter finishes a request, it places a notice in a completion queue for the application to collect.
The verbs interface. The set of operations applications use to do all this is known as verbs.
Types of operation
| Operation | What it does | Remote side involved? |
|---|---|---|
| Send and receive | Passes a message. The receiver must have posted a buffer. | Yes, its application supplies a buffer |
| RDMA write | Writes data directly into a specified location in remote memory | No |
| RDMA read | Reads data directly from a specified location in remote memory | No |
| Atomic operations | Compare-and-swap or add, on remote memory | No |
Read and write are called one-sided. The remote application’s processor is not interrupted or even aware. The remote adapter serves the request by itself, provided the requester presents a valid key for the memory.
Benefits
- Low latency. Transfers complete in microseconds.
- High throughput. The link’s full capacity can be used.
- Low processor load. Cores are free for the application.
- Predictability. With less software in the path, timing varies less.
- Efficiency. Less energy spent per unit of data moved.
Where RDMA runs
RDMA is a capability, and several network technologies provide it.
| Technology | Network | Notes |
|---|---|---|
| InfiniBand | Its own dedicated network | RDMA is native. |
| RoCE | Ethernet | Carries InfiniBand’s transport over Ethernet. |
| iWARP | Ethernet, over TCP | Less widely used |
| Ultra Ethernet | Ethernet | A new transport designed for AI and HPC, with RDMA-style operation. |
Uses
- AI training. Accelerators in different servers exchange gradients and parameters at every step.
- High-performance computing. Message passing between the nodes of a supercomputer.
- Storage. Fast access to remote storage, including the network version of the standard protocol for solid-state drives.
- Distributed databases and key-value stores.
- Memory disaggregation. Using memory located in another machine.
- Financial trading, where microseconds matter.
RDMA and accelerators
In AI clusters, the data being exchanged is in accelerator memory, not in the server’s main memory. If it had to pass through main memory on the way to the network adapter, the benefit of RDMA would be partly lost.
Technologies exist that let the network adapter transfer data directly to and from accelerator memory. The path runs from one accelerator, through its server’s network adapter, across the network, to the adapter in another server and into the memory of the accelerator there, with no detour through host memory or the CPU. This direct path is central to efficient distributed training.
Challenges
- Programming complexity. The interface is lower-level and harder to use than ordinary networking. Most applications reach RDMA through libraries.
- Network requirements. The traditional RDMA transports perform badly when packets are lost, so the network must prevent loss. On Ethernet this has required careful configuration.
- Memory registration. Fixing memory in place has a cost and constrains the operating system.
- Connection state. Traditional RDMA keeps state for every connection. In very large clusters, the amount adds up.
- Security. A valid key gives direct access to memory. Key management and isolation between tenants need care.
- Specialized hardware. The adapter must support it.
- Virtualization. Giving virtual machines and containers RDMA access with isolation adds complexity.
How RDMA is evolving
Traditional RDMA assumed a lossless network, in-order delivery over a single path and an established connection. Those assumptions strain at the scale of today’s largest AI clusters.
Newer designs keep the essentials, direct placement of data in memory, hardware offload and bypass of the operating system, and relax the rest. They spread packets over many paths, accept out-of-order arrival, tolerate occasional loss and avoid connection set-up.
RDMA and DMA
The name builds on direct memory access, or DMA, in which a device transfers data to or from memory within one machine without the processor copying it. RDMA extends that principle across a network.
For chip designers
RDMA is implemented in network interface hardware: network cards, DPUs and, increasingly, the networking built into accelerators.
- The hardware must run the transport, track connections or peers, look up memory regions and check keys, and move data, all at line rate.
- It needs a high-performance DMA path to host or accelerator memory.
- It must interoperate precisely with other vendors’ implementations.
This is a substantial and specialized design. and Networking IP for XPUs and the AI Fabric.
Common questions
What does RDMA stand for?
Remote direct memory access.
Why is RDMA faster than ordinary networking?
It bypasses the operating system, avoids copying data between buffers and runs the network protocol in the adapter’s hardware. Far less processor work is needed for each transfer.
Does RDMA need special hardware?
Yes. Both ends need network adapters that support RDMA, and the network between them must be suitable for the RDMA technology in use.