Ping explained: latency, packet loss and ICMP
Ping answers two questions: does the destination respond, and how long does each answer take to come back. That makes it a good first test when a connection feels slow or a site will not open. It does not measure download speed, and a reply does not prove that a website or application is healthy.
What the milliseconds in a ping result mean
Most ping programs send ICMP Echo Request messages and wait for Echo Reply messages. The time shown for each reply is the round-trip time, or RTT: the journey to the target and back. A reading of 20 ms means one response took about 20 milliseconds. It is a delay, not a transfer speed in megabits per second.
At the end you usually get the number of probes sent and received and the minimum, average and maximum RTT. Lost probes appear as a percentage of packet loss. The spread between the fastest and slowest replies hints at jitter, which is the variation between successive delays. Jitter matters most for calls and games, where irregular response times are disruptive even when the average looks acceptable.
Repeat the test to see whether latency is stable. A handful of samples can hide intermittent trouble, while a long test picks up changes in traffic and network conditions along the way.
No reply does not mean the server is down
A server or firewall may block ICMP, limit how many replies it sends or give diagnostic traffic a low priority. Silence from ping therefore does not prove that HTTPS is unavailable. The reverse also holds: a prompt reply does not prove that DNS, TCP connections, login or the web application itself works.
Ping uses ICMP Echo, but ICMP has other control functions too, described in the ICMP guide. When an Echo Reply is missing, compare with how the application itself behaves before deciding anything.
High or uneven ping on Wi-Fi and mobile
Some Wi-Fi and mobile links show variable RTT because radio scheduling, interference and power-saving modes add delay. Packet loss during a test deserves investigation. Before blaming a remote service, ping your own router and one other destination. If the loss already appears on the way to the router, the fault is local.
The order in which to ping when something is wrong
- Ping the local gateway, which is normally your router.
- Ping a stable external destination.
- Ping the affected host.
- Ping the same host by IP address and by domain name. If the address answers and the name does not resolve, the problem is DNS and not basic connectivity.
- Open the actual service with a browser or the appropriate client.
Traceroute can then show where diagnostic responses stop, with limits of its own. If only one site fails while other destinations work, investigate that site and the route to it separately from your overall Internet connection. The guide to latency, jitter and packet loss explains how these measurements relate to what you experience.
What to send your provider along with the numbers
A single impressive value proves little. Include the time, the network you tested on, the destination and the number of probes. Do not flood other systems with frequent tests either: it is impolite, and rate limiting on the far side will distort your own results.