MikroTik RouterOS v2.9 Reference Manual page 434

Reference manual
Table of Contents

Advertisement

Here are some examples on how the HTB works.
Imagine the following scenario - we have 3 different kinds of traffic, marked in /ip firewall mangle
(packet_mark1, packet_mark2 and packet_mark3), and now have bulit a HTB hierarchy:
Now let us describe some scenarios, using this HTB hierarchy.
1.
Imagine a situation when there have packets arrived at Leaf1 and Leaf2. Because of this, Leaf1
attaches itself to this level's (Level 0) self slot with priority=8 and Leaf2 attaches to self slot
with priority=7. Leaf3 has nothing to send, so it does nothing.
This is a simple situation: there are active classes (Leaf1 and Leaf2) at Level 0, and as they
both are in green state, they are processed in order of their priorities - at first, we serve Leaf2,
then Leaf1.
2.
Now assume that Leaf2 has to send more than 256kbps, for this reason, it attaches itself to its
parent's (ClassB) inner feed, which recursively attaches itself to Level1 self slot at priority=7.
Leaf1 continues to be at green state - it has to send packets, but not faster than 1Mbps. Leaf3
still has nothing to send.
Page 420 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents