|11 min read

What is Ping? How ICMP Ping Works and Why Latency Matters

Ping is one of the most useful network diagnostic tools. It tells you whether a host is reachable, how long packets take to travel there and back, and whether packets are being lost along the way.

What is Ping?

Ping is a command-line utility that checks whether a device, website, server, or IP address can be reached over a network.

It measures round-trip time, often shortened to RTT. RTT is the time it takes for a small packet to travel from your device to a destination and return.

Ping was created by Mike Muuss in 1983 and is available on Windows, macOS, Linux, routers, servers, and many network appliances.

The name comes from sonar: send a signal, wait for the echo, and measure how long it takes to return.

How Ping Works - ICMP Under the Hood

Ping usually uses ICMP, the Internet Control Message Protocol. Your device sends an ICMP Echo Request and waits for an ICMP Echo Reply.

You run:
  ping google.com

1. DNS resolution
   google.com -> 142.250.80.46

2. ICMP Echo Request
   Source:      your IP address
   Destination: 142.250.80.46
   Type:        8
   Code:        0
   Sequence:    1
   Payload:     small test data

3. Network path
   The packet travels through routers between you and the server.

4. ICMP Echo Reply
   Source:      142.250.80.46
   Destination: your IP address
   Type:        0
   Code:        0
   Sequence:    1

5. Round-trip time
   RTT = reply received time - request sent time
   Example: 12 ms

Common ICMP message types

TypeNameCommon use
Type 0Echo ReplyPing response
Type 3Destination UnreachableNetwork, host, protocol, or port unreachable errors
Type 8Echo RequestPing request
Type 11Time ExceededTraceroute and routing loop diagnosis

Understanding Latency and Round-Trip Time

Latency is delay. In ping output, latency is usually shown in milliseconds as the time for a packet to go to the target and return.

RTTQualityMeaning
1-20 msExcellentSame city, LAN, nearby data center, or fast fiber path
20-50 msGoodNormal browsing, video calls, and gaming feel responsive
50-100 msAcceptableUsable, but real-time apps may feel less crisp
100-200 msHighNoticeable delay in calls, games, remote desktops
200+ msVery highOften caused by long distance, satellite, congestion, or routing issues

Packet Loss - What It Means

Packet loss means some packets never come back. A little loss can make video calls glitch, games lag, downloads slow down, and websites feel unreliable.

Packet lossImpact
0%Healthy connection for normal use
1-2%Small but noticeable for calls, games, and streaming
3-5%Likely to cause stutter, retries, and unstable connections
10%+Severe problem that needs troubleshooting

Jitter - Why Consistency Matters

Jitter is variation in latency. A connection with 25 ms, 26 ms, and 24 ms replies feels smoother than one jumping between 20 ms and 180 ms.

Using the Ping Command

The ping command is built into major operating systems, but flags differ slightly between Windows and Unix-like systems.

Windows:
  ping example.com
  ping -n 10 example.com
  ping -4 example.com
  ping -6 example.com

macOS and Linux:
  ping example.com
  ping -c 10 example.com
  ping -i 0.5 example.com
  ping -s 1200 example.com

Reading Ping Results

A ping result gives you several useful clues: reply size, source IP, sequence number, TTL, time, packet loss, and min/avg/max latency.

PING example.com (93.184.216.34): 56 data bytes
64 bytes from 93.184.216.34: icmp_seq=0 ttl=56 time=18.4 ms
64 bytes from 93.184.216.34: icmp_seq=1 ttl=56 time=17.9 ms
64 bytes from 93.184.216.34: icmp_seq=2 ttl=56 time=19.1 ms
64 bytes from 93.184.216.34: icmp_seq=3 ttl=56 time=18.0 ms

--- example.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 17.9/18.4/19.1/0.5 ms
FieldMeaning
timeRound-trip time for that individual reply
ttlTime To Live, a hop limit that can hint how many routers were crossed
icmp_seqSequence number used to identify each request and reply
packet lossPercentage of sent packets that did not receive replies
min/avg/maxFastest, average, and slowest observed round-trip times

What Affects Ping Times?

Ping time depends on more than raw internet speed. Distance, routing, Wi-Fi quality, congestion, server load, VPNs, and firewalls can all affect results.

FactorEffect
DistanceFarther servers usually mean higher latency
RoutingTraffic may take an indirect path through multiple networks
Wi-Fi qualityWeak signal and interference can add delay or loss
CongestionBusy networks queue packets and increase latency
VPN or proxyAdds an extra route through another server
Server policySome hosts rate-limit or block ICMP ping

What is a Good Ping?

A good ping depends on the activity. Reading a website is tolerant of higher latency, while gaming, calls, and remote desktops need low and stable latency.

ActivityGood ping target
Web browsingUnder 100 ms is usually fine
Video streamingLatency matters less than bandwidth and stability
Video callsUnder 50 ms is good; low jitter matters a lot
Online gamingUnder 30 ms is excellent; under 60 ms is usually playable
Remote desktopUnder 50 ms feels much more responsive

Troubleshooting with Ping

Ping is useful because it lets you test one layer at a time. Start local, then test the router, then an external IP, then a domain name.

Troubleshooting sequence:

1. Ping your own computer
   ping 127.0.0.1

2. Ping your router
   ping 192.168.1.1

3. Ping a public IP
   ping 8.8.8.8

4. Ping a domain name
   ping google.com

If 8.8.8.8 works but google.com fails,
the problem is probably DNS, not general connectivity.

Beyond Ping - Related Tools

Ping is only one diagnostic tool. Combine it with traceroute, DNS lookup, HTTP checks, and speed tests to understand the full problem.

ToolWhat it does
TracerouteShows the router hops between you and a destination
DNS lookupChecks whether a domain resolves to the expected IP address
HTTP headers checkerVerifies whether a website responds at the HTTP layer
Redirect checkerShows redirect chains that can make pages feel slow
Speed testMeasures throughput, which is different from latency

Test a Host with Ping

Use our free Ping Checker to test reachability, response time, packet loss, and network behavior from your browser.

Open Ping Checker

References

  • RFC 792 - Internet Control Message Protocol
  • RFC 4443 - ICMPv6 for the Internet Protocol Version 6 Specification
  • Mike Muuss ping history and original network utility notes
  • Microsoft, Apple, and Linux ping command documentation
USTHJP