Skip to content

refactor(transport): Scale sent ACK Delay by the local ack_delay_exponent - #4396

Draft
larseggert wants to merge 1 commit into
mainfrom
refactor-ack-delay-exponent
Draft

larseggert wants to merge 1 commit into
mainfrom
refactor-ack-delay-exponent

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

The ACK Delay field is encoded with our own transport parameter instead of assuming the default.

…nent

The ACK Delay field is encoded with our own transport parameter instead of assuming the default.
@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: run cancelled after 20 min
neqo-pr vs. haproxy: BP BA
neqo-pr vs. kwik: 🚀U ⚠️H R B L1 C1
neqo-pr vs. linuxquic: 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 🚀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 ⚠️L1
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: 🚀BA 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: 🚀L1 CM
quiche vs. neqo-pr: 🚀L1 CM
quinn vs. neqo-pr: 🚀L1 V2 CM
rama vs. neqo-pr: run cancelled after 20 min
s2n-quic vs. neqo-pr: ⚠️BP CM
tquic vs. neqo-pr: CM
xquic vs. neqo-pr: M ⚠️L1 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

@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

⚡ 7 improved benchmarks
❌ 1 regressed benchmark
✅ 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 -4.02%
⚡ Walltime 1-conn/10_000-parallel-1b-resp (aka. RPS) 87 ms 82.6 ms +5.32%
⚡ Walltime neqo-neqo-cubic 26.9 ms 25.8 ms +4.46%
⚡ Walltime walltime/pacing-false/varying-seeds 3.4 ms 3.3 ms +4%
⚡ Walltime 1-conn/1-100mb-resp (aka. Download) 61.7 ms 59.5 ms +3.7%
⚡ Walltime walltime/pacing-true/varying-seeds 4 ms 3.9 ms +3.25%
⚡ Walltime 1-conn/1-100mb-req (aka. Upload) 62.1 ms 60.3 ms +2.94%
⚡ Walltime neqo-s2n 59.8 ms 58.5 ms +2.24%

Tip

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


Comparing refactor-ack-delay-exponent (26cda15) 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:   [61.864 ms 61.934 ms 62.010 ms]
       thrpt:  [1.5748 GiB/s 1.5768 GiB/s 1.5786 GiB/s]
Found 12 outliers among 100 measurements (12.00%)
6 (6.00%) high mild
6 (6.00%) high severe
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [62.136 ms 62.200 ms 62.270 ms]
       thrpt:  [1.5683 GiB/s 1.5700 GiB/s 1.5717 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8166 ms 3.8178 ms 3.8188 ms]
       thrpt:  [261.86   B/s 261.93   B/s 262.02   B/s]
Found 4 outliers among 100 measurements (4.00%)
3 (3.00%) high mild
1 (1.00%) high severe
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [86.880 ms 87.011 ms 87.138 ms]
       thrpt:  [114.76 Kelem/s 114.93 Kelem/s 115.10 Kelem/s]
Found 9 outliers among 100 measurements (9.00%)
1 (1.00%) low severe
3 (3.00%) low mild
5 (5.00%) high mild
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.035 ms 13.040 ms 13.045 ms]
       thrpt:  [306.64 MiB/s 306.76 MiB/s 306.87 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:   [34.935 ms 34.950 ms 34.965 ms]
       thrpt:  [286.00 MiB/s 286.12 MiB/s 286.24 MiB/s]
streams/walltime/1-streams/each-1000-bytes
       time:   [161.33 µs 161.99 µs 162.82 µs]
       thrpt:  [5.8571 MiB/s 5.8872 MiB/s 5.9112 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.7524 ms 4.7542 ms 4.7560 ms]
       thrpt:  [205.33 KiB/s 205.41 KiB/s 205.49 KiB/s]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) low mild
1 (1.00%) high mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [14.939 ms 14.948 ms 14.958 ms]
       thrpt:  [63.758 MiB/s 63.799 MiB/s 63.839 MiB/s]
transfer/walltime/pacing-false/same-seed
       time:   [3.4085 ms 3.4114 ms 3.4150 ms]
       thrpt:  [1.1438 GiB/s 1.1450 GiB/s 1.1460 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.2563 ms 3.2589 ms 3.2620 ms]
       thrpt:  [1.1975 GiB/s 1.1987 GiB/s 1.1996 GiB/s]
Found 5 outliers among 100 measurements (5.00%)
5 (5.00%) high mild
transfer/walltime/pacing-true/same-seed
       time:   [4.0033 ms 4.0062 ms 4.0096 ms]
       thrpt:  [997.60 MiB/s 998.46 MiB/s 999.17 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/walltime/pacing-true/varying-seeds
       time:   [3.8768 ms 3.8795 ms 3.8831 ms]
       thrpt:  [1.0060 GiB/s 1.0069 GiB/s 1.0076 GiB/s]

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
streams/walltime/1000-streams/each-1000-bytes 2.94 3.00 +2.0%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.06 3.12 +1.9%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.08 3.04 -1.2%
transfer/walltime/pacing-false/same-seed 2.89 2.86 -0.9%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.20 3.23 +0.8%
transfer/walltime/pacing-true/same-seed 2.87 2.86 -0.5%
transfer/walltime/pacing-false/varying-seeds 2.88 2.87 -0.4%
transfer/walltime/pacing-true/varying-seeds 2.87 2.88 +0.4%
streams/walltime/1000-streams/each-1-bytes 3.28 3.27 -0.3%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.24 2.25 +0.2%
streams/walltime/1-streams/each-1000-bytes 2.58 2.57 -0.2%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.12 3.12 -0.1%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.96 2.96 -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
neqo-neqo-cubic 23.7 ± 0.2 23.2 – 24.4 23.6 ± 0.2 1352.8 ± 12.8 💚 -0.5 (-2.2%)
neqo-neqo-cubic-nopacing 23.1 ± 0.1 22.8 – 23.6 23.1 ± 0.1 1382.4 ± 8.8 💚 -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 156.6 ± 0.6 154.9 – 158.3 156.5 ± 0.6 204.4 ± 0.8
google-neqo-cubic 79.9 ± 0.4 79.1 – 80.9 79.9 ± 0.4 400.5 ± 1.9 +0.7 (+0.9%)
neqo-google-cubic ⚠️ 237.5 ± 37.9 192.7 – 342.7 208.9 ± 8.4 134.7 ± 21.5 -31.2 (-13.0%)
neqo-neqo-cubic 23.7 ± 0.2 23.2 – 24.4 23.6 ± 0.2 1352.8 ± 12.8 💚 -0.5 (-2.2%)
neqo-neqo-cubic-nopacing 23.1 ± 0.1 22.8 – 23.6 23.1 ± 0.1 1382.4 ± 8.8 💚 -0.3 (-1.2%)
neqo-neqo-newreno 24.0 ± 0.2 23.5 – 24.6 24.0 ± 0.3 1335.1 ± 12.1 +0.0 (+0.1%)
neqo-neqo-newreno-nopacing 23.2 ± 0.2 22.9 – 24.1 23.2 ± 0.1 1379.9 ± 10.3 -0.2 (-1.0%)
neqo-quiche-cubic 35.0 ± 0.3 34.3 – 36.0 34.9 ± 0.3 914.4 ± 8.6 -0.0 (-0.0%)
neqo-s2n-cubic 45.4 ± 0.2 44.9 – 45.9 45.4 ± 0.3 705.0 ± 3.4 +0.0 (+0.0%)
quiche-neqo-cubic 36.1 ± 0.5 34.7 – 37.3 36.1 ± 0.4 886.9 ± 11.6 -0.2 (-0.6%)
quiche-quiche 42.5 ± 0.3 41.9 – 43.2 42.4 ± 0.3 753.6 ± 4.9
s2n-neqo-cubic 125.6 ± 0.4 125.0 – 126.8 125.5 ± 0.3 254.8 ± 0.8 +0.1 (+0.1%)
s2n-s2n ⚠️ 177.3 ± 28.9 144.2 – 271.7 169.3 ± 1.2 180.5 ± 29.4

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