OpenVPN Windows Performance

Got a problem with Viscosity or need help? Ask here!

s4rs

Posts: 5
Joined: Tue Dec 06, 2016 12:56 am

Post by s4rs » Tue Dec 06, 2016 2:37 am
Since I am new to OpenVPN I have a simple performance question. I setup iperf to test performance of the firewall with and without running through OpenVPN. I have a Windows 7 system on the Wan side of the router and a Windows 10 system on the lan side of the router. Running iperf without the VPN I get approx 600Mb/s throughput. Running through the OpenVPN tunnel I am maxing out at 90Mb/s. Is this a OpenVPN limitation per client? Or is there some way to increase the bandwidth per client?

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Tue Dec 06, 2016 3:01 pm
Hi s4rs,

There's a lot of factors that go into your tunnels performance. By far and away the largest factor is the relation between the encryption you are using and the processing power of both the client and server. If you are using a strong cipher, you will lose network performance as each packet takes longer to encrypt at the client end, then decrypt at the server end.

Other more minor factors are things like your servers ability to route each packet, as an extra layer of NAT and firewall rules comes into play as well for example.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

s4rs

Posts: 5
Joined: Tue Dec 06, 2016 12:56 am

Post by s4rs » Wed Dec 07, 2016 1:45 am
The processor runs at appox 32% so there is head room. Not sure if there is a driver limitation or some other bottleneck. Seems strange it caps 100Mb/s. I would expect some slowdown but not a factor of 4x slower. I tested this on an Intel Quad Core N3150 Processor system with 8G of ram. I just picked up an Intel Core i5 3317U system with 8G of ram and see if that makes a difference. I will be surprised if it does.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Wed Dec 07, 2016 11:00 am
Hi s4rs,

The following may help - https://community.openvpn.net/openvpn/w ... orks_Linux

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

s4rs

Posts: 5
Joined: Tue Dec 06, 2016 12:56 am

Post by s4rs » Sat Dec 10, 2016 7:14 am
Eric,
Thanks for the link. I tested those configurations and I saw a reduction in throughput. I think the issue is I am using Windows instead of Linux for the client. I am not sure if the tunnel MTU of 6K works. If I do a ifconfig on the firewall I see the change to 6K, if I look at Windows it 1.5K and you can't set it higher. I think the performance dropped due to fragmentation but would have to run a trace to verify..

Its good to know this.
5 posts Page 1 of 1