Ping (ping)
Sends several ICMP echo requests per poll and reports the round-trip time, its jitter and the share of requests that went unanswered. It is the default master check of a device: when it fails, the device's other sensors are suppressed.
What it looks like

The sensor's page after a few polls, asking a target whose replies are delayed by about 80 ms with a spread of 10 ms. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
rtt_avg_ms | Round-trip time (average) | ms | warning above 200, error above 1000 |
rtt_min_ms | Round-trip time (minimum) | ms | none |
rtt_max_ms | Round-trip time (maximum) | ms | none |
jitter_ms | Jitter | ms | warning above 30, no error limit. Only when at least two requests were answered |
loss_pct | Packet loss | % | warning above 20, error above 50 |
Jitter is the mean of the absolute difference between the round-trip times of replies that follow each other, in the order the requests were sent (RFC 3550 without its smoothing). Replies that did not come are left out, so the jitter is between the replies that arrived; one reply has no neighbour, and the channel is left out of that poll instead of reporting zero. A path that adds the same delay to every packet has no jitter, however slow it is; a path whose delay varies from packet to packet has as much as the variation. The default limit is a warning only and pages nobody unless a notification rule opts in to warnings: sensors that existed before the channel did get it with the limit, and a poll that is merely jittery should not wake anyone. Set an error limit on the sensor where jitter decides whether the link is usable. Four requests are a small sample of the jitter of a stream; raise count for a steadier figure, or use the qos sensor, which sends a stream.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
count | 4 | Echo requests per poll, 1 to 20. |
spacing_ms | 200 | Delay between requests, 0 to 5000. |
reply_timeout_ms | 1000 | How long to wait for each reply, 10 to 10000. It is shortened when the poll timeout leaves less time. |
payload_size | 56 | ICMP payload in bytes, 0 to 1400. |
Suggested interval: 60 seconds. No credential.
On the target and the probe host
- The target must answer echo requests, and nothing in between may drop them.
- The probe host needs an ICMP socket. Probeward uses an unprivileged datagram socket, which Linux allows only for group ids inside
net.ipv4.ping_group_range. The reference Compose file sets this for the container. On a host install, set it withsysctl -w net.ipv4.ping_group_range="0 2147483647"and persist it in/etc/sysctl.d, or give the binary raw sockets withsetcap cap_net_raw+ep.
Verification
Scripted answers for the jitter arithmetic and its absence with one reply, real sockets on the loopback interface, and a lab target whose network is impaired on purpose (the impairment is on what the target sends back). 20 requests a poll, 100 ms apart, averaged over 6 to 20 polls:
| Target sends back with | Measured |
|---|---|
| nothing added | 0.1 to 0.4 ms round trip, jitter 0.0 to 0.3 ms, no loss |
| a delay of 50 ms | 50.4 ms, jitter 0.3 ms |
| a delay of 100 ms with a spread of 20 ms | 101 ms, jitter 22 ms |
| 5 % loss | 4.8 % over 400 requests |
| a delay of 80 ms with a spread of 10 ms and 2 % loss | 80.5 ms, jitter 6.5 ms, 1.5 to 2.0 % loss |
| everything dropped | 100% packet loss, a failed poll |
What the jitter should be depends on how the impairment spreads its delays: evenly over plus or minus j it is 2j / 3, as a normal spread with a standard deviation of j it is about 1.13 j. The lab's two jittery targets measure, with a separate count of 400 requests, a standard deviation of 20 ms and a mean difference of 22.8 ms for the first (normal) and 6.1 and 6.9 ms for the second (even), as those formulas say. The alerting side of the new channel is covered by two scenario tests, named in acceptance. Not seen: the Windows way of pinging (whole milliseconds, which make small jitter coarse), IPv6, and a path that reorders requests.
The live tests read their targets from the environment and say so and return when they are not set (the variables are listed in the QoS sensor's page):
cargo test -p probeward-sensors --test live_quality ping -- --nocaptureFailures
| Message | Meaning |
|---|---|
100% packet loss: no reply from ... to N echo requests (kind timeout) | Every request went unanswered: the device is down, unreachable, or filtering ICMP. Partial loss is not a failure; the loss_pct limits decide. |
cannot open an ICMP socket. Either allow unprivileged ping ... (kind unreachable) | The probe cannot send ping at all. This is a problem on the Probeward side, see the ICMP sysctl in install. |
cannot send to ... (kind unreachable) | The probe has no route to the address. |
ICMP error from ... (kind protocol) | The network answered with an ICMP error. |