Course contents
On this page
Hardware Topology
Introduction
We have talked a lot about how to program NVLink and RDMA in the last three chapters, but only knowing these is not enough to get extreme performance. One important piece of knowledge we are missing now is the hardware topology—how hundreds of thousands of GPUs are stitched together to perform like a giant computer. Topology is important as it largely decides the data proximity and locality, which further determines the overall achieved TFLOPs. Now, let’s look at these hardware topologies from a multi-GPU server to an NVL72 rack, then to a GPU cluster.
A multi-GPU server
NVLink-based 8xGPU server: An eight-GPU Hopper node uses separate paths for intra-server communication and inter-server RDMA. These correspond to the mechanisms from the previous chapters:
- GPU-to-GPU: All eight GPUs connect to four NVSwitches 1, so a peer-memory read/write stays on NVLink even when the GPUs belong to different CPU sockets.
- GPU-to-NIC: Each GPU reaches a nearby 400 Gb/s ConnectX-7 NIC through PCIe. A PCIe 5 ×16 link provides about 64 GB/s per direction before overhead, enough for the NIC’s 50 GB/s network rate.
Hopper node layout adapted from Figure 2 of the DeepSeek-V3 hardware paper 2. Each GPU–NIC pair has a PCIe switch; NVLink lines represent link bundles.
Some Hopper nodes put two GPUs and two NICs under the same PCIe switch, as in NVIDIA’s HGX reference layout 3. A nature question is: does sharing the switch halve their bandwidth? It depends on whether the traffic stays inside the switch or goes up to the CPU:
- GPU-memory RDMA: Both GPU–NIC pairs can run at full rate if the switch forwards peer traffic locally without internal oversubscription. Switches such as Broadcom’s PEX89000 4 can forward between separate ports concurrently. Two 400 Gb/s NICs need 100 GB/s in total, but this traffic does not pass through the CPU uplink.
- CPU-memory RDMA: Both NICs must use the CPU-facing connection. If they share one PCIe 5 ×16 uplink, its roughly 64 GB/s budget cannot sustain their combined 100 GB/s. More upstream lanes help, but CPU memory bandwidth can still limit the result.
Thus, GPU–NIC locality is about the whole PCIe path, not a fixed one-to-one pairing. A second NIC under the same switch may be just as close; a NIC behind another switch or CPU socket can go through a slower, shared path through the root complex 5.
The recent Blackwell Ultra server increases network bandwidth by widening the GPU-facing PCIe path. As shown below, the HGX B300 design 6 uses an embedded PCIe switch in each ConnectX-8 NIC 7, allowing different speeds on its two sides:
- GPU side: PCIe 6 ×16 provides about 128 GB/s per direction, enough for an 800 Gb/s NIC, or 100 GB/s.
- CPU side: PCIe 5 ×16 still provides about 64 GB/s per direction. The NIC can therefore reach a higher rate with GPU memory than with CPU memory through this connection.
HGX B300 topology 6. Each CX8 includes its PCIe switch; the two NVSwitches connect all eight GPUs 1.
A special note is that the CPU-side bottleneck can propagate into the network. If remote GPUs RDMA-write into CPU memory faster than the receiver can drain its NIC, receive buffers fill. On RDMA network with PFC 8 enabled, the receiver can pause upstream traffic, spreading backpressure. We therefore need to bound inflight data and pace traffic to the receiver’s capacity, which we will discuss in the Congestion chapter.
PCIe-based 8xGPU server: Without NVLink, GPU peer traffic must share PCIe with RDMA. NVIDIA’s RTX PRO server 9 illustrates the resulting bandwidth tradeoff:
- Topology: Each PCIe switch connects two RTX PRO 6000 Blackwell Server Edition GPUs and one 400 Gb/s NIC. Sharing evenly gives each GPU 200 Gb/s of network bandwidth.
- Contention: Peer-memory reads/writes and RDMA use the same GPU PCIe port. Even when the GPU-to-GPU peer transfer stays inside one switch, it consumes bandwidth that the NIC could otherwise use.
RTX PRO server topology 9, with storage and management connections omitted.
Overlapping local copies with RDMA therefore requires enough spare PCIe bandwidth. Moving the operations into concurrent kernels does not increase the capacity of their shared port; we also need to consider which GPU pair shares a switch and NIC.
NVL72-series 4xGPU server: NVL72 compute trays give GPUs a much wider path to CPU memory through NVLink-C2C. A GB300 tray 10 contains two Grace CPUs, four GPUs, and four ConnectX-8 NICs:
- CPU memory: Each Grace CPU serves two GPUs over NVLink-C2C 11, with 900 GB/s of bidirectional bandwidth shared across the pair. For comparison, PCIe 5 ×16 provides about 128 GB/s bidirectionally. Actual transfers also depend on CPU DRAM bandwidth.
- NIC access: Each GPU has its own CX8, with the same PCIe 6 GPU-facing and PCIe 5 CPU-facing split as the B300 design above.
- CPU locality: The two Grace CPUs communicate through narrower CLinks 10. Accessing the other CPU’s memory crosses this additional link, so CPU buffers should still be placed near their consuming GPU.
GB300 compute tray 12. GPU-to-GPU NVLink connections extend to the rack’s switches, shown next.
Vera Rubin keeps the four-GPU, two-CPU tray structure while increasing link rates. Its ConnectX-9 NICs 13 provide 1.6 Tb/s per GPU. Across these generations, the next step is the same: connect the compute trays into one larger NVLink domain.
An NVL72 rack
Many trays: NVL72 extends the NVLink domain from eight GPUs to 72 GPUs across compute trays. The GB200/GB300 rack 12 has:
- Compute: 18 trays × 4 GPUs = 72 GPUs.
- Switches: 9 trays × 2 NVSwitch chips = 18 NVSwitches.
- Connections: Each GPU has one NVLink to each of the 18 switches. Any GPU pair can therefore communicate through one NVSwitch hop, including pairs in different trays.
GB200/GB300 rack and NVLink fabric 12, with repeated connections omitted.
Practical deployment: A 72-GPU NVLink domain can span more than one physical rack due to power, cooling, and more constraints. For example, Meta’s Prometheus deployment 14 shows how network bandwidth and operational needs affect this layout:
- GB200: Catalina/Ariel spreads 72 GPUs across two racks, consuming roughly 120 kW together. Each GPU has two 400 Gb/s CX7 NICs. Meta chose this design to get 800 Gb/s per GPU instead of the standard GB200’s 400 Gb/s.
- GB300: Clemente fits 72 GPUs in one roughly 135 kW rack. One CX8 per GPU supplies the same 800 Gb/s with fewer NICs and less cabling.
- Eight spare GPUs: Meta uses 64 of the 72 GPUs for a training slice and reserves eight for recovery. This matches power-of-two parallelism groups and lets a failed GPU be replaced before restarting from a checkpoint. The spare count is an allocation policy, not eight GPUs added beyond the rack’s 72.
NVLink gives these GPUs a fast local scale-up domain, but a larger job must also communicate between domains. That brings us to the RDMA scale-out network connecting the cluster.
A GPU cluster
Network topology: The cluster network must carry traffic between many NVLink domains without funneling it through a bottleneck. Let’s look at three related designs: first the basic switch fabric, then how we attach GPUs to it, and finally how we split it into planes.
- Fat-tree: A fat-tree provides multiple paths between servers. In the two-tier folded-Clos example below, every leaf connects to every spine, so an inter-leaf transfer follows a leaf–spine–leaf path. Each leaf has two 400 Gb/s NIC-facing links and two 400 Gb/s uplinks. Its downlink-to-uplink capacity ratio 15 is therefore 800:800, or 1:1. The following example shows full bisection bandwidth 16 which means even the narrowest equal split of the NICs can carry one half’s aggregate line rate: here, 4 × 400 Gb/s = 1.6 Tb/s per direction.
- Oversubscription: Removing one spine leaves each leaf with 800 Gb/s toward NICs but only 400 Gb/s toward the fabric, a 2:1 ratio.
- Undersubscription: Adding a third spine gives each leaf 1,200 Gb/s of uplinks for 800 Gb/s of NIC capacity, a 2:3 ratio with spare uplink capacity.
A 1:1 leaf/spine fabric following NVIDIA’s scale-out architecture 17. The dashed line marks a bisection; all links are full duplex.
- Rail-optimized fat-tree: Rails keep corresponding GPU–NIC pairs from different servers close together. NIC 0 from each server connects to rail 0, NIC 1 to rail 1, and so on. Same-index GPUs can communicate within a leaf group 18, while NVLink moves data between GPU indices inside a server. This could reduce use of the upper fabric when collectives communicate along matching rails, which is why there is no RDMA connectivity among GPUs from different rails in some public cloud.
A four-rail example 18. Solid and dashed network links distinguish the two servers.
- Multi-plane topology: Planes spread each GPU’s bandwidth across separate fabrics. OpenAI 19 splits an 800 Gb/s NIC into eight 100 Gb/s connections, one per plane. A 51.2 Tb/s switch can then expose 512 logical 100 Gb/s ports instead of 64 logical 800 Gb/s ports. This higher port count lets each plane connect many more GPUs with only two tiers.
Using multiple planes allows us to build very large networks with two tiers. The same GPUs connect to all eight planes. Figure from OpenAI’s MRC blog 19.
Using all those paths requires support from the transport. MRC 20 sprays one transfer’s packets across paths and handles out-of-order arrival at the receiver. A rail groups corresponding NICs from different GPUs; a plane gives the same GPU another fabric connection. Thus, rails and planes can be combined rather than being competing choices.
Deep vs. flat topology: More switch ports let us keep a large cluster shallow, reducing communication latency. OpenAI’s design 19 illustrates the tradeoff:
- Fewer hops: A two-tier inter-leaf path visits three switches. A three-tier path across pods visits five, adding forwarding delay and more places for queues to form.
- Scale limit: Each 512-port leaf uses 256 ports for GPUs and 256 for spines. With 512 leaves, this connects
512 × 256 = 131,072GPUs. Growing further with the same port allocation requires another tier or a higher-radix switch; accepting oversubscription is another tradeoff.
Path diversity: Multiple paths also let communication continue after a link or switch fails. But we need redundancy in both the topology and the recovery mechanism:
- Topology: Extra spines protect against a spine failure, but cannot help a GPU whose only leaf has failed. Dual-ToR or multi-plane attachments provide alternatives closer to the GPU. Losing one of eight equal-rate planes leaves seven-eighths of the nominal link capacity, assuming the others remain available.
- Recovery: Conventional fabrics update routes through distributed protocols such as BGP or a centralized SDN controller. OpenAI’s MRC/SRv6 design 21 instead lets the sender avoid a failed path and retransmit through another one while switches keep static forwarding entries. It does not wait for network-wide route convergence.
Having enough paths is only the first step. We still need to balance traffic across them and prevent receivers from being overwhelmed, which is the focus of the next chapter.
Remark
I am often amazed by how quickly GPU hardware topologies evolve and diversify. Of course, this is largely driven by the boom in LLMs that follow scaling laws.
I believe fully understanding these topologies and actively exploiting data locality are the keys to achieving extreme performance for LLM systems.
References
Footnotes
-
NVIDIA. NVIDIA Fabric Manager, “NVSwitch-Based Systems.” https://docs.nvidia.com/datacenter/tesla/fabric-manager-user-guide/index.html ↩ ↩2
-
Chenggang Zhao et al. Insights into DeepSeek-V3: Scaling Challenges and Reflections on Hardware for AI Architectures. ISCA 2025, Figure 2. https://arxiv.org/pdf/2505.09343 ↩
-
NVIDIA. NVIDIA HGX AI Factory for H100, H200, and B200, “Components.” https://docs.nvidia.com/enterprise-reference-architectures/hgx-ai-factory-h100-h200-b200/latest/components.html ↩
-
Broadcom. PEX89000 Series: Managed PCI Express 5.0 Switches, product brief. https://docs.broadcom.com/doc/PEX89000-Managed-PCI-Express-5.0-Switches ↩
-
NVIDIA. GPUDirect RDMA, “Supported Systems.” https://docs.nvidia.com/cuda/gpudirect-rdma/#supported-systems ↩
-
NVIDIA. NVIDIA HGX AI Factory, “Components,” HGX B300 topology. https://docs.nvidia.com/enterprise-reference-architectures/hgx-ai-factory/latest/components.html ↩ ↩2
-
NVIDIA Technical Blog. NVIDIA ConnectX-8 SuperNICs Advance AI Platform Architecture with PCIe Gen6 Connectivity. https://developer.nvidia.com/blog/nvidia-connectx-8-supernics-advance-ai-platform-architecture-with-pcie-gen6-connectivity/ ↩
-
NVIDIA. NVIDIA Onyx, “Priority Flow Control (PFC).” https://networking-docs.nvidia.com/onyxum/3104706lts/priority-flow-control-pfc ↩
-
NVIDIA. NVIDIA RTX PRO AI Factory, “Components.” https://docs.nvidia.com/enterprise-reference-architectures/rtx-pro-ai-factory/latest/components.html ↩ ↩2
-
Lenovo Press. Lenovo NVIDIA GB300 NVL72 Rack Scale AI, “System architecture.” https://lenovopress.lenovo.com/lp2357-lenovo-nvidia-gb300-nvl72-rack-scale-ai ↩ ↩2
-
NVIDIA Technical Blog. NVIDIA GB200 NVL72 Delivers Trillion-Parameter LLM Training and Real-Time Inference, including the clarification of shared C2C bandwidth in the comments. https://developer.nvidia.com/blog/nvidia-gb200-nvl72-delivers-trillion-parameter-llm-training-and-real-time-inference/ ↩
-
NVIDIA. NVIDIA NVL72 AI Factory, “System Hardware & Components.” https://docs.nvidia.com/enterprise-reference-architectures/nvl72-ai-factory/latest/components.html ↩ ↩2 ↩3
-
NVIDIA Technical Blog. Inside the NVIDIA Vera Rubin Platform: Six New Chips, One AI Supercomputer, “Vera Rubin NVL72 compute tray.” https://developer.nvidia.com/blog/inside-the-nvidia-rubin-platform-six-new-chips-one-ai-supercomputer/ ↩
-
Engineering at Meta. Inside Prometheus: Meta’s Journey to a Gigawatt-Scale Supercluster. October 19, 2026. https://engineering.fb.com/2026/10/19/data-center-engineering/inside-prometheus-meta-gigawatt-scale-supercluster/ ↩
-
NVIDIA. Layer 1 Data Center Cheat Sheet, “Oversubscription Calculation.” https://docs.nvidia.com/networking-ethernet-software/knowledge-base/Setup-and-Getting-Started/layer-1-Data-Center-Cheat-Sheet/#oversubscription-calculation ↩
-
Pooria Namyar et al. A Throughput-Centric View of the Performance of Datacenter Topologies. ACM SIGCOMM 2021, Section 1. https://minlanyu.seas.harvard.edu/writeup/sigcomm21-throughput.pdf ↩
-
NVIDIA. NVIDIA NVL72 AI Factory, “Networking Physical Topologies.” https://docs.nvidia.com/enterprise-reference-architectures/nvl72-ai-factory/latest/networking-physical-topologies.html ↩
-
NVIDIA Technical Blog. Doubling all2all Performance with NVIDIA Collective Communication Library 2.12. https://developer.nvidia.com/blog/doubling-all2all-performance-with-nvidia-collective-communication-library-2-12/ ↩ ↩2
-
OpenAI. Supercomputer networking to accelerate large scale AI training. May 5, 2026. https://openai.com/index/mrc-supercomputer-networking/ ↩ ↩2 ↩3
-
Open Compute Project. Multipath Reliable Connection Specification, version 1.0. https://www.opencompute.org/documents/ocp-mrc-1-0-pdf ↩
-
Joao Araujo et al. Resilient AI Supercomputer Networking using MRC and SRv6. https://cdn.openai.com/pdf/resilient-ai-supercomputer-networking-using-mrc-and-srv6.pdf ↩