Skip to content

recovery: add machinery for saving and rolling back congestion control state#893

Closed
ghedo wants to merge 1 commit intomasterfrom
cc-checkpoint
Closed

recovery: add machinery for saving and rolling back congestion control state#893
ghedo wants to merge 1 commit intomasterfrom
cc-checkpoint

Conversation

@ghedo
Copy link
Copy Markdown
Member

@ghedo ghedo commented Apr 7, 2021

This simply splits out the changes to save and restore CC state from #890 so e.g. it could also be used for #470.

@ghedo ghedo requested a review from a team as a code owner April 7, 2021 13:09
Comment thread src/recovery/cubic.rs
}
}

fn checkpoint(r: &mut Recovery) {
Copy link
Copy Markdown
Contributor

@junhochoi junhochoi Apr 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we just need a stub here (remove the code in checkpoint() and rollback()) and let each PR do the actual implementation. Same to rollback()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? This is the generic part from draft-ietf-tcpm-rfc8312bis, why would each PR re-implement the same thing?

Comment thread src/recovery/cubic.rs
Comment on lines +80 to +102

// CUBIC state checkpoint preceding the last congestion event.
prior: PriorState,
}

/// Stores the CUBIC state from before the last congestion event.
///
/// <https://tools.ietf.org/id/draft-ietf-tcpm-rfc8312bis-00.html#section-4.9>
#[derive(Debug, Default)]
struct PriorState {
congestion_window: usize,

ssthresh: usize,

w_max: f64,

w_last_max: f64,

k: f64,

epoch_start: Option<Instant>,

lost_count: usize,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part can be removed too.

@ghedo
Copy link
Copy Markdown
Member Author

ghedo commented Apr 9, 2021

This was merged as part of #890, closing.

@ghedo ghedo closed this Apr 9, 2021
@ghedo ghedo deleted the cc-checkpoint branch June 20, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants