Troubleshooting a live fault
Say what is wrong in numbers, find where on the path before you ask what, read the counters and the loss, capture the evidence before you change anything, decide whether to fail over, and write the fault down so the provider and the next engineer can use it
Kilnworth's office link is 200 Mbit/s and the round trip to a client's upload portal is 20 ms. Pings from the office router to the first router beyond it lose 2 packets in every 100, and nothing else is wrong. Roughly what speed should one large upload over a single TCP connection manage?
Most faults you meet in the first years are not dramatic. A link is slow, a site cannot reach a service, a video call stutters at the same time every afternoon. Nothing is down, so nobody has a runbook, and the person who answers has to work out what is wrong in a system they only partly own. People who are good at this do not know more commands. They keep a short order of work: describe the fault in numbers, find where on the path it lives, capture the evidence, decide what to do about the damage, and write it all down.
The model: where first, then what
A live fault is a measured gap between how the network behaves and how it normally behaves. Two questions close the gap, and the order matters.
Where? Which segment of the path carries the fault: the machine, the switch port, the office router, the handover to the provider, the provider’s network, the internet, the far end. This question is cheap, because each test can rule out half the path. It also tells you who can fix it, which on a network you share with others is half the work.
What? Which mechanism: loss, delay, a full link, a bad cable, a wrong name, a size limit, a policy. You can only ask this sensibly once you know where, because the same symptom has different causes in different places.
The general loop of observing, hypothesising, predicting, testing and recording is taught in debugging a problem you have never seen, and it applies here unchanged. Google’s chapter on effective troubleshooting, in the reading list, is another statement of it. This chapter adds what the network changes about the loop.
You do not own the whole path. Part of it belongs to a provider, a cloud team or the far end. Your job is often to prove which side the fault is on, with evidence they can check.
The evidence is perishable. Counters reset when a device restarts. A stuck state clears. A failover moves traffic off the failing path, and with it goes the fault you were about to measure. Network philosophies makes evidence before and after a rule for changes; the same rule holds for faults.
Symptoms mislead. Slow can mean loss, delay, a saturated link, a policer, a name that takes five seconds to resolve, or a server that is slow on its own account. The word tells you nothing until you measure.
Say what is wrong in numbers
“Uploads crawl” is a feeling. Turn it into a statement someone else could test: who, doing what, to where, at what speed, since when, against what normal figure, and what changed.
Then make comparisons. Each one removes a share of the suspects, and each should change one thing.
| Compare | If the fault follows the first | It points to |
|---|---|---|
| Upload against download | Only uploads are slow | A direction-specific cause: outbound loss, an upload limit, a congested outbound queue |
| An edit suite against a laptop on Wi-Fi | Both are slow | Not the suite, its cable or its switch port |
| One destination against another | Only one is slow | The route to that destination or the far end, not your link |
| Now against last week’s figure | Last week was fine | Something changed: find what, and when |
| Before 15:00 against after 15:00 | Only the afternoon is slow | Something time-bound: a job, a peak, a schedule |
The last row of the table is a reminder that “what changed” is wider than configuration. A provider’s maintenance notice, a firmware update, a new backup job, a new customer on a shared link, a heavy rain on an exposed cable and a calendar date are all changes.
Keep a known-good figure for every path that matters. A fault described as 5 Mbit/s means little. A fault described as 5 Mbit/s against 195 on Thursday tells you the order of the problem and that it began recently.
Walk the path and read the counters
Write the path down: the machine, the switch port, the office router, the handover where the provider’s circuit meets your equipment (the demarcation point), the provider’s network, the internet and the destination. Then check each segment with the same three questions that Brendan Gregg’s USE method asks of any resource: how busy is it, is anything queueing, and is it counting errors?
On a network those questions become concrete.
- Utilisation. Is the interface near its capacity? Compare outbound and inbound separately.
- Saturation. Are packets queueing or being discarded? Output discards on an interface are the plainest sign.
- Errors. Are CRC or input errors rising on a port? That points to a cable, an optic or a duplex mismatch. Gregg’s page says errors are usually quicker to interpret than the other two, so read them first.
Then test along the path with ping, and with a traceroute or mtr that shows each hop. Test in both directions where you can, because the return path may be different. Three habits keep the results honest.
Test at the boundary. Ping the router’s own inside neighbour, then the first router beyond the handover, then a host at the destination. If the first test is clean and the second shows loss that carries on through every later hop, the fault begins at or beyond the handover. You have located it, and you can say so with numbers.
Read loss through the hops. Routers often give low priority to replying to probes. Loss that shows at one hop and vanishes at the hops after it is usually that, and not a fault. Loss that starts at a hop and continues at every hop beyond it is real. Richard Steenbergen’s NANOG talk on traceroute, in the reading list, is a good guide to these traps.
Prove it with the real traffic. Ping is a different packet from your upload. When the stakes justify the minutes, capture the real flow at the edge and count retransmissions. A capture settles arguments that counters only suggest. The Networks course chapters on the network tools, on troubleshooting by layer and on reading a packet capture are being written; they teach the commands, and this chapter takes the commands as given.
What the evidence looks like
A few signatures cover most of what you will see. They are patterns to test, not verdicts.
| What you measure | What it suggests | The next test |
|---|---|---|
| Steady loss, unrelated to load; errors rising on one port | A bad cable, optic or duplex mismatch | Read the port counters; swap or clean the part |
| Loss and discards only when the link is full | Saturation: someone is using the capacity | Find the top talkers; check what started when |
| High delay under load, no loss | A queue filling (the delay is the queue) | Ping while a transfer runs; compare to idle |
| Clean ping, slow transfers, retransmissions in a capture | A size limit (MTU), a policer or an inspecting firewall | Ping with don’t-fragment set and 1472 bytes of payload; capture on both sides of the firewall |
| Slow to start, then fast | A name taking too long to resolve, or a slow first connection | Time the lookup on its own; see the DNS lesson |
| One destination only | A routing problem or the far end | Traceroute to it and to a neighbour, from two places |
The 1472 in the fourth row is arithmetic: a 1500-byte packet has 20 bytes of IP header and 8 of ICMP header, so 1472 bytes of payload is the largest ping that fits. If it fails with the don’t-fragment flag set and a smaller one passes, something on the path has a smaller limit than you think.
The last piece of the model is why a little loss does so much damage. TCP, the protocol under most of what you move, treats a lost packet as a sign that the path is full, and halves its sending window. Then it grows the window back slowly. How that works and how the connection starts are in the lessons. The consequence is in the Mathis rule of thumb from the Predict question. For one flow, the rate is about (MSS / RTT) x (C / square root of p), where p is the loss rate and C is about 1.22. The paper that gave it is in the reading list, and so is the 2019 note from two of its authors on how far it holds.
The assumptions matter. The formula describes one long-lived, loss-based flow (Reno-like) that sees steady random loss, rarely hits a timeout and is never limited by the receiver or the application. C is about 1.22 on those terms and is somewhat lower when the receiver acknowledges every second packet. Put numbers in. With an MSS of 1,460 bytes and a 20 ms round trip, 2% loss gives 11,680 bits / 0.02 s x 1.22 / 0.141, about 5 Mbit/s. Loss of 0.1% gives about 22 Mbit/s. To fill a 200 Mbit/s link with one flow, loss would have to be below about one packet in 79,000. Loss that looks like nothing on a graph is enough to cap a single large upload far below the link.
Two cautions come with that. The rule describes a classic loss-based sender; newer controllers react differently, so treat the figure as a guide to the order of magnitude. And many parallel streams add up, which is why a browser speed test can look healthy on a link where one big file crawls. When someone says “the speed test is fine”, ask whether it was one stream or ten.
Stop the damage, or find the cause
While you diagnose, the fault keeps working. On a network the choice is usually between failing over to a second path and carrying on with the tests. Debugging a problem you have never seen gives the general version of this decision, and incident management covers what to do when the fault is large enough to declare. The network version has four parts.
Capture first, and keep it short. Before you switch anything, take five minutes of evidence: the counters, the pings along the path, an mtr, a capture of one real flow, all with timestamps, saved to a file. A failover removes the live fault, and you may not get it back when you want to prove something to a provider.
Decide by harm per hour, not by how well you understand the cause. Ask who is being hurt and how fast, whether the second path can carry the load, what the switch costs, how long it takes and whether you can switch back. The costs are real. Sessions may reset, a public address may change and upset a customer’s allow-list or a VPN, a slower backup may slow everyone else, and a metered link may cost money.
Say it aloud. Tell the people affected what you moved, why and for how long, in one message. Set a limit for any further investigation, in writing: “until 15:00, then I call the provider.”
Fail back on purpose. Failing over is a mitigation, not a fix. The way back is a change in its own right: do it when the primary has tested clean for a stretch you chose beforehand, at a quiet hour, with a rollback. The plan for it belongs in the chapter on changes, windows and rollbacks, which is still to come.
Handing a fault to the provider
A ticket that says “internet slow” gets the question “have you rebooted?” A ticket with evidence gets an engineer. What the provider needs is the circuit ID, the time the fault began with its time zone, the source and destination addresses, the test output that shows where the loss begins, the counters showing your side is clean, what you have already done and what you have not touched, the business impact and deadline, and a command they can run themselves.
The last item prevents the closure that irritates everyone: “no fault found”. A fault you can repeat on demand cannot be found absent. First-line support follows a script because most faults are inside the customer’s building, and evidence is what lets you skip it politely. The chapter on providers, circuits and vendors, which is still to come, covers contracts, service levels and escalation.
The fault report: symptom, evidence, cause, fix
A fault is not finished when the traffic is back. It is finished when it is written down, because the report is the handover to the next engineer, the proof for the provider and the baseline for the next fault. It has four parts, and the discipline is in keeping them apart.
Symptom. What was wrong, for whom, in numbers, with the normal figure beside it.
Evidence. Each item has a time, a source and a result that a colleague could repeat: the command or the counter, and what it showed. Include the comparisons that ruled things out, not only the ones that pointed to the cause.
Cause. What failed and where, and which evidence supports it. Say how sure you are: proved, likely or unknown. A report that states a guess as a fact is worse than none.
Fix. In three parts: how service was restored, how the cause was repaired, and what now makes this fault visible sooner. Add a list of everything you changed during the fault, in order, with times.
One page is enough. The template is in the Artefact below.
Where practitioners disagree
Fail over first or diagnose first. Many operations teams fail over at once, because a known-good path is worth more than a theory. Others point out that the fault may be in your own equipment, and a failover that hides it only postpones the next outage. The position here is to capture first, then fail over when the evidence puts the fault outside your equipment or the deadline presses, and to keep diagnosing only what is yours to fix.
Graphs or packets. Dashboards show averages, and an average can hide a minute of loss. Captures show what happened, but they take time to take and to read. Use graphs to find where, and captures to settle what.
Trust traceroute or distrust it. Some engineers dismiss it because of rate-limited replies and asymmetric paths. Others rely on it. Both are right: it is good evidence of where a path goes and weak evidence of loss at a single hop.
Call the provider early or only with proof. Early calls start the clock on their side. Late calls arrive with better evidence. A practical middle is to open the ticket as soon as you can say where, and to add the evidence as you collect it.
Day to day
At practitioner level you are the person who answers when the fault is not on a runbook. A fault, the weekly work around it and the habits that make the next fault cheaper are all your job.
When a fault arrives. In the first fifteen minutes: write the symptom in numbers; run the comparisons from the table; read the interface counters on your side; ping along the path in both directions; capture one real flow if the stakes justify it; save everything with timestamps before you touch a thing. Then decide on the damage, say it aloud, and open the ticket if the fault is not yours.
Every day. At the start of the day, look at the loss, error and utilisation graphs for the night. A fault that began at 03:00 and was not noticed is the commonest fault of all. Reactive windows in the week plan are where these checks live.
Weekly. Review the faults and tickets of the week: which repeated, which had the same cause, which could have been an alert. Update the baseline for any path that changed.
Monthly. Record the baseline: speed to a fixed test host, ping to the first hop, the interface error counters. Without it you cannot say what normal is, and a fault report loses its comparison. Metrics 101 explains the counters and gauges you are reading. Test the failover on a quiet evening, as a change with a rollback, so you know it works before you need it.
After a fault over an hour. A short blameless review with whoever was involved: what the evidence showed, what the first wrong guess was, what would have found it sooner. The fault report is its input.
Quarterly. Read the quarter’s fault reports side by side. Repeated faults on one circuit are the evidence for a conversation with the provider about credits or a second provider. Repeated faults of one kind are the case for an alert, a runbook (see runbooks and on-call) or a project. Where faults are slow to find, look at the diagrams: the chapter on diagrams and documentation, which is still to come, covers the picture you want at 3 am.
Where faults go wrong
Changing before capturing. A restart, a cable swap and a setting change in the first ten minutes clear the evidence and leave you unable to say what helped.
Changing two things at once. The fault goes away and you do not know why, so you cannot say whether it will come back.
Believing the average. A graph averaged over five minutes shows 0.3% loss and hides a minute at 15%.
Blaming the provider without proof, or the network without proof. Both lose the argument. The comparison that located the fault is what wins it.
Failing over and forgetting. The office runs on the 50 Mbit/s backup for a week because nobody owned the fail back.
There is no network engineer. A founding engineer or an office manager with admin rights is the person who answers, and the fault is usually in a cheap router or a single provider link. Two things pay off early. Keep one page of what normal looks like: a speed to a fixed place and a ping to the provider’s first router, measured on a good day. And learn the one test that splits the problem in half: try the same thing from a phone on mobile data. If it works there, the fault is on your side of the link or the provider’s; if not, it is the service.
One to three people carry the network, often with a second link that nobody has tested. This is where faults are expensive, because a delivery or a launch depends on the office or the cloud link, and where the habits are still unwritten. Agree who captures evidence, who calls the provider and who decides to fail over. Record the baseline monthly, set an alert on loss to the first hop and on outbound use of the link, and keep the provider’s support hours and escalation contacts where the on-call can find them.
The fault crosses team boundaries. At Ojaline, with nine city hubs (two of them core), and a network team of four on a one-in-four rota that owns the cloud networks and the hub links, a slow hub link is a fault in someone else’s estate. Your skill is the evidence you hand over, in a format that the cloud team and the provider both accept, so that nobody argues about whose problem it is. Expect incident processes, a major incident manager and shared dashboards; the report still has the same four parts.
Template
# Fault report: <short title>
Date · Written by · Fault window (start to end, with time zone)
## Symptom
Who was affected, doing what, how bad (figures), since when.
Normal figure for comparison: <value, and where it came from>.
Impact and deadline: <what depended on it>.
## Evidence
| Time | Test (command or counter) | Result | What it ruled in or out |
|---|---|---|---|
## Cause
What failed, and where on the path.
Supported by: <evidence rows>.
Confidence: proved / likely / unknown.
## What I changed, in order
| Time | Change | Reason | Reversed? |
|---|---|---|---|
## Fix
Restored: <how service came back, and when>
Repaired: <what removed the cause, and who did it>
Seen sooner next time: <alert, baseline or runbook change, with an owner and a date>
## Open points
<What is unproved, who will close it, by when> WORKED EXAMPLE
Kilnworth, a Tuesday in the autumn. Ananth, a senior editor in edit suite 1, tells Amadi at 11:50 that uploads to client portals have crawled since about 09:40. Amadi works in the order of this chapter: he states the symptom in numbers, compares a working case with a failing one, reads his own side’s counters, pings along the path, saves it all with times, and only then touches a route. His report follows.
# Fault report: slow uploads from both edit suites
Tuesday · Amadi · 09:40 to 19:30 (WAT), primary link only
## Symptom
Uploads from both edit suites to client portals ran at 4 to 6 Mbit/s.
Normal: about 195 Mbit/s (last Thursday, a 22 GB file in 15 minutes).
Downloads were normal at 185 Mbit/s.
Impact: a 38 GB master was due on a client portal by 17:00.
At 5 Mbit/s it would take about 17 hours.
## Evidence
| Time | Test | Result | Ruled in or out |
|---|---|---|---|
| 12:05 | Upload from a laptop on Wi-Fi to the same portal | 5 Mbit/s | Not the suites or their cables |
| 12:10 | Upload to a second client's portal | 6 Mbit/s | Not one destination |
| 12:20 | Router outside port counters | 0 CRC, 0 discards, 5 Mbit/s of 200 used | Our side clean and not full |
| 12:30 | Ping 200 packets: router to inside switch | 0 lost | Clean up to the router |
| 12:30 | Ping 200: router to provider's first router | 4 lost (2%), median 18 ms | Loss begins at the first hop |
| 12:35 | Ping 200: router to a host at the destination | 4 lost (2%), median 20 ms | Same loss carries on to the end |
| 12:45 | 60 s capture of one upload at the outside port | About 2% of segments retransmitted | Real traffic shows the loss |
| 13:00 | Ping 200 and one upload over the backup link | 0 lost; 44 Mbit/s | Backup path is clean |
Expected for one flow at 2% loss and 20 ms: about 5 Mbit/s (Mathis rule of thumb). Observed 4 to 6.
## Cause
About 2% packet loss on the provider's side of the handover, from its first router.
Supported by the 12:20 to 12:45 rows. Confidence: location proved; mechanism unknown until the provider reports.
## What I changed, in order
| Time | Change | Reason | Reversed? |
|---|---|---|---|
| 13:30 | Preferred the backup route for all traffic | Deadline; the evidence was saved | Yes, Wednesday 07:45 |
Nothing else was touched: no restart, no cable swap.
## Fix
Restored: backup in use from 13:30; the master uploaded at about 44 Mbit/s and finished at 15:35.
Repaired: the provider found a failing optic on its aggregation switch and replaced it at 19:30.
Seen sooner: an alert on loss above 1% to the first hop for 10 minutes, owner Amadi, by Friday.
## Open points
Failed back on Wednesday at 07:45, after clean pings overnight. Ask the provider for its root-cause note and for a credit.Check the sums: 38 GB is 304,000 Mbit, which takes about 6,900 seconds at 44 Mbit/s, or 1 hour 55 minutes. Started at 13:40, it finishes at 15:35, which is 85 minutes before the deadline. The report also keeps the evidence that ruled things out (the laptop, the second portal, the clean counters), so the provider cannot answer that the fault is on the office side.
Now you
Three weeks later you are Amadi at Kilnworth, and Ananth reports a new fault. Video review calls with a client stutter and the shared project drive crawls on Thursday and Friday afternoons, from about 15:00 to 17:40. Mornings and evenings are fine, and it was fine on Monday to Wednesday. The link is 200 Mbit/s. Your evidence so far: outbound use of the outside port reads 196 to 199 Mbit/s from 15:02 to 17:40 on both days, against about 20 Mbit/s earlier in the day; inbound stays near 20 Mbit/s. Pings from the router to the provider’s first router run at a median of 4 ms until 15:00 and 210 ms after it, with no loss in either period. Port counters show 0 CRC errors. Output discards stay at 0. The cloud backup of the edit suites used to start at 02:00 and finish by 02:45; its log shows that on Thursday and Friday it started at 15:02. The vendor’s update went on Wednesday night. Write the fault report, including what you would change and what you cannot yet say.
Self-check
It is Tuesday 13:30 at Kilnworth. Uploads from both edit suites crawl at about 5 Mbit/s on the 200 Mbit/s primary link, and a 38 GB master is due on a client portal at 17:00. Amadi has spent 90 minutes on evidence: the router's own counters are clean, pings lose 2% from the first router beyond the handover onwards, a laptop on Wi-Fi is equally slow, and the 50 Mbit/s backup link from a second provider tests clean and carried a test upload at 44 Mbit/s. Failing over takes about five minutes and slows the whole 60-person office to the backup's speed. The provider's support queue is about 40 minutes. What does Amadi do?
- DOC Effective Troubleshooting Google, in Site Reliability Engineering, 2016
Google's structured approach to working out what is wrong. Read it to compare its steps with the order in this chapter and to see the same loop described for services rather than links.
- POST The USE Method Brendan Gregg
A short method for checking every resource for utilisation, saturation and errors. It is the checklist behind reading interface counters, and it says to look at errors early because they are easy to interpret.
- PAPER The Macroscopic Behavior of the TCP Congestion Avoidance Algorithm Matthew Mathis, Jeffrey Semke, Jamshid Mahdavi and Teunis Ott, 1997
The source of the square-root rule used in this chapter. Read it to see which assumptions the rule makes and why light to moderate loss is its territory. Read: The abstract and the derivation of the relation between loss and throughput.
- PAPER Deprecating the TCP macroscopic model Matt Mathis and Jamshid Mahdavi, 2019
Two of the rule's authors on why it is nearing obsolescence as newer senders such as BBR spread. Read it before you quote the 5 Mbit/s figure to anyone, and keep it as an order of magnitude for a classic sender. Read: The whole short note.
- TALK A Practical Guide to (Correctly) Troubleshooting with Traceroute Richard A. Steenbergen
A talk at NANOG, the North American network operators' group, on reading traceroute correctly. Read it for how to tell real loss from the artefacts of how routers answer probes.
- BOOK The Practice of System and Network Administration, 3rd edition, Volume 1 Thomas A. Limoncelli, Christina J. Hogan and Strata R. Chalup, 2016
The standard general text for the job. Read chapter 29 for a systematic way to debug and chapter 28 for taking a fault report from a customer, then compare them with how your own faults are handled. Read: Chapter 29, Debugging; chapter 28, Handling an Incident Report; section 24.1, network monitoring.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.