Networking Definition

What Is RDMA?

RDMA lets one machine read or write another machine's memory directly, without involving either CPU. Over Ethernet it is carried by RoCEv2, and it is how GPUs move data during AI training.

RDMA (Remote Direct Memory Access) lets one machine read or write another machine's memory directly over the network, without involving either CPU and without copying data through the operating system. The network adapter moves bytes straight between application memory on both ends, so latency is very low and CPU overhead is near zero. Over Ethernet, RDMA is carried by RoCEv2, which encapsulates it in UDP and IP so it can be routed across a standard data center. Because RDMA assumes the network does not drop packets, it runs on a lossless fabric, which OcNOS-DC provides on Broadcom Tomahawk 5 hardware.

Zero-copy, CPU bypass, and why that is the point

A normal network transfer copies data through the kernel and leans on the CPU at both ends. RDMA removes both. The adapter reads directly from application memory on the sender and writes directly into application memory on the receiver, a pattern called zero-copy with kernel bypass. Nothing traverses the CPU on the data path. That is what delivers RDMA's combination of very low latency, very high throughput, and almost no CPU cost, and it is why RDMA became the standard for GPU-to-GPU communication.

How RoCEv2 carries it over Ethernet

RoCEv2 (RDMA over Converged Ethernet, version 2) wraps RDMA in UDP and IP so it can be routed across a standard Layer 3 Ethernet fabric, no separate network required. The RDMA operation still runs adapter to adapter with the same zero-copy behavior; RoCEv2 simply gives it a routable Ethernet path. This is what lets a multi-vendor Ethernet fabric stand in for InfiniBand on GPU clusters.

Why AI collectives depend on it

AI training runs collective operations such as AllReduce: after each training step, every GPU exchanges gradients with every other GPU, then all wait for that exchange before the next step. The data volumes are large and the schedule is tight. RDMA keeps each exchange fast and off the CPU, so the collective that every GPU is blocked on finishes sooner. Multiply that across millions of steps and RDMA is a direct lever on total training time.

Why RDMA needs a lossless fabric

RDMA was designed for a no-drop transport. A single lost packet forces recovery that spikes tail latency and can stall the collective every GPU is waiting on. So RDMA over Ethernet always runs on a lossless fabric: Priority Flow Control and ECN keep the network no-drop, and dynamic load balancing keeps flows off hot links. OcNOS-DC supplies that fabric with PFC, ECN, Dynamic ECN, and DLB on Broadcom Tomahawk 5. See lossless Ethernet for how it is built.

Designing an RDMA fabric? Let's build it lossless.

Réservez une revue d'architecture →
FAQ

What Is RDMA FAQ

Qu'est-ce que RDMA ?
RDMA stands for Remote Direct Memory Access. It lets one machine read or write another machine's memory directly over the network, without involving either machine's CPU and without copying the data through the operating system kernel. The network adapter moves the bytes straight between application memory on both ends. The result is very low latency and very high throughput with almost no CPU overhead, which is why RDMA is the standard way GPUs exchange data during AI training.
How does RoCEv2 carry RDMA over Ethernet?
RoCEv2 (RDMA over Converged Ethernet, version 2) encapsulates RDMA in UDP and IP, so RDMA can be routed across a standard Layer 3 Ethernet data center rather than needing a separate network. The RDMA operation still runs adapter to adapter with the same zero-copy, CPU-bypass behavior; RoCEv2 just gives it a routable Ethernet path. This is what makes a multi-vendor Ethernet fabric a viable alternative to InfiniBand for GPU clusters.
Why do zero-copy and CPU bypass matter for AI?
AI training runs collective operations such as AllReduce, where every GPU exchanges gradients with every other GPU after each step, moving enormous amounts of data on a tight schedule. If the CPU had to copy every message through the kernel, it would become the bottleneck and burn power doing it. RDMA removes the CPU and the copies from the data path, so a GPU's data lands in the peer GPU's memory with minimal latency, which shortens the exchange every GPU is waiting on.
Why does RDMA need a lossless fabric?
RDMA was designed assuming the network does not drop packets. When a packet is lost, recovery is expensive and spikes tail latency, which can stall a whole GPU collective. So RDMA over Ethernet runs on a lossless fabric: Priority Flow Control and ECN keep the network no-drop. OcNOS-DC provides that fabric with PFC, ECN, and dynamic load balancing on Broadcom Tomahawk 5 hardware. See the lossless Ethernet and RoCEv2 pages for detail.