Module 14: Network Troubleshooting
When networks fail, you need systematic approaches and the right tools to diagnose issues. The difference between a junior and senior engineer is not that the senior knows more tools — it is that the senior follows a systematic process instead of randomly trying things. This module covers the essential troubleshooting toolkit and, more importantly, the mental framework for diagnosing network issues efficiently. Think of network troubleshooting like debugging a plumbing problem. You do not start by ripping open walls — you start at the faucet (application layer) and work backward. Is the faucet open? Is there water pressure at the valve? Is the main line connected? Each test eliminates an entire category of problems. The OSI model gives you the same systematic, bottom-up (or top-down) approach for networks.Estimated Time: 3-4 hours
Difficulty: Intermediate
Prerequisites: All previous modules
Difficulty: Intermediate
Prerequisites: All previous modules
14.1 The Troubleshooting Mindset
The OSI Troubleshooting Approach
Start from the bottom and work up. This is the golden rule of network troubleshooting. You cannot have a working Layer 7 (HTTP) if Layer 3 (IP routing) is broken, and Layer 3 cannot work if Layer 1 (the physical cable) is unplugged. Always rule out lower layers first.ping would have revealed no network connectivity at all.
Quick Diagnostic Checklist
1
Physical Layer
- Is the cable connected?
- Is the link light on?
- Is WiFi connected?
2
Network Layer
- Do I have an IP address?
- Can I ping the gateway?
- Can I ping external IPs?
3
DNS
- Can I resolve domain names?
- Is DNS server reachable?
4
Application
- Is the port open?
- Is the service running?
- Are there firewall blocks?
14.2 Essential Network Tools
ping - Test Basic Connectivity
The most basic tool. Tests if a host is reachable via ICMP.traceroute / tracert - Trace the Path
Shows every hop between you and the destination.netstat / ss - View Network Connections
See what’s connected to your machine.
Output Example:
nslookup / dig - DNS Queries
Query DNS servers directly.curl / wget - Test HTTP(S)
Make HTTP requests from command line.telnet / nc (netcat) - Test Port Connectivity
Check if a port is open and accepting connections.tcpdump / Wireshark - Packet Capture
See exactly what’s happening on the network..pcap files from tcpdump. Wireshark is indispensable for deep debugging — you can see every packet, decode protocol headers, follow TCP streams, and filter by any field. If ping and curl tell you “something is wrong,” Wireshark tells you exactly what is wrong at the packet level.
mtr - Combined ping + traceroute
Continuous traceroute with statistics.14.3 Common Issues and Solutions
Issue: “Cannot Reach Website”
Diagnostic Steps
Diagnostic Steps
Issue: “Connection Refused”
Diagnostic Steps
Diagnostic Steps
Issue: “Connection Timeout”
Diagnostic Steps
Diagnostic Steps
Issue: “Slow Network”
Diagnostic Steps
Diagnostic Steps
Issue: “Intermittent Connectivity”
Diagnostic Steps
Diagnostic Steps
14.4 Network Diagnostic Flowchart
14.5 Reading Log Files
Common Log Locations
Useful Log Commands
14.6 Cloud-Specific Troubleshooting
AWS Troubleshooting Checklist
VPC Flow Log Analysis
14.7 Key Takeaways
Start at Layer 1
Always check physical connectivity first. Many “network issues” are unplugged cables.
Ping isn't Everything
ICMP can be blocked. Use nc/telnet to test specific ports.
Know Your Tools
ping, traceroute, dig, curl, netstat, tcpdump - master these.
Check Logs
Logs often have the answer. Know where to find them.
Next Module
Module 15: VPNs & Tunneling
Understand VPN technologies, tunneling protocols, and secure remote access.