Skip to content

Commit d303fe5

Browse files
committed
Fix
1 parent 13d6a56 commit d303fe5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

source/flow/tcp/tahoe/tcp_tahoe_cc.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ bool TcpTahoeCC::on_ack(Time rtt, bool ecn_flag) {
1616
return true;
1717
}
1818
if (m_cwnd < m_ssthresh) {
19-
m_cwnd *= 2;
19+
// Slow start
20+
m_cwnd++;
2021
} else {
21-
m_cwnd += 1.;
22+
m_cwnd += 1 / m_cwnd;
2223
}
2324
return false;
2425
}
@@ -32,4 +33,4 @@ std::string TcpTahoeCC::to_string() const {
3233
m_delay_threshold, m_cwnd, m_ssthresh);
3334
}
3435

35-
} // namespace sim
36+
} // namespace sim

0 commit comments

Comments
 (0)