All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Devera <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] parameter of htb
Date: Thu, 06 Jun 2002 10:13:49 +0000	[thread overview]
Message-ID: <marc-lartc-102335846906808@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102333537224707@msgid-missing>

Did you read HTB user manual ?

On Thu, 6 Jun 2002, [gb2312] hanhbnetfilter wrote:

> tc qdisc add dev eth0 root handle 1: htb default 12
> tc class add dev eth0 parent 1: classid 1:10 rate
> 30kbps ceil 100kbps burst 2k
> tc class add dev eth0 parent 1: classid 1:11 rate
> 10kbps ceil 100kbps burst 2k
> tc class add dev eth0 parent 1: classid 1:12 rate
> 60kbps ceil 100kbps burst 2k
> tc filter add dev eth0 protocol ip parent 1:0 prio 1
> u32 match ip src 172.16.11.2 flowid 1:10
> i login 172.16.11.2 and copy a large file from the
> server set traffic control.
> tc -s -d qdisc show dev eth0
>   qdisc htb 1 dev eth0 r2q 10 default 12
> direct_packets_stat 0 Sent 34210198 bytes 23370
> pkts(dropped 0 overlimits 35534)
> !!!!first question: what is meaning of "r2q" and
> "direct_packets_stat"
> tc -s -d class dev eth0
> class htb 1:11 root prio 0 quantum 3072 rate 240kbit
>
>  ceil 800kbit burst 2kb/8 mpu 0b cburst 2636b/8 mpu 0b
>
>  level 0 Sent 0 bytes 0 pkts(dropped 0 overlimits 0)
>  lended:0 borrowed:0 giants:0 tokens:54612 ctokens
>  20992
> class htb 1:10 root prio 0 quantum 3072 rate 240kbit
>  ceil 800kbit burst 2kb/8 mpu 0b cburst 2636b/8 mpu 0b
>
>  level 0 Sent 0 bytes 0 pkts(dropped 0 overlimits 0)
>  lended:0 borrowed:0 giants:0 tokens:54612 ctokens
>  20992
> class htb 1:12 root prio 0 quantum 3072 rate 240kbit
>  ceil 800kbit burst 2kb/8 mpu 0b cburst 2636b/8 mpu 0b
>
>  level 0 Sent 34210198 bytes 23370 pkts(dropped 0
>  overlimits 0) rate 190kbps lended:23370 borrowed:0
>  giants:0 tokens:-24351 ctokens 20480
> !!!second question: what is meaning of "token" and
> "ctoken"
> !!!why all three class'rate become 30kbps?
> !!!why all packets belong to class 1:12 ,they should
> belong to class 1:10.
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> 2002年世界杯群雄鏖战 雅虎中国聚焦日韩
> http://cn.fifaworldcup.yahoo.com/
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2002-06-06 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-06  3:48 [LARTC] parameter of htb hanhbnetfilter
2002-06-06 10:13 ` Martin Devera [this message]

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-102335846906808@msgid-missing \
    --to=devik@cdi.cz \
    --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.