I have a simple routing situation: an interface named lan for local lan network, an interface called pppoe for internet. I want to use PCQ to equalize the internet traffic across many users. But it is not woking. Below are the steps I made:
-
Mark the download the upload packets. The result is:
[admin@MikroTik] > /ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=forward action=mark-packet new-packet-mark=client_upload passthrough=yes in-interface=lan out-interface=pppoe
1 chain=forward action=mark-packet new-packet-mark=client_download passthrough=yes in-interface=pppoe out-interface=lan2. Create PCQ queue types. The result is:
[admin@MikroTik] /queue type> print
Flags: * - default
0 * name=“default” kind=pfifo pfifo-limit=50
1 * name=“ethernet-default” kind=pfifo pfifo-limit=50
2 * name=“wireless-default” kind=sfq sfq-perturb=5 sfq-allot=1514
3 * name=“synchronous-default” kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000
4 * name=“hotspot-default” kind=sfq sfq-perturb=5 sfq-allot=1514
5 name=“PCQ_download” kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32 pcq-dst-address-mask=32 pcq-src-address6-mask=64 pcq-dst-address6-mask=64
6 name=“PCQ_upload” kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32 pcq-dst-address-mask=32 pcq-src-address6-mask=64 pcq-dst-address6-mask=64The last two items are added by me. -
Create queue, the result is below:
[admin@MikroTik] /queue tree> print
Flags: X - disabled, I - invalid
0 name=“Download” parent=global-in packet-mark=client_download limit-at=0 queue=PCQ_download priority=8 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
1 name=“Upload” parent=global-out packet-mark=client_upload limit-at=0 queue=PCQ_upload priority=8 max-limit=400k burst-limit=0 burst-threshold=0 burst-time=0sThose steps are not working. The counters for Download queue, i.e. Avg. Rate, Queued Bytes, Bytes and Packets are always zero. The upload queue has increasing counters except Queued Bytes which is always zero.
However the counters for marked packets seems valid:
I checked this configuration many times, but cannot figure out where is wrong. Could somebody help me? Thanks in advance.