QUEUE : PCQ + default-small combination (for WAN)

Dear friends,

Despite being a user of this brand for a decade, the “queue” part has always been foreign to me.
I feel uncomfortable and childish, but I would like to ask you nicely for assistance :
My goal would be to apply “pcq-queueONLY for internet connection (i.e. NOT for internal LAN). Unfortunately, in this destination, the internet only has a speed of 25Mbit/3Mbit, so I would like to split the bandwith evenly. On the other hand, I have several devices (e.g. cameras) where I would like to dedicate/guarantee a certain speed though. Regarding PCQ, I’ve gone through the documentation and videos, but I’ve also reached a limitation on the LAN, which is undesirable. I suppose the error was the designation in “Simple Queue - General - target: My internal LAN IP”. Will I please achieve my goal if I replace this entry with “ether1”, which is my WAN port (i.e. “Simple Queue - General - target: ether1”) ? I.e. the PCQ will be applied and functional only to the internet connection ? At the same time, there is the question of how to apply the guaranteed speeds mentioned above ? By creating another “default-small” Queue, where as “target” I mark the IP addresses (they are fixed) of the devices - the mentioned cameras ?

Thank you very much !

base que on IP

make at least 3 que
1 main, 2 parrent local, 1 sub local_all
before local_all add services as you wish
do the same with internet access

example in attachment & code below
/queue simple
add max-limit=1G/1G name=q100_Main queue=default/default target=10.0.0.0/8
add dst=10.0.0.0/8 max-limit=1G/1G name=q110_local parent=q100_Main priority=7/7 queue=default/default target=10.0.0.0/8
add dst=10.10.77.6/32 limit-at=1M/1M max-limit=10M/10M name=q111_local_sip parent=q110_local priority=2/2 target=“”
add dst=10.10.77.183/32 max-limit=200M/200M name=q112_local_files parent=q110_local priority=6/6 queue=default/default target=“”
add max-limit=1G/1G name=q119_local_all parent=q110_local queue=default/default target=“”
add max-limit=30M/250M name=q120_internet parent=q100_Main priority=6/6 queue=default/default target=10.0.0.0/8
add dst=8.8.8.8/32 limit-at=1M/1M max-limit=1M/1M name=q121_internet_dns parent=q120_internet priority=2/2 target=“”
add limit-at=5M/5M max-limit=10M/10M name=q122_internet_web packet-marks=pm_internet_web parent=q120_internet priority=5/5 queue=pcq-upload-default/pcq-download-default target=“”
add max-limit=30M/250M name=q129_internet_all parent=q120_internet queue=pcq-upload-default/pcq-download-default target=“”
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark dst-port=80,443 new-connection-mark=cm_internet_web passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark=cm_internet_web new-packet-mark=pm_internet_web passthrough=yes
que1.png

Hi @panisk0,

thank you for your reply !

Hi, I´m not really knowledgeable about queues, so just a word of caution, as last weekend I managed to cut myself completely off from my RB5009 by trying to experiment with a queue setup.
Use safe mode!

My only way back was using a console provided by the sadly abandoned WOOBM USB stick. I almost had to reset my device.

Hi @woland !

Thank you for the caution ! Im OK with that, however i gave up with the whole “queue” thing. Now i remembered, why i always skipped this (from my side really usable…) feature :smiley: