Ping (Packet Internet Groper) is a network diagnostic tool to test the connectivity between two devices. It is widely used to troubleshoot Internet connections. Ping works by sending an ICMP (Internet Control Message Protocol) packet to the target host and receives a reply from the host. It also tells how much time a packet is taking (in ms) and how many packets are received or lost.
When do I use it:
A ping test is a method to check and ensure whether a computer is connected to the network. It can determine the latency or delay between the two computers. It can troubleshoot connectivity and response time. We can use the ping test for the following purposes
1. To test your website or web server as reachable
2. Test internet connectivity
3. Checks if you are facing any packet loss
How to use it:
In Microsoft Windows, the ping utility is available to run a ping test. Just identify the website, remote server or computer with its IP address or its name to run the ping test. The output will display the confirmation of a successful connection with the number of packets and the time period in milliseconds. As used in Windows OS, Linux and MacOSX also provide ping command program to run in it.
Here, the below steps shows how to run the ping test in Windows OS.
Step 1: Open your command prompt.
Step 2: Type ping, followed by a domain name or IP address.
Likewise, open the terminal and run the same command in Linux.
For Mac OS X, click on Applications folder, Utilities -> Network Utility, then run the ping command.