The Network Debugging Playbook
Debug Bottom-Up: The OSI Layer Approach
Senior engineers debug network issues by working bottom-up through the OSI model. Start at Layer 3 (IP/Network) and work your way up to Layer 7 (Application).
L3 Network: ping β Is the host reachable?
L3 Routing: traceroute β Where are packets going?
L4 Transport: ss -tuln / nc -zv β Is the port open?
L7 DNS: dig β Does the hostname resolve?
L7 Application: curl -I β Does the API respond?
Logs: grep β What does the application say?
π Diagnostics
Test connectivity layer by layer.
ping -c 4 hostβ ICMP reachabilitytraceroute hostβ Network pathdig hostnameβ DNS resolutionnc -zv host portβ Port testcurl -I urlβ HTTP health check
π Inspection
Examine local network state.
ip addr showβ Interface IPsip routeβ Routing tabless -tulnβ Listening portscat /etc/resolv.confβ DNS configgrep error logfileβ Log filtering
Quick Reference: HTTP Status Codes
200β OK (everything is fine)301/302β Redirect (checkLocationheader)403β Forbidden (permission/auth issue)404β Not Found (wrong URL or endpoint not deployed)502β Bad Gateway (upstream server is down)503β Service Unavailable (server overloaded)504β Gateway Timeout (upstream server too slow)




