| Tool |
Layer |
Purpose |
| ping |
Internet |
Sends ICMP echo requests to test reachability and measure round-trip time.
ping -c 4 example.com sends four probes and reports min/avg/max RTT. |
| traceroute / tracert |
Internet |
Maps the path a packet takes by sending probes with incrementing TTL values.
Each router that drops TTL to zero returns an ICMP Time Exceeded message, revealing its address and latency. |
| dig / nslookup |
Application |
Queries DNS resolvers directly.
dig example.com A returns the A-record chain;
dig +trace example.com walks the full resolution path from root to authoritative server. |
| curl |
Application |
Transfers data over URLs from the command line. Tests REST APIs, downloads files,
and inspects HTTP headers. curl -I https://example.com shows the response headers only. |
| ssh |
Application |
Opens an encrypted remote shell over TCP port 22. Authenticates with password or
public key; all traffic is protected by TLS-grade encryption. Also tunnels arbitrary TCP ports. |
| ss / netstat |
Transport |
Lists open TCP and UDP sockets and listening ports.
ss -tlnp shows all listening TCP sockets with the owning process. Useful for
confirming a service is bound to the expected port. |
| nmap |
Transport |
Scans a host or subnet to discover open ports and running services.
nmap -sV <host> attempts service version detection. Also used for security
auditing to identify unintended exposed services. |
| iperf3 |
Transport |
Measures TCP or UDP throughput between two hosts. Start a server
(iperf3 -s) and run the client (iperf3 -c <host>) to benchmark
available bandwidth. Essential for validating Wi-Fi link quality. |
| ip / ifconfig |
Internet / Link |
Displays and configures network interfaces, IP addresses, and routing tables.
ip addr show lists all interfaces; ip route show prints the kernel
routing table. |
| tcpdump / Wireshark |
All layers |
Captures live packets and decodes protocols at every layer.
tcpdump -i eth0 port 443 captures TLS traffic; Wireshark provides a GUI
with full protocol dissectors. Indispensable for diagnosing unexpected behavior. |