Test Network Latency Using ping -c 900 Command

ADVERTISEMENT

The ping command is a go-to tool for checking network connectivity. When combined with the -c option, it becomes a great way to monitor performance over time. In this guide, we explain exactly what:

ping -c 900 hostname_or_ip

does, and how it helps you measure latency and stability.

🔍 What Does ping -c 900 (Ping with Count) Do?

  • ping: Sends ICMP (Internet Control Message Protocol) echo requests.
  • -c 900: Limits the test to 900 packets (instead of running endlessly).
  • hostname_or_ip: The target you want to reach — it can be a domain name (e.g., google.com) or an IP address (e.g., 192.168.1.1).

So this command will send 900 ping requests, then stop and display a summary.

🧪 Why Use a High Count Like 900?

Running ping with a high packet count is useful when:

  • You want to observe latency trends over time.
  • You’re troubleshooting unstable connections.
  • You need a larger data set to analyze jitter or packet loss.

For example, if your average ping interval is 1 second, -c 900 gives you 15 minutes of continuous monitoring.

🚀 What Is Network Latency?

Network latency is the time it takes for a data packet to travel from your machine to the destination and back. In ping, this is represented by the time= value (in milliseconds).

  • Low latency means quick response — ideal for online gaming, VoIP, or video conferencing.
  • High latency can lead to noticeable delays and poor performance.

The goal is to measure how consistent and fast the network is. This is exactly what ping -c 900 helps you do — by providing a steady stream of data to evaluate.

📤 Sample Output and Explanation

PING google.com (142.250.64.78) 56(84) bytes of data.
64 bytes from 142.250.64.78: icmp_seq=1 ttl=115 time=12.3 ms
64 bytes from 142.250.64.78: icmp_seq=2 ttl=115 time=11.9 ms
...
--- google.com ping statistics ---
900 packets transmitted, 900 received, 0% packet loss, time 901234ms
rtt min/avg/max/mdev = 11.2/12.0/13.1/0.3 ms

Output Breakdown:

  • icmp_seq: Sequence number of each ping packet.
  • ttl: Time-to-live — limits hops to avoid infinite loops.
  • time: Round-trip time — the core measure of latency.

Summary section:

  • 900 packets transmitted, 900 received: All pings succeeded.
  • 0% packet loss: Indicates stable connection.
  • rtt min/avg/max/mdev:
    • min: Shortest observed latency
    • avg: Average latency over 900 packets
    • max: Highest latency seen
    • mdev: Standard deviation — shows how much the ping times varied

✅ Final Thoughts

The ping -c 900 command is a simple yet effective way to:

  • Measure network latency
  • Detect packet loss
  • Analyze connection stability over time

Whether you’re troubleshooting or just checking performance, this command offers a quick, hands-free method to collect real data.

Tip: Want to monitor regularly? Combine ping -c 900 with cron or logging scripts to keep a long-term record of network health.

ADVERTISEMENT

Leave a Reply

Your email address will not be published. Required fields are marked *