Results
Network failures on the direct pair
The measured numbers of this page are a study of redis 7.4 and kernel 6.17.0. The data comes from data file faults-2026-10-17.json of 2026-10-17, on redis 7.4 and kernel 6.17.0. The oldest data of this page is 37 days old at this build, on 2026-11-23. The age limit of this data is 30 days, from 2026-12-07. The subject is code of this repository, thus a change of the code can change the numbers.
- Catalogs
- T01
- Date
- 2026-10-17
- Kernel
- Linux 6.17 · HZ 1000
- Cells
- 47
- Runs
- 517 runs
These are the results of the T01 cells, from 2026-10-17. T01 is the direct pair: the TCP client of the harness and a stock Redis 7.4 container. The harness injected each network failure that it can make. The cells put the failures at four positions: an idle client, a request in flight, an idle server and a reply in flight. Each cell has 11 runs in fresh environments.
CI started the cells on the hosted runners of GitHub. The kernel is Linux 6.17, with HZ 1000. The full run of the catalogs at main, 39074841434, did the 47 cells with each other catalog, in 12 shards.
Of the 47 cells, 39 hold against the prediction of the algebra, and no cell fails. The other 8 cells are measurements only, because their outcome is a distribution. No run of the 517 is void.
The first run of these cells, on 2026-10-14, was on a development VM with Linux 6.6 at HZ 250. Each cell that it judged holds on the runners too. The catalog gives each band at the HZ of its run. Thus the bands of this page are not the bands of the first run: 19 are narrower, and 18 are wider.
What the cells found
Section titled “What the cells found”- An ICMP host or net unreachable ends a request sooner. At
tcp_retries2 = 3, the client gives up after approximately 3.12 s, not 6.18 s as in a black hole. Each ICMP of these two codes takes back one doubling of the backoff (RFC 6069). Thus each wait is one RTO, and the kernel sends 16 retransmissions, not 5. - A port unreachable and an admin prohibited do not revert the backoff. Their cells give up at the time of a black hole. They end with
ECONNREFUSEDandEHOSTUNREACH, where a black hole ends withETIMEDOUT. - An idle connection still ends with
ETIMEDOUT. Keepalive detects each ICMP cell at the time of a black hole. The sequence number of a keepalive probe is one less thansnd_una, thus it is outside the window. Thus the kernel drops the ICMP that answers the probe, as an ICMP out of the window. - A FIN arrives in less than 50 µs. The kernel of a process that stops with SIGKILL closes its socket with a FIN. The observer reads the end of the file after a median of 42 µs to 49 µs. No timer is in the path.
- Latency moves the RTO, and the give-up moves with it. The give-up comes at the first firing of the RTO timer after the budget of 3 s. Thus a small change of the RTO can move the give-up by a full step. A black hole gave up after 6.176 s with no latency, 3.152 s at 20 ms and 4.304 s at 100 ms.
- Many segments in flight recover a loss without the RTO. A reply of 256 KiB has 182 segments. When netem loses one of them, the segments after it get SACKs, and the server sends a fast retransmission. Thus most replies take approximately 1 ms, where a PING waits for the RTO of 200 ms or more.
- The first run gave two fixes of the harness. The first connection of each environment waited for ARP, and under a latency that wait was one more delayed round trip. Thus its RTO was longer, and a stall cell failed on the first connection of each environment. A ping resolves the neighbors before the first connection. The MTU rule was on OUTPUT, in the namespace of the server, where a drop fails each send with
EPERM. The rule is on INPUT in the namespace of the client, where the long segments arrive.
A black hole
Section titled “A black hole”A black hole drops each segment in the two directions. Nothing comes back, thus a timer of the observer must detect the failure. An idle connection detects it by keepalive. A request or a reply in flight detects it by the give-up of its retransmissions.
- Prediction
- 10.999 s to 11.704 s
- Median
- 11.44 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [10.998, 11.705] s; median 11.440005 s, its interval [11.230212, 11.600125] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.176 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [2.999, 6.417] s; median 6.176001 s, its interval [6.160005, 6.184008] s.
- Prediction
- 12.6 s to 26.688 s
- Median
- 12.888 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 12.6 s to 26.688 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 5, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [12.599, 26.689] s; median 12.888007 s, its interval [12.76801, 13.079989] s.
- Prediction
- 3 s to 6.736 s
- Median
- 3.152 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.736 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The target adds 20 ms of latency to each segment that it sends.
11 of 11 runs inside [2.999, 6.737] s; median 3.151991 s, its interval [3.128028, 3.176014] s.
- Prediction
- 3 s to 8.52 s
- Median
- 4.304 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 8.52 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The target adds 100 ms of latency to each segment that it sends.
11 of 11 runs inside [2.999, 8.521] s; median 4.30403 s, its interval [4.264005, 4.312009] s.
- Prediction
- 7.999 s to 8.704 s
- Median
- 8.2699 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 7.999 s to 8.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [7.998, 8.705] s; median 8.26989 s, its interval [8.095524, 8.460219] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.184 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3. Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [2.999, 6.417] s; median 6.183992 s, its interval [6.152007, 6.192027] s.
An ICMP unreachable
Section titled “An ICMP unreachable”The peer answers each segment from the observer with an ICMP unreachable. Linux keeps each ICMP as a soft error on an established socket, and it continues to retransmit. Then the give-up reports the errno of the ICMP, not ETIMEDOUT. The sender of the ICMP sets icmp_ratelimit to 0, thus each retransmission gets its own ICMP.
Host unreachable
Section titled “Host unreachable”A host unreachable (code 1) reverts one doubling of the backoff for each retransmission. Thus the give-up comes at most one RTO after its budget. At tcp_retries2 = 3, the band is 3 s to 3.329 s, where a black hole has 3 s to 6.416 s.
- Prediction
- 10.999 s to 11.704 s
- Median
- 11.4267 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [10.998, 11.705] s; median 11.42667 s, its interval [11.274915, 11.594425] s.
- Prediction
- 3 s to 3.329 s
- Median
- 3.12 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EHOSTUNREACH from the give-up of the retransmissions, 3 s to 3.329 s after the first retransmission of the RTO timer. Each counted run ended with EHOSTUNREACH.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [2.999, 3.33] s; median 3.119992 s, its interval [3.119983, 3.120012] s.
- Prediction
- 12.6 s to 13.313 s
- Median
- 12.688 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EHOSTUNREACH from the give-up of the retransmissions, 12.6 s to 13.313 s after the first retransmission of the RTO timer. Each counted run ended with EHOSTUNREACH.
The observer sets tcp_retries2 = 5, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [12.599, 13.314] s; median 12.687998 s, its interval [12.687977, 12.688015] s.
- Prediction
- 3 s to 3.341 s
- Median
- 3.136 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EHOSTUNREACH from the give-up of the retransmissions, 3 s to 3.341 s after the first retransmission of the RTO timer. Each counted run ended with EHOSTUNREACH.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0. The target adds 20 ms of latency to each segment that it sends.
11 of 11 runs inside [2.999, 3.342] s; median 3.136 s, its interval [3.135987, 3.136008] s.
- Prediction
- 3 s to 3.389 s
- Median
- 3.04 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EHOSTUNREACH from the give-up of the retransmissions, 3 s to 3.389 s after the first retransmission of the RTO timer. Each counted run ended with EHOSTUNREACH.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0. The target adds 100 ms of latency to each segment that it sends.
11 of 11 runs inside [2.999, 3.39] s; median 3.039997 s, its interval [3.039987, 3.04001] s.
- Prediction
- 7.999 s to 8.704 s
- Median
- 8.3488 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 7.999 s to 8.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The sender of the ICMP sets icmp_ratelimit = 0. Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [7.998, 8.705] s; median 8.348831 s, its interval [8.113616, 8.543215] s.
- Prediction
- 3 s to 3.329 s
- Median
- 3.12 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EHOSTUNREACH from the give-up of the retransmissions, 3 s to 3.329 s after the first retransmission of the RTO timer. Each counted run ended with EHOSTUNREACH.
The observer sets tcp_retries2 = 3. The sender of the ICMP sets icmp_ratelimit = 0. Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [2.999, 3.33] s; median 3.120009 s, its interval [3.119992, 3.120074] s.
Net unreachable
Section titled “Net unreachable”A net unreachable (code 0) reverts the backoff as a host unreachable does. Its give-up reports ENETUNREACH.
- Prediction
- 10.999 s to 11.704 s
- Median
- 11.4513 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [10.998, 11.705] s; median 11.451311 s, its interval [11.290809, 11.648149] s.
- Prediction
- 3 s to 3.329 s
- Median
- 3.12 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ENETUNREACH from the give-up of the retransmissions, 3 s to 3.329 s after the first retransmission of the RTO timer. Each counted run ended with ENETUNREACH.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [2.999, 3.33] s; median 3.119999 s, its interval [3.119977, 3.120039] s.
Port unreachable
Section titled “Port unreachable”A port unreachable (code 3) does not revert the backoff. Thus its give-up comes at the time of a black hole, and it reports ECONNREFUSED.
- Prediction
- 10.999 s to 11.704 s
- Median
- 11.3986 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [10.998, 11.705] s; median 11.39862 s, its interval [11.197442, 11.5542] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.184 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ECONNREFUSED from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ECONNREFUSED.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [2.999, 6.417] s; median 6.183977 s, its interval [6.160015, 6.199998] s.
Admin prohibited
Section titled “Admin prohibited”An admin prohibited (code 13) does not revert the backoff either. Its give-up comes at the time of a black hole, and it reports EHOSTUNREACH.
- Prediction
- 10.999 s to 11.704 s
- Median
- 11.3959 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [10.998, 11.705] s; median 11.395853 s, its interval [11.200252, 11.558003] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.168 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EHOSTUNREACH from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with EHOSTUNREACH.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3. The sender of the ICMP sets icmp_ratelimit = 0.
11 of 11 runs inside [2.999, 6.417] s; median 6.16801 s, its interval [6.167963, 6.175991] s.
A simplex drop
Section titled “A simplex drop”A simplex drop loses the segments in one direction only. In each direction, nothing that the observer can use comes back. Thus each cell gets the time of a black hole.
To the server
Section titled “To the server”- Prediction
- 10.999 s to 11.704 s
- Median
- 11.3932 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [10.998, 11.705] s; median 11.393188 s, its interval [11.191527, 11.599225] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.176 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [2.999, 6.417] s; median 6.176024 s, its interval [6.167981, 6.192026] s.
- Prediction
- 7.999 s to 8.704 s
- Median
- 8.3144 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 7.999 s to 8.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [7.998, 8.705] s; median 8.314381 s, its interval [8.151142, 8.574426] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.176 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3. Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [2.999, 6.417] s; median 6.175997 s, its interval [6.159987, 6.191995] s.
To the client
Section titled “To the client”- Prediction
- 10.999 s to 11.704 s
- Median
- 11.3709 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 10.999 s to 11.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [10.998, 11.705] s; median 11.370887 s, its interval [11.221492, 11.630014] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.184 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [2.999, 6.417] s; median 6.183994 s, its interval [6.167993, 6.191993] s.
- Prediction
- 7.999 s to 8.704 s
- Median
- 8.3448 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from keepalive, 7.999 s to 8.704 s after the last segment that the observer received. Each counted run ended with ETIMEDOUT.
Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [7.998, 8.705] s; median 8.344803 s, its interval [8.139113, 8.506556] s.
- Prediction
- 3 s to 6.416 s
- Median
- 6.176 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3. Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [2.999, 6.417] s; median 6.176022 s, its interval [6.167994, 6.191972] s.
The process of the peer stops with SIGKILL, and its kernel stays up. The kernel closes the socket of the process with a FIN. The observer reads an end of file one way after the close, and no timer is in the path.
- Prediction
- 0 s to 1 ms
- Median
- 49 µs
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EOF from the FIN of the peer, 0 s to 1 ms after the close of the socket of the peer. Each counted run ended with EOF.
The observer sets tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [-0.001, 0.002] s; median 0.000049 s, its interval [0.000046, 0.000055] s.
- Prediction
- 0 s to 1 ms
- Median
- 42 µs
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EOF from the FIN of the peer, 0 s to 1 ms after the close of the socket of the peer. Each counted run ended with EOF.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
11 of 11 runs inside [-0.001, 0.002] s; median 0.000042 s, its interval [0.000035, 0.000046] s.
- Prediction
- 0 s to 1 ms
- Median
- 42 µs
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts EOF from the FIN of the peer, 0 s to 1 ms after the close of the socket of the peer. Each counted run ended with EOF.
Redis sets tcp-keepalive 5 and timeout 0.
11 of 11 runs inside [-0.001, 0.002] s; median 0.000042 s, its interval [0.000038, 0.000048] s.
A frozen process
Section titled “A frozen process”The cgroup freezer stops the process of the peer, and its kernel stays up. The frozen kernel acknowledges each segment, and it answers each keepalive probe. Thus no TCP timer fires. For the server, the frozen peer is the client.
- Prediction
- silent for 20 s
- Median
- none
- Runs
- 11 counted
The algebra predicts that no TCP timer fires in a window of 20 s. The harness measured silence in 11 of 11 counted runs.
The observer sets tcp_retries2 = 3, tcp_keepalive_time = 5, tcp_keepalive_intvl = 2 and tcp_keepalive_probes = 3.
nothing detected it in 11 runs of 20 s.
- Prediction
- silent for 20 s
- Median
- none
- Runs
- 11 counted
The algebra predicts that no TCP timer fires in a window of 20 s. The harness measured silence in 11 of 11 counted runs.
Redis sets tcp-keepalive 5 and timeout 0.
nothing detected it in 11 runs of 20 s.
A stall
Section titled “A stall”A stall is a black hole that stops by itself, at its length after the send of the request. The connection moves again at the first retransmission after the stall, and the reply comes back one round trip later. A latency moves each retransmission, thus it also moves the return of the reply.
- Prediction
- 1.604 s to 1.697 s
- Median
- 1.6585 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts that the reply comes back 1.604 s to 1.697 s after the send of the request. Nothing detected the stall, and each counted run got its reply.
The stall lasts 1 s from the send of the request.
11 of 11 runs inside [1.603, 1.698] s; median 1.658458 s, its interval [1.638664, 1.665276] s.
- Prediction
- 1.764 s to 1.877 s
- Median
- 1.8164 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts that the reply comes back 1.764 s to 1.877 s after the send of the request. Nothing detected the stall, and each counted run got its reply.
The target adds 20 ms of latency to each segment that it sends. The stall lasts 1 s from the send of the request.
11 of 11 runs inside [1.763, 1.878] s; median 1.816395 s, its interval [1.806483, 1.857214] s.
- Prediction
- 1.201 s to 1.385 s
- Median
- 1.3494 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts that the reply comes back 1.201 s to 1.385 s after the send of the request. Nothing detected the stall, and each counted run got its reply.
The target adds 100 ms of latency to each segment that it sends. The stall lasts 1 s from the send of the request.
11 of 11 runs inside [1.2, 1.386] s; median 1.349414 s, its interval [1.334294, 1.36279] s.
- Prediction
- 6.426 s to 6.649 s
- Median
- 6.5924 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts that the reply comes back 6.426 s to 6.649 s after the send of the request. Nothing detected the stall, and each counted run got its reply.
The stall lasts 3.5 s from the send of the request.
11 of 11 runs inside [6.425, 6.65] s; median 6.592403 s, its interval [6.580052, 6.614321] s.
- Prediction
- 4.811 s to 5.125 s
- Median
- 4.9897 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts that the reply comes back 4.811 s to 5.125 s after the send of the request. Nothing detected the stall, and each counted run got its reply.
The target adds 100 ms of latency to each segment that it sends. The stall lasts 3.5 s from the send of the request.
11 of 11 runs inside [4.81, 5.126] s; median 4.989664 s, its interval [4.970823, 5.020611] s.
An MTU black hole
Section titled “An MTU black hole”The client drops each segment from the server that is longer than 1200 bytes. The server sends a value of 2 MB in long segments, and no long segment arrives. MTU probing is off on the server (tcp_mtu_probing = 0), and no ICMP comes back. Thus the server does not make its segments shorter, and its retransmissions give up as in a black hole.
- Prediction
- 3 s to 6.416 s
- Median
- 6.16 s
- Runs
- 11 counted
- Prediction
- Counted run
- Median
The algebra predicts ETIMEDOUT from the give-up of the retransmissions, 3 s to 6.416 s after the first retransmission of the RTO timer. Each counted run ended with ETIMEDOUT.
The observer sets tcp_retries2 = 3 and tcp_mtu_probing = 0. Redis sets tcp-keepalive 5 and timeout 0. Each segment to the client that is longer than 1200 bytes drops.
11 of 11 runs inside [2.999, 6.417] s; median 6.160024 s, its interval [6.144018, 6.184013] s.
The netem cells
Section titled “The netem cells”These cells use netem on each segment that the target sends. It loses, duplicates, reorders, corrupts or delays the segments. The reply times are a distribution, thus these cells have no band. A prediction of a distribution needs a simulator, and the program has no simulator at this time.
Each request of these cells waits for the reply before it, thus a stall hides the sends that a fixed schedule makes in it. A quantile of these cells is the reply time of one request with no queue. It is a lower bound on a latency under load. The slowest reply is not a lower bound of that kind, and each new verdict keeps it.
The cells have two workloads:
- A stream of PINGs. The client sends 100 requests, each 10 ms after the reply before. Each reply has one segment in flight.
- A stream of
GETrequests for a 256 KiB value. The client sends 10 requests. Each reply has 182 segments in flight, thus a reordering or a duplicate has segments to act on.
Each chart shows the fastest, the median and the slowest reply of each run.
- A PING waits for the RTO. Under loss and corruption, the median reply of each run is shorter than 0.16 ms. Under loss, the slowest reply of each run took 0.21 s or more, because a lost segment waits for its retransmission. Under corruption, 10 runs of 11 had such a reply. The other run had no retransmission, and its slowest reply took 0.31 ms.
- A long reply recovers by SACK. Under a loss of 5%, the median reply of each run took 1.05 ms at most. The server sent 277 fast retransmissions in the 11 runs. Only 5 runs had a reply of 0.2 s or more. Under corruption, 2 runs had such a reply.
- A duplicate costs nothing but its DSACK. The median reply took 1.23 ms, and the slowest of all took 4.8 ms. The server got 1,827 DSACKs.
- A reordering costs fast retransmissions. The replies took 10.6 ms to 282 ms, with a median of 71 ms. The server got 889 DSACKs and sent 711 fast retransmissions, and the reordering degree of its kernel went to 180.
- Prediction
- no band
- Median
- 131 µs
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a lost segment waits for a retransmission.
The target applies netem loss 5% to each segment that it sends.
11 runs, 1100 replies: median 0.000131 s, p99 0.217139 s, slowest 0.432645 s, 43 retransmissions, 0 connections ended.
- Prediction
- no band
- Median
- 147 µs
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a lost segment waits for a retransmission.
The target applies netem loss 20% to each segment that it sends.
11 runs, 1100 replies: median 0.000147 s, p99 0.435113 s, slowest 3.245696 s, 155 retransmissions, 0 connections ended.
- Prediction
- no band
- Median
- 70 µs
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a corrupt segment fails its checksum, as a lost one does.
The target applies netem corrupt 5% to each segment that it sends.
11 runs, 1100 replies: median 0.00007 s, p99 0.217895 s, slowest 0.851577 s, 44 retransmissions, 0 connections ended.
- Prediction
- no band
- Median
- 19.8 ms
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a jitter moves the RTO, which the round trip of one sample does not give.
The target applies netem delay 20ms 10ms to each segment that it sends.
11 runs, 1100 replies: median 0.019837 s, p99 0.030001 s, slowest 0.030213 s, 0 retransmissions, 0 connections ended.
- Prediction
- no band
- Median
- 71 ms
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a segment out of order gets a SACK, and three can start a fast retransmission.
The target applies netem delay 10ms reorder 25% 50% to each segment that it sends.
11 runs, 110 replies: median 0.071033 s, p99 0.261958 s, slowest 0.281995 s, 0 retransmissions, 0 connections ended. Reordering: 648 arrivals out of order and 867 duplicate arrivals at the client, its kernel counted 1180 segments out of order, the server held up to 90 segments SACKed, got 889 DSACKs, sent 711 fast retransmissions, saw 274 reorderings, and its reordering degree went to 180.
- Prediction
- no band
- Median
- 1.23 ms
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a duplicate gets a DSACK, and costs nothing but its ACK.
The target applies netem duplicate 10% to each segment that it sends.
11 runs, 110 replies: median 0.001232 s, p99 0.003374 s, slowest 0.004824 s, 0 retransmissions, 0 connections ended. Reordering: 0 arrivals out of order and 741 duplicate arrivals at the client, its kernel counted 0 segments out of order, the server held up to 0 segments SACKed, got 1827 DSACKs, sent 0 fast retransmissions, saw 0 reorderings, and its reordering degree went to 3.
- Prediction
- no band
- Median
- 761 µs
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a lost segment gets a SACK recovery, with segments in flight after it.
The target applies netem loss 5% to each segment that it sends.
11 runs, 110 replies: median 0.000761 s, p99 0.255122 s, slowest 0.614756 s, 0 retransmissions, 0 connections ended. Reordering: 1146 arrivals out of order and 0 duplicate arrivals at the client, its kernel counted 1315 segments out of order, the server held up to 131 segments SACKed, got 0 DSACKs, sent 277 fast retransmissions, saw 0 reorderings, and its reordering degree went to 3.
- Prediction
- no band
- Median
- 1.47 ms
- Runs
- 11 counted
- Counted run
This cell has no band, because its reply times are a distribution. A prediction of a distribution needs a simulator, and the program has no simulator at this time. In this cell, a corrupt segment fails its checksum, as a lost one does.
The target applies netem corrupt 5% to each segment that it sends.
11 runs, 110 replies: median 0.001473 s, p99 0.205149 s, slowest 0.206114 s, 1 retransmissions, 0 connections ended. Reordering: 1808 arrivals out of order and 1 duplicate arrivals at the client, its kernel counted 2090 segments out of order, the server held up to 177 segments SACKed, got 0 DSACKs, sent 98 fast retransmissions, saw 0 reorderings, and its reordering degree went to 3.
Where the data comes from
Section titled “Where the data comes from”The harness wrote a raw record of each cell: the cell, the manifests of its environments and each run with the records of the kernel. The script packages/site/scripts/faults.ts reads each record again with the code of the harness. It writes the copy that this page shows, and that copy names no machine. The cells and their predictions are in the catalog.