-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(transport/cc): don't reenter recovery #2409
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> A NewReno sender enters a recovery period when it detects the loss of > a packet or when the ECN-CE count reported by its peer increases. A > sender that is already in a recovery period stays in it and does not > reenter it. https://www.rfc-editor.org/rfc/rfc9002.html#section-7.3.2 When in a transient state (i.e. `State::RecoveryStart` and `State::PersistentCongestion`) we return early, i.e. don't reenter recovery: https://github.com/mozilla/neqo/blob/6cdbc0c33197aaf3cfc6240bed9cb6681afcafc7/neqo-transport/src/cc/classic_cc.rs#L546-L553 But when in `State::Recovery`, as far as I can tell, we do reenter `Recovery`, i.e. call `self.cc_algorithm.reduce_cwnd`: https://github.com/mozilla/neqo/blob/e3657305dcba2842f505d941e94d5a805a1f50aa/neqo-transport/src/cc/classic_cc.rs#L577 Thus in the following scenario we might reduce the cwnd twice in the same loss episode: 1. Send packet A. 2. Declare packet A as lost, reduce cwnd and transitioning into `RecoveryStart`. 3. Send packet B and transitioning into `Recovery`. 4. Declare packet B as lost, thus reduce cwnd a second time in the same loss epoch.
Failed Interop TestsQUIC Interop Runner, client vs. server, differences relative to 108fb8d. neqo-latest as client
neqo-latest as server
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-latest as client
neqo-latest as server
|
Closing here, see #2408 (comment). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://www.rfc-editor.org/rfc/rfc9002.html#section-7.3.2
When in a transient state (i.e.
State::RecoveryStart
andState::PersistentCongestion
) we return early, i.e. don't reenter recovery:neqo/neqo-transport/src/cc/classic_cc.rs
Lines 546 to 553 in 6cdbc0c
But when in
State::Recovery
, we do reenterRecovery
, i.e. callself.cc_algorithm.reduce_cwnd
:neqo/neqo-transport/src/cc/classic_cc.rs
Line 577 in e365730
Thus in the following scenario we might reduce the cwnd twice in the same loss episode:
RecoveryStart
.Recovery
.Test for #2408.