Network Bytes · Episode 69 · CCNA 3.0
"Ping: testing reachability"
Ping sends a small ICMP echo request to an address and waits for an echo reply, showing the round-trip time in milliseconds. No reply means the request timed out, so you test close first, then work outward to find where the replies stop.
Like sonar on a submarine
A submarine finds things by sending out a sound pulse, a ping, and listening for the echo. The ping command was named after exactly that. You type ping and an address, such as ping 192.168.1.1, and your computer sends a small message to that address and listens for an answer.
Echo request, echo reply
The message your computer sends is an echo request. If the device receives it, it answers with an echo reply. Both belong to ICMP, the Internet Control Message Protocol, which IP devices use for test and error messages. In RFC 792 the echo request is ICMP type 8 and the echo reply is type 0. IPv6 has the same pair in ICMPv6.
Each reply line shows the round-trip time: how long the request took to get there and the reply to come back, in milliseconds (ms). On a home network that is often just a few ms; across the internet it is usually tens of ms or more.
When there is no reply
If no reply comes back in time, ping reports Request timed out. Common reasons:
- Wrong address: you typed an address that no device is using.
- Missing route: a router along the way does not know where to send the packet, or how to send the reply back.
- Firewall: many devices and firewalls block ping on purpose. So no reply does not always mean the device is down.
Start close, work outward
When something is unreachable, ping in steps. First ping your own default gateway, the router your device sends everything through. If that works, your local link is fine. Then ping a site on the internet. The point where the replies stop is where the problem starts, so you know which part of the path to look at next.
Try it yourself
Open a terminal (Command Prompt on Windows, Terminal on a Mac or Linux). Find your gateway address (ipconfig on Windows shows it as Default Gateway; on a Mac it is in the network settings under Router) and type ping followed by that address. Then ping a well-known site, such as ping example.com. Compare the two round-trip times. On a Mac or Linux, press Ctrl+C to stop.
Good to know
- Ping sends ICMP echo request (type 8) and expects echo reply (type 0), defined in RFC 792; ICMPv6 does the same for IPv6.
- Windows sends 4 pings by default; Linux and macOS keep going until you press Ctrl+C; Cisco IOS sends 5 and prints "!" for a reply and "." for a timeout.
- Many hosts and firewalls block ICMP, so no reply does not always mean the device is down.
- "Start close and work outward" is a common troubleshooting habit (loopback, your own IP, the gateway, then a remote host), simplified in the video to two steps.
- The sonar analogy is ours, though ping really was named after sonar.
- The terminal lines in the video are simplified, and 192.168.1.1 is an example address.
For CCNA learners
The CCNA 200-301 blueprint has no topic number just for ping, but you use it throughout 3.0 IP connectivity to verify routing: know that ping uses ICMP echo request and echo reply, what a timeout can mean, and how to test step by step from the gateway outward.
Answer to the comment question
25% packet loss. You sent 4 pings and 3 replies came back, so 1 was lost. 1 out of 4 is one quarter, which is 25%. Windows shows this at the end of a ping as "Lost = 1 (25% loss)". A little loss now and then can be normal on a busy link, but steady loss is worth looking into.
Test your knowledge
Quick quiz: "Ping: testing reachability"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- IETF, "RFC 792: Internet Control Message Protocol": echo and echo reply messages, types 8 and 0
- Cisco, "Understand the Ping and Traceroute Commands": ping sends ICMP echo; reasons a ping fails
- Microsoft Learn, "ping": Windows sends 4 echo requests by default; reply time in ms
- Cisco, CCNA 200-301 v1.1 exam topics: 3.0 IP connectivity, where ping is used to verify routing
Video transcript
How do you check if another device is even reachable?
Ping it. It's like sonar on a submarine: send out a ping, then listen for the echo.
Type ping, then an address. Your computer sends a small echo request. If the device gets it, it sends an echo reply straight back. These messages belong to ICMP.
Each reply shows the round-trip time, in milliseconds. No reply means the request timed out. Maybe the address is wrong, a route is missing, or a firewall is blocking pings.
So start close and work outward: your own gateway first, then a site on the internet. Where the replies stop, the problem starts.
You send four pings and get three replies. What percent packet loss is that? Comment your answer below!
That's your byte.
More from Network Bytes
- EP67"Ansible vs Terraform"
- EP68"AI and ML in network operations"
- EP70"Traceroute: mapping the path"
- EP71"ipconfig / ip addr: check your IP settings"