Community discussions

MikroTik App
 
User avatar
LogicalNZ
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 59
Joined: Sat Oct 19, 2013 6:35 am
Location: New Zealand
Contact:

IPSEC very SLOW on router boards? High CPU

Sat Oct 19, 2013 9:10 pm

Good Afternoon all,

We have a situation where we basically have a customer with 100/50 Mbs fiber at two locations and we are connecting the two sites via a IPSEC VPN. At one site we have a Cyberoam 35 (capable of 200 Mbs via VPN). When I have tried a Cyberoam at each end we have had no issues with getting almost fill bandwidth from the VPN.

When I replaced one end with a routerboard is where the issues started. So go the VPN up and passing traffic with no issues. The VPN is 3DES, SHA and DH2 (standard settings)...

The issue is that via the IPSEC VPN I can only get 1 to 2MBs (8 - 16 Mpbs) I have tried various things including disabling PFS and setting the MSS on the RB but same thing. I have tried 2 different RB's (951G and 2011) with the same issue. I can see the CPU goes high when I load the VPN up and the process driving it high is "encryption" ...

If I try the same file transfer not via the VPN, by a NAT (FTP transfer) I get around 5MBs or 40Mbs.

Any ideas??

Logical Solutions, NZ
http://www.logicalsolutions.co.nz
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: IPSEC very SLOW on router boards? High CPU

Thu Oct 24, 2013 12:25 pm

Hi,

You'll only get that level of performance with routerboards with hardware encryption engine, like the old RB1000 or the new 1100AHx2. I don't know if other models are equiped with it too.

As a reference with RB450G I get no more than 23Mbps (with a few firewall/nat rules and routing enabled).

Regards
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: IPSEC very SLOW on router boards? High CPU

Thu Oct 24, 2013 12:28 pm

That Cyberoam 35 price range is quite different. Like "Leonset" wrote, you should compare it to RB1100AHx2, which is in the same league (and still is much cheaper). RB1100AHx2 has HW acceleration for IPsec, and can get over 500Mbit IPSec throughput.
 
i4jordan
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Mon Sep 02, 2013 1:42 am

Re: IPSEC very SLOW on router boards? High CPU

Thu Oct 24, 2013 3:37 pm

Normis,

Does the tile series (CCR1036) also have hardware accelerated ipsec?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: IPSEC very SLOW on router boards? High CPU

Thu Oct 24, 2013 3:47 pm

It has IPsec acceleration in hardware, but we have not yet implemented the software driver for it, it will be added via software update in next few weeks
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: IPSEC very SLOW on router boards? High CPU

Fri Oct 25, 2013 7:59 pm

3DES is the slowest encryption algorithm and still not secure. Change it to AES128 or Blowfish (if supported by the other end). Please post your results after this change.
Example of speed comparison:
AES_Blowfish_3DES.jpg
Table shows AES 256, thus AES 128 should have even better performance and is far more secure then 3DES.
You do not have the required permissions to view the files attached to this post.
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: IPSEC very SLOW on router boards? High CPU

Mon Oct 28, 2013 9:18 am

That table belongs to the performance of some routerboard model?
 
User avatar
payday
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: IPSEC very SLOW on router boards? High CPU

Mon Oct 28, 2013 7:45 pm

That table belongs to the performance of some routerboard model?
No. It's just an example (found on internet) to show differences in performance. There are a lot of sites comparing those algorithms. When @LogicalNZ will post his results we will have answear to your question. :)

Who is online

Users browsing this forum: agus, CGGXANNX and 17 guests