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: Add confirmed parameter to PTO calculation #2127

Merged
merged 6 commits into from
Oct 1, 2024

Conversation

larseggert
Copy link
Collaborator

@larseggert larseggert commented Sep 18, 2024

Rather than having the caller determine for which space a PTO should be calculated for.

Also arm PTOs in the application packet number space before the handshake is complete, so 0-RTT gets RTX'ed.

Broken out of #1998

Rather than having the caller determine for which space a PTO should be calculated for.

Broken out of mozilla#1998

I'm ambivalent if we want this change - thoughts?
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.35%. Comparing base (828169a) to head (0177130).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2127      +/-   ##
==========================================
- Coverage   95.35%   95.35%   -0.01%     
==========================================
  Files         112      112              
  Lines       36336    36345       +9     
==========================================
+ Hits        34648    34656       +8     
- Misses       1688     1689       +1     

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

Copy link

github-actions bot commented Sep 18, 2024

Benchmark results

Performance differences relative to 55e3a93.

coalesce_acked_from_zero 1+1 entries: 💚 Performance has improved.
       time:   [98.978 ns 99.269 ns 99.563 ns]
       change: [-12.709% -12.336% -11.979%] (p = 0.00 < 0.05)

Found 8 outliers among 100 measurements (8.00%)
7 (7.00%) high mild
1 (1.00%) high severe

coalesce_acked_from_zero 3+1 entries: 💚 Performance has improved.
       time:   [116.83 ns 117.20 ns 117.63 ns]
       change: [-33.546% -33.254% -32.939%] (p = 0.00 < 0.05)

Found 23 outliers among 100 measurements (23.00%)
2 (2.00%) low severe
2 (2.00%) low mild
7 (7.00%) high mild
12 (12.00%) high severe

coalesce_acked_from_zero 10+1 entries: 💚 Performance has improved.
       time:   [116.38 ns 116.76 ns 117.23 ns]
       change: [-39.822% -35.573% -33.013%] (p = 0.00 < 0.05)

Found 18 outliers among 100 measurements (18.00%)
6 (6.00%) low severe
1 (1.00%) low mild
1 (1.00%) high mild
10 (10.00%) high severe

coalesce_acked_from_zero 1000+1 entries: 💚 Performance has improved.
       time:   [97.621 ns 97.771 ns 97.941 ns]
       change: [-31.759% -31.169% -30.586%] (p = 0.00 < 0.05)

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

RxStreamOrderer::inbound_frame(): No change in performance detected.
       time:   [111.38 ms 111.50 ms 111.66 ms]
       change: [-0.0092% +0.1054% +0.2449%] (p = 0.13 > 0.05)

Found 14 outliers among 100 measurements (14.00%)
11 (11.00%) low mild
1 (1.00%) high mild
2 (2.00%) high severe

transfer/pacing-false/varying-seeds: No change in performance detected.
       time:   [26.606 ms 27.769 ms 28.976 ms]
       change: [-8.0355% -2.8408% +2.6457%] (p = 0.32 > 0.05)
transfer/pacing-true/varying-seeds: No change in performance detected.
       time:   [34.924 ms 36.626 ms 38.361 ms]
       change: [-10.279% -4.3825% +1.8437%] (p = 0.18 > 0.05)
transfer/pacing-false/same-seed: No change in performance detected.
       time:   [25.499 ms 26.282 ms 27.076 ms]
       change: [-7.7842% -3.8988% +0.4373%] (p = 0.07 > 0.05)
transfer/pacing-true/same-seed: No change in performance detected.
       time:   [41.540 ms 43.588 ms 45.658 ms]
       change: [-6.8337% -0.3259% +6.0094%] (p = 0.92 > 0.05)
1-conn/1-100mb-resp (aka. Download)/client: 💚 Performance has improved.
       time:   [113.54 ms 113.93 ms 114.31 ms]
       thrpt:  [874.80 MiB/s 877.75 MiB/s 880.78 MiB/s]
change:
       time:   [-2.1535% -1.7221% -1.3254%] (p = 0.00 < 0.05)
       thrpt:  [+1.3432% +1.7523% +2.2009%]

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

1-conn/10_000-parallel-1b-resp (aka. RPS)/client: Change within noise threshold.
       time:   [309.21 ms 312.90 ms 316.58 ms]
       thrpt:  [31.588 Kelem/s 31.960 Kelem/s 32.341 Kelem/s]
change:
       time:   [-3.9150% -2.3280% -0.6881%] (p = 0.01 < 0.05)
       thrpt:  [+0.6929% +2.3835% +4.0745%]
1-conn/1-1b-resp (aka. HPS)/client: No change in performance detected.
       time:   [33.663 ms 33.828 ms 34.009 ms]
       thrpt:  [29.404  elem/s 29.562  elem/s 29.706  elem/s]
change:
       time:   [-0.4931% +0.2593% +0.9745%] (p = 0.49 > 0.05)
       thrpt:  [-0.9650% -0.2587% +0.4955%]

Found 7 outliers among 100 measurements (7.00%)
2 (2.00%) low mild
2 (2.00%) high mild
3 (3.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 110.8 ± 29.2 90.4 200.8 1.00
neqo msquic reno on 217.6 ± 10.4 207.3 241.2 1.00
neqo msquic reno 211.6 ± 3.9 205.5 220.0 1.00
neqo msquic cubic on 213.9 ± 8.8 206.0 236.5 1.00
neqo msquic cubic 219.9 ± 14.1 205.5 245.7 1.00
msquic neqo reno on 94.3 ± 16.3 82.4 150.9 1.00
msquic neqo reno 98.6 ± 19.4 82.6 160.3 1.00
msquic neqo cubic on 95.0 ± 17.0 82.3 158.3 1.00
msquic neqo cubic 94.2 ± 18.0 81.3 173.0 1.00
neqo neqo reno on 170.7 ± 70.8 126.6 443.5 1.00
neqo neqo reno 172.2 ± 80.8 133.7 493.0 1.00
neqo neqo cubic on 182.1 ± 70.4 124.4 401.0 1.00
neqo neqo cubic 181.3 ± 75.3 125.9 406.7 1.00

⬇️ Download logs

Copy link

github-actions bot commented Sep 18, 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

github-actions bot commented Sep 18, 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.

Changes make sense to me. Only one question related to tests.

neqo-transport/src/recovery/mod.rs Show resolved Hide resolved
@larseggert
Copy link
Collaborator Author

@martinthomson I'd appreciate a review, since the code I am touching is pretty complex.

Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

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

I like this one. It's a simplification for the most part.

(There's some duplication of state information between Connection and the loss recovery stuff, but that seems necessary. The meaning is consistent.)

neqo-transport/src/connection/mod.rs Show resolved Hide resolved
@larseggert larseggert added this pull request to the merge queue Oct 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 1, 2024
@mxinden
Copy link
Collaborator

mxinden commented Oct 1, 2024

Merge failure due to #2141.

@larseggert larseggert added this pull request to the merge queue Oct 1, 2024
Merged via the queue into mozilla:main with commit a4c4ccd Oct 1, 2024
61 of 62 checks passed
@larseggert larseggert deleted the fix-confirmed branch October 1, 2024 15:48
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.

3 participants