Ping tests Layer connectivity using ICMP echo requests. It tells you if a host is reachable and measures round-trip time.
Basic usage:
ping 192.168.1.1
ping -t 192.168.1.1 # continuous (Windows)
ping -c 5 192.168.1.1 # send 5 pings (Linux)
What ping tells you:
- Reply received: Host is reachable
- Request timed out: No response
- Destination unreachable: No route to host
Interpreting results:
- Low latency: healthy connection
- High latency: congestion or long path
- Packet loss: network problem
Some hosts block ICMP. A failed ping does not always mean the host is down.