From: "Shaun" Date: Thu, 02 Dec 2004 10:11:37 +0000 Subject: [LARTC] FW: differing rate and ceil values Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_003A_01C4D857.4EEA5170" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_003A_01C4D857.4EEA5170 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_003A_01C4D857.4EEA5170 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello all, = when running=20 tc -s = -d class show=20 dev eth, the parent class rate and ceil are different to the=20 configuration?
his is the=20 first time I have used HTB so I may have made some basic=20 mistakes.<= /SPAN>
 
Thanks in=20 advance
 
Shaun
 
Output as=20 follows:
 
class htb 1:1 root rate 760Mbit ceil 760Mbit = burst=20 997641b/8 mpu 0b cburst 997641b/8 mpu 0b level 7
 Sent 0 bytes 0 = pkts=20 (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants:=20 0
 tokens: 8205 ctokens: = 8205
 
class htb 1:4 parent 1:1 rate 4Mbit ceil = 4Mbit burst=20 6841b/8 mpu 0b cburst 6841b/8 mpu 0b level 6
 Sent 0 bytes 0 = pkts=20 (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants:=20 0
 tokens: 10690 ctokens: = 10690
 
class htb 1:17 parent 1:4 prio 2 quantum 64 = rate=20 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 2254b/8 mpu 0b level=20 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits = 0)
 lended: 0=20 borrowed: 0 giants: 0
 tokens: 28187 ctokens:=20 28187
 
class htb 1:16 parent 1:4 prio 1 quantum 384 = rate 3Mbit=20 ceil 3Mbit burst 5531b/8 mpu 0b cburst 5531b/8 mpu 0b level = 0
 Sent 0=20 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 = giants:=20 0
 tokens: 11524 ctokens: = 11524
 
class htb 1:18 parent 1:4 prio 3 quantum 64 = rate=20 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 2254b/8 mpu 0b level=20 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits = 0)
 lended: 0=20 borrowed: 0 giants: 0
 tokens: 28187 ctokens:=20 28187
 
Configuration
 
tc qdisc add dev eth1 root handle 1: htb default 9999 r2q = 1000
tc=20 class add dev eth1 parent 1: classid 1:1 htb rate 95mbps ceil = 95mbps
tc class=20 add dev eth1 parent 1:1 classid 1:4 htb rate 512kbps ceil 512kbps = quantum=20 512
tc class add dev eth1 parent 1:4 classid 1:16 htb rate 384kbps = ceil=20 384kbps quantum 384 prio 1
tc class add dev eth1 parent 1:4 classid = 1:17 htb=20 rate 64kbps ceil 64kbps quantum 64 prio 2
tc class add dev eth1 = parent 1:4=20 classid 1:18 htb rate 64kbps ceil 64kbps quantum 64 prio=20 3
##################
tc filter add dev eth1 protocol ip parent 1:0 = prio 1=20 u32 match ip dst 10.4.1.13 flowid 1:4
##################
tc filter = add dev=20 eth1 protocol ip parent 1:4 prio 1 u32 match ip protocol 47 0xff flowid=20 1:16
tc filter add dev eth1 protocol ip parent 1:4 prio 1 u32 match = ip sport=20 1723 0xffff flowid 1:16
tc filter add dev eth1 protocol ip parent 1:4 = prio 2=20 u32 match ip sport 3389 0xffff flowid 1:17
tc filter add dev eth1 = protocol ip=20 parent 1:4 prio 3 u32 match ip src 0.0.0.0/0 flowid = 1:18

------=_NextPart_000_003A_01C4D857.4EEA5170-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/