RoCE networks for distributed AI training at scale
Meta runs distributed AI training on a dedicated RoCEv2 backend network, separate from the frontend network used for data ingestion and checkpointing. The backend is a two-stage Clos "AI Zone" (RTSW leaf, deep-buffer CTSW spine), joined by an oversubscribed aggregation layer, with a topology-aware scheduler that minimizes cross-zone traffic. Because training traffic has low entropy, is bursty and consists of elephant flows, routing moved from plain ECMP to destination-slice path pinning, which needed 2x uplink capacity as a costly stopgap. It then moved to queue-pair scaling with E-ECMP hashing on the destination QP, which improved AllReduce by up to 40%. At 400G Meta dropped DCQCN and relies on PFC plus receiver-driven traffic admission built into NCCL's clear-to-send mechanism, with CTS packets given high priority at switches, and has seen no persistent congestion in four years.
Related posts
- MetaRoCE: A New RDMA Transport Built for AI-Scale Ethernet
Meta Engineering hardMasterMetaRoCE is a clean-sheet RDMA transport for AI workloads on lossy commodity Ethernet. It moves intelligence from switches to the NIC: per-packet spraying across many first-class paths (distinct UDP source ports for ECMP entropy), native out-of-order placement with no reorder buffer, no PFC, per-path 256-bit SACK for immediate retransmission, and ECN-based AIMD combined with receiver-driven fair-share rate hints that resolve incast in one or two RTTs. A single connection multiplexes many ordered streams over many paths under one congestion controller, while existing Verbs APIs keep working. On a 64-node AMD GPU cluster using Pensando NICs it beat RoCEv2, held about 86% throughput at 1% loss, and scaled linearly across 4- and 8-plane fabrics. Meta is releasing the spec, a software reference implementation and a compliance suite through OCP.
- Unlocking large scale AI training networks with MRC (Multipath Reliable Connection)
OpenAI hardMaster
MRC (Multipath Reliable Connection) is a RoCE-extending network protocol co-developed by OpenAI with AMD, Broadcom, Intel, Microsoft and NVIDIA and released through OCP. It sprays packets from each transfer across hundreds of paths over multi-plane networks, with every packet carrying its destination memory address. It also uses packet trimming to tell congestion apart from failure and routes around failed paths in microseconds. Splitting 800Gb/s NICs into eight 100Gb/s planes lets two switch tiers connect roughly 131,000 GPUs, and SRv6 static source routing replaces BGP-style dynamic routing. In production on GB200 clusters, link flaps and tier-1 switch reboots had little or no measurable impact on synchronous pretraining jobs.
- OCP Summit 2024: The open future of networking hardware for AI
Meta Engineering hardMasterMeta is contributing two disaggregated network fabrics and a new NIC to OCP for its AI training clusters. The Disaggregated Scheduled Fabric (DSF) uses VoQ-based scheduling on Arista 7700R4 leaf (Jericho3-AI) and spine (Ramon3) switches, running FBOSS over OCP-SAI, to avoid congestion proactively and expose a standard Ethernet RoCE interface to accelerators. Two retimer-free 51.2T switches, the Tomahawk5-based Minipack3 and the Cisco 8501 on Silicon One G200, cover 400G/800G fabrics. The Meta-designed FBNIC multi-host NIC supports four isolated hosts and PTP timestamping, and its driver is upstream in Linux 6.11.
- Building Meta’s GenAI Infrastructure
Meta Engineering easyNoviceMeta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3. One uses a RoCE fabric on Arista 7800 and OCP switches and the other uses InfiniBand, both with 400 Gbps endpoints, on Grand Teton servers. Storage combines a FUSE API over a flash-optimized Tectonic for synchronized checkpointing with a Hammerspace parallel NFS for interactive debugging. Large-cluster AllGather utilization initially ranged from 10% to 90%. Topology-aware job scheduling, routing changes and NCCL tuning brought it back above 90%, and PyTorch process-group startup dropped from hours to minutes.
- Disaggregated Scheduled Fabric: Scaling Meta’s AI Journey
Meta Engineering hardMasterMeta's Disaggregated Scheduled Fabric (DSF) splits a chassis switch into separate interface nodes (Jericho3-AI RDSWs) and fabric nodes (Ramon3 FDSWs) running FBOSS. Together they act as one virtual switch that sprays packets as cells across all fabric paths, using VOQ and credit-based scheduling to fix the elephant-flow, low-entropy and skewed-utilization problems that RDMA training traffic causes on hash-based Clos/ECMP fabrics. Meta scaled it from L1 zones to a non-blocking L2 zone of 18K x 800G GPUs, then joined five L2 zones through an oversubscribed (4.5:1) L3 super-spine using iBGP add-path and eBGP. Input Balanced Mode handles remote link failures by withdrawing reachability on randomly chosen links so that input bandwidth never exceeds output bandwidth anywhere in the fabric.