Bandwidth Limiting VLANS

Hi All,

We’re currently using mark-connection to mark packets belonging to each VLAN and then a simple queue to rate limit. For example:-

add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=vlan50 new-connection-mark=vlan50-con passthrough=yes
add action=mark-connection chain=postrouting connection-mark=no-mark new-connection-mark=vlan50-con out-interface=vlan50 passthrough=yes
add action=mark-packet chain=prerouting connection-mark=vlan50-con new-packet-mark=vlan50-mark passthrough=no
add action=mark-packet chain=postrouting connection-mark=vlan50-con new-packet-mark=vlan50-mark passthrough=no

/queue simple
add max-limit=100M/100M name=vlan50 packet-marks=vlan50-mark

As the mark-connection seems to be eating CPU (especially when a speed test is run), I’ve noticed that a simple queue has the ability to bind to a VLAN interface so my question is, can I simply replace the mark-connection with a simple queue like:-


/queue simple
/queue simple
add max-limit=100M/100M name=vlan99 target=vlan99

Or am I missing something?

Yeah, you can just use simple queue directly without the mangle rules, something like this: http://forum.mikrotik.com/t/set-bandwidth-limit-on-wan/142824/3

Your goal is simple bandwidth limitation not advanced QoS.