Slow downloadspeeds on QVPN

Post your questions about BT download, FTP download, HTTP download, or QGet download software here.
sciaio
New here
Posts: 5
Joined: Sat Aug 18, 2018 6:35 am

Re: Slow downloadspeeds on QVPN

Post by sciaio »

Same experience here:
I have maximum download speed of about 11 MB/s. With download station under VPN I only receive 2-3 MB/s maximum and is not constant. That's only 30% of the full bandwidth. I use Private VPN with an OpenVPN configuration file in QVPN. The same settings (and the same IP) from my pc with OpenVPN gives almost full bandwidth. For the connection method between DS and the VPN I use the "connect to" setting in app Center. The CPU was never too high (max 45%) and RAM always below 30%. Of course I tried to run DS without VPN and flies to full speed with same file.

System:
TS-251+
fmw: 4.4.2.1262
(CPU Intel J1900)
Download station 5.6.3.154
QVPN 2.2.661

I suspect a software bug, anyone knows about it?
Thanks
drakanor
Starting out
Posts: 10
Joined: Tue Sep 13, 2016 12:22 am

Re: Slow downloadspeeds on QVPN

Post by drakanor »

I'm facing the same issue and like to share some information on this:

Standard OpenVPN connection enabled through the official QPVN app. Connecting to it from a Debian server with a 1 GBit connection. NAS is behind a connection with 50 MBit upstream and 400 Mbit downstream. Then I tried the following services:

rsyncing to/from a Samba/CIFS share on my NAS:
3 mb/s in both directions, speed should have been 6 mb/s up and 50 mb/s down.

direct and plain ftp to the standard NASFTPD Turbo station (proftpd):
same 3 mb/s in both directions, again speed should have been 6 mb/s up and 50 mb/s down.

Any other connections to/from the NAS outside the OpenVPN connection deliver the expected full speed.

Software versions used on the NAS:
  • QTS 4.4.2.1270
  • QVPN 2.2.661
TVS-471-i3 3.5 GHz, 16 GB RAM, 4 * Seagate ST4000VN000 4 TB
aeroclown
First post
Posts: 1
Joined: Mon Apr 27, 2020 4:17 am

Re: Slow downloadspeeds on QVPN

Post by aeroclown »

@drakanor

I know this is my first post but I'd like to comment here anyway.

I use VyprVPN on my system and after the last upgrade I also started noticing problems. After poking around for a while I decided to change from using the openVPN Client Profile in QVPN to LT2P/IPSec. Like magic everything has returned to normal with no other changes.

I think they have broken the OpenVPN Client in QVPN in the most recent update. This was not the case on Firmware Release 4.4.2.1260 which I was previously on. The only reason I updated was due to an email notice about an upgrade problem requiring a manual upgrade. It does however look like what ever they did to fix that problem has broken the openVPN Client.

If you are on 4.4.2.1270 and using an openVPN profile try switching to LT2P/IPSec if your provider supports it.

Software versions used on the NAS:
QTS 4.4.2.1270
QVPN 2.2.661
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: Slow downloadspeeds on QVPN

Post by Toxic17 »

Personally I have always found QNAP VPNs to be slow no matter what I tried.

I moved my OpenVPN service to an ODROID N2 which is my pihole server too and is in fact very workable as a VPN server with no speed issues.

As to QNAP, I did find however AES-NI which is supported by vast majority of CPUs now in mainstream QNAP NAS's cannot be used due to lack of drivers/engine support in OpenSSL/OpenVPN - having this support feature would improve throughput immensely
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
Nathan.OTN
New here
Posts: 8
Joined: Tue Jun 02, 2020 4:11 pm

Re: Slow downloadspeeds on QVPN

Post by Nathan.OTN »

Hello everyone !

Same issue here:

NAS and computer connected in ethernet 1Gbit/s, Internet connection speed: 1000Mbps Down and 600 MBPS Up (optical fiber).

When using my LAN, I can transfer a file on the NAS at 71Mo/s. When I connect my NAS through OpenVPN so the optical fiber connection (QVPN 2 Service and using 10.8.0.1 to access the NAS through the VPN), the transfer speed is 12.5Mo/s which is perfectly corresponding to 100Mbps/s. No matter AES 128 or 256. The NAS is not under heavy load:

Image

Image

Image

Would the 100Mbps be a limitation of QVPN ?
I have not find a fix yet... Any idea ?

PS: My NAS is a TS228A
User avatar
dolbyman
Guru
Posts: 35012
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Slow downloadspeeds on QVPN

Post by dolbyman »

probably the max that this little ARM processor can do
Nathan.OTN
New here
Posts: 8
Joined: Tue Jun 02, 2020 4:11 pm

Re: Slow downloadspeeds on QVPN

Post by Nathan.OTN »

But there is no difference between AES128 or AES256 in terms of speed. I have been using UDP and now with TCP I get 16Mo/s, which is not horrible but not as good as in LAN. I know that VPN encryption will be slower than direct LAN connection due to the load of CPU but here CPU is not used over 50%, that is why I am wondering : what is the issue... :)
User avatar
dolbyman
Guru
Posts: 35012
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Slow downloadspeeds on QVPN

Post by dolbyman »

just do a speedtest
openssl speed -evp aes-128-cbc
openssl speed -evp aes-256-cbc

here is the result of an Asus AC86U

Code: Select all

OpenSSL 1.0.2u  20 Dec 2019
built on: reproducible build, date unspecified
options:bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) idea(int) blowfish(ptr)
compiler: /opt/toolchains/crosstools-arm-gcc-5.3-linux-4.1-glibc-2.22-binutils-2.25/usr/bin/arm-buildroot-linux-gnueabi-gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -Wall -DL_ENDIAN -march=armv8-a -fomit-frame-pointer -mabi=aapcs-linux -marm -ffixed-r8 -msoft-float -D__ARM_ARCH_8A__ -O2 -DOPENSSL_NO_BUF_FREELISTS -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc     180173.15k   504832.04k   919377.24k  1181060.37k  1292141.42k
aes-256-cbc     164397.54k   407983.39k   646629.80k   770948.64k   815854.48k
================================

And here a TS-853BU

Code: Select all

OpenSSL 1.0.2s  28 May 2019
built on: reproducible build, date unspecified
options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
compiler: x86_64-QNAP-linux-gnu-gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_HEARTBEATS -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc     402376.17k   519322.57k   543843.39k   564949.70k   570870.56k
aes-256-cbc     323243.97k   357875.46k   397463.12k   407790.36k   409145.19k
hoejbjerre
Starting out
Posts: 25
Joined: Mon Feb 04, 2008 1:23 am

Re: Slow downloadspeeds on QVPN

Post by hoejbjerre »

Anyone has a fix for this QVPN/OpenVPN low speed issue, this is a pain? or know it is something that will be addressed soon by QNAP?

I'm running on a Core i7 CPU, 16Gb RAM, cabled network, ssd cache, ssd drives. I have 500/500mbit fibre and getting like 3-5mbit on the QVPN service when loading an TCP OpenVPN configuration file.

When I use the same setup file in an OpenVPN client on my PC outside the QNAP I get at least 100mbit.
NAS: TS-670 Ultimate ++ QTS 4.3.6.1831
CPU: Core i7-3770K @ 3.5 GHz, RAM: KINGSTON 16GB 1600 MHz 2 x 8 GB (Dual Channel)
CACHE: 1* Samsung 960 NVMe SSD 500Gb @ QM2-2P10G1T PCIe
STORAGE: 4*WD RED 6TB WD6002FFWX Raid 5, 2*1TB Samsung SSD 850 EVO, Raid 0
Mrgold
New here
Posts: 9
Joined: Mon May 10, 2021 4:24 pm

Re: Slow downloadspeeds on QVPN

Post by Mrgold »

dolbyman wrote: Sat Jun 27, 2020 4:33 am probably the max that this little ARM processor can do
Hello,
Jumping on an old post but I wanted to know what you think about the ts251+ and what internet speeds could saturate that processor?
I currently have around 980mb/s down and 60mb/s up and when I start a download on my computer I go up to 70-80MB/s and the same file with the same (exactly the same I unplugged the Ethernet cable from my computer and plugged it in the nas) cat 7 cable I only reach around 30MB/s.
I really don't think this nas is only capable of those speeds especially when lan transfers are blazing fast.
What do you think ?

Thanks in advance
User avatar
dolbyman
Guru
Posts: 35012
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Slow downloadspeeds on QVPN

Post by dolbyman »

unclear what your lan speeds have to do with vpn

please elaborate
Mrgold
New here
Posts: 9
Joined: Mon May 10, 2021 4:24 pm

Re: Slow downloadspeeds on QVPN

Post by Mrgold »

dolbyman wrote: Mon May 10, 2021 8:01 pm unclear what your lan speeds have to do with vpn

please elaborate
I'm not sure you are referring to my post but to answer you there is no correlation between my issue and VPN since I do not use a VPN. I only asked because you mentioned that the "small ARM processor" of another users nas was probably not fast enough to use his full network bandwidth. I have scoured the internet to find some information on max download speeds for the NAS without success and I really don't understand why I'm getting a third of the speed I should be getting.
User avatar
dolbyman
Guru
Posts: 35012
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Slow downloadspeeds on QVPN

Post by dolbyman »

a 251+ has no arm processor ..it should be able to saturate 1GbE without a proble.

for more questions open a new thread...don't necropost and hijack another thread (this here was a discussion about vpn)
Mrgold
New here
Posts: 9
Joined: Mon May 10, 2021 4:24 pm

Re: Slow downloadspeeds on QVPN

Post by Mrgold »

dolbyman wrote: Mon May 10, 2021 10:23 pm a 251+ has no arm processor ..it should be able to saturate 1GbE without a proble.

for more questions open a new thread...don't necropost and hijack another thread (this here was a discussion about vpn)
Ok will do thanks for the heads up
Nathan.OTN
New here
Posts: 8
Joined: Tue Jun 02, 2020 4:11 pm

Re: Slow downloadspeeds on QVPN

Post by Nathan.OTN »

Hi guys I'm still stuck on this issue and before buying Raspberry PI4 with Wireguard, how do you know that the Arm CPU is limiting the speed if it is not used at 100% on the NAS ? Here is what I get when transfering datas through the OpenVPN connection of the NAS (from a 1GB/s internet connection):
Image

Thanks !
Post Reply

Return to “Download Station and QGet”