From: Thossapron Apinyapanha Date: Sat, 14 Oct 2006 07:42:53 +0000 Subject: Re: [LARTC] HTB has 2 bucket? Message-Id: <20061014074253.94526.qmail@web35514.mail.mud.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1060666734==" List-Id: References: <20061013124114.4573.qmail@web35504.mail.mud.yahoo.com> In-Reply-To: <20061013124114.4573.qmail@web35504.mail.mud.yahoo.com> To: lartc@vger.kernel.org --===============1060666734== Content-Type: multipart/alternative; boundary="0-2130838733-1160811773=:76854" --0-2130838733-1160811773=:76854 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: quoted-printable thank you for your reply =0A=0Ai'm doubt about =0Abefore i known , there ha= ve two bucket.=0Amy assumption is ...=0Afirst bucket for keep token sending= with rate guarantee=0Aand this bucket size are same as burst size=0Aand in= every minute ... number of token will create at =0Aleast rate token but ma= x with burst size=0A=0Abut after true is ... HTB have 2 bucket =0AMy assump= tion are true for htb technique to handle "burst traffic"???=0Afirst bucket= size for keep token is burst size for handle when burst traffic coming.=0A= every minute, number of token will create at least rate token for guarantee= bandwidth=0Abut max with burst size and support burst (i'm not sure if max= token are burst size, at first time=0Ato handle burst traffic. htb will us= e all token in bucket but when next second??? Bucket are empty?=0Aso max bu= cket size may be bigger than burst size??)=0A=0Awhen class use banwidth exc= eed rate, class will borrow banwidth from parent class=0Aso class will use = ctoken that keep in another bucket(bucket for keeping ctoken and=0Actoken a= re come from only parent' token)=0A=0Ai don't understand when burst traffic= coming=0Ahow htb choose between 2 bucket are use?=0Ai see picture from htt= p://linux-ip.net/traffic-control/htb-class.png=0Adon't understand. why must= checking in ctoken before token =0AIs it true? because burst traffic will = use token more than token in first Bucket.=0Aso it will skip to check ctoke= n. Is it max enough, it will use all token in first+bucket=0Aand ctoken in = secoond Bucket=0A=0Abecause for theory htb to handle burst traffic,=0Ahtb a= llow to sending with burst rate until average rate equal to burst threadhol= d,=0Ahtb will change rate to rate guarantee, =0A=0Aif use only token in fi= rst bucket to handle burst traffic=0Ai think this mechanism will use token = and among sending with burst rate=0Aif number of available token are qual o= r more than little bit num of rate token =0Afor guarantee bandwidth, it wil= l change to sending with rate guarantee?=0A(i'm not sure for my assumtion, = If my assumption are wrong. can you tell me the trueth?)=0A=0Aadvise me ple= ase,=0A=0Athank you=0A=0A=0A----- Original Message ----=0AFrom: Martin A. B= rown =0ATo: Thossapron Apinyapanha =0ACc: lartc lartc =0ASent: Friday, October 1= 3, 2006 7:56:02 PM=0ASubject: Re: [LARTC] HTB has 2 bucket?=0A=0A=0A-----BE= GIN PGP SIGNED MESSAGE-----=0AHash: SHA1=0A=0AGreetinsg Thossapron,=0A=0A: = in HTB use 2 bucket for manage 2 rate??? first bucket -> keep =0A: token fo= r sending with rate second bucket -> keep ctoken for =0A: sending with ceil= rate Is it true?? may be i'm misunderstand =0A: about token/bucket thoery= =0A=0AYes, there are two different buckets used. One bucket is for =0Atoke= ns, another bucket is for ctokens. Brief picture of =0Aassociation of para= meters:=0A=0A rate: burst, tokens=0A ceil: cburst, ctokens=0A=0ASee the= upper right corner of this diagram [0]. In particular, I =0Ashould warn y= ou that the SFQ qdisc in this diagram is the one which =0Ais granted the de= queue opportunity, so although packets mostly flow =0Afrom left to right in= this diagram, the SFQ is displayed to the left =0Aof the HTB rate/ceil buc= kets, even though logically this is =0Areversed.=0A=0AGood luck,=0A=0A- -Ma= rtin=0A=0A[0] http://linux-ip.net/traffic-control/htb-class.png=0A=0A- -- = =0AMartin A. Brown=0Ahttp://linux-ip.net/=0A-----BEGIN PGP SIGNATURE-----= =0AVersion: GnuPG v1.4.2 (GNU/Linux)=0AComment: pgf-0.72 (http://linux-ip.n= et/sw/pine-gpg-filter/)=0A=0AiD8DBQFFL4zmHEoZD1iZ+YcRAm1mAJ42tQy4cRL88JnuwR= 2/YR3zrRoTOACfbLtu=0Accrh3V/7eBzDlpRvWTgOtZs=3D=0A=3DRqAV=0A-----END PGP SI= GNATURE-----=0A=0A --0-2130838733-1160811773=:76854 Content-Type: text/html; charset=ascii Content-Transfer-Encoding: quoted-printable
thank you for your reply
=0A
 = ;
=0A
i'm doubt about
=0A
before i known , the= re have two bucket.
=0A
my assumption is ...
=0A
and this bucket size are same as burst size
=0A
and in every= minute ... number of token will create at
=0A
least rate to= ken but max with burst size
=0A
 
=0A
but = after true is ... HTB have 2 bucket
=0A
My assumption are tr= ue for htb technique to handle "burst traffic"???
=0A
first b= ucket size for keep token is burst size for handle when burst traffic comin= g.
=0A
every minute, number of token will create at least rat= e token for guarantee bandwidth
=0A
but max with burst siz= e and support burst (i'm not sure if max token are burst size, at = first time
=0A
to handle burst traffic. htb will use all toke= n in bucket but when next second??? Bucket are empty?
=0A
so = max bucket size may be bigger than burst size??)
=0A
 =0A
when class use banwidth exceed rate, class will borrow ban= width from parent class
=0A
so class will use ctoken that kee= p in another bucket(bucket for keeping ctoken and
=0A
ctok= en are come from only parent' token)
=0A
i don't unde= rstand when burst traffic coming
=0A
how htb choose between&n= bsp;2 bucket are use?
=0A
i see picture from http://linux-ip.net/traffic-control/htb-class.png=0A
don't understand. why must checking in ctoken before token <= /DIV>=0A
Is it true? because burst traffic will use token more tha= n token in first Bucket.
=0A
so it will skip to check ctoken.= Is it max enough, it will use all token in first+bucket
=0A
= and ctoken in secoond Bucket
=0A
 
=0A
bec= ause for theory htb to handle burst traffic,
=0A
htb allow to= sending with burst rate until average rate equal to burst threadhold,=0A
htb will change rate to rate guarantee,
=0A
=  
=0A
if  use only token in first bucket to handle = burst traffic
=0A
i think this mechanism will use token = and among sending with burst rate
=0A
if number of available = token are qual or more than little bit num of rate token
=0A
for guarantee bandwidth, it will change to sending with rate guarantee?=0A
(i'm not sure for my assumtion, If my assumption are wrong.= can you tell me the trueth?)
=0A
 
=0A
= advise me please,
=0A
 
=0A
thank you=0A
 
=0A
 
=0A
----- Origi= nal Message ----
From: Martin A. Brown <martin@linux-ip.net>
To= : Thossapron Apinyapanha <e1605projecter@yahoo.com>
Cc: lartc lart= c <lartc@mailman.ds9a.nl>
Sent: Friday, October 13, 2006 7:56:02 P= M
Subject: Re: [LARTC] HTB has 2 bucket?

=0A
-----BEGIN PGP S= IGNED MESSAGE-----
Hash: SHA1

Greetinsg Thossapron,

: in H= TB use 2 bucket for manage 2 rate??? first bucket -> keep
: token fo= r sending with rate second bucket -> keep ctoken for
: sending with = ceil rate Is it true?? may be i'm misunderstand
: about token/bucket th= oery

Yes, there are two different buckets used.  One bucke= t is for
tokens, another bucket is for ctokens.  Brief pictur= e of
association of parameters:

  rate:  bur= st, tokens
  ceil:  cburst, ctokens

See the u= pper right corner of this diagram [0].  In particular, I
shou= ld warn you that the SFQ qdisc in this diagram is the one which
is gran= ted the dequeue opportunity, so although packets mostly flow
from left = to right in this diagram, the SFQ is displayed to the left
of the HTB r= ate/ceil buckets, even though logically this is
reversed.

Good luck,

- -Martin

[0] http://linu= x-ip.net/traffic-control/htb-class.png

- --
Martin A. Brown<= BR>http://linux-ip.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
= Comment: pgf-0.72 (
http://linux-ip.net/sw/pine-gpg-filter/)

iD8DBQFFL4z= mHEoZD1iZ+YcRAm1mAJ42tQy4cRL88JnuwR2/YR3zrRoTOACfbLtu
ccrh3V/7eBzDlpRvWT= gOtZs=3D
=3DRqAV
-----END PGP SIGNATURE-----
=0A
=

--0-2130838733-1160811773=:76854-- --===============1060666734== 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 --===============1060666734==--