Evidence-Based Troubleshooting: Separating Explanations

Every ping comes back, and the website is still dead. No contradiction: a ping tests reachability. It can't show whether DNS returns the right address, a connection opens, the certificate validates or the app answers.

Established

Guess first

A host fails, and a restart brings service back for a while. What does that recovery support?

Not set

· Committing first, even to a wrong guess, makes the answer stick.

At a glance · about 1 min

Four Troubleshooting Drills

Ping works

  • Ping shows only reachability
  • Separate name, connection, certificate, application

Tunnel up

  • Up means negotiated, not carrying traffic
  • Find the earliest unresolved boundary

All green

  • Green covers only hosts that reported
  • Expected inventory is the denominator

Event first

  • Order in time is not cause
  • Compare three hypotheses with evidence
Each drill shows an observation that supports less than it first appears to.

In brief

Each observation supports only what it tested: three green hosts tell you nothing about two silent ones. Pick the next test so its possible results send you different ways; otherwise you are just feeling busy. Four drills train the habit on signs that overpromise: ping works, tunnel up, all green, event first.

Key ideas

  • Each observation supports only what it tested: a successful probe shows that this probe, from this place, at this moment, got this answer, not that everything nearby works.
  • Choose the next test so its possible outcomes lead to different next steps, and write beforehand the result that would make you abandon the hypothesis.
  • Temporal order is not cause, and silence is not health: judge coverage against the expected inventory, so stale, missing or unknown never silently becomes healthy.
Check yourself 5 cards answer from memory, then open each

Retrieval, not rereading, makes learning last (see the weekly loop). Grade yourself honestly and the study dashboard brings each card back on a spaced schedule that supports retention.

  1. recall

    In TLS, which two certificate checks does the page say people blur, and can a certificate pass one and fail the other?

    Show answer

    Whether the certificate chains to an authority the client trusts, and whether the certificate's name matches the name the client asked for. Yes: a certificate can pass the first check and fail the second.

  2. recall

    What does a successful ping (ICMP echo) support, and what does it say nothing about?

    Show answer

    It supports reachability at the network layer between two points. It says nothing about whether DNS returns the right address, a TCP connection can open on the right port, a TLS certificate validates, or the application answers correctly.

  3. explain

    Why does 'all visible hosts are healthy' not support a claim that the whole system is healthy?

    Show answer

    It describes only the hosts that reported and says nothing about the ones that did not. The expected inventory is the denominator; without it, silence looks like health.

  4. apply

    A collection process keeps terminating, and later a host fails. A colleague blames the collector, adding that a restart restored service for a while. What other explanations fit, and what does the restart actually show?

    Show answer

    Temporal order is not cause: a shared dependency or resource pressure may have caused both, or the events may be unrelated. Time-aligned logs, collector configuration, resource history and host crash evidence would separate them. The restart shows only that the failure involves state a restart clears; it does not identify the root cause.

  5. connect

    This page links to 'Peirce on the Fixation of Belief'. How does Peirce's argument explain why a confident 'it is always DNS' is dangerous, and what is the cure?

    Show answer

    Peirce argues that beliefs settled by habit, authority or taste feel as certain as beliefs settled by investigation. 'It is always DNS' is the method of tenacity, belief held by habit; the cure is testing against something outside your own opinion.

Four drills that teach you to ask what an observation actually establishes and to choose the next test that splits competing causes.

After this page You can say what a good ping or green dashboard establishes, then pick a test that splits competing causes.

#troubleshooting#evidence#diagnosis#networks

Read the full pageHide the full page · 6 min

Troubleshooting is not a list of commands to run. It is the habit of asking, for every observation, "what does this actually establish?" and then choosing the next test so that its possible outcomes lead to different next steps. The four drills below are written around networks, but the reasoning applies to any system with layers.

The principle

Each observation supports only what it tested. A successful probe shows that this probe, from this place, at this moment, got this answer. It does not show that everything near it works.

A good next test is one whose outcomes change what you do next. If every possible result of a test would lead you to the same action, the test is a way of feeling busy. Chapter 12 of the Google SRE book describes the same loop: form hypotheses, test them, and treat correlation with suspicion.

Each drill has an attempt step. Try it before reading the self-check.

Drill A: the ping works, but the website does not

Attempt. State exactly what a successful ping establishes. Then list observations that would separate four explanations: name lookup fails, the connection fails, certificate validation fails, the application fails.

Self-check. An ICMP echo (RFC 792) supports reachability at the network layer between two points. It says nothing about whether DNS returns the right address, whether a TCP connection can be opened on the right port, whether a TLS certificate validates, or whether the application answers correctly. Define the user's action precisely ("open this address in a browser"), then compare a failing request with one from a vantage point that works. Find the first meaningful divergence: did the name resolve to the same address, did the connection open, did the handshake complete, what did the server return?

Trust versus name matching. These are two different checks that people blur. In TLS, a client asks (1) is the certificate chained to an authority I trust, and (2) does the certificate's name match the name I asked for? A certificate can pass the first check and fail the second.

Changed case. TCP connects, but the client reports a name mismatch. Would changing a routing rule fix it? No: the connection already succeeded. The useful observations are the hostname the client requested and the names in the certificate the server presented.

Drill B: the tunnel is up, but the application is down

Attempt. Lay out the layers: peer negotiation, which traffic is selected for protection, routing, permission, the return path, and finally the application. Choose the earliest unresolved boundary.

Self-check. "The tunnel is established" is a statement about negotiation. It does not show that this request, with these addresses, protocol and port, entered the tunnel, left the far end, was permitted, and had a reply that came back the same way. Gather the actual addresses, the route chosen for them, any selectors that define what the tunnel carries, and evidence of the session at both ends. What address translation happens is a property of the particular design and software release, not a universal rule.

Changed case. Small probes succeed, but a large transfer stalls. Before blaming packet size, compare loss, packet-size handling, application behaviour and the limits of your measurement. A plausible cause is not yet a demonstrated one.

Drill C: everything is green

Attempt. An inventory lists five hosts. The console shows three healthy hosts. What denominator supports a claim about coverage, and what is the status of the other two?

Self-check. "All visible hosts are healthy" describes the hosts that reported. It says nothing about the two that did not. The expected inventory is the denominator; without it, silence looks like health. Compare the expected list, the age of each observation, whether collection succeeded, and the policy that applies. Stale, missing or unknown must never silently become healthy. The next page, Stale Information and Dependable Reports, builds this into a design.

Changed case. The collector stops reporting, but the last point on the chart remains green. Design a separate freshness condition, and state what action it triggers.

Drill D: an event preceded a failure

Attempt. A collection process repeatedly terminates, and later a host fails. Write three hypotheses and the evidence needed to separate them.

Self-check. Temporal order is not cause. This is the old post hoc fallacy. Three candidates: the collector defect caused the failure; a shared dependency or resource pressure caused both; the two events are unrelated. Evidence that discriminates: time-aligned logs, collector configuration and restart policy, resource history, and any crash evidence from the host. Then state what remains unknown.

Changed case. A restart restores service for a while. What does that support? It supports that the failure involves state that a restart clears. It does not identify the root cause, and it can destroy the evidence you needed.

Falsifiers and moving on

Before you test a hypothesis, write what result would make you abandon it. If the identity mapping is correct and the effective rule is correct, stop changing identity settings and move to the next boundary (forwarding, the application). A diagnosis that nothing could refute is not a diagnosis. This is the discipline described in Hypotheses, Predictions and Tests: commit to a prediction before you look.

Notice also the fixation of belief. Peirce's 1877 essay "The Fixation of Belief" (see the guided reading) argues that beliefs settled by habit, authority or taste feel as certain as beliefs settled by investigation. A confident "it is always DNS" is the method of tenacity in a work shirt. Established as a description of the failure; the cure is the method of testing against something outside your own opinion. Separating what you saw from what you concluded is the first move in Observe, Define, Represent.

Roots in older reasoning

  • The elenchus. Socrates' cross-examination, as in Plato's Apology and Meno, tests a claim by drawing out its consequences until one conflicts with something the speaker already accepts. That is a diagnosis: take the proposed cause, derive what else must be true, and look. See the elenchus.
  • Euclid-style demonstration. Euclid lists his assumptions first, then derives each step from them (see Euclid's postulates). A good incident write-up does the same: stated assumptions, then each conclusion tied to evidence. Proof and Precise Reasoning: From Arguments to Theorems covers the grammar of valid inference.

Fact versus analogy. Using a hypothesis-testing loop in operations is standard practice (SRE book ch. 12). Calling it "elenchus" or "demonstration" is an analogy that is useful for teaching. Provisional

Numbers matter too. If you say a link is "mostly idle", say what interval and what denominator you used; see Quantitative Reasoning. When you have a result, write it so another person can follow it: Deliberate Practice: Choose Targets You Can Observe gives the practice loop, and the writing method is on Technical Writing as Reasoning.

Try this

  1. Pick a recent "it works for me" problem. Write the three observations you had, then list two causes that fit all three and one new observation that separates them.
  2. Draw the layers of Drill A for a site you use daily. For each layer, write one command or tool that tests it and what a failure there would look like.
  3. For a dashboard you depend on, write down the expected inventory. Does anything on the dashboard tell you when an item is missing?

Further reading

  • Beyer et al., Site Reliability Engineering (O'Reilly, 2016), ch. 12, "Effective Troubleshooting" (free at sre.google/sre-book).
  • RFC 8446 (TLS 1.3) for the handshake, RFC 6125 (2011, since obsoleted by RFC 9525) on verifying service identity against certificate names, and RFC 9110 (HTTP semantics), section 4.3.4 on HTTPS certificate verification.
  • Peirce, "The Fixation of Belief" (1877).
  • Pearl and Mackenzie, The Book of Why (2018), for a readable account of why correlation and order do not settle cause.

Sources 8
  • Postel (ed.), RFC 792, Internet Control Message Protocol (1981)
  • Rescorla, RFC 8446, The Transport Layer Security (TLS) Protocol Version 1.3 (2018)
  • Saint-Andre and Hodges, RFC 6125, Representation and Verification of Domain-Based Application Service Identity within Internet Public Key Infrastructure Using X.509 (PKIX) Certificates in the Context of Transport Layer Security (TLS) (2011; since obsoleted by RFC 9525, 2023)
  • Mockapetris, RFC 1034, Domain Names: Concepts and Facilities (1987)
  • Fielding, Nottingham and Reschke (eds.), RFC 9110, HTTP Semantics (2022)
  • Peirce, 'The Fixation of Belief', Popular Science Monthly 12 (November 1877), pp. 1-15
  • Plato, Apology 21b-23b and Meno 80a-86c (the elenchus); Euclid, Elements, Book I
  • Beyer, Jones, Petoff and Murphy (eds.), Site Reliability Engineering (O'Reilly, 2016), ch. 12 'Effective Troubleshooting'