انتقل إلى المحتوى
Vunio

VLESS vs VMess: How They Work and How They Differ

VLESS and VMess both come from the V2Ray project, but they protect traffic differently. How each one authenticates and encrypts, and when each makes sense.

VPNSocket Tunnel Xبقلم Vunio Teamتاريخ النشر مدة القراءة: 5 د
في هذه الصفحة

هذا المقال غير متوفر بالعربية بعد، لذا يظهر بلغته الأصلية، وهي الإنجليزية.

VLESS and VMess are two proxy protocols from the V2Ray family. Both carry your traffic between an app and a server, and both identify users with a UUID. The difference lies in what each protocol does itself and what it leaves to the layers around it: VMess encrypts traffic on its own, while VLESS leaves encryption to TLS. That one design choice explains most of the other differences.

Proxy protocols, not VPN protocols

Strictly speaking, neither is a VPN protocol in the way WireGuard or OpenVPN are. A VPN protocol carries IP packets between your device and a network; VLESS and VMess carry connections from a client to a proxy server. Android apps still give you a VPN-like experience: they capture the phone's traffic through Android's VPN interface and hand it to the proxy client. V2Ray and Xray explained covers the platforms these protocols run on.

How VMess works

VMess was V2Ray's original protocol. The client and the server share a user ID: a UUID, such as 27848739-7e62-4138-9fd3-098a63964b6b.

  • Authentication. In its current AEAD form, the client opens with an encrypted authentication ID, derived from the user ID and containing a timestamp, followed by a request header encrypted with AES-128-GCM. The older MD5-based authentication is deprecated.
  • Encryption. VMess encrypts both its request header and the data. The usual choices are AES-128-GCM and ChaCha20-Poly1305, both authenticated encryption ciphers. In Xray, auto is the default and picks one of the two.
  • Clocks matter. Because authentication contains a timestamp, the client's and server's clocks have to agree. Xray's documentation asks for the system's UTC time to be within 120 seconds of the real time; the time zone doesn't matter.

Since VMess encrypts by itself, its contents stay encrypted even over plain TCP. In practice it's often run inside TLS anyway, which means the data is encrypted twice.

How VLESS works

VLESS came later, as a lighter alternative designed within the V2Ray project. The Xray project, where most of its development now happens, describes it as "a stateless lightweight transport protocol".

  • Authentication. The client sends its UUID in the request header, and the server checks it on every connection.
  • No encryption of its own. In the standard setup, VLESS's encryption setting is none. Security comes from the layer underneath: usually TLS, or REALITY in Xray.
  • No clock dependency. VLESS doesn't put a timestamp in its authentication, so the client's clock doesn't need to match the server's.
  • Less overhead. Without its own encryption pass on top of TLS, it does less work per packet than VMess over TLS.
  • Flows. Xray adds "flows" such as XTLS Vision, which recognises TLS traffic inside the tunnel and avoids encrypting it a second time.

One rule follows from this design: never use VLESS without TLS or REALITY on a network you don't trust. Without that layer, the traffic travels unencrypted.

VLESS vs VMess at a glance

VMessVLESS
OriginV2Ray's original protocolDesigned in the V2Ray project, now developed mainly in Xray
User IDUUIDUUID
EncryptionBuilt in: AES-128-GCM or ChaCha20-Poly1305None of its own; relies on TLS or REALITY
Accurate clock neededYes: within 120 seconds, per Xray's docsNo
OverheadHigher, especially inside TLSLower
Without TLSContents stay encryptedTraffic isn't encrypted
TransportsTCP, WebSocket, gRPC and the other V2Ray/Xray transportsThe same
ExtrasXTLS Vision flow, REALITY (Xray)

Performance: what actually differs

There's no protocol that is always faster. Speed depends far more on the server's location and load, the network path and the transport than on whether you use VLESS or VMess. What you can say is that VLESS does less work per packet, because it adds no encryption of its own on top of TLS. On older or low-power phones that difference can matter a little; on most modern phones, the network is the bottleneck.

Security: what actually differs

  • VMess protects its contents by itself. Its security has had to evolve: the original MD5-based authentication is now deprecated in favour of the AEAD form described above, so old clients and servers should be updated.
  • VLESS is exactly as secure as the TLS or REALITY layer it runs in. With a valid certificate and modern TLS, that's strong, widely reviewed encryption. Without it, VLESS offers no confidentiality at all.

Either way, a proxy protocol protects the link between you and the server. The server still sees where your traffic goes, so it needs to be run by someone you trust.

Which should you use?

  • Setting up a server today? VLESS with TLS, or REALITY on Xray, is the common choice: it's lighter and doesn't depend on clocks.
  • Connecting to an existing server? Use what the server runs. The client has to match it.
  • Stuck with VMess? Make sure both ends use AEAD authentication, not the deprecated MD5 method, and keep your phone's clock on automatic time.

VLESS in Socket Tunnel X

Socket Tunnel X, the Android VPN from SBRK Dev Team, lists servers labelled VLESS-WS-TLS: VLESS carried over WebSocket inside TLS, which is the safe way to run VLESS. It also lists servers labelled V2RAY. The app's listing doesn't name VMess as a feature, so go by the label on each server rather than assuming which protocol it uses. The setup and troubleshooting guide explains how to pick a server.

FAQ

Is VLESS more secure than VMess?

Not by itself. VLESS relies entirely on TLS or REALITY, while VMess has its own encryption. VLESS over properly configured TLS is secure; VLESS without it isn't encrypted at all.

Is VLESS faster than VMess?

VLESS has less overhead, but real-world speed depends mostly on the server, the route and the network. Treat claims that one protocol is always faster with caution.

Why does VMess fail when my phone's clock is wrong?

VMess authentication includes a timestamp. If the clock is too far off (Xray allows 120 seconds), the server rejects the connection. Turn on automatic date and time in Android's settings.

Can I use VLESS without TLS?

It works technically, but the traffic isn't encrypted. Don't do it on any network you don't fully trust.

Sources

شارك هذا المقال

التطبيقات المذكورة في هذا المقال

V2Ray and Xray Explained: Cores, Protocols and Transports

V2Ray and Xray aren't protocols: they're platforms that run protocols like VLESS and VMess over transports like WebSocket. How the pieces fit together, and how the two projects differ.

VPNمدة القراءة: 3 د

Which VPN Protocol Should You Use on Android?

A practical comparison of the protocols in Android VPN and tunnel apps (WireGuard, OpenVPN, VLESS, VMess and SSH): what each is good at, where each struggles, and how to choose.

VPNمدة القراءة: 4 د

تطبيقاتك، على كل شاشة.

مجانية ورسمية، على هاتفك خلال دقيقة تقريبًا وعلى تلفازك في ثلاث خطوات.

رمز Downloader لتطبيق ڤونيو دراما

اكتبه في تطبيق Downloader.