Lab
The detection lab
The measured numbers of this page are a study of redis 7.4.11 and kernel 6.6. The data comes from lab data file harness-2026-10-08.json of 2026-10-08, on redis 7.4.11 and kernel 6.6. The oldest data of this page is 46 days old at this build, on 2026-11-23. The age limit of this data is 30 days, from 2026-12-07. The band comes from the current algebra at each build.
A peer goes silent. The client finds out when the first live timer fires. This lab computes that timer from the rules of the kernel at version 6.6.
- First detector
- keepalive
- Closed form
- 11 s
- Lands in
- 10.996 s to 11.352 s
- Measured
- 11.054 s to 11.269 s
Keepalive tells the client after 11 s, at most 352 ms late.
The whole timeline
Near the prediction
- Prediction
- Closed form
- Counted run
- Keepalive probes
How the lab computes the time
Section titled “How the lab computes the time”- Keepalive counts from the last segment that the client received. It waits for the idle time, and then for one interval for each probe without an answer.
- The retransmission give-up counts from the first retransmission of the RTO timer. It is not the tail loss probe one RTO before it. The give-up comes at the first firing at or after the budget of
tcp_retries2. - A frozen process keeps the acknowledgments of its kernel. Each acknowledgment starts keepalive again, so no TCP timer fires.
How late a timer fires
Section titled “How late a timer fires”The kernel files each timer on a level of its timer wheel. The wheel rounds the timer up to the granularity of that level. At HZ 250, a 2 s timer fires up to 32 ms late, and a 2 h timer fires up to 131 s late.
The real RTO is the round trip plus 200 ms, in whole jiffies. At HZ 250 on a fast network, the RTO is 204 ms, not 200 ms. The band of the lab includes the step past the budget and the rounding of each firing.
Where the numbers come from
Section titled “Where the numbers come from”Each time comes from the algebra of this repository, @mark1russell7/algebra, on the document of Linux TCP in @mark1russell7/machines. At the defaults, the algebra gives 7875 s for keepalive, 924.6 s for the give-up, and 149.504 s for the lateness of keepalive. The lab does no timer arithmetic of its own.