All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] FW: differing rate and ceil values
@ 2004-12-02 10:11 Shaun
  2004-12-21  3:53 ` gypsy
  0 siblings, 1 reply; 2+ messages in thread
From: Shaun @ 2004-12-02 10:11 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]

Hello all, when running tc -s -d class show dev eth, the parent class rate
and ceil are different to the configuration?
his is the first time I have used HTB so I may have made some basic
mistakes.
 
Thanks in advance
 
Shaun
 
Output as follows:
 
class htb 1:1 root rate 760Mbit ceil 760Mbit burst 997641b/8 mpu 0b cburst
997641b/8 mpu 0b level 7
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 8205 ctokens: 8205
 
class htb 1:4 parent 1:1 rate 4Mbit ceil 4Mbit burst 6841b/8 mpu 0b cburst
6841b/8 mpu 0b level 6
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 10690 ctokens: 10690
 
class htb 1:17 parent 1:4 prio 2 quantum 64 rate 512Kbit ceil 512Kbit burst
2254b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 28187 ctokens: 28187
 
class htb 1:16 parent 1:4 prio 1 quantum 384 rate 3Mbit ceil 3Mbit burst
5531b/8 mpu 0b cburst 5531b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 11524 ctokens: 11524
 
class htb 1:18 parent 1:4 prio 3 quantum 64 rate 512Kbit ceil 512Kbit burst
2254b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 28187 ctokens: 28187

 
Configuration
 
tc qdisc add dev eth1 root handle 1: htb default 9999 r2q 1000
tc class add dev eth1 parent 1: classid 1:1 htb rate 95mbps ceil 95mbps
tc class add dev eth1 parent 1:1 classid 1:4 htb rate 512kbps ceil 512kbps
quantum 512
tc class add dev eth1 parent 1:4 classid 1:16 htb rate 384kbps ceil 384kbps
quantum 384 prio 1
tc class add dev eth1 parent 1:4 classid 1:17 htb rate 64kbps ceil 64kbps
quantum 64 prio 2
tc class add dev eth1 parent 1:4 classid 1:18 htb rate 64kbps ceil 64kbps
quantum 64 prio 3
##################
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst
10.4.1.13 flowid 1:4
##################
tc filter add dev eth1 protocol ip parent 1:4 prio 1 u32 match ip protocol
47 0xff flowid 1:16
tc filter add dev eth1 protocol ip parent 1:4 prio 1 u32 match ip sport 1723
0xffff flowid 1:16
tc filter add dev eth1 protocol ip parent 1:4 prio 2 u32 match ip sport 3389
0xffff flowid 1:17
tc filter add dev eth1 protocol ip parent 1:4 prio 3 u32 match ip src
0.0.0.0/0 flowid 1:18



[-- Attachment #2: Type: text/html, Size: 8287 bytes --]

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

* Re: [LARTC] FW: differing rate and ceil values
  2004-12-02 10:11 [LARTC] FW: differing rate and ceil values Shaun
@ 2004-12-21  3:53 ` gypsy
  0 siblings, 0 replies; 2+ messages in thread
From: gypsy @ 2004-12-21  3:53 UTC (permalink / raw)
  To: lartc

> Shaun wrote:
> 
> Hello all, when running tc -s -d class show dev eth, the parent class
> rate and ceil are different to the configuration?
> his is the first time I have used HTB so I may have made some basic
> mistakes.
> 
> Thanks in advance
> 
> Shaun

If you do the math, 760/95 = 8

There are 8 bits in a byte.

Does that clarify it for you?

gypsy
_______________________________________________
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:[~2004-12-21  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-02 10:11 [LARTC] FW: differing rate and ceil values Shaun
2004-12-21  3:53 ` gypsy

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.