PCQ first steps..

OK with a third question post in two days I supposed I’ll get banned from the forum soon.. :astonished: :slight_smile: (how can I give karma to people..? or is it disabled for new members)

having these queue tree (packets are market for download and upload)

/queue tree
add name=queue1 packet-mark=Client_download parent=global queue=“1M Download 1,5M Burst”
add name=queue2 packet-mark=Client_upload parent=global queue=“384K Upload 512K Burst”


and these queue types

/queue type
add kind=pcq name=“1M Download 1,5M Burst” pcq-burst-rate=1536k pcq-burst-threshold=768 pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=1M pcq-src-address6-mask=64
add kind=pcq name=“384K Upload 512K Burst” pcq-burst-rate=512k pcq-burst-threshold=256 pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=384k pcq-src-address6-mask=64

and supposing that they are set correctly (are they?) for 1M limit per user with a burst to 1536k

aaand if I want to set that all users together can’t go over total 11M download

should I just add a
add max-limit=11M name=global-download parent=global queue=default

and set it as parent to “1M Download 1,5M Burst” or that will mess the PCQ?


I’m reading this example here: https://aacable.wordpress.com/tag/mikrotik-qos/
but in 3- Create Parent queues
he has add disabled=yes

which confuses me..

OK I did this.. hopefully it’s not too wrong..

/queue type
add kind=pcq name="1M Download 1,5M Burst" pcq-burst-rate=1536k pcq-burst-threshold=768 pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=1M pcq-src-address6-mask=64
add kind=pcq name="384K Upload 512K Burst" pcq-burst-rate=512k pcq-burst-threshold=256 pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=384k pcq-src-address6-mask=64

/queue tree
add max-limit=12M name=global_down_12M parent=global queue=default
add max-limit=896k name=global_up_896k parent=global queue=default
add name=queue1 packet-mark=Client_download parent=global_down_12M queue="1M Download 1,5M Burst"
add name=queue2 packet-mark=Client_upload parent=global_up_896k queue="384K Upload 512K Burst"

to share a 12M line to 40-50 users..