Community discussions

MikroTik App
 
ffries
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Wed Aug 25, 2021 6:07 pm

CRS312-4C+8XG L2 VLAN slow performance [Fixed]

Sun Sep 19, 2021 3:19 pm

Dear all,

I am starting a new thread.

In performance test, the CRS312-4C+8XG cannot switch VLANs faster than 600Mb/s (with 10GB fiber attached) and the CPU reaches 100%.
I am aware that I can use H3 offloading, but my CCR2004 can readh 5Gb/s and this is enough for me.

This is RouterOS 7.1 rc3. When using swOS I can reach maximum speed, but the switch makes too much noise, so I came back to RouterOS.

Hardware L2 offloading seems to be configured.

The CRS312-4C+8XG switch seems to be the culprit, so any help is appreciated.
At some point, traffic is going throuh the CPU, by where?

Bandwidth test shows:
Columns: NAME, USAGE
NAME          USAGE
www           0%   
ethernet      3.5% 
ntp           0%   
console       0.5% 
networking    51.5%
logging       0%   
management    2%   
btest         15%  
profiling     0%   
bridging      18.5%
unclassified  9%   
total         100% 
 
/interface bridge port print
Flags: I - INACTIVE; H - HW-OFFLOAD
Columns: INTERFACE, BRIDGE, HW, PVID, PRIORITY, PATH-COST, INTERNAL-PATH-COST, HORIZON
 #    INTERFACE  BRIDGE  HW   PVID  PRIORITY  PATH-COST  INTERNAL-PATH-COST  HORIZON
;;; defconf
 0 I  ether9     *E              1  0x80             10                  10  none   
 1  H ether1     BR1     yes    40  0x80             10                  10  none   
 2 IH ether2     BR1     yes    20  0x80             10                  10  none   
 3  H ether3     BR1     yes    30  0x80             10                  10  none   
 4  H ether4     BR1     yes    40  0x80             10                  10  none   
 5 IH ether5     BR1     yes    50  0x80             10                  10  none   
 6  H ether6     BR1     yes    60  0x80             10                  10  none   
 7  H ether7     BR1     yes    70  0x80             10                  10  none   
 8  H ether8     BR1     yes    40  0x80             10                  10  none   
 9  H combo1     BR1     yes    70  0x80             10                  10  none   
10  H combo4     BR1     yes     1  0x80             10                  10  none   
11 IH combo2     BR1     yes     1  0x80             10                  10  none   
12 IH combo3     BR1     yes     1  0x80             10                  10  none   

Here is my configuration:

# model = CRS312-4C+8XG
/interface bridge
add admin-mac=2C:C8:1B:B3:EF:71 auto-mac=no comment=defconf name=BR1 pvid=30 vlan-filtering=yes
/interface ethernet switch
set 1 cpu-flow-control=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add comment=defconf interface=ether9
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether1 pvid=40
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether2 pvid=20
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether3 pvid=30
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether4 pvid=40
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether5 pvid=50
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether6 pvid=60
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether7 pvid=70
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether8 pvid=40
add bridge=BR1 fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=combo1 pvid=70
add bridge=BR1 fast-leave=yes interface=combo4
add bridge=BR1 fast-leave=yes interface=combo2
add bridge=BR1 fast-leave=yes interface=combo3
/interface bridge vlan
add bridge=BR1 tagged=combo4 untagged=ether2 vlan-ids=20
add bridge=BR1 tagged=combo4 untagged=ether3,BR1 vlan-ids=30
add bridge=BR1 tagged=combo4 untagged=ether4,ether8,ether1 vlan-ids=40
add bridge=BR1 tagged=combo4 untagged=ether5 vlan-ids=50
add bridge=BR1 tagged=combo4 untagged=ether6 vlan-ids=60
add bridge=BR1 tagged=combo4 untagged=ether7,combo1 vlan-ids=70
/ip address
add address=192.168.88.1/24 comment=defconf interface=ether9 network=192.168.88.0
add address=10.90.30.250/24 interface=BR1 network=10.90.30.0
/ip dns
set allow-remote-requests=yes servers=10.90.30.254
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/32 gateway=10.90.30.254 pref-src="" routing-table=main suppress-hw-offload=no
/system clock
set time-zone-name=Europe/Paris
/system ntp client
set enabled=yes
/system ntp server
set enabled=yes
/system ntp client servers
add address=192.168.1.254
/system package update
set channel=development
/system routerboard settings
set boot-os=router-os
/system swos
set allow-from-ports=p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12 identity=swMikroTik static-ip-address=192.168.88.2
/tool bandwidth-server
set authenticate=no enabled=no
Last edited by ffries on Sun Sep 19, 2021 5:56 pm, edited 1 time in total.
 
biomesh
Long time Member
Long time Member
Posts: 561
Joined: Fri Feb 10, 2012 8:25 pm

Re: CRS312-4C+8XG L2 VLAN slow performance, misconfiguration?

Sun Sep 19, 2021 4:02 pm

Run iperf tests through endpoints connected through the switch, not the bandwidth test on the switch itself.
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: CRS312-4C+8XG L2 VLAN slow performance, misconfiguration?

Sun Sep 19, 2021 4:02 pm

The configuration seems correct except ether9 being a member port of a non-existent bridge, and /interface bridge port print shows the hardware offloading to be active. So either there is a bug in this indication, and you have to set fast-leave and frame-types on the /interface bridge port rows to the default values as one of them disables the L2 offloading, or there is some other bug preventing the L2 offloading from actually happening.

But a bad news - if you fix that, you may end up with the same fan speed in RouterOS if it depends on the traffic volume as I suspect, as the switch chip generates more heat as it handles more traffic.
 
ffries
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Wed Aug 25, 2021 6:07 pm

Re: CRS312-4C+8XG L2 VLAN slow performance, misconfiguration?

Sun Sep 19, 2021 5:41 pm

Run iperf tests through endpoints connected through the switch, not the bandwidth test on the switch itself.
iPerf shouws 600Mb/s output.

Thanks will look into it.
 
ffries
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Wed Aug 25, 2021 6:07 pm

Re: CRS312-4C+8XG L2 VLAN slow performance, misconfiguration?

Sun Sep 19, 2021 5:55 pm

Thank you very much.
I removed eht9 from the non-existant bridge and this make it.
Now CPU activity is around 1%
/tool profile
Columns: NAME, USAGE
NAME          USAGE
console       0.5% 
ssh           0%   
networking    0%   
radv          0%   
management    0%   
unclassified  1%   
total         1.5% 
 
ffries
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Wed Aug 25, 2021 6:07 pm

Re: CRS312-4C+8XG L2 VLAN slow performance [Fixed]

Sun Sep 19, 2021 6:10 pm

Another information to mention is that speedtest on the router itself triggers CPU, not using iperf3 (as written before):

This is Mikrotik bandwidth speetest:
/tool profile
Columns: NAME, USAGE
NAME          USAGE
www           0.5% 
ethernet      3.5% 
ntp           0%   
console       0%   
ssh           0%   
networking    68.5%
logging       0%   
management    2.5% 
btest         2%   
profiling     0.5% 
bridging      17.5%
unclassified  5%   
total         100% 
This is iperf3 speedtest:
/tool profile
Columns: NAME, USAGE
NAME          USAGE
serial        0%   
console       0.5% 
ssh           0%   
dns           0%   
networking    0%   
management    1%   
profiling     0%   
unclassified  0%   
total         1.5% 
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: CRS312-4C+8XG L2 VLAN slow performance [Fixed]

Sun Sep 19, 2021 6:19 pm

The bandwidth test running on the switch itself indeed does load the CPU, plus it doesn't test bridging/switching throughput of the HW offloaded forwarding as the CPU is involved in the transfers. So that way you measure the CPU performance, not the switch chip performance.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: CRS312-4C+8XG L2 VLAN slow performance, misconfiguration?

Sun Sep 19, 2021 6:20 pm

I removed eht9 from the non-existant bridge and this make it.

How's fan speed now under load?
 
ffries
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Wed Aug 25, 2021 6:07 pm

Re: CRS312-4C+8XG L2 VLAN slow performance, misconfiguration?

Sun Sep 19, 2021 7:43 pm

How's fan speed now under load?
I cannot reach high load as I am still stuck at 1Gb/s because of the CCR2004 router not applying fasttrack.
The thread for the CCR2004 is in the beginner section as I did not want to migrate to this thread.

viewtopic.php?f=13&t=178055

I will test with iPerf3 on two VLANs and report.

The fan question is essential as I might ship back the CRS312 and buy a fanless Mikrotik switch with swOS.

Who is online

Users browsing this forum: GoogleOther [Bot] and 80 guests