Insights

Cloudflare Outage Took Down Half the Internet in June 2022 — What the BGP Withdrawal Actually Did

November 13, 2026
0:00
On June 21, 2022, a significant chunk of the internet went dark. Websites behind Cloudflare returned 500 errors, APIs timed out, and Discord, Shopify, and thousands of other services became unreachable. The root cause was not a cyberattack, not a hardware failure, and not a software bug in the traditional sense. It was a configuration change to BGP routing policy on Cloudflare's backbone network that accidentally withdrew route announcements from a set of major data centers. If you run sites or services that depend on any large CDN or reverse proxy, understanding what happened here matters, because the failure mode is not unique to Cloudflare.
From the outside, the symptoms looked like a total Cloudflare outage. Websites proxied through Cloudflare returned HTTP 500 errors. DNS resolution through Cloudflare's 1.1.1.1 resolver failed in many regions. Services that depend on Cloudflare Workers, Pages, or their API gateway all went down simultaneously. But Cloudflare's servers were not crashed. The machines in affected data centers were running, healthy, and ready to serve traffic. The problem was that the rest of the internet could no longer find a route to reach them. BGP — Border Gateway Protocol, the routing protocol that tells networks how to reach each other across the internet — had stopped advertising paths to Cloudflare's IP prefixes from those locations. Traffic that should have flowed to nearby Cloudflare data centers had nowhere to go, or got rerouted to distant locations that buckled under the sudden load.
BGP is the protocol that glues the internet together. Every network (called an Autonomous System, or AS) announces the IP prefixes it can serve. Upstream providers and peers propagate those announcements so that routers worldwide know where to send packets. When a network stops announcing a prefix — a BGP withdrawal — routers remove that route from their tables. Traffic destined for those IPs either finds an alternate path or gets dropped. Cloudflare operates an anycast network. This means the same IP addresses are announced from many data centers around the world simultaneously. When you connect to a Cloudflare-proxied site, BGP routing sends your packets to the nearest data center advertising that prefix. This is elegant and resilient — if one data center goes offline, traffic automatically shifts to the next closest one. The June 2022 incident broke this model. Cloudflare was making a change to the BGP prefix advertisement policy on routers in their backbone network — the internal links connecting their major data centers. The change was intended to update how prefixes were announced across the backbone. Instead, it caused a subset of major data centers to withdraw their BGP announcements entirely. When those withdrawals propagated, upstream transit providers and peering partners removed routes to Cloudflare's prefixes at those locations. Traffic that normally terminated at those data centers suddenly had to find alternate paths. Some of it rerouted to data centers that were still announcing the prefixes, overwhelming them. Some of it simply had no valid route and was dropped. This is the critical thing about BGP withdrawals: they propagate fast. A withdrawal message travels through the global routing table in seconds to minutes. There is no built-in "are you sure?" mechanism. Once a router sends a withdrawal, every peer that received the original announcement processes the withdrawal and passes it along. The internet's routing system is designed for convergence speed, not for second-guessing.
The root cause was a configuration change that was applied to backbone routers in a way that affected more data centers than intended. Cloudflare's backbone connects their largest, most critical facilities. A policy change on these routers — modifying how BGP prefixes were filtered or announced between backbone sites — inadvertently caused route withdrawals from multiple major points of presence simultaneously. This is where architecture matters. Cloudflare's anycast design means traffic distribution depends entirely on which data centers are announcing prefixes. If a handful of small edge locations go dark, traffic reroutes gracefully to nearby alternatives. But when multiple backbone data centers — the large hubs that handle disproportionate traffic volumes — withdraw their routes at the same time, the remaining locations cannot absorb the redirected load. The blast radius is not proportional to the number of affected sites; it is proportional to the traffic volume those sites normally handle. For anyone who manages infrastructure: this is the classic "core vs. edge" risk. Changes to core infrastructure carry exponentially higher blast radius than changes to edge nodes. A misconfiguration on a single edge PoP (Point of Presence) might affect users in one city. The same misconfiguration on backbone routers can take down service across entire continents.
The immediate fix was straightforward in concept but complicated in execution: revert the configuration change and get the affected data centers to re-announce their BGP prefixes. However, when backbone routers are misconfigured, reaching them to apply a fix can itself be difficult — especially if the management network depends on the same routing infrastructure that is broken. Cloudflare's engineering team had to revert the changes, which required careful coordination because the backbone routers were in a degraded state. Once the correct BGP policy was restored, the affected data centers began re-announcing their prefixes. BGP convergence — the process by which all routers on the internet learn the new (restored) routes — took additional time. Full recovery reportedly took roughly 90 minutes from initial impact, though some regions recovered faster than others depending on their proximity to unaffected data centers. This recovery timeline highlights something important about BGP-related outages: even after the fix is applied, recovery is not instant. BGP route propagation depends on each upstream and peer processing the new announcements, running their own route selection algorithms, and updating their forwarding tables. Some providers apply route dampening — a mechanism that penalizes routes that flap (appear and disappear repeatedly) by suppressing them for a period. A prefix that was just withdrawn and then re-announced might be dampened by some upstream providers, delaying full recovery. You can observe this kind of propagation behavior using BGP looking glasses and route collectors. Tools like RIPE RIS (Routing Information Service) allow you to see historical BGP announcements and withdrawals for specific prefixes. If you ever need to verify whether a BGP event affected routes to your infrastructure, checking RIPE RIS and traceroute data is a practical starting point.
Several architectural factors combined to make this outage particularly impactful: Concentration of traffic at backbone data centers. Anycast distributes traffic, but not evenly. Major data centers in well-connected locations handle far more traffic than smaller edge PoPs. Losing a few of these hubs means losing a disproportionate share of global capacity. Single change affecting multiple critical locations. The backbone policy change was not isolated to one router or one data center. It propagated across backbone routers, causing simultaneous withdrawals from multiple major facilities. This defeated the redundancy that anycast normally provides. Dependency depth. Cloudflare is not just a CDN. It provides DNS resolution (1.1.1.1), DDoS protection, WAF, Workers (serverless compute), and API gateway services. When Cloudflare's routing broke, all of these services failed simultaneously for affected regions. Sites that used Cloudflare for DNS but hosted elsewhere were also affected — if DNS queries could not reach Cloudflare's resolvers, the origin server's IP was never returned to the client. This dependency depth is something worth thinking about for anyone running infrastructure. When your DNS, CDN, WAF, and edge compute all run on the same provider's anycast network, a single routing failure takes down every layer simultaneously. There is no fallback path because every component shares the same fate.
Cloudflare's public response to this incident described several changes to prevent recurrence. The general themes, which apply broadly to anyone managing network infrastructure: Staged rollouts for routing changes. Applying a BGP policy change to all backbone routers simultaneously is the networking equivalent of deploying untested code to every production server at once. Staged rollouts — applying changes to one router or one region at a time, verifying behavior, then proceeding — limit blast radius. This is standard practice for application deployments but historically less common for network configuration changes. Automated validation before and after changes. Checking that the expected prefixes are still being announced after a change, and automatically rolling back if they are not, catches misconfigurations before they propagate globally. Separation of management plane from data plane. If the only way to reach your routers to fix them is through the same network that is broken, recovery is slow. Out-of-band management access — console servers, separate management networks, or even cellular failover — ensures engineers can reach equipment during an outage. Maximum prefix limits as a safety net. BGP sessions can be configured with maximum prefix limits. If a router suddenly withdraws an unexpected number of prefixes, the session can be torn down or an alert fired before the withdrawal propagates further. This does not prevent the initial misconfiguration but can contain its spread.
If your site sits behind any large CDN or reverse proxy, you share fate with that provider's routing infrastructure. This is not a reason to avoid CDNs — the security and performance benefits are real. But it is a reason to understand your dependency chain. Check whether your DNS is served by the same provider as your CDN. If both are on the same anycast network, a single BGP event takes down both. Consider using a separate DNS provider or a multi-CDN setup for critical services. At minimum, know what your failover plan looks like if your CDN's routes disappear for an hour. For those running their own BGP sessions — at a hosting company, a data center, or a large enterprise — the lesson is simpler: treat routing configuration changes with the same rigor as code deployments. Staged rollouts, automated validation, and rollback plans are not optional for changes that touch your prefix announcements. A single withdrawn prefix can make your entire network unreachable, and BGP will happily propagate that withdrawal to every router on the internet in seconds.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.