Proxy protocols and VPN protocols: the difference
A VPN protocol carries IP packets. WireGuard, OpenVPN and IKEv2 give the system a virtual network adapter, and whatever an app sends goes into the tunnel as packets. What enters the tunnel is decided by IP address: in WireGuard that is the AllowedIPs line of the config.
A proxy protocol carries connections. VLESS, VMess, Trojan, Shadowsocks, Hysteria2 and TUIC open a stream for each connection and put its destination, an IP address or a domain name plus a port, in the first bytes. The server then connects there on the app's behalf. Because the client knows the domain, proxy cores such as Xray, sing-box and Mihomo can route by site and by app, not only by IP.
On a phone or a computer the line is blurred: a proxy client switches on a TUN adapter and catches all traffic too, which is why apps call both kinds a VPN. The difference shows elsewhere. Operating systems and routers often speak VPN protocols out of the box (IKEv2 in Windows, macOS, iOS and Android, WireGuard in the Linux kernel), while proxy protocols need a core like Xray or sing-box and usually arrive as a single link: vless://, trojan://, ss://.
Transport and disguise layers: TLS, Reality, QUIC
The name in a link often names only the inner layer. VLESS is a short request header with no encryption of its own by default (encryption is none); privacy and disguise come from the layer underneath. The same VLESS can run inside TLS, inside Reality or inside HTTP requests, and to a network each of these looks different. These are the layers you meet:
- TLS with your own domain. Trojan, VLESS and VMess can sit inside ordinary TLS with the server's own certificate, and an observer sees HTTPS to that domain. A Trojan server hands anything without the right password to a fallback, by default a local web server, so a prober gets a web page.
- Reality. The server borrows the TLS handshake of somebody else's site, so you need no domain or certificate. A client that fails authentication is passed through to that real site, and a prober ends up talking to the site itself.
- WebSocket, gRPC, XHTTP. VLESS, VMess and Trojan can also ride inside HTTP requests, which a CDN forwards like any web traffic. XHTTP can split upload and download into separate requests; Cloudflare passes gRPC only after its gRPC switch is turned on.
- QUIC. Hysteria2 and TUIC run on QUIC over UDP, the transport of HTTP/3. Hysteria2 logs in with an HTTP/3 request; anything else gets a web server's answer,
404 Not Foundby default or a site you set undermasquerade. - Full encryption from the first byte. Shadowsocks, and VMess without TLS, send bytes that look random from the start. Having nothing readable is a sign in itself: from November 2021 the Great Firewall blocked such connections to popular hosting ranges by first-packet entropy and the share of printable bytes (Wu et al., USENIX Security 2023).
- A real handshake, then your data. ShadowTLS performs a genuine TLS handshake with a chosen site and then carries an inner protocol such as Shadowsocks. AnyTLS and NaiveProxy pad their first packets so that a TLS handshake carried inside TLS does not give itself away by its sizes.
- Changed packets. AmneziaWG is WireGuard with junk packets before the handshake, random prefixes on messages and changed header values. Set all of them to zero and it is plain WireGuard again.
Speed, packet loss and UDP
On a clean line the distance to the server and the server's load matter more than the protocol. WireGuard adds little: a 16-byte header and a 16-byte tag per packet over UDP, and on Linux it runs in the kernel. AmneziaWG keeps the same encryption and adds junk packets at the start of a session and, if set, a few random bytes per packet. VLESS, Trojan, VMess and Shadowsocks over TCP come close on a good link. OpenVPN traditionally encrypts in user space and costs more CPU, which shows on routers; since version 2.6 it can hand the data channel to a kernel driver (DCO).
Packet loss changes the picture. Over TCP, a lost packet stops everything behind it on that connection until it is resent. A proxy that packs many app connections into one TCP connection (Xray Mux, sing-box multiplex, AnyTLS) stalls them all together. OpenVPN in TCP mode runs the apps' own TCP inside the tunnel's TCP, and its manual says it is designed for UDP and copes worse with unreliable or congested links over TCP.
Hysteria2 and TUIC run on QUIC. Each connection gets its own QUIC stream, so a lost packet delays only that stream. When the client config sets a bandwidth, Hysteria2 uses its own Brutal congestion control, which holds that rate instead of slowing down at each loss; without it, Hysteria2 uses BBR.
UDP is also the weak spot. Some networks drop UDP or cap its rate, and then Hysteria2, TUIC, WireGuard and AmneziaWG suffer first while VLESS, Trojan or NaiveProxy over TCP keep working. QUIC gets filtered too: from April 2024 the Great Firewall decrypted QUIC Initial packets and blocked connections by server name (Zohaib et al., USENIX Security 2025). One profile over TCP and one over UDP cover both cases.
Why a protocol stops working
When a profile that worked yesterday fails today, the cause is usually one of these. Where a study describes the method, it is named in the row.
WireGuard or OpenVPN fails, the rest of the internet works
Likely causeThe handshake was recognized. WireGuard's first messages have fixed types and sizes (148 and 92 bytes); a study at a million-user ISP identified over 85% of OpenVPN flows (USENIX Security 2022)
What to tryAmneziaWG with masking on, or a protocol that looks like HTTPS
A Shadowsocks server works for a while, then its port goes dead
Likely causeActive probing: the filter connects to the server itself, replays recorded data and watches the reply (IMC 2020)
What to tryShadowsocks 2022, which rejects replays, or a protocol that shows probes a real website: Reality, Trojan, NaiveProxy
Shadowsocks or VMess without TLS fails on a strict network, TLS profiles work
Likely causeFully encrypted traffic caught by first-packet entropy (USENIX Security 2023)
What to tryThe same protocol over TLS, or one inside a real TLS handshake
A TLS proxy gets cut after a while, with no probing seen
Likely causeTLS-in-TLS: the inner TLS handshake shows through by its sizes and round trips (USENIX Security 2024)
What to tryVLESS with the Vision flow, AnyTLS or NaiveProxy, which pad the inner handshake; the 2024 study found padding alone limited
Everything over UDP is slow or silent, TCP works
Likely causeThe network drops or rate-limits UDP
What to tryA profile over TCP: VLESS, Trojan, NaiveProxy or OpenVPN in TCP mode
Hysteria2 or TUIC fails only with some server names
Likely causeQUIC filtered by the server name in its first packet (USENIX Security 2025)
What to tryHysteria2 with Salamander obfuscation, which scrambles every packet into random-looking bytes
VMess fails while other protocols on the same server work
Likely causeThe clocks differ: VMess rejects a client whose time is more than 120 seconds off
What to tryTurn on network time sync on the device and the server
Trojan, Hysteria2 or VLESS over TLS fails with a certificate error
Likely causeThe certificate expired or does not match the name in the link
What to tryRenew it; Reality needs no certificate of its own