> Say I have a internet link with 100kbits bandwith, then I want to share=
it
> between many clients (which will increase over time). Let's i start wit=
h 5
> clients with rate =3D 30kbits... See the total bandwith of users is 120=
kbits
> but I have only 100kbits.... So where is the problem I want to describe
> their bandwith like
>
> total 100kbits
>
> |__ user1 =3D> rate 30kbits, ceil 30kbits
> |__ user2 =3D> rate 30kbits, ceil 30kbits
> |__ user3 =3D> rate 30kbits, ceil 30kbits
> |__ .....................
> |__ userX =3D> rate 30kbits, ceil 30kbits
>
> U can say why I just don't calculate 100/5 =3D 20 and set for all users=
"rate
> 20kbits, ceil 30kbits", 'cause i will add more users in the future and
=
will
> need to calculate again and again this value... also some of them may w=
ant
> 30kbits other 10kbits etc.... (it is ok for them to get lower rates 'ca=
use
> the speed is ungaranteed the user are not online 24hours a day and of
> course when bandwith got used to the max it will upgraded to better
> speed)..
>
> In fact what I want to say is : the max rate should be X but if the lin=
k is
> overused u will get lower speed ...?? One way this to be done is if I u=
se
> something like this :
>
> rate 0 ceil desired-speed
>
> but is this possible, or if not what is the lowest possible value....
> - Will proirity have be taken into account so that i can say some shoul=
d be
> served better than other ? - the lower possible bandwith i will lend is
> 9600bps .. yes we have such speeds the price here is big :"(
Normally, each class gets the rate as a minimum. After that, the remanin=
g=20
bandwidth is divided according to the proportions of the rate (more accur=
ate,=20
the quantums) but the classes with the lowest prio will be serverd first.=
So=20
only remaining bandwidth will be influenced with the prio parameter.
And giving a class rate 0 is a strange idea :)=20
Stef
--=20
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net