Community discussions

MikroTik App
 
pawelfi1982
just joined
Topic Author
Posts: 13
Joined: Mon Nov 07, 2016 9:18 pm

Speed and CPU usage on crs310

Wed Mar 15, 2023 1:35 pm

Hello,
I have some strange issue or this is not an issue.
Im running my new CRS310 router switch and im facing a big CPU usage during internet test to fast.com
Could anyone tell me if my configuration is wrong or this works as expected?
# model = CRS310-1G-5S-4S+
/interface bridge
add admin-mac=19:FD:74:9C:78:FF auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=sfp-sfpplus1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full,10000M-full
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=dhcp_pool0 ranges=192.168.10.2-192.168.10.100
/ip dhcp-server
add address-pool=dhcp_pool1 interface=ether1 lease-time=1d10m name=dhcp1
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge comment=defconf disabled=yes interface=ether1
add bridge=bridge comment=defconf interface=sfp-sfpplus1
add bridge=bridge comment=defconf interface=sfp-sfpplus2
add bridge=bridge comment=defconf interface=sfp-sfpplus3
add bridge=bridge comment=defconf disabled=yes interface=sfp-sfpplus4
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=sfp2
add bridge=bridge comment=defconf interface=sfp3
add bridge=bridge comment=defconf interface=sfp4
add bridge=bridge comment=defconf interface=sfp5
/ip address
add address=192.168.10.1/24 interface=bridge network=192.168.10.0
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
/ip firewall filter
add action=fasttrack-connection chain=forward hw-offload=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/system clock
set time-zone-name=Europe/Warsaw
/system routerboard settings
set boot-os=router-os
During fast.com test CPU on CRS310 is around 70% and speed is around 600Mbit/s
I know that 600Mbit/s is a lot and its "just 70%" oc CPU, but i thougt that without firewall, and hw-offload running CPU should be less consumed.
Am I missing something in my config?
 
User avatar
loloski
Member Candidate
Member Candidate
Posts: 299
Joined: Mon Mar 15, 2021 9:10 pm

Re: Speed and CPU usage on crs310

Wed Mar 15, 2023 1:58 pm

CRS310 is a switch with basic routing capability that is expected
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11444
Joined: Thu Mar 03, 2016 10:23 pm

Re: Speed and CPU usage on crs310

Wed Mar 15, 2023 3:26 pm

Which interface is your WAN? If it's ether1, then it won't offload routing to HW, for that all involved interfaces have to be members of same bridge. Separation between LAN and WAN is then achieved using VLANs. However, some MT switches (dunno if CRS310 is one of them) experience quite some issues when traffic passes from faster to slower interface (e.g. from 10Gbps sfp-sfpplus1 to 1Gbps ether1).

BTW, you have a surplus DHCP client configured on ether1. Or DHCP server, depending on role of ether1 in your setup.
 
pawelfi1982
just joined
Topic Author
Posts: 13
Joined: Mon Nov 07, 2016 9:18 pm

Re: Speed and CPU usage on crs310

Wed Mar 15, 2023 4:08 pm

Thank You for fast answers.

I understand that it is more like a switch, it has less power them router, but on the mikrotik sites is written:
Routing none (fas path) 1264.2 Mbps - So ok, might be that i would reach this bandwidth if my ISP was much stronger.

About that I have WAN eth1 not in the bridge - I understand it couldn't be in that same bridge that WAN, but it can be if I would setup VLANs on it.
So I will try to set up the simple config on VLANs and see what happen.
putting all ports to 1 bridge, and setting up vlans on it.

Who is online

Users browsing this forum: hatred, holvoetn, VinceKalloe and 47 guests