I'm trying to use queue trees to prioritize AND shape traffic. I want to make few clients with 256k/256k dl/ul traffic limit and prioritize ICMP, HTTP, POP3, DNS for them. I've started by simply adding two child queues with priorities (all packets in mangle are marked properly and all queues are ticking):
Code: Select all
Flags: X - disabled, I - invalid
0 name="Main Down" parent=intranet packet-mark="" limit-at=2000000
queue=pcq-down priority=8 max-limit=2000000 burst-limit=0
burst-threshold=0 burst-time=0s
1 name="Clients 256k" parent=Main Down packet-mark="" limit-at=0
queue=pcq-down-256k priority=6 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
2 name="queue1" parent=Clients 256k packet-mark=256k in limit-at=0
queue=pcq-down priority=1 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
3 name="queue2" parent=Clients 256k packet-mark=256k in2 limit-at=0
queue=pcq-down priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
Code: Select all
5 name="pcq-up" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address
pcq-total-limit=2000
6 name="pcq-down" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address
pcq-total-limit=2000
7 name="pcq-down-256k" kind=pcq pcq-rate=262144 pcq-limit=50
pcq-classifier=dst-address pcq-total-limit=2000
I don't want to create separate tree branch for each of my clients and if i set "pcq-down-256k" as queue type for "queue1" and "queue2" EACH type of trafic will get 256k. Wat's wrong with my setup? How could I achieve my goal?