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: Handle migrating to a path that is an ECN blackhole #2081

Merged
merged 10 commits into from
Sep 2, 2024

Conversation

larseggert
Copy link
Collaborator

@larseggert larseggert commented Aug 30, 2024

This will send MAX_PATH_PROBES probes with ECN and then another MAX_PATH_PROBES probes without ECN, so with MAX_PATH_PROBES = 3, a total of 6 for a non-functional path. Is that OK?

Copy link

github-actions bot commented Aug 30, 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 Aug 30, 2024

Firefox builds for this PR

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

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.33%. Comparing base (6f8823b) to head (20c8a51).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2081      +/-   ##
==========================================
- Coverage   95.36%   95.33%   -0.03%     
==========================================
  Files         112      112              
  Lines       36530    36559      +29     
==========================================
+ Hits        34836    34853      +17     
- Misses       1694     1706      +12     

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

Copy link

github-actions bot commented Aug 30, 2024

Benchmark results

Performance differences relative to 6f8823b.

coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [98.759 ns 99.066 ns 99.387 ns]
       change: [-0.1599% +0.2674% +0.6775%] (p = 0.24 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
8 (8.00%) high mild
3 (3.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [116.60 ns 116.98 ns 117.38 ns]
       change: [-0.7533% -0.3342% +0.0824%] (p = 0.13 > 0.05)

Found 16 outliers among 100 measurements (16.00%)
1 (1.00%) low severe
2 (2.00%) low mild
3 (3.00%) high mild
10 (10.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [116.23 ns 116.72 ns 117.29 ns]
       change: [-0.6390% -0.1545% +0.3398%] (p = 0.54 > 0.05)

Found 14 outliers among 100 measurements (14.00%)
4 (4.00%) low severe
2 (2.00%) low mild
1 (1.00%) high mild
7 (7.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [97.210 ns 97.373 ns 97.560 ns]
       change: [-1.7541% -0.4468% +0.8628%] (p = 0.52 > 0.05)

Found 9 outliers among 100 measurements (9.00%)
3 (3.00%) high mild
6 (6.00%) high severe

RxStreamOrderer::inbound_frame(): Change within noise threshold.
       time:   [111.71 ms 111.77 ms 111.83 ms]
       change: [+0.1545% +0.2250% +0.2987%] (p = 0.00 < 0.05)

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

transfer/pacing-false/varying-seeds: No change in performance detected.
       time:   [26.640 ms 27.617 ms 28.593 ms]
       change: [-2.3511% +2.6598% +7.8897%] (p = 0.31 > 0.05)

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

transfer/pacing-true/varying-seeds: No change in performance detected.
       time:   [34.837 ms 36.351 ms 37.894 ms]
       change: [-7.1497% -1.4254% +4.9791%] (p = 0.65 > 0.05)
transfer/pacing-false/same-seed: Change within noise threshold.
       time:   [31.527 ms 32.281 ms 33.025 ms]
       change: [-6.0224% -3.2041% -0.3743%] (p = 0.04 < 0.05)

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

transfer/pacing-true/same-seed: No change in performance detected.
       time:   [41.827 ms 44.834 ms 47.837 ms]
       change: [-13.257% -5.5038% +3.1280%] (p = 0.22 > 0.05)
1-conn/1-100mb-resp (aka. Download)/client: Change within noise threshold.
       time:   [113.45 ms 113.81 ms 114.17 ms]
       thrpt:  [875.87 MiB/s 878.64 MiB/s 881.46 MiB/s]
change:
       time:   [-1.5709% -1.1038% -0.6362%] (p = 0.00 < 0.05)
       thrpt:  [+0.6403% +1.1161% +1.5960%]
1-conn/10_000-parallel-1b-resp (aka. RPS)/client: No change in performance detected.
       time:   [315.68 ms 319.35 ms 322.95 ms]
       thrpt:  [30.965 Kelem/s 31.314 Kelem/s 31.678 Kelem/s]
change:
       time:   [-0.7908% +0.9847% +2.7068%] (p = 0.26 > 0.05)
       thrpt:  [-2.6354% -0.9751% +0.7971%]
1-conn/1-1b-resp (aka. HPS)/client: 💚 Performance has improved.
       time:   [32.520 ms 32.695 ms 32.884 ms]
       thrpt:  [30.410  elem/s 30.585  elem/s 30.750  elem/s]
change:
       time:   [-21.047% -19.603% -18.110%] (p = 0.00 < 0.05)
       thrpt:  [+22.114% +24.383% +26.658%]

Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mild

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing Mean [ms] Min [ms] Max [ms] Relative
msquic msquic 109.7 ± 29.1 82.2 178.8 1.00
neqo msquic reno on 213.6 ± 11.4 202.7 243.8 1.00
neqo msquic reno 216.8 ± 18.8 204.6 279.1 1.00
neqo msquic cubic on 215.9 ± 11.0 202.1 233.4 1.00
neqo msquic cubic 217.8 ± 11.4 202.7 237.8 1.00
msquic neqo reno on 85.8 ± 12.3 73.8 110.3 1.00
msquic neqo reno 85.3 ± 12.2 73.9 121.0 1.00
msquic neqo cubic on 92.5 ± 30.5 73.0 190.2 1.00
msquic neqo cubic 92.2 ± 35.8 73.1 236.2 1.00
neqo neqo reno on 149.3 ± 19.4 124.6 198.1 1.00
neqo neqo reno 210.5 ± 119.2 128.0 437.5 1.00
neqo neqo cubic on 205.6 ± 107.8 125.5 444.4 1.00
neqo neqo cubic 184.9 ± 73.5 124.9 384.2 1.00

⬇️ Download logs

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 looks good to me. Thank you for the patch.

As discussed before, we could as well do ECN validation after connection establishment and path validation. Assuming that ECN blackholes are rare, the only upside would be simpler code. Downside would be delay in ECN signals. I assume ECN signals early on is still worth the additional code complexity, correct?

A couple of minor suggestions below.

neqo-transport/src/connection/tests/ecn.rs Outdated Show resolved Hide resolved
neqo-transport/src/path.rs Outdated Show resolved Hide resolved
neqo-transport/src/connection/tests/ecn.rs Outdated Show resolved Hide resolved
neqo-transport/src/connection/tests/ecn.rs Outdated Show resolved Hide resolved
neqo-transport/src/path.rs Show resolved Hide resolved
neqo-transport/src/connection/tests/ecn.rs Outdated Show resolved Hide resolved
neqo-transport/src/connection/tests/ecn.rs Outdated Show resolved Hide resolved
larseggert and others added 8 commits September 2, 2024 09:04
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
Co-authored-by: Max Inden <mail@max-inden.de>
Signed-off-by: Lars Eggert <lars@eggert.org>
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.

Thanks for the follow-ups!

@larseggert larseggert added this pull request to the merge queue Sep 2, 2024
Merged via the queue into mozilla:main with commit 3a4b940 Sep 2, 2024
55 of 57 checks passed
@larseggert larseggert deleted the fix-ecn-migration-blackhole branch September 2, 2024 11:07
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