Hysteria2 or TUIC: two QUIC protocols compared

Hysteria2 and TUIC both run on QUIC over UDP, and both keep their speed better than TCP protocols when packets get lost. Hysteria2 brings its own speed control, Brutal, which holds a set rate under loss, plus a masquerade website, Salamander obfuscation and port hopping. TUIC v5 is leaner: a UUID and a password, a standard congestion control of your choice and two ways to carry UDP. Both stop where a network blocks or throttles UDP.

Updated

On this page

What they share: QUIC over UDP

QUIC is the transport of HTTP/3. It runs over UDP, has TLS 1.3 built in and carries many streams in one connection, so a lost packet holds up only its own stream, not everything after it as in TCP. That is why both cope with mobile data, crowded Wi-Fi and distant servers better than VLESS, VMess or Trojan over TCP.

Both need a TLS certificate: a real one for a domain, or a self-signed one that the client pins or doesn't check. Both are proxies that a client app turns into a VPN. And both share one weakness: where UDP is blocked or throttled, neither connects, and neither goes through a CDN.

Hysteria2: its own speed control and a face for strangers

  • Brutal — if the client knows its upload and download speed, Hysteria2 sends at that rate and makes up for lost packets instead of slowing down. Without a set speed it uses BBR. Set it honestly: a rate above what the line carries floods it.
  • Masquerade — without the password the server behaves as an ordinary HTTP/3 web server: it passes visitors on to a real website, serves files from a folder or returns a fixed text.
  • Salamander — obfs=salamander with an obfs-password in the link: packets look like random bytes instead of QUIC. It helps where QUIC itself is blocked, but the server no longer looks like an HTTP/3 site.
  • Port hopping — the client moves across a range of UDP ports, every 30 seconds by default in Hysteria2's own client, while the server's firewall redirects the range to one port. In a link: hysteria2://password@example.com:443,20000-30000/.
  • Login — a password, or names with passwords. The link is hysteria2://password@address:port/?sni=domain, or the short hy2://.
  • The server — an official install script, and it can obtain and renew a real certificate by itself.

TUIC v5: lean and configurable

  • Login — a UUID and a password, both in the link: tuic://uuid:password@address:port.
  • Congestion control — your choice of cubic, new_reno or bbr, set in the config and often in the link as congestion_control=bbr. On lossy lines bbr usually does better. When it isn't set, the program picks its own default (cubic in sing-box).
  • UDP relay mode — udp_relay_mode=native sends each UDP packet as it is, as an unreliable QUIC datagram, with little overhead, just like UDP itself; quic carries UDP packets in QUIC streams, so none are lost, at the cost of more overhead. native is the usual default.
  • 0-RTT — an optional 0-RTT handshake makes reconnecting faster, but 0-RTT data can be replayed by someone on the path, so it is usually left off.
  • No disguise of its own — TUIC has no masquerade website, no obfuscation layer and no port hopping. To the network it is QUIC with TLS, usually with alpn=h3.

Speed under loss: Brutal against BBR

The biggest practical difference is how each one reacts to lost packets. Classic algorithms such as cubic and new_reno read every loss as congestion and slow down. BBR measures the line's real bandwidth and delay instead and slows down much less. Brutal goes furthest: with a set speed it doesn't slow down at all, it resends more.

So on a lossy line, with an honest speed set, Hysteria2 often holds the higher speed. TUIC with bbr is the gentler choice: it adapts to what the line gives and shares it with other traffic. Hysteria2 without a set speed also uses BBR, and then the difference comes down to the implementation and the network. Measure both on your own line rather than trusting other people's numbers.

Disguise and blocking

  • QUIC is ordinary traffic — HTTP/3 sites use it every day, so a QUIC connection to port 443 doesn't stand out by itself.
  • A stranger who knocks — Hysteria2 answers as a website when masquerade is set up; TUIC has no such face.
  • QUIC itself is blocked, UDP passes — Hysteria2 with Salamander may still get through; TUIC has nothing similar.
  • One long UDP flow gets throttled — Hysteria2's port hopping helps; TUIC stays on one port.
  • UDP is closed entirely — neither works. You need a TCP profile, such as VLESS Reality.
  • The server's IP is blocked — no protocol helps; only another server.

Hysteria2 and TUIC side by side

  • Transport

    Hysteria2QUIC over UDP

    TUIC v5QUIC over UDP

  • Link

    Hysteria2hysteria2:// or hy2://

    TUIC v5tuic://

  • Login

    Hysteria2A password, or names with passwords

    TUIC v5A UUID and a password

  • Speed control

    Hysteria2Brutal with a set speed, BBR without

    TUIC v5cubic, new_reno or bbr, by choice

  • A stranger who knocks

    Hysteria2Masquerade: a website, files or text

    TUIC v5No masquerade

  • Obfuscation

    Hysteria2Salamander, optional

    TUIC v5None

  • Port hopping

    Hysteria2Yes

    TUIC v5No

  • UDP inside the tunnel

    Hysteria2Built in

    TUIC v5native or quic mode

  • Certificate

    Hysteria2Needed; the server can obtain a real one by itself

    TUIC v5Needed

  • Programs that speak it

    Hysteria2Hysteria2's own, sing-box, recent Xray

    TUIC v5TUIC's own, sing-box; not Xray

  • In Veli

    Hysteria2Computer and Android

    TUIC v5Computer only

Which one to pick

  • A service gives you a link — use it: the server decides the protocol.
  • Lossy mobile data and you know your line's speed — Hysteria2 with an honest speed set.
  • QUIC is blocked but UDP passes — Hysteria2 with Salamander.
  • A network that throttles one long UDP flow — Hysteria2 with port hopping.
  • A lean protocol with a standard congestion control that shares the line fairly — TUIC with bbr.
  • Your own server set up by hand — Hysteria2 is simpler: an official script and a built-in certificate. A TUIC server is configured by hand, in the TUIC server program or in sing-box.
  • UDP doesn't get through at all — neither; keep a VLESS Reality profile over TCP next to them.

In Veli

Both links in one field, Hysteria2 on the phone too

In Veli, hysteria2:// (or hy2://) and tuic:// links go into one field: Profiles → Add, paste the link and press “Continue”. On a computer both connect on Windows, macOS and Linux and run on the sing-box module, which the app offers to install the first time; rules by app and site in Apps and sites work on both. On Android Hysteria2 connects and TUIC doesn't, and the app says so right away. Paste a Hysteria2 link whole: the Salamander password and the port range are part of it.

To compare the two, run Diagnostics → Speed on each profile at the same place and time: past measurements are kept. Keep a TCP profile next to them, since on a network without UDP neither connects, and on a computer turn on Settings → Connection → “Fallback servers”: it is off from the start, and once on, it moves to the fastest of the other profiles after three failed attempts. The app installs neither on your own server: Hysteria2 is set up by hand with the official script, as the guide at /guides/hysteria2-server/ shows, and added by its link. TLS fragmentation in Settings → Security leaves both alone.

FAQ

Is Hysteria2 faster than TUIC?

On a lossy line with an honest speed set, Hysteria2's Brutal usually holds more speed. Without a set speed it uses BBR, as TUIC can, and the difference is small. Measure both on your own network.

Does TUIC have obfuscation like Salamander?

No. TUIC has no obfuscation layer and no masquerade of its own: to the network it is QUIC with TLS.

What is udp_relay_mode in TUIC?

How UDP is carried. native sends each packet as it is, like UDP, with little overhead; quic puts packets in QUIC streams, so nothing is lost, but there is more overhead.

Why don't Hysteria2 and TUIC connect on some networks?

That network blocks or throttles UDP, and both run over UDP only. Use a TCP profile such as VLESS Reality there.

Does TUIC work on Android in Veli?

No: in Veli TUIC connects on Windows, macOS and Linux. On Android use Hysteria2, which connects there.

Hysteria2 and TUIC in one list

Paste hysteria2:// and tuic:// links into Profiles → Add and compare them with Diagnostics → Speed.