Community discussions

MikroTik App
 
digicomtech
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Fri Apr 20, 2007 5:03 pm
Location: Alma, Qc, Canada
Contact:

Queue tree misunderstood

Mon Aug 17, 2009 6:08 pm

Hi,
maybe there is something i had not understand but if i read the manual:
Each HTB class can be in one of 3 states, depending on data rate that it consumes:

* green - a class the actual rate of which is equal or less than limit-at. At this state, the class is attached to self slot at the corresponding priority at its level, and is allowed to satisfy its CIR limitation regardless of what limitations its parents have. For example, if we have a leaf class with limit-at=512000 and its parent has max-limit=limit-at=128000, the class will still get its 512kbps! All CIRs of a particular level are satisfied before all MIRs of the same level and any limitations of higher levels.
* yellow - a class the actual rate of which is greater than limit-at and equal or less than max-limit (or burst-limit if burst is active). At this state, the class is attached to the inner slot of the corresponding priority of its parent's inner feed, which, in turn, may be attached to either its parent's inner slot of the same priority (in case the parent is also yellow), or to its own level self slot of the same priority (in case the parent is green). Upon the transition to this state, the class 'disconnects' from self feed of its level, and 'connects' to its parent's inner feed.
* red - a class the actual rate of which exceeds max-limit (or burst-limit if burst is active). This class cannot borrow rate from its parent class.
Here us a pic of my queue tree:Image

As you can see, despite of the rate higher than the limit-at, the 2 last queue don't show yellow color, even if i let them run for hours, nothongs change. Color change happen only when the rate get up to the half of max-limit rate (approximatively). Am-I missing something ? Is that the way it should ?
/ip firewall mangle
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
    ether1 new-packet-mark=reserve passthrough=no protocol=icmp
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
    ether1 new-packet-mark=up passthrough=no src-address=192.168.0.0/16
add action=mark-packet chain=postrouting comment="" disabled=no \
    new-packet-mark=reserve out-interface=ether1 passthrough=no protocol=icmp
add action=mark-packet chain=postrouting comment="" disabled=no dst-address=\
    192.168.0.0/16 new-packet-mark=down out-interface=ether1 passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=8M name=Total_queue packet-mark="" parent=global-out priority=8 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=800k \
    max-limit=800k name=Reserve_queue packet-mark=reserve parent=Total_queue \
    priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1300k \
    max-limit=8M name=other packet-mark="" parent=Total_queue priority=8 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=800k \
    max-limit=8M name=total_down packet-mark=down parent=other priority=8 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
    max-limit=8M name=total_up packet-mark=up parent=other priority=8 queue=\
    default
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Queue tree misunderstood

Thu Aug 20, 2009 1:58 pm

actualy, in WinBox, green means that used bandwidth is 0-50% of max-limit, yellow = 50-75%, red = 75-100%
 
magnavox
Member
Member
Posts: 357
Joined: Thu Jun 14, 2007 1:03 pm

Re: Queue tree misunderstood

Sun Feb 07, 2010 11:10 pm

actualy, in WinBox, green means that used bandwidth is 0-50% of max-limit, yellow = 50-75%, red = 75-100%
A little explaination: in yellow state, RouterOS begin packets limitation or only in red state?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Queue tree misunderstood

Sun Feb 07, 2010 11:19 pm

actually, color is not an indicator of limitation. for example, if max-limit=10M and actual throughput is ~8M, queue is red. but if it has limit-at=9M, limitation won't be applied until 9M throughput
 
magnavox
Member
Member
Posts: 357
Joined: Thu Jun 14, 2007 1:03 pm

Re: Queue tree misunderstood

Sun Feb 07, 2010 11:59 pm

actually, color is not an indicator of limitation. for example, if max-limit=10M and actual throughput is ~8M, queue is red. but if it has limit-at=9M, limitation won't be applied until 9M throughput

tnx ;)
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1764
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Queue tree misunderstood

Mon Feb 08, 2010 8:20 am

This is 4th or 5th time we got this question.

Just use latest manual and all questions will be answered:

http://wiki.mikrotik.com/wiki/HTB

Who is online

Users browsing this forum: kormenator and 181 guests