Freakydot contains tutorials, free download, tips, tricks and everything you wanted to know from Information Technology. All operating system like as Windows XP, Windows 2000, Windows Vista and linux distro like as RedHat, Debian, Slackware, Mikrotik etc would an objects of contents. In the future, I may include some of the other technology like VoIP for Next Generation Network (NGN).  Many of the contains in freakydot was copy from another site which we didn’t mention. So please forgive us .... We just want to educate people with Information Technology.

Related Articles

Support us in making a small donation:


Freaky Feeds
Freakydot Feed
Configuring Mikrotik Simple Queues PDF
User Rating: / 1
PoorBest 
Saturday, 18 July 2009 04:31

Simple queues can be used to set up bandwidth management for the whole traffic leaving an interface, or for certain source and/or destination addresses. For more sophisticated queue setup use the queue trees described further on.

To add simple queues, use the /queue simple add command:

 

[admin@MikroTik] queue simple> add dst-address=192.168.0.0/24 interface=ether1 \
limit-at=128000
[admin@MikroTik] queue simple> print
Flags: X - disabled, I - invalid
0 name="" src-address=0.0.0.0/0 dst-address=192.168.0.0/24
interface=ether1 limit-at=128000 queue=default priority=8 bounded=yes

[admin@MikroTik] queue simple>

Argument description:

name - descriptive name for the queue
src-address - Source IP address. Can be set in the form a.b.c.d/n, where n is network mask
src-netmask - Source netmask in decimal form a.b.c.d
dst-address - Destination IP address. Can be in the form a.b.c.d/n
dst-netmask - Destination netmask in decimal form a.b.c.d
interface - Outgoing interface of the traffic flow
limit-at - Maximum stream bandwidth (bits/s). 0 means no limit (default for the interface).
queue - queue type. If you specify the queue type other than default, then it overrides the default queue type set for the interface under /queue interface. See the /queue type for available types.
priority - Flow priority (1..8), 1 is the highest.
bounded - Queue is bounded.

To track how the rules are processed, see the bytes and packets counters for the queues:

 

[admin@MikroTik] queue simple> .. tree print
Flags: X - disabled, I - invalid, D - dynamic
0 D name="" parent=ether1 flow="" limit-at=128000 max-burst=20
queue=default priority=8 weight=1 allot=1514 bounded=yes


[admin@MikroTik] queue simple>

Queue rules are processed in the order they appear in the /queue tree print list. If some packet matches the queue rule, then the queuing mechanism specified in that rule is applied to it, and no more rules are processed for that packet.