Use it when a transfer stalls with zero-window packets in the capture, or a connection hangs for a long time without failing.
TCP Persist Timer & Zero Window
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.
1. Which side announces the zero window? That is the side to examine.
2. How long does each episode last, and how often?
3. On that host: what is the application doing — CPU, disk, blocked on something else?
4. Brief and frequent → the receiver is simply slower; it sets the throughput.
5. Minutes long → the application is stuck.
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
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
tcpdump -ni eth0 host 192.0.2.10 and tcp port 445Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
tcpdump -ni eth0 host 192.0.2.10 and tcp port 445
ss -tim dst 192.0.2.10
ss -to state established dst 192.0.2.10
In tcpdump output the window is printed on every segment (win 0 for a zero window). ss -tim on Linux shows a connection's buffer usage and windows; on the sender, rwnd_limited gives the share of time it was held back by the receiver, and a timer:(persist,…) entry in ss -to shows that it is currently probing a zero window.
In Wireshark: tcp.analysis.zero_window, tcp.analysis.zero_window_probe, tcp.analysis.window_update and tcp.analysis.window_full. Note which side announces the zero window — that is the side to investigate — and how long each episode lasts.
On the receiving host, look at what the application is doing during those periods: CPU, disk and its own logs.
Known-good: the window stays above zero throughout, or drops to zero only for brief moments.
Step 2 Failure isolation workflow Narrow the fault
- Zero-window announcements from the receiver, transfer stalled. The receiving application is not reading; examine that host and process.
- Repeated short zero-window episodes. The receiver is somewhat slower than the sender — slow storage, limited CPU; throughput is set by the receiver.
- A connection hangs for minutes or hours without failing. The window stays at zero and probes are answered; the receiving application is stuck.
- The server announces zero window to a client's upload. The server application or its disk is the bottleneck.
- The client announces zero window to a download. The client application is the bottleneck.
- "Window full" on the sender without a zero window. The receiver's window is small but not zero; check window scaling and buffer sizes.
- Probes go unanswered. No longer a flow-control matter: the receiver or the path has failed.
- The network is blamed for the stall. The capture shows the opposite: no loss, and the sender waiting on the receiver's instruction.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
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.
ReferenceWhat it is1 section · depth on demand
Mental model
When a TCP receiver's buffer is full, it advertises a window of zero, and the sender must stop. To find out when it may continue, the sender probes the receiver at intervals, governed by the persist timer. When space becomes available, the receiver announces it with a window update and the transfer resumes.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
A zero window is the receiver saying that its application is not taking data as fast as it arrives. The network is delivering faster than the endpoint can consume. A transfer that stalls with zero-window packets in the capture is therefore an application or host problem at the receiving end — and one that can last indefinitely, since TCP will wait as long as the receiver keeps answering.
ReferenceHow it works1 section · depth on demand
How it works
The sequence.
1. Data arrives faster than the receiving application reads it. The receive buffer fills, and the window advertised in the receiver's acknowledgments shrinks.
2. The buffer is full. The receiver advertises window 0.
3. The sender stops sending data and starts the persist timer.
4. When the timer expires, the sender transmits a window probe — a tiny segment the receiver has to acknowledge. The acknowledgment carries the current window.
5. If the window is still zero, the sender waits longer before the next probe; the interval grows, up to about a minute.
6. When the application reads and frees space, the receiver sends a window update. The sender resumes.
Why probing is needed. The window update is an ordinary acknowledgment with no data, and it is not retransmitted if lost. Without probes, a lost update would leave both sides waiting for ever: the receiver for data, the sender for permission.
No time limit. As long as the probes are acknowledged, the connection stays up, however long the window stays at zero. A receiver whose application has stopped reading altogether holds the connection, and the sender's data, indefinitely. Only an application-level timeout ends it.
What makes a receiver slow. The application is busy with something else, blocked on a disk or a database, paused, or simply slower than the sender — a backup target with slow storage, a client rendering faster than it downloads, a process being debugged.
In Wireshark the events are labelled: TCP ZeroWindow (the receiver's announcement), TCP ZeroWindowProbe and ZeroWindowProbeAck (the probing), TCP Window Update (space is available again) and TCP Window Full (the sender has used the whole window).
A zero window differs from loss in every respect: nothing is retransmitted, the sender is idle by instruction, and the path is fine.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Zero windows and the persist timer
A zero window is a receiver saying its buffer is full. The sender must stop and wait until space opens up. RFC 9293 handles the risk that the window-update ACK gets lost. Zero-window probing must be supported. The first probe should go out after one retransmission timeout, and the interval between probes should increase exponentially. As long as the receiver keeps acknowledging the probes, the sender must keep the connection open, even if the window stays closed indefinitely.
The sequence in a capture
| Step | Seen as |
|---|---|
| The receiver's buffer fills | Advertised windows shrink, then win 0 |
| The sender stops | No data; Wireshark marks "TCP ZeroWindow" |
| Probing | Small segments (one byte or none) at growing intervals: "TCP ZeroWindowProbe" |
| The receiver answers | win 0 again ("ZeroWindowProbeAck"), or a window update |
| Recovery | A "TCP Window Update", then data resumes |
What a zero window means
| Observation | Interpretation |
|---|---|
| Zero windows from the server | The server application isn't reading the request body fast enough |
| Zero windows from the client | The client is slow to process downloads (disk, CPU, a slow consumer) |
| A zero window lasting minutes | A stuck application on the receiver |
| Window full on the sender, but never zero | The sender is limited by the advertised window: tune buffers or scaling |
Related rules (RFC 9293)
Receivers should not shrink the window, which means taking back space already offered. Senders must cope if they do. Receivers must also avoid silly window syndrome, opening the window only in reasonably large steps rather than a few bytes at a time.
host$ tshark -r stall.pcap -Y "tcp.analysis.zero_window || tcp.analysis.zero_window_probe || tcp.analysis.window_update" -T fields -e frame.time_relative -e ip.src -e tcp.window_size -e _ws.expert.message | head -6
12.402 10.30.0.15 0 TCP ZeroWindow
12.606 10.110.0.64 0 TCP ZeroWindowProbe
13.014 10.110.0.64 0 TCP ZeroWindowProbe
13.015 10.30.0.15 0 TCP ZeroWindowProbeAck
13.830 10.30.0.15 65280 TCP Window Update
host$ ss -tno dst 10.30.0.15 | grep -o "timer:(persist[^)]*)"
Probe intervals of about 200 ms, then 400 ms, show the exponential backoff. The network isn't at fault here. The fix belongs on the receiving host or application.
Documented example, not captured output.
How it works
When the receiver's buffer is full it advertises a zero window and the sender stops. The sender then runs the persist timer and sends small window probes until the receiver opens the window again. Many zero-window events in a capture mean the receiving application is not reading fast enough — not a network problem.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → TCP Persist Timer & Zero Window. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9293.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.