Solved

Why is my OpenVPN connection so much slower than my internet connection speed?

Posted on 2008-10-17
6
2,920 Views
Last Modified: 2012-06-21
I have an OpenVPN tunnel set up between the two sites using TCP and port 51194 with encryption. The VPN server and client are also the router for each site and are running an ubuntu package from ebox-platform.com

I am experiencing slow speeds pulling files from a Windows 2003 Server in site A to a workstation in site B. I can achieve much faster speeds sending files from site B to site A.

I have compared the speeds of transfering files from site A to site B using FTP and VPN.
VPN - 30 KB/s       FTP - 200 KB/s

Transferring a file from site B to the server in site A I get speeds upwards of 120 KB/s.

I understand there is some overhead using VPN, but I am only getting about 20% of my maximum site 1 upload speed. I can greater bandwidth if needed. However is there anything to help me get better performance from the OpenVPN?
0
Comment
Question by:mattattat
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
sstone55423 earned 168 total points
ID: 22744737
You need hardware VPN to get better speeds.  Something like a Sonic Wall Firewallwould work great.
 
Also, is your ISP connection (used for VPN) a DSL or Cable modem?  They have different speeds up versus down.
0
 
LVL 63

Assisted Solution

by:SysExpert
SysExpert earned 84 total points
ID: 22744761
I would try with a router based VPN in hardware, since you may be taxing your servers ( check resource usage, CPU, RAM, IO etc )

have you a speed comparison done without the VPN tunnel. You do not always get the spped you think you should be getting.

 
I hope this helps !
0
 

Author Comment

by:mattattat
ID: 22771886
I checked the resources on the routers while using the VPN. They barely registered any usage.

I did switch the protocol to UDP and am now getting about 75%-80% of my upload speed. Is this about as good as I should expect?
0
 
LVL 8

Assisted Solution

by:sstone55423
sstone55423 earned 168 total points
ID: 22788630
The general rule of thumb with TCP/IP is 70% efficiency, so it sounds like you are doing pretty good.
 
But, the question is why is TCP so much slower outside of the VPN than within the VPN?
 
The reason I asked about the cable modem or DSL is that there are usually faster in one direction than the other, and you describe the issue as faster in one direction than the other.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Secure VPN Connection terminated locally by the Client.  Reason 442: Failed to enable Virtual Adapter. If you receive this error on Windows 8 or Windows 8.1 while trying to connect with the Cisco VPN Client then the solution is a simple registry f…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now