From: Stef Coene Date: Tue, 04 May 2004 10:58:48 +0000 Subject: Re: [LARTC] htb bandwith Message-Id: <200405041258.48589.stef.coene@docum.org> List-Id: References: <20040503093319.80082.qmail@web20504.mail.yahoo.com> In-Reply-To: <20040503093319.80082.qmail@web20504.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Monday 03 May 2004 13:54, derbel hajer wrote: > Hi, > > tc qdisc add dev eth0 root handle 1: htb > > tc class add dev eth0 parent 1:0 classid 1:1 htb rate 2000Kbit ceil > 2000kbit > tc class add dev eth0 parent 1:1 classid 1:2 htb rate 1200Kbit ceil > 2000kbit > tc class add dev eth0parent 1:1 classid 1:3 htb rate 800Kbit ceil 2000kb= it > tc class add dev eth0 parent 1:2 classid 1:21 htb rate 600Kbit ceil > 2000kbit > tc class add dev eth0 parent 1:2 classid 1:22 htb rate 300Kbit ceil > 2000kbit > tc class add dev eth0 parent 1:2 classid 1:23 htb rate 200Kbit ceil > 2000kbit > tc class add dev eth0 parent 1:2 classid 1:24 htb rate 100Kbit ceil > 2000kbit > > tc class add dev eth0 parent 1:3 classid 1:31 htb rate 400Kbit ceil > 2000kbit > tc class add dev eth0 parent 1:3 classid 1:32 htb rate 300Kbit ceil > 2000kbit > tc class add dev eth0 parent 1:3 classid 1:33 htb rate 100Kbit ceil > 2000kbit > > By using this script, the class 1: 2 can it borrow of the > bandwidth not used by the class 1: 3 (the classes 1:2 and > 1:3 can she borrow of the busy band among them). Classes with the same parent, can borrow unused bandwidth from the parent. = =20 First, each class can send it's rate if they want. After that, remainig=20 bandwidth is distributed proportional to the quantum which is proportional = to=20 the rate. > I want to control the used and free busy band during time. > For it there, I used the command: tc =96s class ls dev eth0. > Which are the information supplied by this command, which I > should control to draft my interpretations on the use of the bandwidth. Try this page: http://www.docum.org/stef.coene/qos/faq/cache/33.html Stef --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/