Part 7 of a series on data center networking for AI
This is where the lossless-fabric requirements from Part 1, the PFC/ECN config from Part 6, and the QoS caveats throughout come together.
Why loss is so much more expensive for RDMA than for TCP
TCP handles packet loss by retransmitting, which is expensive, but the protocol assumes loss happens and is built around absorbing it.
RDMA’s entire performance advantage comes from bypassing the CPU and OS kernel (GPUDirect RDMA) with the NIC writing directly into GPU memory with no software in the loop. That efficiency is what makes packet loss so much more costly here because a single dropped packet forces retransmission of everything behind it in that operation, stalling a synchronized collective step (Part 1’s barrier synchronization) far more expensively than a lost TCP segment ever would. This is the entire reason the RDMA-over-Ethernet world builds an artificial lossless guarantee on top of a fabric that was never designed to be lossless in the first place.
To note, RoCEv2 doesn’t strictly require a lossless fabric, rather it has a native loss-recovery mechanism. RoCEv2’s InfiniBand Base Transport Header carries a Packet Sequence Number (PSN); if a packet is dropped, the receiver detects the PSN gap and sends a NACK back to the sender identifying exactly which sequence number to retransmit from. RoCEv2 can survive a lossy network. The entire point of PFC, ECN, and DCQCN is to make that recovery path rare, because every time it fires, it’s the expensive, job-stalling event described above.
PFC: link-level losslessness
Priority Flow Control (PFC), IEEE 802.1Qbb, is how Ethernet “fakes” losslessness one hop at a time. When a switch’s egress queue for a given priority (class of service) starts filling up, it sends a PFC pause frame back to the upstream device, telling it to stop transmitting on that priority for a specified duration, encoded as a 2-octet timer in units of “pause quanta” (the time to transmit 512 bits at the port’s speed). Critically, PFC operates per class of service, not per port. This means RoCE traffic on a specific CoS can be paused without pausing everything else sharing that link.
Pause carries risk: it’s a link-level, all-or-nothing instruction for that priority, and it doesn’t distinguish the flow actually causing congestion from every other flow sharing that queue. Paused traffic backs up into the sender’s own queue, which can trigger that device to pause its own upstream neighbor, cascading backward through the fabric hop by hop. In severe cases, which are commonly caused by a single malfunctioning NIC that keeps sending pause frames without ever draining its own queue, this becomes a PFC storm, where pause frames propagate faster than the underlying congestion clears, eventually stalling traffic across every switch in the path back to the source.
PFC Watchdog exists specifically to catch this. PFC Watchdog polls egress queues (a 100ms interval is a typical default), and when a queue is detected stuck in a sustained pause state, it flushes that queue and temporarily drops new traffic to it until the storm clears. An undetected PFC storm is worse than the packet loss PFC exists to prevent, so the watchdog trades a small amount of temporary loss for breaking an otherwise-endless cascade. This is a built-in functionality to modern data center switching platforms that leverage PFC.
ECN and DCQCN: proactive congestion avoidance
PFC is a blunt, reactive, link-level instrument and should be considered the last line of defense. ECN (Explicit Congestion Notification) is proactive. With ECN, switches mark packets, rather than dropping them, when queue depth crosses a threshold, well before the point of actual loss. ECN reuses the two low-order bits of the IP Traffic Class field to mark packets mid-path: 00 for non-ECN-capable traffic, 10/01 for ECN-capable senders, and 11 for Congestion Encountered. The receiver sees that mark and needs a way to tell the original sender to slow down, which is what DCQCN (Data Center Quantized Congestion Notification) provides. DCQCN is the end-to-end congestion control algorithm layered on top of ECN specifically for RoCEv2.
The receiver generates a Congestion Notification Packet (CNP) back to the sender on seeing an ECN mark; the sender cuts its transmission rate in response, then gradually ramps back up if no further marks arrive. The practical tuning knobs are DCQCN’s Kmin, Kmax, and Pmax values:
- Below Kmin, no marking occurs
- Above Kmax, every packet gets marked;
- Between the two, marking happens probabilistically, scaling up to Pmax.
Set these too aggressively and senders get throttled constantly, wasting bandwidth. Set them too loosely and ECN never fires early enough to prevent PFC from kicking in as the fallback, which reintroduces the head-of-line blocking risk. This is one of the highest-leverage tuning exercises in the whole fabric from a network engineering perspective: it’s the mechanism protecting inter-token latency in real time, discussed in Part 4, as opposed to the coarser VTEP-level policy from Part 6.
What you set these values to largely depends on the link speed and switch buffer architecture, so refer to specifications on recommended starting parameters. Keep mind that ECN marking happens on the egress queue, while PFC triggers on the ingress buffer, so your Kmax threshold should be lower than the PFC pause threshold so DCQCN has time to throttle senders before PFC pauses the link. Pmax is something you tweak based on incast severity, which is based on the types of flows such as inference versus training.
RoCEv2 packet structure
In the last post we looked at a RoCEv2 packet. If we open that up, we can see what’s going on inside that InfiniBand Base Transport Header:
Important to reiterate here: the UDP source port is an entropy field for ECMP hashing, not a real port number. RoCEv2 traffic doesn’t have client/server ports in the TCP sense – the source port is randomized per queue pair specifically so switches have something to hash on for load-balancing, while the destination port stays fixed at 4791 so switches can classify and prioritize the traffic consistently.
Extended Transport Headers (ETH) are used inside of the RDMA payload itself to handle certain functions. For example, the RDMA Extended Transport Header (RETH) is used for RDMA_WRITE operations and includes several fields:
- Virtual Address: the specific memory address where data will be written
- Remote Key: the key used for permissions to the specific memory location
- Length: the size of the data to be written
The ACK Extended Transport Header (AETH) is used in the situation we discussed above where the receiver detects a packet sequence number (PSN) gap and needs to signal back to the sender to retransmit.
An adjacent consumer of this same transport: NVMe-oF
GPU collective traffic and storage traffic aren’t the same thing, but they frequently share the identical transport layer just covered. NVMe-oF (NVMe over Fabrics) lets NVMe’s native multi-queue, low-latency semantics extend across a network rather than staying confined to a local PCIe bus, and one of its three standardized transport bindings is RDMA, running over exactly the same RoCEv2 (or InfiniBand) fabric as GPU collective traffic, with the identical PFC/ECN/DCQCN mechanics.
This matters for two reasons already threaded through this series. Part 4’s KV cache tiering and Part 6’s storage-fabric scoping both assume RDMA-grade storage access. A client’s checkpoint storage or KV cache tier reaching GPU nodes at low latency is often NVMe-oF over RoCEv2 under the hood. And if storage and GPU traffic share a back-end fabric, don’t put them on the same lossless priority class. A storage burst and a GPU collective burst competing for the same PFC no-drop queue creates a new noisy-neighbor risk, this time between workload types rather than tenants, where one can trigger pauses that stall the other. Give them distinct DSCP-to-queue mappings even when they share physical infrastructure.
InfiniBand: a completely different architecture
InfiniBand is architecturally closer to Fibre Channel than to Ethernet/IP, despite carrying networking traffic that looks superficially similar.
Addressing and control plane is the biggest shift. There’s no BGP, no distributed routing protocol computing paths independently on every device. InfiniBand uses a Subnet Manager (SM) which is a centralized software component, often deployed with redundant master/standby instances that discovers the entire fabric topology, computes deterministic routing tables for every switch, and pushes that state out.
Addressing follows the same centralized model: devices get a LID (Local Identifier), a 16-bit address valid only within one subnet, assigned by the SM, plus a GID (Global Identifier) for routing between subnets. There’s no MAC or IP address.
Link layer uses credit-based flow control where a receiver grants the sender explicit credits representing available buffer space, and the sender is structurally incapable of exceeding them. Loss is architecturally prevented, not avoided through a feedback loop layered on top of a lossy medium.
Transport layer and service types: IB’s own congestion notification (forward and backward explicit signals) has existed since the protocol’s inception, rather than being retrofitted generation by generation the way Ethernet’s DCQCN was. The native service types are:
- Reliable Connection (RC) is a point-to-point connection between Queue Pairs, used by most RDMA verbs, and guarantees that packets arrive in the correct order and without data loss using a hardware acknowledgment (ACK) mechanism
- Unreliable Connection (UC) is similar to RC except it’s made for high throughput scenarios where upper-layer software handles its own error checking or where maximum raw speed is preferred over delivery guarantees
- Unreliable Datagram (UD) is a lightweight, connectionless approach, typically used for IP over InfiniBand (IPoIB) multicast, bootstrapping and service discovery
- Reliable Datagram (RD) – is used for complex, large-scale storage or messaging systems that require reliable end-to-end communication with many peers without dedicating individual RC connections to every single one.
Multi-tenancy: the IB equivalent of a VLAN or VRF is the Partition Key (P_Key), configured through Subnet Manager policy rather than per-switch CLI.
Operational things change quite considerably. There is no show ip route, no show bgp summary. Instead, fabric visibility comes from OpenFabrics Enterprise Distribution (OFED) tooling with commands like ibstat, ibnetdiscover, perfquery, and the Subnet Manager itself is either the open-source opensm or a vendor platform such as NVIDIA’s UFM (Unified Fabric Manager). Walking into a shop running InfiniBand means managing fabric state through this SM-centric tooling, not the familiar Ethernet/IP command set. That said, it is closer in operational feel to managing Fibre Channel zoning and fabric login than to a leaf-spine BGP underlay.
The trade-off for enterprise practices
| RoCEv2 (Ethernet) | InfiniBand | |
|---|---|---|
| Lossless mechanism | Bolted on: PFC + ECN + DCQCN | Native: credit-based flow control |
| Control plane | Distributed (BGP or similar) | Centralized (Subnet Manager) |
| Operational model | Standard Ethernet tooling and skills | Separate fabric, separate expertise, effectively single-vendor |
| Tuning burden | Significant: DSCP mapping, PFC/ECN thresholds, DCQCN rate curves | Lower: much of this is protocol-native |
| Ecosystem | Multi-vendor (Part 5: NVIDIA, Broadcom, Cisco, Arista, Juniper) | Effectively NVIDIA/Mellanox only |
For an enterprise, inference-focused practice, this is close to a settled question: RoCEv2 is the right default recommendation for essentially every client. The multi-vendor ecosystem, the ability to lean on existing Ethernet operational skills and tooling, and the fact that DCQCN tuning is well-documented and increasingly automated, all outweigh InfiniBand’s native-lossless advantage outside the most extreme hyperscale training scale. InfiniBand remains the right answer specifically for a client chasing the absolute performance ceiling for massive training clusters, willing to take on a separate, specialized fabric and vendor relationship to get it.
Takeaways
- PFC is the lossless mechanism of last resort, and it’s considered blunt since it pauses an entire priority, not just the offending flow, and can cascade into a storm without watchdog protection.
- ECN plus DCQCN is the proactive congestion control layer that protects per-token latency, not VTEP-level QoS. Kmin/Kmax/Pmax tuning is where the optimization happens.
- The lossless fabric exists to make that recovery path rare, not because RoCEv2 cannot survive loss at all. RoCEv2 has native loss recovery via PSN/NACK.
- If storage (NVMe-oF) and GPU traffic share a back-end fabric, give them separate lossless priority classes.
- Recommend RoCEv2 by default for most enterprise engagements; reserve InfiniBand for clients explicitly chasing hyperscale training performance who accept a separate, specialized fabric and its centralized, SM-driven operational model.
Next in this series: emerging directions, including Ultra Ethernet, optical interconnects, and multi-tenant GPU clouds, closing out this series (maybe).
References:




