I have migrate from simple queue to queue tree in my mikrotik NAS for my PPPoE clients. The most part of my clients has gray ips like 10.0.0.0/8 and using NAT to reach the Internet. I'm using scheme which was described in Janis Megis QoS Best Practice pdf and his presentation.
1. Add clients in address lists like 3Mbit 5Mbit 10Mbit and so forth using radius.
2. Mark client's packets in mangle forward with speed marks
3. make queue tree with pcq for this marks
/ip firewall mangle add action=mark-packet chain=forward comment="" connection-mark=4Mbit_up disabled=no new-packet-mark=4Mbit_up passthrough=yes add action=mark-connection chain=forward comment="Mark 5Mbit connections and packets download" disabled=no dst-address-list=5Mbit new-connection-mark=5Mbit_down \ passthrough=yes src-address-list=!rialcom add action=mark-packet chain=forward comment="" connection-mark=5Mbit_down disabled=no new-packet-mark=5Mbit_down passthrough=yes add action=mark-connection chain=forward comment="Mark 5Mbit connections and packets upload" disabled=no dst-address-list=!rialcom new-connection-mark=5Mbit_up \ passthrough=yes src-address-list=5Mbit
/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Download parent=global-out priority=1 add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=5Mbit_down packet-mark=5Mbit_down parent=Download priority=8 queue=pcq_5Mbit_down add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Upload parent=global-out priority=1 add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=5Mbit_up packet-mark=5Mbit_up parent=Upload priority=8 queue=pcq_5Mbit_up
This scheme is work, but it's still use cpu same as simple queue.
add kind=pcq name=pcq_5Mbit_down pcq-classifier=dst-address pcq-limit=40 pcq-rate=5000000 pcq-total-limit=20000 add kind=pcq name=pcq_5Mbit_up pcq-classifier=src-address pcq-limit=40 pcq-rate=5000000 pcq-total-limit=20000
Now I need to colour the traffic with QoS.
There is no examples how to do this in Janis presentation, just a few slides and a few words. I've been searching in google, mikrotik wiki, mikrotik forum for some example but nothing
I trying to make QoS in prerouting and global-in like Janis described it on his presentation but on global out priorities overwrite by speed limit queues in queue tree.
Is anyone have an example of using queue tree with PCQ and with QoS on same time? Maybe any ideas how to make this scheme?