Ping Scan: Following the Reply
A ping scan can turn a list of possible network addresses into a shorter list of places that answered. That gives an administrator somewhere to investigate next. The useful evidence is the response itself: something at that address answered this kind of probe.
A ping scan is a form of host discovery. A host is a device participating in a network. The scanner sends test messages, called probes, to candidate addresses and looks for responses that suggest a device is active and reachable.
The term overlaps with ping sweep. Nmap, a network-scanning tool, uses both names in its host-discovery documentation. They don't define two different security tests.
Ping and Traceroute: Two Commands Worth Knowing
One request, one matching answer
The simplest example uses the Internet Control Message Protocol, or ICMP, which carries network control and diagnostic messages. The scanner sends an echo request to an address. A responding system sends an echo reply back.
The messages include identifying values so the sender can match a reply with the request that prompted it. That echo exchange establishes that this request reached a responding system and a corresponding answer came back.
Location matters. A reply received from inside an office network doesn't establish that the same address is reachable from the public internet. Timing matters too: yesterday's response describes yesterday's exchange.
A scanner can ask in other ways
Despite the name, a tool's “ping scan” need not consist only of ordinary ping requests.
Nmap can use other kinds of network messages for discovery. For example, it can send probes associated with opening a connection to a service. A response to such a probe can provide evidence that a system is there even if the system doesn't answer ICMP echo requests.
Nmap's introduction to ping scanning explains that broader use of the term. The choice of probe changes which replies the scanner may receive, so the discovery method belongs with the result.
- Learn Nmap from the person who wrote it.
- Find out what is really running on your network.
- Go from basic scans to advanced techniques with one reference.
Reading an empty space in the list
Suppose an office computer is running, but a firewall drops incoming echo requests. The scanner may hear nothing from that address. The same silence could occur if the computer were switched off, the path were unreachable or a request or reply were lost.
The absence of a reply doesn't tell the administrator which explanation applies. A follow-up check could compare the result with known system records or use an appropriate different test within the agreed scanning scope.
Likewise, a reply doesn't identify the owner of the device or establish that it belongs on the network. Those questions need information beyond the echo exchange.
To investigate an application, the next question may be whether its network service answers. A port scan examines ports, the numbered places programs use for network communication, to learn which services are reachable.
Even a working echo reply can arrive from a machine whose application has stopped working. Testing the application is how the administrator moves from “the address answered” to the problem the user is actually having.
Echo Requests: What You’re Really Asking When You Ping

Port Scan: Reading Open, Closed and Filtered

ICMP: How the Network Reports a Problem

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