Skip to content

HyStart++#476

Merged
ghedo merged 3 commits intomasterfrom
810.hystartplusplus
May 5, 2020
Merged

HyStart++#476
ghedo merged 3 commits intomasterfrom
810.hystartplusplus

Conversation

@junhochoi
Copy link
Copy Markdown
Contributor

@junhochoi junhochoi commented Apr 21, 2020

Note that it's based on #475 since this PR includes changes for CUBIC as well.

Implements Hystart++ based on IETF draft:
https://tools.ietf.org/html/draft-balasubramanian-tcpm-hystartplusplus-02

HyStart++ is an improved version of original Hystart. It can be used
with Reno and CUBIC (or possibly other loss based congestion control).
It's enabled by default. You can disable it by calling config API provided.

Config APIs:

  • C: quiche_config_set_hystart()
  • Rust: Config.set_hystart()

API Changes:

  • CongestionControlOps API: epoch is added to on_packet_acked()
    and congestion_event()

Tools Update:

  • tools/apps/quiche-{client,server}: added --disable-hystart
    command line option

Different from TCP: TCP implementation uses sequence number to
check a start of the round. In QUIC, current implementation uses
packet number instead. However packet number space is unique
per epoch but Initial and Handshake epoch is short, so only
applies HyStart++ to Application epoch.

In TCP, sequence number is reused for retransmitted packets
but QUIC will use a new packet number for retransmit so
this is not exactly same. But it should be fine because this is
only for the slow start episode and when QUIC connection sees a
packet loss, it enters into recovery episode and exits from slow
start, so retransmitted packet number is not used during HyStart++
slow start.

@junhochoi junhochoi requested a review from a team as a code owner April 21, 2020 23:51
@junhochoi junhochoi force-pushed the 810.hystartplusplus branch 3 times, most recently from c05cf3a to b0be27a Compare April 22, 2020 00:01
@ghedo ghedo force-pushed the 810.cc_cubic branch 2 times, most recently from c0afbc2 to 65222de Compare April 22, 2020 12:50
@junhochoi junhochoi force-pushed the 810.hystartplusplus branch from b0be27a to 1442dc1 Compare April 22, 2020 19:22
@junhochoi junhochoi changed the base branch from 810.cc_cubic to master April 22, 2020 19:22
@junhochoi
Copy link
Copy Markdown
Contributor Author

junhochoi commented Apr 22, 2020

Rebase to master.

@junhochoi junhochoi force-pushed the 810.hystartplusplus branch 3 times, most recently from 14927cc to a261222 Compare April 24, 2020 17:33
LPardue
LPardue previously approved these changes Apr 27, 2020
Comment thread src/lib.rs Outdated
lohith-bellad
lohith-bellad previously approved these changes Apr 27, 2020
@junhochoi junhochoi force-pushed the 810.hystartplusplus branch 2 times, most recently from c5720d6 to 7fc9321 Compare May 1, 2020 21:55
Implements Hystart++ based on IETF draft:
  https://tools.ietf.org/html/draft-balasubramanian-tcpm-hystartplusplus-02

HyStart++ is an improved version of original Hystart. It can be used
with Reno and CUBIC (or possibly other loss based congestion control).
It's enabled by default. You can disable it by calling config API provided.

Config APIs:
- C: quiche_config_set_hystart()
- Rust: Config.set_hystart()

API Changes:
- CongestionControlOps API: `epoch`` is added to on_packet_acked()
  and congestion_event()

Tools Update:
- tools/apps/quiche-{client,server}: added --disable-hystart
  command line option

Different from TCP: TCP implementation uses sequence number to
check a start of the round. In QUIC, current implementation uses
packet number instead. However packet number space is unique
per epoch but Initial and Handshake epoch is short, so only
applies HyStart++ to Application epoch.

In TCP, sequence number is reused for retransmitted packets
but QUIC will use a new packet number for retransmit so
this is not exactly same. But it should be fine because this is
only for the slow start episode and when QUIC connection sees a
packet loss, it enters into recovery episode and exits from slow
start, so retransmitted packet number is not used during HyStart++
slow start.
@junhochoi junhochoi force-pushed the 810.hystartplusplus branch from 7fc9321 to c926498 Compare May 4, 2020 17:30
@junhochoi
Copy link
Copy Markdown
Contributor Author

@ghedo let me know if there is additional comments/work needed. I rebased to master again today.

ghedo
ghedo previously approved these changes May 5, 2020
Copy link
Copy Markdown
Member

@ghedo ghedo left a comment

Choose a reason for hiding this comment

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

Sorry for the delay @junhochoi I added a couple of suggestions that I can merge manually, I still think we can probably improve the internal API a bit, but we can do it later so there's no point in delaying this further.

Comment thread src/lib.rs Outdated
Comment thread src/ffi.rs Outdated
Comment thread src/ffi.rs Outdated
Comment thread include/quiche.h Outdated
Comment thread tools/apps/src/bin/quiche-client.rs Outdated
Comment thread tools/apps/src/bin/quiche-server.rs Outdated
@ghedo ghedo merged commit a46dffa into master May 5, 2020
@ghedo ghedo deleted the 810.hystartplusplus branch May 5, 2020 15:20
@junhochoi
Copy link
Copy Markdown
Contributor Author

Cool. Thanks!

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.

4 participants