Skip to content

fix: don't count FC-blocked time against rwnd auto-tuning - #3642

Closed
larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:fix/fc-autotune-no-rtt
Closed

larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:fix/fc-autotune-no-rtt

Conversation

@larseggert

@larseggert larseggert commented May 20, 2026 •

Copy link
Copy Markdown
Collaborator

When the peer reports being blocked or has used all its credit, count at most
one RTT of the time since the last window update as sending time. The rest was
spent waiting for the update, and counting it made the measured consumption rate
look too low to grow the window, so the peer stayed blocked.

@larseggert

Copy link
Copy Markdown
Collaborator Author

Wow this did not happen in manual testing!

@codecov

codecov Bot commented May 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.76%. Comparing base (57ac6ca) to head (b287175).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3642      +/-   ##
==========================================
- Coverage   96.91%   96.76%   -0.16%     
==========================================
  Files         113      118       +5     
  Lines       39533    39908     +375     
  Branches    39533    39908     +375     
==========================================
+ Hits        38315    38616     +301     
- Misses       1203     1267      +64     
- Partials       15       25      +10     
Flag Coverage Δ
freebsd 94.08% <90.00%> (-0.15%) ⬇️
linux 96.95% <100.00%> (+<0.01%) ⬆️
macos 95.02% <90.00%> (-0.01%) ⬇️
windows 95.07% <90.00%> (-0.01%) ⬇️

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

Components Coverage Δ
neqo-common 99.26% <ø> (ø)
neqo-http3 95.28% <ø> (ø)
neqo-qpack 96.88% <ø> (ø)
neqo-transport 97.70% <100.00%> (+<0.01%) ⬆️
neqo-udp 95.37% <ø> (ø)
mtu 89.13% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@larseggert
larseggert force-pushed the fix/fc-autotune-no-rtt branch from 7ed50a9 to 881414c Compare May 21, 2026 10:04
…to-tuning

When the peer reports being blocked or has used all its credit, count at most
one RTT of the time since the last window update as sending time. The rest was
spent waiting for the update, and counting it made the measured consumption rate
look too low to grow the window, so the peer stayed blocked.
@larseggert
larseggert force-pushed the fix/fc-autotune-no-rtt branch from 881414c to b287175 Compare September 9, 2026 16:58
@larseggert larseggert changed the title fix: remove RTT dependency from flow control auto-tuning fix: don't count FC-blocked time against rwnd auto-tuning Sep 9, 2026
@codspeed

codspeed Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 81 untouched benchmarks


Comparing larseggert:fix/fc-autotune-no-rtt (b287175) with main (57ac6ca)

Open in CodSpeed

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Performance profiles for profiler.firefox.com

Benchmarks (14)
  • neqo-bin-main: pr · base
  • neqo-common-decoder: pr · base
  • neqo-http3-streams_simulated: pr · base
  • neqo-http3-streams_walltime: pr · base
  • neqo-transport-frame_decode: pr · base
  • neqo-transport-min_bandwidth: pr · base
  • neqo-transport-pacer: pr · base
  • neqo-transport-packet_codec: pr · base
  • neqo-transport-range_tracker: pr · base
  • neqo-transport-rx_stream_orderer: pr · base
  • neqo-transport-send_streams: pr · base
  • neqo-transport-sent_packets: pr · base
  • neqo-transport-transfer_simulated: pr · base
  • neqo-transport-transfer_walltime: pr · base
Comparisons (5)

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Failed Interop Tests

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

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: ⚠️C1
neqo-pr vs. linuxquic: 🚀C1 ⚠️BP
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1
neqo-pr vs. mvfst: A
neqo-pr vs. neqo: A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: CM
neqo-pr vs. picoquic: A ⚠️BP
neqo-pr vs. quic-go: A
neqo-pr vs. quic-zig: B
neqo-pr vs. quiche: BP BA
neqo-pr vs. s2n-quic: CM
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: S R Z A L1 C1
aioquic vs. neqo-pr: L1 CM
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: BP BA CM
msquic vs. neqo-pr: CM
mvfst vs. neqo-pr: Z L1 C1 CM
neqo vs. neqo-pr: A
openssl vs. neqo-pr: LR M A CM
quic-go vs. neqo-pr: CM
quiche vs. neqo-pr: CM
quinn vs. neqo-pr: L1 🚀C1 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

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to 57ac6ca.

All results
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1504: Change within noise threshold.
       time:   [160.56 ms 160.90 ms 161.24 ms]
       thrpt:  [620.20 MiB/s 621.51 MiB/s 622.82 MiB/s]
change:
       time:   [+0.0997% +0.3908% +0.6632%] (p = 0.00 < 0.05)
       thrpt:  [-0.6588% -0.3893% -0.0996%]
       Change within noise threshold.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1504: Change within noise threshold.
       time:   [220.11 ms 220.51 ms 220.94 ms]
       thrpt:  [45.261 Kelem/s 45.350 Kelem/s 45.431 Kelem/s]
change:
       time:   [-1.3313% -1.1204% -0.9103%] (p = 0.00 < 0.05)
       thrpt:  [+0.9187% +1.1330% +1.3492%]
       Change within noise threshold.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1504: No change in performance detected.
       time:   [35.979 ms 36.075 ms 36.174 ms]
       thrpt:  [27.644   B/s 27.720   B/s 27.794   B/s]
change:
       time:   [-0.0370% +0.3231% +0.6797%] (p = 0.09 > 0.05)
       thrpt:  [-0.6751% -0.3221% +0.0370%]
       No change in performance detected.
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mild
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1504: Change within noise threshold.
       time:   [160.82 ms 161.12 ms 161.43 ms]
       thrpt:  [619.46 MiB/s 620.66 MiB/s 621.83 MiB/s]
change:
       time:   [+0.8359% +1.0861% +1.3275%] (p = 0.00 < 0.05)
       thrpt:  [-1.3101% -1.0744% -0.8290%]
       Change within noise threshold.
streams/walltime/1-streams/each-1000-bytes: No change in performance detected.
       time:   [547.50 µs 549.46 µs 551.74 µs]
       thrpt:  [1.7285 MiB/s 1.7356 MiB/s 1.7419 MiB/s]
change:
       time:   [-0.1907% +0.3144% +0.8069%] (p = 0.22 > 0.05)
       thrpt:  [-0.8004% -0.3134% +0.1911%]
       No change in performance detected.
Found 11 outliers among 100 measurements (11.00%)
1 (1.00%) high mild
10 (10.00%) high severe
streams/walltime/1000-streams/each-1-bytes: Change within noise threshold.
       time:   [10.592 ms 10.606 ms 10.620 ms]
       thrpt:  [91.953 KiB/s 92.076 KiB/s 92.196 KiB/s]
change:
       time:   [+0.0391% +0.2487% +0.4452%] (p = 0.02 < 0.05)
       thrpt:  [-0.4432% -0.2481% -0.0391%]
       Change within noise threshold.
streams/walltime/1000-streams/each-1000-bytes: Change within noise threshold.
       time:   [30.536 ms 30.569 ms 30.602 ms]
       thrpt:  [31.164 MiB/s 31.198 MiB/s 31.232 MiB/s]
change:
       time:   [-1.7650% -1.6092% -1.4406%] (p = 0.00 < 0.05)
       thrpt:  [+1.4617% +1.6355% +1.7967%]
       Change within noise threshold.
streams-flow-controlled/walltime/1-streams/each-4194304-bytes: Change within noise threshold.
       time:   [26.049 ms 26.080 ms 26.112 ms]
       thrpt:  [153.19 MiB/s 153.37 MiB/s 153.56 MiB/s]
change:
       time:   [+0.0146% +0.1937% +0.3829%] (p = 0.04 < 0.05)
       thrpt:  [-0.3814% -0.1934% -0.0146%]
       Change within noise threshold.
streams-flow-controlled/walltime/10-streams/each-1048576-bytes: No change in performance detected.
       time:   [71.515 ms 71.587 ms 71.659 ms]
       thrpt:  [139.55 MiB/s 139.69 MiB/s 139.83 MiB/s]
change:
       time:   [-0.1532% +0.0015% +0.1545%] (p = 0.98 > 0.05)
       thrpt:  [-0.1543% -0.0015% +0.1534%]
       No change in performance detected.
transfer/walltime/pacing-false/varying-seeds: Change within noise threshold.
       time:   [17.144 ms 17.159 ms 17.174 ms]
       thrpt:  [232.91 MiB/s 233.11 MiB/s 233.32 MiB/s]
change:
       time:   [-0.8258% -0.7180% -0.6120%] (p = 0.00 < 0.05)
       thrpt:  [+0.6158% +0.7232% +0.8326%]
       Change within noise threshold.
transfer/walltime/pacing-true/varying-seeds: Change within noise threshold.
       time:   [17.524 ms 17.534 ms 17.545 ms]
       thrpt:  [227.98 MiB/s 228.12 MiB/s 228.26 MiB/s]
change:
       time:   [-0.9280% -0.8385% -0.7486%] (p = 0.00 < 0.05)
       thrpt:  [+0.7543% +0.8456% +0.9367%]
       Change within noise threshold.
transfer/walltime/pacing-false/same-seed: No change in performance detected.
       time:   [17.267 ms 17.279 ms 17.292 ms]
       thrpt:  [231.32 MiB/s 231.49 MiB/s 231.65 MiB/s]
change:
       time:   [-0.1830% -0.0813% +0.0119%] (p = 0.11 > 0.05)
       thrpt:  [-0.0119% +0.0814% +0.1833%]
       No change in performance detected.
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
transfer/walltime/pacing-true/same-seed: Change within noise threshold.
       time:   [17.587 ms 17.599 ms 17.611 ms]
       thrpt:  [227.13 MiB/s 227.29 MiB/s 227.44 MiB/s]
change:
       time:   [+0.0131% +0.1029% +0.1929%] (p = 0.03 < 0.05)
       thrpt:  [-0.1926% -0.1028% -0.0131%]
       Change within noise threshold.

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1504 1.75 1.78 +1.9%
streams/walltime/1000-streams/each-1000-bytes 1.96 1.98 +0.7%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1504 2.13 2.12 -0.6%
transfer/walltime/pacing-true/varying-seeds 2.20 2.21 +0.6%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 2.24 2.25 +0.6%
streams/walltime/1000-streams/each-1-bytes 2.11 2.10 -0.5%
transfer/walltime/pacing-true/same-seed 2.22 2.22 +0.3%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.20 2.20 -0.3%
transfer/walltime/pacing-false/varying-seeds 2.22 2.22 +0.2%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1504 2.10 2.10 -0.2%
transfer/walltime/pacing-false/same-seed 2.21 2.21 -0.1%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1504 1.80 1.81 +0.1%
streams/walltime/1-streams/each-1000-bytes 1.84 1.84 +0.0%

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

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to 57ac6ca.

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-nopacing 85.7 ± 5.4 73.4 – 101.8 86.1 ± 4.1 373.2 ± 23.6 💔 +7.7 (+9.8%)
neqo-neqo-newreno ⚠️ 78.9 ± 3.6 72.4 – 100.1 78.2 ± 2.1 405.4 ± 18.5 💔 +1.3 (+1.7%)
neqo-neqo-newreno-nopacing 86.6 ± 6.0 73.3 – 107.7 87.2 ± 5.6 369.4 ± 25.4 💔 +8.3 (+10.6%)
quiche-neqo-cubic 136.0 ± 1.8 134.1 – 144.5 135.6 ± 1.1 235.3 ± 3.1 💚 -1.6 (-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 461.1 ± 2.2 456.0 – 468.3 461.2 ± 2.1 69.4 ± 0.3
google-neqo-cubic 269.8 ± 1.8 264.3 – 276.3 269.7 ± 1.7 118.6 ± 0.8 +0.4 (+0.2%)
neqo-google-cubic 764.5 ± 3.1 756.7 – 772.6 764.5 ± 2.8 41.9 ± 0.2 +0.1 (+0.0%)
neqo-neqo-cubic 78.1 ± 2.1 73.2 – 85.0 77.8 ± 2.1 409.9 ± 11.0 +0.5 (+0.7%)
neqo-neqo-cubic-nopacing 85.7 ± 5.4 73.4 – 101.8 86.1 ± 4.1 373.2 ± 23.6 💔 +7.7 (+9.8%)
neqo-neqo-newreno ⚠️ 78.9 ± 3.6 72.4 – 100.1 78.2 ± 2.1 405.4 ± 18.5 💔 +1.3 (+1.7%)
neqo-neqo-newreno-nopacing 86.6 ± 6.0 73.3 – 107.7 87.2 ± 5.6 369.4 ± 25.4 💔 +8.3 (+10.6%)
neqo-quiche-cubic 193.4 ± 1.7 188.9 – 198.9 193.7 ± 1.6 165.4 ± 1.5 +1.2 (+0.6%)
neqo-s2n-cubic 215.2 ± 1.9 209.7 – 221.1 214.9 ± 1.4 148.7 ± 1.3 -0.6 (-0.3%)
quiche-neqo-cubic 136.0 ± 1.8 134.1 – 144.5 135.6 ± 1.1 235.3 ± 3.1 💚 -1.6 (-1.2%)
quiche-quiche 134.9 ± 3.1 128.6 – 147.3 134.7 ± 3.3 237.1 ± 5.5
s2n-neqo-cubic 218.9 ± 2.1 214.8 – 227.4 218.5 ± 1.3 146.2 ± 1.4 -0.2 (-0.1%)
s2n-s2n ⚠️ 293.5 ± 24.0 280.5 – 387.2 286.9 ± 2.6 109.0 ± 8.9

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

@larseggert

Copy link
Copy Markdown
Collaborator Author

Further testing revealed the issue is actually #3963

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