Re: HTB has 2 bucket?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thank you for your reply
 
i'm doubt about
before i known , there have two bucket.
my assumption is ...
first bucket for keep token sending with rate guarantee
and this bucket size are same as burst size
and in every minute ... number of token will create at
least rate token but max with burst size
 
but after true is ... HTB have 2 bucket
My assumption are true for htb technique to handle "burst traffic"???
first bucket size for keep token is burst size for handle when burst traffic coming.
every minute, number of token will create at least rate token for guarantee bandwidth
but max with burst size and support burst (i'm not sure if max token are burst size, at first time
to handle burst traffic. htb will use all token in bucket but when next second??? Bucket are empty?
so max bucket size may be bigger than burst size??)
 
when class use banwidth exceed rate, class will borrow banwidth from parent class
so class will use ctoken that keep in another bucket(bucket for keeping ctoken and
ctoken are come from only parent' token)
i don't understand when burst traffic coming
how htb choose between 2 bucket are use?
i see picture from http://linux-ip.net/traffic-control/htb-class.png
don't understand. why must checking in ctoken before token
Is it true? because burst traffic will use token more than token in first Bucket.
so it will skip to check ctoken. Is it max enough, it will use all token in first+bucket
and ctoken in secoond Bucket
 
because for theory htb to handle burst traffic,
htb allow to sending with burst rate until average rate equal to burst threadhold,
htb will change rate to rate guarantee,
 
if  use only token in first bucket to handle burst traffic
i think this mechanism will use token and among sending with burst rate
if number of available token are qual or more than little bit num of rate token
for guarantee bandwidth, it will change to sending with rate guarantee?
(i'm not sure for my assumtion, If my assumption are wrong. can you tell me the trueth?)
 
advise me please,
 
thank you
 
 
----- Original Message ----
From: Martin A. Brown <martin@xxxxxxxxxxxx>
To: Thossapron Apinyapanha <e1605projecter@xxxxxxxxx>
Cc: lartc lartc <lartc@xxxxxxxxxxxxxxx>
Sent: Friday, October 13, 2006 7:56:02 PM
Subject: Re: HTB has 2 bucket?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetinsg Thossapron,

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

Yes, there are two different buckets used.  One bucket is for
tokens, another bucket is for ctokens.  Brief picture of
association of parameters:

  rate:  burst, tokens
  ceil:  cburst, ctokens

See the upper right corner of this diagram [0].  In particular, I
should warn you that the SFQ qdisc in this diagram is the one which
is granted 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 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 PGP 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=
=RqAV
-----END PGP SIGNATURE-----


_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux