Здрасти, On Wed, 23 Jul 2003 12:29:42 +0300 (EEST) Marian Popov <[EMAIL PROTECTED]> wrote:
> > > Не знам къде е работата, но явно не си чел достатъчно документацията > > към HTB. > RATE е МИНИМАЛНАТА ГАРАНЦИЯ, която получава всеки клас. Ако > > на един клас > дадеш 128Кбита и същия таван, няма как сумата от > > rate-овете на неговите leaves да > надвишава тази на parent-а. > > > > Да го кажа по-ясно: НЕ МОЖЕШ да наблъскаш в клас с rate 128Кбита 5 > > клиента, > и на всичките да дадеш също по толкова. Можеш обаче да им Можеш ;)) > > дадеш пропорционално > по-малко от rate-а на parenta им, като сложиш на > > всеки leaf ceil максимум > до rate-а или до ceil-а на родителския клас. > > > > Demek da razbiram che ako iskam v 128K da pobera 4 klienta > triabva RATE na vseki ot tiah da e 32Kbit a CEIL da e 128Kbit > taka li ? I oshte da razbiram li che ako ne tezi 4 adresa > RATE im e 64Kbit a CEIL im e 128 te shte nadvishat kapaciteta > zadaden v roditelskia klas ? A RATE i CEIL na roditelskia klas > ne triabva da sa ednakvi a CEIL da e primerno 256Kbit Taka li? > RTFAQ. http://luxik.cdi.cz/~devik/qos/htb/htbfaq.htm What if sum of child rates is smaller than parent rate ? It is like if you create unused child with remaining rate - the rate difference is divided between other children. What if sum of child rates is greater than parent rate ? Then interesting things can happen. Total rate delivered by children can be higher that parent's rate (thus its rate is not respected). However when sum of actual child rates are under parent's rate then borrowing will occur like in regular case. I use setup with 4 classes, parent has rate=ceil=6kbps, child "mail" has rate=1kbps ceil=4kbps, "web" has rate=ceil=15kbps and "other" has rate=2kbps ceil=4kbps. HTB is attached to an PPP interface with compressed multilink pair of modems which can go from 6kbps to cca 16kbps (depends on compresability of data). When "web" traffic is present it can go as high as compression allows while still allowing mail 1kbps and other 2kbps. When "web" traffic is smaller than 6kbps then "mail" and "other" can borrow more bw up to 4k each. Parent's class it not set to 18k because then "mail" and "other" could get as much as 8k which is more that link's minimum and would saturate the link. Thus I set parent to 6k so that "mail"+"other" are limited to 6k while "web" can go over. You can do similar setup by using one more class and deeper hierarchy but this is just to show you the possibility. -- Best Regards, Hristo Erinin ============================================================================ A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers). http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html ============================================================================
