Skip to content

When a VPN app asks you to pick a protocol, two names come up more than any others: WireGuard and OpenVPN. Both create an encrypted tunnel between your device and a VPN server. Both are trusted and widely used. They go about the job in quite different ways, which affects speed, battery use, compatibility and how easy they are to configure.

This article compares them in plain language. It describes the protocols in general; it does not say which ones any particular service uses. If you are new to the term, start with what is a VPN protocol?.

What a protocol does

A VPN protocol is the set of rules your device and the VPN server follow to set up the tunnel: how they prove who they are, how they agree on encryption keys and how they package data in transit. The protocol decides the encryption building blocks, how reconnects work and how much processing the device has to do. For a plain-language look at the encryption side, see what is VPN encryption?.

WireGuard in brief

WireGuard is a newer protocol, described at wireguard.com and in its published whitepaper. Its design goals are simplicity and a small attack surface.

  • Small codebase. The reference implementation is much smaller than most older VPN software. Less code is easier to read, review and audit.
  • Fixed, modern cryptography. WireGuard uses a limited set of current algorithms rather than letting you pick from a long menu. That removes the risk of choosing a weak combination, but it also means that if one algorithm ever needed replacing, the protocol itself would have to be updated.
  • UDP only. It runs over UDP, not TCP.
  • Fast reconnects. The handshake is short, and it handles switching networks, such as Wi-Fi to mobile data, smoothly. That suits phones.
  • Public keys as identity. Peers are identified by key pairs, a bit like SSH keys. This is efficient, but features such as dynamic address assignment and user management are handled outside the protocol, by the VPN provider's tooling.

OpenVPN in brief

OpenVPN has been used for many years and has a large community, documented at the OpenVPN community resources.

  • Mature and flexible. It is highly configurable, with many options for authentication, ciphers and routing.
  • Based on TLS. It uses TLS to establish keys, the same family of technology that protects HTTPS websites. TLS 1.3 is defined in RFC 8446.
  • UDP or TCP. It can run over either. UDP is usually faster, but TCP on port 443 can look like ordinary web traffic and sometimes passes networks that restrict other traffic.
  • Large codebase. More features mean more code and more configuration to get right.
  • Broad support. Clients exist for most operating systems, routers and many other devices.

Side-by-side comparison

WireGuard OpenVPN
Age Newer Long established
Code size Small Large
Cryptography choices Fixed, modern set Many options (TLS-based)
Transport UDP UDP or TCP
Typical performance Often fast and light Good, usually a little heavier
Roaming between networks Handled smoothly Works, may take longer to recover
Configuration Simple, but manual key management Flexible, more settings to understand
Works on restrictive networks Can be blocked if UDP is filtered TCP mode helps in some cases
Device and router support Wide and growing Very wide

Differences in practice depend heavily on implementation and on the network between you and the server.

Speed, battery and stability

WireGuard's compact design means less work per packet, which often helps on phones and in battery use. Many people notice quicker connection setup and fewer problems when switching between Wi-Fi and mobile data. OpenVPN can be just as fast on a good connection, but is more sensitive to settings and device power, and it may take longer to reconnect.

A plain example: you are on a train. Your phone hops between mobile towers and sometimes loses signal for a few seconds. A protocol with a quick handshake and tolerant reconnects tends to feel smoother here. At a desk on stable home fibre, you may not feel any difference at all.

Speed with a VPN also depends on server distance, load and your own network. Those factors are explained in why internet speed changes with a VPN. Switching protocol will not fix a congested server.

Security: what the evidence actually says

Both protocols are considered sound when configured properly and kept up to date. What matters is:

  • Using current software versions. Fixes arrive through updates.
  • Using strong settings. OpenVPN gives more rope, which means a poor configuration can weaken it. WireGuard's fixed choices limit this.
  • Careful review. WireGuard's smaller size makes review easier. OpenVPN benefits from many years of scrutiny.
  • Everything around the protocol. Key handling, server security and the operator's policies affect your risk as much as the tunnel format does. Neither protocol can protect you from a careless or untrustworthy operator, or from threats that happen outside the tunnel.

Beware simple claims such as "protocol X is unbreakable". Security comes from design, implementation and operation together.

How the tunnel travels: TCP, UDP, NAT and keepalive

Most comparisons stop at "which is faster". The more useful question is how each protocol behaves on a messy real network, such as a hotel, a phone on a train or a home router that forgets connections. A few plain-language ideas explain most of that.

OpenVPN TCP vs UDP

OpenVPN can carry its tunnel over UDP or over TCP, and the choice matters. UDP simply sends packets and does not wait for confirmation. TCP numbers every packet, waits for acknowledgements and re-sends anything that went missing.

Because much of what you do inside a VPN, such as loading websites, already uses TCP, running OpenVPN over TCP means TCP carried inside TCP. This is the well-known TCP-over-TCP problem. When a packet is lost, both layers notice and both try to repair it, on different timers. The result can be stalls, bursts of delay and lower throughput, especially on a lossy mobile or Wi-Fi link. With UDP as the outer layer, only the inner connection does the repair, which is why UDP is usually the better default.

So why does TCP mode exist? Some networks only allow web-style traffic, and TCP on port 443 looks like ordinary HTTPS to a simple filter. It can be a useful fallback when UDP fails to connect, but a fallback is what it is. There is no guarantee it works on every network, and it should not be used to get around rules that a network owner has set.

Roaming and NAT traversal

Your phone or laptop usually sits behind a router that performs network address translation (NAT). Many devices share one public address, and the router remembers which internal device started which conversation. For UDP, that memory is kept only for a limited time and is dropped if nothing flows. If the router forgets, replies from the VPN server can no longer find your device, and the tunnel seems to freeze even though both ends are fine.

NAT traversal is the general name for techniques that let a connection keep working through this translation. In a VPN, the device normally opens the connection outward, which already helps, because the router creates a mapping for the reply path.

Roaming is a related problem. When you move from Wi-Fi to mobile data, your device gets a new local address. WireGuard identifies a peer by its key rather than by its address, so when valid packets arrive from a new address, it simply updates where to reply. In practice WireGuard roaming often feels seamless. OpenVPN can also recover, but it typically needs to detect the change and renegotiate, which may take noticeably longer.

Keepalive in plain terms

A keepalive is a tiny packet sent every so often to show that the tunnel is still in use and to refresh the router's NAT memory. WireGuard offers a setting called persistent keepalive for this, and the WireGuard documentation commonly suggests 25 seconds for devices behind NAT. OpenVPN has its own keepalive option that pings the other side and restarts the tunnel when replies stop.

The trade-off is small. Very frequent keepalives use a little battery and data, and too-rare ones let NAT mappings expire. If you notice a VPN that works for a minute and then goes quiet until you open an app, a missing or too-long keepalive is a common cause.

Performance tuning basics

Most apps hide advanced settings, which is fine. If your app does let you choose, these basics cover most real cases:

  1. Prefer UDP unless the connection fails on that network.
  2. Pick a nearby server where the app lets you. Distance adds delay.
  3. Leave encryption and MTU settings alone unless you know why you are changing them. A wrong packet size (MTU) can cause stalls or failed page loads, and OpenVPN has an option to adjust the maximum segment size if that happens.
  4. Update the app and the operating system. Many performance fixes arrive that way.
  5. Fix the local link first. A weak Wi-Fi signal slows any VPN. Move closer to the router or try mobile data to compare.

Running a fair speed test

A WireGuard speed test or an OpenVPN test is only meaningful when it is fair. Test without the VPN first to get a baseline. Then test each option at the same time of day, to the same test server, three times each, and compare the median, not the best result. A single run mostly measures noise. A protocol that is a few percent slower but never drops is usually better for calls and video than one that is fast and unstable.

How to choose

  1. Use what your app offers. Most people only choose between a few options inside an app. Check your My Pass page or app for what is available, since not every protocol is offered everywhere.
  2. Start with the default or the modern option. If WireGuard is available, try it first for everyday use.
  3. Switch if something fails. If the connection will not establish on a particular network, such as an office or school network, try another protocol or transport.
  4. Test and compare. Run the same speed test at the same time of day on each option and keep the one that is steady, not only the fastest on one run. See how to check if your VPN is working.
  5. Keep things updated. App updates matter more than protocol choice.

Limits and what to watch for

  • Protocol is only one factor. Server quality, location and your own device matter more than most people expect.
  • Benchmarks vary. Published comparisons often use ideal conditions. Treat them as hints, not promises.
  • Do not chase a name. A well-run service using either protocol beats a badly run one using the other.
  • Some networks filter VPN traffic. If a protocol is blocked, trying another may help, but there is no guarantee that any protocol works on every network.
  • Mixed terminology. Some apps use brand names for protocols or modes. Check what the app means rather than assuming.

Summary

WireGuard is small, modern and quick to reconnect; OpenVPN is mature, flexible and widely supported, with TCP as an extra option. Both are respected, and your experience depends on configuration, servers and your network at least as much as on the name. Use what your app offers, test on your own connections and keep your software up to date.

To see how a prepaid VPN pass works before you decide, the how it works page explains the process, and the Help Center has guides for setting up your devices.

Frequently asked questions

Is WireGuard faster than OpenVPN?

WireGuard is designed to be lean and often performs well, especially on mobile devices and fast connections, but real speed depends on the server, distance, your network and the device. Do not expect one protocol to be faster in every situation.

Is OpenVPN still safe to use?

Yes. OpenVPN is mature, widely reviewed and uses the TLS family of protocols and standard ciphers. Safety depends on a sound configuration and up-to-date software more than on the protocol name.

Which protocol should I choose?

If your VPN app lets you choose, use the one that connects reliably and performs well on your network. WireGuard is a sensible first try for everyday use, and OpenVPN is a reliable alternative if you hit problems.

Does this article say which protocols XPASS supports?

No. This article explains the protocols in general. The supported connection methods for your pass are shown on your My Pass page.

Should I use OpenVPN over TCP or UDP?

UDP is usually the better default because TCP inside a TCP-based tunnel can stall and slow down when packets are lost. TCP mode is mainly a fallback for networks where UDP cannot connect, and it is not guaranteed to work everywhere.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

VPN Basics

What Is a VPN Protocol?

A VPN protocol sets the rules for how your device and a VPN server connect and protect traffic. Here is what that means in plain language, with the main trade-offs.

9 min read

VPN Security

What Is VPN Encryption?

VPN encryption scrambles your data between your device and the VPN server. Here is how keys, ciphers and the handshake work, and what encryption cannot do.

10 min read

VPN Basics

Why Internet Speed Changes With a VPN

Using a VPN adds distance, encryption and another network to your path, so speed often changes. This guide explains why, how to measure it properly and what to try when it feels slow.

9 min read