What is a ping and how does it work? (2024)

What is a ping and how does it work? (1)

By

  • Andrew Zola

What is a ping?

A ping (Packet Internet or Inter-Network Groper) is a basic Internet program that allows a user to test and verify if a particular destination IP address exists and can accept requests in computer network administration. The acronym was contrived to match the submariners' term for the sound of a returned sonar pulse.

Ping is also used diagnostically to ensure that a host computer the user is trying to reach is operating. Any operating system (OS) with networking capability, including most embedded network administration software, can use ping.

For example, to find the dot address, such as 205.245.172.72, for any given domain name, Windows users can go to the command prompt screen (start/run/cmd) and enter ping xxxxx.yyy, where xxxxx is the second-level domain name, like "whatis," and yyy is the top-level domain name, like "com."

What is a ping and how does it work? (2)

Ping on a speed test

The term is also used to test and determine how fast a data signal travels from one place, like a computer, to another, like a website. Ping is also used to troubleshoot and test connectivity and determine response time.

How does ping work?

Ping works by sending an Internet Control Message Protocol (ICMP) Echo Request to a specified interface on the network and waiting for a reply. When a ping command is issued, a ping signal is sent to a specified address. When the target host receives the echo request, it responds by sending an echo reply packet.

This approach serves two specific purposes: verifying that the target host is available and determining round-trip time (RTT) or latency.

RTT is a measure of how long it took to receive a response. Measured in milliseconds (ms), the process starts when a browser sends a request to a server and is completed when a response from the server is received. RTT is a key performance metric of web applications.

By default, ping commands send multiple requests -- usually four or five -- and display the results. The echo ping results show whether a particular request received a successful response. It also includes the number of bytes received and the time it took to receive a reply or the time-to-live.

What is a ping and how does it work? (3)

How to use ping in troubleshooting?

Echo requests and echo responses form the standard for troubleshooting ICMP messages. Virtually every OS with network support includes ping for troubleshooting purposes. However, the exact implementation varies slightly among manufacturers.

Ping is the cornerstone of standard network troubleshooting. For example, an IP address can be pinged by typing in 172.168.9.13. If the ping is successful, it means that it is on, and the two machines can talk to each other.

However, if the ping is successful but the response time is long, it indicates network congestion, routing or speed issues. Even pings that are unsuccessful offer valuable troubleshooting information. When it comes to network speed tests, ping is the standard.

At its most basic, ping can run with just a ping command and a destination, such as the name or address of a remote host. Since ping is used as a command-line utility, it is easy to use in a variety of scripts. An administrator can run multiple pings, record how they were used and place the output of ping commands into a text file for later review.

What is ping spoofing?

In network security, ping spoofing involves threat actors who send fake information to a server. When this happens, the false data appears, acts like the original data packets and is transmitted to the server.

The receiver gets fake data and responds to the data packet with a third-party user instead of the original sender. On the receiver side, the server may receive unrequested data from the different address.

This helps hide the actual third-party user's address. Ping spoofing is difficult to detect.

What is a ping and how does it work? (4)

What is ping in gaming?

Ping is also useful for online gaming. It measures the time it takes for the signal to transmit from a computer or console to a server.

Measured in milliseconds, a ping rate over 150 ms generates noticeable lag that impacts gameplay. Professional gamers consider a ping rate under 50 ms to be ideal.

Ping in Discord

In Discord -- a chat and video app used mostly by gamers -- a ping is a notification, most often on a smartphone or personal computer. When someone sends a ping, it pops up on the phone screen or desktop application.

This was last updated in July 2021

Continue Reading About ping

  • Network performance metrics pose data center challenges
  • Network device discovery best practices -- other than ping sweeps
  • How to check for packet loss to manage call quality
  • How to improve network latency in 3 steps
  • Perform a network health check with network testing

Related Terms

baseboard management controller (BMC)
A baseboard management controller (BMC) is a specialized service processor that remotely monitors the physical state of a host ...Seecompletedefinition
network orchestration
Network orchestration is the use of a software-defined network controller that facilitates the creation of network and network ...Seecompletedefinition
programmable logic controller (PLC)
A programmable logic controller (PLC) is a small, modular, solid-state computer with customized instructions for performing a ...Seecompletedefinition

Dig Deeper on Network management and monitoring

  • DoS vs. DDoS: How they differ and the damage they causeBy: RaviDas
  • tracerouteBy: RobertSheldon
  • jitterBy: LindaRosencrance
  • persistent connectionBy: RahulAwati
What is a ping and how does it work? (2024)
Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 5740

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.