Hi all
We want to test openvpn performance on AM335x EVM.
SDK version : 05.05.00.00
Openvpn version : 2.2.2
Openssl version : 1.0.0g
We test openssl with cryptodev and seems to get good performance.
~ $ openssl speed aes-128-cbc
--
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128-cbc 21751.74k 26446.81k 28017.27k 28313.26k 28434.43k
--
~ $ openssl speed -evp aes-128-cbc -engine cryptodev
--
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-128-cbc 24943.77k 88715.20k 261284.98k 1220864.00k 3001821.87k
---
Now for REAL test case :
pc1(IXIA1)<-------->EVM1<------------>EVM2<--------->pc2(IXIA2)
We create a vpn connection between EVM1 and EVM2 and use IXIA to test routing performance.
1. Normal case , without vpn connection, routing performance about 220Mbps. (packet size 1518)
2. With vpn connection( AES-128-CBC) but no HW acceleration, routing performance about 20Mbps. (packet size 1518)
3. With vpn connection( AES-128-CBC) and HW acceleration ( cryptodev ), routing performance about 11Mbps. (packet size 1518)
We can understand the performance will be reduced via encrypt connection.
But we really confuse when we use HW acceleration, the performance can't be improved, it's getting worse!!
Can anyone please tell us why It is worse than without HW acceleration?
Thanks
Kiros