Page 2 of 3

Re: Slow downloadspeeds on QVPN

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

Re: Slow downloadspeeds on QVPN

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

Re: Slow downloadspeeds on QVPN

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

Re: Slow downloadspeeds on QVPN

Posted: Mon Apr 27, 2020 6:38 am
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

Re: Slow downloadspeeds on QVPN

Posted: Sat Jun 27, 2020 3:59 am
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

Re: Slow downloadspeeds on QVPN

Posted: Sat Jun 27, 2020 4:33 am
by dolbyman
probably the max that this little ARM processor can do

Re: Slow downloadspeeds on QVPN

Posted: Sat Jun 27, 2020 4:58 am
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... :)

Re: Slow downloadspeeds on QVPN

Posted: Sat Jun 27, 2020 5:51 am
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

Re: Slow downloadspeeds on QVPN

Posted: Tue Nov 03, 2020 1:08 am
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.

Re: Slow downloadspeeds on QVPN

Posted: Mon May 10, 2021 4:49 pm
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

Re: Slow downloadspeeds on QVPN

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

please elaborate

Re: Slow downloadspeeds on QVPN

Posted: Mon May 10, 2021 8:47 pm
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.

Re: Slow downloadspeeds on QVPN

Posted: Mon May 10, 2021 10:23 pm
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)

Re: Slow downloadspeeds on QVPN

Posted: Mon May 10, 2021 10:56 pm
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

Re: Slow downloadspeeds on QVPN

Posted: Sat Aug 14, 2021 3:35 am
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 !