tcp: Fix an issue with fast convergence in Cubic

This commit is contained in:
Parikshit Gune
2020-05-13 19:18:44 +05:30
committed by Tom Henderson
parent 810f92dfd1
commit 8783e5992b

View File

@@ -397,7 +397,7 @@ TcpCubic::GetSsThresh (Ptr<const TcpSocketState> tcb, uint32_t bytesInFlight)
/* Wmax and fast convergence */
if (segCwnd < m_lastMaxCwnd && m_fastConvergence)
{
m_lastMaxCwnd = m_beta * segCwnd;
m_lastMaxCwnd = (segCwnd * (1 + m_beta)) / 2; // Section 4.6 in RFC 8312
}
else
{