The systems program
When does a client know that its peer is gone?
A client holds a connection, and its peer goes silent. The algebra computes the time until the client knows, from the rules of each system. The harness then injects the fault, measures the time on one clock, and compares it with the prediction.
The program starts at the TCP stack of Linux. It continues through proxies, databases and Kubernetes.
The results so far
2026-10-13 to 2026-11-17- Cells
- 541
- Hold
- 507
- Fail
- 0
- Measured
- 29
The cells have 5,954 counted runs and 66 void runs, on 14 pages of results. 5 cells are calibrations. 11 cells that failed held on a re-run.
- Calibration6 hold
- The S1 cells12 hold
- Network failures39 hold8 measured
- Middleboxes and proxies39 hold7 measured
- Valkey under Sentinel9 hold4 measured
- HTTP keep-alive38 hold1 measured
- MongoDB58 hold
- PostgreSQL75 hold
- RabbitMQ21 hold
- gRPC47 hold1 measured
- Kubernetes in kind26 hold2 measured3 calibration
- gRPC through Istio14 hold2 calibration
- R3: the compiled queue115 hold6 measured
- The port range8 hold
One question, three answers
Section titled “One question, three answers”Linux 6.6 has default settings for each TCP timer. With these settings, the client learns of a black hole or a frozen peer at these times. The model of the lab computes each time from the rules of the kernel.
- An idle connection
- 2 h 11 min 15 s
- Keepalive tells it.
- A request in flight
- 15 min 24.6 s
- The give-up of the retransmissions tells it.
- A frozen process
- never
- No TCP timer fires.
The lab below computes these times for your settings. Select a harness cell to see the runs that the harness measured. Change a setting to see the new prediction.
- 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
The runs of this lab 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 lab 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.
The lab shows only the TCP stack. Follow one request through each layer, from the program down to Kubernetes and the NIC. See which layer knows first.
What the cells found
Section titled “What the cells found”Each card is a finding of a page of results. The page gives the numbers, the runs and the prediction.
- Network failures · T01An ICMP host or net unreachable ends a request sooner than a black hole does.
- Middleboxes and proxies · T02The idle timeouts of HAProxy ignore TCP keepalive.
- Middleboxes and proxies · TOXToxiproxy changes resets and timeouts into normal closes.
- Valkey under Sentinel · T12The plain
SENTINEL FAILOVERloses writes, and the coordinated one does not. - HTTP keep-alive · T01The pools of Node close late by a few milliseconds.
- MongoDB · T01 · T03The monitor of the driver is not quiet under an ICMP host unreachable.
- PostgreSQL · T01No timer of node-postgres ends a query at its defaults.
- PostgreSQL · T01 · T10Behind a black hole, the keepalive checks of HikariCP wait in one queue.
- RabbitMQ · T01A stopped RabbitMQ broker resets its clients at once: its sockets have linger 0.
- RabbitMQ · T11A quorum queue fails over after 6 s, but amqplib leaves its client on the silent node for 3 minutes.
- gRPC · T01A server of grpc-go finds a client that is gone in 30 s, and grpc-js does not find a server that is gone.
- gRPC · T01The deadline of a gRPC call races the same deadline at a server of grpc-go: the call can end with CANCELLED.
- Kubernetes in kind · T07A stale conntrack entry catches a later connection.
- Calibration · Stage 0More environments do not change the spread of keepalive.
The parts of the program
Section titled “The parts of the program”- 01A corpus
Each fact about a system is a claim. A claim has a unit, the conditions where it is true, its sources and its grade of evidence.
- 02An algebra
The algebra reads the state machines and the settings. It gives each timer a closed form, and a band for how late the timer fires.
- 03A harness
The harness starts each cell in fresh containers. It injects a fault, measures the result on one clock, and compares the result with the prediction.
- 04A prober
The prober is an eBPF program. It records what the kernel does to each socket, to the nanosecond.
The thesis tells why a connection is a chain of state machines. The timers behind their slot show how the prober tells a delay of the VM from a delay of the kernel. The first harness cells stay on their own page.