Cannot get Queues to work - cAP AC

Hi,

I just bought cAP AC and it is my first and only Mikrotik device.

I am currently trying to set up simple bandwidth control where I want to limit all traffic on wlan to let’s say 10Mbit. These are the steps that I take:

  1. Go to Queues → Simple queues
  2. Set target to 192.168.1.0/24
  3. Set upload and download limit and click Ok.

The Queue is shown but it is simply not working, as every device connected still gets full bandwidth. Am I doing something wrong? Is it possible to have bandwidth control with only cAP or do I also need router for this to work? I tried googling and searching across forum but nothing helped.

Thank you!

You should disable Fasttrack for any traffic you want to queue.

I tried doing that but I am not sure how do I do it? It says to just remove fasttrack rule from the firewall but I don’t have any rules in my firewall since I am just using AP and not the router. The router is not Mikrotik but carrier provided.

So you are saying you are just bridging interfaces together… I do not think you can use Simple Queues in this case. And if you decide to try Queue Trees instead, make sure you specify one of the interface queues (not global!) as a parent to your queues.

For a better understanding, please take a look at the Packet Flow diagram.

So technically if I want to do the simple queue I would need to get Mikrotik router? It is not possible to do simple queue with cAP AC alone (in WISP ap mode) and no other Mikrotik equipment?

Simple queues are perfectly usable on cAP ac, but for them to work you need to actually route traffic, i.e. to use your cAP ac as a router, not just AP.

Alternatively, you may try enabling use-ip-firewall option on the bridge (see the manual). Again, please consult the packet flow diagram (following the link from my previous post).

P.S. The following quote makes me think you are using QuickSet. You should either use QuickSet only (but it does not allow to manage queues), or forget about it once and for all. Once you changed anything outside of QuickSet, going back to QuickSet is calling for trouble.

Wow, once I enabled use-ip-firewall everything started working as expected. I managed to set up both simple queues and queue trees with PCQ queue type in a matter of minutes. Thank you!
I tried consulting packet flow diagram but since I am just a beginner, I don’t understand a lot of it. Once you understand all of the networking terminology I guess it becomes crystal clear, but I am still not at that point, hence why I got Mikrotik AP to practice.

Regarding the QuickSet, I just used it when I initially set up cAP, and am not using anything there anymore but am manually changing everything, is that approach good?

Just one quick question, you said:

And if you decide to try Queue Trees instead, make sure you specify one of the interface queues (not global!) as a parent to your queues.

Why is that? I marked all of the forward packets on bridge and am using that mark to limit bandwidth in Queue Trees. I used global as a parent. Should I use something else?

On the diagram, the queues are under the
(1) [Interface HTB] - Queue Tree with parent=some_interface_queue
(2) [HTB Global] - Queue Tree with parent=global
(3) [Simple Queues] - Simple Queues

The (2) and (3) are in [POSTROUTING] and in [INPUT]. When bridging, packets only hit [POSTROUTING] if use-ip-firewall is enabled, whereas [INPUT] is never hit at all. And so when bridging, (2) and (3) can only be used if use-ip-firewall is enabled, whereas (1) can also be used even if use-ip-firewall is disabled.

Hope this clarifies.

how can i delete range queue from simple queue… like queue ip range 192.168.10.101 to 192.168.10.155 with script ..

Please help me