Hi,
I set up a RB3011 running RouterOS 4.46.1with an IPSec connection to a linux VM with strongswan, but the throughput stays well below the specification. I reach about 170MBit/s through the tunnel (iperf3 -P10). Without the tunnel, I get about 700MBit/s. Using aes256-sha256, aes128-sha256 or aes128-sha1 does not make a substantial difference, so I guess hardware offloading works. During the test, CPU usage is about 45% with one core at about 60%. On the other side, the load stays at about 0.01.
I ordered the firewall rules so that they start with
add action=accept chain=forward protocol=icmpv6
add action=accept chain=forward dst-address=2001:db8:1::/62 ipsec-policy=in,ipsec src-address=2001:db8:2::/56
add action=accept chain=forward dst-address=2001:db8:2::/56 ipsec-policy=out,ipsec src-address=2001:db8:1::/62
with 2001:db8:1::/62 being the local net and 2001:db8:2::/56 the remote net.
Therefore, I assume that at most three rules are matched before the packet is accepted. Input rules for esp and ike are also the first ones. As the throughput without IPSec is substantially higher, firewall processing should not be the issue anyway…
Is there anything I missed or is the spec just over optimistic by a factor of five?
Best regards,
Jan-Martin