What a VPN connection consists of
Every VPN has three jobs, and protocols differ in how they do them:
- Recognise each other. The server must make sure it knows the client, and the client that the server is genuine.
- Encrypt the data so that it cannot be read or altered on the way.
- Deliver the data: over UDP, over TCP or inside another protocol such as HTTPS.
The last item is called the transport. In newer protocols the protocol and the transport are chosen separately: the same data can take different paths.
Classic VPN protocols
These work at the network layer: they create a virtual network interface and carry whole IP packets.
- OpenVPN: mature and flexible, over UDP or TCP.
- IKEv2/IPsec: built into operating systems, copes well with a change of network.
- WireGuard: minimal and very fast, UDP only. There are variants with a changed packet format, such as AmneziaWG.
- L2TP/IPsec, SSTP, PPTP: old protocols; PPTP is considered insecure and should not be used.
Protocols over TLS
This family grew out of proxy protocols: they carry connections rather than packets, and are meant to run inside ordinary TLS on port 443, the same as secure websites.
- Shadowsocks: a lightweight protocol with its own encryption.
- VMess: the protocol of the V2Ray project.
- Trojan: a simple protocol inside TLS.
- VLESS: the lighter successor of VMess, usually used with REALITY.
They also have a choice of transports: TCP, WebSocket, gRPC, XHTTP. These protocols are implemented by the open-source cores Xray and sing-box.
QUIC-based protocols
QUIC is the transport over UDP that HTTP/3 runs on. Hysteria2 and TUIC are built on it: they give low latency and tolerate packet loss well, but like everything on UDP they depend on how the network treats UDP.
Tunnels inside other protocols
VPN data can also travel inside protocols made for other purposes:
- An SSH tunnel: inside SSH, the protocol for managing servers. It carries TCP only.
- A DNS tunnel: inside DNS queries. Very slow, but DNS is available on almost every network.
- An RTSP tunnel: inside RTSP, the video streaming protocol of IP cameras and media servers. Faster than a DNS tunnel, but like SSH it is TCP inside TCP.
How to choose a protocol
- Speed and low latency on a network where UDP passes freely: WireGuard or the QUIC-based protocols.
- Working on any network, hotel and corporate ones included: protocols over TLS on port 443, such as VLESS.
- No apps to install: IKEv2, built into the system.
- A reserve channel for when the rest works badly: tunnels over SSH or DNS.
The most convenient case is not having to choose: the app supports several protocols and picks a suitable one itself.
Protocols in StayReady
The StayReady apps for Windows, macOS, Linux and Android have two protocols. VLESS travels over HTTPS (TLS) with REALITY, over HTTP/2, over an SSH tunnel, over a DNS tunnel or over an RTSP tunnel. StayReady Data Transport, the service's own protocol, travels over WebSocket, over UDP or over HTTP/2. The XHTTP transport is in development; WireGuard, OpenVPN and IKEv2 are not used for the connection to StayReady servers.
With Automatic the app connects the main way and picks the server itself. The full list with statuses is on the Why StayReady page; the apps are on the download page.
Common questions
Which VPN protocol is the fastest?
On a network with no limits on UDP it is usually WireGuard and the QUIC-based protocols. More often, though, speed is limited by the server and the line rather than by the protocol.
Which VPN protocol is the most secure?
All modern protocols, WireGuard, OpenVPN, IKEv2 and VLESS with TLS 1.3 or REALITY, use strong encryption. Only the outdated PPTP is considered insecure.
What is the difference between a protocol and a transport?
The protocol defines what is carried between client and server and how; the transport is the way that data gets there: over UDP, over TCP, inside HTTPS, SSH or DNS.
Do I have to choose a protocol by hand?
Usually not. A good app picks a suitable option itself; a manual choice is needed only when the connection is unstable on a particular network.
Which protocols does StayReady support?
VLESS with REALITY (over HTTPS, an SSH tunnel or a DNS tunnel) and its own StayReady Data Transport (over WebSocket or UDP). Download StayReady.
Updated: November 15, 2026