TCP Persist Timer & Zero Window
Cheat sheet · https://pcornel.dk/topic.php?topic=327
Answer
When a TCP receiver's buffer is full it advertises a window of zero and the sender must stop. The sender then probes at intervals — the persist timer — until the receiver announces space with a window update.
Remember
A zero window means the receiving application is not reading fast enough: the network is delivering faster than the endpoint consumes. Nothing is retransmitted and the path is fine. As long as probes are answered the connection never times out — a stuck application can hold it indefinitely.
First checks
tcpdump -ni <if> host <ip> and tcp port <port>—win 0on the receiver's segments.ss -tim dst <ip>— buffers and windows;rwnd_limitedon the sender.ss -to state established dst <ip>—timer:(persist,…)while probing.- Wireshark:
tcp.analysis.zero_window,tcp.analysis.window_update.
Commands
tcpdumpss -timss -to
Verify in this order
receiver's application reads promptly → buffer has room → advertised window above zero → sender keeps sending; buffer full → window 0 → probes answered → window update when space frees
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=327