From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Gallati Date: Wed, 05 Jan 2005 12:07:26 +0000 Subject: Re: [LARTC] Sharing/splitting bandwidth on a link while bandwidth Message-Id: <41DBD87E.6060807@draxinusom.ch> List-Id: References: <20050105090941.73415.qmail@web51608.mail.yahoo.com> In-Reply-To: <20050105090941.73415.qmail@web51608.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hello, > I want to share/split bandwidth on a link with unknown bandwidth. I=20 > want to exactly > share/split bandwidth (for example : FTP 30% , HTTP 20% or 30% for=20 > a group of PCs and so forth.) > =20 > "Traffic-Control-HOWTO" talk that PRIO scheduler is an ideal match for=20 > "Handling a link with a variable (or unknown) bandwidth". > =20 > But PRIO scheduler can not exactly share/split bandwidth . > =20 > Could you tell me if I can exactly share/split bandwidth on a link with = > a variable (or unknown) bandwidth? If it is possible, how can I do that ? [Warning irony ahead] I'll give you a complete script if you tell me how many bits/sec exactly=20 30% of unknown is. [/irony] In other words: You don't know how much there is available, I don't know=20 it, the list doesn't know it and your computer can't know it either.=20 So no - that's not possible (and should be evident, hopefully) What you CAN do is let some ping run alongside and react to changes in=20 the latency it sees across the link - then adapt the script and thus=20 changing the parameters. This needs lot of experimentation, is a bad=20 hack but maybe it is sufficient for what you are trying to achieve. Otherwise, find a minimum value of bandwidth you never drop below and=20 set that as the maximum bandwidth available for your root qdisc. This=20 gives you the predictability. Or : find a better line/ISP. Find and drop abusive users/applications. But all in all, there's not much you can actually do in your situation. --=20 C U - -- ---- ----- -----/\/ Ren=E9 Gallati \/\---- ----- --- -- - _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/