Skip to content
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

Replaces uses of TLP and RTO with PTO #134

Merged
merged 7 commits into from
Mar 29, 2019
Merged

Replaces uses of TLP and RTO with PTO #134

merged 7 commits into from
Mar 29, 2019

Conversation

janaiyengar
Copy link
Collaborator

This PR does the first pass of replacing TLP and RTO with PTO. Persistent congestion is not yet detected, and I've filed #132 for doing this.

With TLP and RTO, the sender would prioritize sending new data on TLP and old data on RTO. This change prioritizes new data over old on a PTO. We may want to revisit this in the scheduler, filed #133 for this.

This PR also fixes a bug with max_ack_delay in transport params.

Fixes #108.

Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

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

The PR looks fine. I've left several comments, but all the comments below can be addressed later.

@@ -1274,6 +1274,7 @@ int quicly_encode_transport_parameter_list(ptls_buffer_t *buf, int is_client, co
{ pushv(buf, params->max_streams_uni); });
}
PUSH_TRANSPORT_PARAMETER(buf, QUICLY_TRANSPORT_PARAMETER_ID_ACK_DELAY_EXPONENT, { pushv(buf, QUICLY_ACK_DELAY_EXPONENT); });
PUSH_TRANSPORT_PARAMETER(buf, QUICLY_TRANSPORT_PARAMETER_ID_MAX_ACK_DELAY, { pushv(buf, QUICLY_LOCAL_MAX_ACK_DELAY); });
Copy link
Member

Choose a reason for hiding this comment

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

Let's surround this with if (QUICLY_DEFAULT_MAX_ACK_DELAY != QUICLY_LOCAL_MAX_ACK_DELAY). Every byte that's being used under 3x rule is precious.

++r->rto_count;
/* PTO */
if (r->pto_count == 0)
++r->pto_count;
*num_packets_to_send = 2;
Copy link
Member

Choose a reason for hiding this comment

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

Do you think it's reasonable to keep the API that returns the maximum number of packets that should be sent? I ask this because I think there's a potential of changing this to a boolean value indicating if any packet should be sent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I was thinking about that, but it fell off my radar. I can do that.

lib/quicly.c Outdated
if (bytes_acked > 0) {
conn->egress.loss.pto_count = 0;
Copy link
Member

Choose a reason for hiding this comment

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

This change removes the abstraction that was provided by quicly_loss_on_packet_acked. I do not have a strong preference on eliminating the abstraction (the reason I created the abstraction is because I am unfamiliar with loss recovery and therefore wanted a clean-cut API as much as possible), but wonder what your opinion is on how much split loss recovery and the transport logic should be.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is a good point. I wanted to clean up the abstraction a bit, but I'll add the abstraction back in now and do the cleanup later.

@kazuho kazuho merged commit 8eb093a into master Mar 29, 2019
@janaiyengar janaiyengar deleted the jri/pto branch April 23, 2019 08:33
kazuho pushed a commit that referenced this pull request Feb 22, 2020
add support for draft-27, -28
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.

Change TLP and RTO to use PTO instead
2 participants