Hello there! Yesterday I started my experiments with HTB. I configured it this way: 1: root HTB qdisc | 1:1 HTB class rate 1000kbit | /-------+------\ 1:40 1:50 1:60 user1 user2 user3
rate 333 & ceil 1000 for everyone.
User2 is disconnected and user1 and user3 are downloading. For all the time (t1-t5) there are ONLY these two users downloading!
HTB should give fifty-fifty to U1 and U3... but it is not...
What is happening is that HTB gives about 350-380kbit for user3 and everything else(more than 600kbit) for user1... this period is marked as "t1" on my graph...
Tahe a look at this: http://www.icpnet.pl/~eniu/mgr/10170_600.png (Y-axis shows bytes/s)
During my research I found that the more classes i create (each with rate=1000/no_of_users and ceil=1000) the more precise HTB is... When you look at my graph - in "t1" there were 3 classes (1:40, 1:50, 1:60). Then I was relaunching my script with higher amount of classes - in "t2" there were 4 classes:rate=250/ceil=1000 in "t3" I prepared 5 classes and finally in "t4" there were 6 or 7 classes.
But even in "t4" htb is not 100% fair (but it is acceptable).
In "t5" i created only two classes 1:40 and 1:60 - and then HTB is perfect! It is so precise you can see only one line - blue as the red one is behind it...
For me it looks like HTB is very good when it doesnt have to borrow from other classes for more than one class. When two classes are fighting for BW abowe "rate" then HTB is not fair...
BUT MAYBE I configured something not the way it should be and this is why I have what you can see...??
-josh
p.s.
I've uploaded the contents of my script's output for each of the periods so you can see how it was configured at each time.
The script itself is also available.
I am running debian sarge with 2.4.26.
User1 has 192.168.3.4
User2 has 192.168.3.6
http://www.icpnet.pl/~eniu/mgr/t1 http://www.icpnet.pl/~eniu/mgr/t2 http://www.icpnet.pl/~eniu/mgr/t3 http://www.icpnet.pl/~eniu/mgr/t4 http://www.icpnet.pl/~eniu/mgr/t5
http://www.icpnet.pl/~eniu/mgr/rc.shape
_______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/