Pcornel
Networking · Network & Protocols › TCP, UDP & Transport

TCP Delayed ACK

Cheat sheet · https://pcornel.dk/topic.php?topic=325

Back to the Topic

Answer

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.

Remember

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.

First checks

  • 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_delta column; tcp.analysis.ack_rtt.

Commands

ss -i
tcpdump -ttt
ss -ti

Verify in this order

small segment arrives alone → receiver starts its delayed-acknowledgment timer → sender is waiting for the acknowledgment → timer expires → acknowledgment sent → sender continues

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=325

Confirmation

Confirm action

Continue?