Network Debugging Toolkit

Layered debugging methodology, tcpdump, Wireshark, mtr, netstat, and cloud-specific tools.

Overview

Effective network debugging follows a structured layered approach: start at the lowest layer that could explain the symptom and work upward. Form a hypothesis about which layer is failing, then choose the tool that confirms or refutes it.

Debugging ladder by layer

  • Layer 1-2 (Physical/Link): ip -s link show — check error counters, drops, collisions. ethtool eth0 — link speed, duplex, PHY errors.
  • Layer 3 (IP): ping (ICMP reachability), ip route get (routing decision), traceroute / mtr (path and per-hop latency).
  • Layer 4 (TCP): nc -zv host port (can we connect?), ss -tulpn (what is listening?), tcpdump (what is on the wire?).
  • Layer 7 (Application): curl -v (HTTP), openssl s_client (TLS), dig (DNS).

Key concepts

  • mtr
  • VPC Flow Logs
  • ss -tulpn
  • tcpdump filtering
  • MTU issues

Interview questions

  • A microservice in Kubernetes cannot reach another microservice in a different namespace. Walk through your diagnosis.

Sign up free to read the full topic

More Networking topics

Start free on Cariara · Coding problems · System design studio