more tweaking
This commit is contained in:
@@ -34,14 +34,15 @@ float CUBIC::getCWnD(void) const {
|
||||
|
||||
void CUBIC::onCongestion(void) {
|
||||
if (getTimeNow() - _time_point_reduction >= getCurrentDelay()*4.f) {
|
||||
const auto tmp_old_tp = getTimeNow() - _time_point_reduction;
|
||||
|
||||
const auto current_cwnd = getCWnD();
|
||||
const auto tmp_old_tp = _time_point_reduction;
|
||||
_time_point_reduction = getTimeNow();
|
||||
_window_max = current_cwnd * BETA;
|
||||
_window_max = std::max(_window_max, 2.*MAXIMUM_SEGMENT_SIZE);
|
||||
|
||||
#if 1
|
||||
std::cout << "CONGESTION!"
|
||||
std::cout << "----CONGESTION!"
|
||||
<< " cwnd_max:" << _window_max
|
||||
<< " pts:" << tmp_old_tp
|
||||
<< " rtt:" << getCurrentDelay()
|
||||
|
Reference in New Issue
Block a user