The main queue creating
The process of clearly forming movement occure at the main queue, which are consistent with htb on algorithm rule. This algorithm is defined by “queue type”.
The bandwidth limiting : “input” <=> “output” at the system is made ours purpose up. So, we ought to create the main queue (parent), which will take control at secondary queues “(children)”, and also appropriately on:
- external interface (Internet) – forming queue UPLOAD
- local interface – LAN – forming queue DOWNLOAD
By the way, we will use from possible of maximal bandwidth control, acessing for given transmit direction, in order to control eventually global transgressions.
(terminal)
/queue tree add name="Download" parent=Lan queue=sfq max-limit=1730kThe new queue will be come into, which will be assigned to interial LAN.
(terminal)
/queue tree add name="Upload" parent=Internet queue=sfq max-limit=1730kThe new queue will be come into, which will be assigned to external Internet interface.
The above example assumes use of symmetrical connection POLPAK 2Mbps. As we could see, the 2048 Kbps was reduced at about 10%, in order to ensure service level by maximal queue use. Additional upload protection for DSL connections is very important, that is why I suggest maximal (real) value reducing by even 30%.