If you use a VPN regularly, you probably know that almost all VPN vendors provide OpenVPN protocol because OpenVPN is a secure and reliable open-source solution.
Both Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are protocols for sending data packets through the internet built on top of the Internet Protocol. They’re also the main transports over which OpenVPN can operate. Both network protocols provide privacy and security.
Many VPN vendors allow users to select which protocol to use. Yes, each has its pros and cons, but choosing which protocol to use depends entirely on your preferences. While neither option outperforms the other in all aspects, you should consider your usage and security needs before choosing the best one.
This article will give you a basic understanding of your options, advantages, and disadvantages, and when to use a particular protocol.
Both protocols enhance privacy and security and are implemented by OpenVPN. TCP is known for being a connection-oriented protocol, providing a stable connection and ensuring the successful delivery of data.
Conversely, UDP operates without establishing a connection, offering quicker transmission speeds than TCP, albeit with reduced reliability. The choice between TCP and UDP depends on individual requirements and preferences.
The article delves into the pros and cons of each protocol, offering detailed insights to help you make a well-informed choice.
TCP is a stateful or connection-oriented protocol that allows communication among devices in a network. Once it takes messages from the application layer, it forwards them to the network after dividing them into packets.
TCP ensures the connection is established and maintained steadily until the transfer of packages is complete. This is why it’s connection-oriented.
Once a packet is received at the other end, the sending end waits for an acknowledgment from the receiving end before sending the following box. This guarantee of data-receiving makes this VPN protocol the most reliable one.
Let’s take a look at the benefits that TCP offers.
Yes, TCP can do the job, but it has some disadvantages you may need to consider.
TCP is the most reliable and most commonly used protocol on the internet. That may be enough reason to choose TCP over UDP.
This is mainly due to the TCP’s error correction and data stream controlling mechanisms. They ensure that the packets the sender sends are received by their intended receivers uncorrupted and in the proper order.
This is what makes the connection error-free.
As mentioned, TCP waits for acknowledgment by the receiver that the packet was received successfully before sending the next one.
In other words, you can rely on TCP to deliver messages successfully. So, TCP may be ideal if you seek a reliable and steady connection.
Because of TCP’s speed issues, you might prefer another protocol over OpenVPN. UDP may be a good alternative because it can omit specific steps in TCP.
Although UDP is another popular internet protocol, it’s used only in specific circumstances. The main difference between UDP and TCP is that UDP has no error correction mechanisms.
UDP is considered stateless or connectionless communication, and no prior communications are needed to set up a connection between the sender and the receiver.
It provides checksums to check data integrity and port numbers to take care of functions at the receiving end of the data — or in this case, a datagram.
Let’s see the various advantages that come with UDP.
Having high speed is good, but at what cost? Now let’s check the disadvantages of UDP.
As should now be apparent, there are consequences of going with a speedy connection with UDP. Unless you’re looking for higher performance and a fast protocol, it might be better to go with TCP.
Unlike TCP datagrams, UDP datagrams contain no sequence number to order the packets received. So users are likely to use other applications and UDP to reorder the data packets.
However, if you’re interacting with real-time services such as gaming, live conferences, and VoIP, switching to UDP is better. That way, it won’t process delayed data, ensuring that you enjoy high performance.
It’s no wonder that some of the fastest VPN vendors out there choose UDP as their default configuration protocol with OpenVPN. Here’s what OpenVPN itself says about the two protocols:
Again, it depends on your requirements.
There’s a tradeoff between reliability and speed. For instance, if speed is your primary concern, UDP is your best option. Streaming HD movies and playing games online are much more manageable with UDP.
If you prefer reliability, then go with TCP. You may experience slower data transmission, but TCP is used with many internet services and therefore trusted by many.
You can also switch to TCP, abandoning the default UDP configurations when you experience connection problems.
However, change ports before hitting your protocol, as the connection type doesn’t cause many connectivity problems but because the ISP is blocking the VPN ports.
The slow transmission in TCP may also depend on how far you are from the VPN server. If you select the VPN server nearest you, the slow connections will drop considerably.
ExpressVPN is by far the best VPN provider in the industry. Like many VPN applications, even ExpressVPN uses OpenVPN by default when the protocol option is “Automatic.” ExpressVPN’s website suggests that users can choose the optimal protocol by changing the settings. This is just a two-step process:
1. Go to Options.
2. Select your preferred protocol.
Running OpenVPN over TCP brings extra advantages as well. This is about how to defeat government censorship with TCP port 443.
Many of us know that some countries, such as China, love to censor the internet and track citizens’ internet traffic. These governments block sites that don’t abide by their policies or share their beliefs.
Fortunately, if you use OpenVPN over TCP, it would be nearly impossible for the government to stop you. This is why many people use VPNs: to bypass government firewalls. As these governments are aware of this countermeasure, they block VPNs, too.
You may have seen that secure websites start their URLs with HTTPS://. They use SSL or Secure Socket Layer, a standard security technology, to encrypt the data transmitted between a server and a user. Nowadays, almost all websites use SSL.
Due to the high prevalence of SSL, websites that use this technology are believed to be unblockable. Even China may find it challenging to block them.
As OpenSSL libraries are used in building OpenVPN, configuring TCP to run with port 443 is a piece of cake. But this isn’t the most exciting part. The best part is that SSL uses not just any protocol and port but the TCP protocol on port 443.
So, when the VPN uses OpenVPN over TCP on port 443, your VPN traffic seems like regular SSL traffic. There’s no way to identify the data, as they’re encrypted.
Running OpenVPN over TCP port 443 will significantly increase your overall security and the strength of your digital defense.
TCP is the dominant protocol for as long as it provides guaranteed delivery of data packets, reliability, error correction, and much more.
But keep in mind the costs: latency and additional overhead. Even VPN providers use UDP as their default configuration, although unreliable and connectionless.
Choosing what’s ideal for you doesn’t have to be complicated. It just depends on whether you prioritize speed or whether you prioritize reliability.
2 Comments
Yoseph deSouza
January 13, 2024 8:57 am
I believe China can identify OpenVPN traffic over TCP and port 443 by deep packet inspection.
TM
September 1, 2020 2:16 am
Shanika,
I so enjoyed your words and ability to talk to the “common human”. For me, it is overwhelming to try to find a logical choice as so many sites just leave me flummoxed on what to do. I could or wish I could ask a few questions but I will try and just ask one. I started my research thinking I would get a mobile VPN, like Express VPN or Proton etc. I fell down a rabbit hole learning about DD-wrt home routers. Why? My reading just kept saying this protects my data, my phones, computers in the best way. I live in Seattle, Wa and currently use the router provided by Comcast. Can you imagine a scenario where I have a home VPN and then when I walk out the door I am using ExpressVPN? Is that the gold standard. Also, while I am deeply fascinated by cyber security, I am fearful of not having the mental acumen to make all this merge together. I am willing to pay for the breadth of security, but need the software/hardware to be user friendly 🙁 or maybe I can find a support group or online tech to talk with. This may not reach you and I understand. I also know the answer to everything in life is often, “ it depends :).” Thanks for your work to help all of us security 101 folks! Best to you and your team.