AI Infra Interviews logo
Networking, Interconnects & Storage / 03
medium★ EssentialNewNVIDIACrusoexAI

InfiniBand or RoCE version 2 for a new GPU training cluster. Make the call and say what would reverse it.

Both carry RDMA at the same line rate. One arrives lossless because the transport was designed that way, the other becomes lossless only if a set of switch settings is correct on every port. What that difference costs in operations, what it saves in money and hiring, and the fleet size where the answer flips.

Updated Sep 2026 · Grounded in real AI infrastructure interview loops and written to a senior-engineer editorial bar, with every number worked and every diagram hand-built.

TL;DR: Both deliver RDMA at 400 Gb/s per port and both can run a large training job well. The difference is where losslessness comes from. InfiniBand is credit-based: a sender only transmits when the receiver has advertised buffer space, so packets are not dropped under congestion and the fabric behaves the same on day one and after a year of changes. RoCE version 2 runs RDMA over Ethernet and gets the same property only when priority flow control and explicit congestion notification are configured correctly on every switch and every NIC, and a single mismatched setting produces either packet loss that collapses RDMA throughput or a pause cascade that stalls the fabric. In exchange, RoCE uses the Ethernet team, the Ethernet supply chain and Ethernet tooling, which for many organizations is the deciding factor. For a first training cluster under a few thousand GPUs with no fabric specialist on staff, choose InfiniBand. Reverse it when you have network engineers who own the switches, when you are large enough that the per-port saving funds them, or when the cluster must share a fabric with the rest of the company.

How to approach it

Name the one technical difference that matters, which is where losslessness comes from, and resist listing features. Then convert the difference into operational terms, because that is where it is actually paid. Then give the cost and staffing side honestly. Make the call for a stated situation, and give the two conditions that flip it, since the answer depends on the organization rather than on the technology.

A strong answer

A typical situation: a team stands up a RoCE cluster, runs nccl-tests on two nodes and sees line rate, then starts a 512-GPU job and watches all-reduce bandwidth collapse to a fraction of that with no errors reported anywhere. The two-node test never produced congestion, so it never exercised the configuration that was wrong.

The one difference that generates all the others:

InfiniBand
  credit-based flow control at the link layer: a sender transmits only into buffer space the
  receiver has already advertised. Congestion becomes backpressure, never loss.
  A subnet manager assigns addresses and computes routes centrally, so the fabric has one
  authoritative view of itself.

RoCE v2
  RDMA packets inside UDP over Ethernet. Ethernet drops under congestion by default, and RDMA
  reacts badly to loss because go-back-N retransmission at these rates destroys throughput.
  Losslessness is added by configuration:
    priority flow control (PFC) so a congested port pauses its upstream instead of dropping
    explicit congestion notification (ECN) plus DCQCN so senders slow down before PFC fires
    buffer and threshold tuning per switch model
  every switch, every port, both NICs, consistently. One wrong threshold and you get either
  loss or a pause cascade

Congestion Control for AI Fabrics covers the mechanisms; RDMA, InfiniBand and RoCEv2 covers the transports. The operational consequence is the part to say out loud: on InfiniBand the correct configuration is mostly the default, and on RoCE the correct configuration is a project with an owner and a regression test.

What the choice costs and saves:

DimensionInfiniBandRoCE v2
LosslessnessBy design, credit-basedBy configuration, PFC plus ECN on every hop
Failure mode when misconfiguredRare; the fabric is largely self-managingSilent throughput collapse, or a pause cascade that stalls unrelated jobs
Cost per portHigher, roughly 20 to 30% on comparable speedsLower, and the supply chain is broader
StaffingA specialist skill, and a smaller hiring poolYour existing network engineers, with new material to learn
ToolingSubnet manager, ibstat, ib_write_bw, perfqueryStandard Ethernet monitoring, plus RDMA counters
Sharing with general trafficSeparate fabricCan share, which is also how noisy neighbors reach your training job
In-network reductionSHARP available on supported switchesVendor-specific equivalents

The arithmetic that decides it at a given size:

cluster    1,024 GPUs, one 400 Gb/s port per GPU, plus storage and management
ports      1,024 endpoint ports plus roughly 512 uplinks at 1:1 = about 1,536 fabric ports
cost delta assume $2,000 per port InfiniBand against $1,500 RoCE, including optics
           1,536 x $500 = about $768,000 of capital saved by choosing RoCE
against    one network engineer who owns the fabric configuration, on-call for it, and builds
           the regression tests: roughly $250,000 per year fully loaded
so         the saving funds about three years of that role at this size, and the decision turns
           on whether that person exists and wants the job
at 128 GPUs the same arithmetic gives about $96,000 of saving, which funds a few months, and
           InfiniBand is the clear answer
sanity: the technology comparison is close enough that staffing and scale decide it, which is
        why two competent teams reach opposite conclusions honestly

The call, for a first training cluster of a few thousand GPUs at an organization without a dedicated fabric team: InfiniBand. The reason is not throughput, since both reach line rate when configured correctly. It is that the failure mode of the alternative is silent, appears only under the congestion that a real job produces, and costs days of a training run to diagnose. Debugging a Slow All-Reduce is the procedure you will be running, and on RoCE it has more branches.

SAME 400 Gb/s, DIFFERENT NUMBER OF THINGS THAT MUST BE RIGHT InfiniBand credit-based flow control lossless by design RoCEv2 PFC and ECN on every hop 6 or 7 settings, everywhere Ask who tunes it at 3 a.m., and whether that person exists. That answer decides it. A mistuned RoCE fabric passes every link check and runs collectives well under expectation.

The reversal condition, stated as two concrete triggers rather than a preference. Reverse to RoCE when there is a named network engineer who owns switch configuration as part of their role, with a test that reproduces congestion before a change reaches production, because then the configuration burden has an owner and the per-port saving is real money. Reverse also when the cluster must share a fabric with the rest of the company's infrastructure, because running a second isolated fabric has its own cost and complexity, and at that point the question becomes how to protect the training traffic with quality-of-service classes rather than which fabric to buy. Above roughly ten thousand GPUs the calculation shifts again for a different reason: at that scale you will have fabric specialists regardless, and the per-port saving is large enough to fund a team.

What interviewers probe next

  • "What actually breaks first on a misconfigured RoCE fabric?" Either packet loss, which shows as retransmission counters climbing and throughput collapsing, or a PFC pause cascade, which shows as pause frame counters rising fleet-wide while nothing is dropped and everything is slow.
  • "How would you validate a RoCE fabric before trusting it?" Run a collective large enough to produce sustained congestion across the whole cluster, not a two-node bandwidth test, and watch pause and ECN counters on the switches while it runs.
  • "Does the choice affect the software?" Barely. NCCL uses either through the same verbs interface. RoCE needs the GID index set correctly, which is one more variable to get right.
  • "What about Ultra Ethernet?" It is the industry's attempt to remove the configuration burden by redesigning the transport rather than patching Ethernet. It changes this comparison when it is deployable at scale, and until then it belongs in a plan rather than in a purchase.

Common mistakes

  • Validating a RoCE fabric with a two-node test, which never creates the congestion the configuration exists to handle.
  • Framing the comparison as raw bandwidth, when both reach line rate.
  • Choosing RoCE for the capital saving without funding the person who will own the configuration.
  • Treating the choice as permanent, when the fabric is the part of a cluster with the longest lifetime and the hardest migration.

Key takeaways

  • InfiniBand is lossless by design through credit-based flow control; RoCE is lossless only when PFC and ECN are correct on every hop.
  • The RoCE failure mode is silent and appears only under real congestion, which is why two-node validation passes and 512-GPU jobs do not.
  • At 1,024 GPUs the per-port saving is roughly $768,000, which funds about three years of the network engineer the choice requires.
  • Choose InfiniBand without a fabric owner; reverse when one exists, when the fabric must be shared, or above the scale where you will have specialists anyway.
That one was free — and so are 10 answers per topic without an account. Signing in doubles that to 20, opens the Plus lessons in the courses, and remembers which topics you keep getting wrong.no card · Google sign-in · nothing to cancel
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 10 to 20 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free

The concepts behind this question

Ranked by how closely each one overlaps this question's topic, so the first card is the thing to read if the answer above moved too fast.

Core
🔌 Networking & StorageSign in
RDMA, InfiniBand and RoCEv2Training across nodes moves hundreds of gigabytes per step, and a CPU-driven TCP stack cannot feed a 400 Gb/s link. RDMA lets a NIC write straight into a remote GPU's memory with no kernel and no copies, and it runs over two fabrics: InfiniBand, which is lossless by design, and RoCEv2, which is Ethernet made lossless by configuration. The choice is operational as much as technical, and the numbers that decide it are per-GPU bandwidth, the collective's volume, and who will debug a pause storm at 3 a.m.
Advanced
🔌 Networking & Storage🔒 Premium
Congestion Control for AI FabricsCollective traffic is the worst case a network can see: hundreds of senders transmit to the same receiver at the same instant (incast), every flow is large and long-lived, and RDMA cannot tolerate a dropped packet. Congestion control is the set of mechanisms (PFC, ECN with DCQCN, adaptive routing, packet spraying) that keep queues from overflowing without stalling the fabric. On plain Ethernet a busy all-reduce can fall to about 60% of link rate; with a tuned control loop it holds above 90%. Reading the counters that show which one you have is the on-call skill.
Foundational
🔌 Networking & Storage
NCCL and Collective AlgorithmsNCCL is the library every PyTorch collective lands in, and its choice of ring or tree, channel count and protocol decides whether an all-reduce runs at fabric speed or at a third of it. Knowing what NCCL_DEBUG=INFO prints, and which environment variable changes which decision, is the difference between tuning a cluster and guessing at it.
Foundational
🖧 Hardware & Cluster Build-Out
Scale-Out Fabric Choice: InfiniBand XDR vs Spectrum-XOutside the NVLink domain every GPU talks over a scale-out fabric, and as of September 2026 NVIDIA sells two at the same 800 Gb/s per port: Quantum-X800 InfiniBand and Spectrum-X Ethernet. They differ in congestion handling, operational familiarity and what happens when something misbehaves rather than in headline speed. The switch radix decides how many endpoints a two-tier fabric reaches, and that single number drives the switch count, the cable count and a large part of the budget.
UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

Scored on framing the choice as lossless-by-design against lossless-by-configuration, on naming the specific RoCE configuration burden, and on giving a reversal condition tied to team and scale rather than to preference.

DISCUSSION · 0

No comments yet — be the first to share your approach.