Deutsch
Germany.ruФорумы → Архив Досок→ Linux & Co

Помогите настроить шейпер

11.10.09 10:46
Re: Помогите настроить шейпер
 
BSDLamer Хвостатый Carpal Tunnel
BSDLamer
в ответ voxel3d 10.10.09 13:20
http://luxik.cdi.cz/%7Edevik/qos/htb/manual/userg.htm
В ответ на:
It might be good time to touch concept of quantums now. In fact when more classes want to borrow bandwidth they are each given some number of bytes before serving other competing class. This number is called quantum. You should see that if several classes are competing for parent's bandwidth then they get it in proportion of their quantums. It is important to know that for precise operation quantums need to be as small as possible and larger than MTU.
Normaly you don't need to specify quantums manualy as HTB chooses precomputed values. It computes classe's quantum (when you add or change it) as its rate divided by r2q global parameter. Its default value is 10 and because typical MTU is 1500 the default is good for rates from 15 kBps (120 kbit). For smaller minimal rates specify r2q 1 when creating qdisc - it is good from 12 kbit which should be enough. If you will need you can specify quantum manualy when adding or changing the class. You can avoid warnings in log if precomputed value would be bad. When you specify quantum on command line the r2q is ignored for that class.

разница наверное в удобности настройки + bsd/cisco используется гораздо чаще в качестве шейпера.
0001, 0010, 0011, 0100, 0101, вышел зайчег погулядь
 

Перейти на