“So, Mike, take us back,” said Ollie, “to the Thursday six weeks ago when you learned about the patch.”
“Sure,” said Mike. “It was a dark and stormy night, and suddenly my BlackBerry started to vibrate ominously with news of an emergency security patch from our networking vendor. I reviewed the release notes, and it did seem pretty urgent. If left unpatched, an attacker could penetrate our network and view or modify any network traffic. This wasn’t in the notes, but I heard through the grapevine that this vulnerability was recently used to steal customer information at the headquarters of Castle-Mart.”
“So it seemed reasonable that we would want to apply this patch as soon as possible?”
“Yes. All financial institutions are targets for all kinds of attacks, so we have to take potential security risks seriously.”
“How often do you apply security patches like these?”
“Pretty routinely. I’d say there’s at least one security patch a quarter, sometimes more frequently than that.”
“At the same time,” said Bill, “you were being quite thorough—you didn’t deploy the patch directly to production without testing.”
“Objection, your honor!” said Ollie. “That’s a counterfactual!”
“Wait, what?” asked Bill. “I thought I was commenting on Mike’s thoroughness.”
“You were,” Ollie replied. “But Mike didn’t deploy directly to production. It’s not what happened, and therefore a counterfactual.”
Bill chuckled. “Man! This is going to be tough. OK, instead of using a counterfactual—and thank you for pointing it out, Ollie—I’ll say this: Mike, you deployed the patch to our testing environment first.”
“Correct,” said Mike. “Counterfactual or not, we don’t deploy anything without testing it first.”
“For a sense of scale,” asked Raj, “how often do you make changes?”
“All changes across the network globally?”
“Yes.”
“I’d say we make between a few hundred and a few thousand changes to our network each day. Most of the changes are very small. Some are a bit more impactful. Some are automated, and others are done manually.”
“Do you try all the changes in the test environment first?”
“No, most of the changes we make are routine. We have tools that validate the changes and catch many errors and issues before they’re deployed. But changes deemed especially risky—like the patch in question—these changes are deployed to our test environment, where we then run lots of automated and manual tests. For instance, we simulate network load and see how things hold up.”
“How many changes cause outages?”
“Raj, that sounds a lot like linear causality,” Bill said. “I’m not sure that applies here, given the complexity of the system.”
“Right. I’m trying to estimate how many things go right versus wrong.”
“There are also likely errors that we introduce into the environment that don’t wind up contributing to outages.”
“Sure, we don’t have to be exact. Order of magnitude will do.”
“In the past year,” Mike said, “we’ve had maybe 10 outages? None of them as severe as the last one. They lasted a few minutes each, at most, and did not always stop the trading.”
“Assuming a thousand changes per day, on average,” Raj said, “that’s close to 400,000 changes in the last year. Kind of surprising that we don’t have more failures.”
“Maybe that’s availability bias in action,” said Ollie. “When we do have outages, they’re big, memorable, painful events, so we tend to overestimate their likelihood.”
“Huh. I’ve never thought of it that way,” said Bill.
Ollie pointed to the whiteboard. “Getting back to the timeline. What kind of testing did we do on the security patch?”
“We did load testing,” said Mike. “We generated tons of network traffic to see how the router behaved under load.”
“And how did it do?”
“Just fine, no issues. It’s worth mentioning that the test environment is a scaled-down version of our production environment. It would be cost prohibitive—and pretty much infeasible—to build an exact replica. And, of course, the network traffic is simulated. Simulated ain’t the real thing, and there are things that we can discover only in the real, production environment.”
“We’ve made a very reasonable trade-off,” said Ollie. “Instead of building a full-scale replica, we built something much smaller and economical.”
“Economical and gets us a .003% change-to-outage ratio,” said Raj, showing everyone a fancy calculator app on his tablet. “Can we make it better?”
“Every time there’s an issue,” Mike answered, “we learn a little more about our system. We can use that knowledge to make the system better, more resilient. For instance, we can write tests for any newly identified conditions of failure.”
“Have we done it after the last outage?”
“I haven’t,” said Mike, looking down. “I wasn’t here.”
“It’s a bit premature to think about remediation,” said Ollie. “Bill, can you please note ‘testing,’ so that we can return to it later? We’ve got quite a few more things to learn here. Going back to the timeline, it sounds like things were going quite well during the testing, and the patch was eventually applied in production, where it ran without apparent issues for over six weeks.”
“Over those weeks, we did experience a steady increase in trading volume,” Mike said. “We designed the network to handle several times that volume—or so we thought—and it was performing well. We had a few high utilization alerts, and we investigated a few of them, but found everything working normally.”
“So at the time, these alerts didn’t seem significant?” Ollie asked.
“There was nothing that seemed out of the ordinary,” Mike said. “We get a ton of alerts, most of which we’ve learned to ignore. They’re mostly noise.”
“I know we’re not supposed to talk about remediation,” Bill said, “but the noise in the monitoring or alerting system seems significant. I’m going to make a note of this in the remediation ‘parking lot,’ so we can return to it later.”
“Good call, Bill,” said Ollie. “Let’s return to the fateful Tuesday. Mike, when did you first get an indication that things might not be going well?”
“We started to get high-utilization alerts at around 11 a.m. I didn’t think much... What I mean is, I thought, based on previous alerts that didn’t correlate to any noticeable performance degradation, that these alerts were probably nothing. But they kept coming, and the utilization kept climbing from 70 to 80 percent. When it reached 85 percent, I decided to check things out. I logged into the router, and issued a status command. All of a sudden, I got disconnected from the router.”
“What were you thinking at this time?”
“I thought, ‘This is odd.’ I tried to reconnect to the router, but it seemed to be down. I got a notification on my BlackBerry that the standby router had taken over, which is what’s supposed to happen. I checked the monitoring system, and traffic seemed to be moving; in fact, the utilization was down a bit into the 70 percent range. I was feeling pretty good, actually. I was a little concerned about what happened to the primary router—it didn’t feel right the way that it went down—but since things were working again, I thought we could investigate that later. I had no idea that I had just turned onto a one-way street and was speeding the wrong way with no brakes.”
Mike took a deep breath, and shook his head.
“No one had any idea, Mike,” Raj said. “And what we also didn’t know at the time is that a week and a half prior, my team updated a configuration setting on our main equities-trading platform. It was the time-out setting, which specifies how long the system should wait in case it gets disconnected before trying to reconnect. The engineer who made the change thought the setting was measured in minutes. Turns out, it was measured in seconds, and he set the system to retry every second in case of connectivity issues.”
“When did we figure this out?” asked Linda.
“Last Friday,” Raj replied. “The engineer panicked, changed back the time-out setting right after the outage. He even modified the change log so that no one would find out.”
“He must have been terrified!” said Linda. “How did you manage to find out?”
“We ran our own little learning review, and he came forward. Provided a full account.”
“Amazing,” Mike said. “So that explains the sudden surge in traffic after the primary router failed. I’ve been wondering why the utilization surged to 90 percent a few minutes after the failover—it didn’t seem that the increased market volume could be causing that much of a spike. In any case, that’s when I logged into the standby router, and all hell broke loose. Well, it did, right after I used the same status command, which bricked the primary router.”
Mike crossed his arms. “I’m still having trouble with this,” he said, shaking his head. “I really should have known better. I should have been more careful not to repeat the same mistake twice.”
“Your honor...” Bill started.
Mike cut him off, “I know, I know. Counterfactuals, hindsight, and all that. But knowing that doesn’t make me feel better. I really expect more from myself.”
Linda looked at Mike and said, “You wished your experience would have tipped you off that you were in drastically different territory?”
“The thing is, even after I took down the second router with the same damn status command, I still didn’t think I was doing anything wrong.”
The room was silent. The phone conferencing system was quietly buzzing because of radio interference from a nearby mobile phone. Bill popped the cap back onto the marker, and placed it on the whiteboard. Linda nodded slightly at Mike.
“I guess I needed to say that,” he said.
“We hear you, Mike,” said Linda.
Mike leaned back in his chair, letting his hands fall on his knees. “When I play back that moment,” he continued, “and think about what I knew at that time, I can’t come up with another set of actions that would make sense. In fact, it took a while before I understood that we’d drifted into a totally new world, where the most innocuous, routine command—one that we all use hundreds if not thousands of times a day—would crash the router.”
Raj cleared this throat. “From the perspective of complexity science, we’re either in the chaotic or the complex domains. In either case, the relationship between cause and effect cannot be established in real time. Experience is not useful here. If we’re in the chaotic domain, the right thing to do is just to act—to do something and see what happens. If we’re in a complex domain, we probe—try a few things that might possibly work. Either way, your actions were reasonable, coherent, and appropriate. Fundamentally, they helped us learn that the system had drifted, as you said, into a state that we label ‘failure,’ but, of course, is just a different state of a working system.”
“So how did we get out of this state?” asked Ollie.
“We called the router vendor,” Mike replied, “and eventually got a senior engineer on the line. Within a half hour of that, we decided to roll back the patch—meaning, get the router to a previous version of the software. We didn’t know if that would fix the issue, but it seemed like it might work. So we did that around 1:20 p.m. But now there was so much network traffic that the utilization immediately spiked to a hundred percent. Things were flowing incredibly slowly, but at least the router wasn’t crashing anymore.
“Now we had to manually disconnect parts of the network in order to reduce traffic and stabilize the network. This proved tricky and time-consuming because we designed the network to be resilient, and route around failures. So when we would disable a network path, the traffic would start flowing through another route. Talk about unintended consequences. It took us roughly five hours to work through this. Unfortunately, we finished after the market closed, and that left a bunch of unwanted positions on our books that we couldn’t unwind until the following day. Which is why the firm lost money on some of them.”
The room fell quiet again. Ollie tapped his finger on the table. “Did we cover most of it?”
“We covered most of the technical timeline,” said Linda. “Before we go on, I want to add some color from a client-services perspective. As you can imagine, we started to get a lot of calls from our clients—both internal and external. We even got calls from the press! We were, frankly, overwhelmed by the volume. Even more important, we didn’t know what was going on until about 1:08 p.m., when the crisis management group call was finally started.”
“Mike called me at 12:45 p.m.,” said Bill, “while I was at lunch. It took a while to find the crisis management folks and for them to start the call.”
“That sounds like another potential area to look into,” said Bill, adding Crisis Management to the Remediation list on the whiteboard, which, by that point, also contained Testing, Alert Noise, Internal and External Communication, and Client-Services Call Volume. “Is now the right time to talk about remediation items—things we might do differently in the future?”
“Well, if no one has anything to add to the timeline,” Ollie answered, “it probably is. But let’s take a short break, shall we?”
“Amen!” said Mike, smiling broadly.