Packet Path/

Cloudflare, June 21, 2022: The Harmless Label Change That Withdrew Its Own Addresses

On June 21, 2022, Cloudflare rolled out a change that only added labels to its own network addresses. On its newest spines, the same change quietly re-ordered a BGP policy — the two terms that announce Cloudflare's site-local prefixes fell below a term called REJECT-THE-REST, so the prefixes were never announced at all. Nineteen of its busiest locations went offline: only 4 percent of the network, but 50 percent of all requests. This is the documented story, from Cloudflare's own post-mortem, of how order alone broke the network — and the stagger, policy redesign and automatic rollback it produced.

Case Studies · Intermediate · 13 min · November 25, 2026

Editorial illustration on a dark teal background: a global network map with nineteen glowing hub cities, half of the connecting lines dimmed, and two small rule cards sliding below a red reject banner in the foreground.

The short answer

On the morning of June 21, 2022, Cloudflare — one of the largest networks on the Internet — made a routine change to its busiest data centers and took 19 of them offline in minutes. The change itself was harmless on paper: it only added labels, called BGP communities, to a set of network addresses. But on the newest routers, called spines, the change silently re-ordered the rules that decide which addresses get announced to the Internet. Two rules that announce Cloudflare's own site-local addresses ended up below a rule called REJECT-THE-REST, which rejects everything that reaches it. Because the rules are read in order, the site-local addresses were never announced at all — they were withdrawn. Those addresses were both the way into each location and the way Cloudflare's servers reached customer websites behind it. The 19 locations were only 4 percent of Cloudflare's network, but the outage impacted 50 percent of total requests. Cloudflare found the cause, reverted the change, and had every location working again by 07:42 UTC — 75 minutes after the incident started at 06:27 UTC. In its own words: this was our error and not the result of an attack or malicious activity.

The company: what Cloudflare did

Cloudflare runs a global network that sits in front of websites and applications. When you visit a site that uses Cloudflare, your request usually goes to a nearby Cloudflare data center first. Cloudflare can then protect the site from attacks, speed it up, and pass your request on to the site's real servers — its origin servers, the computers where the website actually lives. If Cloudflare cannot reach the origin, or you cannot reach Cloudflare, the site looks down even though nothing is wrong with the site itself.

To be reachable, networks announce addresses using BGP — the Border Gateway Protocol, the Internet's system for sharing directions. Announcing is called advertising a prefix: a block of neighbouring IP addresses. If a network stops advertising a prefix, it is withdrawn and those addresses are no longer reachable. A mistake in what Cloudflare advertises does not stay local. It travels at the speed of routing.

For the prior 18 months, Cloudflare had been converting its busiest locations to a newer design called Multi-Colo PoP (MCP). A PoP is a point of presence — one physical location. MCP is a Clos network — a layered, highly connected design — with an added routing layer made of routers called spines, forming a mesh inside the data center. The mesh lets parts of a location be switched off for maintenance without disrupting traffic. By June 2022, 19 locations were converted: Amsterdam, Atlanta, Ashburn, Chicago, Frankfurt, London, Los Angeles, Madrid, Manchester, Miami, Milan, Mumbai, Newark, Osaka, São Paulo, San Jose, Singapore, Sydney and Tokyo. The design brought reliability improvements — and concentrated risk, because those locations carried a significant proportion of all traffic.

The problem: a harmless change with a hidden second effect

The trigger was not an attack, a hardware failure, or a reckless shortcut. It was a tidy-up. As part of a long-running effort to standardise its configuration, Cloudflare was rolling out a change to standardise the BGP communities attached to a subset of the prefixes it advertises. A community is a label stuck on an announcement — extra information other parts of the network can read. This change added informational communities to Cloudflare's site-local prefixes: the addresses each location uses internally, which let Cloudflare's servers — it calls them metals — talk to each other and connect to customer origins. The new labels included STATIC-ROUTE, SITE-LOCAL-ROUTE, and codes for the site and the region.

The change went through the normal safety process. A Change Request ticket was created. It included a dry-run — a rehearsal that shows what the change would do without applying it. It had a stepped rollout procedure, meaning it would be applied to a few places first, then more. And it was peer reviewed by multiple engineers before it was allowed to go out. On an ordinary router, the difference the change made — the diff, the line-by-line comparison of before and after — was exactly what was intended: a few community lines added, nothing else.

The danger was in a different kind of router. BGP policies decide which prefixes get advertised and which do not. A policy is a list of components called terms, and the terms are evaluated sequentially — in order, from the top. A prefix is tested against the first term, then the next, until a term decides its fate. Order is not formatting in a policy. Order is the logic.

On the spines, the policy that controls outbound announcements is called AGGREGATES-OUT. Its diff looked, at a glance, identical to the harmless router diff: the same community additions. Cloudflare's post-mortem says so directly — an initial glance might give the impression the change is identical, but it is not. Mixed into the spine diff were lines marked with an exclamation mark. In that diff format, the mark means re-ordering: terms had moved. Several terms moved up, and two terms were added to the bottom. The two that fell to the bottom were 4-ADV-SITE-LOCALS and 6-ADV-SITE-LOCALS — the terms that advertise the site-local prefixes, for IPv4 and IPv6. They had moved from the top of the policy to the bottom, behind a term called REJECT-THE-REST, whose entire action is an explicit reject: then reject.

An analogy: imagine a mailroom with a checklist read strictly top to bottom. One line says deliver the internal post. A later line says shred everything else. Re-order the list so shred everything else comes first, and the internal post never gets delivered — not because anyone changed what the lines say, but because the shredder now runs before the delivery line is ever reached. The content of Cloudflare's change never changed. Only the evaluation order did. That was enough.

Same terms, different order — opposite result BEFORE — SITE-LOCALS ADVERTISED 1 · 4-ADV-SITE-LOCALS — advertise 2 · 6-ADV-SITE-LOCALS — advertise 3 · Other advertisement terms 4 · REJECT-THE-REST — then reject Site-locals are decided before the reject. AFTER — SITE-LOCALS WITHDRAWN 1 · Other advertisement terms move up 2 · REJECT-THE-REST — then reject 3 · 4-ADV-SITE-LOCALS — never reached 4 · 6-ADV-SITE-LOCALS — never reached The reject runs first. Nothing below it runs. The community labels being added were harmless. The re-ordering hidden in the same diff was not. Policies evaluate terms in order, so moving a term below an explicit reject is the same as deleting it. Source: Cloudflare post-mortem, policy AGGREGATES-OUT on the MCP spines.

What this shows: the whole mechanism in one picture. Nothing in the terms changed — only their order. Once the site-local terms sat below REJECT-THE-REST, they were never evaluated, and the site-local prefixes stopped being advertised.

What happened

All times are UTC on June 21, 2022, from Cloudflare's post-mortem timeline.

June 21, 2022 — from harmless rollout to 19 locations offline 03:56 — change deployed to the first location No impact: that location still uses the older architecture 06:17 — deployed to the busiest locations, but not MCP ones Still no impact — the stagger has not touched an MCP location yet 06:27 — rollout reaches the MCP spines: incident starts 19 locations swiftly offline; 50 percent of total requests impacted 06:32 — internal incident declared; 06:51 — first test change A change on one router verifies the suspected root cause 06:58 — root cause understood; revert work begins 07:42 — last revert completed; 08:00 — incident closed

03:56 UTC — The change is deployed to the first location. Nothing happens, because that location still uses the older architecture. The first step of the stagger passes, and it proves nothing about the new architecture.

06:17 UTC — The change is deployed to Cloudflare's busiest locations — but not to the locations with the MCP architecture. Still no impact. This is the quiet trap in the rollout: the steps were small, but none of them tested the one design where the change behaved differently. Cloudflare's own verdict is that the steps were not small enough to catch the error before it hit all of the spines — and, as the remediation section admits, the stagger policy did not include an MCP data center until the final step.

06:27 UTC — The rollout reaches the MCP-enabled locations, and the change is deployed to the spines. This is when the incident starts. As the re-ordered AGGREGATES-OUT policy takes effect, the site-local terms fall behind REJECT-THE-REST, and Cloudflare immediately stops advertising its site-local prefixes in those locations. The 19 locations swiftly go offline.

06:32 UTC — Cloudflare declares an internal incident, five minutes after it starts.

06:51 UTC — Engineers make a first change on a router to verify the root cause — a deliberate test: change one device, watch whether the suspected mechanism explains what they see.

06:58 UTC — The root cause is found and understood, and work begins to revert the problematic change. Cloudflare's introduction also describes 06:58 as the moment the first data center was brought back online; this page presents 06:58 once, the way the post's own timeline frames it — cause understood, revert under way.

How a prefix dies without being deleted Term: other advertisements — evaluated REJECT-THE-REST — then reject: STOP 4-ADV-SITE-LOCALS — never reached 6-ADV-SITE-LOCALS — never reached THE RESULT Site-local prefixes are not advertised — they are withdrawn Direct access to the location lost Servers cannot reach origins Multimog load balancer fails Evaluation stops at the reject. Everything below it might as well not exist.

What this shows: a policy being read the way a router reads it — top to bottom, stopping at the explicit reject. The moving outline is the evaluation pointer; watch it stop at REJECT-THE-REST, above the two site-local terms that never run.

07:42 UTC — The last of the reverts is completed, and all data centers are online and working correctly. The revert took longer than it should have, for a painfully human reason Cloudflare states plainly: network engineers walked over each other's changes, reverting the previous reverts, causing the problem to re-appear sporadically. Under pressure, several skilled people fixing the same devices without tight coordination undid each other's work.

08:00 UTC — The incident is closed. Start to restored: 75 minutes. Start to formally closed: 93 minutes.

The damage

The headline numbers are a study in concentration. The 19 affected locations are only 4 percent of Cloudflare's total network — but the outage impacted 50 percent of total requests. That gap is the whole story of the MCP programme: Cloudflare had deliberately converted its busiest locations first, so the newest architecture sat exactly where the traffic was. A fault that only existed in that architecture therefore hit half the company's request volume while touching one location in twenty-five.

Inside each affected location, the withdrawal cut three things at once, in the post-mortem's own chain. First, direct access was removed: with the site-local prefixes no longer advertised, the locations themselves were no longer reachable in the normal way. Second, origins became unreachable: Cloudflare's servers could no longer reach customer origin servers, so even a request that arrived could not be completed — the shop was open but the stockroom door was locked. Third, the internal load balancer failed: Multimog, Cloudflare's internal load-balancing system — a variation of its Unimog load balancer — stopped working, because it could no longer forward requests between the servers in the MCPs. Load balancing is what spreads work evenly across machines of different sizes. Without it, the smaller compute clusters in an MCP received the same amount of traffic as the largest clusters, and the smaller ones overloaded. So the failure was not one break but a cascade: reachability gone, origin access gone, and the traffic-spreading system gone, all from the same withdrawn prefixes.

Cloudflare's post names no affected customers or websites, and gives no dollar figure for the damage — so this page prints neither. What the primary supports is the scale above: 19 of the busiest locations on one of the Internet's largest networks, half of all requests impacted, for 75 minutes. It also records the human cost on Cloudflare's side: engineers had added difficulty reaching the affected locations to revert the change — the withdrawal had removed the very access they would normally use to fix it — and had to use backup procedures to take control of the affected locations.

How they recovered

Step one: prove the cause on one router. At 06:51 UTC, engineers made a first change on a single router to verify the root cause. That discipline matters: in a global outage the temptation is to revert everything everywhere at once. Testing the theory on one device first confirmed the mechanism before the full revert began.

Step two: get back in through the side door. Because the withdrawal had removed direct access to the impacted locations, engineers could not simply log in the normal way and undo the change. Cloudflare says it has backup procedures for exactly such an event, and used them to take control of the affected locations. The lesson is built into the story: any fix that depends on the thing that is broken is not a fix. A separate, rehearsed way in has to exist before the day it is needed.

Step three: revert — and survive the revert. From 06:58 UTC, work began to revert the problematic change across the spines. The reverts were delayed because engineers walked over each other's changes, reverting the previous reverts, so the problem re-appeared sporadically. Recovery from a configuration incident is itself a configuration change, made under time pressure by tired people; without one coordinator and one agreed sequence, the cure can re-inject the disease. The last revert was completed at 07:42 UTC, with all data centers online and working correctly, and the incident was closed at 08:00 UTC.

The fix: technology and controls that came out of it

Cloudflare lists three areas of work, and each one maps to a specific failure in this story. Together they are a checklist for anyone who rolls out network configuration at scale.

Process: the stagger must test the new thing, not just the old fleet. The rollout did use a stagger procedure — but the stagger policy did not include an MCP data center until the final step. So the early, safe steps proved the change on the older architecture, where it was harmless, and the first real test on the new architecture was production at full scale. Cloudflare's fix: change procedures and automation need MCP-specific test and deploy procedures, so there are no unintended consequences in the locations that are different. The general rule: a staged rollout only protects you if an early stage actually resembles the risky target. Staging by size or by busyness is not staging by risk.

Architecture: design the policy so a bad order cannot happen. The policy statement that caused the incorrect advertisement will be redesigned to prevent an unintentional incorrect ordering. That is the strongest kind of fix — not a reminder to be careful, but a structure in which the dangerous arrangement cannot be expressed. If a reject-everything term exists in a policy, what sits below it should be impossible by construction, or at least impossible to create by accident during an unrelated edit.

Automation: enforce the stagger, and make rollback automatic. Cloudflare committed to automation that enforces an improved stagger policy for rollouts of network configuration — enforced by machines, not by a ticket reviewers can wave through — and to an automated commit-confirm rollback. Commit-confirm is a pattern where a change is applied provisionally and automatically rolls back unless someone actively confirms it is healthy within a set time. Cloudflare's own assessment: the improved stagger would have significantly lessened the overall impact, and commit-confirm would have greatly reduced the time-to-resolve. Note what commit-confirm would have done in the worst moment of this incident: when engineers could barely reach the devices, the devices would have healed themselves by default, instead of waiting for a human to fight their way in.

There is also a review lesson, and Cloudflare is honest about it: the change had a dry-run, a stepped rollout and peer review by multiple engineers — and the re-ordering still slipped through, because a diff that is mostly harmless additions trains the eye to stop looking. The exclamation marks were there. Nobody's process made anyone stop on them. A review checklist for policy changes that asks one explicit question — did any term move? — is cheap. This outage is the receipt for not asking it.

What this means for you

Enterprise network engineers

Your version of AGGREGATES-OUT is the firewall rule base, the route-map, the access list — every ordered policy you own. This case gives you three habits. First, read diffs for movement, not just additions: in any ordered list, a moved line is a changed meaning, and your change review should call out re-ordering explicitly. Second, know which of your terms are REJECT-THE-REST — the explicit deny, the default route to nowhere, the catch-all — and audit what sits below them today; anything there is already dead, and anything that falls there during the next edit dies silently. Third, check your own stagger: when you pilot a change on one site before the rest, is the pilot site actually built like the sites that matter, or is it just the convenient one? Cloudflare piloted on the old architecture and learned nothing about the new one.

Hyperscaler engineers

This is the canonical argument that blast radius is a property of your rollout graph, not your intentions. Cloudflare had a stagger, a dry-run and peer review, and still hit every spine — because the stagger's final step contained all of the new architecture at once. Design rollout stages by failure domain: the first stage must include at least one instance of every distinct architecture, version and policy shape the change will touch, at the smallest possible scale. Then automate the enforcement, and add commit-confirm or its equivalent to network changes, so a change that removes your own access removes itself. And treat coordination as part of recovery engineering: the revert-on-revert collisions at 07:42 were a tooling and ownership problem — one writer at a time, with visible locks, is a control, not a courtesy.

HFT / low-latency engineers

Your policies are smaller and faster, but the shape is identical: an ordered rule set, evaluated mechanically, where sequence is semantics. A route-map, an ACL, or a session-filter list re-ordered during an unrelated tidy-up will behave exactly as Cloudflare's did — instantly, everywhere it is applied, with no error message, because from the machine's point of view nothing is wrong. The defences transfer directly: generate policies from a structure that cannot express a term below the terminal reject; diff-test the evaluated result, not the text — advertise-sets before and after, compared automatically; and rehearse the out-of-band path. Cloudflare needed backup procedures to reach devices its own change had cut off. In a trading plant, the equivalent moment is the one where the management network shares fate with the thing it manages. Find that shared fate in peacetime.

Try it yourself

The skill at the centre of this case is reading BGP the way the network experiences it — what is actually being advertised, and what changed. Practice it free with Packet Path's BGP Toolkit, which lets you explore live routing data and see prefixes and paths the way other networks see them. Pair it with the Network Config Verifier: paste configurations side by side and it flags inconsistencies — the habit that catches a fleet where one device's policy no longer matches the rest, before the Internet does it for you.

Sources

Primary source — Cloudflare Blog, Cloudflare outage on June 21, 2022 (published June 21, 2022). All incident mechanics, the timeline (03:56, 06:17, 06:27, 06:32, 06:51, 06:58, 07:42 and 08:00 UTC), the 19 MCP locations, the 4 percent of network and 50 percent of requests figures, the AGGREGATES-OUT re-ordering mechanism, the Multimog consequences, the recovery difficulties, and the remediation list are taken from this post-mortem: https://blog.cloudflare.com/cloudflare-outage-on-june-21-2022/

Note on 06:58 UTC: the post's introduction describes 06:58 as the first data center brought back online, while its timeline describes 06:58 as the root cause found and understood, with revert work beginning. This page presents 06:58 once, following the timeline. No affected-customer list and no dollar damage figure is printed, because the post-mortem contains neither.

Key takeaways

Keep reading