Re: htb parameter problem

Martin A. Brown
Fri, 07 Mar 2003 06:55:02 -0000

: tc class add dev eth1 parent 30:100 classid 30:1000 \
 :    htb rate 12800kbps ceil 51200kbps prio 1
 : tc qdisc add dev eth1 parent 30:1000 sfq

Whoa!!  Are you *sure* you mean 12800 kilobytes per second and 51200 kilo
bytes per second?  Just double-checking.

This sort of number looks quite similar to what I call a 128k / 512k line.
I would specify these rates as follows:

 128kbit and 512kbit

But maybe you really mean:

 12800kbit and 51200kbit

Judging from your "tc -s" output, you have a large pipe to the
''net.

 : How to do obtain below result:
 : I read from www.docum.org have problem about parameter:

Which parameter are you asking about?  You don''t provide much
information
to us about what your question or concern is.

Is quantum the problem?  Or burst, cburst.

 : Frist :
 :
 : The same story goes for ceil and cburst, you don''t want the class to
 : send more packets then it''s ceil allows. So removing the cburst is a
 : good choice for that case.
 :
 : Second:
 :
 : Packets that are sent when the class is allowed to send, are still
 : matched against rate/ceil/burst/cburst. So a big quantum will not
 : create bursts if you don''t allow it with the burs/cburst parameters.

Help us understand what your question is, Liang.  Thank you,

-Martin

--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com