The ping operation monitors link connectivity and host reachability on a network. In a ping operation, the source sends an Internet Control Message Protocol (ICMP) Request message to the destination and the destination returns an ICMP Response message to the source.
The ping operation can be performed to check whether the client and the TCP server can communicate with each other and check the time taken to set up a TCP connection through three-way handshake.