Community discussions

MikroTik App
 
TheLordOfTheShells
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Tue Oct 03, 2017 2:48 am

CRS328-4C-20S-4S High CPU

Wed Jul 14, 2021 7:19 am

Hi guys
I have some CRS328 switches and noticed that the switch often gets high cpu for no apparent reason.
Here is my configuration
/interface bridge
add name=bridge1 priority=0x4000 protocol-mode=mstp region-name=CS region-revision=1 vlan-filtering=yes
/interface vlan
add interface=bridge1 name=MGMT_99 vlan-id=99
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/system logging action
set 0 memory-lines=2000
/interface bridge msti
add bridge=bridge1 identifier=1 priority=0x4000 vlan-mapping=30,40,50,60,70
add bridge=bridge1 identifier=2 priority=0x4000 vlan-mapping=20,10,99
/interface bridge port
add bridge=bridge1 interface=combo1
add bridge=bridge1 interface=combo3
add bridge=bridge1 interface=combo2
add bridge=bridge1 interface=combo4
add bridge=bridge1 interface=sfp-sfpplus1
add bridge=bridge1 interface=sfp-sfpplus2
add bridge=bridge1 interface=sfp-sfpplus3
add bridge=bridge1 interface=sfp-sfpplus4
add bridge=bridge1 interface=sfp1
add bridge=bridge1 interface=sfp2
add bridge=bridge1 interface=sfp3
add bridge=bridge1 interface=sfp4
add bridge=bridge1 interface=sfp5
add bridge=bridge1 interface=sfp6
add bridge=bridge1 interface=sfp7
add bridge=bridge1 interface=sfp8
add bridge=bridge1 interface=sfp9
add bridge=bridge1 interface=sfp10
add bridge=bridge1 interface=sfp11
add bridge=bridge1 interface=sfp12
add bridge=bridge1 interface=sfp13
add bridge=bridge1 interface=sfp14
add bridge=bridge1 interface=sfp15
add bridge=bridge1 interface=sfp16
add bridge=bridge1 interface=sfp17
add bridge=bridge1 interface=sfp18
add bridge=bridge1 interface=sfp19
add bridge=bridge1 interface=sfp20
/interface bridge vlan
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=10
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=20
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=30
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,bridge1,combo1,combo2,combo3,combo4" vlan-ids=99
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=40
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=50
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=60
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=70
add bridge=bridge1 tagged=sfp-sfpplus4,sfp9 vlan-ids=31
add bridge=bridge1 tagged=sfp-sfpplus4,sfp9 vlan-ids=32
/ip address
add address=172.16.99.10/24 interface=MGMT_99 network=172.16.99.0
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
set udplite disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ip route
add distance=1 gateway=172.16.99.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Asia/Ho_Chi_Minh
/system identity
set name=DisSw-01
/system ntp client
set enabled=yes primary-ntp=210.23.25.77
/system routerboard settings
set boot-os=router-os
/system scheduler
add interval=5s name=schedule1 on-event=":if ([ /system resource get cpu-load]>95) do={ \r\
\n\t:log warning \"Reboot for 100% CPU\";\r\
\n\t}" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=may/21/2021 start-time=01:34:14
I wrote a script to check if the CPU is high or not, here are the results:

Image

Tool -> Profile

Image

The bandwidth used is not high:

Image

Does anyone know the cause, please tell me.
Thanks
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11452
Joined: Thu Mar 03, 2016 10:23 pm

Re: CRS328-4C-20S-4S High CPU

Wed Jul 14, 2021 8:52 am

Are you running a recent version of ROS?

According to manual, CRS3xx is the only device family which can HW offload MSTP. Could be that this was added in some recent ROS version. Could be there's a bug regarding MSTP HW offload as well.

If you're running one of recent ROS versions, then I suggest you to create a supout file and open ticket with support@mikrotik.com ...
 
TheLordOfTheShells
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Tue Oct 03, 2017 2:48 am

Re: CRS328-4C-20S-4S High CPU

Wed Jul 14, 2021 3:39 pm

Are you running a recent version of ROS?

According to manual, CRS3xx is the only device family which can HW offload MSTP. Could be that this was added in some recent ROS version. Could be there's a bug regarding MSTP HW offload as well.

If you're running one of recent ROS versions, then I suggest you to create a supout file and open ticket with support@mikrotik.com ...
My ROS version is 6.45.9
Do you think I should upgrade to the latest version?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: CRS328-4C-20S-4S High CPU

Wed Jul 14, 2021 3:42 pm

Obvious, but NOT the beta. Use long-term 6.47.10

Who is online

Users browsing this forum: akakua, Bing [Bot], G00dm4n, IMTechSpec, kiyre, kolopeter and 35 guests