Save a round trip: optimizing for IETF’s Happy Eyeballs v3

Search within this presentation

Firefox and Caddy take the stage

Max Inden introduces his work on Firefox networking and sets out to show how HTTP/3 and Happy Eyeballs v3 save round trips. He recruits two volunteers to play a browser and a web server so the audience can follow each message in a connection.

From four round trips to one

Inden and the volunteers act out an HTTP request over TCP, then add the older TLS handshake to show how a secure exchange takes four round trips. Inden shows how TLS 1.3 cuts the total to three and QUIC cuts it to two by combining transport and security setup. The volunteers finish by showing how QUIC 0-RTT can carry a request on a repeat connection and deliver the response in a single round trip.

Why connection delays compound

Firefox telemetry puts median connection setup at about 28 ms for QUIC and 67 ms for TCP with TLS. Inden points out that differences between server operators could influence that comparison. In a page-load example where the HTML reveals assets on other servers, he shows how a 100 ms round-trip time yields totals of 600 ms for TCP with TLS 1.3, 400 ms for QUIC, and 200 ms when repeat connections can use 0-RTT.

What gets in the way of HTTP/3 adoption

Inden describes how antivirus interception and some VPNs interfere with HTTP/3, and cites Meta’s roughly 97% success rate to put concerns about UDP blocking in perspective. He compares the adoption of IPv6 and TLS 1.3 using RFC 8170’s principle that deployment is easier when an adopter sees an immediate benefit. HTTP/3 already saves adopters a round trip, which sets up the problem of keeping connections reliable when QUIC fails.

Happy Eyeballs races connections and improves paint times

Inden walks through how Happy Eyeballs starts with the preferred connection option and falls back across IP versions and transports when needed. In Firefox’s A/B test, Happy Eyeballs v3 increased HTTP/3 use by about 5% and improved First Contentful Paint at every reported percentile, saving about 280 ms at the 99th percentile. Largest Contentful Paint also improved across most of the distribution, with a small regression at the 10th percentile.

Advertise HTTP/3 and test your server

Inden explains how an Alt-Svc response header advertises HTTP/3 for subsequent connections and how an HTTPS DNS record lets browsers discover it on the first visit. He recommends using both signals, keeping HTTP/1.1 and HTTP/2 available, and enabling QUIC 0-RTT. He uses savearoundtrip.com to check a site suggested by the audience against all four deployment checks.

Q&A on CDNs, shared connections, and antivirus

Inden explains why Firefox’s anonymized telemetry gives him limited visibility into which domains serve HTTP/3, then points to the browser-to-CDN connection as the deployment priority. He walks through how dependent assets can reuse a connection when they share a server. He also describes how Mozilla ships fixes and works with antivirus vendors when inspection software breaks Firefox connections.

Q&A on HTTP/1.1, 0-RTT replay, and browser support

Inden explains why HTTP/1.1 over TCP still makes sense on stable backend links and how browsers limit replay risk by keeping non-idempotent requests out of 0-RTT. He discusses Happy Eyeballs implementations in Chrome and Safari and the IETF’s effort to align browser behavior. The final question raises Apache HTTP Server’s HTTP/3 support.

Next up, we have Max Inden, who's at Microsoft... Mozilla. I'm sorry. Mozilla. Well, that was a terrible mistake. Oh my gosh. Wow. Thanks, autocorrect. Okay. He's a software developer who's interested in networking distributed systems and type theory. I want to hear more about the type theory because I'm just more of a type nerd, but that's me.

He's also... He's been focused on h t d v three and quick. He's been stewarding peer to peer networking projects at lib p two p and before that monitoring systems at Prometheus. You probably all know him better than I do and he's going to introduce himself better than I could. So Max, take it away.

Thank you. Good morning everyone. I have a very ambitious goal today with all of you. We're gonna save some round trips. I'm saying here we're saving one round trip but we're actually gonna save a lot of round trips and we're gonna do that with h e p three and happy eyeballs v three.

Now for those that where this doesn't ring a bell, that's fine, you're exactly at the right talk and for those that are already deeply familiar with both of these, there are gonna be some sweet sweet Firefox telemetry towards the end which I can show how performant these technologies are. Who am I? I'm Max as you already heard.

I work on the Firefox networking stack at Mozilla actually. I focus on h t p three and QUIC, mostly on our REST implementation, but this year along with the, actually this has been quite a priority for our entire team, we have been working on Happy Eyeball v three in Firefox.

You might know me from making UDP very fast as in UDP IO across various operating systems. I worked on a peer to peer networking library in the past. I worked on the monitoring tool Prometheus and integration with Kubernetes, but all of these are adjacent for now. Okay. In order to save round trips on the internet, we first need to understand how the internet works.

And obviously that's a very big goal and we'll go a little bit back in time to roughly 1991. Someone at CERN really wanted to send some get requests. You might guess who that was. And yeah, let's let's learn how http and TCP works, but before we do, maybe a show of hand here.

Who knows how a TCP handshake works? Okay, I'll be testing this. Instead of doing this plane here on the slides only, you probably already guessed this is a flowchart up here, I will ask for two volunteers and here now I'm gonna fake like taking random people from the audience but it's really those two prepared kind folks that's gonna help me here.

So please hand over applause. Oscar and Nadel, thank you very much for coming today. Thanks for volunteering. So first off we need a server obviously, right? And so Oscar would you rather be an NGINX, an AJ proxy, an envoy, or a caddy?

Be caddy. You'd to be caddy. Okay. Alright. So let's do this. I stole some name tags from the meetup. So let's see here. I'll do it down here. Down here, okay. Keti, yes of course.

Not in software. Okay cool. So unfortunately that's all I have for the server side. So now which browser would you like to be? Firefox. Ah, good choice. So how about we start with this? Wow. Okay. Cool. Let's pretend I don't have the same merch.

It it it isn't quite clear that he's Firefox. Right? So we will need a little bit more. Maybe this. Okay. Alright. Is that clear now? No. Not not quite? Okay. How about this? Okay. Better? Oh, okay.

Alright. How about this? Okay. If we turn the lights more on, you might get a heat stroke. Alright, cool. Thank you very much for volunteering today. Again, very, yeah, voluntarily.

So let's dive in, let's go into how TCP and the internet works. So in order for us to exchange HTTP requests and responses, Back in 1991, we simply needed a TCP connection. So let's set up a TCP connection. What do we do? You all know this, already saw the hands.

We first send a TCP SYN from the client to the server. TCP SYN. Can you? Perfect. After that, the server is going to ACK the TCP, well it's gonna send us an ack back.

Wonderful. We have a TCP connection. Now we can already send the http get request and for that, this is a get request very obviously, right, so we'll put that in here, and please go ahead. And once we have on the server side, we have to get request, the server knows what to respond to, right?

Very obviously, response. We got a response. Okay, great so far. Let's get set up to zero again.

That's plain HTTP. And in 1991, that was a good idea. Later on, that was no longer a good idea, as in we need some security here, We want TLS, back then SSL. So how did that work? How did we make the TCP HTTP request secure? So first off, we again needed to do a TCP handshake.

Let's do this real quick. This is empty, right? Nothing inside. Well, a TCP SYN inside. So please, the server acts. Great. We have the TCP handshake done like last time, right? Now we add some security. So the client first sends the client TLS client hello over.

Great. The server sends the server hello along with certificates. Great. The client sends key exchange and it finished. Great. Packet loss. Anyways, the client needs to retransmit.

Great. Wonderful. And now the server sends the finish. And now please, Firefox, we're done with the secured connection now. Firefox can put the request in there, the get request. Wait. The server reads the get request, puts puts a response inside and sends it back.

Okay. Great. That's ninety ninety one. We now had a secure exchange. As you might have noticed, this was very long, as in this took quite a bit even without the packet loss. This is overall, if you count, it's four round trips as in four back and forth. This is, especially on the old internet, very very long.

Okay. So can we do better? And yes we can with TLS 1.3. Roughly in 2018, we decided to merge the second round trip with the third round trip. Just for the sake of the animation, I'll do this once more. And thus we drive down to three round trips. Now for the sake of saving some time, we'll not act this one out. I think it's quite clear, right, we just skip one of the round trips.

Wonderful. So three round trips. Now can we do even better? And that was a big question around 2021. Well actually before that already within Google and Chrome, where can we do better than three round trips? And so we came up with a whole new transport stack as the internet community, right?

And that is called QUIC. QUIC, instead of standard TCP, it runs on top of UDP. So it's a whole new stack, not compatible with each other. And can QUIC do better than TCP TLS with three round trips? We're about to find that out. So Firefox, would you like to do some quick please?

So how this works in quick, phone box. Yep, without without the request for now. Yes. Okay. So in Quick, we have one round trip for the transport and the security. They're merged together. You see here Firefox sends and then the server responds. Correct. And now after one round trip, we can already send the request. So Firefox please send the get request.

Server again, very well done, can respond after the whole round trip. Perfect. Alright. So we invented a new protocol, it's called QUIC. It can do this whole exchange very quickly within two round trips. Good so far? Can we do even better?

Okay. So on consecutive connections, as in after the first one when the client already knows the server and has exchanged some cryptographic material, on consecutive connections, Quik can do this actually even faster. And so please Firefox, can you please send... Yeah, yeah, very good.

We practiced this all day of course. So this is with the get request already inside. First round trip, server takes it out, can put the response inside and respond all in one single round trip. Isn't that wonderful? Thank you.

Alright. Thank you very much. You can keep all that on if you want to. Okay. I guess you don't want to. Thank you. Okay. So you are probably wondering why is this guy on stage talking about round trips so much?

Why is that relevant in the first place? So what you see here is a plot of round trips that we as Firefox see across our entire release population today. And at the median, so up to 50% of all Firefox users see a round trip time of up to twenty five milliseconds.

At the p 75 we see around forty milliseconds. At the p 95 we see around a hundred milliseconds. Now you learned already that QUIC is significantly faster at establishing a connection compared to TCP TLS. And we also see that in our metrics.

So we see QUIC establishing a connection in about half to two thirds of the time where for example our median on quick is around twenty eight milliseconds to establish a connection to be ready to go to send the GET request. And then on TCP TLS we have around sixty, sixty seven milliseconds at the median. Now I do do a little bit of statistical crime here where I'm showing you those two stats, but there might be a confounder in there.

As in those operators that run QUIC probably also run the more advanced networking stack in general. So whether this is QUIC alone or just the more modern network stacks is still to be determined but we'll get to that towards the end of the talk. As in I'll clean up that my statistical crime there.

One thing that's really neat, at the beginning of the slide at the zero milliseconds, you might see quick starts already significantly higher, right? It's roughly 25%. Can anyone guess why quick here takes zero milliseconds to get started? Anyone? Might there be a reason for that in quick?

Yes. What can we do on consecutive connections? Round trip. No round trip. So here you see the impact of zero RTT where QUIC basically has a head start on many connections as we have already connected to the server and thus we can do zero RTT. Okay. So this is amazing, but it gets even better, which is connection establishment in itself compounds, as in if you make connection establishment faster for example for the first request, you also make the second request faster because if they're sequential, you can then start the next one faster. I'll go into detail what that means.

Let's imagine we have a website and it's one page. You fetch the index HTML from one server. In the index HTML then you learn about a style sheet, a font, and some JavaScript. And then you fetch those as well from different servers. Right? So you fetch from the index HTML first from one server, you learn about the other resources, you go to the other servers and fetch those resources from those other servers.

So let's walk through this on TCP TLS 1.3. And I'll assume here the ninety fifth percentile of RTT in Firefox, so round trip time, which was as we have seen roughly around a hundred milliseconds. Okay. So at the top here, you see TCP TLS. We first need to do a TCP handshake to the first server.

Then we do a TLS handshake to the first server, second round trip. Then we do a get request for the index HTML and we get the response third round trip. We learn about the other sub resources, so we connect to the other sub resources in parallel. We do three TCP handshakes to those sub resources, another round trip.

We do three TLS handshakes to those other sub resource servers, another round trip. And then we actually fetch the sub resources, another round trip. So if you count, that's six round trips with a p 95 of a hundred milliseconds. That's roughly six hundred milliseconds. Cool so far? Okay. Then let's play through this with QUIC.

Well if we connect to QUIC, via QUIC to the first server, we first do the QUIC handshake that combines both the transport layer handshake and the security TLS handshake in one round trip. Then And we can send the get request, so we get the index HTML. We are at two round trips now. We do three more quick handshakes to the various sub resource servers.

Another three, round trip, and then we get the sub resources as well, another round trip. If you add that up, we're at four hundred milliseconds. Now as we saw earlier, we can do even better on consecutive connections. Let's say the user has already connected to those servers in the past where we can use zero RTT, quick zero RTT, so we can send the get request in the very first round trip to the first server, and then fetch the sub resources also with zero RTT within another round trip.

So here we're down to two hundred milliseconds on the p 95 in Firefox. So as I said, it compounds. So we go from six hundred milliseconds down to four hundred milliseconds on consecutive connections. We will even go down to two hundred milliseconds to fetch all those resources. Now so far everything has been great, right?

If you only know this, there's really no reason not to just roll out h t p three tomorrow. But there are some troubles with rolling out h t p three on the internet. The major issue that at least we as a browser on the client side have is antivirus. So antivirus is trying to get between, most antivirus tools are trying to get between you as a client and the server.

And they intercept the traffic. And for that, they usually break the TLS security as in they intercept it. And they do that quite well on h t p one and h t p two. As in their h t p one and h t p two stacks are pretty good and usually they don't break the connections. But out of our own experience, h t p three, they're very bad at. As in they're very bad at intercepting it and usually either breaking the connections or not even allowing them to establish in the first place. So that's our main drawback from our perspective on h t p three, why we don't see for example more adoption.

In addition, a lot of VPNs for example refuse to carry h t p three or QUIC. They for example prevent the h t p three signals to even reach the client, we'll cover that in a bit. And so that takes away yet another bit of h t p three adoption in the web.

And the last one I list here is networks supporting UDP in the first place. As a reminder, QUIC runs on top of UDP. Some networks block UDP, but that's at this point more of a myth where yes, there was a problem early on when we rolled out HTTP three and QUIC, but nowadays pretty much all ISPs support UDP or carry UDP.

Just as a stat here, Meta, which uses QUIC between their clients and servers extensively, sees around 97% of success rate of http three. So quite high, usually not. Not indicating that any networks block the UDP traffic. Okay. So h e p three is really good, very helpful, significantly reduces connection establishment time and thus generally latency.

We do have some drawbacks. It's difficult to roll out on the internet so far. So let's see, look at some past protocols, how they got deployed on the internet and maybe we can learn a little bit on how to best adopt a protocol, a new protocol on the internet. So I'll bring you this example.

But I'll also have a second example with me here which is TLS 1.3. So why am I showing these two? IPv6 internet protocol standardized in 1998. From our perspective, we still only see around 20% of adoption on the internet today. I think it's fair to say that that is quite a failure in terms of rolling out a new protocol on the internet. On the other hand, we have TLS 1.3.

Standardized in around 2018, at this point it's pretty much ubiquitous in the internet As in the majority of our TLS handshakes are TLS 1.3 handshakes at this point. So I'm showing these as one, a failed case and then very much a successful case. So what can we learn from those two?

And there's a nice RFC about this, it's RFC 8,170. Transition is easiest when changing only one entity, still benefits that entity. So let's go through this at the examples. If you change to IPv6 today, you won't have much benefit. Really the the real benefit of IPv6 in the internet, we'll see once everyone adopted IPv6 and then we can get rid of all the complexity of the transition between v four and v six.

By itself, it doesn't get you much benefit. On the opposite side, TLS 1.3. If you enable TLS 1.3 today, you're a very behind but that's a different story. If you enable TLS 1.3 today on the internet, you get immediate benefit because it saves you one round trip. Right? That was the slide earlier where the two round trips merge together. So it directly benefits you as an entity rolling it out.

Okay, so our learning here, how can we apply this to http three? Well first let's look at where h t p three is at today. Roughly one third of all Firefox requests and that somewhat matches all the other perspectives of the other browsers but also many server sites. One third is roughly HTTP three traffic today already.

So we already surpassed IPv6 I guess on Firefox, but we obviously want to aim for the adoption of TLS 1.3 long term. So how can we adopt this? Well, we need to make sure the entity is benefited that actually rolls it out, and we already saw that at the beginning, right?

If you enable HTTP three today, you have an immediate benefit of saving run round trip against TLS TCP and on consecutive connections even in zero r t t, as in you connect right away. So you already have that benefit. But as I said, it comes with a risk, as in if the client has for example some antivirus that messes with your http three handshake, you are in trouble.

So the only thing to make this complete is we will need to mitigate that risk. Right? The benefit is already there. We need to mitigate the risk of rolling out http three for everyone. And we're doing that, all the browsers actually do that. And it's called happy eyeballs. Happy eyeballs is a rather simple algorithm that runs on the client side. It raises all the different protocol options against each other.

So for example it raises an a record against a quad a record, an https record. It raises IPv4 against IPv6. It raises TCP TLS against QUIC. It raises hp1 against hp2 against hp3. It can raise with or without ECH, ECH being encrypted client alone. So you see that here in a graph where a browser will do all the DNS requests, will attempt the most modern protocol first as in the one that it wants the most, and then if that succeeds, great. Happy path.

We have the connection that we want. But to mitigate the risk of for example an antivirus breaking our connections, here is the fallback path where for example, QUIC IPv6 doesn't work, QUIC over IPv4 also doesn't work, but then we do just simply TCP over v six and that then works and then we do TCP over v six.

If that one would fail, we would then do TCP over v four. So with this algorithm, we mitigated the risk. So we have the benefit of the safe round trips without having the downside of the risk when rolling this out. Okay, so all of you probably at this point wonder how did he make these really cool visualizations and what is happy eyeballs.

I'll go into happy eyeballs first. What is an eyeball? Well eyeball is synonymous or a network operator speak for a user, right? As in users have eyeballs, they look at screens. And eyeballs or users, they're very latency sensitive. They are often on very lossy networks.

If anyone has ever taken Deutsche Bahn with their WiFi, you see around 20% loss for example. And generally very bad networks. And so optimizing for latency makes eyeballs happy and that's why the name Happy Eyeballs. So we have done, we as in Mozilla on the Firefox release population, we have done an AB experiment of the new Happy Eyeballs v three algorithm.

And given that we have AB, now this is not statistical crime anymore, but actual real dependable numbers. Compared to control which was without Happy Eyeball v three, Happy Eyeball v three reaches around 5% more h t p three on the internet. That is a huge win for us, but in itself obviously not very helpful. You want the actual impact on users.

But we do also measure that in our experiment. So for example, FCP improved across every percentile compared to our control group, the treatment group compared to our control group. What you see here is control being at 0%, the black line at the top, and then green is our treatment group, happy eyeballs, where on every single percentile at the p 10 for example, you see an improvement around two percent and then the p 99 we see an improvement around 3.5%.

So this translates on p 10, those are already very fast connections, around four milliseconds and then on the p 99 for example this turns into two eighty milliseconds saved on the first Contentful Paint. We also see this as an improvement on LCP, pretty much across all percentiles, not quite.

On the P10 we see a small regression, we're looking into that. Our hypothesis is that it's due to some constant delays introduced in the algorithm, but otherwise across all percentiles, we even see an improvement in LCP. So for example, on the P25, point 6% and then a P99, point 2.4% on LCP.

Now something worth stressing here is this is the impact of us turning Happy Eyeball v three on across all Firefox, well 5%, 5%, 5% of Firefox population and that led to a 5% increase in h e p three across the entire internet, right?

So if you enable h e p three today on your server side, I assume you'll get a significantly higher increase in the h e p three share as in way more clients, way more than 5% connecting to you via h e p three. So I would suspect, but I don't have the data here, that you would see a significantly higher improvement in FCP and LCP compared to us here where we are operating over the entire internet.

Okay. So happy eyeballs, great idea. Entirely running on the client, right, it's an algorithm on the client, but we need a little bit of help from the servers that we speak Happy eyeballs and h t p three to. And there are two things.

Obviously you need to enable h t p three, right? Otherwise we wouldn't be able to talk to you over h t p three. But there are two signals that you need to give us. As in you need to tell us that you speak h t p three. And there are two ways to do that. One is an l service http header.

You simply put that into the http response. So if Firefox or any browser really connects to you over let's say http two, You as a server say, hey by the way, dear Firefox, it's 2026, I also speak http three. And then on consecutive connections, Firefox or any browser will connect over http three instead. There's a second way how you can announce that you speak h t p three and that is via h t b s DNS records.

That way when Firefox connects on the very first connection to you, it will fetch the DNS record, see that you speak h t p three, and then connect to you via h t p three on the very first connection. So you reap the benefits right away. As a small caveat, you should do both because on some operating systems one cannot get the HTTPS DNS record.

So small checklist here, enable HTTP three next to HTTP two and HTTP one. Send an out service header. Publish an h t p s record and then for all the benefits and the cherry on top enable quick zero r t t in addition. And then our, as in the browsers, happy eyeballs algorithms can reap the most benefits from your setup.

And at this point there's really no excuse not to do this. As in all the major server implementations implement h t p three. Most of them even implement zero r t t. Most of the CDNs implement HTTP three. Most of them offer zero RTT. If you have them host your DNS they even publish HPS records for you. In case they don't, maybe you as a user of their platform can even put some pressure on them.

So to make this easier for all of you, I built a little testing tool. It's called safearoundtrip.com and let's see whether this demo now works. Yes, perfect. So if you visit safearoundtrip.com, am I able to go to the other screen?

Yes, perfect. We had a previous test here. You can here check whether you do all the right things for happy eyeballs to connect to you over HTTP three. I summarize the entire talk here in this page as in all the stats are still here and all the explainers but we'll not go into that for now.

But instead, we can check some server. So we already checked Robin's website earlier, I didn't delete that, but maybe the audience here has a good website to check. Any anyone? Wizardry.com. Cssdot? No, no, csswizard.

Wizard.ry.ry.dotcom.dotcom. Alright. Well done. So what you see here, it serves HGP3. It advertises HGP3 in an out service header, right?

It h advertises an HTP3HTPS DNS record and the cherry on top, it even does quick 0RTT. So on consecutive connections, we'll connect right away. Cool, thank you very much. Again, save around trip.com, don't forget the a and you can test your own website there and you find all the content of this talk there again. For a small challenge, whoever after the talk comes up to me and shows me their personal website, it has to be your personal one, and that personal website checks all the boxes.

I have a little surprise for you. Well actually Buzz has a three d printer at home so the little surprise came out of the three d printer. And so you, the first two people that can show me all four check screen get the little prize there. Okay, let's see whether I can go back.

I can. So to summarize how we can save the world, only round trips for now, please enable h t p three on your server side. Please send l-service headers. Please please publish h t p s records. Offer zero r t t and then if you're not sure about any of these, go to savearoundtrip.com and then check your setup there and there are also instructions on how to do each of these.

All of this runs under the motto of the server advertises all the various model different options and then clients, as in all browsers, will raise those different options. Cool. I posted my slides on Mastodon in case you want the slides itself. Savearoundtrip.com is probably the better summary, but if you're eager to read the slides again, you'll find them there.

And then I think we have time for some questions, I'm not sure, otherwise you can find me in the venue or on any of those resources, happy to answer emails for example. Thank you. Alright.

Thanks Max. That was amazing. I have many questions and thankfully you all do too.

Okay.

Okay. So alright. Now let's get get to these. So we've got a great question from from Tavy Janssen. Showcase the adoption of this across traffic to be roughly 29%. Do you have any data or metrics to tell if the traffic is against origin servers, c d n's, serve you know, how like do you know more like like who's supporting it where?

So I I know anecdotally. Right? I have not looked at the telemetry on the concrete URLs that we run h three, as in domains that we run h e p three against. Firefox, while we do collect data, we collect that data very anonymized. Right? We do make that public, the data.

But that means that I don't have access to the concrete domains that we talk h e p three to. And I would argue that's a good thing that I don't have that access.

No. That's that's totally fair. But I I... Knowing that all of us are using various services, whether it's our own server, we're using Netlify, it's going through Cloudflare, Akamai, some other thing, wondering where where we can best put that effort Yeah. To to raise the adoption.

Yeah. So as I've had earlier, this is very much, as in like most platforms at this point support it. If you're behind a CDN, it doesn't make much sense for you as a origin to speak h t p three, as in the network between you and your CDN is, it's not eyeball networks, right?

It's not the very lossy networks, but it's very stable data center networks between you and the CDN. So you probably have very low packet loss for example. And so TCP will do just fine from the CDN to your origin. So yeah, make sure from from the client to the first hop, that should be h t p three.

I'm gonna inject one other question here just sort of on this topic. When those things are being established, you were showing the request comes in, there's the h t m l page, there's various other resources. You were suggesting that the three resources in theory are on separate servers. Mhmm. If they were all going to the same server, like you have, here's your web server and here's your asset server.

Yeah.

And they're all going there. Yeah. Does that mean we're saving it three times more? I I mean, or do we have to have the quick request is gonna be with every one of those assets and then the round trip? But if they're all in the same URL?

So the index HTML, the CSS, JavaScript, they all come from the same server?

Or or even just two instead of instead of like one for every asset. But that's the idea.

It depends on how you paralyze it. So if they are dependent on each other, right? So for example, the JavaScript we only learned about through the index HTML. Right? And so if you put both of them on the same server, we will have one round trip to establish quick. We have one round trip to get the index HTML, and then we learn about the JavaScript.

So we have one round trip, only one to to send the get request and get the JavaScript back.

That's great. Cool. Thank you. So we had another question coming from Katie Miller. Has there been have there been attempts to reach out to AV and corporate network inspection software vendors to get them to better support this? How what what do we do? I mean, what is the path forward to get that that kind of thing addressed?

So we talked about this during dinner, think, last night. So in Mozilla, probably as every company, we have this idea of an incident where like it's all hands on deck because something is broken and it affects Firefox population, right? And I think within the networking team, at least half of our incidents are due to some antivirus software.

As in they roll out some feature, right, that rolls out to all Windows clients usually, and then people complain that Firefox doesn't work. Right? They don't associate it with your... With their antivirus. And that's very hard to debug as people simply say Firefox doesn't work, and then we ask what kind of antivirus are you using for example, and then we can reproduce it.

And so usually what our way there is, Blengh, we ship a hotfix, but we also talk to the antivirus companies. And I'm I'm not trying to imply that there is malice on their end, not at all. So we usually help them then fix their stack to then properly filter h t p three unfortunately, as in we're we're being filtered.

But yes, we are very much in in touch with all of them. And also all of the the CDNs and so on, there's there's great collaboration. I can only speak from the ITF side, the Internet Engineering Task Force conference side, but there we're definitely in touch with all of them. And we are working on making this matrix all green.

That's for sure.

That's great. I feel like that that shared responsibility for fixing things works all the way up and down the stack. I deal with this all the time Yeah. On our design system team where somebody else hasn't implemented a front end thing very well. We know how to do it better. And so shipping that fix and then building that collaboration seems like that's working all the way up and down.

So that's great to hear. So Marco is actually asking the question, should we even keep supporting h t d p one? So I think that's sort of a good prompt I think for a lot of these discussions is as we're moving towards new standards, how long do we keep supporting the other one versus forcing the issue?

Yeah. Okay. So obviously you've noticed that I'm quite excited about h p three. Right? So yeah, I would like it to go to a 100%, but I don't think that makes technical sense. So QUIC has a lot of tuning knobs and is very smart about how and when to transmit something, and that's very important on lossy networks. But for example, if you don't have a lossy network and you don't really care about latency, then http one is just fine over TCP. So for example, the example of the origin speaking to the CDN. So one important one here is http one, humanity has optimized the hell out of h t p one, and a lot of it is actually at this point offloaded to for example network cards, right, at the big providers.

So they can serve h t p one really really fast, as in or in low resource consumption. Versus h t p three is still usually in user space, for example, and not as much offloaded. So yes, it makes a lot of sense to do a lot of h t p three between the user and the CDN, or like your front end servers, But beyond that, I think there's still a place for HP one and over TCP.

Great. So another question from Florian. Are you aware any restrictions that CDN providers may be applying where they're not allowing zero round trip, like your URLs with query parameters or something? Is there a reason or a risk there?

Ah, a risk to zero r t t. Yeah. Okay. Yeah. So zero...

I hope I'm getting that right, Florian. Please speak up if I'm...

Okay. Hi Florian. So what you're probably hinting at, Zero RTT is replay attackable. As in someone on the network on the path can record my Zero RTT that I sent to a server and then replay it at a later time. So that way the server will see my request twice.

Right? And that might be a problem for some requests. And those requests where it is a problem, we call them non item potent. So for example, I think a post would not be fine as in, if I book my trip twice for example, or I buy those shoes twice. Right? That's a problem. That's why the browser will never put non idempotent requests into zero r t t. So this risk is entirely abstracted away by the browser. You can't even put anything.

Well if you put something postable into a get request, we will replay that, but that's that you just shot yourself in your own foot. Yeah. So, yeah, no risk there, at least from a security standpoint.

If they click the button fast enough, they're bound to break something. No name was provided with this one, but the question is, do Chrome and Safari also implement something like Happy Eyeballs?

Yes. Sorry for not stressing that enough in case I haven't. So all browsers implement some form of Happy Eyeballs and some form of h Happy Eyeballs v three. So all of the suggestions I made today apply to all browsers. We differ slightly in how we implement Happy Eyeballs v three, but that shouldn't be visible on the user level.

And that is very much the effort at the ITF with Happy Eyeball v three right now to standardize on that way more. But yeah, all browsers support all the optimizations that I showed today.

And and the last question that we have so far, as they keep coming, is are any thoughts on why Apache doesn't implement h t t p three?

No. I don't have thoughts on this.

Well, sort of brings up an interesting question just for me. With... This is going to sound terrible. Does that matter anymore? I mean, because people are using so many different kinds of application servers. Is Apache still in the center? Is that still the most popular thing that we have to worry about supporting something like this?

Yeah. I don't have data on how how often Firefox connects to Apache. Maybe we have that data. I don't know.

I'm I just I asked that question more about my my own curiosity because for years that was simply the thing that you did was set up your Apache server and you know go about your business of setting up your applications and I don't ever do that anymore. Mhmm. So I was just kinda curious. Okay. Yep. Well, unless we have any more questions coming from the audience, we can, take a break a moment or two early and get some coffee and, we will come back.

Alright. Well, it's no no break then. I was told to say there might be a little break. I'm just I'm just defending myself here. That's alright. We will give one more round of applause to Max. Thank you everybody.

Also to the volunteers up here, please. Thank you. Thank you.

Save a round trip

With HTTP/3 and Happy Eyeballs v3

Max Inden

  • I work on the Firefox networking stack at Mozilla.
  • HTTP/3 and QUIC (neqo).
  • Happy Eyeballs v3 in Firefox (mozilla/happy-eyeballs).
  • Fast UDP I/O for Firefox in Rust.
  • Before: libp2p, Prometheus, Kubernetes.

1991: plain HTTP over TCP

HTTP (1991) over TCP (RFC 793, 1981). Round trips until the response arrives, DNS not counted.

The sequence diagram identifies the client and server. No messages are shown yet.

1991: plain HTTP over TCP

HTTP (1991) over TCP (RFC 793, 1981). Round trips until the response arrives, DNS not counted.

The first arrow shows the client sending a TCP SYN to the server.

1991: plain HTTP over TCP

HTTP (1991) over TCP (RFC 793, 1981). Round trips until the response arrives, DNS not counted.

  1. The client sends TCP SYN and the server returns SYN-ACK.
  2. The client sends GET / and the server returns the HTTP response.

The diagram counts two round trips.

1999: add security with TLS

TLS 1.0 (RFC 2246, 1999) to TLS 1.2 (RFC 5246, 2008): the same round trips.

The sequence diagram identifies the client and server. The TCP and TLS exchanges have yet to appear.

1999: add security with TLS

TLS 1.0 (RFC 2246, 1999) to TLS 1.2 (RFC 5246, 2008): the same round trips.

  1. The client sends TCP SYN and the server returns SYN-ACK.
  2. The client sends TLS ClientHello and the server returns ServerHello and its certificate.
  3. The client sends the key exchange and Finished messages, and the server returns Finished.
  4. The client sends GET / and the server returns the response.

The TLS handshake adds two round trips, bringing the total to four.

2021: QUIC, transport and TLS in one handshake

A new transport protocol: QUIC runs over UDP, not TCP.

QUIC: RFC 9000, 2021. HTTP/3: RFC 9114, 2022.

The sequence diagram identifies the client and server. The combined handshake has yet to appear.

2021: QUIC 0-RTT, the request goes in the first packet

On a repeat visit to the same server. RFC 9001, 2021. TLS 1.3 over TCP can use 0-RTT too.

The sequence diagram identifies the client and server. No packet arrows are shown yet.

What one round trip costs

Round-trip time of HTTP/3 connections, Firefox 159 Release, all platforms. The sample covers servers that support HTTP/3, often large CDNs close to users. Source: GLAM, networking.http_3_rtt.

The cumulative curve plots the share of connections at or below each round-trip time on a logarithmic time axis. The median is 25 ms, the 75th percentile is 43 ms, and the 95th percentile is 118 ms.

QUIC connects in about half the time

Connection setup times for Firefox 159 Release desktop page loads to servers that support HTTP/3. The comparison covers HTTP/2 over TCP + TLS and HTTP/3 over QUIC. Source: GLAM, network.sup_http3_tcp_connection and network.http3_tls_handshake.

Two cumulative curves show the share of connections established by each elapsed time. QUIC reaches a given share sooner throughout the plotted range. The annotated setup times near the median are 28 ms for QUIC and 67 ms for TCP + TLS.

Example: one page, then three more servers

index.html from one server, then a style sheet, a font and a script from three other servers, in parallel.

Each box represents one 100 ms round trip. The timings exclude DNS.

Three timelines show how setup delays accumulate when a page must arrive before the browser discovers its subresources. HTTP/2 uses a TCP round trip and a TLS 1.3 round trip before each fetch. Loading the page and then fetching style.css, font.woff2 and app.js in parallel takes 600 ms. HTTP/3 uses one QUIC setup round trip before each fetch and takes 400 ms. On a repeat visit with QUIC 0-RTT, the page takes one round trip and the parallel subresources take another, for 200 ms total.

Why HTTP/3 does not always work

  • Antivirus inspects HTTP/3 and breaks it, at home and at work. Bugs 2034178 and 1919678.
  • VPN packet size limits and virtual network interfaces can stall HTTP/3. VPN DNS resolvers often fail to return HTTPS records. Bugs 1734110 and 1989895.
  • Network blocking of UDP can prevent QUIC from working. The slide describes this as rare and cites Meta’s report that QUIC works 97% or more of the time across its enabled apps and sites.

References include RFC 9308 and Matt Joras (Meta), IETF QUIC mailing list, 25 June 2024.

TLS 1.3: standardised in 2018

Firefox Desktop Release, October 2024 to November 2026. TLS 1.3 share of TLS handshakes over TCP, excluding QUIC. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO.

The line chart shows TLS 1.3 rising gradually from around 79% of TLS handshakes over TCP in October 2024 to 87% in November 2026.

IPv6: standardised in 1998

IPv4 192.0.2.1 · IPv6 2001:db8:85a3::8a2e:370:7334

Share of HTTP connections over IPv6, Firefox Desktop Release, August 2025 to November 2026. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO, networking.connection_address_type. IPv6: RFC 2460 (1998).

The line chart shows the IPv6 share of HTTP connections hovering around one fifth, ending at 21% in November 2026.

TLS 1.3: standardised in 2018

Firefox Desktop Release, October 2024 to November 2026. TLS 1.3 share of TLS handshakes over TCP, excluding QUIC. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO.

The line chart shows TLS 1.3 rising gradually from around 79% of TLS handshakes over TCP in October 2024 to 87% in November 2026.

IPv6: standardised in 1998

IPv4 192.0.2.1 · IPv6 2001:db8:85a3::8a2e:370:7334

Share of HTTP connections over IPv6, Firefox Desktop Release, August 2025 to November 2026. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO, networking.connection_address_type. IPv6: RFC 2460 (1998).

The line chart shows the IPv6 share of HTTP connections hovering around one fifth, ending at 21% in November 2026.

What makes a transition work

“Transition is easiest when changing only one entity still benefits that entity.”

RFC 8170, “Planning for Protocol Adoption and Subsequent Transitions”, Internet Architecture Board, 2017

TLS 1.3: standardised in 2018

Firefox Desktop Release, October 2024 to November 2026. TLS 1.3 share of TLS handshakes over TCP, excluding QUIC. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO.

The line chart shows TLS 1.3 rising gradually from around 79% of TLS handshakes over TCP in October 2024 to 87% in November 2026.

IPv6: standardised in 1998

IPv4 192.0.2.1 · IPv6 2001:db8:85a3::8a2e:370:7334

Share of HTTP connections over IPv6, Firefox Desktop Release, August 2025 to November 2026. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO, networking.connection_address_type. IPv6: RFC 2460 (1998).

The line chart shows the IPv6 share of HTTP connections hovering around one fifth, ending at 21% in November 2026.

TLS 1.3: standardised in 2018

Firefox Desktop Release, October 2024 to November 2026. TLS 1.3 share of TLS handshakes over TCP, excluding QUIC. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO.

The line chart shows TLS 1.3 rising gradually from around 79% of TLS handshakes over TCP in October 2024 to 87% in November 2026.

What makes a transition work

“Transition is easiest when changing only one entity still benefits that entity.”

RFC 8170, “Planning for Protocol Adoption and Subsequent Transitions”, Internet Architecture Board, 2017

HTTP/3

Share of HTTP responses over HTTP/3 (main documents and subresources), Firefox Desktop Release, October 2024 to November 2026. Monthly measurements use the first week of each month and a 5% client sample. Source: Glean metrics ping via STMO, networking.http_response_version.

The line chart starts at about 22%, fluctuates around 25% for much of the period, and rises to 29% in November 2026.

What makes a transition work

“Transition is easiest when changing only one entity still benefits that entity.”

RFC 8170, “Planning for Protocol Adoption and Subsequent Transitions”, Internet Architecture Board, 2017

Happy Eyeballs: race the options

A, AAAA or HTTPS record · IPv4 or IPv6 · TCP + TLS or QUIC · HTTP/1.1, 2 or 3 · with or without ECH

Ask DNS for the HTTPS record, AAAA and A at once.

  1. QUIC over IPv6
  2. QUIC over IPv4
  3. TCP over IPv6
  4. TCP over IPv4

The animated timeline shows how Happy Eyeballs gives the preferred connection a head start and staggers fallback attempts. The HTTPS, AAAA and A lookups run in parallel. Once the answers arrive, the client starts QUIC over IPv6. In the successful run, it connects at about 58 ms and the other attempts never start. In the fallback run, the client also starts QUIC over IPv4 after 50 ms without an answer from the first attempt. At 154 ms neither QUIC attempt has answered, and the timeline lists TCP over IPv6 and TCP over IPv4 as the next options.

Why “Happy Eyeballs”?

Network operators call users eyeballs.

They are latency sensitive, often on lossy, bad networks.

Optimizing for latency makes eyeballs happy.

Happy Eyeballs: race the options

Ask DNS for the HTTPS record, AAAA and A at once.

At 14 ms on the connection timeline, the A lookup for IPv4 has returned. The HTTPS and AAAA lookups are still pending, and no connection attempt has started.

Happy Eyeballs: race the options

Start the best option: QUIC over IPv6.

At 43 ms on the connection timeline, all three DNS lookups have returned and the QUIC over IPv6 attempt is in progress. The QUIC over IPv4 and both TCP attempts have yet to start.

Why “Happy Eyeballs”?

Network operators call users eyeballs.

They are latency sensitive, often on lossy, bad networks.

Optimizing for latency makes eyeballs happy.

With Happy Eyeballs: more page loads over HTTP/3

HTTP version of the main document, page loads on a new connection, Firefox 158 to 160 Release experiment: 98.6M (control) and 102.2M (Happy Eyeballs v3).

HTTP/3 goes from 20.1% to 25.6%. Tracking: bug 1953459.

Two stacked bars compare the share of page loads by protocol. From control to Happy Eyeballs v3, HTTP/1.1 falls from 26.7% to 25.3%, HTTP/2 falls from 53.2% to 49.1%, and HTTP/3 rises from 20.1% to 25.6%, a gain of 5.5 percentage points.

First contentful paint (FCP) is faster at every percentile

First contentful paint, Happy Eyeballs v3 vs control, page loads on a new connection, Firefox 158 and 159 Release experiment: 73.9M (control) and 77.1M (Happy Eyeballs v3).

Median 648 ms to 632 ms, P99 8.2 s to 7.9 s. P50 to P99: every 95% confidence interval excludes zero.

A line chart plots the percentage change in FCP time relative to the control. The line stays below zero from P10 to P99, indicating faster paint times throughout. The labeled changes are P10 −2.1% (4 ms faster), P25 −2.8% (10 ms), P50 −2.5% (16 ms), P75 −2.4% (28 ms), P95 −2.4% (74 ms), and P99 −3.5% (284 ms).

Two ways to advertise HTTP/3

1. Alt-Svc HTTP header

in the HTTP response

Alt-Svc: h3=":443"; ma=86400

2. HTTPS DNS record

in DNS, before connecting

example.com. 3600 IN HTTPS 1 . alpn="h3,h2"

The diagram compares successive connections. In the Alt-Svc example, the first connection uses HTTP/2 and the response advertises HTTP/3 for subsequent connections. With an HTTPS DNS record, the browser learns about HTTP/3 before connecting and can use it on the first connection.

Enable and advertise

  • Enable HTTP/3, next to HTTP/2 and HTTP/1.1.
  • Send an Alt-Svc header.
  • Publish an HTTPS record with alpn="h3".
  • Enable QUIC 0-RTT.

Check your server

HTTP/3 checklist for invirtus.be · 3 of 4 done

The domain checker reports that invirtus.be serves HTTP/3 and advertises it through both an Alt-Svc response header and an HTTPS DNS record. QUIC 0-RTT for repeat visits is the remaining checklist item.

Save a round trip with HTTP/3.

The savearoundtrip.com overview shows three round trips for HTTP/2, with one each for TCP, TLS 1.3, and the request. HTTP/3 takes two in the diagram, one for QUIC setup and one for the request. The page explains that QUIC 0-RTT can put the request in the first packet on a repeat visit.

Check your server

HTTP/3 checklist for invirtus.be · 3 of 4 done

A domain input lets users run the server check. The result shown for invirtus.be confirms that it serves HTTP/3 and advertises it in both an Alt-Svc header and an HTTPS DNS record. The checker flags QUIC 0-RTT for repeat visits as the remaining item.

Save a round trip with HTTP/3.

The savearoundtrip.com diagram compares three round trips for HTTP/2 over TCP and TLS 1.3, two for HTTP/3 over QUIC, and one for a repeat visit with QUIC 0-RTT, when the request can travel in the first packet.

How we can save the world a round trip

  1. Serve HTTP/3 and send an Alt-Svc header.
  2. Publish an HTTPS record with alpn="h3".
  3. Offer QUIC 0-RTT.
  4. Check your site on savearoundtrip.com.

Servers advertise, clients race.

Max Inden · max-inden.de · @mxinden@mastodon.social · mail@max-inden.de

Most servers and CDNs already support it

Surveyed 17 November 2026 from vendor documentation.

Two compatibility tables compare HTTP/3 and 0-RTT support for servers and proxies, and add HTTPS DNS record support for CDNs. The survey lists HTTP/3 support for eight of nine servers and proxies and five of seven CDNs. Cloudflare and Akamai are listed as supporting all three features. Question marks indicate that the survey found no vendor statement. The relevant features are those of the endpoint the browser connects to.

Technologies & Tools

  • libp2p
  • Prometheus
  • Kubernetes
  • Caddy
  • VPN
  • savearoundtrip.com
  • Apache HTTP Server

Standards & Specs

  • HTTP/3
  • QUIC
  • Happy Eyeballs v3
  • UDP
  • HTTP
  • TCP
  • HTTP GET
  • TLS
  • SSL
  • TLS 1.3
  • QUIC 0-RTT
  • HTML
  • JavaScript
  • HTTP/1.1
  • HTTP/2
  • IPv6
  • RFC 8170
  • IPv4
  • DNS A record
  • DNS AAAA record
  • DNS HTTPS record
  • Encrypted Client Hello
  • Alt-Svc

Concepts & Methods

  • A/B testing
  • First Contentful Paint
  • Largest Contentful Paint
  • Replay attack

Organisations & Products

  • Mozilla
  • Firefox
  • CERN
  • Google Chrome
  • Meta
  • Safari