NVSwitch

On this page 7

NVSwitch is the NVLink switch chip developed by NVIDIA that connects multiple data-center GPUs into a non-blocking, all-to-all fabric, so that every GPU can exchange data with every other GPU at full NVLink bandwidth. In AI hardware, NVSwitch is the component that turns a group of separate accelerators into one large scale-up domain, which behaves much like a single GPU with pooled memory for training and inference of large models.

Without a switch, NVLink connects GPUs point to point, which limits how many devices can be linked directly and splits bandwidth across links. NVSwitch removes that limit by placing dedicated switching silicon between GPUs. Since its introduction in 2018, each generation has raised per-GPU bandwidth and domain size, from 16 GPUs in a single server to 72 GPUs in a rack-scale system.

How NVSwitch connects GPUs

NVSwitch works as a crossbar switch for NVLink traffic. Each GPU spreads its NVLink ports across several switch chips, and each switch chip connects to every GPU in the domain. Because traffic between any two GPUs passes through only one switch hop, latency stays low and uniform, and all GPU pairs see the same bandwidth at the same time.

The fabric supports direct load and store operations between GPU memories, not only bulk transfers. A kernel running on one GPU can read or write memory on another GPU in the domain, and the software stack treats the combined memory as one address space. This is the property that makes tensor parallelism practical, since it requires frequent fine-grained exchanges between GPUs within every layer.

The table below describes the main architectural elements of an NVSwitch-based system.

ElementRolePractical effect
NVLink portSerial link between GPU and switchSets raw bandwidth per connection
Switch crossbarRoutes packets between any two portsNon-blocking all-to-all traffic
Switch tray or baseboardHosts several switch chipsDefines how many GPUs join the domain
In-network reduction enginePerforms reductions inside the switchLower collective communication time
Fabric manager softwareConfigures routing and partitionsIsolates tenants and handles faults
Building blocks of an NVSwitch fabric

NVSwitch generations and bandwidth

Each NVSwitch generation is paired with an NVLink generation and a GPU architecture. Bandwidth figures below are the total bidirectional NVLink bandwidth available to one GPU, which is how NVIDIA usually quotes them. Exact system configurations vary by product, so the values describe the reference designs rather than every possible build.

GenerationPaired GPU architectureNVLink bandwidth per GPUTypical domain size
First generationVolta (V100)300 GB/s16 GPUs in one server
Second generationAmpere (A100)600 GB/s8 GPUs in one server
Third generationHopper (H100, H200)900 GB/s8 GPUs, up to 256 with external switches
Fourth generationBlackwell (B200, GB200)1.8 TB/s72 GPUs in one rack
NVSwitch generations in reference systems

The third generation added NVLink SHARP, an in-network computing feature that performs reduction operations such as summation inside the switch. In an all-reduce, each GPU then sends its data once and receives the reduced result, which roughly halves the traffic compared with ring-based algorithms. The fourth generation moved the switch chips into dedicated switch trays in the rack, connected to GPU trays through a copper spine.

NVSwitch compared with other interconnects

NVSwitch serves the scale-up network, the tightly coupled domain in which GPUs share memory semantics. Communication between such domains uses a separate scale-out network, typically InfiniBand or Ethernet with RDMA. The two layers solve different problems, and large clusters use both.

InterconnectNetwork layerMemory semanticsMain strength
NVSwitch with NVLinkScale-upLoad and store across GPUsHighest bandwidth inside the domain
Direct NVLink meshScale-upLoad and store between linked pairsNo switch silicon, limited GPU count
PCIe switchHost attachmentLimited peer accessUniversal support, much lower bandwidth
InfiniBandScale-outRDMA messagesThousands of nodes with low latency
RDMA over EthernetScale-outRDMA messagesStandard Ethernet operations
UALinkScale-upLoad and store across acceleratorsOpen multi-vendor specification
NVSwitch and alternative ways to connect accelerators

UALink is the industry response to NVSwitch: an open accelerator interconnect standard intended to let chips from different vendors form comparable scale-up domains. NVSwitch remains a proprietary NVIDIA technology, and it connects only NVIDIA GPUs and NVIDIA CPUs such as Grace.

Why NVSwitch matters for large model workloads

Large language models exceed the memory of a single GPU, so they are split with tensor, expert and pipeline parallelism. Tensor and expert parallelism generate heavy all-reduce and all-to-all traffic inside every layer, and their efficiency depends almost entirely on scale-up bandwidth. NVSwitch keeps these collectives fast enough that GPUs spend more time computing and less time waiting.

  • Training: larger tensor-parallel groups reduce the memory needed per GPU without stalling on communication.
  • Mixture-of-experts models: all-to-all token routing between experts benefits directly from uniform bandwidth.
  • Inference: a large domain serves trillion-parameter models with low latency per generated token.
  • Memory pooling: the combined high-bandwidth memory of the domain holds model weights and key-value caches.

The size of the NVSwitch domain therefore shapes parallelism strategy. Engineers usually keep the most communication-intensive form of parallelism inside the domain and place data parallelism across domains, where slower scale-out links are acceptable.

Limitations and design trade-offs

NVSwitch delivers bandwidth at a cost in power, complexity and lock-in. Switch chips consume significant power, rack-scale designs require liquid cooling and precise cabling, and the whole fabric depends on one vendor. A failed switch or link can reduce the usable domain until the fabric manager reroutes or the hardware is replaced.

AspectBenefitDrawback
BandwidthUniform all-to-all at full link speedValue lost if workload is not communication bound
Domain sizeUp to 72 GPUs act as one unitLarger blast radius for faults
EcosystemMature software and librariesWorks only with NVIDIA processors
Physical designDense rack integrationHigh power density and cooling demands
Trade-offs of NVSwitch-based systems

A common misconception is that NVSwitch connects an entire cluster. In reality it covers only the scale-up domain, and clusters with tens of thousands of GPUs still depend on a scale-out network whose bandwidth per GPU is an order of magnitude lower.

Understanding it simply

Modern AI models are too big for one graphics chip. Many chips must work on the same model and share results constantly. NVSwitch is a traffic hub that links all of these chips directly.

Think of an office where every team member must talk to every other member many times a minute. Phone calls through a slow exchange would waste the day. NVSwitch is like putting everyone at one table. Each chip can reach any other chip at once, so the group works like one very large chip.

Applied in practice

A cloud provider offers inference for a mixture-of-experts language model with several hundred billion parameters. The model weights do not fit into one GPU, so the team deploys it on a rack-scale system with 72 GPUs joined by NVSwitch. Expert layers are distributed across the GPUs, and every token is routed to the experts it needs through all-to-all exchanges inside the rack.

Because the traffic stays inside the NVSwitch domain, the routing overhead remains small compared with compute time. The provider serves many concurrent users at an acceptable latency per generated token, and it uses the slower scale-out network only to balance requests between racks. The same model spread across servers linked only by Ethernet would spend far more time waiting for communication.