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.
Table of Contents
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 msCommon ICMP message types
| Type | Name | Common use |
|---|---|---|
| Type 0 | Echo Reply | Ping response |
| Type 3 | Destination Unreachable | Network, host, protocol, or port unreachable errors |
| Type 8 | Echo Request | Ping request |
| Type 11 | Time Exceeded | Traceroute 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.
| RTT | Quality | Meaning |
|---|---|---|
| 1-20 ms | Excellent | Same city, LAN, nearby data center, or fast fiber path |
| 20-50 ms | Good | Normal browsing, video calls, and gaming feel responsive |
| 50-100 ms | Acceptable | Usable, but real-time apps may feel less crisp |
| 100-200 ms | High | Noticeable delay in calls, games, remote desktops |
| 200+ ms | Very high | Often 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 loss | Impact |
|---|---|
| 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.comReading 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| Field | Meaning |
|---|---|
| time | Round-trip time for that individual reply |
| ttl | Time To Live, a hop limit that can hint how many routers were crossed |
| icmp_seq | Sequence number used to identify each request and reply |
| packet loss | Percentage of sent packets that did not receive replies |
| min/avg/max | Fastest, 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.
| Factor | Effect |
|---|---|
| Distance | Farther servers usually mean higher latency |
| Routing | Traffic may take an indirect path through multiple networks |
| Wi-Fi quality | Weak signal and interference can add delay or loss |
| Congestion | Busy networks queue packets and increase latency |
| VPN or proxy | Adds an extra route through another server |
| Server policy | Some 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.
| Activity | Good ping target |
|---|---|
| Web browsing | Under 100 ms is usually fine |
| Video streaming | Latency matters less than bandwidth and stability |
| Video calls | Under 50 ms is good; low jitter matters a lot |
| Online gaming | Under 30 ms is excellent; under 60 ms is usually playable |
| Remote desktop | Under 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.
| Tool | What it does |
|---|---|
| Traceroute | Shows the router hops between you and a destination |
| DNS lookup | Checks whether a domain resolves to the expected IP address |
| HTTP headers checker | Verifies whether a website responds at the HTTP layer |
| Redirect checker | Shows redirect chains that can make pages feel slow |
| Speed test | Measures 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 CheckerReferences
- 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