Mikrotik Per Connection Queue (PCQ)

easy traffic shaping

Requirements

we’re assuming CLI and using the device as DNS forwarder already

ping router.lan
ssh router.lan -l admin

PCQ setup

every user device gets a 10Mbit/s internet connection behind a 100Mbit/s line

/ip firewall mangle
add chain=prerouting action=mark-packet in-interface=ether1 new-packet-mark=client_download
add chain=prerouting action=mark-packet in-interface=bridge new-packet-mark=client_upload
#in-interface=!ether1

/queue type
add name="PCQ_download" kind=pcq pcq-rate=10M pcq-classifier=dst-address
add name="PCQ_upload" kind=pcq pcq-rate=10M pcq-classifier=src-address

/queue tree
add parent=global queue=PCQ_download packet-mark=client_download
add parent=global queue=PCQ_upload packet-mark=client_upload

Acceptance

network performance graphs

    /tool graphing interface
    add allow-address=192.168.1.0/24

    /tool graphing queue
    add allow-address=192.168.1.0/24

    /tool graphing resource
    add allow-address=192.168.1.0/24

Resources

Manual:Queues - PCQ https://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ

Manual:Queues - PCQ Examples https://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ_Examples

MikroTik RouterOS Workshop - QoS Best Practice https://mum.mikrotik.com/presentations/CZ09/QoS_Megis.pdf


GUIDES | LECTURES | BENCHMARKS | SMTP HEALTH