[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] CBQ's way of working



Hi
I've read a lot about CBQ but there's something still not clear.
I need to consider the following situation.
....
set rootclass [new CBQClass]
$rootclass setparams none false 1 auto 0 2 0
...
set class_1 [new CBQClass]
$class_1 setparams $rootclass true 1 auto 0 1 0
...
set class-2 [new CBQClass]
$class_2 setparams $rootclass true 1 auto 1 1 0
....
working like this.
 
90%of link cap.(average) exp-on-off----------------------->|||||||||||||||||||||||||
                                                       (Hi-pri:Class_1 100%alloc) \
                                                                                                \
                                                                                                  \
                                                                                                   []-------------->
                                                                                                  /
                                                                                                /
                                                                                              /
5%of link cap.(aver.) exp-on-off----------------------------->||||||||||||||||||||||||||
                                                     (Low pri:Class_2 0%alloc)
 
The thing I can't completely understand is:
1)low priority taffic is server ONLY when the hi priority BUFFER is empy, thus randomly.
Or
2)there is a bandwidth measurement for Hi priority traffic and so unused bandwidth is periodically given to low pri. traffic even if hi pri. buffer is not empty at that time.
 
Any help will be appeciated
Fabio.