Nvlink Nvswitch

GPU Interconnect Technologies (NVLink vs. PCIe vs. NVSwitch) are the communication fabrics that connect GPUs to each other and to CPUs — where the bandwidth, latency, and topology of these interconnects critically determine multi-GPU training performance, as gradient synchronization and tensor parallelism require moving terabytes of data between GPUs per second, making interconnect choice the primary bottleneck differentiator between consumer and data center GPU systems.

Interconnect Comparison

InterconnectBandwidth (per direction)LatencyTopologyGeneration
PCIe 4.0 x1632 GB/s~1 µsPoint-to-point via switch2017
PCIe 5.0 x1664 GB/s~0.8 µsPoint-to-point via switch2022
NVLink 3 (A100)600 GB/s total (12 links)~0.5 µsMesh via NVSwitch2020
NVLink 4 (H100)900 GB/s total (18 links)~0.3 µsFull mesh via NVSwitch2022
NVLink 5 (B200)1800 GB/s total~0.2 µsFull mesh via NVSwitch2024
AMD Infinity Fabric600 GB/s (MI300X)~0.5 µsMesh2023

NVLink Architecture

  • NVLink is NVIDIA's proprietary high-speed GPU-to-GPU interconnect.
  • Each NVLink lane: 25 GB/s (NVLink 3) → 50 GB/s (NVLink 4) → 100 GB/s (NVLink 5).
  • H100: 18 NVLink 4 lanes = 900 GB/s bidirectional → 14× PCIe 5.0 bandwidth.
  • Direct GPU-to-GPU memory access: GPU 0 can read/write GPU 1 memory at full NVLink speed.

NVSwitch

  • NVSwitch: Dedicated switch chip that connects multiple GPUs via NVLink.
  • DGX H100: 4 NVSwitch chips connect 8 H100 GPUs → any-to-any full bandwidth.
  • Without NVSwitch: Only nearest-neighbor NVLink connections → limited topology.
  • With NVSwitch: Full bisection bandwidth → AllReduce at full speed regardless of communication pattern.

Multi-Node: NVLink + InfiniBand

Node 0: Node 1: [GPU0]──NVLink──[GPU1] [GPU4]──NVLink──[GPU5] [GPU2]──NVLink──[GPU3] [GPU6]──NVLink──[GPU7] All connected via NVSwitch All connected via NVSwitch | | InfiniBand 400G ──────────── InfiniBand 400G
  • Intra-node: NVLink (900 GB/s) → fast tensor/pipeline parallelism.
  • Inter-node: InfiniBand (50-100 GB/s) → data parallelism gradient sync.
  • Hierarchy: Optimize communication to keep most traffic intra-node.

Impact on ML Training

Communication PatternPCIe LimitedNVLink Enabled
AllReduce (8 GPUs)~25 GB/s effective~700 GB/s effective
Tensor parallelismNot feasible (too slow)Standard approach
Pipeline parallelismLimitedGood
Expert parallelism (MoE)BottleneckViable

PCIe Still Matters

  • CPU-GPU data transfer (dataset loading): PCIe 5.0 is sufficient.
  • Consumer GPUs: NVLink not available → PCIe only.
  • Inference serving: PCIe bandwidth often sufficient for batch inference.
  • Cost: PCIe switches are commodity; NVSwitch is expensive and NVIDIA-exclusive.

GPU interconnect technology is the infrastructure that makes large-scale AI training possible — the 10-30× bandwidth advantage of NVLink over PCIe is what enables tensor parallelism across GPUs, without which training models larger than single-GPU memory would require prohibitively slow PCIe communication, and the NVSwitch full-mesh topology is what makes 8-GPU DGX systems behave like a single massive accelerator.

Take nvlink nvswitch further

Ask the copilot about this term, or have our engineers assess it against your process.