Skip to content

Port VOT production patches to quiche 0.29.3 - #3

Merged
davidtorcivia merged 5 commits into
masterfrom
codex/vot-production-0.29.3
Aug 19, 2026
Merged

davidtorcivia merged 5 commits into
masterfrom
codex/vot-production-0.29.3

Conversation

@davidtorcivia

@davidtorcivia davidtorcivia commented Aug 19, 2026 •

Copy link
Copy Markdown

Summary

  • port the measured ACK-loop loss floor to both current recovery implementations
  • expire the floor on its own bounded timer without delaying an already-due or anti-deadlock PTO
  • preserve newer upstream CUBIC recovery fields while rebasing the patch
  • reject TLS exporter calls until the QUIC connection is established

Why

VOT enables the optional loss floor to avoid false loss and congestion events when acknowledgements are processed in batches. It also uses TLS exporter material for channel-bound authorization and requires an explicit pre-establishment failure.

Validation

  • cargo test -p quiche --features gcongestion (1,110 unit tests and 45 doc tests)
  • 20 focused ACK-floor tests across Reno, CUBIC, BBR2, and gcongestion BBR2
  • late-callback regression proving floor expiry does not suppress an already-due tail PTO
  • zero-inflight regression proving the floor neither advances nor suppresses an anti-deadlock PTO
  • targeted TLS exporter test before and after handshake establishment
  • cargo +nightly fmt -- --check

Strict local Clippy reaches pre-existing uninlined_format_args findings on the current base; this diff introduces none of those locations.

Acknowledgements are processed in batches and the RTT estimate only
samples the freshest packet of each batch. On a path whose RTT is close
to or below the granularity of ack processing, the time and packet
thresholds declare packets lost whose acknowledgements have not had a
chance to be processed yet. Each spurious declaration triggers a
retransmission and a congestion event for a packet that was delivered.

This adds a config option, off by default, that floors the loss delay
at the slowest send-to-processed-ack loop observed in the last 512ms,
and applies the packet reordering threshold only to packets older than
that loop. Both recovery implementations are covered.

Measured on a 10GbE path with 0.2-0.6ms RTT, six connections carrying
1GB with CUBIC: declared losses fell from 25-30k per run to 1.3-2.3k,
acks that disproved a declaration fell from 8-10k to 100-200, and
goodput rose from 7.9 to 8.8 Gbit/s median over five runs.

(cherry picked from commit 0d2f354)
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Returns InvalidState when export_keying_material is called before connection establishment. Tests cover fresh and partial handshakes while retaining the existing established exporter checks.

(cherry picked from commit 31a2d9c)
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
@davidtorcivia
davidtorcivia marked this pull request as ready for review August 19, 2026 05:24
@davidtorcivia

Copy link
Copy Markdown
Author

Independent exact-head review at 2bb421877826605514a4c21e7315b3439619c35f: clean. Both recovery engines preserve overdue in-flight PTOs and zero-inflight anti-deadlock PTO timing; the four-controller regressions cover legacy and gcongestion paths. No actionable blockers.

@davidtorcivia
davidtorcivia merged commit ecb58df into master Aug 19, 2026
34 of 35 checks passed
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