Page MenuHomeFreeBSD

tcp: cubic - restart epoch after RTO
ClosedPublic

Authored by rscheff on Feb 22 2024, 4:35 PM.
Tags
None
Referenced Files
F103052236: D44023.diff
Wed, Nov 20, 7:38 AM
Unknown Object (File)
Sep 18 2024, 12:07 PM
Unknown Object (File)
Sep 17 2024, 12:16 AM
Unknown Object (File)
Sep 8 2024, 11:54 PM
Unknown Object (File)
Sep 6 2024, 2:21 AM
Unknown Object (File)
Aug 26 2024, 6:25 PM
Unknown Object (File)
Aug 26 2024, 5:55 PM
Unknown Object (File)
Aug 19 2024, 4:01 AM
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.