]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tcp: only postpone PROBE_RTT if RTT is < current min_rtt estimate
authorRyan Sharpelletti <sharpelletti@google.com>
Mon, 16 Nov 2020 17:44:13 +0000 (17:44 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:24:09 +0000 (14:24 +0100)
commit14e42dc84188db8f9231c5b05ba56cb2b88d058b
tree0b27ddbab2cde4f3c65bf7a4ad092d3f1e9670d9
parentbb64ba2ff7167e67d93bd605ecde7143d25f5783
tcp: only postpone PROBE_RTT if RTT is < current min_rtt estimate

BugLink: https://bugs.launchpad.net/bugs/1908561
[ Upstream commit 1b9e2a8c99a5c021041bfb2d512dc3ed92a94ffd ]

During loss recovery, retransmitted packets are forced to use TCP
timestamps to calculate the RTT samples, which have a millisecond
granularity. BBR is designed using a microsecond granularity. As a
result, multiple RTT samples could be truncated to the same RTT value
during loss recovery. This is problematic, as BBR will not enter
PROBE_RTT if the RTT sample is <= the current min_rtt sample, meaning
that if there are persistent losses, PROBE_RTT will constantly be
pushed off and potentially never re-entered. This patch makes sure
that BBR enters PROBE_RTT by checking if RTT sample is < the current
min_rtt sample, rather than <=.

The Netflix transport/TCP team discovered this bug in the Linux TCP
BBR code during lab tests.

Fixes: 0f8782ea1497 ("tcp_bbr: add BBR congestion control")
Signed-off-by: Ryan Sharpelletti <sharpelletti@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Link: https://lore.kernel.org/r/20201116174412.1433277-1-sharpelletti.kdev@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
net/ipv4/tcp_bbr.c