Simple Queues v6

Hello, in RouterOS v6, how are matches found for simple queues?

I’ve seen some mentions that internally there’s a hash based search algorithm to handle this, so CPU impact is minimum now, unlike it was in v5 when it had to be done sequentially. However, the official wiki seems to still define simple queues as sequential (https://wiki.mikrotik.com/wiki/Manual:Queue#Simple_Queues), they even mention a simple queue may actually create 3 queues for global-in, global-out and global-total, but these 3 have become global (as you can see in the packet flow https://wiki.mikrotik.com/wiki/Manual:Packet_Flow_v6) and simple queues are handled independently now (according to this: https://wiki.mikrotik.com/wiki/NetworkPro_on_Quality_of_Service#QoS_Packet_Flow_.26_Single-WAN_Dual-Step_Control_with_RouterOS_v5.21). There’s also a presentation (shared by @mducharme on IRC) that mentions the matching algorithm has been updated, but it doesn’t mention how it was updated (e.g. using a hash based method).

Can anyone please clarify this? Is the wiki outdated for Simple Queues?
Thanks in advance.

Should be fairly easy to test. Create a rule that shapes all 10.0.0.0/8 then place a rule that matches a /32 below it to free it. See if you run at the restricted bandwidth of it matches the second rule. I think they are still sequential but I haven’t played with them too much.

Remember to disable fasttrack rules to allow the simple queue rule to match.

Thank you, but not really what I’m looking for. We have some setups running fine using Simple Queues, but I would like to get an official response (of some sort) on this issue, since there seems to be a lot of confussion around this, mainly because the wiki seems to be outdated.

Probably best to EMAIL support then. Alternatively roll up your sleeves and verify.

If they reply, post here the reply. :slight_smile:

Sure, I have already emailed them, hope to get an answer soon.

This is the response I got from Janis Megis:

Hello,

Yes, that wiki is outdated, we will try to fix it as soon as possible.

Best regards,
Janis M.


MikroTik.com

So it seems it works as described here, and the information in the wiki is no longer valid (outdated).

nice post