Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 10
Joined: Thu Jul 19, 2012 12:47 pm
Location: Russia, Stavropol

vpn perfomance on RB2011L

Wed Nov 28, 2012 12:29 pm

Firstly i wanted to ask about vpn perfomance on RB2011L v5.22 (one as client and another as server). It seemed strange - low cpu load on router and low speed over vpn (it was client-side). Then i realized that server-side router was bottleneck (cpu usage = 100%), so i've got an answer.
I' ve tested some vpn types that could be used for vpn between RB2011L and want to share them, maybe one find them useful. Results are estimated, because they got while copying big file in win7 explorer from PC1 TO PC2 (win7 with share).
Routers were connected over lan as follow:
PC1-sender <-- 100mbit/s --> R1-client - RB2011L <-- 100mbit/s --> R2-server - RB2011L <-- 100mbit/s --> PC2-windows-share-receiving
type          upload speed       max cpu load receiving side, server side          max cpu load sending side, client side
ipsec         1   Mbyte/s        100%	                                                      80%
l2tp/ipsec    2,5 Mbyte/s        90%	                                                       50%
openvpn       1,6 Mbyte/s        100%	                                                      60%
sstp          0,2 Mbyte/s        100%	                                                      8%
configs were as follows (ipsec disabled in configs):
server side configs

/interface sstp-server
add disabled=yes name=sstp-in1 user=""
/interface l2tp-server
add name=l2tp-in1 user=""
/interface ovpn-server
add disabled=yes name=ovpn-in1 user=""
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=md5
/ip pool
add name=vpnpool1 ranges=
/ppp profile
set 1 local-address= only-one=yes remote-address=vpnpool1
/interface l2tp-server server
set enabled=yes
/interface ovpn-server server
set certificate=mtik-central default-profile=default-encryption enabled=yes mode=ethernet port=11194 require-client-certificate=yes
/interface sstp-server server
set certificate=mtik-central default-profile=default-encryption enabled=yes port=444
/ip ipsec peer
add exchange-mode=main-l2tp generate-policy=yes hash-algorithm=sha1 secret=test
add address= disabled=yes secret=test
/ip ipsec policy
add disabled=yes dst-address= src-address= sa-dst-address= sa-src-address= tunnel=yes
/ip route
add distance=1 dst-address= gateway=
/ip address
add address= interface=ether5
add address= interface=ether2


client side configs

/interface l2tp-client
add connect-to= name=l2tp-out1 password=test user=mtik-client
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=md5
/interface ovpn-client
add certificate=mtik-client connect-to= disabled=yes mode=\
    ethernet name=ovpn-out1 password=test port=\
    11194 profile=default-encryption user=mtik-client
/interface sstp-client
add connect-to= name=sstp-out1 password=test profile=\
    default-encryption user=mtik-client
/ip address
add address= interface=ether2
add address= interface=ether3
/ip ipsec peer
add address= secret=test
/ip ipsec policy
add disabled=yes dst-address= sa-dst-address= \
    sa-src-address= src-address= tunnel=yes
/ip route
add distance=1 dst-address= gateway=
add disabled=yes distance=1 dst-address= gateway=
LANs are and (for ipsec)
vpn area
"inet" area

It was hard to configure ipsec using wiki article for a first time. There was nothing about routes to office networks and "interesting traffic" that should activate tunnels.

If you found any mistakes or know how to improve perfomance by changing configs (and not by using another hardware), please share it.
It seems that l2tp/ipsec is the best solution. Are there any other considerations when server-side router will serve for several small offices over internet?
User avatar
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Sun Oct 25, 2009 1:48 pm
Location: Georgia

Re: vpn perfomance on RB2011L

Sun Dec 02, 2012 7:17 pm

that router not have ipsec hardware acceleration , use 1100ax and 1100ax2

Who is online

Users browsing this forum: No registered users and 82 guests