Home / Learn / AI Networking / What Is RoCE (RDMA over Converged Ethernet)?

On this pageWhat it is forHow it worksWhat “converged” meansThe need for a lossless networkWhy that is difficultImprovements over timeWhere it is usedStrengthsLimitationsRoCE compared with the alternativesWhat comes afterFor chip designersCommon questionsRelated guidesRelated guides

What Is RoCE (RDMA over Converged Ethernet)?

RoCE, short for RDMA over Converged Ethernet, is a protocol that carries remote direct memory access traffic over Ethernet networks. It brings the low latency and low processor overhead of RDMA to the standard network technology used in data centers. RoCE is widely deployed for storage and for AI and high-performance computing clusters. It has usually required the Ethernet network to be configured so that it does not drop packets.

What it is for

Remote direct memory access lets a network adapter move data directly between the memory of applications on different machines, bypassing the operating system. It was developed for InfiniBand, a specialized network.

Most data centers run on Ethernet. RoCE was created so they could have RDMA without building a separate InfiniBand network. It is pronounced “rocky”.

How it works

RoCE takes the transport protocol from InfiniBand and places it on Ethernet. The upper layers that applications use are unchanged, so software written for InfiniBand RDMA works with RoCE.

There are two versions.

RoCE v1RoCE v2
Carried inEthernet frames directlyUDP packets over IP
Routable across subnetsNoYes
Use todayRareStandard

RoCE v1 placed the InfiniBand transport directly inside Ethernet frames. It worked only within a single local network segment.

RoCE v2 wraps the transport in UDP and IP. Because it uses IP, it can be routed across a data center like any other traffic. The UDP header also gives switches a field to use when balancing flows across multiple paths. When people say RoCE today, they almost always mean v2.

What “converged” means

The name refers to converged Ethernet: a single Ethernet network carrying storage, cluster and ordinary traffic together, where separate networks used to be needed. A set of Ethernet enhancements, known collectively as data center bridging, was developed to make that possible.

The need for a lossless network

InfiniBand guarantees that packets are not dropped for lack of buffer space. Its transport protocol was designed with that guarantee in mind and handles loss poorly. In its classic form, when one packet is lost, the sender resends that packet and everything after it. Throughput collapses if this happens often.

Ordinary Ethernet drops packets when a switch’s buffers fill. To run RoCE well, the network is therefore configured to avoid drops.

Priority flow control. A switch or adapter whose buffer is filling sends a pause message to its neighbor, which stops transmitting traffic of that priority until told to resume.

Explicit congestion notification. Switches mark packets when queues grow, without dropping them. The receiver tells the sender, which slows down.

Congestion control algorithms on the adapters adjust sending rates in response. The most widely used combines congestion marks with rate adjustment. Others use measured delay.

Used together, congestion control keeps queues short most of the time, and priority flow control acts as a safety net.

Why that is difficult

Priority flow control solves one problem and creates others.

  • Head-of-line blocking. A pause stops all traffic of that priority on a link, including flows that have nothing to do with the congestion.
  • Congestion spreading. A pause at one switch fills buffers at the one before it, which then pauses its own neighbors. The effect can travel backward through the network.
  • Pause storms. A malfunctioning device that sends pauses continuously can stall a large part of the network.
  • Deadlock. In some topologies, pauses can form a cycle in which no traffic moves.
  • Configuration burden. Settings must be consistent across every switch and adapter, and thresholds must be tuned.

These issues are manageable, and many large networks run RoCE successfully. They are the main reason RoCE has a reputation for needing expertise.

Improvements over time

RoCE has been refined considerably.

  • Selective retransmission. Newer adapters resend only lost packets, making occasional loss far less damaging.
  • Better congestion control, tuned for large-scale and AI workloads.
  • Operation with less reliance on pauses. Some operators run RoCE with priority flow control limited or disabled, relying on congestion control and improved loss recovery.
  • Better load balancing in switches, splitting traffic more finely across paths.
  • Tooling for configuration and monitoring.

Where it is used

  • Storage. High-speed access to networked storage, including the networked form of the solid-state drive protocol.
  • AI clusters. A large share of AI back-end networks built on Ethernet use RoCE.
  • Cloud infrastructure. Major cloud providers run it at very large scale.
  • Databases and analytics.
  • High-performance computing.

Strengths

  • RDMA performance on Ethernet.
  • Standard infrastructure and many suppliers.
  • Software compatibility with InfiniBand RDMA applications.
  • Routable across large networks.
  • Mature hardware and software.
  • Lower cost than a separate specialized network.

Limitations

  • Sensitive to loss in its classic form.
  • Lossless configuration is complex.
  • One path per flow. The transport expects packets in order, so all packets of a flow follow the same path. With the few very large flows typical of AI training, load can be uneven.
  • Connection state for every pair of endpoints.
  • Congestion control is not part of the base standard, so implementations differ.
  • Interoperability between vendors’ advanced features is not guaranteed.

RoCE compared with the alternatives

InfiniBandRoCE v2iWARPUltra Ethernet
NetworkDedicatedEthernetEthernetEthernet
TransportInfiniBandInfiniBand transport over UDPRDMA over TCPNew, designed for AI and HPC
Lossless networkBuilt inTypically requiredNot requiredNot required
Multipath per flowAdaptive routingLimitedLimitedPer-packet
AdoptionHigh in HPC and AIHighLowEmerging

What comes after

The Ultra Ethernet standard was developed to address RoCE’s limitations for AI and HPC. It keeps Ethernet and RDMA-style operation and replaces the transport with one that spreads packets across paths, accepts out-of-order delivery and does not need a lossless network.

RoCE remains the established choice and will be in service for years. The two can share the same physical network.

For chip designers

A network interface that supports RoCE must implement the transport in hardware, including reliability, congestion control and the RDMA operations, and must work with priority flow control and congestion notification. Interoperating with the widely deployed adapters and switches from major vendors is essential. New designs generally need to consider both RoCE and the newer transport. and Networking IP for XPUs and the AI Fabric.

Common questions

What does RoCE stand for?

RDMA over Converged Ethernet.

What is the difference between RoCE v1 and v2?

Version 1 runs directly over Ethernet and cannot be routed between subnets. Version 2 runs over UDP and IP and can be routed. Version 2 is the one in general use.

Does RoCE require a lossless network?

Traditionally, yes, to perform well. Improvements such as selective retransmission and better congestion control have reduced that dependence, and some operators now run it without full lossless configuration.

Related guides

Related guides in other topics