Handling 1Gbps routing performance on RB760IGS Hex S
At first, as a mikrotik first-timer, I was getting < 400 Mbits/sec on Hex S with inter-VLAN routing using Hex S as router on a stick. The CPU was running at 100% on one core. Then, I searched through the internet and found out that I only need to enable fasttrack
.
However, this was confusing a bit as the wiki says that you need to have fastpath
enabled on the setting. And getting fastpath
enabled means there must be no firewall rules enabled on the router but I already did have the masquerade NAT.
Anyway, I went on and enabled the fasttrack
and it seems to work without fastpath ? (I have no idea).
The result was amazing the throughput went up to 880 Mbits/sec which is more than enough for a small office. I'm getting 100MB/s+ copying from freenas to windows 10 via smb.
The CPU utilization was 86% on one core and 70% on another which was a good result as I will need some left for Wireguard and CAPsMAN.
iperf -c 10.1.10.11 -P 4
------------------------------------------------------------
Client connecting to 10.1.10.11, TCP port 5001
TCP window size: 221 KByte (default)
------------------------------------------------------------
[ 3] local 10.1.100.5 port 39042 connected with 10.1.10.11 port 5001
[ 4] local 10.1.100.5 port 39044 connected with 10.1.10.11 port 5001
[ 5] local 10.1.100.5 port 39046 connected with 10.1.10.11 port 5001
[ 6] local 10.1.100.5 port 39048 connected with 10.1.10.11 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 321 MBytes 269 Mbits/sec
[ 5] 0.0-10.0 sec 220 MBytes 184 Mbits/sec
[ 4] 0.0-10.0 sec 336 MBytes 280 Mbits/sec
[ 6] 0.0-10.1 sec 182 MBytes 151 Mbits/sec
[SUM] 0.0-10.1 sec 1.03 GBytes 883 Mbits/sec
** To destination host without Wireguard **
iperf -c xxx
------------------------------------------------------------
Client connecting to xxx, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.1.100.5 port 50552 connected with xxx port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 341 MBytes 285 Mbits/sec
** To destination host with Wireguard **
------------------------------------------------------------
Client connecting to 10.10.2.1, TCP port 5001
TCP window size: 45.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.1.100.5 port 33710 connected with 10.10.2.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 94.1 MBytes 78.0 Mbits/sec