Sub topic 5
Reading ping results
This chapter assumes you know what an IP address, a default gateway, and ICMP echo are, and that you can open a command prompt. You will learn to read each line of ping output and to tell the common failure messages apart.
Anatomy of a reply
A successful ping prints one line per echo request. Here is typical Windows output:
ping -n 4 8.8.8.8Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=14ms TTL=117
Reply from 8.8.8.8: bytes=32 time=13ms TTL=117
Reply from 8.8.8.8: bytes=32 time=15ms TTL=117
Reply from 8.8.8.8: bytes=32 time=13ms TTL=117
Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 13ms, Maximum = 15ms, Average = 13msEach field means something specific:
| Field | Meaning |
|---|---|
| `bytes=32` | Size of the echo payload. Windows defaults to 32 bytes. Linux and macOS default to 56. |
| `time=14ms` | Round-trip time (RTT). It runs from sending the request to receiving the reply. |
| `TTL=117` | The TTL value left in the reply when it reached you. |
| `Lost` | Requests sent minus replies received. |
The TTL in a reply is not the number of hops. The remote host starts the reply with an initial value, commonly 64, 128, or 255, and each router on the way back subtracts 1. If you see TTL=117, the initial value was probably 128, so about 11 routers handled the reply. This is only an estimate, because the return path can differ from the forward path.
Interpreting round-trip time
RTT depends on distance, congestion, and the speed of each link. Under 1 to 5 ms is normal on a local network. Tens of milliseconds is normal across a country. A few hundred is normal across oceans or satellite links. Look at the spread as well as the average. A steady 14 ms is healthy. Values that jump between 13 ms and 400 ms point to congestion or a poor wireless link (jitter).
Failure messages
Ping reports four distinct failures. They point to different causes.
| Message | What it tells you |
|---|---|
| `Request timed out.` | No reply arrived before the timeout. The packet or its reply was lost, or something dropped it silently. |
| `Destination host unreachable.` | A router (or your own machine) reported that it has no way to reach the target. |
| `Destination net unreachable.` | A router reported that it has no route to the target network. |
| `General failure.` or `Transmit failed` | Your own machine could not send, often because an adapter is down or has no valid configuration. |
| `Ping request could not find host ...` | Name resolution failed. No echo request was sent. |
Check the source of "unreachable". If the line starts with Reply from 192.168.1.1: Destination host unreachable, the address shown is the device that generated the error. Here that is your gateway, so the problem lies beyond it. If the address is your own, your machine has no route or no link.
A timeout is less informative. It can mean the host is down, a link is broken, or a firewall drops ICMP. A later chapter covers that last case.
Reading loss and trends
The statistics block gives the loss percentage. Some rules of thumb:
- 0% loss with steady RTT is healthy.
- Occasional loss, such as 1 in 100, often indicates a busy link or weak Wi-Fi signal.
- Heavy loss, or all requests timing out, means the path is broken or filtered.
Four packets are a small sample. For intermittent problems, run a longer test:
ping -n 100 8.8.8.8On Linux and macOS the equivalent is ping -c 100 8.8.8.8.
Exercise
You run ping 10.0.0.50 and get Reply from 192.168.1.1: Destination host unreachable. Your default gateway is 192.168.1.1. Where is the problem likely to be, and why?
Show answer
The problem is beyond your own machine. The unreachable message came from the gateway, 192.168.1.1, so your computer reached it. The gateway has no route or cannot reach 10.0.0.50, so check the gateway's routing and the target network.
Exercise
A reply shows TTL=57. Roughly how many routers did the reply pass through, and what assumption does this need?
Show answer
About 7. The likely starting value is 64, and 64 - 57 = 7. This assumes the remote host starts at 64, and that the return path matches the forward path, which is not guaranteed.