Skip to content

feat(http3): support the HTTP DATAGRAM Capsule - #3122

Merged
larseggert merged 3 commits into
mozilla:mainfrom
WaterWhisperer:capsule
Feb 9, 2026
Merged

larseggert merged 3 commits into
mozilla:mainfrom
WaterWhisperer:capsule

Conversation

@WaterWhisperer

Copy link
Copy Markdown
Contributor

Related issue: #2843

Copilot AI review requested due to automatic review settings November 10, 2025 08:48

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

This PR implements HTTP Datagram support for CONNECT-UDP sessions, removing the TODO placeholder. The implementation adds capsule encoding/decoding functionality and integrates it with the CONNECT-UDP frame handling.

  • Implements Capsule type for encoding/decoding HTTP datagrams
  • Updates ConnectUdpFrame to handle datagram frames with payload
  • Integrates datagram handling in CONNECT-UDP session processing

Reviewed Changes

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

File Description
neqo-http3/src/frames/mod.rs Adds the new capsule module to the frames module
neqo-http3/src/frames/capsule.rs New file implementing Capsule enum with datagram encoding/decoding and comprehensive tests
neqo-http3/src/frames/connect_udp_frame.rs Updates Frame enum and decoder to handle datagram frames using capsules
neqo-http3/src/features/extended_connect/connect_udp_session.rs Replaces TODO with actual datagram handling logic to emit datagram events

Comment thread neqo-http3/src/frames/capsule.rs Resolved
Comment thread neqo-http3/src/frames/capsule.rs Resolved
Comment thread neqo-http3/src/frames/capsule.rs Resolved
@larseggert larseggert linked an issue Nov 10, 2025 that may be closed by this pull request
@WaterWhisperer
WaterWhisperer force-pushed the capsule branch 2 times, most recently from af6f3d7 to 681a9b3 Compare November 10, 2025 09:35
@codecov

codecov Bot commented Nov 10, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.42857% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.12%. Comparing base (14e50eb) to head (ba488d1).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3122      +/-   ##
==========================================
- Coverage   94.23%   94.12%   -0.11%     
==========================================
  Files         125      129       +4     
  Lines       37728    38214     +486     
  Branches    37728    38214     +486     
==========================================
+ Hits        35553    35970     +417     
- Misses       1340     1397      +57     
- Partials      835      847      +12     
Flag Coverage Δ
freebsd 93.16% <90.95%> (-0.11%) ⬇️
linux 94.23% <91.42%> (-0.01%) ⬇️
macos 94.11% <91.42%> (+<0.01%) ⬆️
windows 94.21% <91.42%> (-0.02%) ⬇️

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

Components Coverage Δ
neqo-common 98.49% <ø> (ø)
neqo-crypto 86.90% <ø> (ø)
neqo-http3 93.88% <91.42%> (-0.04%) ⬇️
neqo-qpack 94.79% <ø> (ø)
neqo-transport 95.16% <ø> (+0.01%) ⬆️
neqo-udp 82.90% <ø> (ø)
mtu 86.61% <ø> (ø)

@github-actions

github-actions Bot commented Nov 10, 2025 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchcapsule
TestbedOn-prem
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
google-neqo-cubic📈 view plot
🚷 view threshold
271.72 ms
(-1.11%)Baseline: 274.77 ms
284.40 ms
(95.54%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
msquic-neqo-cubic📈 view plot
🚷 view threshold
194.89 ms
(-5.87%)Baseline: 207.05 ms
240.95 ms
(80.88%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-google-cubic📈 view plot
🚷 view threshold
742.21 ms
(-2.35%)Baseline: 760.10 ms
788.11 ms
(94.18%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-msquic-cubic📈 view plot
🚷 view threshold
159.11 ms
(+0.12%)Baseline: 158.92 ms
162.37 ms
(97.99%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-neqo-cubic-nopacing📈 view plot
🚷 view threshold
94.48 ms
(-1.92%)Baseline: 96.34 ms
98.48 ms
(95.95%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-neqo-cubic📈 view plot
🚷 view threshold
96.82 ms
(-0.58%)Baseline: 97.39 ms
99.55 ms
(97.26%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-neqo-newreno-nopacing📈 view plot
🚷 view threshold
95.99 ms
(+0.41%)Baseline: 95.60 ms
97.40 ms
(98.56%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-neqo-newreno📈 view plot
🚷 view threshold
95.16 ms
(-1.03%)Baseline: 96.15 ms
98.24 ms
(96.87%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-quiche-cubic📈 view plot
🚷 view threshold
190.12 ms
(-1.16%)Baseline: 192.35 ms
195.35 ms
(97.32%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
neqo-s2n-cubic📈 view plot
🚷 view threshold
222.39 ms
(+0.60%)Baseline: 221.07 ms
224.23 ms
(99.18%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
quiche-neqo-cubic📈 view plot
🚷 view threshold
153.04 ms
(-0.33%)Baseline: 153.55 ms
157.00 ms
(97.48%)
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
s2n-neqo-cubic📈 view plot
🚷 view threshold
174.72 ms
(+0.45%)Baseline: 173.93 ms
176.58 ms
(98.95%)
🐰 View full continuous benchmarking report in Bencher

@mxinden mxinden 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.

Well done!

I believe we would now as well need to send the capsule-protocol HTTP header on the EXTENDED_CONNECT stream.

https://www.rfc-editor.org/rfc/rfc9297#section-3.4

As far as I understand, this allows a user to send a capsule to us.

In addition, could you add an end-to-end test showcasing how a neqo-client and a neqo-server (neither supporting QUIC datagrams) will exchange (proxy) UDP datagrams using connect-udp and HTTP DATAGRAM capsules? session_lifecycle in the file below should be a good example.

#[test]
fn session_lifecycle_client_closes() {
session_lifecycle(true);
}

Comment thread neqo-http3/src/frames/capsule.rs Resolved
Comment thread neqo-http3/src/frames/capsule.rs Resolved
Comment thread neqo-http3/src/frames/capsule.rs Resolved
@github-actions

github-actions Bot commented Nov 10, 2025 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchcapsule
TestbedOn-prem
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
1-conn/1-100mb-req/mtu-1504 (aka. Upload)/client📈 view plot
🚷 view threshold
210,590,000.00 ns
(+1.27%)Baseline: 207,949,481.13 ns
216,984,094.49 ns
(97.05%)
1-conn/1-100mb-resp/mtu-1504 (aka. Download)/client📈 view plot
🚷 view threshold
203,010,000.00 ns
(+0.27%)Baseline: 202,453,820.75 ns
211,998,030.03 ns
(95.76%)
1-conn/1-1b-resp/mtu-1504 (aka. HPS)/client📈 view plot
🚷 view threshold
38,892,000.00 ns
(+11.54%)Baseline: 34,868,374.21 ns
46,482,370.22 ns
(83.67%)
1-conn/10_000-parallel-1b-resp/mtu-1504 (aka. RPS)/client📈 view plot
🚷 view threshold
285,230,000.00 ns
(-1.02%)Baseline: 288,159,292.45 ns
301,160,937.95 ns
(94.71%)
1-streams/each-1000-bytes/simulated-time📈 view plot
🚷 view threshold
119,090,000.00 ns
(+0.20%)Baseline: 118,855,723.27 ns
120,431,987.92 ns
(98.89%)
1-streams/each-1000-bytes/wallclock-time📈 view plot
🚷 view threshold
584,590.00 ns
(-0.77%)Baseline: 589,149.67 ns
608,831.39 ns
(96.02%)
1000-streams/each-1-bytes/simulated-time📈 view plot
🚷 view threshold
2,334,400,000.00 ns
(-72.16%)Baseline: 8,385,644,654.09 ns
23,137,847,754.06 ns
(10.09%)
1000-streams/each-1-bytes/wallclock-time📈 view plot
🚷 view threshold
12,305,000.00 ns
(-6.86%)Baseline: 13,210,863.21 ns
15,065,592.16 ns
(81.68%)
1000-streams/each-1000-bytes/simulated-time📈 view plot
🚷 view threshold
16,411,000,000.00 ns
(-6.78%)Baseline: 17,603,654,088.05 ns
20,653,469,692.27 ns
(79.46%)
1000-streams/each-1000-bytes/wallclock-time📈 view plot
🚷 view threshold
50,112,000.00 ns
(-0.73%)Baseline: 50,480,161.95 ns
55,284,093.52 ns
(90.64%)
RxStreamOrderer::inbound_frame()📈 view plot
🚷 view threshold
109,880,000.00 ns
(+0.23%)Baseline: 109,628,773.58 ns
111,423,069.75 ns
(98.62%)
coalesce_acked_from_zero 1+1 entries📈 view plot
🚷 view threshold
89.90 ns
(+0.76%)Baseline: 89.22 ns
90.59 ns
(99.23%)
coalesce_acked_from_zero 10+1 entries📈 view plot
🚷 view threshold
105.75 ns
(-0.25%)Baseline: 106.02 ns
107.08 ns
(98.76%)
coalesce_acked_from_zero 1000+1 entries📈 view plot
🚷 view threshold
90.52 ns
(-0.48%)Baseline: 90.95 ns
95.22 ns
(95.06%)
coalesce_acked_from_zero 3+1 entries📈 view plot
🚷 view threshold
106.26 ns
(-0.24%)Baseline: 106.51 ns
107.50 ns
(98.85%)
decode 1048576 bytes, mask 3f📈 view plot
🚷 view threshold
1,420,000.00 ns
(-17.22%)Baseline: 1,715,482.70 ns
2,498,287.73 ns
(56.84%)
decode 1048576 bytes, mask 7f📈 view plot
🚷 view threshold
1,479,100.00 ns
(-66.38%)Baseline: 4,398,840.72 ns
7,506,985.55 ns
(19.70%)
decode 1048576 bytes, mask ff📈 view plot
🚷 view threshold
1,162,600.00 ns
(-56.68%)Baseline: 2,683,627.99 ns
4,280,478.26 ns
(27.16%)
decode 4096 bytes, mask 3f📈 view plot
🚷 view threshold
5,546.50 ns
(-21.43%)Baseline: 7,059.14 ns
10,871.39 ns
(51.02%)
decode 4096 bytes, mask 7f📈 view plot
🚷 view threshold
5,799.30 ns
(-66.23%)Baseline: 17,170.99 ns
29,307.35 ns
(19.79%)
decode 4096 bytes, mask ff📈 view plot
🚷 view threshold
4,519.70 ns
(-55.39%)Baseline: 10,131.67 ns
16,038.98 ns
(28.18%)
sent::Packets::take_ranges📈 view plot
🚷 view threshold
4,515.80 ns
(-3.38%)Baseline: 4,673.61 ns
4,911.39 ns
(91.95%)
transfer/pacing-false/same-seed/simulated-time/run📈 view plot
🚷 view threshold
23,941,000,000.00 ns
(-4.50%)Baseline: 25,068,279,179.81 ns
26,476,942,855.26 ns
(90.42%)
transfer/pacing-false/same-seed/wallclock-time/run📈 view plot
🚷 view threshold
23,661,000.00 ns
(-5.52%)Baseline: 25,044,342.27 ns
27,267,676.12 ns
(86.77%)
transfer/pacing-false/varying-seeds/simulated-time/run📈 view plot
🚷 view threshold
23,941,000,000.00 ns
(-3.97%)Baseline: 24,930,646,687.70 ns
26,092,448,712.26 ns
(91.75%)
transfer/pacing-false/varying-seeds/wallclock-time/run📈 view plot
🚷 view threshold
23,217,000.00 ns
(-7.69%)Baseline: 25,150,583.60 ns
27,567,570.67 ns
(84.22%)
transfer/pacing-true/same-seed/simulated-time/run📈 view plot
🚷 view threshold
23,676,000,000.00 ns
(-5.57%)Baseline: 25,071,463,722.40 ns
26,789,446,172.20 ns
(88.38%)
transfer/pacing-true/same-seed/wallclock-time/run📈 view plot
🚷 view threshold
24,200,000.00 ns
(-7.24%)Baseline: 26,088,206.62 ns
29,139,326.62 ns
(83.05%)
transfer/pacing-true/varying-seeds/simulated-time/run📈 view plot
🚷 view threshold
23,676,000,000.00 ns
(-4.25%)Baseline: 24,727,886,435.33 ns
25,963,095,114.42 ns
(91.19%)
transfer/pacing-true/varying-seeds/wallclock-time/run📈 view plot
🚷 view threshold
23,577,000.00 ns
(-8.02%)Baseline: 25,632,236.59 ns
28,175,884.30 ns
(83.68%)
🐰 View full continuous benchmarking report in Bencher

@mxinden

mxinden commented Nov 13, 2025

Copy link
Copy Markdown
Member

@WaterWhisperer let me know if you need any help with the above. I saw you resolved all comments but didn't make any changes yet.

@WaterWhisperer

WaterWhisperer commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor Author

@WaterWhisperer let me know if you need any help with the above. I saw you resolved all comments but didn't make any changes yet.

@mxinden Thanks for your attention! Yeah, I've resolved all the comments. However, when I was adding

an end-to-end test showing how a neqo-client and a neqo-server (neither supporting QUIC datagrams) will exchange (proxy) UDP datagrams using connect-udp and HTTP DATAGRAM capsules

, I found the test wasn't working. I then realized that my implementation is incomplete

Currently, my changes support:

  • Decoding HTTP DATAGRAM Capsules from the stream (receiving side works)
  • The capsule-protocol header in responses

However, the sending side still only uses QUIC datagrams. I haven't implemented sending via HTTP DATAGRAM Capsules on the stream yet. I'm trying my best on completing this to fully meet the RFC 9297 requirements.

I'll update the PR once I have a working end-to-end test. Thanks again for your follow-up!

@mxinden

mxinden commented Nov 13, 2025

Copy link
Copy Markdown
Member

Great work. I appreciate the help!

@WaterWhisperer

Copy link
Copy Markdown
Contributor Author

I've encountered a problem: I'm trying to send a Capsule using SendMessage::send_data(), but this method automatically wraps it in a DATA frame.
The final data structure becomes [DATA frame][Capsule], and the receiving end's FrameReader will parse the DATA frame and treat the contents of the Capsule as the frame payload.
My solution was to bypass the HTTP/3 framing layer and read/write raw bytes directly on the stream, manually handling Capsule encoding/decoding. However, this made the connect_udp_frame dead_code, which intuitively tells me is wrong, but I can't think of a better way.

@larseggert
larseggert requested a review from mxinden November 26, 2025 13:26
@larseggert

Copy link
Copy Markdown
Collaborator

@mxinden is busy at the moment, so please don't take his silence as us having lost interest here. Will take us a few more days to respond. Thanks again for your help!

@mxinden

mxinden commented Nov 26, 2025

Copy link
Copy Markdown
Member

@WaterWhisperer sorry for the delay here. Good catch. I didn't think of this before.

Instead of using SendMessage::send_data, how about using <SendMessage as SendStream>::send_data_atomic?

fn send_data_atomic(&mut self, conn: &mut Connection, buf: &[u8], now: Instant) -> Res<()> {
let data_frame = HFrame::Data {
len: buf.len() as u64,
};
self.stream.encode_with(|e| data_frame.encode(e));
self.stream.buffer(buf);
_ = self.stream.send_buffer(conn, now)?;
Ok(())
}

Our WebTransport implementation has the same use-case, namely to send its custom-framed control messages. Here is how WebTransport sends a closing frame:

if let Some(close_frame) = self.protocol.close_frame(error, message) {
self.control_stream_send
.send_data_atomic(conn, close_frame.as_ref(), now)?;
}

Does that help @WaterWhisperer?

@WaterWhisperer

Copy link
Copy Markdown
Contributor Author

@mxinden is busy at the moment, so please don't take his silence as us having lost interest here. Will take us a few more days to respond. Thanks again for your help!

@larseggert Thank you so much for your reassurance! I completely understand that everyone is busy with work and life (Just like I am busy with final exams :) ), and I really appreciate the time you and the team dedicate to maintaining this project. I've learned a lot from contributing to neqo and interacting with you all. Please take your time, and no worries at all about the delay.

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

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


You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread neqo-http3/src/connection.rs Resolved
Comment thread neqo-http3/src/connection.rs Resolved
@codspeed

codspeed Bot commented Nov 27, 2025 •

Copy link
Copy Markdown
Contributor

CodSpeed Performance Report

Merging this PR will improve performance by 4.23%

Comparing WaterWhisperer:capsule (ba488d1) with main (c0027fa)

Summary

⚡ 1 improved benchmark
✅ 37 untouched benchmarks
⏩ 8 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ WallTime walltime/1000-streams/each-1-bytes 30 ms 28.8 ms +4.23%

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@mxinden mxinden 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.

I will take a more in-depth look. Thanks for the continued work on this pull request.

Comment thread neqo-http3/src/connection_client.rs Resolved
Comment thread neqo-http3/src/connection_client.rs Resolved
Comment thread neqo-http3/src/connection_server.rs Resolved
Comment thread neqo-http3/src/connection_server.rs Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

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

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

Comment thread neqo-http3/tests/connect_udp.rs Resolved
Comment thread neqo-http3/tests/connect_udp.rs Resolved
Comment thread neqo-http3/tests/connect_udp.rs Resolved
Comment thread neqo-http3/src/conn_params.rs Resolved

@mxinden mxinden 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.

A couple more minor comments. Overall I think we can merge this soon.

Comment thread neqo-http3/src/recv_message.rs Resolved

@mxinden mxinden 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.

We have one bug remaining in this pull request, see comments below.

With the fixes I am suggesting below, I was able to establish an HTTP/3 connection to google.com on top of Fastly's MASQUE connect-udp proxy using HTTP capsules 🎉. Great work @WaterWhisperer.

@mxinden mxinden 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.

We have one bug remaining in this pull request, see comments below.

With the fixes I am suggesting below, I was able to establish an HTTP/3 connection on top of a MASQUE connect-udp tunnel using HTTP capsules 🎉. Great work @WaterWhisperer.

@WaterWhisperer
WaterWhisperer force-pushed the capsule branch 2 times, most recently from 9e3ce94 to fc54912 Compare December 21, 2025 05:15
@larseggert

Copy link
Copy Markdown
Collaborator

@mxinden does this PR need anything other than a rebase? We should really get this merged. (And thanks @WaterWhisperer for your patience here.)

Thus not changing WebTransport datagram behavior and thus not requiring changes
in WebTransport tests.
@larseggert
larseggert enabled auto-merge February 9, 2026 09:01
@larseggert
larseggert disabled auto-merge February 9, 2026 09:01
@larseggert
larseggert merged commit 17a3811 into mozilla:main Feb 9, 2026
156 of 159 checks passed
@mxinden

mxinden commented Feb 9, 2026

Copy link
Copy Markdown
Member

Thanks @WaterWhisperer for your help!

@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Failed Interop Tests

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

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

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to 17a3811.

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server (params) Mean ± σ Min Max MiB/s ± σ Δ main Δ main
google-neqo-cubic 273.8 ± 4.1 267.0 282.7 116.9 ± 7.8 💚 -2.5 -0.9%
neqo-neqo-cubic 96.1 ± 4.5 88.8 106.7 332.9 ± 7.1 💚 -2.1 -2.1%
neqo-neqo-newreno 99.1 ± 4.6 90.0 109.4 322.8 ± 7.0 💔 1.7 1.7%
neqo-neqo-newreno-nopacing 95.9 ± 4.4 89.4 113.2 333.6 ± 7.3 💚 -1.4 -1.4%
neqo-s2n-cubic 217.2 ± 3.8 211.3 225.8 147.3 ± 8.4 💚 -1.3 -0.6%
s2n-neqo-cubic 174.7 ± 4.8 165.7 185.2 183.1 ± 6.7 💚 -2.0 -1.1%

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 (params) Mean ± σ Min Max MiB/s ± σ Δ main Δ main
google-google-nopacing 454.8 ± 4.2 448.3 465.8 70.4 ± 7.6
google-neqo-cubic 273.8 ± 4.1 267.0 282.7 116.9 ± 7.8 💚 -2.5 -0.9%
msquic-msquic-nopacing 168.1 ± 47.8 134.4 526.7 190.3 ± 0.7
msquic-neqo-cubic 188.2 ± 39.7 148.3 392.0 170.0 ± 0.8 -10.1 -5.1%
neqo-google-cubic 753.5 ± 4.8 745.1 771.1 42.5 ± 6.7 -0.5 -0.1%
neqo-msquic-cubic 159.2 ± 4.0 150.6 167.1 201.0 ± 8.0 -0.2 -0.1%
neqo-neqo-cubic 96.1 ± 4.5 88.8 106.7 332.9 ± 7.1 💚 -2.1 -2.1%
neqo-neqo-cubic-nopacing 95.7 ± 3.8 87.7 105.5 334.5 ± 8.4 -0.1 -0.1%
neqo-neqo-newreno 99.1 ± 4.6 90.0 109.4 322.8 ± 7.0 💔 1.7 1.7%
neqo-neqo-newreno-nopacing 95.9 ± 4.4 89.4 113.2 333.6 ± 7.3 💚 -1.4 -1.4%
neqo-quiche-cubic 190.0 ± 4.0 184.6 199.8 168.4 ± 8.0 0.5 0.3%
neqo-s2n-cubic 217.2 ± 3.8 211.3 225.8 147.3 ± 8.4 💚 -1.3 -0.6%
quiche-neqo-cubic 154.6 ± 8.5 141.7 192.1 207.0 ± 3.8 0.5 0.3%
quiche-quiche-nopacing 142.6 ± 4.0 137.2 152.2 224.5 ± 8.0
s2n-neqo-cubic 174.7 ± 4.8 165.7 185.2 183.1 ± 6.7 💚 -2.0 -1.1%
s2n-s2n-nopacing 252.1 ± 32.1 231.2 351.0 127.0 ± 1.0

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

@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to 17a3811.

All results
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1504: No change in performance detected.
       time:   [198.89 ms 199.27 ms 199.69 ms]
       thrpt:  [500.78 MiB/s 501.83 MiB/s 502.79 MiB/s]
change:
       time:   [-0.2065% +0.0701% +0.3359] (p = 0.62 > 0.05)
       thrpt:  [-0.3348% -0.0701% +0.2069]
       No change in performance detected.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1504: No change in performance detected.
       time:   [281.67 ms 283.79 ms 285.99 ms]
       thrpt:  [34.967 Kelem/s 35.237 Kelem/s 35.503 Kelem/s]
change:
       time:   [-1.6820% -0.6889% +0.3094] (p = 0.18 > 0.05)
       thrpt:  [-0.3085% +0.6937% +1.7108]
       No change in performance detected.
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1504: No change in performance detected.
       time:   [38.474 ms 38.621 ms 38.788 ms]
       thrpt:  [25.781   B/s 25.893   B/s 25.991   B/s]
change:
       time:   [-0.5935% -0.0057% +0.5792] (p = 0.99 > 0.05)
       thrpt:  [-0.5759% +0.0057% +0.5971]
       No change in performance detected.
Found 5 outliers among 100 measurements (5.00%)
5 (5.00%) high severe
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1504: Change within noise threshold.
       time:   [201.43 ms 201.83 ms 202.28 ms]
       thrpt:  [494.36 MiB/s 495.46 MiB/s 496.45 MiB/s]
change:
       time:   [-0.9179% -0.6354% -0.3563] (p = 0.00 < 0.05)
       thrpt:  [+0.3576% +0.6395% +0.9264]
       Change within noise threshold.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
decode 4096 bytes, mask ff: No change in performance detected.
       time:   [5.3002 µs 5.3136 µs 5.3275 µs]
       change: [-0.4758% -0.0396% +0.3832] (p = 0.85 > 0.05)
       No change in performance detected.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
decode 1048576 bytes, mask ff: No change in performance detected.
       time:   [1.3670 ms 1.3713 ms 1.3755 ms]
       change: [-0.0934% +0.3463% +0.7830] (p = 0.12 > 0.05)
       No change in performance detected.
decode 4096 bytes, mask 7f: No change in performance detected.
       time:   [7.2290 µs 7.2388 µs 7.2485 µs]
       change: [-1.2083% -0.3874% +0.1385] (p = 0.34 > 0.05)
       No change in performance detected.
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) high mild
2 (2.00%) high severe
decode 1048576 bytes, mask 7f: No change in performance detected.
       time:   [1.8562 ms 1.8589 ms 1.8618 ms]
       change: [-0.2688% -0.0634% +0.1466] (p = 0.55 > 0.05)
       No change in performance detected.
decode 4096 bytes, mask 3f: No change in performance detected.
       time:   [6.9079 µs 6.9175 µs 6.9272 µs]
       change: [-0.5821% -0.0316% +0.5337] (p = 0.92 > 0.05)
       No change in performance detected.
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) high mild
2 (2.00%) high severe
decode 1048576 bytes, mask 3f: No change in performance detected.
       time:   [1.7650 ms 1.7676 ms 1.7703 ms]
       change: [-0.1285% +0.0853% +0.2816] (p = 0.41 > 0.05)
       No change in performance detected.
streams/simulated/1-streams/each-1000-bytes: No change in performance detected.
       time:   [129.68 ms 129.68 ms 129.68 ms]
       thrpt:  [7.5303 KiB/s 7.5305 KiB/s 7.5307 KiB/s]
change:
       time:   [-0.0027% +0.0013% +0.0051] (p = 0.52 > 0.05)
       thrpt:  [-0.0051% -0.0013% +0.0027]
       No change in performance detected.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
streams/simulated/1000-streams/each-1-bytes: No change in performance detected.
       time:   [2.5363 s 2.5366 s 2.5370 s]
       thrpt:  [394.17   B/s 394.22   B/s 394.27   B/s]
change:
       time:   [-0.0072% +0.0092% +0.0256] (p = 0.29 > 0.05)
       thrpt:  [-0.0256% -0.0092% +0.0072]
       No change in performance detected.
streams/simulated/1000-streams/each-1000-bytes: No change in performance detected.
       time:   [6.5859 s 6.5936 s 6.6023 s]
       thrpt:  [147.91 KiB/s 148.11 KiB/s 148.28 KiB/s]
change:
       time:   [-0.1689% +0.0138% +0.2059] (p = 0.88 > 0.05)
       thrpt:  [-0.2055% -0.0138% +0.1692]
       No change in performance detected.
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high severe
streams/walltime/1-streams/each-1000-bytes: No change in performance detected.
       time:   [586.22 µs 588.46 µs 590.99 µs]
       change: [-0.1018% +0.4629% +1.0422] (p = 0.11 > 0.05)
       No change in performance detected.
Found 10 outliers among 100 measurements (10.00%)
10 (10.00%) high severe
streams/walltime/1000-streams/each-1-bytes: Change within noise threshold.
       time:   [12.314 ms 12.358 ms 12.423 ms]
       change: [+0.4353% +0.8280% +1.3418] (p = 0.00 < 0.05)
       Change within noise threshold.
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high severe
streams/walltime/1000-streams/each-1000-bytes: Change within noise threshold.
       time:   [44.922 ms 44.972 ms 45.030 ms]
       change: [-1.1387% -0.9819% -0.8298] (p = 0.00 < 0.05)
       Change within noise threshold.
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) high mild
2 (2.00%) high severe
coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [92.751 ns 93.092 ns 93.428 ns]
       change: [-0.6878% +0.0010% +0.5771] (p = 1.00 > 0.05)
       No change in performance detected.
Found 10 outliers among 100 measurements (10.00%)
9 (9.00%) high mild
1 (1.00%) high severe
coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [110.88 ns 111.37 ns 111.97 ns]
       change: [-0.4163% +0.1073% +0.6161] (p = 0.71 > 0.05)
       No change in performance detected.
Found 12 outliers among 100 measurements (12.00%)
12 (12.00%) high severe
coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [110.25 ns 110.67 ns 111.17 ns]
       change: [-0.6895% +0.0033% +0.7983] (p = 0.99 > 0.05)
       No change in performance detected.
Found 13 outliers among 100 measurements (13.00%)
4 (4.00%) low mild
2 (2.00%) high mild
7 (7.00%) high severe
coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [95.913 ns 96.087 ns 96.274 ns]
       change: [-0.4735% +0.1235% +0.6933] (p = 0.70 > 0.05)
       No change in performance detected.
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) high mild
3 (3.00%) high severe
RxStreamOrderer::inbound_frame(): Change within noise threshold.
       time:   [107.77 ms 107.91 ms 108.11 ms]
       change: [-0.7975% -0.5507% -0.3152] (p = 0.00 < 0.05)
       Change within noise threshold.
Found 22 outliers among 100 measurements (22.00%)
7 (7.00%) low severe
3 (3.00%) low mild
12 (12.00%) high severe
sent::Packets::take_ranges: No change in performance detected.
       time:   [4.3821 µs 4.4596 µs 4.5244 µs]
       change: [-5.6031% -2.5738% +0.4396] (p = 0.10 > 0.05)
       No change in performance detected.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
transfer/simulated/pacing-false/varying-seeds: No change in performance detected.
       time:   [23.941 s 23.941 s 23.941 s]
       thrpt:  [171.09 KiB/s 171.09 KiB/s 171.09 KiB/s]
change:
       time:   [+0.0000% +0.0000% +0.0000] (p = NaN > 0.05)
       thrpt:  [+0.0000% +0.0000% +0.0000]
       No change in performance detected.
transfer/simulated/pacing-true/varying-seeds: No change in performance detected.
       time:   [23.676 s 23.676 s 23.676 s]
       thrpt:  [173.01 KiB/s 173.01 KiB/s 173.01 KiB/s]
change:
       time:   [+0.0000% +0.0000% +0.0000] (p = NaN > 0.05)
       thrpt:  [+0.0000% +0.0000% +0.0000]
       No change in performance detected.
transfer/simulated/pacing-false/same-seed: No change in performance detected.
       time:   [23.941 s 23.941 s 23.941 s]
       thrpt:  [171.09 KiB/s 171.09 KiB/s 171.09 KiB/s]
change:
       time:   [+0.0000% +0.0000% +0.0000] (p = NaN > 0.05)
       thrpt:  [+0.0000% +0.0000% +0.0000]
       No change in performance detected.
transfer/simulated/pacing-true/same-seed: No change in performance detected.
       time:   [23.676 s 23.676 s 23.676 s]
       thrpt:  [173.01 KiB/s 173.01 KiB/s 173.01 KiB/s]
change:
       time:   [+0.0000% +0.0000% +0.0000] (p = NaN > 0.05)
       thrpt:  [+0.0000% +0.0000% +0.0000]
       No change in performance detected.
transfer/walltime/pacing-false/varying-seeds: Change within noise threshold.
       time:   [23.239 ms 23.273 ms 23.324 ms]
       change: [+0.9940% +1.1881% +1.4152] (p = 0.00 < 0.05)
       Change within noise threshold.
Found 5 outliers among 100 measurements (5.00%)
1 (1.00%) low mild
3 (3.00%) high mild
1 (1.00%) high severe
transfer/walltime/pacing-true/varying-seeds: No change in performance detected.
       time:   [23.035 ms 23.066 ms 23.115 ms]
       change: [-0.4375% -0.1760% +0.0713] (p = 0.20 > 0.05)
       No change in performance detected.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
transfer/walltime/pacing-false/same-seed: Change within noise threshold.
       time:   [23.181 ms 23.210 ms 23.253 ms]
       change: [-0.8935% -0.7385% -0.5060] (p = 0.00 < 0.05)
       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-true/same-seed: Change within noise threshold.
       time:   [23.403 ms 23.423 ms 23.447 ms]
       change: [+0.1951% +0.3150% +0.4331] (p = 0.00 < 0.05)
       Change within noise threshold.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe

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

@WaterWhisperer
WaterWhisperer deleted the capsule branch February 10, 2026 06:18
@WaterWhisperer

Copy link
Copy Markdown
Contributor Author

Thanks @WaterWhisperer for your help!

@mxinden It should be me thanking you! I learned a lot of knowledge, and also received a lot of your help in the process. To be honest, this PR is almost entirely your achievement, and perhaps I even held up the progress

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.

Should Neqo support the HTTP DATAGRAM Capsule?

4 participants