This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a8bb89bf6803f9d67e60696dfaf72c4036c0c789 Author: Marco Casaroli <[email protected]> AuthorDate: Wed Nov 25 19:23:16 2026 +0100 Documentation: Say when an ACK resets the TCP retransmission count. The section about the retransmission timer says which ACK does not reset the count of retransmissions. Add that an ACK of new data resets it, also when it acknowledges only a part of the data sent, and that the first ACK after a retransmission gives no RTT sample. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/os/networking/tcp_state_machine.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/os/networking/tcp_state_machine.rst b/Documentation/os/networking/tcp_state_machine.rst index df0aee8ac23..42e6bf3c457 100644 --- a/Documentation/os/networking/tcp_state_machine.rst +++ b/Documentation/os/networking/tcp_state_machine.rst @@ -329,6 +329,10 @@ Retransmission timer * An incoming ACK restarts the timer only when it acknowledges new data. An ACK that is not beyond the highest ACK so far gives no RTT sample and does not reset the count of retransmissions. +* An ACK of new data resets the count of retransmissions, also when it + acknowledges only a part of the data sent (RFC 1122, section 4.2.3.5). + The first ACK after a retransmission gives no RTT sample (Karn's + algorithm). * At each expiry the timeout doubles (RFC 6298, section 5.5): the next timeout is the initial timeout (``NET_TCP_RTO``) times 2, 4, 8 and then 16. With ``NET_TCP_FIXED_RTO`` it does not change.
