From 90634468bb1f9b7daf22b653b40cc4c637789ff3 Mon Sep 17 00:00:00 2001 From: Chan Ruihua Date: Sun, 11 Sep 2022 17:16:20 +0000 Subject: [PATCH] tcp: (fixes #735) BBR fails to discard invalid samples --- src/internet/model/tcp-bbr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internet/model/tcp-bbr.cc b/src/internet/model/tcp-bbr.cc index 8227dd1c5..889e66f03 100644 --- a/src/internet/model/tcp-bbr.cc +++ b/src/internet/model/tcp-bbr.cc @@ -615,7 +615,7 @@ TcpBbr::UpdateBottleneckBandwidth(Ptr tcb, const TcpRateOps::Tcp { NS_LOG_FUNCTION(this << tcb << rs); - if (rs.m_deliveryRate == 0) + if (rs.m_delivered < 0 || rs.m_interval.IsZero()) { return; }