Echo Requests: What You’re Really Asking When You Ping
An echo request is a small network message that asks a device to send a reply. The familiar ping command uses it to test whether a round trip is possible—and how long that trip takes.
What actually travels across the network
The request uses the Internet Control Message Protocol, or ICMP, which carries network reports and diagnostic messages. It travels to an IP address, the numeric address used to deliver network traffic.
An echo request doesn't open a website, log in to a service or establish an ongoing connection. It's a probe: a message sent to learn something about the destination and the path to it.
The receiving device can return an echo reply containing the request's data, identifier and sequence number. Those last two fields help the sender match replies to requests, rather than mistake an earlier answer for the latest one.
- Learn how networks really work, from cabling to routing, in one book.
- Prepare for the N10-009 exam with a guide written for it.
- Keep it on the shelf as a reference long after the test.
For IPv4, one version of the Internet Protocol, the message types are 8 for a request and 0 for a reply. IPv6 uses its own version of ICMP, with types 128 and 129 instead.
Choose the destination before judging the result
Where you send a request determines what you can learn from it. Pinging your own computer, your router and a remote server asks three different questions.
For a small local test on Windows, open Command Prompt, a text window for entering commands, and type:
ping 127.0.0.1
The address is a loopback address: it points back to your computer. Loopback traffic stays inside the host, so a successful result doesn't test your Wi-Fi signal, network cable or internet provider.
Windows sends four requests by default, according to Microsoft's ping documentation.
If you enter a hostname instead of an IP address, the computer must first obtain an address for that name. The Domain Name System, or DNS, normally handles that lookup, so a name-resolution failure can prevent the request from being sent at all.
Ping and Traceroute: Two Commands Worth Knowing
Read the answer at the right scale
A reported time of 20 milliseconds measures the request's trip out and the reply's trip back, including processing along the way. It isn't a one-way measurement, and it doesn't tell you how many megabytes you can download each second.
Suppose four requests produce three replies before the wait expires. That's one missing reply in this small sample, not proof that a quarter of all your network traffic is being lost.
A missing reply has several possible explanations: the destination may be unavailable, the request or reply may be lost, or a firewall may block the exchange. A firewall is software or hardware that applies rules to network traffic, and it can treat ICMP differently from web browsing.
The reverse also matters: a server can answer ping while its website is broken. Its network software may still respond even though the application that serves pages has stopped.
Use echo requests to narrow your investigation, then test the service you're trying to use. A working ping is a useful clue about reachability; your browser, file transfer or game still has its own work to do.
ICMP: How the Network Reports a Problem

Ping Sweep: What Changed on the Network?

Echo Reply: How to Read a Ping Response

QUOTE:
"Amateurs hack systems, professionals hack people."
