ROCK64 as VPN Gateway
#11
Hi guys,

today I received my Rock64 and of course immediately set it up to do some tests. Openssl now performes way better as visible here:

Code:
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: 16712860 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 13207655 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 6899270 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 2457687 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 8192 size blocks: 353153 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 16384 size blocks: 178379 aes-128-cbc's in 3.00s
OpenSSL 1.1.0l  10 Sep 2019
built on: reproducible build, date unspecified
options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr)
compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/aarch64-linux-gnu/engines-1.1\""
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-cbc      89135.25k   281763.31k   588737.71k   838890.50k   964343.13k   974187.18k

but openvpn performance is still slower than on Raspberry Pi4:

Rock64
Code:
rock64@rock64:~$ sudo openvpn --genkey --secret /tmp/secret
rock64@rock64:~$ sudo time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 --cipher aes-256-cbc
Tue Dec  3 10:51:06 2019 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode
15.94user 0.00system 0:15.95elapsed 99%CPU (0avgtext+0avgdata 5340maxresident)k
0inputs+0outputs (0major+318minor)pagefaults 0swaps

RPI4
Code:
ppowalla@vpngateway:/etc/openvpn $ sudo openvpn --genkey --secret /tmp/secret
ppowalla@vpngateway:/etc/openvpn $ sudo time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 --cipher aes-256-cbc
Tue Dec  3 11:52:11 2019 disabling NCP mode (--ncp-disable) because not in P2MP client or server mode
12.69user 0.04system 0:12.76elapsed 99%CPU (0avgtext+0avgdata 5300maxresident)k
0inputs+0outputs (0major+287minor)pagefaults 0swaps

As you can see the Raspberry takes 12,76s to perform the test, whereas the Rock64 needs 15,95s. Based on the explanation in this thread

https://airvpn.org/forums/topic/18322-ho...hroughput/

it means, that still the Rock64 is slower. Is openvpn taking advantage of the hardware acceleration of Rock64? Any other explanation?

Thanks!
  Reply


Messages In This Thread
ROCK64 as VPN Gateway - by Talkabout - 11-30-2019, 12:48 PM
RE: ROCK64 as VPN Gateway - by jsfrederick - 11-30-2019, 08:16 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-01-2019, 04:59 AM
RE: ROCK64 as VPN Gateway - by evilbunny - 12-01-2019, 05:30 AM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-01-2019, 05:41 AM
RE: ROCK64 as VPN Gateway - by tllim - 12-01-2019, 01:50 PM
RE: ROCK64 as VPN Gateway - by evilbunny - 12-02-2019, 01:35 AM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-01-2019, 04:57 PM
RE: ROCK64 as VPN Gateway - by jsfrederick - 12-01-2019, 08:33 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-02-2019, 04:16 AM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-03-2019, 05:01 AM
RE: ROCK64 as VPN Gateway - by xalius - 12-03-2019, 05:13 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-04-2019, 03:35 AM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-04-2019, 12:13 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-04-2019, 03:26 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-04-2019, 05:13 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-13-2019, 04:46 AM
RE: ROCK64 as VPN Gateway - by Rocklobster - 12-13-2019, 07:50 PM
RE: ROCK64 as VPN Gateway - by Talkabout - 12-14-2019, 03:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  lost eletronic component rock64 marvin1986 1 221 06-01-2021, 06:27 PM
Last Post: 8bit
Shocked Rock64 - Reboots after few minutes addezai 2 322 04-22-2021, 07:03 PM
Last Post: addezai
  Python GPIO Library for the Rock64 (R64.GPIO) Leapo 36 37,108 04-17-2021, 08:59 AM
Last Post: theophile
Question Hardware issues with Rock64 grobbs 10 1,284 04-08-2021, 05:24 AM
Last Post: t4_4t
  Rock64 Long Term stability ramprasad 4 1,721 03-16-2021, 07:23 PM
Last Post: Rocklobster
  Rock64 No Audio - Solved wbecks 11 14,936 03-15-2021, 03:15 PM
Last Post: lowry
  Safest way to send shutdown signal to headless Rock64 SMB server? bmurphr1 3 1,043 03-14-2021, 06:01 PM
Last Post: clach04
  Rock64 as a router (OpenWRT,etc) bob-anon 2 1,603 03-12-2021, 01:16 AM
Last Post: arkadione
  Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor Perry 2 1,188 02-12-2021, 08:02 PM
Last Post: Perry
  Will Mobian Run On Rock64? Porcupine 1 592 01-13-2021, 12:39 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 1 Guest(s)