Satellites, Cables & Outages

BGP Mistakes That Have Taken Parts of the Internet Offline

See how routing leaks, hijacks and bad configuration pushes have knocked services offline, and which safeguards now limit the damage.

Key takeaways

  • BGP outages usually come from leaked routes, wrongly originated prefixes or a configuration change that withdraws routes a service depends on.
  • Routers prefer the most specific matching prefix, so a small, wrong announcement can beat a correct, broader one everywhere it spreads.
  • Because BGP was designed around trust between neighbors, one network's mistake spreads when the networks next to it fail to filter it.
  • Route filters, maximum-prefix limits, RPKI origin validation and careful change management each block a different class of error.
  • Services stay reachable more reliably when their DNS, management access and recovery tools do not depend on the same routes.

Most large BGP outages come down to a simple failure: a network told its neighbors something about reachability that was wrong, or stopped telling them something that was true, and other networks believed it. BGP, the Border Gateway Protocol, is how independently run networks announce which blocks of IP addresses they can deliver traffic to. A single bad announcement can pull traffic into a dead end across much of the world within minutes.

The good news is that the failure patterns repeat. Once you know the handful of ways routing goes wrong, news about a big outage gets much easier to understand, and so do the defenses that operators have been adding for years.

Why one announcement can matter so much

Each network that takes part in BGP is an autonomous system, identified by an AS number. It sends its neighbors announcements that say, in effect, "to reach this prefix, you can send packets to me, and here is the list of networks they will pass through." A prefix is a block of addresses such as 203.0.113.0/24. If you want the full picture first, read how BGP holds the internet together.

Two properties of routing explain most disasters.

The first is longest prefix match. When a router holds two routes that both cover a destination, it uses the more specific one, meaning the one with the longer prefix. If the rightful owner announces a /22 and someone else announces a /24 inside it, traffic for those addresses follows the /24 wherever that announcement has reached. Path length and business preference never get a say, because the router treats them as different destinations.

The second is trust. BGP itself has no built-in way to prove that a network is entitled to announce a prefix, or that it is meant to carry traffic between two other networks. Checks exist, but each operator has to configure them. A mistake stops only at the first neighbor that filters it.

What a route announcement claims
203.0.113.0/24 1 AS path 64500 64501 2 Next hop 198.51.100.1 3 Communities 64500:100 4 Prefix The block of addresses being offered. A longer mask is more specific and wins. 1 AS path The networks the announcement crossed. The last number is the claimed origin. 2 Next hop The router address to which matching packets should be handed. 3 Tags Labels neighbors can use to apply policy, such as limiting how far a route travels. 4 203.0.113.0/24 1 AS path 64500 64501 2 Next hop 198.51.100.1 3 Communities 64500:100 4 Prefix The block of addresses being offered. A longer mask is more specific and wins. 1 AS path The networks the announcement crossed. The last number is the claimed origin. 2 Next hop The router address to which matching packets should be handed. 3 Tags Labels neighbors can use to apply policy, such as limiting how far a route travels. 4

The three kinds of mistake

Route leaks

A route leak happens when a network passes routes on to neighbors that should never receive them. RFC 7908 describes it as propagation beyond the intended scope. The classic version involves a customer with two providers. It learns routes from provider A and, because of a missing filter, announces them to provider B. Provider B often prefers routes from paying customers, so it starts sending large volumes of traffic through a small network that cannot possibly carry it.

Wrong origination and hijacks

Here a network announces a prefix as its own when it is not. Sometimes it is a typo or a configuration meant to stay internal. Sometimes it is deliberate. The effect on the victim is similar either way, and the difference between hijacks and leaks matters mostly for diagnosis and response.

Withdrawals and self-inflicted removal

A network can also take itself off the map. A bad configuration push, a faulty policy or an automated safety response can withdraw the announcements that let the rest of the world find its servers. Nothing is being stolen or misdirected. The routes are simply gone.

Incidents that show each pattern

These are well-documented public events, summarized for what they teach.

1997: a flood of more specific routes

In April 1997, a router at a small network operator, widely referred to by its AS number, 7007, began re-announcing a large portion of the global routing table as if it originated those routes, broken into more specific pieces. Because the pieces were more specific, other networks preferred them. Traffic converged on a path that could not handle it, and many parts of the internet became unreachable until the announcements were stopped and cleared.

The lesson was early and blunt: a single misbehaving router could affect networks that had no relationship with it.

2008: a local block that went global

In February 2008, Pakistan Telecom set out to block access to YouTube inside the country by announcing a more specific /24 from YouTube's address space. The announcement escaped to an upstream provider, which passed it to the wider internet. For a period measured in hours, much of the world's traffic for that block went toward Pakistan and was dropped. YouTube responded partly by announcing equally and more specific routes of its own, and the upstream provider eventually stopped carrying the bad one.

This incident combined two failures: an internal blocking technique that depended on staying contained, and a neighbor that accepted it without checking.

2019: optimized routes that escaped

In June 2019, a set of more specific routes, created inside a small network by route optimization software for internal traffic engineering, leaked through one of its customers to a very large carrier. The carrier accepted them and passed them on. A range of unrelated services, including some large content delivery platforms, saw significant traffic pulled onto an inadequate path. Routes that should never have existed outside one network turned out to be more attractive than the real ones.

2021: a company disappears from the routing table

In October 2021, Facebook's services, including Instagram and WhatsApp, were unreachable for roughly six hours. The company explained that a command issued during routine backbone maintenance disconnected its data centers from each other. Its DNS servers were designed to withdraw their BGP announcements when they could not reach the data centers, so they did. With those routes gone, the names could no longer be resolved anywhere. Recovery was slowed because internal tools depended on the same network, and engineers needed physical access to equipment.

How a self-withdrawal turns into a long outage
1 Maintenance command A change intended to check capacity disconnects the internal backbone. 2 Health check reacts DNS sites that cannot reach data centers stop announcing their routes. 3 Names stop resolving Resolvers can no longer reach any authoritative server for the domains. 4 Tools fail too Remote access and internal systems rely on the same names and network. 5 Hands on hardware Staff restore the backbone on site, then bring services back gradually. Maintenance command A change intended to check capacity disconnects the internal backbone. 1 Health check reacts DNS sites that cannot reach data centers stop announcing their routes. 2 Names stop resolving Resolvers can no longer reach any authoritative server for the domains. 3 Tools fail too Remote access and internal systems rely on the same names and network. 4 Hands on hardware Staff restore the backbone on site, then bring services back gradually. 5

Why leaks keep happening

Routing policy is written by people and by automation, and both make errors. A few conditions make those errors likelier or worse.

  • Default-accept behavior. Older router software often accepted and advertised everything on an external session unless told otherwise. RFC 8212 changed the standard so that external BGP sessions with no configured policy should neither accept nor send routes, but equipment and configurations vary.
  • Complex customer relationships. A network with several providers and peers has many chances to send the wrong routes the wrong way. Knowing the difference between peering and transit helps explain which routes are supposed to flow where.
  • Automation at scale. A script that generates configuration can push the same mistake to every router at once.
  • Incentives. Filtering protects other people as much as yourself, so the cost and the benefit often land on different networks.

The safeguards and what each one catches

No single control covers everything. Operators layer them.

Safeguard What it does What it misses
Prefix filters Accept only listed prefixes from a customer Errors in the list itself
Maximum-prefix limit Shuts or ignores a session that sends too many routes Small, targeted bad announcements
RPKI origin validation Rejects routes whose origin AS or length contradicts a signed record Forged paths that keep the right origin
BGP roles (RFC 9234) Marks relationships so leaked routes can be detected Networks that have not deployed it
Monitoring Alerts when your prefixes appear with odd origins or paths Nothing is blocked on its own

RPKI deserves a closer look. The holder of a block publishes a signed Route Origin Authorization saying which AS may originate it and how long the prefix may be. Other networks can then classify announcements as valid, invalid or not found, as described in RFC 6811, and drop the invalid ones. The maximum length field is what stops a hostile or accidental more specific route from the wrong source. You can read more in RPKI and signed internet routes.

Industry efforts such as MANRS, the Mutually Agreed Norms for Routing Security, ask participants to commit to filtering, anti-spoofing, coordination and publishing their routing data.

Layers that stop a bad route
Your own outbound policy Only send neighbors the routes you intend to send. Neighbor inbound filters Accept only the prefixes each customer is expected to announce. Prefix count limits A sudden flood trips a limit before it spreads further. RPKI origin validation Drop announcements that contradict the holder's signed record. External monitoring Alerts let people react to whatever slipped through. Your own outbound policy Only send neighbors the routes you intend to send. Neighbor inbound filters Accept only the prefixes each customer is expected to announce. Prefix count limits A sudden flood trips a limit before it spreads further. RPKI origin validation Drop announcements that contradict the holder's signed record. External monitoring Alerts let people react to whatever slipped through.

What you can do if you run a network or a service

If you announce your own address space, publish accurate route authorizations, set outbound filters that name exactly what you send, and ask your providers what they filter inbound. Stage routing changes so that one mistake cannot reach every router at once, and give automation a way to stop and roll back.

If you only run a website or app, your exposure is indirect but real. Consider these habits.

  1. Keep your authoritative DNS somewhere that does not depend entirely on your own network.
  2. Make sure you can reach management interfaces through an out-of-band path, meaning a separate connection that survives when the main network fails.
  3. Host your status page on independent infrastructure.
  4. Store recovery instructions and contact lists where you can read them during an outage.
  5. Test whether health checks that withdraw routes can remove every location at the same moment.

The last item is easy to overlook. A safety mechanism that pulls a broken site out of service is useful with many sites. If all sites judge themselves broken together, it removes everything.

How to tell routing may be the cause

As a user, you usually cannot confirm a BGP problem, but you can gather clues. If a service fails from your connection yet works from a mobile network, the difference may lie in the path. A traceroute that stops abruptly or wanders through an unexpected region is another hint, though silent hops are normal. Public route collectors and looking glass servers let engineers see which paths other networks currently hold for a prefix.

Treat early explanations with caution. The first hours of a major incident produce guesses, and the account that explains the root cause normally comes from the affected operator afterward.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Satellites, Cables & Outages →

Latest news on this topic