OpenVPN performance

networkingopenvpnperformancevpn

I setup an OpenVPN tunnel between two hosts with 50Mbit/s connection.
If I test the speed of the endpoints, it's give the 50Mbit speed exactly.
But when I do the same over OpenVPN connection, it's limited to 20MBit/s.

Meanwhile the VPN servers (both are rackable servers with high performance) has no significant performance issue. Under 10% CPU usage always.

What would be that setting on OpenVPN what can cause that ?

Best Answer

How are you measuring throughput?

OpenVPN only adds 69 bytes of overhead, which is less than 5% on a 1431 byte packet.

One troubleshooting step may be to see if your clients/servers are trying to send 1500 byte packets that get fragmented, which will severely degrade performance.