SmokePing is an open-source latency and packet loss monitor that sends bursts of probes to a list of targets at fixed intervals and draws the results as graphs in which the spread of round-trip times appears as gray “smoke” around a median line. In network monitoring, it is the classic tool for answering a narrow but important question: how stable is the path to a host over time, not merely whether the host is reachable.
SmokePing was written by Tobias Oetiker, the author of MRTG and RRDtool, and it stores its measurements in RRDtool round-robin databases. It runs as a Perl daemon with a CGI web front end, and it is commonly deployed in a master and slave arrangement so that the same targets can be measured from several vantage points.
How SmokePing measures latency and loss
SmokePing works by sending a fixed number of pings per step to each target and recording every individual result rather than an average. The default configuration sends 20 probes every 300 seconds, sorts the returned round-trip times, and stores the median and each ranked sample in the RRD file for that target.
The graph then shows the median as a colored line and the other samples as shaded bands. A narrow band means consistent latency; a wide, dark band means the round-trip times varied considerably within the measurement burst, which usually signals queueing, congestion or bufferbloat on the path. The color of the median line encodes packet loss, so a single image summarizes delay, variation and loss together.
The following table lists the main configuration parameters that shape what SmokePing records.
| Parameter | Typical value | What it controls |
|---|---|---|
| step | 300 s | Interval between measurement rounds |
| pings | 20 | Probes per round, which sets loss resolution |
| Probe timeout | 1-5 s | When a probe counts as lost |
| Loss color thresholds | 0, 1, 2, 3, 5, 10, 19 of 20 | Color bands for the median line |
| RRA consolidation | 5 min to 1 day | How long detail is retained |
Because each round contains many samples, SmokePing can detect intermittent loss of a few percent that a single ping every minute would miss. With 20 probes per step, the smallest visible loss is 5 percent of one round, so lower loss rates only become visible when averaged over many rounds.
Probe types and what they test
SmokePing uses pluggable probe modules, so the same graphing engine can measure very different things. The default FPing probe sends ICMP echo requests, but other probes measure DNS resolution time, HTTP response time, TCP connection setup or SSH handshake duration.
| Probe | Protocol tested | Typical use |
|---|---|---|
| FPing | ICMP echo (IPv4) | Baseline path latency and loss |
| FPing6 | ICMP echo (IPv6) | Comparing IPv6 and IPv4 paths |
| DNS | DNS query | Resolver response time |
| Curl | HTTP or HTTPS | Web service response time |
| TCPPing | TCP SYN | Hosts that filter ICMP |
| RemoteFPing | ICMP via SSH | Measuring from a remote host |
Choosing the probe matters because ICMP is often deprioritized by routers. A target that answers application traffic quickly may still show high ICMP latency when its control plane is busy, so an application-level probe gives a more faithful view of user experience.
SmokePing compared with other monitoring tools
SmokePing occupies a specific niche: long-term trend graphs of latency distribution. It does not inspect packets, poll interface counters or trace individual hops, which is why it is usually deployed alongside other tools in the same Topic.
| Tool | Primary data | Best for |
|---|---|---|
| SmokePing | RTT distribution and loss over time | Spotting jitter and intermittent loss trends |
| MTR | Per-hop latency and loss | Locating where on a path loss occurs |
| iPerf | Achievable throughput | Active bandwidth testing |
| SNMP pollers | Interface counters and errors | Utilization and device health |
| Wireshark | Captured packets | Protocol-level troubleshooting |
A common workflow uses SmokePing to identify when and how often a problem occurs, then MTR or Traceroute to find where on the path it originates. Monitoring suites such as LibreNMS or PRTG Network Monitor offer ping sensors, but they usually store an average per interval and lose the distribution that makes SmokePing graphs distinctive.
Deploying and configuring SmokePing
A SmokePing deployment consists of a single text configuration file, the daemon that schedules probes, the RRD files and the CGI script that renders graphs on demand. Targets are organized in a hierarchical tree, which becomes the navigation menu of the web interface.
- Group targets logically, for example by site, provider or service, so related graphs appear together.
- Run slaves in several locations to separate a problem near the monitored host from one near the measuring point.
- Configure alerts with pattern rules, such as loss above a threshold in three consecutive rounds, and send them by email or a script.
- Keep the step consistent after creation, because changing it requires recreating the RRD files.
Alert patterns are a strength that new users often overlook. A rule can match sequences of loss or latency values, which suppresses alerts for single noisy rounds and reports only sustained degradation.
Limitations and common mistakes
SmokePing measures round-trip behavior from one point to another, so it cannot tell which direction of the path caused the delay, and it reflects the target’s handling of probes as much as the network itself.
| Mistake | Consequence | Better practice |
|---|---|---|
| Pinging busy routers | False latency spikes from ICMP rate limiting | Probe end hosts or use TCPPing |
| Too few pings per step | Coarse loss resolution | Keep 20 or more probes |
| Single vantage point | Local issues look like remote ones | Add slaves elsewhere |
| Overloaded monitoring host | Self-inflicted jitter in results | Watch CPU and link load on the host |
| Reading averages only | Missed bufferbloat patterns | Read the smoke width, not just the median |
Another limitation is scale: because each graph is rendered on request from RRD files, very large installations with thousands of targets can strain disk input and output. Operators then reduce the step frequency, use rrdcached or split targets across several masters.
A plain-language summary
SmokePing checks how quickly and reliably a computer or website answers, again and again, all day long. Each time, it asks twenty times in a row and remembers every answer, not just the average.
The result is a picture. A thin line means the connection is calm and predictable. A thick gray cloud, the “smoke”, means answers sometimes come back fast and sometimes slowly. Colors show when some questions got no answer at all. It is a bit like timing a daily commute for months: one trip tells you little, but many trips reveal when the road gets congested.
An example from practice
A regional internet provider received complaints from business customers about choppy video calls every weekday afternoon, while routine availability checks showed every link as up. The network team added SmokePing targets for each customer edge router and for two upstream transit providers, measured from slaves in their core site and in a remote data center.
Within a week, the graphs showed that smoke widened sharply between 14:00 and 18:00 on paths through one transit provider, with median latency rising from 12 ms to about 45 ms and loss of 1-3 percent shown in the median color. Paths through the second provider stayed narrow. MTR then located the congestion at a single interconnect.
The team shifted traffic to the second provider during peak hours and asked the first to upgrade the interconnect. After the change, the afternoon graphs returned to a thin, stable line, and the call quality complaints stopped.