beginner

Network Monitoring and Troubleshooting Tools

Find faults quickly with the right tool: ping, traceroute, nslookup/dig, netstat/ss, ipconfig/ifconfig, curl and packet capture; plus monitoring with SNMP, syslog, NetFlow and dashboards, baselines and alerting. Then parse ping output, classify path health and locate the first failing hop from a traceroute.

55 min

1. Two jobs: knowing and finding

Networks need monitoring (continuously knowing the state, so you see problems before users do) and troubleshooting (finding and fixing a specific fault). Both rely on a small toolkit used methodically. The method from the troubleshooting lesson (define the problem, gather information, hypothesise, test one change at a time, verify, document) is what makes the tools useful.

2. Command-line tools on the client

Tool Windows Linux / macOS Use
IP configuration ipconfig /all ip addr, ifconfig Address, mask, gateway, DNS servers, DHCP lease
Connectivity ping ping Is the target reachable? Latency and loss
Path tracert traceroute, mtr Which hops, where does it stop or slow?
Name resolution nslookup nslookup, dig, host What does DNS return? Which server answered?
Connections and ports netstat -ano ss -tulpn, netstat Open and listening ports, and the owning process
ARP table arp -a ip neigh, arp -a IP-to-MAC mappings on the local segment
Routing table route print ip route, netstat -rn Default gateway and routes
HTTP test curl, Invoke-WebRequest curl Is the web service answering? Headers, status, TLS
Port test Test-NetConnection -Port nc -vz host port Is TCP port N open?
Packet capture Wireshark Wireshark, tcpdump See the actual packets

Ping

ping sends ICMP echo requests and reports round-trip time (RTT) and loss. Read the summary: packets sent, received, loss percentage and min/avg/max RTT.

4 packets transmitted, 3 received, 25% packet loss, time 3004ms
rtt min/avg/max/mdev = 9.8/12.5/20.9/0.8 ms

Interpretation: 0 percent loss and low, steady RTT is healthy; some loss suggests congestion, bad cabling, Wi-Fi interference or rate limiting; 100 percent loss means unreachable or ICMP blocked (a firewall may drop ping while the service works). Ping in this order: 127.0.0.1 (the local stack), your own IP, default gateway, a remote IP (8.8.8.8 style), then a name (tests DNS).

Traceroute

traceroute lists each router on the path by sending packets with increasing TTL; every router that decrements the TTL to zero replies with an ICMP “time exceeded”. Lines show hop number, address and times.

 1  192.168.1.1  1.2 ms
 2  10.0.0.1     8.4 ms
 3  * * *
 4  * * *

Hops that show only * did not answer. That may be a problem or just a router that does not send TTL-exceeded replies; the key question is whether traffic reaches the destination. A sudden large jump in latency at one hop that continues afterwards points to that link; a jump at only one hop that disappears later is usually that router deprioritising its replies. mtr combines ping and traceroute continuously.

DNS and ports

nslookup example.com or dig example.com shows the server queried, the records returned and their TTL. Try a different server (nslookup example.com 1.1.1.1) to separate local resolver problems from real zone problems. ss -tulpn or netstat -ano shows what is listening and which process owns the port, vital when a service “is running” but not reachable.

Packet capture

Wireshark (graphical) and tcpdump (command line) show real traffic. Use capture filters (host 10.1.1.5 and port 53) to limit what you record and display filters (dns, tcp.flags.syn==1 && tcp.flags.ack==0, icmp) to read it. Capture is the arbiter when other evidence conflicts: you can see whether the SYN left, whether a reply came back, and what error it carried. Capture only what you are authorised to see, protect the files (they can contain credentials and personal data), and capture at the right point (client side, server side, or a switch mirror port).

3. On the network devices

  • show interfaces / show interfaces status: link state, speed/duplex, errors (CRC, input errors, drops, collisions).
  • show ip route, show ip protocols, show ip bgp summary: routing state.
  • show mac address-table, show arp: where devices are.
  • show vlan brief, show interfaces trunk, show spanning-tree: layer 2.
  • show logs / show logging: recent events with timestamps.
  • show processes cpu, show memory: device health.

Interface errors that keep rising point to physical faults (bad cable, dirty fibre, duplex mismatch). Drops on output point to congestion.

4. Monitoring: protocols and systems

  • SNMP (Simple Network Management Protocol): a manager polls agents on devices for values (interface counters, CPU, temperature) defined in MIBs and identified by OIDs; devices can also send traps on events. Use SNMPv3 (authentication and encryption); v1/v2c send a plain-text community string.
  • Syslog: devices send log messages (with severity 0 to 7) to a central server. Essential for finding what happened and when. Ensure NTP keeps every clock in sync, or logs cannot be correlated.
  • NetFlow / IPFIX / sFlow: records of conversations (who talked to whom, how much). Shows top talkers, unusual traffic and capacity use.
  • Streaming telemetry (gNMI): modern, high-frequency, structured data pushed from devices.
  • Synthetic tests: scripted pings and HTTP checks from several places to measure the user experience.
  • Platforms: Nagios/Icinga, Zabbix, PRTG, LibreNMS, Prometheus + Grafana, SolarWinds, cloud tools. Dashboards show utilisation, errors, latency and availability.

Baselines, thresholds and alerts

  1. Baseline: record normal utilisation, latency and error levels over days and weeks.
  2. Thresholds: alert on deviations that matter (link above 80 percent for 10 minutes, rising CRC errors, a BGP session down).
  3. Reduce noise: use dependencies (do not alert for every device behind a failed switch), time windows and severity, so important alerts get attention.
  4. Capacity planning: trend utilisation to predict when links need upgrading.
  5. Document and review alerts after incidents.

5. A fast troubleshooting flow

  1. Is it one user or many? (Scope decides where to look.)
  2. Link and IP: is the cable or Wi-Fi connected? Does the host have a valid address, mask, gateway and DNS (ipconfig /all)? An address starting 169.254 means DHCP failed.
  3. Gateway: ping the default gateway.
  4. Beyond the gateway: ping a public IP. Works means routing to the internet is fine.
  5. DNS: ping or nslookup a name. Fails when the IP worked means DNS.
  6. Path: traceroute to see where it stops.
  7. Service: test the port or URL (curl -I, nc -vz).
  8. Device: check interface errors, logs and routing on the devices along the path.
  9. Fix one thing, retest, document.

6. Hands-on: read ping and traceroute output

Work with the text exactly as tools print it.

  • parse_ping(text) returns a dictionary with sent, received, loss_pct (rounded whole percent, computed from sent and received) and avg_ms (the middle value of the min/avg/max line, as a float, or None if absent).
  • diagnose(ping) returns "unreachable" for 100 percent loss, "lossy" for any other loss, "slow" if the average exceeds 150 ms, otherwise "healthy".
  • first_failing_hop(trace_lines) returns the number of the first hop whose entries are all *, or None.
Parse ping output and find the failing hop — Python 3
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT
Users in one office can reach the internet by IP address but not by website name. Which tools do you use and what do you expect to find?

Run ipconfig /all (or the equivalent) to see which DNS servers the clients received, then nslookup a name against that server and against a public resolver. Expect the local DNS server to be unreachable or failing (for example wrong DHCP option, server down, or firewall blocking port 53) while the public resolver works. Fix the DNS server or the DHCP-provided setting, flush client caches, and confirm names resolve.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Describe the order in which you would ping when a user has no connectivity, and what each result tells you.
  • Explain how traceroute works and how to read asterisks.
  • List the monitoring data sources you would set up for a small company network and why.

7. Key takeaways

  • Troubleshoot methodically: scope, link and IP, gateway, internet by IP, DNS, path, service, then devices.
  • Ping shows reachability, loss and latency; traceroute shows the path; nslookup/dig test DNS; ss/netstat show ports; Wireshark/tcpdump settle disputes.
  • Monitor with SNMP (v3), syslog, NetFlow and telemetry, keep clocks in sync with NTP.
  • Record baselines, set meaningful thresholds and reduce alert noise.
  • Test the actual service: blocked ICMP does not mean a host is down.

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Network Monitoring and Troubleshooting Tools. What would you like to know?
📝

Knowledge Check

1 of 4

A traceroute shows replies for hops 1 and 2, then only asterisks for the remaining hops. What does that suggest?

Report a problem

About: /lessons/network-monitoring-and-troubleshooting-tools