From: "Salim" Date: Fri, 23 Dec 2005 02:08:08 +0000 Subject: Re: [LARTC] exact rate Message-Id: <006501c60765$ba868ff0$455f030a@askeyrd3> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0524591087==" List-Id: References: <1383.217.79.71.231.1134565830.squirrel@217.79.71.231> In-Reply-To: <1383.217.79.71.231.1134565830.squirrel@217.79.71.231> To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============0524591087== Content-Type: multipart/alternative; boundary="----=_NextPart_000_005D_01C607A8.C5DB94C0" This is a multi-part message in MIME format. ------=_NextPart_000_005D_01C607A8.C5DB94C0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" What confuses me is, how the popular HTB script 'wondershaper' works! = The sum of its subclasses' rates is way over the parent's rate. ----- Original Message -----=20 From: Jody Shumaker=20 To: Anton Glinkov=20 Cc: lartc@mailman.ds9a.nl=20 Sent: Friday, December 23, 2005 4:22 AM Subject: Re: [LARTC] exact rate Your subclass's combined rate's should never exceed your parent = class's rate, and in this case your parent class is 5mbit, yet your = subclasses have a combined guarenteed bandwidth of 6mbit. In my setup, = the root classes rate is followed strictly. With burst, it may go over = temporarily but over say a minute's time, the bandwidth is pretty close = to the set rate, usualy within ~0.4%. I'm unsure on what the behavior is = when you allocate more bandwidth to subclasses than the root, but it may = be the reason you're not seeing accurate results.=20 - Jody On 12/14/05, Anton Glinkov wrote: Hello I am using htb (krenel 2.6.14.3 + esfq patch from fatooh.org) to = limit the bandwidth. But I want the absolute maximum rate to be for example = 5Mbit and not to exceed it. here is the script: $tc qdisc add dev ${NETIF} root handle 1 htb r2q 4 $tc class add dev ${NETIF} parent 1: classid 1:21 htb rate 5Mbit = ceil 5Mbit $tc class add dev ${NETIF} parent 1:21 classid 1:101 htb rate 2Mbit = ceil=20 5Mbit prio 1 $tc class add dev ${NETIF} parent 1:21 classid 1:102 htb rate 1Mbit = ceil 5Mbit prio 2 $tc class add dev ${NETIF} parent 1:21 classid 1:103 htb rate 3Mbit = ceil 5Mbit prio 3 when I don't specify burst the flow always exceeds 5Mbit=20 when I try to play with it (the burst) for example turning it off = completely burst 0 cburst 0 for parent and children classes the rate falls ot = 2-3 Mbits removing the esfq qdiscs doesn't change anything... I want exact rate of 5Mbit for the parent class and no more? any suggestions are welcome :) -- Anton Glinkov network administrator _______________________________________________ LARTC mailing list=20 LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc -------------------------------------------------------------------------= ----- _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ------=_NextPart_000_005D_01C607A8.C5DB94C0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"
What confuses me is, how the popular = HTB script=20 'wondershaper' works! The sum of its subclasses' rates is way over = the=20 parent's rate.
----- Original Message -----
From:=20 Jody=20 Shumaker
Sent: Friday, December 23, 2005 = 4:22=20 AM
Subject: Re: [LARTC] exact = rate

Your subclass's combined rate's should never exceed = your parent=20 class's rate, and in this case your parent class is 5mbit, yet your = subclasses=20 have a combined guarenteed bandwidth of 6mbit.  In my = setup,  the=20 root classes rate is followed strictly.   With burst, it may = go over=20 temporarily but over say a minute's time, the bandwidth is pretty = close to the=20 set rate, usualy within ~0.4%. I'm unsure on what the behavior is when = you=20 allocate more bandwidth to subclasses than the root, but it may be the = reason=20 you're not seeing accurate results.

- Jody

On 12/14/05, Anton=20 Glinkov <lartc@ssi.bg>=20 wrote:
Hello
I=20 am using htb (krenel 2.6.14.3 + esfq = patch=20 from fatooh.org) to limit = the
bandwidth.=20 But I want the absolute maximum rate to be for example 5Mbit
and = not to=20 exceed it.

here is the script:

$tc qdisc add dev = ${NETIF} root=20 handle 1 htb r2q 4
$tc class add dev ${NETIF} parent 1: classid = 1:21 htb=20 rate 5Mbit ceil 5Mbit
$tc class add dev ${NETIF} parent 1:21 = classid=20 1:101 htb rate 2Mbit ceil
5Mbit prio 1
$tc class add dev = ${NETIF}=20 parent 1:21 classid 1:102 htb rate 1Mbit ceil
5Mbit prio 2
$tc = class=20 add dev ${NETIF} parent 1:21 classid 1:103 htb rate 3Mbit = ceil
5Mbit prio=20 3

when I don't specify burst the flow always exceeds 5Mbit =
when I=20 try to play with it (the burst) for example turning it off=20 completely
burst 0 cburst 0 for parent and children classes the = rate=20 falls ot 2-3 Mbits

removing the esfq qdiscs doesn't change=20 anything...

I want exact rate of 5Mbit for the parent class = and no=20 more?

any suggestions are welcome :)

--
Anton=20 Glinkov
network=20 = administrator

_______________________________________________
L= ARTC=20 mailing list
LARTC@mailman.ds9a.nl
http://mai= lman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


_______________________________________________
LARTC = mailing=20 = list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/l= istinfo/lartc
------=_NextPart_000_005D_01C607A8.C5DB94C0-- --===============0524591087== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0524591087==--