Skip to content

Infrastructure

GPU Cluster Networking: InfiniBand vs Ethernet (RoCE)

For large training clusters, the compute fabric decides how well GPUs scale. InfiniBand is the default choice for tightly coupled training, RoCE Ethernet can work with careful tuning, and either way the fabric should be non-blocking and rail-optimized.

Updated · 7 min read · By the GPU Boom team

ShareLinkedInXEmail

A GPU cluster has more than one network, and the one that matters most for training is the compute fabric that connects GPUs across nodes. InfiniBand is the established choice for that fabric because it delivers low latency, lossless transport and mature collective libraries out of the box. RoCE, which runs RDMA over Ethernet, can reach similar results at scale, but it needs careful congestion and flow control tuning to get there. Whichever you choose, the fabric should be non-blocking and rail-optimized so that every GPU can talk to every other GPU at full bandwidth. GPU Boom builds every cluster on a non-blocking InfiniBand fabric with 3.2 Tb/s per node on HGX systems.

The three networks in a GPU cluster

People often say "the network" when they mean one of three separate planes. Each has a different job, and mixing them up leads to bad comparisons when you evaluate a provider.

  • Compute fabric (east-west, scale-out). Connects GPUs across nodes for collective operations such as all-reduce and all-gather. This is where InfiniBand or RoCE lives, usually with one network adapter per GPU.
  • Storage network. Moves training data into the nodes and checkpoints out to shared storage. It can be a separate fabric or share hardware with the compute fabric, depending on the design.
  • Front-end network. Handles SSH, orchestration, container image pulls, monitoring and connections to the internet or your private network. It is ordinary Ethernet and carries no training traffic.

Keeping training traffic on its own fabric matters. A checkpoint write or an image pull should never compete with gradient exchange in the middle of a step.

Inside an HGX node, the 8 GPUs connect to each other over NVLink and NVSwitch. On H100 and H200 that is NVLink 4 at 900 GB/s per GPU. On B200 and B300 it is NVLink 5 at 1.8 TB/s per GPU. This bandwidth is far higher than any scale-out network, which is why frameworks place the most communication-heavy parallelism, such as tensor parallelism, inside a node.

Once a job spans more than one node, traffic leaves NVLink and crosses the compute fabric. Data parallel and pipeline parallel traffic usually rides this network. GB200 and GB300 NVL72 racks change the boundary by putting 72 GPUs in one NVLink domain, so more of the model fits inside the fast domain before the scale-out fabric takes over.

InfiniBand vs RoCE Ethernet compared

Both technologies support RDMA, which lets a network adapter write directly into another node's memory without involving the CPU. With GPUDirect RDMA, data moves straight between GPU memory on different nodes. The differences are in how each one handles congestion, how much tuning it needs and what tooling surrounds it.

InfiniBand vs RoCE for a GPU compute fabric
FactorInfiniBandRoCE (Ethernet)
TransportLossless by design, credit-based flow controlNeeds priority flow control and congestion control configured to behave losslessly
Tuning effortLow; works well with default settingsHigher; buffer, ECN and PFC settings must be tuned and monitored
Collective offloadIn-network reduction available on supported switchesDepends on vendor and configuration
ManagementSubnet manager, centralized routingStandard Ethernet tooling and routing protocols
Operator skill poolSpecializedLarger pool of Ethernet engineers
Best fitLarge, tightly coupled training runsInference fleets, mixed workloads, teams standardized on Ethernet

In practice, InfiniBand gives predictable collective performance with less effort, which is why most large training clusters use it. Well-run RoCE fabrics exist at very large scale, but they depend on the operator getting congestion control right and keeping it right as traffic patterns change.

Rail-optimized, non-blocking fat tree

The topology matters as much as the technology. Most GPU clusters use a fat tree (a leaf and spine design) built to be non-blocking, meaning total uplink bandwidth from each leaf switch equals total downlink bandwidth to the nodes. No oversubscription means a full all-reduce across every GPU runs at the speed of the links.

Rail optimization adds one more rule. GPU 0 in every node connects to the same leaf switch (rail 0), GPU 1 in every node connects to rail 1, and so on for all 8 GPUs. Collective libraries such as NCCL take advantage of this layout, so most cross-node traffic travels between GPUs of the same index and stays one hop away. Traffic that needs to change rails can move over NVLink inside the node first.

  1. 01One network adapter per GPU, so each GPU has its own path to the fabric.
  2. 02Each adapter cabled to the leaf switch for its rail.
  3. 03Leaf switches connected to spines with no oversubscription.
  4. 04Adaptive routing enabled so traffic spreads across available paths.

When Ethernet makes sense

Ethernet is a reasonable choice when the workload is mostly inference, when jobs fit inside a single node or an NVL72 rack, or when your team already runs large Ethernet fabrics and wants one set of tools. It also fits multi-tenant platforms that need standard network segmentation. For pretraining and large fine-tuning runs that span many nodes, InfiniBand usually removes a source of risk from the project.

What to ask for in a GPU cluster lease

Network terms are easy to leave vague in a contract. Ask the provider to put these in writing as part of the reference architecture:

  • Fabric technology and per-node bandwidth for the compute network.
  • Whether the fabric is non-blocking and rail-optimized, with a topology diagram.
  • Whether the compute, storage and front-end networks are separate.
  • Whether the fabric is dedicated to your cluster or shared with other tenants.
  • NCCL all-reduce results at full cluster scale as part of acceptance testing.
  • Room to grow: spare spine ports or a plan for adding nodes later.
  • Who monitors the fabric and how link failures are detected and replaced.

Frequently asked questions

Is InfiniBand better than Ethernet for AI training?
For large, tightly coupled training runs, InfiniBand is usually the safer choice because it is lossless by design and needs little tuning. RoCE Ethernet can perform well at scale, but it depends on careful congestion control configuration.
What is a rail-optimized network?
In a rail-optimized design, the same-numbered GPU in every node connects to the same leaf switch. This keeps most cross-node collective traffic one switch hop away and matches how NCCL schedules communication.
Does NVLink replace InfiniBand?
No. NVLink connects GPUs inside a node or inside an NVL72 rack. Once a job spans more nodes or racks, traffic crosses the scale-out fabric, which is InfiniBand or Ethernet.
What does non-blocking mean for a GPU fabric?
It means the switch layers have as much uplink bandwidth as downlink bandwidth, so there is no oversubscription. Every GPU can communicate at full link speed even when all GPUs are active at once.

Next step

Send us your requirement.

GPU model and quantity are enough to start. We reply within one business day.

Request capacity →

New guides by email

One short email when we publish something useful on GPU clusters, pricing or financing. No spam.