Running Border Gateway Protocol in large-scale data centers
Facebook runs BGP as the routing foundation of its data centers, and found it works well only when co-designed with the topology, configuration, switch software and fleet-wide operations pipeline. The design reuses a uniform AS numbering scheme with BGP confederations across fabrics and applies hierarchical route summarization at every level to keep hardware forwarding tables small. Routing policies set propagation scopes, predefine backup paths, and allow graceful traffic draining from faulty devices. A minimal in-house BGP agent is shipped through unit testing, emulation, canary testing and multi-phase deployment so it can be updated frequently.
Related posts
- Building Prometheus: How Backend Aggregation Enables Gigawatt-Scale AI Clusters
Meta Engineering hardMasterMeta's backend aggregation (BAG) is an Ethernet super-spine layer that connects multiple L2 spine fabrics across data center buildings and regions, making it possible to build the 1-gigawatt Prometheus AI cluster spanning tens of thousands of GPUs. BAG layers are distributed regionally and linked with either planar topologies (simpler to manage, but concentrated failure domains) or spread topologies (more path diversity). They connect downstream to both Disaggregated Schedule Fabric and Non-Scheduled Fabric, with L2-to-BAG oversubscription around 4.5:1. The design uses deep-buffer Jericho3 chassis for long BAG-to-BAG links to support PFC, eBGP with link-bandwidth-based UCMP, MACsec, and failure-domain analysis with plane draining to avoid blackholing.
- So You Want to Build Your Own Data Center
Railway mediumAdeptRailway moved off Google Cloud by building its own colocation cages, going from project kickoff to first live site in California in about eight months. Power is the binding constraint more than floor space. That drives server choice by power density, dual independent feeds per rack, and metered, remotely controlled PDUs. Networking relies on at least two regionally strong Tier 1 ISPs per site, full BGP tables to pick paths per prefix, and dark fiber or wavelength links between zones. The physical build involves hot/cold aisle layout, 800mm racks, reverse-airflow switches and cabling matrices covering 300+ cables, plus a catalogue of real installation surprises such as WYE vs Delta wiring and fiber polarity.
- Reinventing Facebook’s data center network
Meta Engineering hardMasterMeta redesigned its data center network around F16, a fabric with 16 single-chip planes of 128x100G switches built on Broadcom Tomahawk 3. It delivers 4x the per-rack bandwidth (1.6T) using mature 100G CWDM4 optics instead of scarce, power-hungry 400G. Compared with a multichip 400G design it needs 3x fewer fabric chips and cuts hops to six intra-fabric and eight inter-building. The core building block is Minipack, a modular single-ASIC switch that uses half the power and space of Backpack, with swappable PIMs for 40G–400G ports and reverse gearboxes bridging 50G PAM4 SerDes to 25G NRZ optics. HGRID extends Fabric Aggregator to connect six buildings per region, all running FBOSS.
- Throwing Out The Phonebook
Fly.io hardMasterFly.io rebuilt 6PN, its private IPv6 network between Fly Machines, replacing a fleet-wide eBPF map of every migrated Machine's location (hundreds of thousands of entries kept in sync from Corrosion's gossip-replicated SQLite) with lazy, on-demand routes. VXLAN's netlink event for unknown addresses is passed through drift-agent to s6pnforwarderd, which queries local Corrosion and installs a single kernel route. Each host now carries only 100–200 routes, addresses no longer need rewriting, and routes can forward through intermediate hosts to tolerate stale entries or steer around bad links. udp-xdp now only validates same-network traffic and sets an fwmark so the design fails closed. The costs are a roughly one-second first-connection delay from TCP retransmission and broken new conversations if the daemons crash. The migration ran both paths side by side behind per-host flags, tolerating asymmetric routing.
- OCP Summit 2026: Powering AI with Open Innovations in Scale-Up, Scale-Out, and Scale-Across Networks
Meta Engineering hardMasterMeta's OCP 2026 networking lineup centers on IcePack, its first liquid-cooled network rack, and IceCube 102.4T switch blades (128×800G, Tomahawk6C or Spectrum-6, running FBOSS on SAI). Flattened Planar Fabric connects each GPU through eight 100G links to eight planes, flattening the backend from 3-tier to 2-tier Clos, with NIC-level packet spraying and a host-inclusive control plane that steers traffic around failed planes. The BAG super-spine links fabrics across regions at petabit scale, measuring cable length in place to size lossless buffer headroom and using eBGP link-bandwidth signaling for weighted load balancing. Further announcements include the Tahan Ethernet scale-up switch for MTIA 300, a 72-accelerator ESUN-based design, the OSPA switch platform standard, SRv6 regional backbones, and open-source MetaRoCE.