---
title: "HTTP/3 QUIC Slow? How to Test It Against HTTP/2 in China"
description: "HTTP/3 isn't always faster than HTTP/2. See how QUIC differs from TCP+TLS, how browsers fall back when UDP is throttled, and how to A/B test with curl."
url: https://cdnping.org/en/blog/http3-quic-udp-slow-check
language: en
published: 2026-10-26
category: "Networking basics"
tags: ["HTTP/3","QUIC","HTTP/2","curl","network troubleshooting","CDN"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# HTTP/3 QUIC Slow? How to Test It Against HTTP/2 in China

HTTP/3 is not always faster. It shines on lossy or frequently changing mobile networks, but on many broadband and corporate networks in China, UDP is rate-limited, dropped, or treated specially by middleboxes. When that happens, the QUIC handshake fails or throughput stalls, the browser has to fall back to TCP, and the user experiences "HTTP/3 QUIC is slow." The most reliable way to find out which case you are in is to test HTTP/2 and HTTP/3 several times each, from the same machine in the same time window, and compare handshake and time-to-first-byte.

## What actually differs between HTTP/2 and HTTP/3?

The application-level semantics are essentially the same (methods, headers and status codes are identical). The difference is in the transport layer underneath.

| Item | HTTP/2 | HTTP/3 |
|---|---|---|
| Transport | TCP | QUIC over UDP |
| Encryption | TLS 1.2 / 1.3, negotiated separately after the TCP handshake | TLS 1.3 built into the QUIC handshake |
| New-connection handshake | 1 round trip for TCP + 1 round trip for TLS 1.3 | Usually 1 round trip |
| Resuming a connection | TLS session resumption, but the TCP handshake must finish first | 0-RTT supported; the first request can ride along with the handshake |
| Head-of-line blocking | Streams are multiplexed on one TCP connection, so one lost packet stalls all of them | Each stream retransmits independently; loss only affects its own stream |
| Network changes | The connection breaks when the IP changes | Identified by a connection ID, so it can migrate from Wi-Fi to 4G |
| Port | TCP 443 | UDP 443 |
| Discovery | Used directly | The client first learns the server supports h3 from the `Alt-Svc` response header or a DNS HTTPS record |

The table shows HTTP/3's two theoretical advantages: one fewer round trip in the handshake, and no connection-wide stall on packet loss. The longer the round-trip time and the higher the loss, the more visible they become.

The last row is often overlooked, though. The first time a browser visits a site, it usually doesn't know the site supports HTTP/3, so it uses HTTP/2 and only learns it can upgrade from `Alt-Svc: h3=":443"` in the response. Later connections then try QUIC. So for a "first page load," HTTP/3 often isn't used at all.

## Why can HTTP/3 be slower on networks in China?

### UDP is throttled or dropped

Most internet traffic has long been TCP, and many ISPs, corporate firewalls and home routers handle UDP more conservatively. Some rate-limit heavy UDP traffic (QoS), some drop UDP 443 outright, and some NAT devices expire UDP mappings very quickly. The symptoms may look like this:

- QUIC handshake packets never get out or never come back, and the browser waits a while before falling back to TCP;
- The handshake succeeds, but after a short while the transfer speed is clearly lower than over TCP;
- The connection goes stale after being idle, and the next request has to handshake again.

This behavior varies by region, ISP and time of day. The same site can show the opposite result on a different line, so don't draw conclusions from a single experience.

### Fallback has a cost

Browsers such as Chrome race QUIC against a TCP connection and use whichever succeeds first, and they temporarily mark sites where QUIC failed as broken. This avoids the worst case, but it is not free: if the QUIC handshake never produces a result, or it succeeds and then drops quickly because of packet loss, the page stalls midway.

### User-space implementation and CPU overhead

TCP is handled by the operating system kernel, and many NICs offload part of the work. QUIC is mostly implemented inside the application process, so encryption and packet handling consume CPU. On high-bandwidth downloads or weaker devices, HTTP/3 throughput can fall below HTTP/2. You usually won't notice this in ordinary page browsing, but it shows up more readily with large file downloads.

### Proxies and traffic-splitting tools in the path

If you run a proxy or traffic-splitting tool locally, whether UDP is proxied and which route it takes depends on the configuration. Some setups forward only TCP, so UDP 443 either goes direct or is dropped. In that case, HTTP/3's behavior reflects your proxy configuration, not the website. For how to tell which route your traffic takes, see [How Chinese websites see your real IP](/en/blog/how-chinese-sites-see-your-real-ip).

## How do I compare HTTP/2 and HTTP/3 myself?

The three methods below run from the command line to the browser. I suggest doing at least the first two.

### Method 1: time each protocol with curl

First confirm your curl supports HTTP/3:

```bash
curl -V
```

The `Features` line in the output must include `HTTP3`. Many system-provided curl builds don't compile this in, and `--http3` will just error out; in that case, use a curl build that supports HTTP/3 or a container image that ships one.

Prepare a timing template and save it as `fmt.txt`:

```text
proto:     %{http_version}\n
dns:       %{time_namelookup}\n
connect:   %{time_connect}\n
tls:       %{time_appconnect}\n
ttfb:      %{time_starttransfer}\n
total:     %{time_total}\n
```

Then test the same URL with each protocol:

```bash
URL=https://example.com/

# Force HTTP/2
curl -so /dev/null --http2 -w @fmt.txt "$URL"

# Try HTTP/3, allowing fallback on failure
curl -so /dev/null --http3 -w @fmt.txt "$URL"

# HTTP/3 only, no fallback (to confirm whether UDP gets through)
curl -so /dev/null --http3-only -w @fmt.txt "$URL"
```

When reading the results, keep these points in mind:

1. `proto` must match what you asked for. If you used `--http3` and `proto` shows `2`, QUIC did not connect and curl has already fallen back.
2. If `--http3-only` fails immediately or hangs for a long time, you can conclude fairly safely that UDP 443 from your current network to that server is not getting through.
3. For HTTP/2, read the handshake time from `tls` (the cumulative time for TCP plus TLS). In HTTP/3 the transport and cryptographic handshakes are combined, so use the same `tls` value as the handshake-complete time when comparing.
4. A single run varies a lot. Run each protocol at least 5 to 10 times and take the median.

A simple loop:

```bash
for i in $(seq 1 10); do
  curl -so /dev/null --http2 -w '%{time_appconnect} %{time_starttransfer}\n' "$URL"
done | sort -n | sed -n '5,6p'
```

Replace `--http2` with `--http3-only` and run it again. Putting the two medians side by side gives you comparable numbers.

### Method 2: check which protocol Chrome actually used

1. Open DevTools (F12) and switch to the Network panel.
2. Right-click a column header and enable `Protocol`.
3. Reload the page twice (the first load may still be on h2 while it learns `Alt-Svc`).
4. Look at the protocol column for each request: `h3` is HTTP/3 and `h2` is HTTP/2.

If a site sends `alt-svc: h3=...` in its response headers but everything is still `h2` after the second reload, the browser tried QUIC and couldn't use it. The usual cause is UDP being blocked or the site being marked as broken. For finer detail, export a network log from `chrome://net-export/` and open it in the official netlog viewer, where you can see QUIC sessions being established and failing.

### Method 3: temporarily disable QUIC for an A/B test

You can only say "turning off HTTP/3 is faster" if you have measured both before and after.

- Chrome / Edge: open `chrome://flags/#enable-quic` (`edge://flags/#enable-quic` in Edge), set it to Disabled, and restart the browser. You can also launch a separate instance with the `--disable-quic` command-line flag for comparison.
- Firefox: in `about:config`, set `network.http.http3.enable` to `false`.

Steps:

1. With QUIC enabled, open the target page 3 times and record the `Finish` and `DOMContentLoaded` times at the bottom of DevTools.
2. Disable QUIC, restart the browser, and open the page 3 times again, recording the same numbers.
3. If the two sets are close, restore the default; the protocol isn't the problem. If it is clearly faster and stable with QUIC off, then consider leaving it off long term.

Remember to change the setting back when you finish. Otherwise you may forget about this layer the next time something else goes wrong.

## When is HTTP/3 better, and when is HTTP/2 steadier?

| Scenario | More likely to win | Why |
|---|---|---|
| Mobile networks, frequent Wi-Fi/cellular switching | HTTP/3 | Connection migration; no new handshake after a network change |
| Long round-trip time, some packet loss on the link | HTTP/3 | One fewer handshake round trip, and loss doesn't block other streams |
| Short requests to the same site, repeated often | HTTP/3 | 0-RTT resumption |
| `--http3-only` fails or often times out | HTTP/2 | UDP 443 is blocked, so every connection has to fall back |
| Large file downloads, throughput first | HTTP/2 is safer | Throughput is lower when QUIC is throttled or CPU-bound |
| Corporate or campus networks, tools that proxy only TCP | HTTP/2 | UDP is dropped by policy or bypasses the proxy |
| Low-latency, nearly lossless wired networks | Little difference | The round trip saved in the handshake is already short |

HTTP/3's advantages assume UDP works well. When UDP is unreliable, the fallback mechanism keeps pages loading, but not necessarily quickly.

## Other problems that get mixed up with this

Before comparing protocols, it's best to rule out lower-level causes first. Otherwise both the h2 and h3 numbers will be affected:

- Slow or tampered DNS resolution: if the `dns` figure alone is high, start with [How to tell DNS pollution from DNS hijacking](/en/blog/dns-pollution-vs-hijacking-detect).
- A detour route or packet loss at one hop: use mtr to look at the path, and see [How to read traceroute and mtr results](/en/blog/traceroute-mtr-how-to-read) for how to interpret it.
- Stalls after the handshake completes: HTTPS over TCP hanging on large packets is commonly an MTU problem; see [Troubleshooting MTU and large-packet black holes](/en/blog/mtu-mss-blackhole-https-hang). QUIC also has packet-size requirements, so it can break the same way when the path MTU is too small.
- Whether the port is reachable at all: for why ICMP ping and TCP port probes give different results, see [ping vs. tcping](/en/blog/ping-vs-tcping-port-latency).

A full checklist that walks through these in order is in the [Developer network self-check checklist (2026 edition)](/en/blog/developer-network-self-check-2026).

## A quick look at connection timing in the browser

If you just want to know how long it takes to connect from your current network to commonly used services, try the [online speed test](/en) on the cdnping home page. In the browser, it measures two numbers for each of 15 AI model APIs and 9 public frontend CDNs: "first connect," which includes DNS and the TLS handshake, and "round trip," the median of 3 requests over a reused connection.

These two numbers map onto the approach in this article. If first connect is much higher than round trip, the time is going into connection setup, so DNS, the number of handshakes and protocol fallback are worth checking. If both are high, the link itself is slow and switching protocols won't help much. The browser speed test uses whatever protocol the browser picks and cannot force H2 or H3, so it works as a first screen; for protocol-level A/B testing you still need the curl and disable-QUIC methods above.

A comparison of public CDNs is collected in the [CDN speed ranking](/en/benchmark/cdn), the selection approach is in [How to choose a public frontend CDN for China](/en/learn/choose-public-cdn-china), and the measurement method is described in [Methodology](/en/methodology). cdnping only started collecting data on October 17, 2026, so the statistics window is still very short. It is good for seeing current conditions, not for drawing long-term conclusions.

## What can site operators do?

If you maintain a site or API and users report that it is "sometimes slow," check the following:

1. Whether your server or CDN has HTTP/3 enabled, and whether the `Alt-Svc` `ma` (max-age) value is reasonable;
2. Keep HTTP/2 enabled alongside HTTP/3. Don't serve HTTP/3 only, so users whose UDP is blocked can still fall back cleanly;
3. Group latency and error rate by protocol in your logs, compare h2 and h3 users, and only then decide whether to adjust anything;
4. If the failure rate for HTTP/3 users is clearly higher, try turning HTTP/3 off at the CDN for a while and observe.

If users mainly complain that "access from China is slow" and it isn't just a protocol issue, see [Diagnosing a static site that is slow in China](/en/blog/static-site-slow-in-china-diagnose) for hosting and origin-fetch checks.
