RoCE carries Remote Direct Memory Access (RDMA) over Ethernet. RoCEv2 puts the InfiniBand transport inside UDP and IP, allowing RDMA traffic to cross routed networks.
RDMA lets a NIC transfer data between registered application buffers on different servers. Applications use it through RDMA APIs or communication libraries, reducing CPU work and intermediate memory copies during transfers.
How RDMA moves data
An application creates queue pairs, each containing a send queue and a receive queue. It posts work requests describing the operation and buffers, and the NIC reports completed work through a completion queue.
Memory registration gives the adapter access to specified buffers with defined permissions. Remote reads and writes require the appropriate memory key and access rights. The operating system and CPU still establish these resources and run the application.
Kernel bypass lets the application submit transfers without sending each packet through the kernel's normal networking stack. Zero copy avoids intermediate CPU copies between application and networking buffers. Application packing, GPU staging or other software can still introduce copies.
A one-sided RDMA write places data into a permitted remote memory region. An RDMA read fetches data from it without a matching receive request for each operation. Two-sided messaging requires the receiving application to post a destination buffer.
In reliable connected mode, the NIC handles transport acknowledgments, packet sequencing and retransmission. Packet ordering applies within the connection, and the application must still coordinate access to shared data. UDP supplies the encapsulation, while the InfiniBand transport provides this reliability.
RoCEv1 and RoCEv2
RoCEv1 carries the InfiniBand network and transport headers directly over Ethernet. Its traffic stays within a Layer 2 domain, which limits how a fabric can be routed and scaled.
RoCEv2 replaces the InfiniBand global routing header with IP and UDP. This enables routed leaf and spine networks, with Ethernet switches forwarding the IP packets between RDMA endpoints.
| Property | RoCEv1 | RoCEv2 |
|---|---|---|
| Encapsulation | Ethernet, InfiniBand network and transport headers | Ethernet, IP, UDP and InfiniBand transport headers |
| Identification | EtherType 0x8915 | UDP destination port 4791 |
| Network scope | Layer 2 domain | Routed IPv4 or IPv6 network |
| IP ECN marking | Not available, because the packet has no IP header | Carried in the IP header, which DCQCN uses |
RoCE and InfiniBand share RDMA transport operations, but use different network fabrics. RoCEv2 uses Ethernet and IP routing, while InfiniBand uses its own link and network architecture. The choice requires a separate assessment of the workload, topology and supported equipment.
Configure congestion control across the fabric
Reliable delivery does not make packet loss free of cost. Retransmissions consume capacity and delay completion, so conventional RoCE designs combine congestion control with measures to prevent buffer overflow.
Priority-based Flow Control (PFC) pauses a selected priority on one Ethernet link. Explicit Congestion Notification (ECN) marks packets so endpoints can respond to congestion before queues overflow. They act at different scopes and need separate configuration.
| Mechanism | What it does | Where it is configured |
|---|---|---|
| PFC under IEEE 802.1Qbb | Tells the directly connected transmitter to pause a selected priority when receive buffering runs short | NIC and switch ports on each participating link |
| ECN marking under RFC 3168 | Sets Congestion Experienced in eligible IP packets as switch queues build | Switch queues and thresholds |
| Congestion notification packets (CNPs) and DCQCN | Receiver sends congestion feedback, and the sender adjusts its transmission rate | Receiving and sending NICs, with switch ECN marking |
| DSCP and priority mapping | Maps packets into the intended traffic class, queue and PFC priority | Sending NIC, switch ingress classification and every subsequent hop |
| Buffer headroom | Holds packets still arriving while a pause takes effect | Switch ingress buffers and NIC receive buffers, using each platform's supported calculations |
| Enhanced Transmission Selection under IEEE 802.1Qaz | Allocates bandwidth among traffic classes | NIC and switch scheduling, with Data Center Bridging Exchange (DCBX) where used |
| PFC watchdog | Detects prolonged pauses and applies recovery actions | Supported switch and NOS configuration |
DCQCN means Data Center Quantized Congestion Notification. The receiver generates CNP feedback after seeing ECN-marked traffic, and the sender's NIC reduces its rate. Give congestion feedback suitable queue treatment so it can return during congestion.
DSCP trust and classification must agree with the intended policy throughout the path. Check how each NIC marks traffic and how every switch maps it into queues. A routed hop replaces the Ethernet header, so a design that depends only on VLAN priority markings needs particular care.
Size headroom for the port speed, cable delay and the platform's packet and pause-response assumptions. Copying thresholds from another switch can leave too little space for traffic already in flight. Check each NOS release's buffer and QoS behavior. Verify the chosen MTU across the entire path, including any encapsulation overhead.
PFC can spread congestion upstream, block unrelated flows sharing a priority and form deadlocks. Pause storms can stop useful traffic even when links remain up. A watchdog can break the condition by temporarily disabling pause handling and dropping affected traffic, so recovery must also be tested.
A lossless fabric is one deployment choice, rather than a requirement for every implementation. NVIDIA documents Resilient RoCE, which uses ECN without PFC, and Zero Touch RoCE, which needs neither PFC nor ECN configuration on the switches, both with hardware loss recovery. Use the NIC, firmware and driver combination approved for that mode, then test congestion and loss with your workload.
RoCE in AI clusters
Distributed training uses collectives such as AllReduce to exchange results across GPUs. Synchronized transfers can make several senders compete for the same egress links, while oversubscription and uneven path use add congestion. A slow communication stage can hold up the next computation stage.
NCCL can use RoCE for communication between servers. GPUDirect RDMA lets a supported NIC access GPU memory directly, avoiding a staging copy through host memory. It requires compatible GPUs, drivers and PCIe topology in addition to the Ethernet adapter.
On 28 May 2023, NVIDIA introduced Spectrum-X with Spectrum-4 switches, BlueField-3 adapters and acceleration software. Its adaptive RoCE routing and endpoint packet reordering depend on the matching platform components. Use the qualified combination for those functions.
The Ultra Ethernet Consortium released Specification 1.0 on 11 June 2025 and version 1.1 on 12 October 2026. Its Ultra Ethernet Transport is a separate transport design. RoCEv2 support alone does not establish compatibility with that specification.
Choose the NIC and switch together
Start with network interface cards that support RoCEv2 in the intended driver and firmware release. Check the server's card format, PCIe resources, cooling and cabling before selecting a port speed.
| Product | Type | Ethernet ports | Form factor |
|---|---|---|---|
| NVIDIA ConnectX-6 Dx MCX623436AN-CDAB | RDMA NIC | Two 100GbE QSFP56 ports | OCP 3.0 |
| NVIDIA ConnectX-7 MCX713114TC-GEAT | RDMA NIC | Four 50GbE SFP56 ports | Full-height, half-length PCIe card |
| Intel E830-XXVDA2 | RDMA NIC | Two 25GbE SFP28 ports | PCIe card with low-profile and full-height brackets |
| NVIDIA BlueField-3 B3220L 900-9D3B4-00SV-EA0 | SuperNIC | Two 200GbE QSFP112 ports | Full-height, half-length PCIe card |
| NVIDIA SN4700 | Ethernet switch hardware with ONIE | Thirty-two 400GbE QSFP-DD ports | 1U |
| Edgecore AIS800-64O | Ethernet switch hardware with ONIE | Sixty-four 800GbE OSFP800 ports | 2U |
The switch forwards RoCEv2 packets, while the NIC terminates the RDMA transport. Confirm that the selected switch and NOS release provide the PFC, ECN, buffer management and counters your design uses. ONIE installs software and does not supply that configuration.
A general RoCEv2 capability does not establish GPUDirect RDMA or Spectrum-X qualification for every adapter in the table. Match optics, cables, breakout and FEC to the actual link at each end. The network operating system and its release are part of the purchase decision.
Verify the path before production
Check endpoint discovery before testing throughput. An active Ethernet link alone does not prove that the application selected RoCEv2 or that the congestion policy works.
| Tool | What to verify |
|---|---|
rdma link show | Expected RDMA device, associated network interface and active link state |
ibv_devinfo | Userspace access to the intended adapter, port and device capabilities |
Perftest ib_write_bw | RDMA write bandwidth between the selected endpoints using the intended transport |
Run the perftest server on one host and the client on the other with matching test options. Select the intended RDMA device, port and RoCEv2 addressing explicitly. Record the tool version, message sizes, queue settings, duration and result.
Then test concurrent senders and the application's actual communication pattern. For GPU workloads, verify that NCCL selected the intended RDMA interfaces and test GPU-memory transfers separately from host-memory transfers. A successful host-buffer benchmark does not establish the GPU path.
Compare NIC retransmission and CNP counters with switch ECN marks, PFC pause duration, queue occupancy and drops. ECN marks can show congestion control working, while sustained pauses or watchdog events need investigation. Agree on workload-specific acceptance limits before production.
Protect memory and traffic
RoCE does not encrypt traffic by itself. Memory keys control access to registered regions, and the invariant CRC (ICRC) detects packet corruption. Encryption requires a supported security implementation for the chosen RDMA path. Confirm that separately instead of assuming that ordinary host IPsec or DTLS settings cover offloaded traffic.
Before ordering, confirm the complete NIC, firmware, driver, switch and NOS combination. Require evidence for congestion behavior, GPU access where needed and recovery from link or pause faults. Port speed alone does not establish those results.
Hardware Nation is a partner of Accton/Edgecore and NVIDIA.
About Hardware Nation:
Hardware Nation is a professional services company that accelerates network transformation through a disaggregated, open approach, enabling freedom of choice, flexibility, and cost efficiency. Our seasoned experts have worked on projects for some of the world’s leading organizations, leveraging a hybrid cloud-first and AI-enabled approach. We help our customers navigate the ecosystem, drawing on decades of experience. Our deployments are powered by leading white box and OEM network, compute, and storage vendors. Our expertise encompasses a wide range of industries and use cases, including enterprise, cloud, data center, AI, 5G/ISP infrastructure, and edge IT.
Humza Altaf
Network Engineer
Humza is a network engineer at Hardware Nation Labs, where his enthusiasm for Open Networking drives his work. With a blend of deep expertise and innovative approaches, he designs robust, scalable networks of the future. His practical experience includes configuring and deploying a range of protocols such as LACP, VLANs, MPLS, and VRRP. At his previous role, he was part of a SONiC testing team, further honing his skills in network setup and troubleshooting. Humza is also adept at network analysis with tools like Wireshark, enhancing his ability to manage complex network environments.
Rahul Narwal
Content Writer
Rahul is a content writer passionate about AI and software development, blending creativity with technical expertise. He creates engaging articles, visuals, and research papers in collaboration with seasoned experts, simplifying complex topics for both technical and non-technical audiences.
Alex Cronin
Co-Founder and Solutions Architect
Alex Cronin is the founder of Hardware Nation and Nanites AI. He is a graduate of Georgia Tech with 20 years of experience in networking and data center infrastructure across enterprises, service providers and hyperscalers. His work spans traditional and open networking, production SONiC deployments, multivendor integration and direct collaboration with manufacturers and engineering teams. Hardware Nation has served organizations including NASA, Lockheed Martin, Accenture, Stanford University and Georgia Tech.
Alex leads engineering teams and contributes directly to architecture, code, integration and evaluation. At Nanites AI, he has led nearly two years of development of an agentic NetOps platform for network troubleshooting. He also develops AI automation for product research and leads business operations at Hardware Nation.
Nanites AI has been cited in Gartner’s Market Guide for Agentic NetOps Software, covered by InformationWeek and discussed by Cisco DevNet. It was selected as one of 12 finalists from more than 400 applicants in the 2025 T Challenge, organized by T-Mobile and Deutsche Telekom. Alex has presented his work at Deutsche Telekom in Bonn, CableLabs and Network X Americas.