]> 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)
commitd5797ec760aca3381474fd8aba55feafd5d0cde3
tree120f4fae84057368fca98f936325f4e9d79aba32
parent3e1b4cc28ac4b36ba0b9a3128489fc6aabed4c2f
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