Remove congestion window size clamp

This commit is contained in:
Atlante45 2016-09-26 11:49:53 -07:00 committed by Stephen Birarda
parent 0954d5bf93
commit eee617e39c
2 changed files with 1 additions and 4 deletions

View file

@ -38,7 +38,7 @@ bool TCPRenoCC::isInSlowStart() {
int TCPRenoCC::performSlowStart(int numAcked) {
int congestionWindow = std::min(_congestionWindowSize + numAcked, _sendSlowStartThreshold);
numAcked -= congestionWindow - _congestionWindowSize;
_congestionWindowSize = std::min(congestionWindow, _sendCongestionWindowClamp);
_congestionWindowSize = congestionWindow;
return numAcked;
}
@ -87,7 +87,5 @@ void TCPRenoCC::performCongestionAvoidanceAI(int sendCongestionWindowSize, int n
_sendCongestionWindowCount -= delta * sendCongestionWindowSize;
_sendCongestionWindowCount += delta;
}
_sendCongestionWindowCount = std::min(_sendCongestionWindowCount, _sendCongestionWindowClamp);
}

View file

@ -36,7 +36,6 @@ protected:
int _sendSlowStartThreshold;
int _sendCongestionWindowCount;
int _sendCongestionWindowClamp = ~0;
int _maxPacketsOut;
bool _isCongestionWindowLimited;