Solved

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

Posted on 2008-10-17
6
2,981 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some of you may have heard that SonicWALL has finally released an app for iOS devices giving us long awaited connectivity for our iPhone's, iPod's, and iPad's. This guide is just a quick rundown on how to get up and running quickly using the app. …
OpenVPN is a great open source VPN server that is capable of providing quick and easy VPN access to your network on the cheap.  By default the software is configured to allow open access to your network.  But what if you want to restrict users to on…
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…

705 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