tcp: avoid min-RTT overestimation from delayed ACKs
authorYuchung Cheng <ycheng@google.com>
Wed, 17 Jan 2018 20:11:00 +0000 (12:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 20:39:30 +0000 (15:39 -0500)
commiteb36be0fd55e0a6f2cb3226acd711b2c7a2d7d09
tree738a49bca485840679c8b140feaa99aa956a94ac
parent60c2530696320ee6ffe4491c17079fa403790c98
tcp: avoid min-RTT overestimation from delayed ACKs

This patch avoids having TCP sender or congestion control
overestimate the min RTT by orders of magnitude. This happens when
all the samples in the windowed filter are one-packet transfer
like small request and health-check like chit-chat, which is farily
common for applications using persistent connections. This patch
tries to conservatively labels and skip RTT samples obtained from
this type of workload.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c