AI Infrastructure

AI training cluster: InfiniBand HDR, or Ethernet with RoCE v2?

Peer InfiniBand HDR and Ethernet RoCE v2 for large-scale training clusters - all-reduce latency, topology sizing, GPU Direct paths, and a dual-fabric RFQ.

Quick Take: Which Fabric Should Carry Your Training Cluster

Quick Take: How to size a GPU cluster fabric: InfiniBand HDR versus Ethernet RoCE v2. Peer them on collective latency, lossless transport, topology cost, and tuning effort before GPU CapEx. BENQUAN GLOBAL LIMITED supplies QM9700 InfiniBand and Spectrum-X Ethernet fabrics with competitive pricing.

Use this page when the GPU count is roughly known but the fabric is still open. It covers the network and GPU data paths that decide time to train. Storage sizing sits on a separate line: All-Flash Array Solutions.

Not this page:

Architecture Fork: InfiniBand HDR vs Ethernet RoCE v2

Quick Answer: InfiniBand HDR runs a lossless credit-based transport with hardware retransmission and switch-side collective offload. Ethernet RoCE v2 carries the same verbs over UDP and IP, so it depends on PFC and ECN tuning. That transport difference, not raw bandwidth, drives most cluster performance gaps.

Both fabrics carry the same RDMA verbs. What differs is transport behavior under all-reduce load, not raw port speed. Peer them dimension by dimension before standardizing a cluster-wide fabric.

DimensionInfiniBand HDREthernet RoCE v2
Signaling50 Gbaud, 4 lanes × 50 Gbps = 200 Gbps, PAM425 Gbaud/lane, 4 × 25 Gbps = 100 Gbps, PAM4/NRZ
Cabling / reachAOC to 100 m, DAC to 3 mStandard Ethernet QSFP28 (100GBASE-CR4/SR4)
TransportIB Transport, not TCP/IPIB verbs over UDP/IP/Ethernet
ReliabilityHardware link-layer retransmissionSoftware retransmission, TCP-like
Flow controlCredit-based, losslessPFC for lossless operation
QoS16 virtual lanes per portPriority classes via PFC/ECN
RDMA verbsSend/Receive, RDMA Read/Write, atomics, memory registrationSame verbs encapsulated over UDP
GPU Direct pathGPU → PCIe → HCA → network → HCA → PCIe → GPU; CPU, system RAM and kernel bypassedWorks on supported RoCE NICs; still needs PFC/ECN tuning
Small-message latency1–2 μs; 8–10 μs on large transfersHigher; rises with congestion and ECN
Known risksMinimal — lossless by designPFC deadlock, head-of-line blocking, ECN tuning, 10–100 MB switch buffers
Scope discipline: Fabric choice is a cluster-wide standard. Do not mix an InfiniBand training island and a RoCE island on one RFQ line without stating which workload lands where.

Fabric Peer Mapping: Where the Gap Actually Appears

Quick Answer: Peer fabrics on collective behavior, not port speed. All-reduce heavy data-parallel training exposes latency and packet loss, so InfiniBand usually leads there. Pipeline-heavy or smaller clusters tolerate tuned RoCE. Always state GPU count, precision, and parallelism plan before ranking any fabric.

Reference Benchmark: GPT-3 Scale Training

A 175B parameter model trained across two otherwise identical clusters, differing only in network fabric:

MetricInfiniBand HDR (200Gbps)Ethernet RoCE v2 (100Gbps)Performance Gap
Training throughput1,247 samples/sec412 samples/sec3.0x faster
GPU utilization94.2%67.8%26.4% higher
All-reduce latency8.3 μs47.2 μs5.7x lower
Time to 1 epoch6.2 hours18.7 hours3.0x faster

Test configuration: 64x NVIDIA H100 GPUs (8 nodes × 8 GPUs), PyTorch FSDP (Fully Sharded Data Parallel), mixed precision training (BF16), batch size 2048.

Why such a large gap? The bottleneck is latency and CPU overhead, not raw bandwidth. GPUs idle 40–60% of each step waiting on gradient synchronization: a 175B model moves ~350 GB of FP16 gradients (700 GB send + receive per GPU) every step, 100–1000 times per second.

All-Reduce Transport Behavior

FactorInfiniBand HDREthernet RoCE v2
Data movementRDMA zero-copy, no CPU involvementRDMA, but kernel still manages connections
Collective offloadAll-reduce / all-gather offloaded to switchesHost-driven; no switch offload
Switch latencySub-microsecond10–50 μs
Loss behaviorCredit-based, losslessNeeds PFC and deep buffers for microbursts
Tuning riskLowPFC deadlock and ECN threshold tuning
Cluster intentInfiniBand pathEthernet pathHonesty note
Large data-parallel trainingPreferred - collective offloadNeeds deep buffers and tuningState bisection ratio on both columns
Pipeline-heavy layoutsWorks, may be over-specifiedCompetitive - activations are smallDo not quote 1:1 bisection blindly
Mixed training and inferenceSeparate training islandOften simpler to operateSplit RFQ lines by workload
Existing Ethernet ops teamAdds a new operating modelReuses skills and toolingPrice the training and tuning effort

Topology and Cluster Sizing

Quick Answer: Size topology from the parallelism plan and a stated oversubscription ratio. Fat-tree buys predictable any-to-any bandwidth at high spine cost. Rail-optimized cuts spine count sharply when traffic stays inside rails. Dragonfly+ lowers hop count on very large clusters at routing complexity cost.

Size topology from the parallelism plan and one stated oversubscription ratio. The three common fabrics trade spine cost against routing complexity.

Figures follow the NVIDIA GB300 NVL72 and NVIDIA H200 product pages (rail topology, NVLink domain and per-GPU fabric figures from vendor data).

TopologyHow it worksOversubscriptionCost / cablingBest for
Fat-tree (2-tier Clos)Full bisection, ECMP across spines, multiple paths between nodes1:1High — many spine switches, dense cablingPredictable any-to-any, large data-parallel
Rail-optimizedIntra-rail NVLink (900 GB/s in node) held at 1:1; cross-rail relaxed1:1 intra, 4:1–8:1 cross50–75% fewer spine switchesTensor + pipeline layouts
Dragonfly+Groups fully connected internally; every group links to every otherAdaptive routingFewer cables and switch portsClusters over 1000 GPUs, low diameter (≤3 hops)

Worked example — 512-GPU fat-tree: 16 leaf switches (4 nodes / 32 GPUs each), 16 spine switches, 1:1 oversubscription, ~576 ports and 256 spine-to-leaf cables. Rail-optimized cuts that spine count by 50–75% when traffic stays inside rails; Dragonfly+ lowers hop count once the cluster exceeds ~1000 GPUs, at the cost of adaptive routing.

GPU Direct, NVLink and PCIe Data Paths

Quick Answer: Validate the GPU data path per server SKU, not per switch. GPU Direct RDMA removes system memory copies, GPU Direct Storage removes the CPU from dataset loading, and NVLink keeps tensor-parallel traffic inside a node. Confirm NIC, driver, and PCIe topology on every quote.

GPU Direct Data Paths

Validate the data path per server SKU. GPU Direct RDMA lets the InfiniBand HCA DMA straight to and from GPU memory, removing the system-RAM bounce; GPU Direct Storage lets the GPU read NVMe directly, bypassing the CPU on dataset loads.

Data pathRouteCPU / system RAMLatencyBandwidth
Without GPU DirectGPU → RAM → HCA → network → HCA → RAM → GPU (5 copies)Involved on both endsBaselineBaseline, RAM-bound
GPU Direct RDMAGPU → HCA → network → HCA → GPUBypassed~50% lower~2× (no RAM bottleneck)
GPU Direct StorageNVMe SSD → GPU, no CPU stagingBypassed—10–20 GB/s per GPU vs 2–3 GB/s via CPU

NVLink vs PCIe

TechnologyBandwidth (per GPU)LatencyUse Case
NVLink 4.0 (H100)900 GB/s (18 links × 50GB/s)~1 μsIntra-node tensor parallelism
PCIe 5.0 x16128 GB/s~5 μsCPU-GPU communication
InfiniBand HDR200 Gbps = 25 GB/s~8 μsInter-node communication

Implication: Tensor parallelism should stay within a node (NVLink), data parallelism can span nodes (InfiniBand).

Distributed Training Strategies and Network Load

Quick Answer: The parallelism plan sets the network bill. Data parallelism is bandwidth bound on all-reduce, tensor parallelism is latency critical and belongs on NVLink, and pipeline parallelism moves small activations. Freeze the 3D split before quoting switches, NICs, or oversubscription ratios.

The parallelism plan sets the network bill. Freeze the 3D split before quoting switches, NICs, or oversubscription — each dimension stresses the fabric differently.

StrategyWhat crosses the networkBandwidth needLatency sensitivityPreferred topologyScaling limit
Data parallelAll-reduce gradients each step (model size × 2)High — bandwidth-boundMedium — overlaps computeFull bisectionBatch size × GPU count
Tensor (model) parallelAll-gather / reduce-scatter every layerVery highCritical — blocks computeIntra-node NVLinkModel size ÷ GPU memory
Pipeline parallelStage activations per micro-batchLowMedium — pipeline bubblesLinear / ringPipeline depth

Hybrid 3D Parallelism

Example — 1024-GPU cluster, 1T-parameter model: 8-way tensor parallel inside each node over NVLink, 16 pipeline stages across nodes, and 8-way data-parallel replication (8 × 16 × 8 = 1024 GPUs). Tensor traffic stays on intra-node NVLink; pipeline stage transfers and data-parallel all-reduce ride the inter-node InfiniBand or RoCE fabric.

Cluster Cost Model and Dual-Fabric RFQ Checklist

Quick Answer: Fabric premium is small against GPU CapEx, so judge it against recovered GPU hours rather than switch list price. Issue one cluster brief with two fabric columns, equal topology and oversubscription assumptions, and dated lead times on NICs, switches, cables, and optics.

Illustrative Network Cost Model: 64-GPU Cluster

Planning estimates for relative comparison only - confirm current pricing on every quote.

ComponentInfiniBand HDREthernet 100G RoCE
Network share of clusterHigher NIC and switch contentLower NIC and switch content
Typical network premiumAbout 10% over the Ethernet baselineBaseline
Tuning effortLow - lossless by designHigher - PFC and ECN per workload
Spares modelHCAs, AOC/DAC, switch sparesNICs, QSFP28 optics, switch spares

Where the premium is repaid: using the benchmark above, 12.5 hours saved per epoch on a 64-GPU cluster returns roughly 800 GPU-hours per epoch. At typical GPU-hour rates a 10% network premium is recovered within tens of epochs, and production runs are usually hundreds of epochs. Re-run this math with your own GPU-hour cost before deciding.

Dual-Fabric RFQ Checklist

  1. Workload: model size, precision, dataset size, target time to train
  2. GPU count, per-node GPU count, and server SKU
  3. Parallelism plan: tensor, pipeline, and data-parallel split
  4. Topology and stated oversubscription ratio on both columns
  5. NIC or HCA model and port count per node
  6. Switch model, port count, and buffer expectation
  7. Cables and optics: AOC, DAC, or QSFP28 with 10% spares
  8. GPU Direct RDMA and Storage support confirmed per server SKU
  9. Management network and out-of-band lines
  10. Power and cooling envelope per rack
  11. Support term years equalized on both fabrics
  12. Lead time and ATP dated on both quotes

BENQUAN GLOBAL LIMITED supplies InfiniBand and Ethernet AI fabric hardware, GPU servers, and optics with competitive pricing and configuration support. Use SKU Lookup, then submit the dual-fabric brief on rfq.html.

Frequently Asked Questions (FAQ)

Quick Answer: Fabric choice follows workload scale and tuning capability, topology follows the parallelism plan, and GPU Direct support must be confirmed per server SKU. Quote both fabrics on identical assumptions, then decide with recovered GPU hours rather than switch list price alone.

What networking requirements do GPU clusters and AI training have?

A training pod needs three separate networks: a compute fabric at 400–800 Gb/s per GPU (InfiniBand NDR or RoCE v2) built as a rail-optimized, non-blocking leaf–spine; a storage network sized so checkpoint writes never stall step time; and an out-of-band management network. Collective latency targets sit in single-digit microseconds.

Is InfiniBand always faster than Ethernet for AI training?

No. InfiniBand leads on collective latency and lossless behavior, which dominates all-reduce heavy training. Well-tuned RoCE v2 with deep-buffer switches closes much of the gap on smaller clusters.

What network bandwidth does a GPU training node need?

Size by collective pattern, not per-GPU sticker bandwidth. Keep tensor parallelism inside the node over NVLink, then scale inter-node capacity with pipeline and data-parallel traffic.

Can rail-optimized topology cut cluster network cost?

Yes. Accepting cross-rail oversubscription while holding intra-rail paths at 1:1 cuts spine switch count by roughly 50 to 75 percent. It suits tensor plus pipeline layouts.

Does GPU Direct RDMA require InfiniBand?

No. It works over supported RoCE NICs as well, but the lossless InfiniBand transport removes retransmission and PFC tuning risk. Confirm NIC, driver, and PCIe topology per quote.

When should you use NVLink versus InfiniBand for AI training?

They are layers, not rivals. NVLink carries GPU-to-GPU traffic inside one server (up to 900 GB/s per GPU on Hopper-class parts); InfiniBand or RoCE v2 carries inter-node traffic once the model spans servers. Size the NVLink domain first, then pick the scale-out fabric.

Where to RFQ both fabrics?

BENQUAN GLOBAL LIMITED supplies InfiniBand and Ethernet AI fabrics with competitive pricing. Submit one cluster brief with the checklist above.

Key Takeaway

Key Takeaway: Fabric choice decides GPU utilization, not brochure bandwidth. Fix the parallelism plan, state one oversubscription ratio, then quote InfiniBand and Ethernet on identical assumptions and judge the premium against recovered GPU hours. BENQUAN GLOBAL LIMITED supplies both fabrics with competitive pricing.

Not sure your AI cluster BOM is optimal?

If InfiniBand vs Ethernet fabric choice, GPU count, topology oversubscription, or GPU Direct configuration is unclear, click below for a free compatibility and delivery risk assessment. Fast BOM validation from a global free-port logistics hub.

Free Compatibility & Delivery Risk Assessment

Or call +852-21349834 · info@benquan.hk

Contents