Skip to content

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

Draft
larseggert wants to merge 2 commits into
mainfrom
fix-path-challenge-padding
Draft

larseggert wants to merge 2 commits into
mainfrom
fix-path-challenge-padding

Conversation

@larseggert

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).
A PATH_RESPONSE waits for a datagram that can be expanded, unless the anti-amplification limit prevents it (RFC 9000, Section 8.2.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 (178eebb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4395      +/-   ##
==========================================
- Coverage   96.73%   96.62%   -0.12%     
==========================================
  Files         113      118       +5     
  Lines       43491    43893     +402     
  Branches    43491    43893     +402     
==========================================
+ Hits        42073    42412     +339     
- 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.51% <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.14% <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 1 benchmark

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
❌ 1 regressed benchmark
✅ 95 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 -5.55%
⚡ Walltime walltime/pacing-false/varying-seeds 3.4 ms 3.3 ms +4.92%
⚡ Walltime neqo-neqo-cubic 26.9 ms 25.9 ms +4.03%
⚡ Walltime 1-conn/1-100mb-req (aka. Upload) 62.1 ms 60.5 ms +2.71%
⚡ Walltime neqo-s2n 59.8 ms 58.4 ms +2.34%
⚡ Walltime 1-conn/1-1b-resp (aka. HPS) 3.8 ms 3.7 ms +2.05%

Tip

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


Comparing fix-path-challenge-padding (178eebb) 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: 🚀DC LR 🚀M Z ⚠️A L1 🚀L2 C1 ⚠️BA
neqo-pr vs. linuxquic: ⚠️L1 CM
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: ⚠️Z A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: Z L1 C1 CM
neqo-pr vs. picoquic: A 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 L1 C1
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: CM
msquic vs. neqo-pr: ⚠️C1 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: CM
quinn vs. neqo-pr: V2 CM
s2n-quic vs. neqo-pr: 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

Benchmark results

No significant performance differences relative to e166635.

All results
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500
       time:   [61.379 ms 61.425 ms 61.470 ms]
       thrpt:  [1.5887 GiB/s 1.5898 GiB/s 1.5910 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [58.818 ms 58.864 ms 58.911 ms]
       thrpt:  [1.6577 GiB/s 1.6590 GiB/s 1.6603 GiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.7965 ms 3.7976 ms 3.7986 ms]
       thrpt:  [263.25   B/s 263.33   B/s 263.40   B/s]
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) low mild
3 (3.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [86.957 ms 87.129 ms 87.296 ms]
       thrpt:  [114.55 Kelem/s 114.77 Kelem/s 115.00 Kelem/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [12.879 ms 12.882 ms 12.886 ms]
       thrpt:  [310.40 MiB/s 310.50 MiB/s 310.59 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:   [35.314 ms 35.330 ms 35.347 ms]
       thrpt:  [282.91 MiB/s 283.04 MiB/s 283.17 MiB/s]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mild
streams/walltime/1-streams/each-1000-bytes
       time:   [160.96 µs 161.58 µs 162.35 µs]
       thrpt:  [5.8741 MiB/s 5.9024 MiB/s 5.9247 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.9202 ms 4.9281 ms 4.9359 ms]
       thrpt:  [197.85 KiB/s 198.16 KiB/s 198.48 KiB/s]
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.264 ms 15.278 ms 15.292 ms]
       thrpt:  [62.364 MiB/s 62.421 MiB/s 62.480 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
transfer/walltime/pacing-false/same-seed
       time:   [3.2060 ms 3.2075 ms 3.2094 ms]
       thrpt:  [1.2171 GiB/s 1.2178 GiB/s 1.2184 GiB/s]
transfer/walltime/pacing-false/varying-seeds
       time:   [3.2849 ms 3.2870 ms 3.2896 ms]
       thrpt:  [1.1875 GiB/s 1.1884 GiB/s 1.1891 GiB/s]
Found 14 outliers among 100 measurements (14.00%)
14 (14.00%) high severe
transfer/walltime/pacing-true/same-seed
       time:   [4.0097 ms 4.0114 ms 4.0135 ms]
       thrpt:  [996.63 MiB/s 997.16 MiB/s 997.59 MiB/s]
transfer/walltime/pacing-true/varying-seeds
       time:   [3.8615 ms 3.8640 ms 3.8671 ms]
       thrpt:  [1.0101 GiB/s 1.0109 GiB/s 1.0116 GiB/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.05 3.18 +4.4%
streams/walltime/1000-streams/each-1-bytes 3.28 3.18 -3.1%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.18 3.25 +2.3%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.96 3.01 +1.5%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.11 3.15 +1.5%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.06 3.09 +0.9%
transfer/walltime/pacing-false/varying-seeds 2.86 2.84 -0.8%
transfer/walltime/pacing-true/same-seed 2.88 2.86 -0.5%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.24 2.25 +0.3%
streams/walltime/1000-streams/each-1000-bytes 2.94 2.94 +0.3%
transfer/walltime/pacing-false/same-seed 2.88 2.88 +0.2%
transfer/walltime/pacing-true/varying-seeds 2.89 2.88 -0.1%
streams/walltime/1-streams/each-1000-bytes 2.58 2.58 +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

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.5 ± 0.4 79.4 – 81.6 80.5 ± 0.4 397.7 ± 2.0 💔 +1.0 (+1.3%)
neqo-neqo-cubic 23.7 ± 0.2 23.3 – 24.6 23.6 ± 0.2 1352.8 ± 12.1 💚 -0.3 (-1.2%)

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 155.8 ± 0.5 154.5 – 157.4 155.7 ± 0.4 205.4 ± 0.7
google-neqo-cubic 80.5 ± 0.4 79.4 – 81.6 80.5 ± 0.4 397.7 ± 2.0 💔 +1.0 (+1.3%)
neqo-google-cubic 242.0 ± 38.2 203.2 – 326.4 225.4 ± 28.0 132.2 ± 20.8 -20.6 (-8.4%)
neqo-neqo-cubic 23.7 ± 0.2 23.3 – 24.6 23.6 ± 0.2 1352.8 ± 12.1 💚 -0.3 (-1.2%)
neqo-neqo-cubic-nopacing 23.3 ± 0.1 23.0 – 23.8 23.3 ± 0.1 1375.0 ± 8.8 -0.1 (-0.2%)
neqo-neqo-newreno 23.7 ± 0.2 23.2 – 24.4 23.7 ± 0.2 1351.0 ± 13.1 -0.2 (-0.8%)
neqo-neqo-newreno-nopacing 23.1 ± 0.2 22.9 – 23.7 23.1 ± 0.1 1382.4 ± 10.4 -0.2 (-0.7%)
neqo-quiche-cubic 35.3 ± 0.4 34.6 – 36.4 35.2 ± 0.3 906.5 ± 9.9 -0.0 (-0.0%)
neqo-s2n-cubic 45.3 ± 0.2 44.8 – 45.6 45.3 ± 0.2 706.9 ± 3.0 +0.0 (+0.0%)
quiche-neqo-cubic 36.0 ± 0.5 35.0 – 38.0 36.0 ± 0.4 888.3 ± 12.0 -0.3 (-0.9%)
quiche-quiche 42.7 ± 0.3 42.1 – 43.5 42.8 ± 0.4 749.1 ± 5.9
s2n-neqo-cubic 127.0 ± 0.7 125.8 – 129.3 126.8 ± 0.7 252.0 ± 1.4 -0.1 (-0.1%)
s2n-s2n ⚠️ 173.1 ± 22.9 145.8 – 286.2 169.1 ± 1.2 184.9 ± 24.5

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