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 » Tue Apr 07, 2020 5:08 am

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 » Mon Apr 27, 2020 3:42 am

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 » Mon Apr 27, 2020 4:28 am

@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: 5418
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: Slow downloadspeeds on QVPN

Post by Toxic17 » Mon Apr 27, 2020 6:38 am

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

QTS 4.x User Guidex

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


NAS: TS-473-32GB QM2-2P QXG-10G1T 4.4.2.1354 • TVS-463-16GB 4.4.2.1354 QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 4.3.3.1161 • APC Back-UPS ES 700G •
QPKG's: Plex 1.19.3 • Apache73 v2443.74070 • QSonarr 3.0.3.809 • QNBZGet 21.0 • phpMyAdmin 5.0.2 • Qmono 6.80.105 • McAfee 3.1.0 -6010 • HBS 3.0.200424 • LEgo v3.6.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+ • UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

Nathan.OTN
New here
Posts: 4
Joined: Tue Jun 02, 2020 4:11 pm

Re: Slow downloadspeeds on QVPN

Post by Nathan.OTN » Sat Jun 27, 2020 3:59 am

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

dolbyman
Guru
Posts: 19092
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Slow downloadspeeds on QVPN

Post by dolbyman » Sat Jun 27, 2020 4:33 am

probably the max that this little ARM processor can do

Nathan.OTN
New here
Posts: 4
Joined: Tue Jun 02, 2020 4:11 pm

Re: Slow downloadspeeds on QVPN

Post by Nathan.OTN » Sat Jun 27, 2020 4:58 am

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... :)

dolbyman
Guru
Posts: 19092
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Slow downloadspeeds on QVPN

Post by dolbyman » Sat Jun 27, 2020 5:51 am

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

Post Reply

Return to “Download Station and QGet”