FlClash Get FlClash

Hysteria2, TUIC and Reality: what's the difference

Half your nodes say hy2, half say reality. Choose by your network. No cryptography needed.

Published , about 3 min

The small print after a node's name is how client and server talk. The goals are the same: get your data across, don't get noticed, don't be slow. Three common protocols each bet on a different one.

At each end are your device and a machine like this. The network between is the variable.
At each end are your device and a machine like this. The network between is the variable. Image: Derrick Coetzee / Wikimedia Commons, CC0

No theory, one judgement: does your network let UDP pass well? Yes: the first two. No: Reality.

In one table

Hysteria2TUICVLESS + Reality
Runs overUDP, on QUICUDP, on QUICTCP inside TLS
Strong atFull speed despite lossLow delay, quick connectsLooking like a normal site
Weak atNetworks that limit UDPSameSlows down with loss
BatteryHigherHigherLow

Hysteria2: ignores loss

TCP slows down when packets go missing, thinking the road is full. Hysteria2 sends at the bandwidth you tell it and resends what was lost. On busy evenings and ocean crossings the brute force pays off.

Be honest about the bandwidth. If your line does 200, write 200. Writing 1000 only clogs your own link.

- name: HY2
  type: hysteria2
  server: example.org
  port: 443
  password: your-password
  sni: example.org
  up: "30 Mbps"
  down: "200 Mbps"

Leave out up and down and it uses a gentler algorithm. The documentation is at v2.hysteria.network.

TUIC: less waiting

TUIC is also built on QUIC and aims to save round trips. After one handshake, later requests go straight out. Pages with many small files feel snappier. It doesn't push for bandwidth and uses ordinary congestion control.

Turn on TUN for games, so UDP goes through the proxy.

VLESS + Reality: looks like someone else

Reality is a twisty idea. To an observer you're visiting a real, well-known site, with that site's real certificate. Only a client with the right key is shown another way in.

It uses TCP 443 among ordinary HTTPS and survives well on office and campus networks. The price is TCP's old habit of slowing down with loss.

Choosing

  1. Home broadband, slow at nightHysteria2 first
  2. Office, school, hotel Wi-FiReality first, since UDP is often limited there
  3. Mobile dataTry each. Some carriers throttle UDP: fast at first, then a drop
  4. GamesTUIC or Hysteria2, and turn on TUN or games won't use the proxy

A rough test for UDP limits: from one provider and region, take one hy2 and one reality node and download the same file. If hy2 is clearly slower, it's UDP.

Take one of each from the same region, test delay, then compare the same download.

Are the older ones still fine

Shadowsocks, Trojan and VMess are all in use, and many providers still rely on them. Newer doesn't mean faster. The route sets the ceiling, so don't change providers for a protocol name.

Judging UDP

iperf3 -c your-server -u -b 50M -t 15 -R

Under 1% loss is healthy; over 5%, or a sudden drop after seconds, is limited; nothing is blocked. Without a server download the same file by hy2 and reality in one region. At home, office and mobile it differs, so many make a fallback group with hy2 first.

By case

CaseHysteria2TUICReality
4KBestGoodDepends on loss
PagesGoodQuickestGood
GamesGoodGoodA bit later
CallsGoodGoodFair
Large filesFastestFastSteady
Office, schoolOften limitedOften limitedSteadiest
Phone idleCostsCostsSaves

Bandwidth in Hysteria2

Yours, not the node's. Measure without a proxy and enter about nine tenths, such as down: 200 Mbps, up: 30 Mbps. Too much causes loss for the whole home. On mobile leave it empty.

Port hopping

Some networks slow one UDP port. ports: 20000-30000 moves between them, with the server's help.

Reality does not connect

The clock, first of all. Then client-fingerprint chrome, firefox, safari; then update the subscription. Where only listed names pass, the borrowed one may not be listed.

On the server

Hysteria2 and TUIC want a certificate and a UDP port, Reality a suitable site. All three on one machine with different ports is common.

Also asked

Does FlClash support all three?

Yes, through the mihomo core. Import the subscription and they work.

Every hy2 node times out, others are fine.

Your network is probably blocking UDP. Test again on a phone hotspot.

VLESS with XHTTP or gRPC?

Transports, mostly for CDN.

Saving battery?

TCP nodes when idle, a manual group to switch.

hy2 tests fail but it works?

Another test address.

Read next

On the same line

Key terms: Hysteria2 vs TUIC, what is VLESS Reality, fastest proxy protocol