Skip to content

fix(transport): Re-probe without ECN when every PATH_CHALLENGE was ECN-marked - #4400

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

larseggert wants to merge 1 commit into
mainfrom
fix-ecn-reprobe

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

A path whose ECN validation ended before its last attempt timed out failed instead of being re-probed without ECN.

…N-marked

A path whose ECN validation ended before its last attempt timed out failed instead of being re-probed without ECN.
@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 (ad5216c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4400      +/-   ##
==========================================
- Coverage   96.73%   96.62%   -0.12%     
==========================================
  Files         113      118       +5     
  Lines       43491    43895     +404     
  Branches    43491    43895     +404     
==========================================
+ Hits        42073    42414     +341     
- Misses       1406     1460      +54     
- 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.57% <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% <ø> (ø)

@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

⚡ 5 improved benchmarks
❌ 3 regressed benchmarks
✅ 93 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.5 ms -5.1%
❌ Walltime walltime/pacing-true/same-seed 4 ms 4.2 ms -3.97%
❌ Walltime quiche-neqo 46.4 ms 47.5 ms -2.37%
⚡ Walltime 1-conn/10_000-parallel-1b-resp (aka. RPS) 87 ms 84 ms +3.55%
⚡ Walltime neqo-neqo-cubic 26.9 ms 26.2 ms +2.77%
⚡ Walltime walltime/pacing-false/varying-seeds 3.4 ms 3.4 ms +2.35%
⚡ Walltime neqo-s2n 59.8 ms 58.5 ms +2.21%
⚡ Walltime walltime/1000-streams/each-1-bytes 4.8 ms 4.7 ms +2.13%

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-reprobe (ad5216c) with main (e166635)

Open in CodSpeed

@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:   [59.492 ms 59.533 ms 59.576 ms]
       thrpt:  [1.6392 GiB/s 1.6404 GiB/s 1.6415 GiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [59.492 ms 59.543 ms 59.595 ms]
       thrpt:  [1.6387 GiB/s 1.6401 GiB/s 1.6415 GiB/s]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8144 ms 3.8153 ms 3.8161 ms]
       thrpt:  [262.05   B/s 262.11   B/s 262.17   B/s]
Found 13 outliers among 100 measurements (13.00%)
10 (10.00%) high mild
3 (3.00%) high severe
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [86.662 ms 86.836 ms 87.005 ms]
       thrpt:  [114.94 Kelem/s 115.16 Kelem/s 115.39 Kelem/s]
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) low mild
2 (2.00%) high mild
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.010 ms 13.014 ms 13.018 ms]
       thrpt:  [307.28 MiB/s 307.36 MiB/s 307.45 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [35.201 ms 35.213 ms 35.224 ms]
       thrpt:  [283.90 MiB/s 283.99 MiB/s 284.08 MiB/s]
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) low mild
3 (3.00%) high mild
streams/walltime/1-streams/each-1000-bytes
       time:   [162.88 µs 163.59 µs 164.49 µs]
       thrpt:  [5.7977 MiB/s 5.8298 MiB/s 5.8550 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.8064 ms 4.8082 ms 4.8100 ms]
       thrpt:  [203.03 KiB/s 203.10 KiB/s 203.18 KiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.122 ms 15.134 ms 15.146 ms]
       thrpt:  [62.966 MiB/s 63.014 MiB/s 63.063 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
transfer/walltime/pacing-false/same-seed
       time:   [3.3415 ms 3.3429 ms 3.3446 ms]
       thrpt:  [1.1679 GiB/s 1.1685 GiB/s 1.1690 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/walltime/pacing-false/varying-seeds
       time:   [3.5690 ms 3.5707 ms 3.5728 ms]
       thrpt:  [1.0933 GiB/s 1.0940 GiB/s 1.0945 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [4.0881 ms 4.0896 ms 4.0913 ms]
       thrpt:  [977.69 MiB/s 978.10 MiB/s 978.45 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/walltime/pacing-true/varying-seeds
       time:   [3.9957 ms 3.9983 ms 4.0014 ms]
       thrpt:  [999.65 MiB/s 1000.4 MiB/s 1001.1 MiB/s]

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.88 2.98 +3.4%
streams/walltime/1000-streams/each-1000-bytes 2.93 2.98 +1.7%
transfer/walltime/pacing-false/same-seed 2.82 2.87 +1.6%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.09 3.13 +1.1%
transfer/walltime/pacing-false/varying-seeds 2.88 2.86 -0.9%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.12 3.15 +0.9%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.21 3.23 +0.7%
streams/walltime/1000-streams/each-1-bytes 3.27 3.25 -0.5%
transfer/walltime/pacing-true/varying-seeds 2.86 2.85 -0.5%
transfer/walltime/pacing-true/same-seed 2.87 2.86 -0.3%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.24 -0.3%
streams/walltime/1-streams/each-1000-bytes 2.56 2.56 +0.1%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.11 3.11 +0.1%
Profiles for profiler.firefox.com (64)

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

@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: 🚀C20 3 ⚠️R U L1 C1 🚀V2 BP
neqo-pr vs. linuxquic: CM
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1 🚀C2
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
neqo-pr vs. quiche: BP BA
neqo-pr vs. quinn: ⚠️BP
neqo-pr vs. s2n-quic: CM
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: Z A L1 🚀C1
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: run cancelled after 20 min
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
ngtcp2 vs. neqo-pr: run cancelled after 20 min
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: 🚀L1 C1 V2 CM
s2n-quic vs. neqo-pr: BP CM
tquic vs. neqo-pr: CM
xquic vs. neqo-pr: run cancelled after 20 min
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.

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-neqo-cubic 80.7 ± 0.3 79.6 – 81.5 80.6 ± 0.3 396.7 ± 1.7 💔 +1.3 (+1.6%)
neqo-neqo-cubic 23.8 ± 0.2 23.5 – 24.5 23.8 ± 0.2 1343.2 ± 10.6 💚 -0.3 (-1.2%)
neqo-neqo-cubic-nopacing 23.2 ± 0.1 22.9 – 23.6 23.1 ± 0.1 1382.2 ± 8.4 💚 -0.3 (-1.4%)

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 159.4 ± 0.4 158.6 – 160.3 159.4 ± 0.4 200.8 ± 0.5
google-neqo-cubic 80.7 ± 0.3 79.6 – 81.5 80.6 ± 0.3 396.7 ± 1.7 💔 +1.3 (+1.6%)
neqo-google-cubic 246.7 ± 41.6 200.0 – 325.8 238.8 ± 47.0 129.7 ± 21.9 -16.8 (-6.6%)
neqo-neqo-cubic 23.8 ± 0.2 23.5 – 24.5 23.8 ± 0.2 1343.2 ± 10.6 💚 -0.3 (-1.2%)
neqo-neqo-cubic-nopacing 23.2 ± 0.1 22.9 – 23.6 23.1 ± 0.1 1382.2 ± 8.4 💚 -0.3 (-1.4%)
neqo-neqo-newreno 23.7 ± 0.2 23.4 – 24.5 23.7 ± 0.2 1348.1 ± 11.1 -0.1 (-0.5%)
neqo-neqo-newreno-nopacing 23.2 ± 0.2 22.9 – 23.8 23.1 ± 0.1 1380.7 ± 11.9 -0.2 (-0.8%)
neqo-quiche-cubic 35.0 ± 0.3 34.4 – 36.1 35.0 ± 0.3 913.4 ± 8.5 +0.1 (+0.3%)
neqo-s2n-cubic 45.5 ± 0.2 45.0 – 45.8 45.5 ± 0.2 704.0 ± 3.1 +0.0 (+0.0%)
quiche-neqo-cubic 36.2 ± 0.4 35.0 – 37.0 36.3 ± 0.4 882.9 ± 9.9 -0.2 (-0.5%)
quiche-quiche 42.5 ± 0.2 42.1 – 43.6 42.5 ± 0.2 752.6 ± 4.0
s2n-neqo-cubic 128.8 ± 0.7 127.2 – 132.5 128.7 ± 0.6 248.5 ± 1.4 -0.2 (-0.1%)
s2n-s2n ⚠️ 175.1 ± 24.3 145.9 – 271.5 170.1 ± 1.8 182.7 ± 25.4

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

migration_to_ecn_blackhole(true);
}

fn migration_to_ecn_blackhole(force: bool) {

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.

2 participants