]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: mitigate ACK loops for connections as tcp_timewait_sock
authorNeal Cardwell <ncardwell@google.com>
Fri, 6 Feb 2015 21:04:41 +0000 (16:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 09:03:13 +0000 (01:03 -0800)
commit26f90d2d8279d759cd43f8456bd245a7e6a8dc6f
treec01ae32365fd340ddec2a12682a43abd585aed97
parent2354123cb7720c547de5f2a00b1878978616cc0f
tcp: mitigate ACK loops for connections as tcp_timewait_sock

Ensure that in state FIN_WAIT2 or TIME_WAIT, where the connection is
represented by a tcp_timewait_sock, we rate limit dupacks in response
to incoming packets (a) with TCP timestamps that fail PAWS checks, or
(b) with sequence numbers that are out of the acceptable window.

We do not send a dupack in response to out-of-window packets if it has
been less than sysctl_tcp_invalid_ratelimit (default 500ms) since we
last sent a dupack in response to an out-of-window packet.

Reported-by: Avery Fay <avery@mixpanel.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp_minisocks.c