Tutorial mikrotik
Queue implementation in MikroTik RouterOS is based on Hierarchical Token Bucket (HTB). HTB allows to create hierarchical queue structure and determine relations between queues. In RouterOS, these hierarchical structures can be attached at two different places, packet flow diagram illustrate both Input and Postrouting chains.