Greetings all - I’ve done a search in the forums for this subject, but can’t find info specific to my confusion…
The aim is to use PCQ for equal-connection sharing within and between PPPoE users on a bridged RB just shaping in & out traffic from remote sites handling the PPPoE connections.
this is my Simple Queue config:
add name="Parent \(2\)" target-addresses=10.0.96.0/21 dst-address=0.0.0.0/0 \
interface=all parent=none direction=both priority=2 \
queue=pcq-src-add/pcq-dest-add limit-at=1700000/1700000 \
max-limit=1700000/1700000 total-queue=default-small disabled=no
add name="https \(3\)" dst-address=0.0.0.0/0 interface=all parent="Parent (2)" \
packet-marks=users-https direction=both priority=3 \
queue=pcq-src-add/pcq-dest-add limit-at=128000/128000 \
max-limit=1700000/1700000 total-queue=default disabled=no
add name="users \(4\)" dst-address=0.0.0.0/0 interface=all parent="Parent (2)" \
packet-marks=users direction=both priority=4 \
queue=pcq-src-add/pcq-dest-add limit-at=750000/750000 \
max-limit=1700000/1700000 total-queue=default disabled=no
add name="mail \(5\)" dst-address=0.0.0.0/0 interface=all parent="Parent (2)" \
packet-marks=mail direction=both priority=5 \
queue=pcq-src-add/pcq-dest-add limit-at=128000/128000 \
max-limit=1000000/1000000 total-queue=default disabled=no
add name="p2p-after-hours \(8\)" dst-address=0.0.0.0/0 interface=all \
parent="Parent (2)" packet-marks=p2p-after-hours direction=both priority=8 \
queue=pcq-src-add/pcq-dest-add limit-at=64000/64000 \
max-limit=64000/128000 total-queue=default disabled=no
add name="p2p-office-hrs \(8\)" dst-address=0.0.0.0/0 interface=all \
parent="Parent (2)" packet-marks=p2p direction=both priority=8 \
queue=pcq-src-add/pcq-dest-add limit-at=16000/16000 \
max-limit=16000/16000 total-queue=default disabled=no
When using simple queues, I get confused between PCQ classifiers of src-address and dst-address.
How are they identified at each point in the flow? Where my confusion stems from is between using torch on Internet and Client interfaces, and /ip firewall connections.
If I torch the outgoing-to-client interface, I see ‘source address’ for clients that are downloading.
If I torch the up-to-internet interface, I see ‘destination address’ for clients’ traffic uploading.
In /ip firewall connections, I see download connections by clients as ‘source address’ and upload as ‘destination address’.
I identify the above by download/upload speeds and number of connections…
The confusion comes from the wiki (http://wiki.mikrotik.com/wiki/PCQ_Examples) which mentions Queue trees and defining pcq as ‘dest-addr’ for download, and ‘src-address’ for upload, but my torching does not seem to coincide with this.
Can anyone clarify this for me? Did I miss something in the manual?
Also, if I use the ‘print’ command which returns the following code:
> queue simple pr
Flags: X - disabled, I - invalid, D - dynamic
2 name="p2p-after-hours (8)" dst-address=0.0.0.0/0 interface=all parent=Parent (2) packet-marks=p2p-after-hours
direction=both priority=8 queue=pcq-src-add/pcq-dest-add limit-at=64000/64000 max-limit=64000/128000
total-queue=default
3 name="p2p-office-hrs (8)" dst-address=0.0.0.0/0 interface=all parent=Parent (2) packet-marks=p2p direction=both
priority=8 queue=pcq-src-add/pcq-dest-add limit-at=16000/16000 max-limit=16000/16000 total-queue=default
5 name="Parent (2)" target-addresses=10.0.96.0/21 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=2 queue=pcq-src-add/pcq-dest-add limit-at=1700000/1700000 max-limit=1700000/1700000
total-queue=default-small
6 name="https (3)" dst-address=0.0.0.0/0 interface=all parent=Parent (2) packet-marks=users-https direction=both
priority=3 queue=pcq-src-add/pcq-dest-add limit-at=128000/128000 max-limit=1700000/1700000
total-queue=default
7 name="users (4)" dst-address=0.0.0.0/0 interface=all parent=Parent (2) packet-marks=users direction=both priority=4
queue=pcq-src-add/pcq-dest-add limit-at=750000/750000 max-limit=1700000/1700000 total-queue=default
8 name="mail (5)" dst-address=0.0.0.0/0 interface=all parent=Parent (2) packet-marks=mail direction=both priority=5
queue=pcq-src-add/pcq-dest-add limit-at=128000/128000 max-limit=1000000/1000000 total-queue=default
Does the numbered order affect the processing order if I did not use packet-marks & parents? Is there a specific order of processing (ie like filter & mangle rules from top to bottom)?
Thanks in advance for any responses…
![]()
PS - is there any advantage to using simple queues over queue tree, or vice-versa?