htb parameter problem

liang jian
Fri, 07 Mar 2003 06:36:37 -0000

So I do that:

....................

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

...................

tc -s -d class ls dev eth1

class htb 30:100 parent 30:10 rate 200Mbit ceil 400Mbit burst 263690b/8 mpu 0b
cburst 525808b/8 mpu 0b level 5
 Sent 53850 bytes 719 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 8239 ctokens: 8216

class htb 30:1000 parent 30:100 leaf 8012: prio 1 quantum 200000 rate 100Mbit
ceil 400Mbit burst 132644b/8 mpu 0b cburst 525808b/8 mpu 0b level 0
 Sent 13944 bytes 116 pkts (dropped 0, overlimits 0)
 lended: 116 borrowed: 0 giants: 0
 tokens: 8287 ctokens: 8216


How to do obtain below result:



I read from www.docum.org have problem about parameter:

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.



---------------------------------
Do You Yahoo!?
"用雅虎搜索，找到关于奥斯卡的一切"
--0-1177231244-1047018997=:7348
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit


So I do that:
....................
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
...................
tc -s -d class ls dev eth1
class htb 30:100 parent 30:10 rate 200Mbit ceil 400Mbit
burst 263690b/8 mpu 0b
cburst 525808b/8 mpu 0b level
5 Sent 53850 bytes 719 pkts (dropped 0, overlimits
0) lended: 0 borrowed: 0 giants: 0 tokens:
8239 ctokens: 8216
class htb 30:1000 parent 30:100 leaf 8012: prio 1
quantum 200000 rate 100Mbit ceil
400Mbit burst 132644b/8 mpu 0b
cburst 525808b/8 mpu 0b level
0 Sent 13944 bytes 116 pkts (dropped 0, overlimits
0) lended: 116 borrowed: 0 giants:
0 tokens: 8287 ctokens: 8216
How to do obtain below result:
I read from <A
href="http://www.docum.org/">www.docum.org have problem
about parameter:
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. <hr
size=1>Do You Yahoo!?
<a
href="http://rd.yahoo.com/mail_cn/tag?http://cn.search.yahoo.com/search/cn?p=%b0%c2%cb%b9%bf%a8">"用雅虎搜索，找到关于奥斯卡的一切"
--0-1177231244-1047018997=:7348--