Ping is a tool commonly used to find the status of a device on a network. Ping is based on the
ICMP protocol[1].
When a Ping process request is sent out as an ICMP echo to the target device, it replies with an ICMP echo reply if the device is available.
View the Images below to see how the
ping
command is used to test network connectivity.
Ping is used to send a test packet to a device to find out whether it is reachable and how long the packet takes to reach the device.
There are two important purposes.
- test the network availability to device
- network latency between two devices
A simple way to check whether we have access to the particular host is through ICMP by sending ping packets to the host. But this method works only if ICMP and ping is enabled in that network. If ICMP is disabled, we can not get a proper response.