<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thank you for your reply </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">i'm doubt about </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">before i known , there have two bucket.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">my assumption is ...</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">first bucket for keep token sending with rate guarantee</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">and this bucket size are same as burst size</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">and in every minute ... number of token will create at </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">least rate token but max with burst size</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">but after true is ... HTB have 2 bucket </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">My assumption are true for htb technique to handle "burst traffic"???</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">first bucket size for keep token is burst size for handle when burst traffic coming.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">every minute, number of token will create at least rate token for guarantee bandwidth</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">but <U>max with burst size</U>&nbsp;and support burst (i'm not sure if max token are burst size, at first time</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">to handle burst traffic. htb will use all token in bucket but when next second??? Bucket are empty?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">so max bucket size may be bigger than burst size??)</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">when class use banwidth exceed rate, class will borrow banwidth from parent class</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">so class will use ctoken that keep in another bucket(bucket for keeping ctoken and</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><U>ctoken are come from only parent' token)<BR></U></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">i don't understand when burst traffic coming</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">how htb choose between&nbsp;2 bucket are use?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">i see picture from <A href="http://linux-ip.net/traffic-control/htb-class.png" target=_blank><FONT color=#800080>http://linux-ip.net/traffic-control/htb-class.png</FONT></A></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">don't understand. why must checking in ctoken before token </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Is it true? because burst traffic will use token more than token in first Bucket.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">so it will skip to check ctoken. Is it max enough, it will use all token in first+bucket</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">and ctoken in secoond Bucket</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">because for theory htb to handle burst traffic,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">htb allow to sending with burst rate until average rate equal to burst threadhold,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">htb will change rate to rate guarantee, </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">if&nbsp; use only token in first bucket to handle burst traffic</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">i think this mechanism&nbsp;will use token and among sending with burst rate</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">if number of available token are qual or more than little bit num of rate token </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">for guarantee bandwidth, it will change to sending with rate guarantee?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">(i'm not sure for my assumtion, If my assumption are wrong. can you tell me the trueth?)</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">advise me please,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thank you</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Martin A. Brown &lt;martin@linux-ip.net&gt;<BR>To: Thossapron Apinyapanha &lt;e1605projecter@yahoo.com&gt;<BR>Cc: lartc lartc &lt;lartc@mailman.ds9a.nl&gt;<BR>Sent: Friday, October 13, 2006 7:56:02 PM<BR>Subject: Re: [LARTC] HTB has 2 bucket?<BR><BR>
<DIV>-----BEGIN PGP SIGNED MESSAGE-----<BR>Hash: SHA1<BR><BR>Greetinsg Thossapron,<BR><BR>: in HTB use 2 bucket for manage 2 rate??? first bucket -&gt; keep <BR>: token for sending with rate second bucket -&gt; keep ctoken for <BR>: sending with ceil rate Is it true?? may be i'm misunderstand <BR>: about token/bucket thoery<BR><BR>Yes, there are two different buckets used.&nbsp;&nbsp;One bucket is for <BR>tokens, another bucket is for ctokens.&nbsp;&nbsp;Brief picture of <BR>association of parameters:<BR><BR>&nbsp;&nbsp;rate:&nbsp;&nbsp;burst, tokens<BR>&nbsp;&nbsp;ceil:&nbsp;&nbsp;cburst, ctokens<BR><BR>See the upper right corner of this diagram [0].&nbsp;&nbsp;In particular, I <BR>should warn you that the SFQ qdisc in this diagram is the one which <BR>is granted the dequeue opportunity, so although packets mostly flow <BR>from left to right in this diagram, the SFQ is displayed to the left <BR>of the HTB rate/ceil buckets, even though logically this is
 <BR>reversed.<BR><BR>Good luck,<BR><BR>- -Martin<BR><BR>[0] <A href="http://linux-ip.net/traffic-control/htb-class.png" target=_blank>http://linux-ip.net/traffic-control/htb-class.png</A><BR><BR>- -- <BR>Martin A. Brown<BR><A href="http://linux-ip.net/" target=_blank>http://linux-ip.net/</A><BR>-----BEGIN PGP SIGNATURE-----<BR>Version: GnuPG v1.4.2 (GNU/Linux)<BR>Comment: pgf-0.72 (<A href="http://linux-ip.net/sw/pine-gpg-filter/" target=_blank>http://linux-ip.net/sw/pine-gpg-filter/</A>)<BR><BR>iD8DBQFFL4zmHEoZD1iZ+YcRAm1mAJ42tQy4cRL88JnuwR2/YR3zrRoTOACfbLtu<BR>ccrh3V/7eBzDlpRvWTgOtZs=<BR>=RqAV<BR>-----END PGP SIGNATURE-----</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br></body></html>