Repository navigation
fix(transport): Validate ECN on paths a peer migrates to - #4390
larseggert wants to merge 2 commits into
Conversation
RFC 9000 Section 9.4 requires ECN validation on new paths, also for the server.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the QUIC path-migration ECN validation change.
No open issues 🎉
What changed in this PR
This PR updates QUIC transport path migration to start Explicit Congestion Notification (ECN) validation when a peer migrates, including on the server, as required by RFC 9000 Section 9.4.
Changes:
- Carry the old path’s ECN baseline to the new primary path and start ECN validation.
- Strengthen migration tests to assert that the server’s outgoing datagram has ECN enabled.
| File | Description |
|---|---|
neqo-transport/src/path.rs |
Initializes the ECN baseline and starts validation on peer migration. |
neqo-transport/src/connection/tests/ecn.rs |
Checks that server traffic uses ECN on the migrated path. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4390 +/- ##
==========================================
- Coverage 96.74% 96.62% -0.12%
==========================================
Files 113 118 +5
Lines 43491 43897 +406
Branches 43491 43897 +406
==========================================
+ Hits 42074 42416 +342
- Misses 1405 1460 +55
- Partials 12 21 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Merging this PR will degrade performance by 1.67%1 warning
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing |
Bleaching on a peer-migrated path must be detected against the old path's ECN counts.
Benchmark resultsNo significant performance differences relative to 28908fa. All resultstransfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 time: [61.071 ms 61.122 ms 61.172 ms]
thrpt: [1.5964 GiB/s 1.5977 GiB/s 1.5991 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mildtransfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 time: [60.537 ms 60.598 ms 60.658 ms]
thrpt: [1.6099 GiB/s 1.6115 GiB/s 1.6132 GiB/s]transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 time: [3.8053 ms 3.8065 ms 3.8077 ms]
thrpt: [262.63 B/s 262.71 B/s 262.79 B/s]
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) low mild
2 (2.00%) high mild
1 (1.00%) high severetransfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 time: [86.936 ms 87.108 ms 87.280 ms]
thrpt: [114.57 Kelem/s 114.80 Kelem/s 115.03 Kelem/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildstreams-flow-controlled/walltime/1-streams/each-4194304-bytes time: [12.798 ms 12.805 ms 12.812 ms]
thrpt: [312.20 MiB/s 312.37 MiB/s 312.54 MiB/s]
Found 7 outliers among 100 measurements (7.00%)
6 (6.00%) high mild
1 (1.00%) high severestreams-flow-controlled/walltime/10-streams/each-1048576-bytes time: [35.492 ms 35.511 ms 35.532 ms]
thrpt: [281.44 MiB/s 281.60 MiB/s 281.76 MiB/s]
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) high mild
2 (2.00%) high severestreams/walltime/1-streams/each-1000-bytes time: [159.91 µs 160.58 µs 161.44 µs]
thrpt: [5.9073 MiB/s 5.9389 MiB/s 5.9638 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mildstreams/walltime/1000-streams/each-1-bytes time: [4.7670 ms 4.7687 ms 4.7704 ms]
thrpt: [204.71 KiB/s 204.78 KiB/s 204.86 KiB/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) low severe
1 (1.00%) low mildstreams/walltime/1000-streams/each-1000-bytes time: [15.120 ms 15.132 ms 15.143 ms]
thrpt: [62.977 MiB/s 63.026 MiB/s 63.075 MiB/s]transfer/walltime/pacing-false/same-seed time: [3.3159 ms 3.3215 ms 3.3267 ms]
thrpt: [1.1742 GiB/s 1.1761 GiB/s 1.1780 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildtransfer/walltime/pacing-false/varying-seeds time: [3.2836 ms 3.2851 ms 3.2870 ms]
thrpt: [1.1884 GiB/s 1.1891 GiB/s 1.1896 GiB/s]transfer/walltime/pacing-true/same-seed time: [4.0658 ms 4.0678 ms 4.0702 ms]
thrpt: [982.74 MiB/s 983.33 MiB/s 983.81 MiB/s]transfer/walltime/pacing-true/varying-seeds time: [3.9599 ms 3.9615 ms 3.9633 ms]
thrpt: [1009.3 MiB/s 1009.7 MiB/s 1010.1 MiB/s]Instructions per cycleCriterion reported no significant timing changes. All benchmarks
Profiles for profiler.firefox.com (64)
Download data for |
Client/server transfer resultsPerformance differences relative to 28908fa. Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Table above only shows statistically significant changes. See all results below. All resultsTransfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Download data for |
Failed Interop TestsQUIC Interop Runner, client vs. server, differences relative to
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
|
RFC 9000 Section 9.4 requires ECN validation on new paths, also for the server.