Configuring simple bandwidth control - 4 rules

Bandwidth management is crucial to successful (W)ISP management of resources, which begins with Bandwidth Control..
A more sophisticated method of bandwidth allocation should be used, but that involves a learning curve. While you are learning this complex process you can implement 4 rules using CLI or Winbox, which will provide basic bandwidth limiting to each IP without regard to the IP scheme behind the Mirkotik.


In this example let's assume:
The interface that this subnet is on = Local
The desired download/upload is 384/96 Kbps for each


Add 2 PCQ types:
queue type add name=Down kind=pcq pcq-rate=393216 pcq-limit=50 \
classifier=dst-address
queue type add name=Up kind=pcq pcq-rate=98304 pcq-limit=50 \
classifier=src-address


Add 2 simple queues with above queue type:
name="download" target-address=0.0.0.0/0 dst-address=0.0.0.0/0 \
interface=Local queue=Down priority=1 limit-at=0/0 max-limit=0/0
name="upload" target-address=0.0.0.0/0 dst-address=0.0.0.0/0 \
interface=Public queue=Up priority=1 limit-at=0/0 max-limit=0/0

The Mikrotik documentation states that for "normal PCQ performance you have to use queue trees. It is not recommended to use simple queues for limiting traffic with PCQ."

I have tested this configuration and it seems to work well, but is offered as "stop gap" measure until more complex bandwidth control is mastered




موضوعات مشابه: