Community discussions

MikroTik App
 
damianivereigh
just joined
Topic Author
Posts: 15
Joined: Sun May 22, 2016 1:06 am

Efficient packet marking - queue tree

Sat Feb 24, 2018 2:59 pm

I am running a large number of vlans (>1000) and need to prioritise traffic between the vlans. So for example I have a total capacity of 2Gb for the interface (that holds all the vlans) and need to make sure that each vlan gets the right priority within that 2Gb. However I can't seem to do this without overloading the CCR1036 I am using. The router will happily manage the shaping on the individual vlans (with the target as the vlan interface) using simple queues - but doesn't give me the ability to prioritise the traffic. However once I try to use simple queues with a parent (and I have to change to using IP addresses rather than the interface name), the router's CPU maxes out.

I would rather use queue trees, however then I get into issues with the ip firewall mangle rules - once you have a large number of rules it takes too long to traverse them (a rule for each vlan). I have tried using connection marking which seems to be a lot quicker (or rather only new connections need to traverse the long list), however then it takes too long to mark the packets based on the connection mark because we're back to the long list again. What would be ideal is a rule that makes the packet mark the same as the connection mark (or alternatively have the queue tree accept connection marks).

Anyone got any ideas about how to do QoS with a large number of data streams?
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Efficient packet marking - queue tree

Sat Feb 24, 2018 3:31 pm

I believe Simple Queue is better in this situation, below might provide some guidance

https://www.youtube.com/watch?v=Ro3B1kQUokE&t=411s
 
damianivereigh
just joined
Topic Author
Posts: 15
Joined: Sun May 22, 2016 1:06 am

Re: Efficient packet marking - queue tree

Sun Feb 25, 2018 1:42 am

I believe Simple Queue is better in this situation, below might provide some guidance

https://www.youtube.com/watch?v=Ro3B1kQUokE&t=411s
Thanks that gives me some good background (i.e. confirms) what I am seeing. So the suggested solution is to use simple queues with a parent. However there seems to either a limit on the number of child queues or at best only a single cpu can be used with each parent and their children. Given that I essentially need to put all the vlans under a single parent (to enforce the overall 2Gb limit and allow priorities within it), this is also going to overload the CCR. This is what I have seen happening.

I am beginning to wonder if the CCR is the wrong choice of gear - maybe I need to investigate running this on a CHR or some sort of x86 where each processor has much more processing power.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3007
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Efficient packet marking - queue tree

Sun Feb 25, 2018 4:14 am

take a look at this shapping using marks on bridge filter

maybe can be helpfull

https://www.youtube.com/watch?v=6eeYac5xBrE

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 186 guests