From: "VideoIP" Date: Wed, 13 Jul 2005 07:20:49 +0000 Subject: =?iso-8859-1?Q?Re:_=5BLARTC=5D_HTB:_=BFhow_do_burst/cburst_work_exactly=3F?= Message-Id: <006901c5877b$6a2feca0$6501a8c0@FLO> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Ok, that=B4s great. I have a much better idea now. However I have a doubt on [1]. When packets arrive to an HTB filter, it=20 first checks to see if there are ctokens available. How come if there are, = it then checks for tokens instead of just dequeuing at full speed. And if=20 there are none: shouldn=B4t it THEN check for tokens instead of discarding = right away? Also, could you give me an advice or reference on the following? I need a child class to allow passage to a video stream that I KNOW has mea= n=20 X kbps and seldom peaks of Y kbps and T seconds. Would the best way be to=20 just configure mean=3DX, ceil=3DY? Or should I configure mean=CEil=3DX and = calculate a cburst that=B4ll allow passage of the peaks? Or maybe a third=20 option. ----- Original Message -----=20 From: "Martin A. Brown" To: "VideoIP" Cc: "lartc" Sent: Wednesday, July 13, 2005 2:14 AM Subject: Re: [LARTC] HTB: =BFhow do burst/cburst work exactly? Hello, : I=B4ve read all the definitions of burst and cburst and I=B4ve tried : playing with the parameters and graphing the output of the filter : to see its effects, but STILL I can=B4t figure out how the : parameters work exactly. : : Could anyone give a better explanation than the manpage? Have you tried Stef's site? He has a good page [0] that talks about the various tests he did while experimenting with HTB burst and cburst parameters? Some time ago, I took a stab at creating a visual representation [1] of a hypothetical HTB configuration [2]. In order to understand when cburst is used, look for the diamond-shaped boxes in the diagram which talk about tokens and ctokens. Every HTB class has two buckets. rate bucket is of burst size, traffic uses tokens ceil bucket is of cburst size, traffic uses ctokens My diagram may give you the framework to understand exactly how they are used if it's still unclear to you, but Stef's site will give you much better detail on the results of using burst and cburst. Of the scenarios he describes, I like the results of Test 7 the best. The only guideline that struck me after reading his results was to prefer burst and cburst usage on parent classes. Good luck, -Martin [0] http://www.docum.org/docum.org/tests/htb/burst/ [1] http://linux-ip.net/traffic-control/htb-class.png [2] http://linux-ip.net/traffic-control/diagram.html --=20 Martin A. Brown --- Wonderfrog Enterprises --- martin@wonderfrog.net=20 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc