Address Lists and Queue

I have an address list I dynamically add IP’s too. I want Mikrotik to queue any addresses in the list to a certain ratelimit.

Say these IP’s are in the list.

12.0.0.112
12.0.0.34
12.0.0.86

I want them all queued to say 64k/128k but each IP needs to be in its seperate queue.

Can anyone tell me how to do this?

Matt

use PCQ queues

You can have seperate simple queue for different IPs
ex. target-address=12.0.0.112/32..

use PCQ queues

I thought that would work. Ran into issue. The IP’s I am wanting to rate limit are PPPoE users that already have pppoe queues. What I am doing is at peak times trying to limit the heaviest bandwidth users. I do this by creating an address list on mikrotik using ping packets from another server. That part works fine. The address list has a 15 minute time out and when the heavy load goes away the entries simply are not renewed. What does not work is the PCQ queue.

/queue type
add kind=pcq name=“pcq-dst” pcq-classifier=dst-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000
add kind=pcq name=“pcq-src” pcq-classifier=src-address pcq-limit=50 pcq-rate=0 pcq-total-limit=2000

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=128000 name=“hev-in” packet-mark=hev-in parent=global-in priority=8
queue=pcq-dst
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=56000 name=“hev-out” packet-mark=hev-out parent=global-in priority=8
queue=pcq-src

It works perfectly as expected if just one IP is in the address list that I mark as hev-in or hev-out with mangle. User is limited too 56k/128k as desired even if there pppoe profile says like 192k/1024k. If there is more then one and especially if there are like 40 they all freeze up. I imagine it is likely due to not having a real output interface due to them being PPPoE?

Any ideas to make this work?

Matt

Shouldn’t the parent of pcq-dst be global-out, or more suitably, the interface the packets are leaving?

See http://www.mikrotik.com/testdocs/ros/2.9/img/packet_flow31.jpg