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.
- 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:
- Native RDMA: an adapter can read and write memory on another machine directly, with no CPU or operating-system involvement on either side (kernel bypass). That is the source of its very low latency.
- Lossless by design: credit-based flow control means a sender only transmits when the receiver has buffer space, so packets are not dropped and retransmitted. Ethernet traditionally drops packets under congestion.
- Very low latency: around 1-2 µs end to end, against roughly 10-100 µs for a typical TCP/IP Ethernet path.
- Centralised management: a Subnet Manager (OpenSM, or NVIDIA UFM in large fabrics) discovers the topology, assigns addresses (LIDs) and computes routes. Every InfiniBand fabric needs one running.
- In-network computing: SHARP (Scalable Hierarchical Aggregation and Reduction Protocol) lets switches perform reductions such as summing gradients as data passes through, cutting the traffic an AllReduce needs.
- Adaptive routing and congestion control spread traffic over multiple paths.
02Speeds and hardware names
| Generation | Per-port speed (4x link) |
|---|---|
| EDR | 100 Gb/s |
| HDR | 200 Gb/s |
| NDR | 400 Gb/s (DGX H100, DGX B200 compute fabric) |
| XDR | 800 Gb/s |
| Role | InfiniBand | Ethernet (NVIDIA) |
|---|---|---|
| Adapter | HCA (host channel adapter), ConnectX | NIC, ConnectX / BlueField SuperNIC |
| Switches | Quantum series (e.g. QM9700, 64 × 400 Gb/s) | Spectrum series (e.g. SN5600, 64 × 800 Gb/s) |
| Management | Subnet manager required (OpenSM / UFM) | Standard Ethernet and TCP/IP tooling |
| Choose it when | Lowest, most deterministic latency matters most | You 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.
| InfiniBand | Ethernet (TCP/IP) | Ethernet + RoCE | |
|---|---|---|---|
| Latency | ~1-2 µs | ~10-100 µs | Low, close to IB when tuned |
| CPU involvement | Bypassed (RDMA) | Kernel TCP/IP stack | Bypassed (RDMA) |
| Loss behaviour | Lossless (credit-based) | Drops under congestion | Needs PFC/ECN to be lossless |
| Management | Subnet manager | Standard | Standard plus QoS tuning |
| Typical use | AI/HPC compute fabric | General networking, management | AI compute or storage on Ethernet |
04Topologies: fat tree, spine-leaf and rails
- Fat tree / spine-leaf (Clos): servers connect to leaf switches, every leaf connects to every spine. Bandwidth stays high as you add nodes, and there are many equal paths.
- Non-blocking (1:1): uplink bandwidth equals downlink bandwidth, so all ports can run at full rate together. AI compute fabrics are designed non-blocking; general networks are often oversubscribed (for example 3:1) to save cost.
- Rail-optimised: GPU 1 of every node goes to leaf "rail 1", GPU 2 to rail 2 and so on, matching how collective operations pair GPUs (see DGX SuperPOD).
05Networking requirements for AI workloads
| Workload | What the network must deliver |
|---|---|
| Multi-node training | Highest bandwidth per GPU (e.g. 400 Gb/s per GPU), lowest latency, lossless RDMA, non-blocking fabric |
| Storage traffic | Multi-GB/s per node, isolated from compute traffic |
| Inference serving | Reliable front-end Ethernet to users; RDMA only for models split across nodes |
| Management | Separate, reliable in-band Ethernet plus an always-on out-of-band network |
06Protocols to recognise
| Protocol / term | One-line meaning |
|---|---|
| TCP/IP | General-purpose Ethernet/internet stack; reliable but CPU-heavy and higher latency |
| RDMA | Remote direct memory access: read/write another machine’s memory without its CPU |
| RoCE v2 | RDMA over Converged Ethernet, routable over UDP/IP |
| iWARP | RDMA over TCP; less common in AI clusters |
| PFC / ECN | Ethernet mechanisms to avoid drops and signal congestion for lossless RoCE |
| SHARP | In-switch reductions on InfiniBand to accelerate collectives |
| VLAN / VXLAN | Logical segmentation and overlays, common on management and tenant networks |
| BGP / spine-leaf L3 | Routing protocols used in large Ethernet data center fabrics |
✦Key terms: flip the cards
- 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.
- 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
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.