Repository navigation
fix(http3): use fair streams in connect-udp sessions - #4337
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4337 +/- ##
==========================================
- Coverage 96.73% 96.62% -0.12%
==========================================
Files 113 118 +5
Lines 43491 43894 +403
Branches 43491 43894 +403
==========================================
+ Hits 42073 42413 +340
- Misses 1406 1460 +54
- Partials 12 21 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Merging this PR will improve performance by 3.7%1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the CONNECT-UDP stream-fairness changes.
No open issues 🎉
What changed in this PR
This PR enables fair stream scheduling for CONNECT-UDP sessions, matching WebTransport so one session’s capsule traffic cannot starve others.
Changes:
- Centralizes transport configuration for created and accepted sessions, enabling fairness while preserving datagram buffering limits.
- Adds fairness tests for QUIC datagrams and HTTP capsules across different queueing patterns and payload sizes.
| File | Description |
|---|---|
neqo-http3/tests/connect_udp.rs |
Adds multi-session fairness tests and shared setup helpers. |
neqo-http3/src/connect_udp.rs |
Applies shared transport settings, including stream fairness, to CONNECT-UDP sessions. |
Review effort: Balanced
99eb47c to
8526011
Compare
mxinden
left a comment
There was a problem hiding this comment.
Good to have this tested. One nit. Otherwise ready to merge.
As discussed elsewhere, capsule path is not a priority for now. I expect most Firefox MASQUE connections to have QUIC datagrams support available.
8526011 to
147fa2d
Compare
This matches what we do in WebTransport and ensures a session cannot starve others when capsules are used.
147fa2d to
31f6334
Compare
Benchmark resultsNo significant performance differences relative to e166635. All resultstransfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 time: [61.500 ms 61.536 ms 61.572 ms]
thrpt: [1.5861 GiB/s 1.5870 GiB/s 1.5879 GiB/s]transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 time: [61.584 ms 61.663 ms 61.753 ms]
thrpt: [1.5814 GiB/s 1.5837 GiB/s 1.5857 GiB/s]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severetransfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 time: [3.8179 ms 3.8189 ms 3.8198 ms]
thrpt: [261.79 B/s 261.85 B/s 261.92 B/s]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mildtransfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 time: [87.971 ms 88.105 ms 88.239 ms]
thrpt: [113.33 Kelem/s 113.50 Kelem/s 113.67 Kelem/s]streams-flow-controlled/walltime/1-streams/each-4194304-bytes time: [13.102 ms 13.116 ms 13.129 ms]
thrpt: [304.67 MiB/s 304.96 MiB/s 305.30 MiB/s]
Found 12 outliers among 100 measurements (12.00%)
10 (10.00%) low severe
1 (1.00%) low mild
1 (1.00%) high mildstreams-flow-controlled/walltime/10-streams/each-1048576-bytes time: [35.002 ms 35.048 ms 35.093 ms]
thrpt: [284.96 MiB/s 285.32 MiB/s 285.70 MiB/s]streams/walltime/1-streams/each-1000-bytes time: [162.38 µs 163.04 µs 163.88 µs]
thrpt: [5.8193 MiB/s 5.8493 MiB/s 5.8729 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mildstreams/walltime/1000-streams/each-1-bytes time: [4.7563 ms 4.7584 ms 4.7605 ms]
thrpt: [205.14 KiB/s 205.23 KiB/s 205.32 KiB/s]
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) low mild
2 (2.00%) high mildstreams/walltime/1000-streams/each-1000-bytes time: [15.219 ms 15.230 ms 15.241 ms]
thrpt: [62.573 MiB/s 62.616 MiB/s 62.662 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) low mildtransfer/walltime/pacing-false/same-seed time: [3.2372 ms 3.2393 ms 3.2410 ms]
thrpt: [1.2052 GiB/s 1.2059 GiB/s 1.2067 GiB/s]transfer/walltime/pacing-false/varying-seeds time: [3.5430 ms 3.5441 ms 3.5455 ms]
thrpt: [1.1018 GiB/s 1.1022 GiB/s 1.1025 GiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mildtransfer/walltime/pacing-true/same-seed time: [3.9089 ms 3.9103 ms 3.9119 ms]
thrpt: [1022.5 MiB/s 1022.9 MiB/s 1023.3 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildtransfer/walltime/pacing-true/varying-seeds time: [3.8320 ms 3.8344 ms 3.8373 ms]
thrpt: [1.0180 GiB/s 1.0187 GiB/s 1.0194 GiB/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 e166635. No significant performance differences. 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
|
This matches what we do in WebTransport and ensures a session cannot starve others when capsules are used.