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