RFC 7938: Use of BGP for Routing in Large-Scale Data Centers
IETF / RFC Editor · P. Lapukhov, A. Premji et al.
A 2016 informational IETF RFC describing EBGP-only routing on a folded Clos (leaf-spine) topology for data centres serving over 100,000 servers, including the private ASN allocation plan.
On this page
Overview
RFC 7938 presents a practical routing design for hyper-scale data centres, based on operational experience. The starting points are that network infrastructure is about 10-15% of total data centre expenditure and that east-west traffic makes tree topologies unscalable. The document sets five requirements: a horizontally scalable topology, a narrow feature set, a simple routing protocol, small failure domains and basic traffic engineering.
The chosen topology is a folded Clos built from uniform devices with the same port count. For a Tier 2 switch with M uplinks and N downlinks, the fabric is non-blocking when M >= N and oversubscribed by N/M otherwise. Tier 1 devices have exactly one path to every server, which makes route summarisation dangerous. In practice oversubscription is applied only at Tier 3 (top-of-rack).
EBGP is selected as the only routing protocol. All Tier 1 devices share one ASN, while each Tier 2 cluster and each Tier 3 device gets its own private ASN. The 64512-65534 range provides only 1023 ASNs, so reusing Tier 3 ASNs across clusters (with allowas-in) or using four-octet ASNs is suggested. ECMP is the core load-sharing mechanism, and weighted ECMP and consistent hashing are discussed.
The convergence section examines fault detection (the BGP hold timer minimum is often three seconds, while interface failure is detected in milliseconds and BFD gives sub-second detection), the MRAI timer and micro-loops. The document offers no product or configuration templates; it supplies a reference design and the reasoning behind its options. The warning that summarising server subnets can black-hole traffic on a single link failure is especially important.
Key points
- Network infrastructure is about 10-15% of total data centre expenditure, which motivates uniform hardware and multi-vendor competition.
- Five requirements: horizontal scale, narrow feature set, simple routing, small failure domain, controlled traffic engineering.
- A folded Clos is non-blocking for M >= N and oversubscribed by N/M otherwise; ECMP fan-out must be M or more.
- Tier 1 devices have exactly one path to every server, so summarisation inside the topology is dangerous.
- ASN plan: one ASN for all Tier 1, one per Tier 2 cluster, one per Tier 3 device; private range 64512-65534.
- Because the private range gives only 1023 ASNs, Tier 3 ASNs can be reused across clusters (allowas-in) or four-octet ASNs used.
- The BGP hold timer is often at least three seconds in implementations; BFD enables sub-second failure detection.
- The MRAI timer can delay convergence and the document discusses its effect separately.
- Internal private ASNs are removed from AS_PATH at the external boundary.
Using it in design
- Build the leaf-spine fabric from devices with identical port counts and plan ECMP fan-out for at least the uplink count M.
- Write the ASN plan at design time: one ASN for Tier 1, one per Tier 2 cluster, one per Tier 3 device; choose four-octet ASNs if capacity will exceed 1023.
- Do not summarise server subnets within the fabric; where summarisation is required, test the black-hole risk with failure scenarios.
- Set BFD and hold timer values against the convergence target and include them in commissioning tests.
- Define the oversubscription ratio only at the top-of-rack layer.
Who should read it
Data centre network architects, routing designers and engineers planning leaf-spine fabrics at cloud or AI scale.
Document contents
- Introduction
- Network Design Requirements
- Data Center Topologies Overview
- Data Center Routing Overview
- Routing Protocol Design
- ECMP Considerations
- Routing Convergence Properties
- Additional Options for Design
- Security Considerations
Related standards
- RFC 4271
Publication details
- Authors
- P. Lapukhov; A. Premji; J. Mitchell (Ed.)
- Publisher
- IETF / RFC Editor
- Year
- 2016
- Document number
- RFC 7938
- Document language
- English
- Source type
- Expert / community
- Access
- Free to read
- Licence
- Copyright retained; citation only: the publisher’s terms apply to the original document
Original licence note
IETF Trust copyright under the Trust Legal Provisions; link and cite.
Citation
P. Lapukhov; A. Premji; J. Mitchell (Ed.) (2016). RFC 7938: Use of BGP for Routing in Large-Scale Data Centers. IETF / RFC Editor. RFC 7938. https://doi.org/10.17487/RFC7938
All content and rights belong to the respective authors and publishers. SoSo CAD provides only the citation, its own summary and a link to the source, and is not responsible for the sources' content.
