Page MenuHomeFreeBSD

Fix cubic RTO reaction
ClosedPublic

Authored by rscheff on Jun 4 2020, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 31, 12:26 PM
Unknown Object (File)
Feb 18 2024, 8:21 AM
Unknown Object (File)
Jan 29 2024, 2:14 AM
Unknown Object (File)
Jan 27 2024, 8:23 AM
Unknown Object (File)
Jan 27 2024, 8:23 AM
Unknown Object (File)
Jan 27 2024, 8:23 AM
Unknown Object (File)
Jan 27 2024, 8:23 AM
Unknown Object (File)
Jan 27 2024, 8:20 AM
Subscribers

Details

Summary

Proper TCP Cubic operation requires the
knowledge of the maximum congestion window prior to the
last congestion event. The old structure of the generic
cc_cong_event handler did not lend itself to retain this
value.

Restructuring the assignment of cwnd to a single MSS into
the CC-specific cong_event handlers. Those not touched
here default to using the newreno cong-event handling for
RTO.

Found by cheng during internal validation testing.

Note that jtl@ did address cubic related aspects in rS307901
before, but due to that being conflated with other, larger
changes, that cubic bugfix was fully reverted again in r321480,
with only the block brackets restored again in rS321587

Test Plan

Observe the evolution of cwnd prior and after an
RTO event. Depending on where the last congestion event prior
to the RTO playes out, dramatic deviations between the expected
and observed cwnd have been found.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31498
Build 29105: arc lint + arc unit

Event Timeline

  • move max_cwnd assignment into the conditional and recalc K
cc added inline comments.
sys/netinet/cc/cc_cubic.c
301–306

Sounds like conservative. The cwnd is likely a small value when t_rxtshift > 1.
If my evaluation is right, I have no objection with this.

But when I look at D23655, I think D23655 has higher priority than this one.

sys/netinet/cc/cc_cubic.c
304

use t_snd_prev_cwnd instead here, and not change other CCs.

Interaction between RACK and Cubic need to be looked at.

  • simplify patch and use snd_cwnd_prev in cc_cubic only.
This revision is now accepted and ready to land.Jun 24 2020, 12:18 PM
rscheff retitled this revision from Move cwnd assignment after RTO into each CC algo to Fix cubic RTO reaction.Jun 24 2020, 12:18 PM
rscheff edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.