Skip to content

Queues

RouterOS has two queue mechanisms — Simple Queue and Queue Tree — both built on the same underlying Hierarchical Token Bucket (HTB) algorithm. The difference is the level of control they offer.

Choosing between Simple Queue and Queue Tree

Section titled “Choosing between Simple Queue and Queue Tree”
RequirementSimple QueueQueue Tree
Per-IP rate limiting
No firewall mangle required
Hierarchical bandwidth sharinglimited
Separate upload / download shaping
Per-application traffic shapinglimited
Multi-level priority classes
ISP subscriber tiers

Use Simple Queue when you need fast, per-client rate limits with minimal configuration overhead. Rules are matched top-down and the first match wins.

Use Queue Tree when you need packet-mark-based shaping, multi-level hierarchies, or guaranteed bandwidth across traffic classes. Requires mangle marks but offers full HTB control.

Both Simple Queue and Queue Tree use queue types to determine how packets are scheduled within a queue. The default is FIFO, but you can assign PCQ, SFQ, RED, CAKE, or FQ-CoDel types.

See Queue Types for a full reference.

DocumentWhat it covers
Queue TypesFIFO, PCQ, SFQ, RED, HTB, CAKE, FQ-CoDel disciplines
Queue TreeHierarchical shaping, HTB, multi-class QoS
Burst Settingsburst-limit, burst-threshold, burst-time mechanics
Priority QueuingPriority 1–8 in Simple Queue and Queue Tree
PCQ ExamplePer-connection fairness for shared links
PFIFO / BFIFOBasic FIFO queue types
DSCP Queue IntegrationIntegrating DSCP marks with queue shaping
HTB ISP Tiered BandwidthMulti-tier subscriber bandwidth management
Home Bandwidth ManagementPractical home/SOHO queue setup
CAKE / FQ-CoDelModern AQM algorithms for bufferbloat elimination
  • Simple Queue — per-client rate limiting without mangle
  • Mangle — packet marking prerequisite for Queue Tree
  • Packet Flow — where queues sit in the processing pipeline