From: Thossapron Apinyapanha Date: Sat, 14 Oct 2006 07:42:43 +0000 Subject: Re: [LARTC] HTB has 2 bucket? Message-Id: <20061014074243.88038.qmail@web35503.mail.mud.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0505411224==" 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 --===============0505411224== Content-Type: multipart/alternative; boundary="0-1201591855-1160811763=:84947" --0-1201591855-1160811763=:84947 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 h= ave two bucket.=0Amy assumption is ...=0Afirst bucket for keep token sendin= g with rate guarantee=0Aand this bucket size are same as burst size=0Aand i= n every minute ... number of token will create at =0Aleast rate token but m= ax with burst size=0A =0Abut after true is ... HTB have 2 bucket =0AMy assu= mption are true for htb technique to handle "burst traffic"???=0Afirst buck= et size for keep token is burst size for handle when burst traffic coming.= =0Aevery minute, number of token will create at least rate token for guaran= tee 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= use all token in bucket but when next second??? Bucket are empty?=0Aso max= bucket size may be bigger than burst size??)=0A =0Awhen class use banwidth= exceed rate, class will borrow banwidth from parent class=0Aso class will = use ctoken that keep in another bucket(bucket for keeping ctoken and=0Actok= en are come from only parent' token)=0A=0Ai don't understand when burst tra= ffic coming=0Ahow htb choose between 2 bucket are use?=0Ai see picture from= http://linux-ip.net/traffic-control/htb-class.png=0Adon't understand. why = must checking in ctoken before token =0AIs it true? because burst traffic w= ill use token more than token in first Bucket.=0Aso it will skip to check c= token. 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,=0A= htb allow to sending with burst rate until average rate equal to burst thre= adhold,=0Ahtb will change rate to rate guarantee, =0A =0Aif use only token= in first 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 or more than little bit num of rate token =0Afor guarantee bandwidth, = it will change to sending with rate guarantee?=0A(i'm not sure for my assum= tion, If my assumption are wrong. can you tell me the trueth?)=0A =0Aadvise= me please,=0A =0Athank you=0A =0A =0A----- Original Message ----=0AFrom: M= artin A. Brown =0ATo: Thossapron Apinyapanha =0ACc: lartc lartc =0ASent: Friday,= October 13, 2006 7:56:02 PM=0ASubject: Re: [LARTC] HTB has 2 bucket?=0A=0A= =0A-----BEGIN PGP SIGNED MESSAGE-----=0AHash: SHA1=0A=0AGreetinsg Thossapro= n,=0A=0A: in HTB use 2 bucket for manage 2 rate??? first bucket -> keep =0A= : token for sending with rate second bucket -> keep ctoken for =0A: sending= with ceil rate Is it true?? may be i'm misunderstand =0A: about token/buck= et thoery=0A=0AYes, there are two different buckets used. One bucket is fo= r =0Atokens, another bucket is for ctokens. Brief picture of =0Aassociatio= n of parameters:=0A=0A rate: burst, tokens=0A ceil: cburst, ctokens=0A= =0ASee the upper right corner of this diagram [0]. In particular, I =0Asho= uld warn you that the SFQ qdisc in this diagram is the one which =0Ais gran= ted the dequeue opportunity, so although packets mostly flow =0Afrom left t= o right in this diagram, the SFQ is displayed to the left =0Aof the HTB rat= e/ceil buckets, even though logically this is =0Areversed.=0A=0AGood luck,= =0A=0A- -Martin=0A=0A[0] http://linux-ip.net/traffic-control/htb-class.png= =0A=0A- -- =0AMartin A. Brown=0Ahttp://linux-ip.net/=0A-----BEGIN PGP SIGNA= TURE-----=0AVersion: GnuPG v1.4.2 (GNU/Linux)=0AComment: pgf-0.72 (http://l= inux-ip.net/sw/pine-gpg-filter/)=0A=0AiD8DBQFFL4zmHEoZD1iZ+YcRAm1mAJ42tQy4c= RL88JnuwR2/YR3zrRoTOACfbLtu=0Accrh3V/7eBzDlpRvWTgOtZs=3D=0A=3DRqAV=0A-----E= ND PGP SIGNATURE-----=0A=0A --0-1201591855-1160811763=:84947 Content-Type: text/html; charset=ascii Content-Transfer-Encoding: quoted-printable
=0A
thank you for your reply
=0A
 
=0A
i'm doubt about
=0A
before i kno= wn , there have two bucket.
=0A
my assumption is ...
=0A=
first bucket for keep token sending with rate guarantee
=0A<= DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times= , serif">and this bucket size are same as burst size
=0A
and = in every minute ... number of token will create at
=0A
least= rate token but max with burst size
=0A
 
=0A
but after true is ... HTB have 2 bucket
=0A
My assumptio= n are true for htb technique to handle "burst traffic"???
=0A
first bucket size for keep token is burst size for handle when burst traff= ic coming.
=0A
every minute, number of token will create at l= east rate token for guarantee bandwidth
=0A
but max with b= urst size and support burst (i'm not sure if max token are burst s= ize, at first time
=0A
to handle burst traffic. htb will use = all token 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 bo= rrow banwidth from parent class
=0A
so class will use ctoken = that keep in another bucket(bucket for keeping ctoken and
=0A
ctoken are come from only parent' token)
=0A
i do= n't understand when burst traffic coming
=0A
how htb choose b= etween 2 bucket are use?
=0A=0A
don't understand. why must checking in ctoken before = token
=0A
Is it true? because burst traffic will use token m= ore than token in first Bucket.
=0A
so it will skip to check = ctoken. Is it max enough, it will use all token in first+bucket
=0Aand ctoken in secoond Bucket
=0A
 
=0A
because for theory htb to handle burst traffic,
=0A
htb a= llow to sending with burst rate until average rate equal to burst threadhol= d,
=0A
htb will change rate to rate guarantee,
=0A
 
=0A
if  use only token in first bucket to ha= ndle burst traffic
=0A
i think this mechanism will use t= oken and among sending with burst rate
=0A
if number of avail= able token are qual or more than little bit num of rate token
=0Afor guarantee bandwidth, it will change to sending with rate guarante= e?=0A
(i'm not sure for my assumtion, If my assumption are w= rong. can you tell me the trueth?)
=0A
 
=0A
advise me please,
=0A
 
=0A
thank you=0A
 
=0A
 
=0A
----- Or= iginal Message ----
From: Martin A. Brown <martin@linux-ip.net>To: Thossapron Apinyapanha <e1605projecter@yahoo.com>
Cc: lartc l= artc <lartc@mailman.ds9a.nl>
Sent: Friday, October 13, 2006 7:56:0= 2 PM
Subject: Re: [LARTC] HTB has 2 bucket?

=0A
-----BEGIN PG= P SIGNED MESSAGE-----
Hash: SHA1

Greetinsg Thossapron,

: i= n HTB use 2 bucket for manage 2 rate??? first bucket -> keep
: token= for sending with rate second bucket -> keep ctoken for
: sending wi= th ceil rate Is it true?? may be i'm misunderstand
: about token/bucket= thoery

Yes, there are two different buckets used.  One bu= cket is for
tokens, another bucket is for ctokens.  Brief pic= ture of
association of parameters:

  rate:  = burst, tokens
  ceil:  cburst, ctokens

See th= e upper right corner of this diagram [0].  In particular, I
s= hould warn you that the SFQ qdisc in this diagram is the one which
is g= ranted the dequeue opportunity, so although packets mostly flow
from le= ft to right in this diagram, the SFQ is displayed to the left
of the HT= B rate/ceil buckets, even though logically this is
reversed.

Good luck,

- -Martin

[0]
http://linux-ip.net/traffic-control/htb-class.png
=
- --
Martin A. Brown
http://linux-ip.net/
-----BEGIN P= GP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: pgf-0.72= (http://linux-ip.net/sw/pine-gpg-filter/)
iD8DBQFFL4zmHEoZD1iZ+YcRAm1mAJ42tQy4cRL88JnuwR2/YR3zrRoTOACfbLtu
ccrh3V= /7eBzDlpRvWTgOtZs=3D
=3DRqAV
-----END PGP SIGNATURE-----
= =0A


--0-1201591855-1160811763=:84947-- --===============0505411224== 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 --===============0505411224==--