AI infrastructure and systemsPart 6: Datacenter scale and your career
Chapter 21Networking for AI clusters
Meta's Llama 3 405B run used 16,384 H100 GPUs, and every training step ended with all of them exchanging gradients before any could continue. If one link drops packets, sixteen thousand GPUs wait for it. This chapter teaches you how AI cluster networks are built, why they look nothing like ordinary datacenter networks, and how to tell when the network is the thing slowing training down.
After this chapter you can
- Explain why synchronous training is limited by the slowest link and estimate all-reduce time from first principles
- Distinguish the front-end, back-end, storage and management networks and what each carries
- Describe RDMA and kernel bypass at the level of queues, doorbells and DMA
- Compare InfiniBand, RoCEv2 with PFC and ECN, and Ultra Ethernet
- Size a non-blocking leaf-spine fabric, count switches and optics, and reason about oversubscription
- Diagnose a network bottleneck using bus bandwidth and NIC counters
Why distributed training is network-bound
In data-parallel training (covered in the chapter on distributed training), every GPU computes gradients on its own slice of the batch. Before the optimizer step, all GPUs must agree on the averaged gradient, which is an all-reduce: every participant contributes a buffer and every participant ends up with the sum. The step cannot finish until the all-reduce does, so the whole job runs at the pace of the slowest GPU and the slowest link.
The ring all-reduce algorithm gives you a formula worth memorizing. With N GPUs, a buffer of S bytes and per-GPU link bandwidth B, each GPU sends and receives about 2(N-1)/N times S bytes.
ring all-reduce time ≈ 2 * (N - 1) / N * S / B (+ latency per step)
Example: 10 GB of bf16 gradients, 400 Gb/s NIC (50 GB/s), N = 1,024
2 * 1023/1024 * 10 GB / 50 GB/s ≈ 0.4 s per step, if nothing else goes wrongFrameworks hide some of this by overlapping communication with the backward pass, bucket by bucket. But communication that cannot be overlapped is pure idle time on thousands of expensive GPUs. Tensor and pipeline parallelism add even more frequent, latency-sensitive traffic, which is why the fastest links are reserved for them.
The separate networks inside an AI cluster
A GPU cluster is not one network. It is usually four, physically separate, each with different traffic and different failure consequences. Mixing them is a classic design mistake: a checkpoint write or a user download should never queue behind gradient traffic.
| Network | Carries | Typical per-server bandwidth | What breaks when it fails |
|---|---|---|---|
| Front-end | API traffic, SSH, container pulls, Kubernetes control plane | 1 to 2 x 100 to 400 Gb/s | Jobs cannot be scheduled or served |
| Back-end (compute fabric) | Collectives between GPUs on different servers | One 400 or 800 Gb/s NIC per GPU, so 3.2 to 6.4 Tb/s per 8-GPU server | Training slows or hangs |
| Storage | Dataset reads, checkpoint writes | 2 x 200 to 400 Gb/s | GPUs starve on input or checkpoints stall |
| Management (out-of-band) | BMC access, firmware, power control, logs | 1 Gb/s | You lose the ability to fix anything remotely |
The back-end fabric is where the money and the difficulty are. In a modern 8-GPU server, the back-end NICs can carry more bandwidth than everything else in the building combined. The rest of this chapter is mostly about that fabric.
RDMA and kernel bypass by mechanism
A normal TCP send copies your buffer into kernel socket buffers, runs the TCP state machine on a CPU core, and takes interrupts on receive. At 400 Gb/s that costs many cores and adds tens of microseconds. RDMA (remote direct memory access) lets a NIC read from local memory and write into a remote machine's memory with no CPU copies and no kernel on the data path.
The mechanism will feel familiar if you know how a DMA engine and memory-mapped I/O work.
Register memory
The application registers a buffer. The kernel pins those pages and gives the NIC a translation table plus keys that authorize access to the region.
Create queue pairs
Each connection is a queue pair (a send queue and a receive queue) living in host memory, plus a completion queue where the NIC reports finished work.
Post a work request
To send, user space writes a descriptor (address, length, remote key) into the send queue and rings a doorbell, which is a write to a memory-mapped NIC register. No system call happens.
NIC moves the data
The NIC DMAs the buffer from memory, packetizes it, and the remote NIC DMAs it straight into the registered remote buffer. With GPUDirect RDMA, that buffer can be GPU memory, so data never touches the host CPU or DRAM.
Poll for completion
The application polls the completion queue (a memory read) instead of waiting for an interrupt.
This is kernel bypass: the kernel sets up the protection once, then gets out of the way. The catch is that classic RDMA transports were designed for networks that almost never drop packets. Their recovery from loss is crude (go back and resend from the lost packet), so even 0.1 percent loss can collapse throughput. That single fact explains most of the next section.
InfiniBand, RoCEv2 and lossless Ethernet
InfiniBand is a complete network stack designed for RDMA. Links use credit-based flow control: a sender only transmits when the receiver has advertised buffer space, so congestion never causes drops. A central subnet manager computes routes for the whole fabric. It works very well and is dominated by a single vendor, NVIDIA (from its Mellanox acquisition), whose current generation is 800 Gb/s XDR.
RoCEv2 (RDMA over Converged Ethernet, version 2) carries the InfiniBand transport inside UDP/IP packets, so it runs over ordinary routed Ethernet switches. Ethernet drops packets when buffers fill, so RoCE fabrics add two mechanisms to stay lossless.
- PFC (Priority Flow Control, IEEE 802.1Qbb): when a switch queue for a traffic class fills past a threshold, it sends a pause frame upstream for that class only. This prevents drops but can spread congestion backward (head-of-line blocking, pause storms, even deadlock in bad topologies).
- ECN (Explicit Congestion Notification): switches mark packets instead of dropping them when queues grow. The receiver echoes a congestion notification and the sender slows down. The common rate-control algorithm for RoCE is DCQCN.
InfiniBand
- Lossless by design (credits), no tuning of pause thresholds
- Adaptive routing and in-network reduction (SHARP) available
- Mature, very low latency
- Effectively single-vendor, separate skill set and tooling
RoCEv2 on Ethernet
- Multi-vendor switches, familiar IP routing and tooling
- Needs careful PFC, ECN and buffer tuning to stay stable
- Meta runs most of its AI training on RoCEv2 (SIGCOMM 2024 paper)
- ECMP hashing can collide a few huge flows onto one link
Ultra Ethernet
The Ultra Ethernet Consortium (UEC, a Linux Foundation project) published Specification 1.0 on June 11, 2025; as of late 2026 the current version is 1.0.3 (July 2026), a maintenance release.
UEC replaces the RDMA transport rather than tuning around it: packet spraying across all paths, out-of-order delivery the NIC can handle, faster selective retransmission and new congestion control, so the network no longer needs to be lossless. Vendors announced UEC-oriented NICs in 2025, such as Broadcom's Thor Ultra (800G, described as UEC-compliant) and AMD's Pensando Pollara 400 (described as UEC-ready). Treat interoperability claims as early until you see multi-vendor deployments at scale.
Topologies and oversubscription
AI back-end fabrics are almost always fat-trees, built as leaf-spine (a Clos network). Every leaf switch connects to every spine, so any two servers are at most leaf-spine-leaf apart and there are many equal-cost paths between them. In a non-blocking fabric, each leaf has as much uplink bandwidth to the spines as downlink bandwidth to servers.
The diagram also shows a rail-optimized layout. GPU 0 of every server plugs into the rail-0 leaf, GPU 1 into rail 1, and so on. Collective libraries arrange traffic so that most cross-server exchanges happen between same-numbered GPUs, which keeps them one switch hop apart, and traffic between rails crosses the server's internal NVLink instead.
Switch radix k (ports per switch), two-tier non-blocking leaf-spine:
each leaf: k/2 ports down, k/2 ports up
max endpoints: k * k / 2
k = 64 -> 2,048 endpoints k = 128 -> 8,192 endpoints
Three-tier fat-tree: k * k * k / 4 endpoints (k = 64 -> 65,536)
Oversubscription ratio = downlink bandwidth / uplink bandwidth per leaf
1:1 is non-blocking. 2:1 halves cross-spine bandwidth under full load.Front-end networks are often oversubscribed 3:1 or more because their traffic is bursty and independent. Back-end training fabrics are built 1:1 because collectives load every link at once, and a 2:1 fabric can nearly double the communication time of a step.
Links, optics and scale-up versus scale-out
Ethernet and InfiniBand ports are built from lanes (SerDes, serializer and deserializer circuits) that are ganged together: 8 lanes of 100 Gb/s make an 800 Gb/s port, and 200 Gb/s lanes are arriving for 1.6 Tb/s. Short links inside a rack use copper (passive DAC or active cables); anything longer uses optical transceivers, which plug into OSFP or QSFP cages and draw roughly 10 to 30 W each. In a large cluster, optics are a significant share of network cost and power, and a common source of flaky links.
Inside a server or rack there is a second, much faster network. NVIDIA's NVLink is a scale-up interconnect: fifth-generation NVLink gives each Blackwell GPU 1.8 TB/s of bidirectional bandwidth, and the GB200 NVL72 rack joins 72 GPUs through NVLink switches into one domain. The back-end fabric is scale-out: it connects those domains at 400 to 800 Gb/s per GPU, which is roughly an order of magnitude less.
| Interconnect | Scope | Per-GPU bandwidth (approx., 2026) | Used for |
|---|---|---|---|
| NVLink 5 with NVLink switch | 8 GPUs (HGX) to 72 GPUs (NVL72) | 1.8 TB/s bidirectional | Tensor parallelism, expert parallelism |
| InfiniBand XDR or 800G Ethernet | Thousands to 100,000+ GPUs | 800 Gb/s = 100 GB/s per direction | Data and pipeline parallelism |
| PCIe Gen5 x16 | GPU to NIC and CPU in one server | about 64 GB/s per direction | Feeding the NIC |
The NIC itself has become a computer. A DPU or SmartNIC (NVIDIA BlueField, AMD Pensando and others) adds programmable cores and offload engines to the network card: congestion control, encryption, storage virtualization and tenant isolation run there instead of on host CPUs. In multi-tenant clouds, the DPU is often where the provider enforces network isolation, a theme of the chapter on multi-tenancy and platform security.
Collectives and how to read a network bottleneck
Collective libraries (NVIDIA's NCCL, AMD's RCCL) pick an algorithm and transport for each operation. Ring all-reduce is bandwidth-optimal but its latency grows with N; tree algorithms have logarithmic latency and win for small messages or very large N. NCCL also detects topology (NVLink, PCIe switches, which NIC is closest to which GPU) and builds its rings and trees to match.
To compare a measurement to hardware, use bus bandwidth, as defined by NVIDIA's nccl-tests. Algorithm bandwidth is S/t; bus bandwidth for all-reduce multiplies it by 2(N-1)/N, so it can be compared directly with the link speed.
# nccl-tests on a real cluster: sweep all-reduce sizes from 8 bytes to 8 GB
./build/all_reduce_perf -b 8 -e 8G -f 2 -g 8
# Healthy 400 Gb/s fabric: busbw for large messages within about 80-90% of 50 GB/s
NCCL_DEBUG=INFO ... # confirm transport: "NET/IB" good, "NET/Socket" means RDMA is not in useWhen a training job is slower than expected, work through the evidence in this order.
- Is it the network at all? Compare step time with and without communication (profile, or run one node). If GPU utilization dips at every step boundary, communication is not overlapped.
- Is RDMA actually in use? A silent fallback to TCP sockets is the most common, and most embarrassing, cause.
- Is bus bandwidth near line rate? If not, run nccl-tests between pairs of nodes to find the slow one. One bad optic or a link that renegotiated to a lower speed slows the entire job.
- Is the fabric congested or lossy? Check NIC and switch counters: pause frames sent and received, ECN marks, out-of-sequence and retransmit counters (for example
ethtool -S,rdma statistic,perfqueryon InfiniBand). - Are flows colliding? With ECMP, a few elephant flows can hash onto the same uplink while others sit idle. Adaptive routing, packet spraying or more queue pairs per connection spread the load.
Key terms
- All-reduce
- A collective where every participant contributes a buffer and every participant receives the elementwise sum.
- RDMA
- Remote direct memory access: a NIC reads and writes remote memory directly, without CPU copies or the kernel on the data path.
- Queue pair
- The send and receive work queues that represent one RDMA connection, shared between user space and the NIC.
- RoCEv2
- RDMA over Converged Ethernet version 2, which carries the InfiniBand transport inside UDP/IP over routed Ethernet.
- PFC
- Priority Flow Control: per-class pause frames that stop an upstream sender before a switch buffer overflows.
- ECN
- Explicit Congestion Notification: switches mark packets when queues build so senders slow down before loss.
- Leaf-spine
- A two-tier Clos fabric where every leaf switch connects to every spine switch.
- Oversubscription
- The ratio of downlink to uplink bandwidth at a switch; 1:1 means non-blocking.
- Rail-optimized
- A layout where GPU number k of every server connects to the same leaf switch.
- Bus bandwidth
- A collective benchmark figure normalized so it can be compared directly with per-link hardware bandwidth.
Build a leaf-spine fabric and break an all-reduce
Goal: build a two-spine, two-leaf fabric with four hosts in containers, measure it, then add oversubscription and packet loss and watch a ring all-reduce slow down.
You need: Linux with Docker, or macOS with OrbStack (containerlab's recommended macOS setup: create an arm64 Linux VM in OrbStack and run everything inside it). Install containerlab with bash -c "$(curl -sL https://get.containerlab.dev)" (may need sudo). Everything here runs only on your own machine.
- Create a folder
ai-fabricand save this topology. Routers are plain Linux containers with static ECMP routes; hosts are Python containers that install iperf3 at startup.
name: leafspine
topology:
defaults:
kind: linux
nodes:
spine1:
image: nicolaka/netshoot
cmd: sleep infinity
sysctls: &rt
net.ipv4.ip_forward: 1
net.ipv4.fib_multipath_hash_policy: 1
net.ipv4.conf.all.rp_filter: 0
net.ipv4.conf.default.rp_filter: 0
exec:
- ip addr add 10.1.1.1/31 dev eth1
- ip addr add 10.2.1.1/31 dev eth2
- ip route add 10.10.0.0/16 via 10.1.1.0
- ip route add 10.20.0.0/16 via 10.2.1.0
spine2:
image: nicolaka/netshoot
cmd: sleep infinity
sysctls: *rt
exec:
- ip addr add 10.1.2.1/31 dev eth1
- ip addr add 10.2.2.1/31 dev eth2
- ip route add 10.10.0.0/16 via 10.1.2.0
- ip route add 10.20.0.0/16 via 10.2.2.0
leaf1:
image: nicolaka/netshoot
cmd: sleep infinity
sysctls: *rt
exec:
- ip addr add 10.1.1.0/31 dev eth1
- ip addr add 10.1.2.0/31 dev eth2
- ip addr add 10.10.1.1/24 dev eth3
- ip addr add 10.10.2.1/24 dev eth4
- ip route add 10.20.0.0/16 nexthop via 10.1.1.1 nexthop via 10.1.2.1
leaf2:
image: nicolaka/netshoot
cmd: sleep infinity
sysctls: *rt
exec:
- ip addr add 10.2.1.0/31 dev eth1
- ip addr add 10.2.2.0/31 dev eth2
- ip addr add 10.20.3.1/24 dev eth3
- ip addr add 10.20.4.1/24 dev eth4
- ip route add 10.10.0.0/16 nexthop via 10.2.1.1 nexthop via 10.2.2.1
h1:
image: python:3.12-alpine
cmd: sleep infinity
exec:
- apk add --no-cache iperf3 iproute2
- ip addr add 10.10.1.2/24 dev eth1
- ip route add 10.0.0.0/8 via 10.10.1.1
h2:
image: python:3.12-alpine
cmd: sleep infinity
exec:
- apk add --no-cache iperf3 iproute2
- ip addr add 10.10.2.2/24 dev eth1
- ip route add 10.0.0.0/8 via 10.10.2.1
h3:
image: python:3.12-alpine
cmd: sleep infinity
exec:
- apk add --no-cache iperf3 iproute2
- ip addr add 10.20.3.2/24 dev eth1
- ip route add 10.0.0.0/8 via 10.20.3.1
h4:
image: python:3.12-alpine
cmd: sleep infinity
exec:
- apk add --no-cache iperf3 iproute2
- ip addr add 10.20.4.2/24 dev eth1
- ip route add 10.0.0.0/8 via 10.20.4.1
links:
- endpoints: ["leaf1:eth1", "spine1:eth1"]
- endpoints: ["leaf1:eth2", "spine2:eth1"]
- endpoints: ["leaf2:eth1", "spine1:eth2"]
- endpoints: ["leaf2:eth2", "spine2:eth2"]
- endpoints: ["leaf1:eth3", "h1:eth1"]
- endpoints: ["leaf1:eth4", "h2:eth1"]
- endpoints: ["leaf2:eth3", "h3:eth1"]
- endpoints: ["leaf2:eth4", "h4:eth1"]- Deploy it and check connectivity across the fabric. Containers are named
clab-leafspine-<node>.
sudo containerlab deploy -t leafspine.clab.yml
docker exec clab-leafspine-h1 ping -c 3 10.20.3.2
docker exec clab-leafspine-leaf1 ip route show 10.20.0.0/16Expect replies with sub-millisecond latency, and a route on leaf1 with two nexthop lines: that is ECMP across both spines.
- Measure baseline throughput. Veth links are fast, so expect several Gb/s to tens of Gb/s depending on your CPU.
docker exec -d clab-leafspine-h3 iperf3 -s
docker exec clab-leafspine-h1 iperf3 -c 10.20.3.2 -t 10- Save this simulated ring all-reduce. It moves exactly the bytes a ring all-reduce moves, 2(N-1) steps of S/N bytes per rank, but skips the arithmetic so it measures only the network.
import socket, sys, threading, time
rank, hosts = int(sys.argv[1]), sys.argv[2].split(",")
size = int(sys.argv[3]) * 1024 * 1024 if len(sys.argv) > 3 else 64 * 1024 * 1024
n, port = len(hosts), 29500
chunk = size // n
payload = b"\x01" * chunk
srv = socket.socket()
srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
srv.bind(("0.0.0.0", port))
srv.listen(1)
out = None
while out is None: # connect to the next rank in the ring
try:
out = socket.create_connection((hosts[(rank + 1) % n], port))
except OSError:
time.sleep(0.5)
inc, _ = srv.accept() # accept from the previous rank
def recv_exact(sock, k):
buf = bytearray(k)
view, got = memoryview(buf), 0
while got < k:
r = sock.recv_into(view[got:], k - got)
if r == 0:
raise ConnectionError("peer closed")
got += r
# barrier: pass one token around the ring
if rank == 0:
out.sendall(b"g"); recv_exact(inc, 1)
else:
recv_exact(inc, 1); out.sendall(b"g")
t0 = time.perf_counter()
for step in range(2 * (n - 1)): # reduce-scatter then all-gather
sender = threading.Thread(target=out.sendall, args=(payload,))
sender.start()
recv_exact(inc, chunk)
sender.join()
t = time.perf_counter() - t0
algbw = size * 8 / t / 1e9
busbw = algbw * 2 * (n - 1) / n
print(f"rank {rank}: {size >> 20} MB in {t*1000:.0f} ms, algbw {algbw:.2f} Gb/s, busbw {busbw:.2f} Gb/s")- Copy it to the hosts and run all four ranks. The ring is h1 to h2 (same leaf), h2 to h3 (crosses the spines), h3 to h4, and h4 back to h1 (crosses again).
HOSTS=10.10.1.2,10.10.2.2,10.20.3.2,10.20.4.2
for h in h1 h2 h3 h4; do docker cp allreduce.py clab-leafspine-$h:/allreduce.py; done
cat > run.sh <<EOF
for r in 1 2 3; do docker exec -d clab-leafspine-h\$((r+1)) python3 /allreduce.py \$r $HOSTS 256; done
docker exec clab-leafspine-h1 python3 /allreduce.py 0 $HOSTS 256
EOF
bash run.shRecord the time and bus bandwidth. Run it three times; the numbers should agree within roughly 10 percent.
- Make the fabric look like real hardware. Cap every host link at 1 Gb/s and every leaf-spine link at 500 Mb/s, which gives each leaf 2 Gb/s down and 1 Gb/s up: a 2:1 oversubscribed fabric. netem shapes egress, so shape both ends of each link.
for n in h1 h2 h3 h4; do docker exec clab-leafspine-$n tc qdisc replace dev eth1 root netem rate 1gbit; done
for n in leaf1 leaf2; do for i in eth3 eth4; do docker exec clab-leafspine-$n tc qdisc replace dev $i root netem rate 1gbit; done; done
for n in leaf1 leaf2 spine1 spine2; do for i in eth1 eth2; do docker exec clab-leafspine-$n tc qdisc replace dev $i root netem rate 500mbit; done; done
bash run.shIf tc reports that the qdisc kind is unknown, load the module on the host or VM with sudo modprobe sch_netem. Expect bus bandwidth well under 1 Gb/s: two ring hops share 1 Gb/s of cross-spine capacity, and ECMP may even hash both onto the same spine.
- Add 1 percent loss on one uplink only, then rerun.
docker exec clab-leafspine-leaf1 tc qdisc replace dev eth1 root netem rate 500mbit loss 1%
bash run.sh
docker exec clab-leafspine-h1 iperf3 -c 10.20.3.2 -t 10 # check the Retr columnThe all-reduce time should jump far more than 1 percent, and iperf3 should show retransmissions. One lossy link out of eight slows every rank, because every step waits for the slowest hop.
- Tear down with
sudo containerlab destroy -t leafspine.clab.yml.
Check your work: you have a table with three rows (baseline, 2:1 oversubscribed, plus 1 percent loss on one link) showing all-reduce time and bus bandwidth, and you can explain each change using the ring formula and TCP's reaction to loss.
Stretch: replace the static routes with FRR running BGP (image quay.io/frrouting/frr), then fail one spine with docker stop mid-run and measure how long the all-reduce stalls before traffic reroutes.
Size the fabric for a 1,024-GPU cluster
Goal: produce a bill of materials for a non-blocking, rail-optimized back-end fabric for 128 servers with 8 GPUs each.
You need: a spreadsheet or a short Python script, and the topology formulas from this chapter.
- Fix the assumptions: one 400 Gb/s NIC per GPU, so 1,024 endpoint ports. Switches with 64 ports of 400 Gb/s (a 25.6 Tb/s class switch). Non-blocking, so each leaf uses 32 ports down and 32 up.
- Compute leaves: 1,024 / 32 = 32 leaves. With 8 rails, that is 4 leaves per rail, each serving 32 servers.
- Compute spines: 32 leaves x 32 uplinks = 1,024 uplinks; 1,024 / 64 ports = 16 spines. Total 48 switches.
- Count links and optics. 1,024 GPU-to-leaf links plus 1,024 leaf-to-spine links. Assume leaf-spine links need a transceiver at each end (2,048 optics) and estimate how many server links can use copper if leaves sit at the end of each row.
- Redo the sizing with 51.2 Tb/s switches (128 x 400 Gb/s): 16 leaves and 8 spines, 24 switches. Note what you gain (fewer hops and devices) and what you lose (larger failure domain per switch).
- Estimate fabric power using roughly 15 W per transceiver as a placeholder and the vendor's published switch power, then express it as a percentage of a cluster drawing about 1.5 MW of IT load.
- Repeat with 2:1 oversubscription and write one paragraph on what it saves and what it does to all-reduce time.
Check your work: your sheet shows 48 switches and 2,048 leaf-spine optics for the 64-port case, 24 switches for the 128-port case, and an explicit oversubscription ratio for every variant.
Stretch: size the same cluster with a third tier so it can grow to 8,192 GPUs without recabling the first 1,024, and state how many spine ports you must reserve on day one.
Check yourself
A 512-GPU training job runs at 60 percent of the expected speed. nccl-tests between most node pairs shows near line-rate bus bandwidth, but one pair is at 40 percent. What is the most likely explanation and fix?
Why do RoCEv2 fabrics need PFC and ECN while ordinary TCP datacenter networks usually do not?
A leaf switch has 48 ports of 400 Gb/s to servers and 16 ports of 400 Gb/s to spines. What happens to cross-leaf all-reduce under full load?
In a GB200 NVL72-based cluster, which traffic should you try hardest to keep inside the NVLink domain?
NCCL_DEBUG=INFO on a new cluster shows NET/Socket instead of NET/IB. What does that mean?
Recap
- Synchronous training runs at the pace of the slowest link, so AI fabrics are designed to remove tail latency, not just to add bandwidth.
- A cluster has separate front-end, back-end, storage and management networks, and the back-end GPU fabric dominates cost and difficulty.
- RDMA uses registered memory, queue pairs and doorbells to move data without the kernel, but its classic transport needs a nearly lossless network.
- InfiniBand is lossless by design; RoCEv2 gets there with PFC and ECN; Ultra Ethernet redesigns the transport so losslessness is no longer required.
- Back-end fabrics are rail-optimized, non-blocking leaf-spine trees, and switch radix sets how far two tiers can scale.
- Diagnose with bus bandwidth against line rate, transport checks, pairwise tests and pause, ECN and retransmit counters.
Go deeper
- NCCL tests: performance notes: the definitive explanation of algorithm and bus bandwidth for each collective.
- RDMA over Ethernet for Distributed AI Training at Meta Scale: how Meta built and operates RoCEv2 back-end fabrics, with a link to the SIGCOMM 2024 paper.
- Ultra Ethernet Consortium specification: the current UEC specification and its version history.
- Containerlab: container-based network labs, including the macOS setup used in the lab.
- The Llama 3 Herd of Models: the infrastructure section describes a 16,384-GPU training cluster, its network and its failure rate.