Rail-optimised network topology for GPU clusters, with a worked example
How rail-optimised fat-tree fabrics connect 8-GPU nodes: rails, leaf and spine switches, oversubscription and scalable units, with a worked example.
Last reviewed 20 October 2026 · 5 min read
Key points
- In a rail-optimised fabric, GPU n in every node connects to leaf switch n, so same-rail traffic crosses a single switch.
- With 64-port switches, a non-blocking leaf has 32 ports down and 32 up, which gives a scalable unit of 32 eight-GPU nodes on eight leaves.
- Two tiers of 64-port switches reach 2,048 GPUs at most. Beyond that you need a third tier or a higher-radix switch.
- Oversubscribe only where the workload allows it, and build the full leaf and spine cabling for each scalable unit even if it is part-filled.
This guide explains how the compute fabric of a GPU cluster is usually wired, for engineers designing one and for buyers who need to check a design they have been given. It covers rails, leaf and spine layers, oversubscription and scalable units, then works through a real example. The choice of InfiniBand or Ethernet is covered separately in InfiniBand vs Ethernet for AI.
What a rail is
An 8-GPU HGX or DGX node has eight GPUs, and in a training cluster each GPU has its own scale-out NIC. Number them 0 to 7. A rail is the set of all NICs with the same number across the cluster: rail 0 is NIC 0 of every node, rail 1 is NIC 1, and so on.
In a rail-optimised design, each rail has its own leaf switch (or set of leaf switches). NIC 0 of every node in a group goes to leaf 0, NIC 1 to leaf 1, through to leaf 7. NVIDIA's NCCL team describes this layout as maximising all-reduce performance while reducing interference between flows, and NVIDIA's DGX SuperPOD reference architectures use it.
Why it works
Collective operations in NCCL mostly exchange data between GPUs with the same index on different nodes. In a rail-optimised fabric that traffic goes through one leaf switch. NVIDIA's B200 reference architecture states that traffic on each rail is always one hop away from the other 31 nodes in a scalable unit.
Traffic between different rails is handled inside the node where possible. NCCL's PXN feature, added in version 2.12, uses NVLink and NVSwitch to move data first to the GPU on the destination's rail, then sends it over that rail's NIC. Without PXN, NVIDIA's example message crossed three switch hops (leaf, spine, leaf). The NVLink domain inside the node therefore takes over some of the switching work, which keeps most network traffic at the leaf.
Leaf, spine and non-blocking
Leaf switches connect to the nodes. Spine switches connect the leaves to each other. Every leaf connects to every spine, which forms a two-tier fat-tree (also called a folded Clos).
A fabric is non-blocking when each leaf has as much bandwidth up to the spines as it has down to the nodes. On a 64-port switch, that means 32 ports down and 32 up. Any node can then talk to any other at full speed, provided traffic is spread evenly across the spine.
Oversubscription is the ratio of downlink to uplink bandwidth. A leaf with 48 ports down and 16 up is 3:1 oversubscribed. It serves more nodes per leaf and needs fewer spines and optics, but traffic that crosses the spine can only use a third of the node bandwidth when all nodes send at once.
Oversubscription can be reasonable for:
- Inference clusters where each model replica fits inside one node or one rail group.
- Clusters that run many small jobs, placed by a scheduler that keeps each job inside a scalable unit.
- Storage and management networks. NVIDIA's DGX B200 storage fabric uses a ratio near 4:3 on the node side.
Large training jobs should run on a non-blocking compute fabric. Meta's published RoCE design does oversubscribe, but only between its AI zones, with a scheduler that minimises traffic across that boundary.
Scalable units
A scalable unit (SU) is the repeating block of a design: a fixed number of nodes plus the leaf switches they connect to. Clusters grow one SU at a time, and each SU is cabled the same way, which makes design, cabling and testing repeatable.
The SU size comes from the leaf switch's port count. With 64-port switches and a non-blocking design, each leaf has 32 downlinks. One leaf per rail serves 32 nodes, so the SU is 32 nodes on eight leaves. That is the SU in NVIDIA's DGX H100, H200 and B200 SuperPOD reference architectures.
Worked example: a 4-SU NDR fabric
Take NVIDIA's DGX B200 SuperPOD design. Each node has eight GPUs, each with a 400 Gb/s NDR InfiniBand port. The switches are NVIDIA Quantum-2 QM9700, with 64 ports of 400 Gb/s.
Step 1, one SU:
- 32 nodes × 8 GPUs = 256 GPU ports.
- Eight leaves, one per rail. Each leaf has 32 ports down (one per node) and 32 ports up.
- Uplinks per SU: 8 leaves × 32 = 256.
- Spines needed: 256 uplinks ÷ 64 ports = 4 spines.
Step 2, four SUs:
- 128 nodes, 1,024 GPU ports, 32 leaves.
- Uplinks: 32 leaves × 32 = 1,024 leaf-to-spine cables.
- Spines: 1,024 ÷ 64 = 16 spines, each with two links to every leaf.
NVIDIA's published table for this design matches: 32 leaves, 16 spines and 1,024 spine-leaf cables for four SUs. Its node count is 127, with 1,016 GPUs, because one node position gives its ports to the UFM fabric manager appliance.
Step 3, the ceiling. In a two-tier fabric every spine port connects to a leaf, so 64-port spines support at most 64 leaves. That is 64 × 32 = 2,048 GPU ports, or 256 eight-GPU nodes (eight SUs). Larger clusters need a third tier of core switches above the spines, or switches with more ports.
Higher-radix switches move the ceiling. NVIDIA's Quantum-X800 Q3400 has 144 ports of 800 Gb/s. A non-blocking leaf then has 72 ports down and 72 up, and two tiers reach 144 × 72 = 10,368 GPU ports. That figure is an upper bound from the port counts; practical designs set aside ports for management and storage.
Building out part of an SU
If you buy fewer nodes than a full SU, NVIDIA's guidance is to build the full SU's leaf switches and leaf-to-spine cabling anyway, and leave the unused node ports empty. Routing then stays optimal and performance is the same across the fabric, and adding nodes later means plugging in server cables only.
Rack-scale systems
NVL72 systems change the picture inside the rack, where 72 GPUs share one NVLink domain. Tensor and expert parallel traffic stays on NVLink, and the scale-out fabric carries traffic between racks. NVIDIA's GB200 SuperPOD reference architecture still organises that fabric by rail, with one SU of eight racks (576 GPUs) and a three-tier design with core switch groups that scales to 16 SUs and 9,216 GPUs.
Checking a proposed design
When a fabric design lands on your desk, check:
- That every GPU has its own NIC at the platform's full speed.
- That the rail mapping (NIC n to leaf n) is drawn and matches the cable schedule.
- The leaf downlink-to-uplink ratio, and whether any oversubscription is intended.
- That the SU size matches the switch radix, and that the spine layer can grow to the planned size without recabling.
- That ports for the fabric manager, storage gateways and management are accounted for.
The cable and optics counts follow from these numbers; see optics, transceivers and cabling.
Sources
- DGX SuperPOD reference architecture: DGX B200, network fabrics, NVIDIA, 2025
- DGX SuperPOD reference architecture: DGX B200, key components, NVIDIA, 2025
- DGX SuperPOD reference architecture: DGX GB200, network fabrics, NVIDIA
- DGX SuperPOD reference architecture: DGX H200, NVIDIA
- Doubling all2all performance with NVIDIA Collective Communication Library 2.12, NVIDIA Technical Blog, 2022
- NCCL 2.12.7 release notes, NVIDIA
- NVIDIA Q32xx and Q34xx XDR InfiniBand switch systems user manual, NVIDIA
- RoCE networks for distributed AI training at scale, Engineering at Meta, August 2024