⚠️ BGP Route Leaks Explained
How a routing policy mistake can turn one network into accidental global transit — what route leaks are, how they happen, notable real-world incidents, and how to prevent them.
- Quick Answer
- Key Takeaways
- What Is a BGP Route Leak?
- Why It Matters
- How It Works
- Architecture & Technical Detail
- Step-by-Step Process
- Visual Flow
- Practical Examples
- Real-World Use Cases
- Advantages
- Disadvantages & Risks
- Best Practices
- Security Considerations
- Performance Considerations
- Common Problems
- Troubleshooting
- Implementation Checklist
- Expert Tips
- Beginner Mistakes
- Comparison Tables
- Feature Table
- Key Terms Glossary
- FAQs
- Conclusion
Route leaks are distinct from BGP hijacks (deliberate or accidental announcement of address space you don't own) though the two are often confused and can produce visually similar symptoms — sudden, unexpected traffic rerouting. Understanding the difference matters for correctly diagnosing and responding to routing incidents.
- A route leak is a policy violation — propagating routes beyond their intended scope — distinct from a hijack, which involves unauthorized origination.
- The most common leak pattern is a multi-homed customer accidentally announcing one provider's routes to another provider.
- Route leaks have caused several major, widely reported internet outages and slowdowns over the years.
- Prefix filtering based on IRR route objects is the single most effective preventive measure.
- RPKI Route Origin Validation helps with hijack-style leaks but does not fully address all leak types.
- The MANRS initiative provides a widely adopted framework of concrete anti-leak practices for network operators.
🔍 What Is a BGP Route Leak?
A route leak occurs when a network (often unintentionally) advertises routes it learned from one BGP neighbor to a different neighbor in a way that violates the intended, agreed-upon scope of that routing relationship. The canonical example: a network that buys transit from two different providers (Provider A and Provider B) accidentally advertises the full set of routes it learned from Provider A back out to Provider B — effectively offering itself as free, unintended transit between two large networks that never agreed to route through it.
This matters because BGP, by design, largely trusts what neighboring networks tell it. There's no protocol-level mechanism inherently preventing a network from re-advertising routes it shouldn't; enforcing that boundary is left entirely to each network's own configured routing policy (export and import filters). A single missing or misconfigured filter, applied to a router carrying even a modest fraction of the internet's routes, can have an outsized ripple effect across the wider internet.
It's important to distinguish route leaks from BGP hijacks. A hijack involves a network announcing itself as the origin for address space it doesn't own or control — essentially claiming ownership of someone else's prefixes. A leak involves correctly-attributed routes (the origin AS information is accurate) being propagated to the wrong audience, violating the intended peer/customer/transit routing hierarchy without necessarily misrepresenting who owns what. Both can cause similar real-world symptoms — traffic taking an unexpected, often much longer or congested path, or an outage — but the root causes and appropriate technical fixes differ.
The Internet Engineering Task Force formally categorizes several distinct types of route leaks in RFC 7908, including leaks from a customer to a provider (the most common pattern), leaks between a network's own peers, and leaks involving more complex multi-hop scenarios — useful vocabulary for precisely describing and diagnosing a specific incident after the fact.
🎯 Why Route Leaks Matter
Route leaks have caused some of the most significant, widely publicized internet routing incidents in recent history, at times affecting major cloud providers, content platforms, and even entire countries' connectivity for extended periods. Understanding them isn't an academic exercise — it's directly relevant to any network's operational risk profile.
The impact of a route leak typically manifests in one of two ways. First, congestion and outages: the network that accidentally becomes unintended transit is rarely provisioned to carry that volume of traffic, leading to severe congestion, packet loss, or complete overload on the leaking network's own infrastructure, which can cause outages for the leaking network's legitimate customers as well as everyone whose traffic got misrouted through it. Second, traffic interception risk: even when a leak doesn't cause an outright outage, rerouting traffic through an unintended path can expose that traffic to interception or inspection by a network that was never meant to see it — a real security and privacy concern, particularly for sensitive or international traffic.
Route leaks also carry significant reputational and business cost for the networks involved. High-profile leak incidents are widely reported in the technical press, and the affected networks often face customer trust and relationship consequences well beyond the technical remediation itself — providing strong business justification for investing in the (relatively inexpensive) preventive practices covered later in this guide.
Finally, route leaks illustrate a broader truth about internet routing: the overall stability of the global routing system depends heavily on each individual network operator implementing sound routing policy, since BGP's trust model assumes good-faith, correctly-configured participants. This makes route leak prevention a genuinely collective responsibility — initiatives like MANRS exist specifically to formalize and encourage this shared baseline of good practice across the industry.
The regulatory and public-interest dimension of route leaks has also grown over time, as national and international bodies increasingly recognize internet routing security as critical infrastructure policy, not purely a private technical matter between network operators. This has contributed to growing adoption of frameworks like MANRS and increasing expectations, in some markets, that significant network operators demonstrate baseline routing security practices as part of broader infrastructure resilience requirements.
⚙️ How Route Leaks Typically Happen
A network is multi-homed to two or more upstream providers
The leaking network has legitimate BGP sessions with multiple transit providers or peers, a completely normal and common setup.
Export policy fails to restrict what's re-advertised
Instead of only advertising its own (and its customers') routes to each upstream, the network's router is misconfigured to re-advertise routes learned from one upstream to another.
The receiving upstream accepts the leaked routes
Without strict import filtering, the receiving network accepts the unexpectedly large or unusual set of routes at face value, treating them as legitimate.
The leaked routes propagate further
If the receiving network doesn't catch and contain the leak, it may itself propagate the leaked routes onward to its own peers and customers, widening the incident's scope.
Traffic follows the leaked, often more-specific routes
Because BGP prefers more specific prefixes, leaked routes — especially if they're more specific than the legitimate path — can attract significant real traffic almost immediately.
Detection, diagnosis, and withdrawal
The incident is typically noticed via monitoring, outage reports, or route-monitoring services, traced back to its source, and resolved by correcting the faulty export policy and withdrawing the leaked announcements.
🏗️ Architecture: Where Leaks Originate
Route leaks fundamentally stem from a mismatch between a network's intended routing policy (which routes should go to which neighbors) and its actual configured policy on its routers. The technical mechanisms that should prevent leaks — export filters based on BGP communities that tag route origin (customer/peer/transit) — are well understood and widely documented, but implementing them correctly and consistently across every router and every session is a genuine operational challenge, especially at scale or during network changes.
A particularly common architectural risk factor is route reflector or router misconfiguration during network changes — a router intended to be a purely internal route reflector, or a router being reconfigured for a new peering relationship, accidentally gets a default "advertise everything" policy applied instead of the correct scoped policy, especially if configuration templates aren't rigorously version-controlled and reviewed before deployment.
Address more specific prefixes deserve particular attention in leak scenarios: because BGP's best path selection strongly prefers a more specific prefix over a broader aggregate covering the same address space, a leaked route that happens to be more specific than the legitimate announcement can attract disproportionate traffic almost instantly, even if the leaking network's overall capacity to carry that traffic is far smaller than what suddenly gets routed to it.
🔧 Step-by-Step: Preventing Route Leaks
Define explicit routing policy per session
Document exactly what each BGP session (customer, peer, transit) should send and receive before writing any router configuration.
Implement community-based export filtering
Tag routes by origin (customer/peer/transit-learned) using BGP communities, then build export policy declaratively from those tags rather than maintaining brittle manual prefix lists.
Apply strict import filtering on every external session
Only accept routes a neighbor is actually authorized to announce, ideally validated against IRR route objects or RPKI ROAs.
Set maximum-prefix limits on all sessions
Configure a hard cap on the number of prefixes accepted from any single neighbor, automatically tearing down the session if an unexpected flood of routes arrives.
Adopt RPKI Route Origin Validation
Automatically reject or de-prioritize routes with invalid origin ASNs relative to their registered RPKI ROA.
Monitor your own announced routes externally
Use a third-party route monitoring service to alert on unexpected changes to how your own prefixes are being announced or propagated across the internet.
Review configuration changes before deployment
Require peer review of routing policy changes, particularly for anything touching export filters or route reflector configuration.
💡 Practical Examples & Notable Incidents
A well-documented pattern involves a smaller regional network, multi-homed to a major international transit provider and a large domestic backbone network, accidentally re-advertising the international provider's full routing table to the domestic backbone. Because the domestic backbone's import filters weren't sufficiently strict, it accepted and began preferring these routes over its own legitimate paths for a significant portion of the internet, causing widespread regional slowdowns until the leak was identified and withdrawn.
Several major, publicly reported incidents over the years have involved a network operator's router accidentally announcing a large portion of the global routing table — sometimes hundreds of thousands of prefixes — to a single upstream provider due to a configuration error during maintenance, causing significant traffic disruption for major cloud and content platforms whose traffic transited the affected paths, until providers along the chain implemented emergency filtering to contain the leak.
A more localized example: a university network's border router, misconfigured after a hardware replacement, briefly re-advertised a research network's routes to its commercial transit provider, causing a portion of unrelated commercial traffic to briefly route through the university's much smaller-capacity link before automated maximum-prefix limits on the transit provider's side tore down the session and contained the impact.
✅ Implementation Checklist
Use this checklist to audit your own network's route leak risk and preventive controls.
- Explicit routing policy documented — for every session type: customer, peer, and transit.
- Community-based origin tagging implemented — every route tagged as it's learned, consistently across all sessions.
- Export filters built from those tags — not manually maintained, easily-outdated prefix lists.
- Import filters scoped to authorized announcements — validated against IRR route objects wherever possible.
- Maximum-prefix limits set on every external session — reviewed periodically as legitimate route counts grow.
- RPKI Route Origin Validation enabled — as a complementary layer alongside policy-based filtering.
- IRR route objects registered and current — for all address space you originate.
- RPKI ROAs published — for all originated prefixes, kept in sync with actual announcements.
- External route monitoring in place — alerting on unexpected propagation changes for your own prefixes.
- Configuration change review process — peer review required for any routing policy or export filter change.
- Incident response contacts documented — both your own and key peers'/providers', for fast coordination if a leak occurs.
- MANRS participation considered — as a structured framework for baseline anti-leak practices.
📚 Key Terms Glossary
- BGP hijack
- The unauthorized announcement of address space by a network that doesn't own or control it, distinct from a route leak, which involves accurately-attributed routes reaching the wrong audience.
- RPKI (Resource Public Key Infrastructure)
- A cryptographic system letting address space holders publish signed records (ROAs) specifying which AS is authorized to originate their prefixes, enabling automated Route Origin Validation.
- ROA (Route Origin Authorization)
- A signed RPKI record specifying which Autonomous System is authorized to originate a given prefix, used by other networks to validate route announcements automatically.
- IRR (Internet Routing Registry)
- A database where networks register which prefixes they're authorized to announce, used by other networks to build accurate, automatically-generated import filters.
- Maximum-prefix limit
- A configured cap on how many routes a router accepts from a specific BGP neighbor, automatically tearing down the session if the limit is exceeded.
- MANRS
- Mutually Agreed Norms for Routing Security, an industry initiative defining a concrete set of actions network operators can implement to reduce routing incidents.
- More-specific prefix
- A route covering a smaller, more precisely-defined block of address space than a broader aggregate covering the same space; BGP strongly prefers more-specific prefixes in path selection.
- Route Origin Validation (ROV)
- The process of checking a received route's origin AS against RPKI ROA data and rejecting or de-prioritizing routes found to be invalid.