Skip to content

fix(transport): Expand datagrams carrying path validation frames to 1200 bytes - #4391

Closed
larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:fix-path-challenge-padding
Closed

larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:fix-path-challenge-padding

Conversation

@larseggert

@larseggert larseggert commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Path validation frames wait for a datagram that can be expanded to 1200 bytes, unless the anti-amplification limit prevents it (RFC 9000, Section 8.2).

A PATH_CHALLENGE waits for a datagram that can be expanded, unless the anti-amplification limit prevents it (RFC 9000, Section 8.2.1).
@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.60%. Comparing base (e166635) to head (656917e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4391      +/-   ##
==========================================
- Coverage   96.73%   96.60%   -0.13%     
==========================================
  Files         113      118       +5     
  Lines       43491    43893     +402     
  Branches    43491    43893     +402     
==========================================
+ Hits        42073    42405     +332     
- Misses       1406     1467      +61     
- Partials       12       21       +9     
Flag Coverage Δ
freebsd 94.13% <100.00%> (-0.10%) ⬇️
linux 96.76% <100.00%> (-0.02%) ⬇️
macos 94.51% <100.00%> (+<0.01%) ⬆️
windows 94.56% <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.11% <100.00%> (-0.03%) ⬇️
neqo-udp 87.63% <ø> (ø)
mtu 91.31% <ø> (ø)

@codspeed

codspeed Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 1.22%

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

⚡ 2 improved benchmarks
❌ 3 regressed benchmarks
✅ 96 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.07%
❌ Walltime walltime/pacing-true/same-seed 4 ms 4.2 ms -3.58%
❌ Walltime quiche-neqo 46.4 ms 47.8 ms -2.92%
⚡ Walltime 1-conn/1-100mb-req (aka. Upload) 62.1 ms 60 ms +3.62%
⚡ Walltime neqo-neqo-cubic 26.9 ms 26.3 ms +2.15%

Tip

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


Comparing larseggert:fix-path-challenge-padding (656917e) 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:   [60.219 ms 60.249 ms 60.278 ms]
       thrpt:  [1.6201 GiB/s 1.6209 GiB/s 1.6217 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [60.134 ms 60.184 ms 60.234 ms]
       thrpt:  [1.6213 GiB/s 1.6226 GiB/s 1.6240 GiB/s]
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8017 ms 3.8028 ms 3.8038 ms]
       thrpt:  [262.89   B/s 262.97   B/s 263.04   B/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [87.417 ms 87.584 ms 87.748 ms]
       thrpt:  [113.96 Kelem/s 114.18 Kelem/s 114.39 Kelem/s]
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.247 ms 13.251 ms 13.256 ms]
       thrpt:  [301.76 MiB/s 301.86 MiB/s 301.96 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [35.489 ms 35.502 ms 35.515 ms]
       thrpt:  [281.57 MiB/s 281.67 MiB/s 281.77 MiB/s]
streams/walltime/1-streams/each-1000-bytes
       time:   [161.24 µs 161.90 µs 162.75 µs]
       thrpt:  [5.8598 MiB/s 5.8906 MiB/s 5.9147 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.9370 ms 4.9442 ms 4.9512 ms]
       thrpt:  [197.24 KiB/s 197.52 KiB/s 197.80 KiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.281 ms 15.297 ms 15.313 ms]
       thrpt:  [62.280 MiB/s 62.344 MiB/s 62.409 MiB/s]
transfer/walltime/pacing-false/same-seed
       time:   [3.1892 ms 3.1914 ms 3.1941 ms]
       thrpt:  [1.2230 GiB/s 1.2240 GiB/s 1.2248 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/walltime/pacing-false/varying-seeds
       time:   [3.4284 ms 3.4300 ms 3.4319 ms]
       thrpt:  [1.1382 GiB/s 1.1388 GiB/s 1.1394 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [3.9581 ms 3.9598 ms 3.9619 ms]
       thrpt:  [1009.6 MiB/s 1010.1 MiB/s 1010.6 MiB/s]
transfer/walltime/pacing-true/varying-seeds
       time:   [3.8463 ms 3.8481 ms 3.8503 ms]
       thrpt:  [1.0145 GiB/s 1.0151 GiB/s 1.0156 GiB/s]

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
streams/walltime/1000-streams/each-1-bytes 3.28 3.19 -2.9%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.11 3.16 +1.6%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.21 3.25 +1.2%
streams/walltime/1000-streams/each-1000-bytes 2.97 2.94 -1.0%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.96 2.93 -0.9%
transfer/walltime/pacing-true/varying-seeds 2.86 2.88 +0.8%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.10 3.12 +0.6%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.26 +0.5%
transfer/walltime/pacing-false/same-seed 2.87 2.88 +0.5%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.05 3.06 +0.4%
transfer/walltime/pacing-false/varying-seeds 2.86 2.87 +0.2%
streams/walltime/1-streams/each-1000-bytes 2.55 2.56 +0.1%
transfer/walltime/pacing-true/same-seed 2.86 2.86 +0.0%
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: 🚀H L1 C1 🚀C2 ⚠️BA
neqo-pr vs. linuxquic: ⚠️L1 CM
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1 🚀BA
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 C1 CM
neqo-pr vs. picoquic: A ⚠️BP BA
neqo-pr vs. quic-go: A
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
lsquic vs. neqo-pr: ⚠️L1
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: 🚀Z 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: baseline result missing
quinn vs. neqo-pr: ⚠️L1 V2 CM
s2n-quic vs. neqo-pr: ⚠️B BP 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.0 – 158.5 157.1 ± 0.5 203.5 ± 0.7
google-neqo-cubic 82.5 ± 0.4 81.5 – 83.4 82.5 ± 0.5 388.0 ± 2.1 +0.3 (+0.4%)
neqo-google-cubic 248.1 ± 38.5 205.2 – 319.1 255.9 ± 66.5 129.0 ± 20.0 +23.0 (+9.9%)
neqo-neqo-cubic 23.9 ± 0.2 23.5 – 24.5 23.8 ± 0.2 1339.3 ± 12.2 -0.1 (-0.4%)
neqo-neqo-cubic-nopacing 23.3 ± 0.1 23.1 – 23.9 23.3 ± 0.1 1371.5 ± 7.8 -0.0 (-0.0%)
neqo-neqo-newreno 23.9 ± 0.2 23.5 – 24.5 23.9 ± 0.2 1338.8 ± 11.4 -0.1 (-0.4%)
neqo-neqo-newreno-nopacing 23.3 ± 0.2 23.1 – 24.0 23.3 ± 0.2 1371.0 ± 9.9 -0.0 (-0.1%)
neqo-quiche-cubic 35.1 ± 0.3 34.3 – 36.1 35.1 ± 0.3 911.2 ± 8.7 -0.1 (-0.3%)
neqo-s2n-cubic 45.5 ± 0.2 45.0 – 46.0 45.5 ± 0.2 703.1 ± 3.3 -0.0 (-0.0%)
quiche-neqo-cubic 36.4 ± 0.4 35.2 – 37.4 36.4 ± 0.4 879.8 ± 10.1 +0.1 (+0.3%)
quiche-quiche 42.8 ± 0.3 42.2 – 43.4 42.8 ± 0.2 747.4 ± 4.5
s2n-neqo-cubic 132.3 ± 0.5 130.4 – 133.8 132.2 ± 0.4 241.9 ± 0.9 -0.2 (-0.2%)
s2n-s2n ⚠️ 179.7 ± 30.5 145.7 – 269.6 171.6 ± 1.7 178.1 ± 30.2

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

@larseggert larseggert changed the title fix(transport): Expand datagrams carrying PATH_CHALLENGE to 1200 bytes fix(transport): Expand datagrams carrying path validation frames to 1200 bytes Nov 19, 2026
@larseggert larseggert closed this Nov 19, 2026
@larseggert
larseggert deleted the fix-path-challenge-padding branch November 19, 2026 22:39
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