Ping

Updated: 04/12/2021 by Computer Hope

Ping may refer to any of the following:

Diagram example of ping

1. Ping is a utility first developed by Michael Muss in 1983 that's used to verify whether or not a network data packet can reach an address without errors. The ping utility is commonly used to check for network errors.

The image is an example of what happens when a ping is sent. The user would first start using the ping command to ping the IP address 204.228.150.3. Next, the request is sent over the network hub and router, in this example, to the other computer with this IP address. Once successfully received, the computer replies to the ping with a pong response. The time between these two transmissions is calculated to generate an average response or latency time.

Windows command line ping results

In the example above, we open the Windows command line to use the ping command. Then we ping "computerhope.com" and get four responses from the server. In each above reply it contains the size of the packet (bytes), the time it took in ms, and the TTL.

If the ping does not reach its destination because of an error or being blocked, the sending computer encounters a request timed out error or shows no received packets.

The ping command output can also be directed to a file instead of the command prompt window. Working with the example ping command above, we could use the following command.

ping computerhope.com > ping.txt

The command above outputs the results of pinging computerhope.com to a file named ping.txt. The file is created in the directory where the ping command was executed. In the first example above, the directory is c:\cgi-bin\update and this is where the ping.txt file is created. To change the directory where the output file is created, we can enter a different directory in the ping command itself, as in the example below.

ping computerhope.com > c:\output\ping.txt

The example command above creates the ping.txt file in the c:\output directory, instead of in the c:\cgi-bin\update directory.

How does ping work?

When you ping another computer or device, the ping command sends an ICMP (Internet Control Message Protocol) echo request to test it and then waits for a reply. If a reply is received, it was successful. If not, an error is shown.

What is ping short for?

Ping is not an acronym or short for anything. It is sometimes thought of as the backronym packet Internet groper. The word "ping" comes from the sound sonar generates when it detects objects under water.

2. In networked computer gaming, ping is a measurement of the latency of the game's network connection to the server, measured in ms (milliseconds). Low ping, indicating low latency, indicates a good connection, resulting in more responsive gameplay. High ping indicates network congestion or problems with the server, and may result in poor responsiveness, or "lag." For example, a player with a low 50 ms ping is going to have a better gaming experience than a player with a 250 ms ping.

Note

To help with server response times, some game servers may only accept users who have a low ping.

Echo, Game terms, HELO, ICMP, Latency, LPB, Network terms, Ping of death, Ping pong