BACK TO BLOG

RDMA over Converged Ethernet: How RoCE Works in GPU Clusters

RDMA over Converged Ethernet moves data between servers with less host processing. Its appeal grows when GPUs spend time waiting for data from other machines. The operational challenge is making that fast path behave predictably when jobs compete for bandwidth. Understanding RoCE means following both the memory-transfer path and the congestion signals that keep it moving.

What is RDMA over Converged Ethernet?

Remote direct memory access, or RDMA, lets a compatible network adapter transfer data directly into or out of memory made available for that purpose. RoCE carries those RDMA operations over Ethernet. It reduces intermediate copying and host networking-stack work, leaving more central processing unit (CPU) capacity for other tasks.

Three terms describe different layers:

Term What it describes Why the distinction matters
RDMA A memory-access and communication model Applications or their libraries need to support it.
RoCE RDMA transport over Ethernet Compatible endpoints and an appropriate Ethernet configuration are required.
Ethernet The underlying network technology An Ethernet connection alone says nothing about whether an application uses RDMA.

A network interface card, or NIC, is the adapter connecting a server to the network. A hardware RoCE implementation uses an RDMA-capable NIC to process the transport and place data in memory. Installing faster Ethernet adapters does not automatically move applications using ordinary operating-system network sockets onto this path.

We design, deploy, and operate workload-specific infrastructure through fully managed clusters. RoCE belongs in that whole-system design: the NIC, server topology, network configuration, and application runtime all affect the result. Our GPU cluster architecture explains how those layers fit together.

How the RoCE data path works

An RDMA application commonly uses verbs, the low-level operations exposed by an RDMA software library. A queue pair is a communication endpoint with queues for submitted work. Memory registration makes a memory region available to the adapter with defined access permissions.

A simplified RDMA write follows this sequence:

  1. The participating processes establish communication resources and arrange access to the destination memory region.
  2. The sender submits a write request describing the source data and destination.
  3. The sending NIC reads the data and transmits RoCE packets through the Ethernet fabric, the connected switches and links.
  4. The receiving NIC places the payload in the authorized destination memory region.

The operating system still manages resources, permissions, and setup. The acceleration comes from moving ordinary data-path operations away from repeated networking work in the kernel, the operating system's core. The Linux kernel's userspace verbs documentation distinguishes resource-management operations from fast-path access to hardware.

The receiving application also needs an appropriate synchronization protocol to know when data is ready to use. A direct memory transfer does not replace application coordination.

RoCEv1 versus RoCEv2

The RoCE mode documentation distinguishes two wire formats:

Property RoCEv1 RoCEv2
Encapsulation RDMA transport directly over Ethernet RDMA transport over UDP/IP over Ethernet
Network scope A Layer 2 Ethernet broadcast domain Routable across IP subnets
Packet identification Ethernet type 0x8915 UDP destination port 4791
Architectural implication Communication stays within the Layer 2 domain Fits routed, multi-rack Ethernet designs

UDP means User Datagram Protocol; IP means Internet Protocol. RoCEv2 adds those headers so routers can forward packets between subnets. It is the relevant version for a routed GPU fabric.

UDP encapsulation does not determine the reliability of the RDMA operation. With a Reliable Connected transport, RDMA endpoints handle acknowledgments and retransmissions, although exhausting the retry limit can still fail an operation. Packet loss can cause stalls and reduce throughput, which makes congestion behavior important even when delivery is reliable.

Where RoCE helps GPU workloads

RoCE is useful when cross-server communication consumes a meaningful part of a job's execution time or CPU budget.

  • Distributed training: Workers exchange gradients or intermediate model data. Coordinated operations across workers, called collectives, can put communication on the training step's critical path.
  • Distributed inference: A model split across servers may exchange data repeatedly during token generation. Small, frequent transfers can make latency as important as bulk bandwidth.
  • Separated prompt processing and generation: Moving these stages onto different GPU pools introduces transfers of the key-value cache, the saved attention state used during generation. The DistServe research makes available network bandwidth part of placement decisions.
  • RDMA-enabled storage: Compatible storage software can use RDMA to move data with less host networking overhead.

Independent inference replicas that fit inside individual servers can have a different bottleneck. Their customer requests may travel over ordinary networking while GPU communication stays local. The case for RoCE depends on the actual cross-node data path.

GPUDirect RDMA adds another distinction. On supported NVIDIA platforms, it allows a compatible NIC to access GPU memory directly, avoiding a staging copy through host memory. Working host-memory RDMA does not establish that this GPU-memory path is available. GPU support, drivers, memory-registration support, and the server's PCI Express topology, the arrangement of internal device connections, all matter.

RoCE also cannot remove a physical bandwidth limit. Illustrative arithmetic: a 400 Gb/s link carries at most 50 GB/s before overhead. Transferring 1 GiB across it takes at least about 21.5 milliseconds at that ideal rate. Protocol overhead, competing traffic, and endpoint limitations increase the time. This is a capacity calculation, not a measured result.

ECN and PFC control different problems

Congestion occurs when traffic arrives faster than an output path can transmit it. The excess waits in switch buffers. Synchronized transfers from many GPU workers can build a queue quickly, even when average network utilization looks moderate.

Two mechanisms often work together in a lossless RoCE design.

ECN provides end-to-end feedback

Explicit Congestion Notification, or ECN, allows a switch to mark packets as its queue builds. The receiver observes the marking and returns a congestion notification packet, or CNP, to the sender. A sender-side congestion-control algorithm reduces the injection rate.

Data Center Quantized Congestion Notification, or DCQCN, is one such algorithm. Its original research describes switch marking, receiver notifications, and sender rate adjustment. The control loop needs all three parts; enabling marking on a switch alone does not complete it.

PFC protects a buffer on an individual link

Priority-based Flow Control, or PFC, lets a device pause an upstream neighbor's transmission for a selected traffic priority. IEEE's PFC standard overview describes this per-class flow control on full-duplex Ethernet links.

PFC acts on a link and priority rather than an individual application flow. Unrelated flows sharing the paused priority can therefore stop together. Backpressure can spread upstream, and problematic configurations can create deadlocks. These limitations are documented in RDMA network research.

In a lossless design, ECN-driven rate control should have time to act before buffer pressure repeatedly forces pauses. PFC provides additional protection while traffic already in flight arrives. Buffer headroom is the reserved space needed to absorb that traffic after a pause is triggered.

ECN feedback runs from receiver to sender; PFC pauses one priority between adjacent devices.

Some implementations support RoCE configurations without PFC. Cumulus Linux, for example, documents an ECN-only RoCE mode. Congestion control and endpoint loss recovery must suit that mode. PFC is therefore a deployment-design choice with hardware and software dependencies. Removing it from a configuration designed around loss avoidance can expose very different recovery behavior.

The configuration that must agree end to end

RoCEv2 packets can be routed like other IP traffic, but predictable RDMA performance needs agreement beyond routing. A useful configuration record connects each setting to its function:

Configuration layer Required agreement Failure it can explain
Endpoints Compatible RoCE mode, addressing, drivers, adapter firmware (on-device software), and RDMA resources IP connectivity works while RDMA setup or transfers fail.
Packet classification Intended packet markings map to the correct switch priority and queue RDMA traffic receives ordinary best-effort treatment.
Congestion response Queue marking, receiver CNP generation, and sender response form a working loop Queues and pauses grow without sufficient sender slowdown.
Lossless buffering, where used PFC priority, pause handling, thresholds, and headroom match the link configuration Buffer drops, prolonged pauses, or upstream backpressure appear.
Packet sizing The configured RDMA packet size fits the complete path's maximum transmission unit, or MTU Small transfers work while larger traffic exposes path problems.

Differentiated Services Code Point, or DSCP, is an IP packet marking used for traffic classification. It is separate from a switch's internal queue number. A DSCP value does not inherently select the same queue on every device. Trust policies and mappings, together with any remarking along the routed path, determine treatment.

CNP traffic also needs timely delivery so feedback can reach senders. There is no universal priority number or buffer threshold suitable for every switch, link speed, and NIC. A configuration copied between hardware generations can preserve its syntax while changing its behavior.

“Converged” means these workloads can share Ethernet infrastructure with other traffic. It does not require placing management, storage, and GPU transfers in one undifferentiated traffic class. Performance prioritization also does not establish a security boundary between customers.

Containers need both network access and RDMA device access

Kubernetes schedules and manages containerized workloads in pods, groups of one or more containers placed together. Its ordinary pod network does not, by itself, provide a hardware RDMA path.

A container needs the appropriate network attachment, RDMA device access, userspace libraries, and memory-locking permissions. A device plugin exposes allocatable device resources to Kubernetes; a network attachment supplies the interface and addressing. The upstream RDMA device-plugin documentation separates those responsibilities. Advertising an RDMA resource does not automatically attach the corresponding network or reserve dedicated NIC bandwidth.

How to isolate a RoCE performance failure

We separate three questions: can the endpoints communicate through RDMA, can the intended memory path sustain the workload, and can the fabric maintain that behavior under contention? A pass at one layer leaves the others open.

The upstream RDMA performance tools include write, read, send, bandwidth, and latency microbenchmarks. Names such as ib_write_bw reflect the verbs ecosystem; the ib prefix alone does not establish that the physical link is native InfiniBand, a separate network technology with built-in RDMA support.

Observed evidence What it establishes What remains unresolved
Ping and ordinary IP traffic succeed Basic IP reachability RDMA permissions, transport setup, packet sizing, and queue treatment
Host-memory RDMA works The selected host-memory transport path functions GPU-memory access and GPU-to-NIC topology
GPU-memory point-to-point transfers work That GPU/NIC pair can use the selected path Other adapters, cross-rack capacity, and coordinated job behavior
Isolated jobs perform well, concurrent jobs stall An unloaded result is insufficient Shared queues, many-to-one bursts, capacity limits, and congestion response
Point-to-point transfers are healthy, collectives are slow A single transfer path is insufficient to explain the job Runtime transport selection, placement, operation mix, and synchronization

A useful incident record aligns workload slowdown with changes in NIC retries, switch drops, queue occupancy, ECN marks, CNPs, and pause duration. For GPU collectives, the NVIDIA Collective Communications Library (NCCL) documents congestion indicators alongside latency tails and unstable throughput. Counter names and availability vary by hardware. A rising notification count can indicate that congestion feedback is working. Sustained pauses accompanied by worsening job latency tell a different story. Neither counter is a standalone pass-or-fail metric.

The application setup path matters too. A distributed runtime may exchange connection information over TCP even when bulk transfers use RDMA, as the NCCL connection documentation describes. Transmission Control Protocol, or TCP, supplies a reliable byte-stream connection. Allowing RoCEv2 data traffic alone does not establish that every runtime bootstrap connection is reachable.

An operator plan for RoCE validation

This is an operator validation plan, not an observed Aranya result. A Global Identifier, or GID, identifies an RDMA port's address. On RoCE, a GID table entry associates that address with a RoCE mode and network device.

  1. Record the stack and acceptance targets. Capture server, GPU, NIC, and switch models; kernel, driver, firmware, communication-library, and benchmark versions; GPU-to-NIC topology; and the selected NIC, port, GID entry, network attachment, MTU, and traffic class. Record GPU allocation, workload shape, transfer sizes, concurrency, and run duration. Define workload-specific pass targets before traffic starts.
  2. Establish a host-memory baseline. Use matching endpoint settings for small-to-large transfers representative of the workload. Record bandwidth, latency, and data integrity on the intended NIC and port, first within a rack, then across racks.
  3. Repeat with GPU memory. Use a supported GPU-memory benchmark build for the same transfer sizes and placements. Cover the intended GPU/NIC pairs and record the actual memory path and transport. Containerized workloads use their intended pod, network, and device configuration.
  4. Add controlled contention. In an isolated allocation or maintenance window, introduce concurrent jobs, then synchronized many-to-one senders, called incast. Increase offered load in recorded stages. Capture NIC and switch counters before, during, and after each stage alongside workload metrics, including recovery after the added traffic stops.
  5. Apply workload-specific pass targets. Run the representative application at its intended scale. Training targets cover useful throughput and step time, including slow steps. Inference targets cover request throughput, time to first token, and time between output tokens, including the slow tail. Apply the agreed correctness, transport-selection, and recovery limits. A high adapter bandwidth result alone cannot establish a pass.

RoCE belongs inside the cluster operating model

RoCE retains Ethernet/IP networking while adding an RDMA data path and its operating responsibilities. Native InfiniBand supplies RDMA through a different fabric architecture. iWARP is another Ethernet RDMA approach, built over TCP. These are distinct transport choices. Our InfiniBand versus Ethernet comparison covers the broader selection decision.

The RoCE-specific responsibility is keeping endpoint software, GPU-memory access, queue treatment, congestion feedback, and workload placement consistent as the cluster changes. A driver upgrade, replacement adapter, or larger allocation can change the path a job actually uses.

clusterdOS is the open-source engine inside each cluster. It is built on Kubernetes, and can ship enterprise-grade Slurm and VMs. Slurm schedules batch jobs, while virtual machines (VMs) run separate guest operating systems. Through fully managed clusters, we handle architecture, deployment, and end-to-end operations. The agreed cluster specification defines the hardware and fabric configuration being delivered.

Our clusterdOS component overview shows what the engine brings together inside an individual cluster.

Talk to an engineer about a workload-specific GPU cluster, including its network requirements and operating responsibilities.