Diagnosing network connectivity, packet loss, and latency spikes across local routers and remote servers typically relies on standard ping. While standard ICMP ping provides raw latency times in milliseconds, parsing scrolling walls of numeric text makes it difficult to detect subtle latency jitter, cyclical bufferbloat, or intermittent routing hiccups. gping (Graphical Ping) is a modern, Rust-built terminal diagnostic tool that transforms ICMP and HTTP latency metrics into interactive, real-time line charts directly inside your terminal window.
Why Use gping for Network Diagnostics?
Developed by Tom Forbes, gping modernizes traditional ICMP ping with features designed for network administrators, gamers, and DevOps engineers:
- Interactive Terminal Graphs: Renders smooth ASCII line graphs dynamically adjusting to your terminal window size and aspect ratio.
- Multi-Host Concurrent Testing: Compares multiple domains or IP addresses simultaneously on a single shared graph, assigning distinct colours to each host.
- Automated Min/Max/Avg Statistics: Computes real-time minimum, maximum, and average round-trip times (RTT) alongside live connection plots.
- Custom Buffer Windows: Retains custom rolling time buffers (e.g., last 30 seconds or 2 minutes of packet history) to identify transient drops.
- Zero Lag Rust Performance: Extremely lightweight binary that runs with minimal system overhead.
Installing gping on Linux Distributions
The gping binary is packaged across standard software repositories and cargo channels:
Ubuntu (22.04 LTS and Newer) & Debian
sudo apt update
sudo apt install gping
For older releases, you can install the pre-compiled binary via the Azlux repository or through Snap:
sudo snap install gping
Arch Linux and Manjaro
sudo pacman -S gping
Fedora, RHEL, and Rocky Linux
sudo dnf install gping
Cargo (Cross-Distribution Rust Install)
cargo install gping
Basic Usage: Plotting Latency to a Single Host
To start monitoring latency to a remote server or DNS provider, pass the hostname or IP address to gping:
gping 1.1.1.1
The terminal immediately clears and renders a live, two-dimensional graph:
- The horizontal axis represents the rolling timeline (showing the most recent 30 seconds by default).
- The vertical axis scales automatically in milliseconds (ms) according to your ping responses.
- A live legend at the top displays the target hostname alongside real-time min, max, and current latency readings.
- Press Ctrl + C or q at any time to exit the graph cleanly.
Comparing Multiple Hosts Simultaneously
The most powerful feature of gping is comparing multiple network endpoints at once. This allows you to immediately pinpoint whether lag originates from your local ISP, a domestic gateway, or an international content delivery network:
gping 192.168.1.1 1.1.1.1 8.8.8.8 google.com
In this multi-target session:
gpingassigns distinct visual colours (green, blue, magenta, yellow) to each target.- All four response lines are plotted on the same graph canvas simultaneously.
- If your local router (
192.168.1.1) spikes in latency alongside external servers, the issue lies in your local Wi-Fi or router hardware. If only remote endpoints spike while the local gateway stays flat, the fault resides upstream with your ISP.
Customising the Rolling Buffer and Ping Interval
You can fine-tune the time window and polling frequency using command-line arguments:
1. Changing the Buffer Duration (-b)
By default, gping displays a 30-second window. To monitor network stability over a longer duration (for example, 60 seconds):
gping -b 60 1.1.1.1
2. Adjusting the Ping Interval (-n)
To increase the resolution of your latency graph, shorten the delay between packets (default is 0.2 seconds). For example, pinging every 100 milliseconds:
gping -n 0.1 1.1.1.1
Testing HTTP Latency Instead of ICMP (-w)
Some enterprise firewalls and cloud providers intentionally block ICMP echo packets. With gping, you can measure raw HTTP web response latency instead:
gping --cmd "curl -s -o /dev/null -w '%{time_total}\n' https://digitash.com"
This graphs real-world HTTPS handshake and page load round-trip times, making it an invaluable diagnostic tool for web engineers and site reliability specialists.