Community discussions

MikroTik App
 
malinux
just joined
Topic Author
Posts: 2
Joined: Sun Mar 01, 2015 12:44 pm

Interface bandwidth limit on CRS226-24G-2S+RM

Sun Mar 01, 2015 2:11 pm

Hi

I'm trying to configure bandwidth limit per interface on CRS226-24G-2S+RM, RouterOS L5, version 6.27. Is it possible to set queuing on the hardware interface and not use expensive CPU resources?

I have tried different combinations of:
/queue simple add max-limit=1M/1M name=ether2 queue=ethernet-default/ethernet-default target=ether2

, but nothing seems to go in the queue?

I also tried:
/interface ethernet> set [ find default-name=ether2 ] name=ether2 bandwidth=1M/1M

, this does not seem supported?

Cheers
Martin
 
malinux
just joined
Topic Author
Posts: 2
Joined: Sun Mar 01, 2015 12:44 pm

Re: Interface bandwidth limit on CRS226-24G-2S+RM

Tue Mar 03, 2015 10:07 pm

Hi

I'm trying to configure bandwidth limit per interface on CRS226-24G-2S+RM, RouterOS L5, version 6.27. Is it possible to set queuing on the hardware interface and not use expensive CPU resources?

I have tried different combinations of:
/queue simple add max-limit=1M/1M name=ether2 queue=ethernet-default/ethernet-default target=ether2

, but nothing seems to go in the queue?

I also tried:
/interface ethernet> set [ find default-name=ether2 ] name=ether2 bandwidth=1M/1M

, this does not seem supported?

Cheers
Martin
Fond this and it limits traffic bandwidth:

/interface ethernet switch ingress-port-policer
add port=ether2 meter-unit=bit rate=10M
/interface ethernet switch shaper
add port=ether2 meter-unit=bit rate=10M

"switch shaper" is accurate , but "ingress-port-policer" is very inaccurate - mostly just gives you much lower bandwidth compared to what you configured.
Actually CPU is usage goes high but it goes even higher with no bandwidth limit configured so maybe it's done at interface level anyway.

Doing bandwidth tests to the Internet (I only have a 100 mbit/s both ways :-)) on just one switch port, the CPU goes to 50% usage (with no bandwidth limit configured). We are only talking switching here. What happens on lets say close to 1 gbit/s bandwidth from many ports?

This is my simple layer2 config:


[admin@UX1] > export
# mar/01/2015 17:43:19 by RouterOS 6.27
# software id = 98Q9-LN5M
#
/interface bridge
add mtu=1500 name=BR-VLAN-1
add mtu=1500 name=BR-VLAN-201
add mtu=1500 name=BR-VLAN-202
add mtu=1500 name=BR-VLAN-203
add mtu=1500 name=BR-VLAN-204
add mtu=1500 name=BR-VLAN-205
add mtu=1500 name=BR-VLAN-206
add mtu=1500 name=BR-VLAN-207
add mtu=1500 name=BR-VLAN-208
add mtu=1500 name=BR-VLAN-209
add mtu=1500 name=BR-VLAN-210
/interface vlan
add interface=BR-VLAN-1 l2mtu=1584 name=VLAN-1 vlan-id=1
add interface=ether24 l2mtu=1584 name=VLAN-201 vlan-id=201
add interface=ether24 l2mtu=1584 name=VLAN-202 vlan-id=202
add interface=ether24 l2mtu=1584 name=VLAN-203 vlan-id=203
add interface=ether24 l2mtu=1584 name=VLAN-204 vlan-id=204
add interface=ether24 l2mtu=1584 name=VLAN-205 vlan-id=205
add interface=ether24 l2mtu=1584 name=VLAN-206 vlan-id=206
add interface=ether24 l2mtu=1584 name=VLAN-207 vlan-id=207
add interface=ether24 l2mtu=1584 name=VLAN-208 vlan-id=208
add interface=ether24 l2mtu=1584 name=VLAN-209 vlan-id=209
add interface=ether24 l2mtu=1584 name=VLAN-210 vlan-id=210
/port
set 0 name=serial0
/interface bridge port
add bridge=BR-VLAN-201 interface=ether1
add bridge=BR-VLAN-201 interface=VLAN-201
add bridge=BR-VLAN-202 interface=ether2
add bridge=BR-VLAN-202 interface=VLAN-202
add bridge=BR-VLAN-203 interface=ether3
add bridge=BR-VLAN-203 interface=VLAN-203
add bridge=BR-VLAN-204 interface=ether4
add bridge=BR-VLAN-204 interface=VLAN-204
add bridge=BR-VLAN-205 interface=ether5
add bridge=BR-VLAN-205 interface=VLAN-205
add bridge=BR-VLAN-206 interface=ether6
add bridge=BR-VLAN-206 interface=VLAN-206
add bridge=BR-VLAN-207 interface=ether7
add bridge=BR-VLAN-207 interface=VLAN-207
add bridge=BR-VLAN-208 interface=ether8
add bridge=BR-VLAN-208 interface=VLAN-208
add bridge=BR-VLAN-209 interface=ether9
add bridge=BR-VLAN-209 interface=VLAN-209
add bridge=BR-VLAN-210 interface=ether10
add bridge=BR-VLAN-210 interface=VLAN-210
add bridge=BR-VLAN-1 interface=ether24
/interface ethernet switch ingress-port-policer
add port=ether2 meter-unit=bit rate=10M
/interface ethernet switch shaper
add port=ether2 meter-unit=bit rate=10M
/ip address
add address=192.168.0.10/24 interface=BR-VLAN-1 network=192.168.0.0
/ip proxy
set cache-path=web-proxy1
/ip route
add distance=1 gateway=192.168.0.1
/system clock
set time-zone-name=Europe/Copenhagen
/system identity
set name=UX1
[admin@UX1] >

Who is online

Users browsing this forum: Mr47, mtkvvv and 118 guests