---
title: "RoCE networks for distributed AI training at scale"
description: "Meta runs distributed AI training on a dedicated RoCEv2 backend network, separate from the frontend network used for data ingestion and checkpointing."
url: "https://swe.quest/articles/roce-networks-for-distributed-ai-training-at-scale-87628a1ab2d54af7"
canonical: "https://engineering.fb.com/2024/08/05/data-center-engineering/roce-network-distributed-ai-training-at-scale/"
source: "Meta Engineering"
published: "2024-08-05"
difficulty: "hard"
kind: "Case study"
reading_minutes: 9
tags: ["networking","model-training","datacenters","hardware"]
---

# RoCE networks for distributed AI training at scale

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-08-05, 9 min read, Case study. Original: [https://engineering.fb.com/2024/08/05/data-center-engineering/roce-network-distributed-ai-training-at-scale/](https://engineering.fb.com/2024/08/05/data-center-engineering/roce-network-distributed-ai-training-at-scale/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Datacenters](https://swe.quest/tags/datacenters.md) (Infrastructure)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)

## Prerequisites

- RDMA and RoCE
- Clos network topologies
- ECMP routing ([easy posts on Maps & geospatial](https://swe.quest/tags/geospatial.md?difficulty=easy))
- collective communication (AllReduce)

## Keywords

RoCEv2, RDMA, NCCL, DCQCN, PFC, ECMP, SIGCOMM 2024, Llama 3.1

## Related posts

- [MetaRoCE: A New RDMA Transport Built for AI-Scale Ethernet](https://swe.quest/articles/metaroce-a-new-rdma-transport-built-for-ai-scale-ethernet-b9ddb86374578cb3.md): Meta Engineering · 2026-08-24 · Hard · 7 min read · Networking, Hardware, Model training, Datacenters
  MetaRoCE is a clean-sheet RDMA transport for AI workloads on lossy commodity Ethernet.
- [Unlocking large scale AI training networks with MRC (Multipath Reliable Connection)](https://swe.quest/articles/unlocking-large-scale-ai-training-networks-with-mrc-multipath-reliable-2420d86ca8518272.md): OpenAI · 2026-05-05 · Hard · 11 min read · Networking, Model training, Resilience, Load balancing, Datacenters
  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.
- [OCP Summit 2024: The open future of networking hardware for AI](https://swe.quest/articles/ocp-summit-2024-the-open-future-of-networking-hardware-for-ai-254e4dce8a004a6c.md): Meta Engineering · 2024-10-15 · Hard · 4 min read · Networking, Hardware, Datacenters, Model training
  Meta is contributing two disaggregated network fabrics and a new NIC to OCP for its AI training clusters.
- [Building Meta’s GenAI Infrastructure](https://swe.quest/articles/building-meta-s-genai-infrastructure-47cf7d972b2561ce.md): Meta Engineering · 2024-03-12 · Easy · 8 min read · Model training, Datacenters, Hardware, Networking, Storage systems
  Meta built two 24,576-GPU NVIDIA H100 clusters for GenAI training, including Llama 3.
- [Disaggregated Scheduled Fabric: Scaling Meta’s AI Journey](https://swe.quest/articles/disaggregated-scheduled-fabric-scaling-meta-s-ai-journey-b913fdb160652e1d.md): Meta Engineering · 2025-10-20 · Hard · 12 min read · Networking, Datacenters, Hardware, Model training, Load balancing
  Meta's Disaggregated Scheduled Fabric (DSF) splits a chassis switch into separate interface nodes (Jericho3-AI RDSWs) and fabric nodes (Ramon3 FDSWs) running FBOSS.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
