Page MenuHomeFreeBSD

tcp: cubic - restart epoch after RTO
ClosedPublic

Authored by rscheff on Feb 22 2024, 4:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 5:41 PM
Unknown Object (File)
Mon, Apr 8, 10:39 PM
Unknown Object (File)
Sat, Mar 30, 9:42 AM
Unknown Object (File)
Sat, Mar 30, 9:41 AM
Unknown Object (File)
Sat, Mar 30, 9:33 AM
Unknown Object (File)
Fri, Mar 29, 7:53 PM
Unknown Object (File)
Feb 26 2024, 5:42 AM
Unknown Object (File)
Feb 24 2024, 9:54 PM
Subscribers

Details

Summary

Per RFC9438, sec 4.8, t_epoch is supposed to remain
the time since the current congestion avoidance
phase - presumably prior to the RTO.

However, doing so will result in an extremely inflated value
when ACKs are processed, since the RTO may be many orders of
magnitude higher than a typical RTT (e.g. 15 sec vs 0.1 ms),
especially when there are multiple RTOs with exponential
backoff after another.

In that case, cwnd can jump to exteme values with the
next received ACK - up to the full receive window, and
TSO can burst massive traffic into the network.

Test Plan

use siftr to monitor the evolution of cwnd across
a longer period of packet discards; once slow-
start is over, cwnd jumps up dramatically.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Is the patch inline with the comment from Neal on the TCPM mailing list?

Good catch! Always keep an eye on the cubic_data->t_epoch refresh.

This revision is now accepted and ready to land.Feb 22 2024, 8:26 PM

I suspect this is not the final patch, but suffices for now to stop excessive inflation of cwnd on the first ACK when transistioning from slow-start to congestion avoidance.
The guidance given was that t_epoch should be reset at the time cc transitions from slow-start to cong-avoidance.
However, I would like to revisit this anew, once the major overhaul in D41715 is in...

This revision was automatically updated to reflect the committed changes.