🏗️
Domain 2 · AI Infrastructure · 40% of the exam

InfiniBand and data center networking for AI

Why AI training clusters use InfiniBand, how it differs from Ethernet and RoCE, the speeds and topologies, and the protocols you must recognise.

Lesson 17 of 29~16 min read5 quiz questions6 key terms
Exam objectives this lesson covers
  • Determine networking requirements for AI workloads.
  • Identify and describe data center networking protocols and key concepts.
  • Identify high-speed data center network options and their use cases.

Distributed training is a team sport for GPUs. At every step, every GPU must share its gradients with every other GPU before anyone can move on. The whole cluster runs at the speed of its slowest exchange, so the network between nodes is not plumbing: it decides how much of your GPU spend turns into progress. That is why NVIDIA’s reference clusters use InfiniBand for the compute fabric.

01What makes InfiniBand different

InfiniBand is an open industry standard designed around 2000 for supercomputers. NVIDIA, through its 2020 acquisition of Mellanox, is now the main supplier of InfiniBand adapters, switches and cables. Its defining features:

The point the exam makesModern Ethernet and InfiniBand both reach 400-800 Gb/s. The choice between them is about latency and determinism, not raw speed.

02Speeds and hardware names

GenerationPer-port speed (4x link)
EDR100 Gb/s
HDR200 Gb/s
NDR400 Gb/s (DGX H100, DGX B200 compute fabric)
XDR800 Gb/s
RoleInfiniBandEthernet (NVIDIA)
AdapterHCA (host channel adapter), ConnectXNIC, ConnectX / BlueField SuperNIC
SwitchesQuantum series (e.g. QM9700, 64 × 400 Gb/s)Spectrum series (e.g. SN5600, 64 × 800 Gb/s)
ManagementSubnet manager required (OpenSM / UFM)Standard Ethernet and TCP/IP tooling
Choose it whenLowest, most deterministic latency matters mostYou want to reuse Ethernet skills, tooling and cost structure

03Ethernet, RoCE and Spectrum-X

Ethernet is everywhere, cheaper, and understood by every network team. To make it suitable for AI, the industry added RoCE (RDMA over Converged Ethernet): the same RDMA semantics as InfiniBand, carried over Ethernet. RoCE v2 runs over UDP/IP, so it is routable. Because RDMA hates packet loss, RoCE networks are tuned to be (nearly) lossless using PFC (priority flow control) and ECN (explicit congestion notification). "Converged" means one Ethernet fabric carries what used to be separate LAN, HPC and storage networks.

NVIDIA’s Spectrum-X is an Ethernet platform built for AI: Spectrum-4 switches plus BlueField-3 SuperNICs, with adaptive routing and congestion control tuned for GPU traffic. It is the Ethernet alternative for AI compute fabrics; InfiniBand (Quantum) remains the lowest-latency option.

InfiniBandEthernet (TCP/IP)Ethernet + RoCE
Latency~1-2 µs~10-100 µsLow, close to IB when tuned
CPU involvementBypassed (RDMA)Kernel TCP/IP stackBypassed (RDMA)
Loss behaviourLossless (credit-based)Drops under congestionNeeds PFC/ECN to be lossless
ManagementSubnet managerStandardStandard plus QoS tuning
Typical useAI/HPC compute fabricGeneral networking, managementAI compute or storage on Ethernet

04Topologies: fat tree, spine-leaf and rails

Spine 1Spine 2Spine 3Spine 4Leaf 1Leaf 2Leaf 3Leaf 4Leaf 5Leaf 6GPU nodes · any node reaches any other in two hops through a spine
Fig 1. A two-tier fat tree (spine-leaf). Every leaf connects to every spine, so traffic between any two nodes crosses at most one spine, and many paths exist in parallel.

05Networking requirements for AI workloads

WorkloadWhat the network must deliver
Multi-node trainingHighest bandwidth per GPU (e.g. 400 Gb/s per GPU), lowest latency, lossless RDMA, non-blocking fabric
Storage trafficMulti-GB/s per node, isolated from compute traffic
Inference servingReliable front-end Ethernet to users; RDMA only for models split across nodes
ManagementSeparate, reliable in-band Ethernet plus an always-on out-of-band network

06Protocols to recognise

Protocol / termOne-line meaning
TCP/IPGeneral-purpose Ethernet/internet stack; reliable but CPU-heavy and higher latency
RDMARemote direct memory access: read/write another machine’s memory without its CPU
RoCE v2RDMA over Converged Ethernet, routable over UDP/IP
iWARPRDMA over TCP; less common in AI clusters
PFC / ECNEthernet mechanisms to avoid drops and signal congestion for lossless RoCE
SHARPIn-switch reductions on InfiniBand to accelerate collectives
VLAN / VXLANLogical segmentation and overlays, common on management and tenant networks
BGP / spine-leaf L3Routing protocols used in large Ethernet data center fabrics
Ethernet is a motorway: anyone can use it, it is cheap, but traffic jams and toll booths add delay. InfiniBand is a dedicated high-speed rail line with its own signalling (the subnet manager): fewer stops, no jams, every train on time. RoCE is a motorway with a reserved express lane.

✦Key terms: flip the cards

What the exam looks for
  • InfiniBand: native RDMA, lossless, ~1-2 µs latency, subnet manager required, open standard.
  • Choose IB vs Ethernet on latency/determinism, not bandwidth; RoCE brings RDMA to Ethernet.
  • Know Quantum (IB) vs Spectrum (Ethernet) switches, ConnectX adapters, fat-tree/rail-optimised topologies.
Common traps
  • InfiniBand is an open standard, not an NVIDIA proprietary protocol.
  • An InfiniBand fabric does not work without a subnet manager.
  • RoCE without PFC/ECN tuning can drop packets and lose its RDMA benefit.

?Quick quiz

1. Which feature most explains InfiniBand’s low latency?

Why: RDMA moves data memory-to-memory without CPU/OS involvement.

2. Which component must run for an InfiniBand fabric to work?

Why: The subnet manager discovers and configures the fabric.

3. A team wants RDMA but must stay on Ethernet. What do they use?

Why: RoCE carries RDMA over converged Ethernet.

4. What usually decides InfiniBand vs Ethernet for an AI compute fabric?

Why: Both reach 400-800 Gb/s; latency and lossless behaviour differ.

5. Which NVIDIA switch family is InfiniBand?

Why: Quantum is InfiniBand; Spectrum is Ethernet.

Score: 0 / 5

Original readingInfiniBand Key Features, NVIDIA Academy (Vimeo) ↗

The reading is a video, and Vimeo blocked automated access, so this lesson is written from NVIDIA documentation on InfiniBand, the DGX SuperPOD reference architecture, and my own course notes. Watch the video too; it is short.

All lessons →
↑