From: "liang jian" <liang_7902@yahoo.com.cn>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] htb parameter problem
Date: Fri, 07 Mar 2003 08:53:45 +0000 [thread overview]
Message-ID: <marc-lartc-104702769728329@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104701906522033@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 4656 bytes --]
Sorry,I means that:
I configure My out interface bandwidth 10kbps.
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 30: htb
tc class add dev eth1 parent 30: classid 30:1 htb rate 10kbps ceil 10kbps
tc class add dev eth1 parent 30:1 classid 30:10 htb rate 5kbps ceil 5kbps
tc class add dev eth1 parent 30:10 classid 30:100 htb rate 2.5kbps ceil 5kbps
tc class add dev eth1 parent 30:100 classid 30:1000 htb rate 1.25kbps ceil 5kbps prio 1
tc qdisc add dev eth1 parent 30:1000 sfq
tc class add dev eth1 parent 30:100 classid 30:2000 htb rate 1.25kbps ceil 5kbps prio 2
tc qdisc add dev eth1 parent 30:2000 sfq
tc class add dev eth1 parent 30:10 classid 30:200 htb rate 2kbps ceil 5kbps
tc qdisc add dev eth1 parent 30:200 sfq
tc class add dev eth1 parent 30:1 classid 30:20 htb rate 5kbps ceil 10kbps
tc qdisc add dev eth1 parent 30:20 sfq
tc filter add dev eth1 parent 30: protocol ip prio 1 handle 8 fw classid 30:20
tc filter add dev eth1 parent 30: protocol ip prio 1 handle 9 fw classid 30:1000
tc filter add dev eth1 parent 30: protocol ip prio 1 handle 10 fw classid 30:2000
tc -s class ls dev eth1
class htb 30:1 root rate 80Kbit ceil 80Kbit burst 1701b cburst 1701b
Sent 3241503 bytes 55558 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 132320 ctokens: 132320
class htb 30:10 parent 30:1 rate 40Kbit ceil 40Kbit burst 1650b cburst 1650b
Sent 3235253 bytes 55462 pkts (dropped 0, overlimits 0)
lended: 25964 borrowed: 0 giants: 0
tokens: 256479 ctokens: 256479
class htb 30:100 parent 30:10 rate 20Kbit ceil 40Kbit burst 1624b cburst 1650b
Sent 3235253 bytes 55462 pkts (dropped 0, overlimits 0)
lended: 12826 borrowed: 25964 giants: 0
tokens: 504639 ctokens: 256479
class htb 30:1000 parent 30:100 leaf 802f: prio 1 rate 10Kbit ceil 40Kbit burst 1611b cburst 1650b
Sent 3025299 bytes 52329 pkts (dropped 0, overlimits 0)
lended: 14206 borrowed: 38123 giants: 0
tokens: 1000960 ctokens: 256479
class htb 30:2000 parent 30:100 leaf 8030: prio 2 rate 10Kbit ceil 40Kbit burst 1611b cburst 1650b
Sent 209954 bytes 3133 pkts (dropped 0, overlimits 0)
lended: 2466 borrowed: 667 giants: 0
tokens: -317952 ctokens: 243679
class htb 30:200 parent 30:10 leaf 8031: prio 0 rate 16Kbit ceil 40Kbit burst 1619b cburst 1650b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 647999 ctokens: 264159
class htb 30:20 parent 30:1 leaf 8032: prio 0 rate 40Kbit ceil 80Kbit burst 1650b cburst 1701b
Sent 6250 bytes 96 pkts (dropped 0, overlimits 0)
lended: 96 borrowed: 0 giants: 0
tokens: 256479 ctokens: 132320
http,https traffic from 30:1000 and ftp,ftp-data traffic from 30:2000
I download kernel from www.kernel.org use NetAnts.I noted that rate 200kbps!!!!?
question :
1. I don't know why that rate of NetAnts(200kbps) > out bandwidth(10kbps).
2. I think it maybe dropped packets,but nothing to do .
3. tokens: -317952 ctokens: 243679 what's means about parameters?what's representation positive number or negative number?
"Martin A. Brown" <mabrown-lartc@securepipe.com> wrote: : 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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
---------------------------------
Do You Yahoo!?
"用雅虎搜索,找到关于奥斯卡的一切"
[-- Attachment #2: Type: text/html, Size: 5443 bytes --]
next prev parent reply other threads:[~2003-03-07 8:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-07 6:36 [LARTC] htb parameter problem liang jian
2003-03-07 6:55 ` Martin A. Brown
2003-03-07 8:53 ` liang jian [this message]
2003-03-08 19:39 ` Stef Coene
2003-03-10 2:02 ` liang jian
2003-03-10 13:01 ` Kertész Viktor
2003-03-10 17:51 ` Stef Coene
2003-03-12 12:48 ` liang jian
2003-03-12 20:48 ` Stef Coene
2003-03-13 2:31 ` liang jian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-104702769728329@msgid-missing \
--to=liang_7902@yahoo.com.cn \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.