Finding network problems: ping, traceroute, ss, tcpdump
Sign in to read this lesson
The site does not open — is it the server, the firewall or the network? In this lesson we learn a bottom-up check sequence along the OSI layers, ping and traceroute, checking with ss whether a service is listening on its port, checking ports remotely with nc and curl, and finally seeing the packets themselves with tcpdump as the final proof.
What you will learn
- Check bottom-up: interface → ping the gateway → remote IP → DNS → port → application.
pingshows connectivity and latency,tracepath/mtrwhere the path breaks.ss -tlnp— which TCP ports the server listens on and which process;127.0.0.1:3306means local only.nc -zv host portandcurl -vcheck whether a port is open remotely.sudo tcpdump -ni ens18 port 80is the final proof of whether packets arrive.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.