LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-20-2012, 04:27 PM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 288

Rep: Reputation: Disabled
openvpn only using half of my upload bandwidth???


i have an openvpn setup that is hosted on a 50mpbs down/10mbps up comcast business connection. doing a test transfer of files from the vpn server to another machine on the same LAN results in near-wireline speeds (gigabit network, realistic throughpu is ~950-990 mbps). But when connecting over the internet, transferring files from the local LAN to teh remote client is a terribly slow 3-4mbps? I don't understand why... it can't be the CPU speed or anything on the VPN server, and if I setup a test FTP server unencrypted, I can max out my upload bandwidth perfectly with that. Please help, I've been so close to having a perfect VPN setup for months now but have gotten zero ideas as to why it's so slow.... I have played around with mssfix/fragment options (tried 1428,1400,1300,1200) but of course that had absolutely no effect.

Last edited by psycroptic; 12-20-2012 at 04:28 PM.
 
Old 12-21-2012, 05:57 AM   #2
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
You are saying it can't be the CPU on the VPN server but still it would be the first thing I check.
After that speed check the link with a UDP based transfer (you can use nc or mz). Check it using the ports you use for your VPN setup - this should expose any trafic shaping on the link.
I guess the MTU on the VPN server will be adjusted automatically so this shouldn't be a fragmentation issue, but may be worth a look.

That's all I can think of atm

Nik
 
Old 12-21-2012, 02:19 PM   #3
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 288

Original Poster
Rep: Reputation: Disabled
fyi the cpu is an intel core 2 duo 2.4GHz... i would guess that this is more than enough, considering openvpn apparently can run on el cheapo linksys routers...
 
Old 12-26-2012, 03:20 PM   #4
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 288

Original Poster
Rep: Reputation: Disabled
so more info....

i've narrowed it down to what seems like a wifi issue. when I connect on an ethernet connection on the remote end, I can get normal bandwidth transfers (~9.6mbps, or 1.2MB/s) but when I'm on a wifi connection (even if its a fast 35mbps down with no one but me using it) I get my bandwidth cut in half, maxing out at around 3-4mbps. is this normal? surely just the act of being on wifi shouldn't reduce my bandwidth by 50%?
 
Old 12-28-2012, 03:03 PM   #5
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 288

Original Poster
Rep: Reputation: Disabled
no suggestions at all?
 
Old 01-01-2013, 04:51 PM   #6
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 288

Original Poster
Rep: Reputation: Disabled
i have since tried an entirely different computer as the openvpn server... core i3 3.3GHz 4GB DDR3 RAM. Not a thing has changed. SO it can't be the cpu.
 
Old 01-01-2013, 11:57 PM   #7
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 288

Original Poster
Rep: Reputation: Disabled
even more updates:

tried removing the router entirely and going directly from the VPN server to the cable modem. Obviously I couldn't access the rest of the LAN, but a remote connection into the VPN server and a subsequent iperf test from a connected client to the server yielded 2.85 megabits per second, where the client was on ethernet on a 25mbps down connection.

so i've ruled out the router as well. i'm about to give up...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Bandwidth limit using CBQ antivirus Linux - Server 0 01-17-2010 09:24 AM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
Openvpn Bandwidth limiting nickcol Linux - Networking 1 04-18-2005 01:44 PM
Upload bandwidth shaping (SuSE 9.1) whiteunicorn Linux - Networking 8 12-08-2004 05:28 AM
Linux box splits my bandwidth in half! NightStalkerX6 Linux - Networking 4 02-20-2003 02:25 PM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration