⚠️ 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.
🔄 Flow: Anatomy of a Route Leak Incident
💡 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.
🎯 Real-World Use Cases (Prevention Contexts)
- Multi-homed network operators — the highest-risk group, requiring rigorous export policy on every upstream session.
- Internet Exchange Points — route servers implementing maximum-prefix and RPKI checks on behalf of all connected members.
- Transit providers — strict per-customer import filtering based on registered IRR objects to contain any single customer's misconfiguration.
- Content and cloud networks — external route monitoring to detect if their own prefixes are being leaked or mis-propagated elsewhere.
- Industry initiatives — MANRS-participating networks committing to baseline anti-leak filtering practices across the industry.
✅ Advantages of Strong Leak Prevention
- Significantly reduces the risk of causing (or being affected by) a major routing incident.
- Protects business reputation and customer trust, since leak incidents are often publicly reported.
- Contains the blast radius of configuration mistakes that inevitably happen from time to time.
- Demonstrates good-faith participation in the broader internet routing ecosystem's stability.
⚠️ Disadvantages & Practical Costs
- Implementing and maintaining strict filtering requires meaningful ongoing operational effort.
- Overly aggressive filters can occasionally block legitimate route changes if not kept up to date.
- RPKI and IRR data quality varies significantly by region, limiting the coverage of validation-based defenses in some parts of the world.
- Maximum-prefix limits, if set too conservatively, can cause legitimate sessions to be torn down during normal route table growth.
🏆 Best Practices
- Follow the MANRS (Mutually Agreed Norms for Routing Security) action framework as a baseline for anti-leak practices.
- Tag every route with a BGP community reflecting its origin, and build export policy from those tags rather than manual prefix lists.
- Set maximum-prefix limits on every external session, reviewed and adjusted periodically as legitimate route counts grow.
- Register accurate route objects in an IRR and keep RPKI ROAs up to date for all originated prefixes.
- Externally monitor your own announced prefixes for unexpected propagation changes using a route monitoring service.
🔒 Security Considerations
- Route leaks are a distinct risk category from hijacks and require both leak-specific (policy/filtering) and hijack-specific (RPKI origin validation) defenses.
- A leak can expose traffic to interception by an unintended network, making it a genuine confidentiality concern, not just an availability one.
- Coordinate incident response contacts in advance (via PeeringDB and IRR contact records) so leaks can be resolved quickly once identified.
- Treat routing policy changes with the same review rigor as any other production infrastructure change.
⚡ Performance Considerations
- A route leak can cause severe, sudden performance degradation on the leaking network due to unplanned traffic volume.
- Downstream networks whose traffic gets rerouted through a leak often experience increased latency due to the longer, unintended path.
- Prefix filtering and maximum-prefix limits have negligible performance overhead relative to the incidents they prevent.
❌ Common Problems
| Problem | Typical Cause |
|---|---|
| Sudden, unexplained congestion on a border router | Router unexpectedly receiving and forwarding leaked traffic from another network's incident |
| Your prefixes reachable via an unexpected path | Another network leaking routes it learned from you to a third party |
| Legitimate session torn down unexpectedly | Maximum-prefix limit set too conservatively relative to normal route table growth |
| Leak recurs after being fixed once | Root cause (configuration template or process gap) not addressed, only the symptom |
🔧 Troubleshooting
Suspected active route leak affecting your network: Use a public route monitoring or looking glass service to check how your prefixes are currently being announced across the internet, and identify the AS path showing the unexpected propagation.
Identifying the source of a leak: Trace the AS path of the leaked announcement back to the first AS where the policy violation occurred, then contact that network's registered technical contact (via IRR or PeeringDB) to request withdrawal.
Preventing recurrence after resolving an incident: Conduct a root-cause review of the configuration or process gap that allowed the leak, and add automated safeguards (maximum-prefix limits, filter validation checks) rather than relying solely on manual vigilance going forward.
✅ 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.
💡 Expert Tips
- Treat every new BGP session — customer, peer, or transit — as requiring explicit, reviewed filtering from day one rather than a permissive default that gets tightened later.
- Automate filter generation from IRR data where possible, since manually maintained prefix lists reliably drift out of date and become a source of both under- and over-filtering.
- Participate in community route-monitoring and leak-detection services, since early external detection often beats internal monitoring for catching a leak's downstream effects.
❌ Beginner Mistakes
- Assuming route leaks only happen to large, complex networks — smaller multi-homed networks are actually a very common leak source.
- Relying solely on RPKI for protection, when RPKI addresses hijack-style origin validation but doesn't fully prevent all route leak patterns.
- Setting maximum-prefix limits once and never revisiting them as legitimate route counts naturally grow over time.
- Not maintaining accurate IRR route objects, which undermines other networks' ability to correctly filter your legitimate announcements.
📊 Comparison Tables
Route Leak vs BGP Hijack
| Aspect | Route Leak | BGP Hijack |
|---|---|---|
| Origin AS accuracy | Correct — routes are accurately attributed | Incorrect — unauthorized network claims origination |
| Root cause | Policy/filtering violation, often unintentional | Can be accidental or deliberately malicious |
| Primary defense | Export/import filtering, community tagging | RPKI Route Origin Validation |
Leak Prevention Mechanisms Compared
| Mechanism | Protects Against | Coverage |
|---|---|---|
| Community-based export filtering | Improper re-advertisement of learned routes | Comprehensive if correctly implemented |
| Maximum-prefix limits | Sudden, unexpected route table floods | Broad, but reactive rather than preventive |
| RPKI Route Origin Validation | Invalid origin AS announcements | Origin validation only, not full-path leak types |
| IRR-based import filtering | Accepting unauthorized customer/peer prefixes | Depends on IRR data accuracy and completeness |
📋 Feature Table
| Feature | Route Leak Prevention |
|---|---|
| Governing framework | RFC 7908 (leak taxonomy), MANRS (practices) |
| Primary technical defense | Community-based export/import filtering |
| Complementary defense | RPKI Route Origin Validation |
| Detection method | External route monitoring & looking glasses |
📚 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.
❓ FAQs
📋 Conclusion
Route leaks are a stark reminder that BGP's flexibility and trust-based design come with a real operational responsibility: every network's routing policy affects the stability of the wider internet, not just its own traffic. The good news is that the defenses — community-based filtering, maximum-prefix limits, RPKI validation, and accurate IRR data — are well understood, widely documented, and achievable for networks of any size.
For related context, see ToolsNovaHub's guides on BGP Peering, BGP Communities (the primary tool for leak-proof export policy), and Transit vs Peering, and use the ASN Lookup and WHOIS Lookup tools to research any network's registered address space and routing footprint.
If you're auditing your own network's leak risk today, start with the basics: confirm every external BGP session has both export and import filters explicitly configured, and add a maximum-prefix limit to any session that doesn't already have one.