User Tools

Site Tools


networking:diagnostics:ping

Ping

Ping is one of the most widely used network diagnostic tools.

It tests whether a remote host is reachable over an IP network and measures how long it takes for packets to travel to the destination and back.

Ping is based on ICMP Echo Request and ICMP Echo Reply messages. :contentReference[oaicite:0]{index=0}


What Does Ping Measure?

A ping test can provide several useful measurements.

  • Reachability
  • Round-trip time (RTT)
  • Packet loss
  • Response consistency

These measurements help determine whether a network connection is working correctly.


How Ping Works

When you execute:

ping example.com

or

ping 8.8.8.8

your computer sends an ICMP Echo Request.

If the destination is reachable, it returns an ICMP Echo Reply.

Your Computer
      │
Echo Request
      ▼
Destination
      ▲
Echo Reply
      │
Your Computer

Ping repeats this process several times and reports statistics.


Round-Trip Time (RTT)

The most common ping measurement is the Round-Trip Time (RTT).

RTT is the time required for a packet to travel:

  • From your computer to the destination.
  • Back from the destination to your computer.

It is usually measured in milliseconds (ms).

Example:

Reply from 8.8.8.8

time=21 ms

Lower values generally indicate lower network latency.


Packet Loss

Sometimes packets never reach the destination or the reply never returns.

This is called packet loss.

Example:

Packets Sent:     4

Packets Received: 3

Packet Loss:     25%

High packet loss may indicate:

  • Network congestion
  • Poor Wi-Fi signal
  • Routing problems
  • Firewall filtering

Typical Ping Values

The following values are only general guidelines.

RTT Typical Experience
Less than 20 ms Excellent
20–50 ms Very Good
50–100 ms Good
100–200 ms Acceptable
More than 200 ms High latency

Actual values depend on:

  • Distance
  • Routing
  • ISP
  • Network congestion

What Can Ping Tell You?

A successful ping confirms:

  • The destination is reachable.
  • IP connectivity exists.
  • ICMP replies are being returned.

A failed ping may indicate:

  • The host is offline.
  • ICMP is blocked.
  • A routing problem exists.
  • A firewall is filtering requests.

What Ping Cannot Tell You

Ping does not verify:

  • Whether a website is working.
  • Whether a specific application is available.
  • Whether a TCP or UDP port is open.

For example:

A web server may respond to ping but still fail to serve web pages.

Likewise, a server may block ICMP but still provide a perfectly functioning website.


Common Ping Commands

Windows

ping google.com

Linux / macOS

ping google.com

Both perform the same basic function, although command-line options differ slightly.


Ping and Telenegar

The Telenegar Ping Check service allows you to perform ping tests from multiple probe locations.

Unlike the standard operating system ping command, Telenegar lets you compare connectivity from different networks and geographic locations.

Ping Check reports information such as:

  • Reachability
  • Round-trip time
  • Packet loss
  • Individual probe results

This is useful for determining whether a connectivity issue is:

  • Local to your network
  • Specific to one ISP
  • Regional
  • Affecting users globally

Ping and Trace Route

Ping only answers:

“Can I reach the destination?”

If the answer is No, it does not explain where the problem occurs.

For that purpose, use Telenegar Trace Route, which shows each router (hop) along the network path and helps identify where packets stop or experience excessive delay.


Common Misconceptions

  • A successful ping means the website is working.
    • False. Ping only verifies IP connectivity.
  • A failed ping means the server is offline.
    • False. Many servers intentionally block ICMP requests.
  • Ping measures Internet speed.
    • False. Ping measures latency, not bandwidth.


ping icmp latency packet-loss diagnostics networking

networking/diagnostics/ping.txt · Last modified: by 127.0.0.1