Skip to content

fix(transport): back-pressure the outbound QUIC datagram queue - #3859

Merged
mxinden merged 1 commit into
mozilla:mainfrom
mxinden-bot:outbound-datagram-backpressure
Sep 8, 2026
Merged

mxinden merged 1 commit into
mozilla:mainfrom
mxinden-bot:outbound-datagram-backpressure

Conversation

@mxinden

@mxinden mxinden commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

When the outgoing datagram queue was full, add_datagram head-dropped the oldest queued datagram. On the MASQUE connect-udp path that silently discards an inner-connection packet the application already handed us, which looks like loss to the inner connection and hurts upload throughput.

Back-pressure instead of dropping, mirroring stream sends. send_datagram now always queues the datagram and returns whether the queue still has room:

  • Ok(true): queued, and space remains for more.
  • Ok(false): queued, but the queue is now full. The caller should stop producing datagrams until it receives OutgoingDatagramSpaceAvailable. Nothing already queued is dropped.

The datagram is accepted even when the queue is already at capacity. The application has already produced it, so neqo holds it here, ready to send, rather than leaving it in a queue upstream that neqo cannot reach once space frees. Ok(false) is a high-watermark signal to stop, not a rejection.

Once a slot frees while blocked, emit OutgoingDatagramSpaceAvailable (surfaced to HTTP/3 clients as Http3ClientEvent::OutgoingDatagramSpaceAvailable, analogous to SendStreamWritable) so the caller resumes.

This covers the QUIC datagram queue only. The connect-udp HTTP DATAGRAM Capsule fallback (used when the peer offers no QUIC datagram support) still drops on a full control stream and reports success; giving it backpressure is left for a follow-up (see the note on write_datagram_capsule).

Removes the now-unreachable OutgoingDatagramOutcome::DroppedQueueFull variant and the dropped_queue_full stat.

Fixes #2852.

Conflicts with #3837.

@codecov

codecov Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.55172% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.75%. Comparing base (2d9598a) to head (80c795d).
⚠️ Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3859      +/-   ##
==========================================
- Coverage   96.93%   96.75%   -0.18%     
==========================================
  Files         113      118       +5     
  Lines       39424    39871     +447     
  Branches    39424    39871     +447     
==========================================
+ Hits        38215    38579     +364     
- Misses       1192     1267      +75     
- Partials       17       25       +8     
Flag Coverage Δ
freebsd 94.09% <87.93%> (-0.15%) ⬇️
linux 96.94% <96.55%> (+<0.01%) ⬆️
macos 95.02% <93.10%> (-0.02%) ⬇️
windows 95.07% <93.10%> (+<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% <95.40%> (+0.02%) ⬆️
neqo-qpack 96.88% <ø> (ø)
neqo-transport 97.69% <100.00%> (-0.04%) ⬇️
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.

@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from 44dfb27 to ae6911f Compare August 14, 2026 11:02
@codspeed

codspeed Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 3.84%

❌ 1 regressed benchmark
✅ 80 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Simulation coalesce_acked_from_zero 1 ranges 2.7 µs 2.8 µs -3.84%

Tip

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


Comparing mxinden-bot:outbound-datagram-backpressure (80c795d) with main (fba4fbf)

Open in CodSpeed

@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from ae6911f to dcff8a4 Compare August 18, 2026 12:52
@mxinden
mxinden marked this pull request as ready for review August 24, 2026 08:42
@mxinden
mxinden requested a review from omansfeld as a code owner August 24, 2026 08:42
Copilot AI balanced review requested due to automatic review settings August 24, 2026 08:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds outbound QUIC datagram backpressure to prevent head-dropping queued packets.

Changes:

  • Returns queue-capacity status from datagram send APIs.
  • Emits availability events when queue space returns.
  • Removes queue-full drop outcomes and statistics; updates tests.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
neqo-transport/src/stats.rs Removes queue-full drop statistics.
neqo-transport/src/quic_datagrams.rs Implements queue backpressure and notifications.
neqo-transport/src/events.rs Adds the transport availability event.
neqo-transport/src/connection/tests/datagram.rs Updates and extends queue tests.
neqo-transport/src/connection/mod.rs Changes send_datagram to return capacity status.
neqo-http3/src/webtransport.rs Propagates status through WebTransport APIs.
neqo-http3/src/features/extended_connect/tests/webtransport/mod.rs Updates the test helper return type.
neqo-http3/src/features/extended_connect/tests/webtransport/datagrams.rs Updates WebTransport expectations.
neqo-http3/src/features/extended_connect/session.rs Propagates datagram queue status.
neqo-http3/src/connection.rs Updates extended CONNECT forwarding.
neqo-http3/src/connection_server.rs Handles the new transport event.
neqo-http3/src/connection_client.rs Forwards availability to clients.
neqo-http3/src/connect_udp.rs Propagates status through CONNECT-UDP APIs.
neqo-http3/src/client_events.rs Adds the HTTP/3 client availability event.
Suppressed comments (1)

neqo-http3/src/features/extended_connect/session.rs:435

  • This boolean does not mean “queued”: both true and false mean the datagram was queued, while the value reports remaining capacity. As written, the trace logs queued=false for a successfully queued datagram, which contradicts the new contract. Name and log it as has_space instead.
        let queued = conn.send_datagram(dgram_data.into(), id)?;
        qtrace!("[{self}] sent datagram via QUIC datagram, queued={queued}");
        Ok(queued)

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread neqo-transport/src/quic_datagrams.rs Resolved
Comment thread neqo-http3/src/connection_server.rs Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replacing head-drop with backpressure is the right direction, and the "accept, then signal the high watermark" contract is a reasonable choice — it keeps neqo in control of a datagram the app has already produced instead of stranding it upstream. A few architectural observations beyond the inline comments:

The blocked flag is the fragile part. It is a single edge-triggered bit whose correctness depends on every path that removes a datagram from the queue re-evaluating it. Two of the three such paths currently get it wrong (see inline). A level-triggered formulation — no flag; just if self.datagrams.len() < max at the one exit point of write_frames, with dedup handled by ConnectionEvents::insert — would be harder to get wrong and would drop the state entirely. The only thing the flag buys is suppressing the event for apps that never hit the watermark, which insert's dedup plus a len() check largely covers anyway.

Res<bool> is boolean-blind across ~14 signatures. Ok(true)/Ok(false) at the call sites read as "did it send?" rather than "is there room left?", and the meaning is only recoverable from the doc comment — which is why the same four-line paragraph is now copy-pasted at eight sites. A small enum in neqo-transport (e.g. pub enum DatagramSpace { Available, Full }, or reuse the shape of SendStreamWritable) would make wt_session.send_datagram(...)? == DatagramSpace::Full self-documenting, let the doc live on the type, and give room to add a third state later — which the capsule path arguably already needs.

Public API breakage (worth calling out for the Gecko uplift, all intentional but each needs a mozilla-central counterpart): Connection::send_datagram and the six HTTP/3 *_send_datagram entry points change return type; OutgoingDatagramOutcome::DroppedQueueFull and DatagramStats::dropped_queue_full are removed; ConnectionEvent and Http3ClientEvent gain variants (breaking for exhaustive matches). Since send_datagram returning Ok(()) compiles unchanged as Ok(true)-ignoring code in most call shapes, existing callers will silently opt into the unbounded-queue behaviour rather than failing to build — which is what makes the hard-cap question inline worth settling before landing.

Losing dropped_queue_full costs observability. It was the one signal that an app was over-producing. If the queue is going to be effectively unbounded, a max_queued high-water-mark gauge (or a counter of add_datagram calls made while already full) would preserve the diagnostic that this stat provided in telemetry.

Also: neqo-bin's client and the connect-udp proxy path don't honour the new signal, so the change is not exercised by any in-tree application; and the PR notes a conflict with #3837, which will need resolving.

Comment thread neqo-transport/src/quic_datagrams.rs Resolved
Comment thread neqo-transport/src/quic_datagrams.rs Resolved
Comment thread neqo-transport/src/quic_datagrams.rs Resolved
Comment thread neqo-http3/src/connection_server.rs Resolved
Comment thread neqo-transport/src/events.rs Resolved
Comment thread neqo-http3/src/client_events.rs Resolved

@martinthomson martinthomson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the LLM review has picked up a bunch of nasties here.

Comment thread neqo-transport/src/quic_datagrams.rs Resolved
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from dcff8a4 to 6069393 Compare August 24, 2026 09:14
@mxinden
mxinden marked this pull request as draft August 24, 2026 09:20
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch 3 times, most recently from 26b1875 to 82f9154 Compare August 27, 2026 09:38
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Aug 27, 2026
The event queues in `neqo-transport` and `neqo-http3` each had an
`insert` method, and it meant different things: transport dropped
duplicates before appending, http3 just appended.

Add a shared `event::Queue<T>` in `neqo-common` with `push` (append) and
`insert_unique` (append if absent), and use it for all four queues.
Singleton http3 events now de-duplicate too.

Noticed while reviewing mozilla#3859.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Aug 27, 2026
The event queues in `neqo-transport` and `neqo-http3` each had an
`insert` method, and it meant different things: transport dropped
duplicates before appending, http3 just appended.

Add a shared `event::Queue<T>` in `neqo-common` with `push` (append) and
`insert_unique` (append if absent), and use it for all four queues.
Singleton http3 events now de-duplicate too.

Noticed while working on mozilla#3859.
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from 82f9154 to 3d5d21f Compare August 27, 2026 09:48
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Aug 27, 2026
The event queues in `neqo-transport` and `neqo-http3` each wrapped their
own `Rc<RefCell<VecDeque<_>>>` and both named the append method `insert`,
though transport's dropped duplicates and http3's did not.

Move the wrapper into `neqo-common` as `event::Queue<T>`, offering `push`
to append and `insert_unique` to append only if no equal event is queued.
Each call site now says which it wants. No behavior change.

Noticed while working on mozilla#3859.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Aug 27, 2026
The event queues in `neqo-transport` and `neqo-http3` each wrapped their
own `Rc<RefCell<VecDeque<_>>>` and both named the append method `insert`,
though transport's dropped duplicates and http3's did not.

Move the wrapper into `neqo-common` as `event::Queue<T>`, offering `push`
to append and `insert_unique` to append only if no equal event is queued.
No behavior change.

Noticed while working on mozilla#3859.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Aug 27, 2026
The event queues in `neqo-transport` and `neqo-http3` each wrapped their
own `Rc<RefCell<VecDeque<_>>>` and both named the append method `insert`,
though transport's dropped duplicates and http3's did not.

Move the wrapper into `neqo-common` as `event::Queue<T>`, offering `push`
to append and `push_unique` to append only if no equal event is queued.
No behavior change.

Noticed while working on mozilla#3859.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Aug 31, 2026
The event queues in `neqo-transport` and `neqo-http3` each wrapped their
own `Rc<RefCell<VecDeque<_>>>` and both named the append method `insert`,
though transport's dropped duplicates and http3's did not.

Move the wrapper into `neqo-common` as `event::Queue<T>`, offering `push`
to append and `push_unique` to append only if no equal event is queued.
No behavior change.

Noticed while working on mozilla#3859.
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from 3d5d21f to 03e62f9 Compare August 31, 2026 09:08

@mxinden mxinden left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larseggert while waiting on Martin, could you help out with a review?

Following up on a couple of comments from mxinden-bot#9:

A lot of the comments talk about the queue being "full" when elsewhere they more correctly say that the queue is above its high water mark. It would be good to be consistently use the water mark terminology, since "full" strongly implies nothing more can be queued, which is false.

On Ok(false) the producer SHOULD stop sending, this is not a MAY, thus I think the "full" terminology is right.

Is there not a better way to make sure there is exactly one than a remove followed by an insert? (Also elsewhere.)

Event de-duplication is now improved with #3905. Happy to do more follow-ups, but preference for doing so in a separate pull request.

Comment thread neqo-transport/src/quic_datagrams.rs Resolved
Comment thread neqo-http3/src/connect_udp.rs Resolved

@larseggert larseggert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if a module-level comment block somewhere would be a better place to describe the logic this implements in one place and completely. A lot of the comments are pretty repetitive and wordy, and they could then be much shorter (= point to the mod-level doc).

Not a blocker.

Comment thread neqo-http3/src/client_events.rs Resolved
Comment thread neqo-http3/src/server_events.rs Resolved
Comment thread neqo-transport/src/events.rs Resolved
Comment thread neqo-transport/src/quic_datagrams.rs Resolved
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from 8b38665 to c4e3b18 Compare September 7, 2026 09:27
@mxinden

mxinden commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

@martinthomson following up on your comment regarding missing datagram capsule backpressure in #3859 (comment). Good challenge, thanks. I believe I found an elegant solution. The capsule path now returns FlowControlLimit instead of dropping the datagram, and arms stream_set_writable_event_low_watermark so an OutgoingDatagramSpaceAvailable event fires once the control stream can hold a capsule again.

mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Sep 7, 2026
`QuicDatagrams::write_frames` drops a datagram that does not fit the packet
being built whenever nothing else has been written into it yet, and then keeps
looping, so one build discards the whole queue. The packet's limit is
`SendProfile::new_limited(cwnd_avail)`, so once a burst has filled the
congestion window that limit is the window remainder rather than the PMTU.

60 queued 800 byte datagrams, well inside the PMTU: 13 go out, then a single
`process_output` that emits no packet at all drops the remaining 47 as
`DroppedTooBig`. The same datagrams all arrive when they are produced at a rate
the connection can absorb, so size is not the problem.

Two things follow for
mozilla#3859. The contract it documents does not
hold: queued datagrams are dropped, and not only when they are too big for any
packet. And the outcome handed to the application is now wrong. The head-drop
it removed reported `DroppedQueueFull`; overload now reports `DroppedTooBig`,
whose documented remedy is to consult `max_datagram_size` and send smaller
datagrams. That will not help, and with `dropped_queue_full` gone there is no
stat left that distinguishes the two.

The drop itself predates the change. It gets easier to reach now that nothing
bounds the queue, so an application that does not stop on `Ok(false)` piles up
arbitrarily deep and the pile is discarded here.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Sep 7, 2026
`webtransport_max_datagram_size` subtracts the session-id varint from the
connection's maximum but not the context-id varint that
`connect_udp_session::Session::write_datagram_prefix` puts in front of every
connect-udp datagram. WebTransport writes no prefix, so the figure is right
there and one byte too large here: a sender that sizes its datagrams by it gets
`TooMuchData` on the largest one it was told it may send.

It is also the only accessor there is, so connect-udp has no correct way to ask.

This predates mozilla#3859. It sits on the path
that change is hardening, so it is worth fixing alongside, either by
subtracting the protocol's prefix or by adding a connect-udp accessor.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Sep 7, 2026
`QuicDatagrams::write_frames` drops a datagram that does not fit the packet
being built whenever nothing else has been written into it yet, and then keeps
looping, so one build discards the whole queue. The packet's limit is
`SendProfile::new_limited(cwnd_avail)`, so once a burst has filled the
congestion window that limit is the window remainder rather than the PMTU.

60 queued 800 byte datagrams, well inside the PMTU: 13 go out, then a single
`process_output` that emits no packet at all drops the remaining 47 as
`DroppedTooBig`. It happens in the first round trip after the burst, before any
acknowledgement could arrive, so the application has no chance to react. The
same datagrams all arrive when they are produced at a rate the connection can
absorb, so size is not the problem.

Two things follow for
mozilla#3859. The contract it documents does not
hold: queued datagrams are dropped, and not only when they are too big for any
packet. And the outcome handed to the application is now wrong. The head-drop
it removed reported `DroppedQueueFull`; overload now reports `DroppedTooBig`,
whose documented remedy is to consult `max_datagram_size` and send smaller
datagrams. That will not help, and with `dropped_queue_full` gone there is no
stat left that distinguishes the two.

The drop itself predates the change. It gets easier to reach now that nothing
bounds the queue, so an application that does not stop on `Ok(false)` piles up
arbitrarily deep and the pile is discarded here.
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Sep 7, 2026
`webtransport_max_datagram_size` subtracts the session-id varint from the
connection's maximum but not the context-id varint that
`connect_udp_session::Session::write_datagram_prefix` puts in front of every
connect-udp datagram. WebTransport writes no prefix, so the figure is right
there and one byte too large here: a sender that sizes its datagrams by it gets
`TooMuchData` on the largest one it was told it may send.

It is also the only accessor there is, so connect-udp has no correct way to ask.

This predates mozilla#3859. It sits on the path
that change is hardening, so it is worth fixing alongside, either by
subtracting the protocol's prefix or by adding a connect-udp accessor.
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from c4e3b18 to 72e2278 Compare September 7, 2026 12:38
Comment thread neqo-http3/tests/connect_udp.rs Resolved
Comment thread neqo-http3/tests/connect_udp.rs Resolved
When the outgoing datagram queue was full, `add_datagram` head-dropped the
oldest queued datagram. On the MASQUE connect-udp path that silently discards
an inner-connection packet the application already handed us, which looks like
loss to the inner connection and hurts upload throughput.

Back-pressure instead of dropping. The queue stays a fixed length;
`send_datagram` always queues the datagram and returns whether the queue still
has room:

- `Ok(true)`: queued, and space remains for more.
- `Ok(false)`: queued, but the queue is now full. The caller should stop
  producing datagrams until it receives `OutgoingDatagramSpaceAvailable`.
  Nothing already queued is dropped.

The datagram is accepted even when the queue is already at capacity, so a
producer that has already built a datagram never has to hold it in a queue neqo
cannot reach. `Ok(false)` is a high-watermark signal to stop, not a rejection.

`OutgoingDatagramSpaceAvailable` fires once the queue drops back below capacity,
whether a slot was freed by sending or by dropping a too-big datagram, so a
sender is never left blocked while space already exists. It is surfaced to
HTTP/3 clients as `Http3ClientEvent::OutgoingDatagramSpaceAvailable` and to
HTTP/3 servers as `Http3ServerEvent::OutgoingDatagramSpaceAvailable`, analogous
to `SendStreamWritable`.

Datagrams sent as HTTP DATAGRAM Capsules (used on the connect-udp path when the
peer offers no QUIC datagram support) are bounded by the control stream's
flow-control window rather than this queue. A capsule that would exceed the
window returns `FlowControlLimit` instead of being silently dropped, and arms a
writable notification so an `OutgoingDatagramSpaceAvailable` event fires once the
stream can hold a capsule again.

Removes the now-unreachable `OutgoingDatagramOutcome::DroppedQueueFull` variant
and the `dropped_queue_full` stat.

Fixes mozilla#2852
@mxinden-bot
mxinden-bot force-pushed the outbound-datagram-backpressure branch from 72e2278 to 80c795d Compare September 8, 2026 09:14
@mxinden
mxinden enabled auto-merge September 8, 2026 09:24
@github-actions

github-actions Bot commented Sep 8, 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)

@mxinden
mxinden added this pull request to the merge queue Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to fba4fbf.

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 80.5 ± 3.6 72.5 – 94.6 79.8 ± 1.8 397.4 ± 17.9 💔 +0.9 (+1.1%)
neqo-neqo-newreno 78.3 ± 2.7 74.0 – 93.3 77.6 ± 1.7 408.7 ± 13.9 💔 +1.2 (+1.6%)
neqo-neqo-newreno-nopacing 80.0 ± 3.6 74.7 – 99.0 79.4 ± 2.0 399.9 ± 18.0 💔 +1.0 (+1.3%)

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 456.8 ± 2.0 451.3 – 463.8 456.8 ± 1.6 70.1 ± 0.3
google-neqo-cubic 268.8 ± 1.8 265.5 – 275.4 268.8 ± 1.4 119.0 ± 0.8 +0.8 (+0.3%)
neqo-google-cubic 759.7 ± 2.8 753.2 – 769.4 759.3 ± 2.4 42.1 ± 0.2 -0.9 (-0.1%)
neqo-neqo-cubic ⚠️ 77.0 ± 3.8 70.8 – 100.6 76.3 ± 1.7 415.5 ± 20.7 -0.1 (-0.1%)
neqo-neqo-cubic-nopacing 80.5 ± 3.6 72.5 – 94.6 79.8 ± 1.8 397.4 ± 17.9 💔 +0.9 (+1.1%)
neqo-neqo-newreno 78.3 ± 2.7 74.0 – 93.3 77.6 ± 1.7 408.7 ± 13.9 💔 +1.2 (+1.6%)
neqo-neqo-newreno-nopacing 80.0 ± 3.6 74.7 – 99.0 79.4 ± 2.0 399.9 ± 18.0 💔 +1.0 (+1.3%)
neqo-quiche-cubic 193.6 ± 2.4 188.9 – 204.3 193.4 ± 2.0 165.2 ± 2.1 +0.2 (+0.1%)
neqo-s2n-cubic 214.0 ± 2.3 208.2 – 221.4 213.8 ± 1.7 149.6 ± 1.6 -0.6 (-0.3%)
quiche-neqo-cubic 136.0 ± 1.7 133.4 – 142.8 135.6 ± 1.5 235.3 ± 2.9 +0.1 (+0.0%)
quiche-quiche 133.5 ± 2.5 128.8 – 140.1 133.5 ± 2.5 239.7 ± 4.4
s2n-neqo-cubic 219.9 ± 2.2 213.2 – 226.1 219.6 ± 1.4 145.5 ± 1.4 +1.7 (+0.8%)
s2n-s2n ⚠️ 288.0 ± 19.6 277.3 – 385.7 284.0 ± 2.4 111.1 ± 7.6

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

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Benchmark results

Significant performance differences relative to fba4fbf.

transfer/walltime/pacing-false/varying-seeds: 💔 Performance has regressed by +3.5871%.
       time:   [18.187 ms 18.201 ms 18.216 ms]
       thrpt:  [219.59 MiB/s 219.77 MiB/s 219.94 MiB/s]
change:
       time:   [+3.4442% +3.5871% +3.7217%] (p = 0.00 < 0.05)
       thrpt:  [-3.5882% -3.4629% -3.3296%]
       Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
All results
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1504: No change in performance detected.
       time:   [160.35 ms 160.59 ms 160.83 ms]
       thrpt:  [621.78 MiB/s 622.71 MiB/s 623.62 MiB/s]
change:
       time:   [-0.2026% +0.1945% +0.5419%] (p = 0.32 > 0.05)
       thrpt:  [-0.5390% -0.1941% +0.2030%]
       No change in performance detected.
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1504: Change within noise threshold.
       time:   [221.38 ms 221.70 ms 222.02 ms]
       thrpt:  [45.040 Kelem/s 45.107 Kelem/s 45.171 Kelem/s]
change:
       time:   [-0.5451% -0.3536% -0.1617%] (p = 0.00 < 0.05)
       thrpt:  [+0.1620% +0.3549% +0.5481%]
       Change within noise threshold.
Found 5 outliers among 100 measurements (5.00%)
1 (1.00%) low mild
4 (4.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1504: Change within noise threshold.
       time:   [36.024 ms 36.117 ms 36.211 ms]
       thrpt:  [27.616   B/s 27.688   B/s 27.760   B/s]
change:
       time:   [+0.5126% +0.8474% +1.1801%] (p = 0.00 < 0.05)
       thrpt:  [-1.1663% -0.8402% -0.5099%]
       Change within noise threshold.
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1504: No change in performance detected.
       time:   [160.28 ms 160.51 ms 160.77 ms]
       thrpt:  [621.99 MiB/s 623.01 MiB/s 623.91 MiB/s]
change:
       time:   [-0.5029% +0.0415% +0.4573%] (p = 0.89 > 0.05)
       thrpt:  [-0.4552% -0.0415% +0.5054%]
       No change in performance detected.
Found 4 outliers among 100 measurements (4.00%)
3 (3.00%) high mild
1 (1.00%) high severe
streams/walltime/1-streams/each-1000-bytes: Change within noise threshold.
       time:   [542.19 µs 544.33 µs 546.77 µs]
       thrpt:  [1.7442 MiB/s 1.7520 MiB/s 1.7589 MiB/s]
change:
       time:   [-2.5994% -1.2040% -0.2217%] (p = 0.03 < 0.05)
       thrpt:  [+0.2222% +1.2187% +2.6688%]
       Change within noise threshold.
Found 14 outliers among 100 measurements (14.00%)
14 (14.00%) high severe
streams/walltime/1000-streams/each-1-bytes: Change within noise threshold.
       time:   [10.606 ms 10.619 ms 10.633 ms]
       thrpt:  [91.847 KiB/s 91.961 KiB/s 92.073 KiB/s]
change:
       time:   [+0.3054% +0.4925% +0.6862%] (p = 0.00 < 0.05)
       thrpt:  [-0.6815% -0.4901% -0.3045%]
       Change within noise threshold.
streams/walltime/1000-streams/each-1000-bytes: No change in performance detected.
       time:   [30.541 ms 30.581 ms 30.623 ms]
       thrpt:  [31.142 MiB/s 31.185 MiB/s 31.226 MiB/s]
change:
       time:   [-0.0457% +0.1215% +0.2933%] (p = 0.19 > 0.05)
       thrpt:  [-0.2924% -0.1214% +0.0457%]
       No change in performance detected.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
streams-flow-controlled/walltime/1-streams/each-4194304-bytes: Change within noise threshold.
       time:   [25.979 ms 26.013 ms 26.048 ms]
       thrpt:  [153.56 MiB/s 153.77 MiB/s 153.97 MiB/s]
change:
       time:   [-0.7119% -0.5134% -0.3159%] (p = 0.00 < 0.05)
       thrpt:  [+0.3169% +0.5160% +0.7170%]
       Change within noise threshold.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
streams-flow-controlled/walltime/10-streams/each-1048576-bytes: No change in performance detected.
       time:   [71.162 ms 71.235 ms 71.309 ms]
       thrpt:  [140.24 MiB/s 140.38 MiB/s 140.52 MiB/s]
change:
       time:   [-0.1707% -0.0065% +0.1568%] (p = 0.94 > 0.05)
       thrpt:  [-0.1566% +0.0065% +0.1710%]
       No change in performance detected.
transfer/walltime/pacing-false/varying-seeds: 💔 Performance has regressed by +3.5871%.
       time:   [18.187 ms 18.201 ms 18.216 ms]
       thrpt:  [219.59 MiB/s 219.77 MiB/s 219.94 MiB/s]
change:
       time:   [+3.4442% +3.5871% +3.7217%] (p = 0.00 < 0.05)
       thrpt:  [-3.5882% -3.4629% -3.3296%]
       Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
transfer/walltime/pacing-true/varying-seeds: Change within noise threshold.
       time:   [18.150 ms 18.170 ms 18.199 ms]
       thrpt:  [219.79 MiB/s 220.14 MiB/s 220.39 MiB/s]
change:
       time:   [+1.3181% +1.4503% +1.6238%] (p = 0.00 < 0.05)
       thrpt:  [-1.5979% -1.4295% -1.3009%]
       Change within noise threshold.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
transfer/walltime/pacing-false/same-seed: Change within noise threshold.
       time:   [17.768 ms 17.788 ms 17.818 ms]
       thrpt:  [224.50 MiB/s 224.87 MiB/s 225.12 MiB/s]
change:
       time:   [+0.2809% +0.4158% +0.6083%] (p = 0.00 < 0.05)
       thrpt:  [-0.6046% -0.4141% -0.2801%]
       Change within noise threshold.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
transfer/walltime/pacing-true/same-seed: Change within noise threshold.
       time:   [18.172 ms 18.188 ms 18.209 ms]
       thrpt:  [219.67 MiB/s 219.92 MiB/s 220.12 MiB/s]
change:
       time:   [+1.6709% +1.7926% +1.9155%] (p = 0.00 < 0.05)
       thrpt:  [-1.8795% -1.7610% -1.6434%]
       Change within noise threshold.
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) low mild
2 (2.00%) high mild
1 (1.00%) high severe

Instructions per cycle

Benchmark IPC before IPC after ΔIPC
transfer/walltime/pacing-false/varying-seeds 2.22 2.20 -1.0%
All benchmarks
Benchmark IPC before IPC after ΔIPC
transfer/walltime/pacing-true/varying-seeds 2.21 2.18 -1.1%
transfer/walltime/pacing-false/varying-seeds 2.22 2.20 -1.0%
transfer/walltime/pacing-true/same-seed 2.21 2.19 -0.8%
streams/walltime/1000-streams/each-1-bytes 2.11 2.09 -0.8%
transfer/walltime/pacing-false/same-seed 2.22 2.20 -0.8%
streams/walltime/1000-streams/each-1000-bytes 1.97 1.98 +0.6%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 2.25 2.24 -0.5%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1504 2.11 2.10 -0.4%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1504 1.81 1.81 +0.2%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1504 2.16 2.16 +0.1%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1504 1.77 1.77 -0.1%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.21 2.21 -0.1%
streams/walltime/1-streams/each-1000-bytes 1.85 1.85 -0.0%

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

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Failed Interop Tests

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

neqo-pr as clientneqo-pr as server
neqo-pr vs. go-x-net: BP BA
neqo-pr vs. haproxy: BP BA
neqo-pr vs. linuxquic: ⚠️C1
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1
neqo-pr vs. mvfst: A ⚠️BA
neqo-pr vs. neqo: A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: CM
neqo-pr vs. picoquic: A ⚠️BA
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: ⚠️BA CM
go-x-net vs. neqo-pr: ⚠️BP CM
kwik vs. neqo-pr: BP BA CM
msquic vs. neqo-pr: 🚀C1 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: ⚠️C1 V2 CM
s2n-quic vs. neqo-pr: ⚠️C1 BA 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

Merged via the queue into mozilla:main with commit a66f8fc Sep 8, 2026
219 of 227 checks passed
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Sep 17, 2026
User-visible changes since v0.31.1:

- Update nss-rs to 0.16.1, adding NSS 3.129 support:
  mozilla#4000
- Remove HTTP/3 server push:
  mozilla#3816
- Back-pressure the outbound QUIC datagram queue:
  mozilla#3859
- Reject 0-RTT downgrade of the extended CONNECT setting:
  mozilla#3940
- Report the receiver flow-control window in Stats:
  mozilla#3978
pull Bot pushed a commit to SINHASantos/neqo that referenced this pull request Sep 25, 2026
User-visible changes since v0.31.1:

- Update nss-rs to 0.16.1, adding NSS 3.129 support:
  mozilla#4000
- Remove HTTP/3 server push:
  mozilla#3816
- Back-pressure the outbound QUIC datagram queue:
  mozilla#3859
- Reject 0-RTT downgrade of the extended CONNECT setting:
  mozilla#3940
- Report the receiver flow-control window in Stats:
  mozilla#3978
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.

QUIC datagram outbound backpressure

4 participants