2.7 Networking requirements for AI

NCA-AIIO · AI Infrastructure (40% of the exam) · Official objective: “Determine networking requirements for AI workloads”

Separate fabrics, rail-optimized design and the NCCL settings that pick a network path.

Key points

  1. NCCL is the NVIDIA Collective Communications Library. Frameworks use it to exchange gradients between GPUs. NCCL_IB_DISABLE prevents NCCL from using the IB/RoCE transport. NCCL then falls back to another transport such as IP sockets, which is much slower. Unset it, or check that nothing in the job environment sets it.

    What NVIDIA says (2)

    “The NCCL_IB_DISABLE variable prevents the IB/RoCE transport from being used by NCCL.”

    — NCCL Environment Variables

    “NCCL will instead fall back to another available transport such as IP sockets.”

    — NCCL Environment Variables

  2. An HCA (host channel adapter) is an InfiniBand network adapter. NCCL_IB_HCA tells NCCL which RDMA interfaces to use. NCCL_SOCKET_IFNAME does the same job for IP interfaces.

    What NVIDIA says (2)

    “The NCCL_IB_HCA variable specifies which Host Channel Adapter (RDMA) interfaces to use for communication.”

    — NCCL Environment Variables

    “The NCCL_SOCKET_IFNAME variable specifies which IP interfaces to use for communication.”

    — NCCL Environment Variables

  3. NVLink is NVIDIA's direct GPU-to-GPU interconnect inside a server. Between servers, DGX SuperPOD uses NDR InfiniBand. NCCL, NVIDIA's library for multi-GPU communication, supports NVLink, PCIe, InfiniBand and IP sockets, and picks paths within and across nodes.

    What NVIDIA says (3)

    “is a direct GPU-to-GPU interconnect that scales multi-GPU input/output (IO) in the server.”

    — NVIDIA Fabric Manager User Guide

    “NVIDIA NDR (400 Gbps) InfiniBand—bringing the highest performance, lowest latency, and most scalable network interconnect.”

    — DGX SuperPOD H100 Reference Architecture: Abstract

    “It supports a variety of interconnect technologies including PCIe, NVLINK, InfiniBand Verbs, and IP sockets.”

    — Overview of NCCL — NCCL 2.32.3 documentation

  4. A rail is the set of same-numbered network ports across all nodes. Port 1 of every node goes to one leaf switch, port 2 to another, and so on. NVIDIA says the compute fabric is rail-optimized and each group of 32 nodes is rail-aligned. Traffic per rail is always one hop away from the other 31 nodes in an SU. Traffic between rails uses the spine layer.

    What NVIDIA says (3)

    “The compute fabric is rail-optimized to the top layer of the fabric.”

    — DGX SuperPOD H100 Reference Architecture: Components

    “Traffic per rail of the DGX H100 systems is always one hop away from the other 31 nodes in a SU.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “Traffic between nodes, or between rails, traverses the spine layer.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

  5. NDR is the 400 Gb/s generation of InfiniBand. The reference architecture specifies a rail-optimized, full fat-tree network with eight NDR400 connections per system. The DGX H100 user guide shows eight ConnectX-7 single-port InfiniBand cards. With eight GPUs, that gives each GPU its own path onto its rail.

    What NVIDIA says (2)

    “Rail-optimized, full fat-tree network with eight NDR400 connections per system”

    — DGX SuperPOD H100 Reference Architecture: Components

    “Network (Cluster) card 4 x OSFP ports for 8 x NVIDIA® ConnectX®-7 Single Port InfiniBand Cards”

    — DGX H100/H200 User Guide: Introduction

  6. A fabric is a network built for one job. DGX SuperPOD uses four: the compute fabric for GPU-to-GPU traffic between nodes, the storage fabric, the in-band management network, and the out-of-band (OOB) management network. The OOB network connects the BMC (baseboard management controller) ports and stays physically isolated from users.

    What NVIDIA says (2)

    “DGX SuperPOD configurations utilize four network fabrics: -Compute Fabric -Storage Fabric -In-Band Management Network -Out-of-Band Management Network”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “The OOB management network connects all the base management controller (BMC) ports, as well as other devices that should be physically isolated from system users.”

    — DGX SuperPOD H100 Reference Architecture: Components

  7. A DGX SuperPOD has separate networks for separate jobs. The reference architecture says the in-band management network connects the cluster's management services and gives in-cluster services, such as Base Command Manager and Slurm, a path to outside services like the NGC registry, code repositories and data sources.

    What NVIDIA says (1)

    “Provides connectivity for the in-cluster services such as Base Command Manager, Slurm and to other services outside of the cluster such as the NGC registry, code repositories, and data sources.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

  8. The BMC (baseboard management controller) is a small management computer in each server for remote power control, monitoring and console access. The reference architecture says the OOB network connects the management ports of all devices, including DGX and management servers, storage, network gear and PDUs. It is kept separate because users never need these ports, and logical separation keeps them secure.

    What NVIDIA says (3)

    “It connects the management ports of all devices including DGX and management servers, storage, networking gear, rack PDUs, and all other devices.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “These are separate onto their own fabric because there is no use-case where users need access to these ports and are secured using logical network separation.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “The OOB port is used for BMC access.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

  9. Training reads a lot of data. The reference architecture says per-node I/O in a DGX SuperPOD must exceed 40 GBps (gigabytes per second), and that a high-bandwidth fabric with congestion control and adaptive routing (AR) gives significant benefits for storage. That is why the storage fabric is InfiniBand.

    What NVIDIA says (3)

    “The storage fabric employs an InfiniBand network fabric that is essential to maximum bandwidth”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “This is because the I/O per-node for the DGX SuperPOD must exceed 40 GBps.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “Highbandwidth requirements with advanced fabric management features, such as congestion control and AR, provide significant benefits for the storage fabric.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

  10. A scalable unit is the repeatable building block of a SuperPOD. The reference architecture says that if you need fewer nodes, the fabric should still be built for the full SU and the unused portion left empty. That keeps traffic routing optimal and performance consistent across the fabric, and makes adding nodes later easy.

    What NVIDIA says (2)

    “However, if a different node count is required due to budgetary constraints, data center constraints, or other needs, the fabric should be designed to support the full SU, including leaf switches and leaf-spine cables, and leave the portion of the fabric unused where these nodes would be located.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

    “This will ensure optimal traffic routing and ensure that performance is consistent across all portions of the fabric.”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

  11. NCCL is NVIDIA's library for collective communication such as all-reduce. It uses IP sockets for setup and, when needed, for data. NCCL_SOCKET_IFNAME tells NCCL which IP interfaces to use, for example the cluster's real network interface instead of a container bridge. Setting it bypasses NCCL's automatic interface selection.

    What NVIDIA says (2)

    “The NCCL_SOCKET_IFNAME variable specifies which IP interfaces to use for communication.”

    — NCCL Environment Variables

    “Setting NCCL_SOCKET_IFNAME will bypass the automatic interface selection algorithm and may use all interfaces matching the manual selection.”

    — NCCL Environment Variables

  12. Inside one server, NCCL normally moves data directly between GPUs with its peer-to-peer (P2P) transport over NVLink or PCIe. NCCL_P2P_DISABLE turns that transport off, so GPU-to-GPU traffic takes slower routes, such as through host memory. Removing the variable is the first thing to try.

    What NVIDIA says (1)

    “The NCCL_P2P_DISABLE variable disables the peer to peer (P2P) transport, which uses CUDA direct access between GPUs, using NVLink or PCI.”

    — NCCL Environment Variables

  13. Acceptance testing checks that the fabric delivers what it should before users arrive. NVIDIA's InfiniBand cluster bring-up procedure sets the bar on the worst result, not the average: the minimum must reach at least 95% of the maximum available bandwidth. A single weak link or cable would show up as a low minimum.

    What NVIDIA says (1)

    “Your cluster's performance is satisfactory when the minimum achieved result is at least 95% of the maximum available bandwidth”

    — InfiniBand Cluster Bring-up Procedure: Performance Testing

  14. The H100 SuperPOD uses four fabrics: compute, storage, in-band management and out-of-band management. The GB200 reference architecture lists five, adding NVLink 5. Each GB200 rack has 18 compute trays and 9 NVLink switch trays that fully connect all 72 GPUs in the rack.

    What NVIDIA says (3)

    “DGX SuperPOD configurations utilize five network fabrics:”

    — DGX SuperPOD GB200 Reference Architecture: Network Fabrics

    “Each DGX GB200 rack is built with 18 compute trays and 9 NVLink switch trays.”

    — DGX SuperPOD GB200 Reference Architecture: Network Fabrics

    “DGX SuperPOD configurations utilize four network fabrics:”

    — DGX SuperPOD H100 Reference Architecture: Network Fabrics

Key terms

Try it

Sample question

On an InfiniBand cluster, NCCL's log shows it is using IP sockets instead of InfiniBand, and training is slow. Which environment variable, if set, would cause exactly this?

Show the answer

Answer: NCCL_IB_DISABLE=1

NCCL is the NVIDIA Collective Communications Library. Frameworks use it to exchange gradients between GPUs. NCCL_IB_DISABLE prevents NCCL from using the IB/RoCE transport. NCCL then falls back to another transport such as IP sockets, which is much slower. Unset it, or check that nothing in the job environment sets it.

What NVIDIA says (2)

“The NCCL_IB_DISABLE variable prevents the IB/RoCE transport from being used by NCCL.”

— NCCL Environment Variables

“NCCL will instead fall back to another available transport such as IP sockets.”

— NCCL Environment Variables

Practice 2.7 (14 questions) Full AI Infrastructure guide

← 2.6 Facility requirements · 2.8 Data center networking protocols →