Skip to main content
NETWORKING · EDGE AI

What is RoCEv2?

RoCEv2 (RDMA over Converged Ethernet, version 2) is a networking standard that carries RDMA inside UDP/IP packets, so low-latency, low-CPU data transfer can run and be routed over standard Ethernet. It needs RDMA-capable network cards at each end and switches set up to keep packet loss low, usually with PFC and ECN.

01

What RoCEv2 is

RoCEv2 (RDMA over Converged Ethernet, version 2) is a networking standard that brings RDMA to routed Ethernet networks, enabling low-latency, low-CPU-overhead data transfer on the infrastructure most industrial and edge AI deployments already use.

RDMA originally required a dedicated fabric such as InfiniBand. RoCE made it possible to run the same RDMA transport over Ethernet, and RoCEv2, published by the InfiniBand Trade Association in 2014, extended it to routed IP networks, which is what most industrial and OT environments actually are.

Underneath, RoCEv2 keeps the InfiniBand transport layer that handles RDMA reads, writes and sends, and wraps it in UDP and IP headers instead of InfiniBand network headers. Packets use UDP destination port 4791, so switches and routers handle them like any other IP traffic.

02

What changed from RoCEv1

Compared with RoCEv1, RoCEv2 made three changes that matter for industrial deployment.

  • //
    Runs over UDP/IP. That makes it routable across standard Layer 3 networks, where RoCEv1 was confined to a single Ethernet broadcast domain.
  • //
    Works with standard Ethernet switches. Provided they support the quality-of-service features it relies on. No specialist fabric is required.
  • //
    Scales into multi-subnet deployments. Edge AI architectures can span VLANs and subnets, with load spread across links using the UDP source port.
03

Why the network settings matter

RDMA was designed for a fabric that almost never drops packets. Standard Ethernet drops packets when a switch buffer fills, and early RoCE hardware recovered from loss slowly. RoCEv2 networks therefore use a handful of switch features to keep loss low and react to congestion early.

Feature Standard What it does Configured on
Priority Flow Control (PFC) IEEE 802.1Qbb Pauses one traffic class on a link before buffers overflow Switches and network cards
Explicit Congestion Notification (ECN) RFC 3168 Marks packets when queues build, instead of dropping them Switches
Congestion control (DCQCN) Vendor implementations Slows the sender when it receives ECN marks Network cards
Traffic classes (DSCP or 802.1p) IETF, IEEE 802.1Q Keeps RoCE traffic in its own queue Switches and hosts
Jumbo frames Vendor support Carries larger RDMA payloads per packet Whole path

Newer network cards cope much better with occasional loss, and some deployments run RoCEv2 on lossy Ethernet with ECN alone. Even then, consistent traffic classes and congestion settings across the path matter more than raw link speed.

FAQ · 01
What is RDMA and why does it matter for edge AI?
RDMA lets one system read or write another system’s memory through the network card, with almost no CPU involvement. For edge AI, it lowers latency, frees processor time for inference and lets several nodes act as one system.
Read the full FAQ —
04

RoCEv2 vs InfiniBand and iWARP

InfiniBand is a dedicated fabric with its own adapters and switches, built for lossless RDMA from the start, and it remains common in large AI training clusters; our InfiniBand FAQ covers it. iWARP carries RDMA over TCP, so it tolerates loss without special switch settings but adds TCP processing in the network card.

RoCEv2 sits between them. It uses ordinary Ethernet switches and cabling, so it fits networks that already run Ethernet everywhere, but it rewards careful switch configuration. Because it rides on UDP and IP, our guide to the TCP/IP model is a useful reminder of where it sits in the stack, and our Layer 2 vs Layer 3 switch guide explains the routed networks RoCEv2 was built for.

05

What to check before specifying RoCEv2

For edge AI, RoCEv2 is the practical way to get the CPU-efficiency and latency benefits of RDMA without redesigning the physical network. The main prerequisite is that the network cards, switches and operating system all support it cleanly, a point worth checking during platform selection rather than after procurement.

  • //
    Network cards. RDMA-capable adapters with RoCEv2 support, current firmware and drivers for your operating system and kernel.
  • //
    Switches. PFC, ECN and enough buffer for the traffic pattern. Managed industrial switches are needed for any of this; unmanaged switches have no settings to configure.
  • //
    Consistent settings. The same traffic class, MTU and congestion settings on every hop between the nodes.
  • //
    Software. Applications or frameworks that use RDMA, such as AI communication libraries, MPI or NVMe over Fabrics.
  • //
    Link speed. RoCEv2 runs at 10, 25, 100 Gbit/s and above. At the edge, 10GbE or 25GbE is typical; edge AI servers with PCIe slots take the network cards.
06

RoCEv2 at the edge

Most RoCEv2 networks are in data centres, but the same approach suits edge AI systems with several GPUs or nodes in one cabinet, on a vehicle or across a site. At that scale the network is small enough to configure consistently: often one or two managed switches between a handful of edge servers, a camera aggregation computer and network storage.

Keep the RDMA traffic on its own VLAN and traffic class, apart from cameras, PLCs and office traffic, so a burst of video cannot cause the congestion RoCEv2 is most sensitive to. Test the whole path under realistic load before deployment, because a single switch with a missing setting can quietly undo the benefit.

07

Quick answers on RoCEv2

RoCEv2: common questions

What port does RoCEv2 use?

UDP destination port 4791. The source port varies per connection, which lets switches spread RoCEv2 flows across parallel links.

Is RoCEv2 routable?

Yes. It runs inside IP packets, so routers and Layer 3 switches forward it between subnets. RoCEv1 was not routable.

What is the difference between RoCE and RoCEv2?

Routing. RoCE (v1) sits directly on Ethernet and stays within one broadcast domain. RoCEv2 wraps the same transport in UDP/IP so it can cross subnets.

Does RoCEv2 need lossless Ethernet?

It works best with it. PFC and ECN keep loss low. Newer network cards tolerate some loss, but performance still drops if packets are lost regularly.

What speeds does RoCEv2 run at?

10 Gbit/s and up. It is common at 25, 100, 200 and 400 Gbit/s in data centres, and at 10 or 25 Gbit/s at the edge.

We build edge AI computers and servers as standard, checking RoCEv2 support across the network card, switch and operating system and fitting the cards and drivers before the system ships.