What is Ping and how does it work?

A ping (that stands for Packet Internet or Inter-Network Groper) is a simple network program that allows a user to verify and test if a specific destination IPv4 or IPv6 address exists and can accept ICMP (Internet Control Message Protocol) requests. The acronym "ping" was contrived to be exactly the same as the term used for the sound of a returned sonar pulse on submariners.

Here is an example of a ping request to google.com:

Diagnose and troubleshoot network problems

Ping is a very popular utility commonly used to diagnose and troubleshoot network and latency problems, ensuring that a host computer the user is trying to reach is operating and online. Any operating system with networking capability can use the ping utility. In Linux Ubuntu and Linux Debian you can install the ping utility with "sudo apt-get install iputils-ping net-tools". On Microsoft Windows 10 the ping utility is installed by default on C:\Windows\system32\PING.exe and can be executed via Windows Command Prompt (cmd.exe):

Windows Ping Command Example

Essentially ping works by sending an ICMP Echo Request (Type 8 message) to a specified address on the network and waiting for a reply (ICMP Echo Reply Type 0 message). When a ping command is executed, a ping signal is sent to the target address. When the target host receives the ICMP ping echo request, it responds by sending an echo reply message.

Network latency in online gaming and esports

If you watch Twitch or online esports you may hear frequently about ping since the network latency and resposne time is very important for online gaming especially for professional gamers that play competitive esports like Apex Legends, Call of Duty, CoD Warzone, Fortnite, League of Legends (LoL). The ping utility can measure the time it takes in milliseconds for the signal to transmit from a gaming PC or console to the remote gaming server. It is measured in milliseconds and a ping rate that goes over 150 ms can generate noticeable lag that can impact the overall gameplay. Generally, professional gamers would say that a ping rate below 50 ms is ideal.

Ping commands for system administrators

Here is a list of popular ping commands you can use: