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

fix: RTX more data during handshake #2119

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

larseggert
Copy link
Collaborator

We don't track which packets are coalesced with others, so when we detect a loss in one packet number space, we cannot resend any coalesced packets in other packet number space. This PR tries to approximate this behavior by scheduling un-ACKed Handshake and 0-RTT packets for RTX when packets are lost in the Initial space.

Broken out of #1998

We don't track which packets are coalesced with others, so when we
detect a loss in one packet number space, we cannot resend any coalesced
packets in other packet number space. This PR tries to approximate this
behavior by scheduling un-ACKed Handshake and 0-RTT packets for RTX when
packets are lost in the Initial space.

Broken out of mozilla#1998
Copy link

github-actions bot commented Sep 16, 2024

Failed Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.35%. Comparing base (0cb89a9) to head (f60dfb7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2119   +/-   ##
=======================================
  Coverage   95.35%   95.35%           
=======================================
  Files         112      112           
  Lines       36316    36320    +4     
=======================================
+ Hits        34628    34632    +4     
  Misses       1688     1688           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Sep 16, 2024

Benchmark results

Performance differences relative to b780e53.

coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [99.226 ns 99.524 ns 99.834 ns]
       change: [-0.6026% +0.3744% +1.6733%] (p = 0.56 > 0.05)

Found 10 outliers among 100 measurements (10.00%)
10 (10.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [117.11 ns 117.41 ns 117.75 ns]
       change: [-0.5859% -0.0411% +0.4490%] (p = 0.88 > 0.05)

Found 17 outliers among 100 measurements (17.00%)
2 (2.00%) low severe
3 (3.00%) low mild
3 (3.00%) high mild
9 (9.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [116.76 ns 117.13 ns 117.60 ns]
       change: [-0.6542% +0.0450% +0.7609%] (p = 0.91 > 0.05)

Found 13 outliers among 100 measurements (13.00%)
5 (5.00%) low severe
2 (2.00%) low mild
1 (1.00%) high mild
5 (5.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [97.222 ns 102.09 ns 112.94 ns]
       change: [-0.5082% +2.4398% +7.7019%] (p = 0.40 > 0.05)

Found 10 outliers among 100 measurements (10.00%)
4 (4.00%) high mild
6 (6.00%) high severe

RxStreamOrderer::inbound_frame(): Change within noise threshold.
       time:   [111.58 ms 111.72 ms 111.95 ms]
       change: [+0.4681% +0.7206% +1.0067%] (p = 0.00 < 0.05)

Found 9 outliers among 100 measurements (9.00%)
5 (5.00%) low mild
3 (3.00%) high mild
1 (1.00%) high severe

transfer/pacing-false/varying-seeds: No change in performance detected.
       time:   [25.716 ms 26.798 ms 27.882 ms]
       change: [-6.6379% -1.6237% +4.1241%] (p = 0.55 > 0.05)

Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) low mild
1 (1.00%) high mild

transfer/pacing-true/varying-seeds: No change in performance detected.
       time:   [33.477 ms 35.139 ms 36.798 ms]
       change: [-12.809% -6.5722% -0.0778%] (p = 0.05 > 0.05)

Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

transfer/pacing-false/same-seed: 💚 Performance has improved.
       time:   [25.783 ms 26.532 ms 27.297 ms]
       change: [-20.290% -17.377% -14.280%] (p = 0.00 < 0.05)

Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
2 (2.00%) high mild

transfer/pacing-true/same-seed: No change in performance detected.
       time:   [38.935 ms 40.757 ms 42.613 ms]
       change: [-11.239% -4.4041% +3.3950%] (p = 0.24 > 0.05)

Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild

1-conn/1-100mb-resp (aka. Download)/client: No change in performance detected.
       time:   [113.56 ms 114.41 ms 115.77 ms]
       thrpt:  [863.81 MiB/s 874.06 MiB/s 880.60 MiB/s]
change:
       time:   [-0.3349% +0.5273% +1.9416%] (p = 0.40 > 0.05)
       thrpt:  [-1.9046% -0.5246% +0.3360%]

Found 5 outliers among 100 measurements (5.00%)
4 (4.00%) low mild
1 (1.00%) high severe

1-conn/10_000-parallel-1b-resp (aka. RPS)/client: No change in performance detected.
       time:   [313.18 ms 316.88 ms 320.65 ms]
       thrpt:  [31.186 Kelem/s 31.557 Kelem/s 31.931 Kelem/s]
change:
       time:   [-1.5177% +0.1326% +1.7679%] (p = 0.87 > 0.05)
       thrpt:  [-1.7372% -0.1324% +1.5411%]
1-conn/1-1b-resp (aka. HPS)/client: Change within noise threshold.
       time:   [33.946 ms 34.148 ms 34.369 ms]
       thrpt:  [29.096  elem/s 29.285  elem/s 29.458  elem/s]
change:
       time:   [-1.8744% -0.9375% +0.0083%] (p = 0.05 < 0.05)
       thrpt:  [-0.0083% +0.9464% +1.9102%]

Found 6 outliers among 100 measurements (6.00%)
2 (2.00%) high mild
4 (4.00%) high severe

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing Mean [ms] Min [ms] Max [ms] Relative
msquic msquic 165.4 ± 84.7 99.0 363.4 1.00
neqo msquic reno on 266.9 ± 89.7 214.6 457.7 1.00
neqo msquic reno 286.3 ± 79.3 214.1 396.2 1.00
neqo msquic cubic on 274.5 ± 85.0 209.9 458.0 1.00
neqo msquic cubic 291.0 ± 99.5 216.6 459.6 1.00
msquic neqo reno on 111.7 ± 56.2 81.6 313.3 1.00
msquic neqo reno 156.9 ± 101.7 82.2 375.3 1.00
msquic neqo cubic on 134.3 ± 75.1 79.9 312.6 1.00
msquic neqo cubic 174.4 ± 128.9 81.5 590.8 1.00
neqo neqo reno on 227.0 ± 126.8 133.4 619.6 1.00
neqo neqo reno 195.5 ± 104.1 127.2 523.6 1.00
neqo neqo cubic on 156.3 ± 28.3 126.7 217.8 1.00
neqo neqo cubic 220.9 ± 97.0 124.9 398.9 1.00

⬇️ Download logs

@larseggert larseggert changed the title fix: Resend more data during handshake fix: RTX more data during handshake Sep 16, 2024
Copy link

github-actions bot commented Sep 16, 2024

Firefox builds for this PR

The following builds are available for testing. Crossed-out builds did not succeed.

Copy link
Collaborator

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

This makes sense to me.

We don't track which packets are coalesced with others

Would there be any other benefits to tracking this?

@larseggert
Copy link
Collaborator Author

Would there be any other benefits to tracking this?

Well, it would make it possible to RTX the exact information we deem lost, rather than guessing. I don't know if it's worth it.

@larseggert larseggert added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@larseggert larseggert merged commit 899736f into mozilla:main Sep 18, 2024
57 checks passed
@larseggert larseggert deleted the fix-resend-more branch September 18, 2024 10:25
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