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!


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
  Rock64 No Audio @ Debian 12 dmitrymyadzelets 1 118 03-18-2024, 06:56 AM
Last Post: diederik
  Rock64 bricked shawwwn 7 5,463 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 3,872 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 258 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 1,774 04-29-2023, 04:24 AM
Last Post: newestssd
  OpenWRT on the Rock64 CanadianBacon 12 7,813 04-24-2023, 12:40 PM
Last Post: arunkhan
  Rock64 board not working, no HDMI no Ethernet. EDited 3 3,404 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 1,977 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 703 11-28-2022, 02:18 PM
Last Post: Macgyver
  my rock64 dosen't work rookie_267 0 908 10-07-2022, 07:50 PM
Last Post: rookie_267

Forum Jump:


Users browsing this thread: 1 Guest(s)