Use it when every request in an exchange takes a fixed 40 or 200 ms longer than the path delay, with no loss.
TCP Delayed ACK
A TCP receiver may hold back an acknowledgment for up to about 40 ms (Linux) or 200 ms (Windows), hoping to acknowledge two segments at once or to send it along with data going the other way.
1. tcpdump -ttt — a small data segment, a gap of about 40 or 200 ms, then the acknowledgment?
2. Same gap on every request, at any time of day → a timer, not the network.
3. No retransmissions → not loss.
4. Fix the sender: one write per message, or TCP_NODELAY.
small segment arrives alone → receiver starts its delayed-acknowledgment timer → sender is waiting for the acknowledgment → timer expires → acknowledgment sent → sender continues
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
tcpdump -ni eth0 -ttt host 192.0.2.10 and tcp port 5432Verification & 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 -ttt host 192.0.2.10 and tcp port 5432
ss -ti dst 192.0.2.10
tcpdump -ttt prints the time since the previous packet on each line, which makes fixed gaps stand out. ss -ti on Linux shows the acknowledgment timeout in use for a connection (ato:40) and, on the sender, the round-trip time it measures — an unexpectedly high and stable value hints at delayed acknowledgments at the far end.
In Wireshark, add a column for tcp.time_delta and look at pure acknowledgments: a cluster at 40 ms or 200 ms, each following a small data segment, is the pattern. tcp.analysis.ack_rtt shows the time each acknowledgment took.
Known-good: acknowledgments for small request segments arrive within the path's round-trip time, or piggybacked on the response.
Step 2 Failure isolation workflow Narrow the fault
- Every request takes about 40 ms or 200 ms longer than the path delay. Delayed acknowledgment meeting a sender that waits; fix the sender's write pattern or set
TCP_NODELAY. - The delay is identical at all times of day. A timer, not congestion.
- The delay appeared after an application change. The application now sends a message in two writes.
- Bulk transfers are fine, interactive exchanges are slow. The delay only bites when a single small segment is left waiting.
- The sender's measured round-trip time is far above the ping time. It includes the receiver's delay.
- Retransmissions are absent. Confirms it is not loss.
- Disabling delayed acknowledgment on the receiver helped, at the cost of more packets. A workaround; the sender is where it should be fixed.
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.
It only hurts when the sender is waiting for that acknowledgment before sending more — typically Nagle's algorithm and an application that writes a message in two pieces. The regularity is the giveaway: network delay varies, a timer does not. The fix is on the sender.
tcpdump -ni <if> -ttt host <ip> and tcp port <port>— time since the previous packet on each line.ss -ti dst <ip>— the acknowledgment timeout in use (ato) and the measured round-trip time.- Wireshark: a
tcp.time_deltacolumn;tcp.analysis.ack_rtt.
ReferenceWhat it is1 section · depth on demand
Mental model
A TCP receiver does not have to acknowledge every segment at once. With delayed acknowledgment it waits a short moment — typically 40 to 200 milliseconds — in the hope of acknowledging two segments together, or of sending the acknowledgment along with data going the other way.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Delayed acknowledgments halve the number of pure acknowledgment packets and are normally invisible. They become a problem in one situation: when the sender, for its own reasons, is waiting for that acknowledgment before sending more. Then every exchange gains a fixed delay of 40 or 200 milliseconds, which in a capture looks like a slow network or a slow server and is neither.
ReferenceHow it works1 section · depth on demand
How it works
The rule the receiver follows. On receiving data, it holds the acknowledgment until one of these happens:
- a second full-size segment arrives — then it acknowledges both at once;
- it has data of its own to send — the acknowledgment rides along;
- a timer expires — about 40 ms on Linux, up to 200 ms on Windows.
During a bulk transfer, segments arrive in quick succession and an acknowledgment goes out for every second one; nothing is delayed in practice. The timer only comes into play when a single segment arrives and nothing follows.
When it hurts. The sender is holding back the rest of its data until the first part is acknowledged, while the receiver is holding back the acknowledgment until more data arrives. Each waits for the other until the receiver's timer fires. The usual cause on the sending side is Nagle's algorithm combined with an application that writes a message in two small pieces.
What it looks like in a capture.
- A small data segment, then a gap of almost exactly 40 ms or 200 ms, then the acknowledgment, immediately followed by the rest of the data.
- The same delay on every request, independent of load.
- A delay that is not loss: nothing is retransmitted.
The regularity is the giveaway. Network delay varies; a timer does not.
Remedies belong on the endpoints.
- On the sender: write each message in one piece, or disable Nagle's algorithm on the socket (
TCP_NODELAY). This is the usual fix. - On the receiver: request immediate acknowledgments (
TCP_QUICKACKon Linux; theTcpAckFrequencysetting on Windows). Less common, and it increases the packet count.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Delayed ACK: rules and side effects
Receivers usually wait a little before acknowledging, in the hope of sending one ACK for two segments or piggybacking it on response data. RFC 5681 recommends delayed ACKs with two limits. An ACK should be sent for at least every second full-sized segment, and an ACK must not be delayed by more than 500 ms. Out-of-order segments should be acknowledged immediately, so the sender learns about gaps without delay. RFC 9293 repeats the rules: delayed ACK should be implemented, and the delay must be under 0.5 seconds.
Delayed ACK timers in practice
| System | Typical delay |
|---|---|
| Linux | 40 ms minimum, adapting with the RTT (quick-ACK mode at connection start) |
| Windows | 200 ms by default |
| macOS | Up to about 100 ms |
When delayed ACK hurts
| Situation | Effect |
|---|---|
| Small request, small response, with Nagle on the sender | The sender waits for an ACK; the receiver waits to delay it: a stall of up to the delayed-ACK time |
| An odd number of segments at the end of a transfer | The last segment waits for the timer |
| Measuring RTT from ACK timing | ACK delay inflates the apparent RTT |
Recognising it in captures
| Pattern | Meaning |
|---|---|
| An ACK for every second segment during bulk transfer | Normal delayed ACK |
| A pause of about 40 or 200 ms before an ACK, then the next request | A delayed ACK interacting with Nagle |
| An immediate ACK after a gap | Out-of-order acknowledgement, as the RFC requires |
host$ tshark -r app.pcap -Y "tcp.stream==2 && tcp.len==0 && tcp.flags.ack==1" -T fields -e frame.time_delta_displayed -e tcp.ack | head -5
0.040112 1830472514
0.040087 1830473027
host$ ss -ti dst 10.30.0.15 | grep -o "ato:[0-9]*\|rtt:[^ ]*"
ato:40
host$ sudo sysctl net.ipv4.tcp_autocorking
Repeated 40 ms gaps before pure ACKs show the Linux delayed-ACK timer at work. ato in ss -i shows the current ACK timeout.
Fixing stalls
Fix it in the application, not the network. Disable Nagle on the sender (TCP_NODELAY) for request-response protocols, or use TCP_QUICKACK on Linux receivers where appropriate. Network devices can't change this behaviour.
Documented example, not captured output.
How it works
With delayed ACK the receiver waits briefly (up to ~40–200 ms depending on OS) before acknowledging, hoping to combine the ACK with data or acknowledge two segments at once. It saves packets but can add latency for request/response traffic, especially when combined with Nagle on the sender.
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 Delayed ACK. 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.