Comparison of performance (data transfer rate) of OpenVPN over UDP and TCP
November 25, 2021
The previous article showed how to use OpenVPN with TCP instead of the default UDP. It is also known that the use of the TCP protocol is not recommended because, due to the “overhead” of the TCP transport protocol, less payload will be transmitted, since part of the channel will be occupied by the transmission of overhead information necessary to control the integrity of transmitted packets. But how exactly will switching from UDP to TCP affect the performance of the OpenVPN server and the speed of receiving and sending data? This article is devoted to the answer to this question.
My internet connection speed without using OpenVPN:
My internet connection speed using OpenVPN over UDP:
My internet connection speed using OpenVPN over TCP:
As you can see, the speed loss when migrating from UDP to TCP is quite significant. The difference in speed between the absence of OpenVPN and OpenVPN over UDP is negligible – in fact, in both cases, the speed is practically limited by the maximum bandwidth of my network.
See also:
- How to use OpenVPN with TCP protocol
- How to set up OpenVPN server and clients
- OpenVPN advanced usage examples
Related articles:
- How to change configuration files when migrating from OpenVPN 2.4.* to OpenVPN 2.5.* (97.1%)
- How to use OpenVPN with TCP protocol (97.1%)
- Simultaneous use of multiple OpenVPNs on one server (97.1%)
- How to manage VPN Settings in Cinnamon (72.2%)
- How to manage VPN Settings in Xfce (72.2%)
- How to clear a List in Python. Why clearing a List deletes copies of it in other variables (RANDOM - 50%)