Skip to content

fix(transport): Validate ECN per path - #4399

Draft
larseggert wants to merge 1 commit into
mainfrom
fix-ecn-per-path
Draft

larseggert wants to merge 1 commit into
mainfrom
fix-ecn-per-path

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

ECT(0) packets sent on another path no longer count for the primary path's ECN validation (RFC 9000, Section 13.4.2).

ECT(0) packets sent on another path no longer count for the primary path's ECN validation (RFC 9000, Section 13.4.2).
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.62%. Comparing base (e166635) to head (dadfb2f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4399      +/-   ##
==========================================
- Coverage   96.73%   96.62%   -0.12%     
==========================================
  Files         113      118       +5     
  Lines       43491    43894     +403     
  Branches    43491    43894     +403     
==========================================
+ Hits        42073    42411     +338     
- Misses       1406     1462      +56     
- Partials       12       21       +9     
Flag Coverage Δ
freebsd 94.13% <100.00%> (-0.10%) ⬇️
linux 96.76% <100.00%> (-0.02%) ⬇️
macos 94.53% <100.00%> (+0.01%) ⬆️
windows 94.58% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
neqo-common 99.33% <ø> (ø)
neqo-http3 96.00% <ø> (ø)
neqo-qpack 96.55% <ø> (ø)
neqo-transport 97.13% <100.00%> (+<0.01%) ⬆️
neqo-udp 87.63% <ø> (ø)
mtu 91.31% <ø> (ø)

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to e166635.

All results
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500
       time:   [61.765 ms 61.807 ms 61.848 ms]
       thrpt:  [1.5790 GiB/s 1.5800 GiB/s 1.5811 GiB/s]
Found 10 outliers among 100 measurements (10.00%)
1 (1.00%) low severe
8 (8.00%) low mild
1 (1.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [60.526 ms 60.584 ms 60.648 ms]
       thrpt:  [1.6102 GiB/s 1.6119 GiB/s 1.6135 GiB/s]
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) high mild
2 (2.00%) high severe
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.7978 ms 3.7987 ms 3.7996 ms]
       thrpt:  [263.19   B/s 263.25   B/s 263.31   B/s]
Found 6 outliers among 100 measurements (6.00%)
1 (1.00%) low severe
3 (3.00%) low mild
2 (2.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [87.074 ms 87.233 ms 87.390 ms]
       thrpt:  [114.43 Kelem/s 114.64 Kelem/s 114.85 Kelem/s]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) low mild
1 (1.00%) high mild
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.033 ms 13.039 ms 13.044 ms]
       thrpt:  [306.64 MiB/s 306.78 MiB/s 306.91 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [36.036 ms 36.053 ms 36.071 ms]
       thrpt:  [277.23 MiB/s 277.37 MiB/s 277.50 MiB/s]
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) low mild
2 (2.00%) high mild
1 (1.00%) high severe
streams/walltime/1-streams/each-1000-bytes
       time:   [160.77 µs 161.44 µs 162.27 µs]
       thrpt:  [5.8769 MiB/s 5.9074 MiB/s 5.9318 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.7700 ms 4.7725 ms 4.7751 ms]
       thrpt:  [204.51 KiB/s 204.62 KiB/s 204.73 KiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.126 ms 15.137 ms 15.149 ms]
       thrpt:  [62.954 MiB/s 63.001 MiB/s 63.050 MiB/s]
transfer/walltime/pacing-false/same-seed
       time:   [3.4163 ms 3.4252 ms 3.4362 ms]
       thrpt:  [1.1368 GiB/s 1.1404 GiB/s 1.1434 GiB/s]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severe
transfer/walltime/pacing-false/varying-seeds
       time:   [3.2477 ms 3.2491 ms 3.2505 ms]
       thrpt:  [1.2018 GiB/s 1.2023 GiB/s 1.2028 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [3.7194 ms 3.7210 ms 3.7228 ms]
       thrpt:  [1.0493 GiB/s 1.0498 GiB/s 1.0502 GiB/s]
transfer/walltime/pacing-true/varying-seeds
       time:   [3.9659 ms 3.9673 ms 3.9689 ms]
       thrpt:  [1007.8 MiB/s 1008.3 MiB/s 1008.6 MiB/s]

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.11 3.16 +1.7%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.94 2.98 +1.3%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.09 3.05 -1.2%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.12 3.09 -1.1%
streams/walltime/1-streams/each-1000-bytes 2.54 2.56 +0.6%
streams/walltime/1000-streams/each-1-bytes 3.29 3.27 -0.6%
streams/walltime/1000-streams/each-1000-bytes 2.95 2.97 +0.5%
transfer/walltime/pacing-true/varying-seeds 2.90 2.88 -0.5%
transfer/walltime/pacing-true/same-seed 2.87 2.86 -0.4%
transfer/walltime/pacing-false/varying-seeds 2.86 2.86 -0.3%
transfer/walltime/pacing-false/same-seed 2.87 2.88 +0.1%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.21 3.21 +0.0%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.25 +0.0%
Profiles for profiler.firefox.com (64)

Download data for profiler.firefox.com or download performance comparison data.

@codspeed

codspeed Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will regress 3 benchmarks

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 6 improved benchmarks
❌ 3 regressed benchmarks
✅ 92 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Walltime walltime/pacing-false/same-seed 3.4 ms 3.6 ms -7.56%
❌ Walltime walltime/pacing-true/same-seed 4 ms 4.2 ms -4.35%
❌ Walltime quiche-neqo 46.4 ms 48.3 ms -3.89%
⚡ Walltime neqo-neqo-cubic 26.9 ms 25.9 ms +4.06%
⚡ Walltime 1-conn/10_000-parallel-1b-resp (aka. RPS) 87 ms 83.9 ms +3.67%
⚡ Walltime 1-conn/1-100mb-resp (aka. Download) 61.7 ms 60 ms +2.95%
⚡ Walltime walltime/pacing-false/varying-seeds 3.4 ms 3.4 ms +2.61%
⚡ CPU Simulation write_frames 1-stream 7.6 µs 7.4 µs +2.25%
⚡ CPU Simulation write_frames 5-streams 1-active 8.1 µs 8 µs +2.09%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix-ecn-per-path (dadfb2f) with main (e166635)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to main at e166635.

neqo-pr as clientneqo-pr as server
neqo-pr vs. go-x-net: BP BA
neqo-pr vs. haproxy: BP BA
neqo-pr vs. kwik: H 🚀A ⚠️M Z L1 C1 ⚠️BA
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1
neqo-pr vs. mvfst: H DC LR C20 M S R Z 3 B U E A L1 L2 C1 C2 6 V2 BP BA CM
neqo-pr vs. neqo: A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: Z 🚀L1 CM
neqo-pr vs. picoquic: A ⚠️BP BA
neqo-pr vs. quic-go: A 🚀L1
neqo-pr vs. quiche: BP BA
neqo-pr vs. s2n-quic: CM
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: Z A C1
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: CM
msquic vs. neqo-pr: CM
mvfst vs. neqo-pr: H DC LR C20 M S R Z 3 B U E A L1 L2 C1 C2 6 V2 BP BA CM
neqo vs. neqo-pr: A
openssl vs. neqo-pr: LR M A CM
quic-go vs. neqo-pr: CM
quic-zig vs. neqo-pr: CM
quiche vs. neqo-pr: CM
quinn vs. neqo-pr: V2 CM
s2n-quic vs. neqo-pr: CM
tquic vs. neqo-pr: CM
xquic vs. neqo-pr: M CM
All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

@github-actions

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to e166635.

No significant performance differences.

Table above only shows statistically significant changes. See all results below.

All results

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-google 157.2 ± 0.5 156.2 – 158.7 157.1 ± 0.4 203.5 ± 0.6
google-neqo-cubic 79.7 ± 0.4 78.8 – 80.6 79.7 ± 0.4 401.3 ± 1.8 +0.8 (+1.0%)
neqo-google-cubic ⚠️ 242.1 ± 39.5 204.9 – 328.5 210.5 ± 5.8 132.2 ± 21.6 -30.4 (-12.6%)
neqo-neqo-cubic 24.0 ± 0.2 23.5 – 24.6 23.9 ± 0.2 1335.2 ± 11.7 -0.0 (-0.1%)
neqo-neqo-cubic-nopacing 23.4 ± 0.1 23.2 – 23.8 23.4 ± 0.1 1365.7 ± 7.7 +0.1 (+0.3%)
neqo-neqo-newreno 24.1 ± 0.2 23.7 – 24.9 24.1 ± 0.2 1327.6 ± 10.9 +0.1 (+0.5%)
neqo-neqo-newreno-nopacing 23.4 ± 0.1 23.1 – 24.0 23.4 ± 0.1 1367.6 ± 8.4 +0.1 (+0.3%)
neqo-quiche-cubic 35.6 ± 0.4 35.0 – 36.6 35.6 ± 0.3 898.3 ± 9.2 +0.0 (+0.1%)
neqo-s2n-cubic 45.6 ± 0.3 45.1 – 46.5 45.6 ± 0.3 702.1 ± 3.9 +0.0 (+0.0%)
quiche-neqo-cubic 36.4 ± 0.4 35.5 – 37.7 36.4 ± 0.4 878.4 ± 10.8 -0.2 (-0.4%)
quiche-quiche 42.8 ± 0.3 42.1 – 43.6 42.8 ± 0.2 748.0 ± 4.7
s2n-neqo-cubic 127.1 ± 0.7 125.7 – 131.2 127.1 ± 0.6 251.8 ± 1.5 +0.0 (+0.0%)
s2n-s2n ⚠️ 172.7 ± 22.6 144.1 – 269.1 169.0 ± 1.3 185.3 ± 24.3

Download data for profiler.firefox.com or download performance comparison data.

This branch has not been deployed

No deployments
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.

1 participant