maybe there is something i had not understand but if i read the manual:
Here us a pic of my queue tree: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.
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 ?
Code: Select all
/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