All posts

Network Fundamentals: Monitoring and Troubleshooting

The diagnostic toolbox, SNMP and syslog, latency, jitter and loss, and the order to check things in when "the internet is down".

Marijan Kopčić••2 min read
Network Fundamentals: Monitoring and Troubleshooting

Day-to-day network operations is less about knowing every protocol and more about checking things in the right order and writing down what you found.

The toolbox

Tool What it tells you
ping Is the host reachable, and is there packet loss
traceroute / tracert Which path packets take and where they stop
mtr Both of the above, continuously
nslookup / dig What DNS answers for a name
ipconfig / ip a Which addresses an interface has
ip r The routing table
arp -a IP-to-MAC mappings the host knows
tcpdump / Wireshark The actual traffic on the wire

SNMP and syslog

SNMP is for monitoring devices. The monitoring system polls the device on port 161, and the device itself sends a trap to port 162 when something happens.

Syslog sends a device's logs to a central server, so you can see what happened even after the device reboots.

Latency, jitter and packet loss

  • Latency — the delay, in milliseconds.
  • Jitter — how much that delay varies.
  • Packet loss — the share of packets that never arrive.

All three break voice and video long before they break web browsing.

"There's no internet" — in what order to check

Bottom up:

  1. Is the device at the site powered on and does it have link? Look at alarms in monitoring and at the interface state.
  2. Ping their router.
  3. Run a traceroute further out to see where it stops.
  4. Check DNS: does ping by address work while ping by name doesn't?
  5. Is everyone affected or a single user?

Write everything into the ticket and escalate if the fault is on the link or with the provider.

Ping by IP works, by name it doesn't

That is DNS. Check which DNS server the client uses and whether it answers — nslookup against that server.

The interface is up, but full of CRC errors

Usual suspects: a bad cable or connector, dirty fibre, a faulty SFP, or a duplex mismatch.

What goes into a ticket

  • When it started and who reported it
  • What is affected
  • What you checked, and the result of each check
  • What you did
  • Who you escalated to
  • The current state

A good ticket lets the next person continue without calling you.

Keep reading