]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: send loss probe after 1s if no RTT available
authorYuchung Cheng <ycheng@google.com>
Fri, 18 Sep 2015 18:40:33 +0000 (11:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2015 23:19:01 +0000 (16:19 -0700)
commitbc972ba1fbc9d379966080becb1484cc0b25f51d
tree120f4fae84057368fca98f936325f4e9d79aba32
parent9a0daa4967525a874f69542bec85cb830f555c68
tcp: send loss probe after 1s if no RTT available

This patch makes TLP to use 1 sec timer by default when RTT is
not available due to SYN/ACK retransmission or SYN cookies.

Prior to this change, the lack of RTT prevents TLP so the first
data packets sent can only be recovered by fast recovery or RTO.
If the fast recovery fails to trigger the RTO is 3 second when
SYN/ACK is retransmitted. With this patch we can trigger fast
recovery in 1sec instead.

Note that we need to check Fast Open more properly. A Fast Open
connection could be (accepted then) closed before it receives
the final ACK of 3WHS so the state is FIN_WAIT_1. Without the
new check, TLP will retransmit FIN instead of SYN/ACK.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c