MikroTik PCQ & Simple Queue generator

Size pcq-limit and pcq-total-limit safely for your router RAM and copy ready-to-paste RouterOS v6 or v7 commands. Everything runs in your browser: nothing you enter is sent anywhere.

Queue mode
RouterOS version

Subscriber LAN or PPPoE pool in CIDR form

Total upstream download max-limit

Total upstream upload max-limit

Active subscribers at peak hour

pcq-rate cap per dst-address

pcq-rate cap per src-address

RouterOS default is 50 KiB

Clamps pcq-total-limit to prevent OOM

Used for queue type and rule names

PCQ limit (per stream)
50 KiB
PCQ total limit
2,500 KiB
Estimated PCQ RAM
5.86 MB (4.6%)
Per-user PCQ rate
10M down / 5M up
Active sub-streams
50
Contention ratio
5:1

Both PCQ queues together reserve roughly 5.86 MB of RAM (4.6% of 128 MB), leaving headroom for routing tables and connection tracking.

RouterOS v7 script

# MikroTik PCQ + Simple Queue (RouterOS v7)
# Target: 192.168.88.0/24 | WAN: 100M down / 50M up | Est. PCQ RAM: 5.86 MB (4.6% of 128 MB)
# Note: exclude this subnet from FastTrack in /ip firewall filter or queues will be bypassed.

/queue type
add name="pcq-download-ISP-PCQ-Users" kind=pcq pcq-rate=10M pcq-classifier=dst-address pcq-limit=50KiB pcq-total-limit=2500KiB
add name="pcq-upload-ISP-PCQ-Users" kind=pcq pcq-rate=5M pcq-classifier=src-address pcq-limit=50KiB pcq-total-limit=2500KiB

/queue simple
add name="ISP-PCQ-Users" target=192.168.88.0/24 max-limit=50M/100M queue=pcq-upload-ISP-PCQ-Users/pcq-download-ISP-PCQ-Users

How MikroTik PCQ sizing works

PCQ limit and total limit

RouterOS creates one sub-stream per IP address using dst-address for download and src-address for upload. Set pcq-total-limit to concurrent users times pcq-limit, then cap it so buffers stay within your router's RAM.

Simple Queue vs Queue Tree

Simple Queue with PCQ types is the fastest way to share one WAN pipe across a subnet. Queue Tree with firewall mangle gives tighter control per interface when you separate traffic classes.

FastTrack and queue bypass

MikroTik FastTrack skips Simple Queues and Queue Trees. Exclude your subscriber subnet from the fasttrack-connection filter rule before pasting the generated commands.

Moving beyond manual queues

Manual PCQ scripts share bandwidth evenly, but they do not disconnect expired accounts or apply per-package speeds. Pair MikroTik with RADIUS billing to automate speed profiles, FUP throttling and payments.

Automate MikroTik speed profiles and billing with RADIUS.

Try it for 14 days with no card. If you stay, your first invoice covers those 14 days at the usual rates, never less than the $5 monthly minimum (KES 500 in Kenya). Leave within 14 days and you pay nothing.