On Tuesday morning the National Security Agency told part of its workforce to come in late. The reason was not weather. The agency's classified internal network, NSA Net, had gone down, and according to CBS News the instruction had a name inside Fort Meade. Sources called it "Code Gray," a modified reporting schedule for non-emergency personnel, and they said the point of it was to keep too many people from logging on at the same time.
That last detail is the most interesting thing anyone has reported about this outage, and it is the reason for this post. I am writing this the same day, with the network's status still unclear, so I want to be careful about the line between what has been reported and what I am guessing. The first half of this post is the reporting. The second half is a model, with code you can run, of one ordinary way that a routine patch turns into a morning like this one.
What Is Known
CNN broke the story on Tuesday, November 17, citing six people familiar with the matter. NSA Net is the network NSA employees use to communicate and share classified information with each other. Nextgov described it as "the primary platform for transmitting top-secret data" inside the agency. CNN's sources said there was no evidence of a cyberattack and that the agency had staggered arrivals while it worked out the scope of the problem.
The agency's statement came later in the day, from a spokesperson none of the outlets named. It called the event a "temporary degradation during scheduled routine maintenance," said that some internal systems were affected, and said that "mission-critical capabilities remain fully operational." It added that "NSA's infrastructure is designed with multiple layers of redundancy."
The anonymous accounts fill in a little more, and they all point the same direction.
| Outlet | What its sources said about the cause |
|---|---|
| CBS News | Two sources said it resulted from routine system patching |
| Nextgov | Four of six people said it may be linked to a series of software upgrades |
| Wall Street Journal, via Reuters | One person said the NSA was "simply updating its software to patch the system" |
| NSA, on the record | "Scheduled routine maintenance" |
CBS reported that the gates and campus services at Fort Meade were operating normally and that some activities were redirected to other NSA facilities. A current and a former official told CNN the outage would not affect the agency's ability to get urgent intelligence to the president, who was in the Philippines on Tuesday and due in China on Wednesday to meet Xi Jinping and Vladimir Putin.
Beth Sanner, a former senior intelligence official, gave Reuters the most useful sentence of the day. "A cyberattack is the least likely scenario," she said, "and outside our current context, this probably would not be reported."
The Current Context
The context is the six days before it.
Microsoft
Federal Aviation Administration
JPMorgan Chase, Wells Fargo, United
Friday is the day most people will remember, because it is the one they could see. For the better part of five hours nothing took off anywhere in the country, and airports filled up with airplanes that had nowhere to go.
By Tuesday the country had been through a Microsoft outage, a nationwide ground stop, a bad day at the biggest bank in the country that spilled over into Wells Fargo and Bank of America, and now a spy agency that could not log in. People drew the obvious line through those four points. Officials spent the day erasing it. Markwayne Mullin, the administration's top homeland security official, told CNBC the cause was "pushing new technology on top of really old computer systems," and added, "I can tell you with 98% certainty this isn't a cyberattack." The president's version was shorter. "Things like that happen," he told reporters. "It's fine."
I think the officials are right, and I think the boring explanation is worse news than the exciting one. Look at the stated causes again. A router installation. A latent defect and a traffic surge. A software bug. Scheduled maintenance. Not one of those is an adversary. Every one of them is a change that somebody made on purpose to a system that was working.
What May Have Happened
Everything from here down is my reconstruction. Nobody outside the agency knows how NSA Net is built, the NSA has not published a cause beyond the word maintenance, and nothing below should be read as a description of its systems. What I have is two reported facts. The outage came out of patching. And the response was to stop everyone from logging on at once.
Put those two together and they describe a failure that anyone who has run a large network has met. It is usually called a thundering herd, or a login storm.
Start with what a login actually touches. On any big network, signing in is not one step. It is a relay, and a restart anywhere along it puts work on everything behind it.
Now restart one of those hops during a maintenance window and watch what the rest of them do. It goes like this.
- You patch something everyone depends on, such as the service that checks who you are when you log in.
- The patch needs a restart, so for a while every session is dropped.
- The service comes back. Now every user and every machine tries to sign in during the same few minutes.
- The service can only handle so many logins per second, so requests queue.
- Clients do not wait forever. After a timeout they give up and try again.
- The server does not know they gave up. It keeps working through the queue, answering requests that nobody is waiting for anymore.
That last step is the trap. Once the line is longer than the server can clear within one timeout, every request is dead by the time it reaches the front, and the retry that replaced it is at the back of an even longer line. The server is at full effort and getting nothing done. Nothing is broken, and it will stay that way for as long as people keep trying.
Here is that failure with 240 workstations and one login service. Switch between the two buttons.
In the first mode everyone shows up together. The service gets through the first 86 logins and then never completes another one, while the count of dead requests it is still dutifully processing climbs without limit. In the second mode the same 240 people arrive in six groups, and the same service handles all of them without a single timeout. The hardware is identical in both runs. The only thing that changed is the schedule.
That is what a staggered arrival order is for. Code Gray is a rate limiter that runs on people.
Why The Line Never Drains
It is worth slowing down on the stuck case, because it is not intuitive. A service that is merely too slow should catch up eventually. This one never does, and the reason is what the queue is made of.
After the first timeout, 154 people are still trying. That number never moves, because none of them ever gets through. What grows is everything behind them in the accounting, the requests they already walked away from. Every 40 ticks, all 154 give up and ask again, which adds 154 fresh requests to the back of the line and turns the 154 old ones into dead weight. In those same 40 ticks the service clears 80. So the line gets 74 longer every cycle, and all of the growth is garbage.
The engineering literature calls this a metastable failure. The trigger was brief. It was over the moment the service finished restarting. But the system has settled into a second stable state, a bad one, that feeds itself. Removing the trigger does not fix it. You have to remove the load, which in practice means turning people away until the queue is empty.
The Model
Both animations and the chart above are running this script. It is about fifty lines of Python and has no dependencies.
There is a clean rule hiding in those numbers. The service clears 2 requests per tick and a client waits 40 ticks, so the longest line that can ever be served in time is 2 times 40, which is 80 requests. Staggered groups of 40 never come near it. A crowd of 240 blows through it in the first ten ticks, and from then on the service is doing nothing but old work. The six extra logins on top of 80 belong to people who arrived a few ticks late and so still had a few ticks of patience left when their turn came.
The middle line is worth a look. Those clients arrive all at once too, but when a login times out they wait a random and growing amount of time before trying again. That is enough to break the loop. It is not free. The run sits stuck at 86 for about 270 ticks while the service chews through 549 requests that were already abandoned, and only then does it start letting people in. Backoff gets you out of the hole. It does not keep you from falling in.
Inside The Rack
The model treats the login service as one box. Real networks are racks of them, and the restart that empties the building usually starts in one of those racks at an hour when nobody is watching.
I do not know what is in the NSA's racks and neither does anyone who is talking. So this one is mine. It is built around the same pair of Palo Alto PA-5260 firewalls from my post on validating firewall policy with Nmap, with two core switches above them and four login servers below. A pair of firewalls like that sits in front of the services people sign in to on a great many enterprise networks, which makes it a fair stand-in.
The two buttons apply the same update to the same hardware. In the first run it goes to everything in one pass. Both firewalls restart together, so there is no standby to take over, and all four login servers go with them. Ten seconds later every light is green again and the rack looks perfect. It is also empty. Every session that existed before the restart is gone, and the 240 clients from the last section are about to ask for theirs back at the same time.
In the second run the same work takes a little longer and nobody notices it happened. This is the whole reason hardware gets bought in pairs.
Patching A Firewall Pair
A high availability pair has one firewall carrying traffic and one standing by, and the two keep each other's session tables in sync. That sync is what makes a quiet upgrade possible. You upgrade the unit nobody is using, hand traffic over to it, and then upgrade the other one. On PAN-OS the order looks roughly like this.
Every step that could hurt is followed by a step that checks. The failure I drew in the first run is what you get when the checks are skipped or the order is reversed, and it is an easy mistake to make at scale, because nobody patches forty firewalls by hand. They script it. So the check belongs in the script.
That is thirty odd lines, and it encodes one rule. The automation is not allowed to restart a device unless the device itself says it is the standby and its partner is healthy. Most patching outages are not caused by the patch. They are caused by a tool that did exactly what it was told to a machine that was in a different state than the person assumed.
Other Possibilities
The login storm is my best guess. It is not the only way a patch takes a network down, and it would be dishonest to show one mechanism in three dimensions and leave the others out. Here are three more that fit at least part of what was reported, and then a scorecard.
One Router
This is the one the country watched four days earlier. The FAA traced a nationwide ground stop to a single router installed at a remote facility in Arkansas. One device, in one building, sitting in a path that had no second way around it.
The first mode is the plain version. Take the only router down for its update and every site behind it goes dark, and when it returns they all reconnect together, which lands you back in the login storm by a different road.
The second mode is the more interesting one for Tuesday. With two routers nothing drops. But look at the load. While router A is out, router B is carrying everything, and it has no headroom left. A network in that state works fine at three in the morning and falls over at eight, when the building fills up. If the NSA spent Tuesday running on the surviving half of something, then spreading arrivals across the morning is exactly how you would keep that half alive. Of everything in this post, this is the alternative I take most seriously.
The Clock
Kerberos, the login system behind most large networks, refuses to issue a ticket if the clock on the machine asking and the clock on the server disagree by more than five minutes. It is a security feature. It also means that timekeeping is a hidden dependency of every login, and a patch that restarts or misconfigures the time servers can lock a building out without touching the login service at all.
From a desk it looks like this.
I rank this one low for Tuesday, and the reason is the staggered arrivals. If the clocks are wrong, it does not matter whether ten people try to log in or ten thousand. They all fail. Sending people home for two hours fixes nothing. The reported response tells you the problem was about load, and a clock problem is not about load.
The Loop
The last one is the slowest to fix and the hardest to see coming. Services depend on each other, and over the years those dependencies quietly close into a circle. The name service keeps its records on shared storage. Storage will not mount without the login service. The login service finds its database by asking the name service. On a normal day that is fine, because all three are already running. Each one only needs the others in order to start.
Restart them one at a time and the loop never matters. Restart them all in the same window and you get a standoff that no amount of waiting resolves. Somebody has to break the circle by hand, usually by starting one service in a degraded mode with its dependency faked, and somebody has to know which one. This is a large part of why some outages last four hours and others last four days.
The loops are easy to find if anyone writes the dependencies down.
Scoring Them
Four things have been reported that a theory has to account for. It started during patching. The response was to limit how many people logged in at once. The agency says only some internal systems were affected. And it was still not fully resolved by the afternoon.
| Possibility | Patching | Staggered arrivals | Only some systems | Lasts for hours |
|---|---|---|---|---|
| Login storm after a restart | Yes | Yes, directly | Yes | Yes, until load is removed |
| Running on half of a redundant pair | Yes | Yes, directly | Yes | Yes, until the other half returns |
| Single device with no second path | Yes | Only for the reconnect | Depends where it sits | Until it is back |
| Clocks out of sync | Yes | No | No, it hits every login | Minutes, once found |
| Cold start dependency loop | Yes | No | Possibly | Yes |
| A cyberattack | No | No | Unknown | Unknown |
The top two rows are really the same story told from two ends. Either too many people arrived for the capacity that existed, or the capacity shrank underneath the usual number of people. Both end with someone deciding to meter the front door. The last row is there because it is the one everybody asked about. Nothing reported so far points to it, and the response the agency chose is not what a response to an intrusion looks like. You do not answer an attacker by asking the day shift to come in late.
The Fixes
None of this is new, and the fixes are old enough to be boring. Past the firewall pair there are four more, and they live in different places.
The first is in the rollout. You do not restart everything at once. You restart one piece, check that it came back, and stop if it did not.
The second and third are in the software on each end of the login.
The server side fix is the one that would have saved the red line in the chart all by itself. A server that checks the age of a request before working on it never wastes a tick, and the queue drains no matter how big the crowd is.
The fourth is to stop accepting more work than you can finish. A login service that knows its own limit can refuse the extra requests at the door, cheaply, and tell each client how long to wait.
Read that function next to the reporting and it is hard to miss the resemblance. A fixed number of people are admitted per interval. Everyone else is given a time to come back. Nobody is left standing in a line that will not move.
The fifth fix is the one the NSA reportedly used on Tuesday, and it is the one you reach for when the others are not in place or did not hold. You do the same thing by hand. You call the people and tell them to come in at ten.
January 2000
This has happened to the agency before, and the earlier version is a useful measure. At about 7 p.m. on Monday, January 24, 2000, the computers at NSA headquarters stopped processing intelligence. They stayed down for roughly three and a half days. Michael Hayden, the director at the time, later said headquarters had been "brain dead." Collection continued the whole time, but nobody could get at what was collected, and the agency leaned on its British counterparts to help work through the backlog.
Hayden's public explanation was a software anomaly in a complex network that was running close to capacity. He said there were no hackers and no enemy agents. An internal review afterward put more of the blame on management than on the trigger, and Hayden went on to use the episode as the argument for rebuilding the agency's infrastructure.
Twenty six years later the official vocabulary is nearly the same. Not an attack. An ordinary technical event. A system with less slack in it than anyone wanted to admit.
What Is Not Known
Almost everything that would let you judge my model against reality is missing.
| Question | Status as of Tuesday night |
|---|---|
| When the outage began | Not reported |
| When full service returned, or whether it has | Not reported |
| What was being patched | Not reported |
| How much of the network was affected | "Some internal systems," per the NSA |
| Whether logins were the actual bottleneck | Inferred from the staggered arrivals, not confirmed |
| Whether anything was lost | No indication |
So treat the second half of this post as an explanation of why a competent organization might answer a patching problem by rearranging its parking lot, and not as an account of what went wrong inside the building. If the agency ever says more, I will update it.
What I am confident about is smaller. Four large systems failed in six days, and in each case the stated cause was a planned change. Nobody had to attack anything. The week's most reassuring sentence, that there is no evidence of a cyberattack, is also its most uncomfortable one.
Sources: CNN's report of Nov. 17, 2026, as carried by WRAL. CBS News, "NSA's classified internal network goes down, sources say," Nov. 17, 2026. Nextgov/FCW, "Classified NSA communications network down, people familiar say," Nov. 17, 2026. Reuters, as carried by the Jerusalem Post and Al Jazeera, Nov. 17, 2026, including its account of the Wall Street Journal's reporting. The Daily Beast, Nov. 17, 2026. For the bank outages of Nov. 16, Al Jazeera and CBS News. For January 2000, CBS News, "National Security Meltdown," and contemporary reports in the Baltimore Sun and Los Angeles Times. The simulation, the animations, the charts, the rack and the code samples are my own illustrations of a general failure mode. They are not based on any knowledge of NSA systems or of what equipment the agency uses, and the host names, package names and numbers in them are invented. The firewall commands follow Palo Alto Networks' published upgrade procedure for high availability pairs. Company and agency logos are used to identify the organizations named and do not imply any endorsement. The outage was still being reported as ongoing when this was written on Nov. 17, 2026.
