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
Add MaxAckDelay sub-section #1574
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,6 +206,19 @@ Min RTT is the minimum RTT measured over the connection, prior to adjusting by | |
ack delay. Ignoring ack delay for min RTT prevents intentional or unintentional | ||
underestimation of min RTT, which in turn prevents underestimating smoothed RTT. | ||
|
||
### Maximum Ack Delay | ||
|
||
QUIC is able to explicitly model delay at the receiver via the ack delay | ||
field in the ACK frame. Therefore, QUIC diverges from TCP by calculating a | ||
MaxAckDelay dynamically, instead of assuming a constant delayed ack timeout | ||
for all connections. | ||
|
||
MaxAckDelay is the maximum ack delay supplied in an all incoming ACK frames. | ||
MaxAckDelay excludes ack delays that aren't included in an RTT sample because | ||
they're too large or the largest acked has already been acknowledged. | ||
MaxAckDelay also excludes ack delays where the largest ack references an | ||
ACK-only packet. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lgtm |
||
|
||
## Ack-based Detection | ||
|
||
Ack-based loss detection implements the spirit of TCP's Fast Retransmit | ||
|
@@ -338,15 +351,10 @@ conditions: | |
* If RTO ({{rto}}) is earlier, schedule a TLP in its place. That is, | ||
PTO SHOULD be scheduled for min(RTO, PTO). | ||
|
||
MaxAckDelay is the maximum ack delay supplied in an incoming ACK frame. | ||
MaxAckDelay excludes ack delays that aren't included in an RTT sample because | ||
they're too large and excludes those which reference an ack-only packet. | ||
|
||
QUIC diverges from TCP by calculating MaxAckDelay dynamically, instead of | ||
assuming a constant delayed ack timeout for all connections. QUIC includes this | ||
in all probe timeouts, because it assume the ack delay may come into play, | ||
regardless of the number of packets outstanding. TCP's TLP assumes if at least | ||
2 packets are outstanding, acks will not be delayed. | ||
QUIC includes MaxAckDelay in all probe timeouts, because it assumes the ack | ||
delay may come into play, regardless of the number of packets outstanding. | ||
TCP's TLP assumes if at least 2 packets are outstanding, acks will not be | ||
delayed. | ||
|
||
A PTO value of at least 1.5*SRTT ensures that the ACK is overdue. The 1.5 is | ||
based on {{?TLP}}, but implementations MAY experiment with other constants. | ||
|
@@ -399,11 +407,9 @@ immediate change to congestion window or recovery state. An RTO timer expires | |
only when there's a prolonged period of network silence, which could be caused | ||
by a change in the underlying network RTT. | ||
|
||
QUIC also diverges from TCP by including MaxAckDelay in the RTO period. QUIC is | ||
able to explicitly model delay at the receiver via the ack delay field in the | ||
ACK frame. Since QUIC corrects for this delay in its SRTT and RTTVAR | ||
computations, it is necessary to add this delay explicitly in the TLP and RTO | ||
computation. | ||
QUIC also diverges from TCP by including MaxAckDelay in the RTO period. Since | ||
QUIC corrects for this delay in its SRTT and RTTVAR computations, it is | ||
necessary to add this delay explicitly in the TLP and RTO computation. | ||
|
||
When an acknowledgment is received for a packet sent on an RTO event, any | ||
unacknowledged packets with lower packet numbers than those acknowledged MUST be | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've used "largest ack" and "largest acked" here. Elsewhere in the document, you also use "largest acknowledged." Might be worth picking one and using it consistently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR #1611 sent