Anatomy of an Outage: The Day Facebook Vanished
On October 4, 2021, Facebook, Instagram, and WhatsApp vanished for six hours. How one network command and a DNS safety mechanism took it all down.
On October 4, 2021, Facebook, Instagram, WhatsApp, Messenger, and Oculus didn’t just go down — they disappeared from the internet entirely. For roughly six hours, around 3.5 billion people couldn’t reach any of them, and the company’s own engineers couldn’t easily get in to fix it. It remains one of the cleanest case studies in how a single change can cascade into a total outage. Here’s the anatomy of it.
What the internet saw
The strange part, early on, wasn’t that Facebook was slow or erroring — it was that it had become unfindable. Type facebook.com and your computer asks DNS, the internet’s phone book, to translate that name into an IP address. That day, the lookups failed: the servers responsible for answering “where is facebook.com?” had stopped answering at all. The name still existed; the directory entry pointing to it had been yanked out.
To understand why, you have to look one layer deeper, at how Facebook’s network announced itself to the world.
What actually happened
Large networks advertise their presence using BGP (the Border Gateway Protocol), the system routers use to tell each other “traffic for these IP ranges goes through me.” BGP is how the independent networks that make up the internet agree on paths.
During routine maintenance, an engineer issued a command intended to assess backbone capacity. Because of a flaw in the command — and a bug in an audit tool that was supposed to catch exactly this kind of mistake — it instead took down all of the connections in Facebook’s backbone, the high-capacity network linking its data centers. In an instant, those data centers were islands, cut off from each other and from the outside world.
Why DNS turned a network blip into a total blackout
Here’s the design decision that turned an internal problem into a global one. Facebook’s DNS servers were built with a safety feature: if one of them ever lost its connection to Facebook’s data centers, it would assume something was wrong and withdraw its own BGP route advertisements — effectively saying “don’t send DNS queries to me, I’m unhealthy.” Normally that’s sensible; it routes traffic away from a broken server.
But when the backbone collapsed, every DNS server lost its data-center connection at once, so every DNS server withdrew itself simultaneously. Facebook’s authoritative nameservers vanished from the global routing table together. The result: a company that was actually still “running” internally became completely unreachable from outside, because there was no longer any way to even resolve its name. A health check meant to handle one sick server had been triggered for all of them at the same time.
The blast radius spread outward, too. DNS resolvers worldwide — including those run by ISPs and CDNs — began retrying the failed lookups over and over, generating a storm of extra traffic that rippled across the wider internet.
Why it took six hours
A six-hour recovery for a company of that caliber surprised people. The delay wasn’t incompetence; it was a trap the outage set for its own responders.
- The tools were inside the building. Facebook’s internal systems — the dashboards, the deployment tooling, even some of the communication used to coordinate a response — ran on the same network that was down. Engineers couldn’t remotely diagnose or fix the problem the usual way, because the usual way no longer existed. This is the case for keeping your management plane independent of the systems it manages, the same out-of-band principle that underpins zero-trust access.
- Physical access was hard. With systems down, engineers had to get to the data centers in person — and reportedly even badge-entry and access systems were affected, slowing the people who could fix it.
- You can’t just turn it all back on. Powering a global fleet back up at once risks overwhelming electrical systems and caches. Recovery had to be staged carefully, which takes time.
The lessons
The Facebook outage is taught in network and reliability courses for a reason — almost every lesson generalizes:
- Automation needs circuit breakers. A single command shouldn’t be able to take down an entire backbone. Changes to critical infrastructure want staged rollout, peer review, and a “blast radius” limit — not blind, instant, global application.
- Beware coupled health checks. A safety mechanism that’s reasonable for one node can be catastrophic when its trigger condition hits every node simultaneously. Failure modes that are independent in theory often turn out to be correlated.
- Keep your recovery path off the failure path. If the only way to fix a downed network depends on that same network, you don’t have a recovery plan — you have a single point of failure with extra steps.
- DNS and BGP are load-bearing. They’re invisible until they break, and when they do, nothing else you built matters. Both deserve the same operational rigor as your application code.
The deepest takeaway is humbling: the systems most likely to cause a total outage aren’t the flashy ones. They’re the quiet plumbing — routing, naming, the connections between data centers — that everything silently depends on.
Tagged
Keep reading
Chisato · · 3 min read What Is DNS? The Internet's Phone Book, Explained
DNS translates domain names into IP addresses. How DNS resolution works, the common record types, and why it underpins everything on the web.
Chisato · · 4 min read What Is a NAT Gateway?
A NAT gateway lets private-subnet resources reach the internet outbound while staying unreachable from it, translating private IPs to a public one.
Chisato · · 4 min read What Is a VPC? Virtual Private Clouds Explained
A VPC is an isolated, software-defined network inside a public cloud. How subnets, routing, and security groups fit together to keep resources private.