Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 7 min read Case study hardMaster

Network Entitlement: A contract-based network sharing solution

Meta's backbone network treats bandwidth as a finite, reservable resource: each service gets a contracted bandwidth quota per region and class of service, with an SLO guarantee covering only traffic within that quota. End hosts mark packets by QoS class and re-mark excess (nonconforming) traffic into a lower-priority queue. That excess still flows when capacity exists and is dropped only under congestion, which isolates misbehaving services and makes it clear whether the network or the service is accountable. Contracts use the hose model so services don't have to forecast per-DC-pair traffic matrices. A granting system simulates failures such as fiber cuts to set quotas for high-touch services, and production congestion drills verify the policy.

Assumes: QoS and traffic classesWAN backbone networksSLOs

Related posts

  • Network hose: Managing uncertain network demand with model simplicity

    Meta Engineering hardMaster

    Meta plans its backbone network capacity against per-data-center aggregate ingress/egress forecasts (the "network hose") instead of a pairwise traffic matrix. This cuts per-service forecast inputs from O(N^2) to O(N) and builds statistical multiplexing into the forecast. The hard part is that infinitely many traffic matrices satisfy the hose constraints. Meta handles this by deriving a small set of reference demand matrices from simple geographic (straight-line) network cuts, each maximizing traffic across its cut, and feeding them into an integer linear programming cost model under a failure protection policy. Simulations showed the extra capacity cost is small, while the approach lets services treat network as a per-data-center consumable and eliminates many pairwise traffic-surge alarms.

  • Enhancing Distributed System Load Shedding with TCP Congestion Control Algorithm

    Zalando Engineering mediumAdept

    Zalando's customer communication platform applies TCP-style AIMD (Additive Increase Multiplicative Decrease) congestion control at its ingestion point to shed load and prioritize critical messages. The Stream Consumer pulls events from Nakadi and watches RabbitMQ publish latency (P50) and publish errors as congestion signals. Each event type's throttle adjusts its consumption rate independently: higher-priority types increase faster and decrease less (e.g. +15/−20% for P1 vs +5/−60% for P3), so no central coordination is needed. After six months in production, order confirmations keep stable processing times while commercial messages absorb delays. RabbitMQ queues stay small, and backlog remains in Nakadi, where low-priority events can be discarded in an emergency.

  • Disaggregated Scheduled Fabric: Scaling Meta’s AI Journey

    Meta Engineering hardMaster

    Meta'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.

  • Risk-driven backbone management during COVID-19 and beyond

    Meta Engineering hardMaster

    Facebook's global backbone withstood the COVID-19 traffic surge by computing risk metrics (demand loss, availability, latency stretch) over enumerated failure scenarios. Component failure likelihood and duration come from MTBF/MTTR estimates built with clustering and Bayesian regression on features like vendor and region. A sharded simulation runs the production SD-WAN controller code per failure scenario. The resulting metrics pointed to at-risk regions, which drove proactive capacity deployment and downgrading latency-insensitive traffic from QoS class 3 to class 4, so the same SLOs could be met with less capacity.

  • Viewing the world as a computer: Global capacity management

    Meta Engineering mediumAdept

    Meta manages capacity across its 14 data center regions with two systems built on Twine and RAS. Global Reservations Service lets latency-tolerant services declare one global capacity request; a mixed-integer linear programming solver assigns machines to reservations, enforcing that capacity minus the largest region still meets demand. For example, a 300-server request becomes 150 servers in each of three regions, and the disaster-readiness buffer shrinks as capacity spreads over more regions. Regional Fluidity handles latency-sensitive services by using distributed tracing to attribute traffic to shiftable demand sources, solving a placement plan from dependency and traffic-ratio constraints, and having an Orchestrator sequence safe shifts: add capacity and replicas, move traffic, then reclaim.

The quest for software engineering knowledge.

Look:
Layout: