Manual:Queue
Queues
Submenu level: /queue
Queue implementation in MikroTik RouterOS is based on Hierarchical Token Bucket (HTB). HTB allows to create hierarchical queue structure and determine relations between queues(parent-child, child priority).
In RouterOS it is possible to add queue in 4 different places (HTBs):
- global-in — represents all the input interfaces in general (INGRESS queue). Queues attached to global-in apply to traffic that is received by the router before the packet filtering
- global-out — represents all the output interfaces in general (EGRESS queue).
- global-total —
- <interface name> —
There are two ways how to add queues in RouterOS:
- /queue simple menu - more user-friendly implementation of queues designed to ease configuration of simple,everyday queuing tasks (such as single client upload/download limitation, p2p traffic limitation, etc.).
- /queue tree menu - simplest way to implement advanced queuing tasks (such as global prioritization policy, user group limitations) require market packet flows from /ip firewall mangle facility.
Simple Queues
name
(Text) —lalala
Flow Identifiers
target-addresses
(comma separated list of IP prefixes) —dst-address
(IP prefix) —interface
(Name of interface, or all) —direction
(One of both, upload, download or none) —time
() —p2p
() —packet-marks
(Comma separated list of) —
HTB Properties
parent
(Name of , or none) —priority
(1..8) —queue
(SOMETHING/SOMETHING) —limit-at
(NUMBER/NUMBER) —max-limit
(NUMBER/NUMBER) —burst-limit
(NUMBER/NUMBER) —burst-threshold
(NUMBER/NUMBER) —burst-time
(TIME/TIME) —
And corresponding options for global-total HTB queue:
total-queue
() — corresponds to queue only for global-total queuetotal-limit-at
() — corresponds to limit-at only for global-total queuetotal-max-limit
() — corresponds to max-limit only for global-total queuetotal-burst-limit
() — corresponds to burst-limit only for global-total queuetotal-burst-threshold
() — corresponds to burst-threshold only for global-total queuetotal-burst-time
() — corresponds to burst-time only for global-total queueStatistics
bytes
(NUMBER/NUMBER; read-only) —packets
(read-only) —dropped
(read-only) —overlimits
(read-only) —rate
(read-only) —packet-rate
(read-only) —queued-packets
(read-only) —queued-bytes
(read-only) —lends
(read-only) —borrows
(read-only) —pcq-queues
() —
And corresponding options for global-total HTB queue: