ARCHIVED: What is ping?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

Ping is a program that sends a series of packets over a network or the Internet to a specific computer in order to generate a response from that computer. The other computer responds with an acknowledgment that it received the packets. Ping was created to verify whether a specific computer on a network or the Internet exists and is connected.

Some have claimed that the word "ping" is actually an acronym for "Packet Internet (or Inter-Network) Groper", deliberately contrived to play on the fact that pinging with a computer is similar to what submariners do with sonar. Both the computer and the submarine's sonar send out a "ping", in the form of either a series of packets or a brief burst of sound. The ping "bounces" off the target and then returns to let you know the target is there.

Ping is both a noun and a verb, e.g., "Ping that computer", or "The router didn't return a ping".

Ping is built into almost every network-capable operating system. To ping a computer, at the command prompt, enter ping, a space, and then the network or Internet address you wish to contact. For example, enter the following at a command prompt:


You should get a response similar to this:

  pinging with 32 bytes of data:

  Reply from bytes=32 time<1ms TTL=127
  Reply from bytes=32 time<1ms TTL=127
  Reply from bytes=32 time<1ms TTL=127
  Reply from bytes=32 time<1ms TTL=127

  ping statistics for
      Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
  Approximate round trip times in milli-seconds:
      Minimum = 0ms, Maximum = 0ms, Average = 0ms

Operating systems format their ping results differently, so the results will not look exactly the same from, for example, a Linux computer.

Regardless of the operating system, the results will show the IP address of the computer you're pinging, the round-trip time in milliseconds for each packet, the number of packets sent and received, and the number and percentage of how many packets got lost.

Technical information

Ping uses ICMP (Internet Control Message Protocol) packets. The packet from the origin computer is called an "ICMP_echo_request", and the response from the target is called an "ICMP_echo_reply". Each packet contains by default either 32 or 64 bytes of data and 8 bytes of protocol reader information, but ping can be configured at the command line to use different sized packets. You can access a list of switches and additional functions by invoking the help file for ping:

  • In Windows, at the command prompt, enter ping /?.
  • In Unix-based systems (e.g., Mac OS X and later, Linux, Solaris), at the command prompt, enter ping --help.

This is document aopu in the Knowledge Base.
Last modified on 2018-01-18 14:03:14.