Skip to content
Tech Interview Prep
Technical interview guide

Network Troubleshooting

Systematically isolating where in the stack a connectivity problem actually lives, instead of guessing.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: Current Wireshark, tcpdump, Linux iproute2/ss/tc/ethtool, IETF host/TCP/ICMP/PMTUD/DNS/TLS references reviewed 2026-09-04.

Overview

Curated: · Written: · Reviewed:

Network Troubleshooting

In one line

Find the hop, layer or flow where a working transaction diverges from a failing one, changing one variable at a time against a healthy control. Reach for it when a connectivity or performance fault has no obvious owner.

Key definitions

  • Blast radius: the scope of impact (one client, one subnet, one site, one application, everything). It picks the first check.
  • Control: a healthy path or host that differs from the failing one in exactly one dimension.
  • Observer: the point where a capture was taken. A retransmission proves loss only between that observer and its peer.
  • PMTUD: path MTU discovery. It needs ICMP Type 3 Code 4 (IPv4) or ICMPv6 Type 2 (Packet Too Big) to reach the sender, so filtering that ICMP stalls large packets while small ones pass.
  • Data plane vs control plane: a route in the table versus a route the kernel or hardware actually forwards on.
  • Window-limited throughput: a single TCP flow cannot exceed receive window divided by RTT.

Formulas and complexity

IPv4 TCP MSS=MTU−20−20=1460 at MTU 1500\text{IPv4 TCP MSS} = \text{MTU} - 20 - 20 = 1460 \text{ at MTU } 1500 IPv4 ping payload=MTU−20−8=1472 at MTU 1500\text{IPv4 ping payload} = \text{MTU} - 20 - 8 = 1472 \text{ at MTU } 1500 Max throughput≤windowRTT=65535×80.080≈6.55 Mbit/s at 80 ms RTT, no window scaling\text{Max throughput} \le \frac{\text{window}}{\text{RTT}} = \frac{65535 \times 8}{0.080} \approx 6.55 \text{ Mbit/s at 80 ms RTT, no window scaling} 1+2+4+8+16+32+64=127 s before connect fails1+2+4+8+16+32+64 = 127 \text{ s before connect fails}

The 127 s figure assumes the Linux default tcp_syn_retries = 6.

How it works

Start from the blast radius and one failing transaction: endpoints, protocol, port, time, expected and observed result. Snapshot neighbor, socket, conntrack and route state before restarting or flushing anything. Check the local view (address, route, neighbor), then test the gateway and go hop by hop against a control that works. The first divergence picks the half of the path to descend into. Capture at both ends of the suspect segment and compare.

A neighbor entry in FAILED or INCOMPLETE means no ARP reply came back. STALE is a cached entry not yet re-verified and usually recovers once traffic is sent. With policy routing, ip rule is evaluated in priority order and the first rule whose table holds a matching route wins. ip route get <dst> from <src> iif <ingress> shows the decision the kernel makes.

Scope blast radius and one failing transaction Snapshot state, check local address, route, neighbor Test gateway, then divide path against control Which half diverges? Descend into failing half Capture both observers, change one variable

When to use and when not to

QuestionGood evidenceMisleading evidence
Is the service reachable?TCP connect to the listener and portPing succeeds (ICMP only)
Is the router forwarding?Test transit from a host behind itPing to the router's own address
Is the name at fault?dig or resolvectl answer, then connect to the returned IP with the name preservedConnecting to a bare IP (drops SNI and Host)
Is loss real?Matching captures at both ends, counters as deltasOne retransmission at one tap
Is the fault a middlebox?Same flow tuple through and around the boxSuccess through a different proxy
Is it throughput or latency?Window and RTT arithmetic, then a bulk transferA single ping RTT
Many hosts or flows?Per-interface counters, sampled flowsPer-host capture on every machine

Traps interviewers probe

  1. A successful ping shows the router's ICMP responder works, and says nothing about forwarding. Fix: test transit with a host on the far side of that router.
  2. Reading a retransmission as the loss location. Fix: pair the server's arrival and ACK with the client's send. A missing ACK places the loss on the return path between observers.
  3. Treating an IP connection as an application test. Fix: use curl --resolve so SNI, Host and virtual hosting stay the same.
  4. Clearing ARP, conntrack or sockets before capturing. Fix: snapshot neighbor, socket and conntrack state first.
  5. Trusting a capture without its limits. Fix: record snap length, drop counts, promiscuous mode and offload state. Host transmit captures can show oversized segments that never appear on the wire.

Interview tips

Open with scope: 'First I'd establish whether this is one client, one subnet, one site, one application or everything, and when it started. That decides the first check.'

Follow-ups to expect:

  • What does a retransmission in your capture prove?
  • Why does ping success not show the service works?
  • A bulk transfer tops out well below link speed at 80 ms RTT. Why?
  • A fault that only hits large responses: where do you look first, and why?
  • How do you separate asymmetric routing from a one-way link?
  • A connect that hangs for about 127 s versus one refused in milliseconds: what is each?
  • How do you tell queueing delay from propagation delay?

At scale: sample flows and read per-interface counters before capturing. A capture on one host of a busy fleet rarely shows the pattern.

30-second outline: Scope the blast radius. Pin the failing transaction. Test the gateway, then divide the path against a healthy control. Name the branch point and the evidence on each side. Change one variable and capture both observers. State what remains uncertain and how you roll back.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.