UDP vs TCP: what's best for your VPN speeds?

Network cable
(Image credit: Shutterstock)

You've installed a VPN. It's not quite as fast as you'd like. You could switch to another service, but maybe there's a simple speedup trick you can try first.

Open your VPN app's Settings box and look for the section with any protocol options (it's usually called something like Protocol, Connection or Advanced.)

If your app is using bog-standard OpenVPN - or even some proprietary protocols, such as ExpressVPN's Lightway -  you might find it gives you both UDP and TCP options.

Providers who give you this choice usually claim UDP is faster. Great! Except they immediately spoil the good news by telling you it's less reliable. So, what is this switch actually doing? What problems might it cause, and when, if ever, should you use it?


What is TCP, anyway?

TCP stands for Transmission Control Protocol, a set of rules which defines how computers communicate across networks. As the TCP part of TCP/IP, it's the system you use every time you go online to access websites and other internet resources.

TCP's big advantage is its reliability. The technology works by maintaining a connection to the destination server, allowing it to acknowledge the arrival of new data or ask for lost information to be resent. 

And if chunks of data don't arrive in the order they were sent (a potential issue in some network situations), that's not a problem. TCP has a built-in method to detect the problem and reassemble your data into its original state.

UDP

(Image credit: Shutterstock)

What is UDP?

UDP (User Datagram Protocol) is a more lightweight technology than TCP. It also works with IP, but doesn't include most of TCP's error checking. There's no persistent connection, for instance - it just sends and receives packets as individual chunks. If there's a problem, a server can't say 'try again, please.' And if the packets are in the wrong order, well, that's your problem. UDP doesn't care.

Okay, this doesn't sound ideal, but there are plus points, too - especially on the performance side. With no server connection to establish, VPN connect times can be much faster. And throwing out 'received data' acknowledgements and other features cuts down on overheads, again working to improve speeds.

Put it all together and UDP can work well, especially with streaming with a VPN, gaming with a VPN, and any applications where speed and low latency is more important than error checking.

What problems might UDP cause?

Most VPNs are frustratingly vague about potential UDP issues. They might tell you that switching to UDP 'could affect reliability', for instance, but that's about it.

There's a good reason for this, though: there are so many variables involved that it's impossible to be more specific. You might see different results depending on your distance from a server, for instance. Or the server load. Or the routing to the server. Or the network quality, or the network load. There's no definitive answer here - it'll be different for everybody.

UDP problems you might see include more difficulty connecting to VPN servers, or noticeably reduced speeds when you are connected. These might happen only rarely, though, and as they can be caused by many other factors, you shouldn't immediately assume UDP is the problem.

The best approach is just to try it and see. If there's a speed boost, great. If you see new problems, just switch back to TCP and carry on as normal.

ExpressVPN apps support the UDP and TCP protocols

(Image credit: ExpressVPN)

Pick the best VPN protocol first

When you're looking to optimize VPN speeds, your first priority is to choose the fastest VPN protocol your app supports. (Some protocols and apps give you a TCP and UDP choice, others don't, but that's something to think about later.)

The app normally defaults to whatever protocol the provider thinks works best. If you've not made any changes, leave the settings as they are.

If you're unsure, we'd normally choose the provider's own protocol, if it has one (Lightway with ExpressVPN, for instance, or NordLynx with NordVPN.)

If your VPN app supports WireGuard, we'd try that, next. OpenVPN follows close behind, then IKEv2, and if you can't use anything we've mentioned so far, we'd just accept the app's default settings. And if you're not sure which provider to turn to in your pursuit for the highest speeds, then a five-minute read of our fastest VPN guide should help.

Can (and should) I use UDP?

Your choice of VPN protocol defines whether you'll get a UDP option in your app's Settings box.

Select OpenVPN, for instance, and you'll often get a UDP or TCP choice. Some custom protocols support TCP, too. ExpressVPN's Lightway is a great example, and you'll find both 'Lightway - UDP' and 'Lightway - TCP' options in its Protocol settings box.

WireGuard and protocols based on WireGuard, like NordLynx, don't give you a UDP option. But that's okay, because WireGuard already uses UDP by default. (In fact, it can't use TCP at all.)

UDP isn't available with protocols such as IKEv2, L2TP, SSTP or PPTP.

If you do see a UDP option, and it's not available by default, just try it. Flip the switch, see if you notice any difference.

But keep in mind that this isn't just about speed gains. If your chosen protocol uses UDP right now, and you're having reliability issues - long connection times, connection failures, slow speeds - then maybe the technology isn't right for you. Switch to TCP if you can, or a protocol which only uses TCP (IKEv2, L2TP), and it just might make all the difference.

Mike Williams
Lead security reviewer

Mike is a lead security reviewer at Future, where he stress-tests VPNs, antivirus and more to find out which services are sure to keep you safe, and which are best avoided. Mike began his career as a lead software developer in the engineering world, where his creations were used by big-name companies from Rolls Royce to British Nuclear Fuels and British Aerospace. The early PC viruses caught Mike's attention, and he developed an interest in analyzing malware, and learning the low-level technical details of how Windows and network security work under the hood.

Read more
ExpressVPN Lightway Protocol
ExpressVPN Lightway: Everything you need to know about the protocol
An illustration of a mobile phone running a VPN
How does a VPN work?
Split tunneling graphic
What is split tunneling and when should you use it with your VPN?
A world map made up of fiber optics
How often should I switch VPN servers?
Someone using a VPN on a PC.
How to buy a VPN – a jargon-free guide
tiktok VPN
The best TikTok VPN
Latest in VPN Services
ExpressVPN apps running on a laptop and mobile during TechRadar's testing
What's new in Lightway 2.0? Here are the 4 biggest changes I'm excited for
A VPN running on a mobile device
A new era for VPN testing? ATMSO publishes the first-ever testing standards in an "important milestone"
Aircove router, smartphone and laptop with ExpressVPN app on screen on a wooden table
ExpressVPN's Aircove becomes the first device equipped with Lightway 2.0 – and the upgrades don't stop there
ExpressVPN Lightway protocol in Rust – promo image
ExpressVPN's latest upgrade to Lightway hopes to create "the VPN protocol of the future"
Screenshot of Obscura VPN website
Obscura VPN promises to “set the standard for the next-generation of VPNs”
Mullvad VPN working on a laptop
Mullvad VPN lands on Windows ARM devices
Latest in Versus
Panasonic Lumix S1R II alongside Panasonic Lumix S5 II on a split green / orange background
Panasonic Lumix S1R II vs Lumix S5 II: time to upgrade?
Logitech Z407 and Creative Pebble Plus desktop speakers against a TechRadar background
Logitech Z407 vs Creative Pebble Plus: Neither of these budget speakers sound cheap, but which go best with your setup?
Two gaming monitors, Gigabyte M32UC on the left side vs the Corsair Xeneon 32UHD144 on the right against a TechRadar background
Gigabyte M32UC vs Corsair Xeneon 32UHD144: Which 4K display is right for you?
iPhone 16e and iPhone 16 on orange background
iPhone 16e vs iPhone 16: which model is right for you?
Windows 11 Start menu layout choices: Grid view
Windows 11 vs Linux for business: which operating system should you embrace?
A phone sitting on a laptop keyboard with the Microsoft Outlook logo on the screen.
Gmail vs Outlook for business: which email system is right for your organization?