On Saturday 08 June 2002 20:10, King Yung Tong wrote: > Hello again, Thank you for you help last time. I try to create final check > for htb, and found some problem. Can you give a quick fix for the problem? > > 1:1 (ceil 1500kbps) > / \ > (ceil 800kbps) 1:2 1:8 (ceil 700kbps) > / \ \ > 1:4 1:12 1:14 > / \ > (prio 0) 1:10 1:11 (prio 1) > > The tree under 1:2 is almost the same as you example and is working. > And I try to build a larger tree (4 levels) and I would like to do > following: > class 1:14 is completed isolated even no traffic, the BW will not borow. > class 1:12 is empty all the time. > class 1:10 is prio 0 and class 1:11 is prio 1 > > 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will > not borrow? > 2. Since 1:12 is always emppty, it can borrow the excess to tree 1:4 and > 1:10 will get all the BW. > > But in my case, the prio parameter seems to be not very ok. It will give > BW to both 1:10 and 1:11. HTB will try to give each class it's rate as a minimum : ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps prio 1 So class 1:10 gets 300kbps and class 1:11 gets 100kbps. The other 400kbps will go to class 1:10 beacause his prio is lower. So prio is for traffic that's left after each class gets his rate. I hope I'm right, Devik ? :) Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/