All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] parameter of htb
@ 2002-06-06  3:48 hanhbnetfilter
  2002-06-06 10:13 ` Martin Devera
  0 siblings, 1 reply; 2+ messages in thread
From: hanhbnetfilter @ 2002-06-06  3:48 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] parameter of htb
  2002-06-06  3:48 [LARTC] parameter of htb hanhbnetfilter
@ 2002-06-06 10:13 ` Martin Devera
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Devera @ 2002-06-06 10:13 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-06 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06  3:48 [LARTC] parameter of htb hanhbnetfilter
2002-06-06 10:13 ` Martin Devera

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.