HTB & Default Class
HI All
I just tried HTB for about a week in my Intranet, first I implemented HTB in My Network Cables and it run fine (It `s suprise how good it is compare to cbq). Then I use HTB for our Wireless Network. But it just keep sent packet to default class not to classid. I use kernel-2.4.7 default from RedHat 7.2 distribution that I patch it with diff for 2.4.14. I use Orinoco Silver as Wireless Card with wvlan_cs as driver and Precompiled TC from HTB Wesbite. I assign virtual IP on my wireless eth1 192.168.30.1 and eth1:1 192.168.31.1.
I try to sharing my 512 Kbps bandwith to three faculties. Faculty A 128 Kbps ceil 512 Kbps (classid 1:10), faculty B 128 Kbps ceil 512 Kbps (classid 1:20) and default goes to classid 1:30. But the HTB keep sending packet to 1:30 class as default. I use HTB init from
http://freshmeat.net/redir/htb.init/21951/url_homepage/ . So any solutions for me ?
[root@test root]# htb compile
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 30
tc class add dev eth1 parent 1: classid 1:2 htb rate 512Kbit burst 15k
tc class add dev eth1 parent 1:2 classid 1:10 htb rate 128Kbit ceil 512Kbit burst 15k
tc qdisc add dev eth1 parent 1:10 handle 10 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.31.0/24 classid 1:10
tc class add dev eth1 parent 1:2 classid 1:20 htb rate 128Kbit ceil 512Kbit burst 15k
tc qdisc add dev eth1 parent 1:20 handle 20 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.30.0/24 classid 1:20
tc class add dev eth1 parent 1:2 classid 1:30 htb rate 1Kbit ceil 512Kbit burst 15k
tc qdisc add dev eth1 parent 1:30 handle 30 sfq perturb 10
[root@test root]#
[root@test htb]# tc -s class show dev eth1|more
class htb 1:30 parent 1:2 leaf 30: prio 0 rate 1Kbit ceil 512Kbit burst 15Kb cbu
rst 2254b
Sent 14279182 bytes 9451 pkts (dropped 0, overlimits 0) rate 65366bps 43pps backlog 11p
lended: 29 borrowed: 9411 giants: 0 injects: 0
tokens: -4220928 ctokens: -17631
class htb 1:2 root prio 0 rate 512Kbit ceil 512Kbit burst 15Kb cburst 2254b
Sent 14262528 bytes 9440 pkts (dropped 0, overlimits 0)
rate 65194bps 43pps
lended: 9411 borrowed: 0 giants: 0 injects: 0
tokens: 146182 ctokens: -17631
class htb 1:20 parent 1:2 leaf 20: prio 0 rate 128Kbit ceil 512Kbit burst 15Kb c
burst 2254b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0 injects: 0
tokens: 768000 ctokens: 28187
class htb 1:10 parent 1:2 leaf 10: prio 0 rate 128Kbit ceil 512Kbit burst 15Kb c
burst 2254b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0 injects: 0
tokens: 768000 ctokens: 28187
[root@test htb]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.23.0 192.168.31.2 255.255.255.0 UG 40 0 0
eth1
192.168.22.0 192.168.30.2 255.255.255.0 UG 40 0 0
eth1
192.168.31.0 0.0.0.0 255.255.255.0 U 40 0 0
eth1
192.168.30.0 0.0.0.0 255.255.255.0 U 40 0 0
eth1
10.10.16.0 0.0.0.0 255.255.252.0 U 40 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo 0.0.0.0 10.10.17.50 0.0.0.0 UG 40 0 0
eth0
Thnx In Advance
Eko Arisanto
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
At first look all seems good. What kind of traffic are tyou sending ? Can you do quick tcpdump -ni eth1 and sent me a sample ? It seems like is your packets has some other destinations or what ..
Also include tc filter show dev eth1 please.
devik
Quoted 12 lines · On Mon, 22 Apr 2002 [email protected] wrote:
HI All
I just tried HTB for about a week in my Intranet, first I implemented HTB in My Network Cables and it run fine (It `s suprise how good it is compare to cbq). Then I use HTB for our Wireless Network. But it just keep sent packet to default class not to classid. I use kernel-2.4.7 default from RedHat 7.2 distribution that I patch it with diff for 2.4.14. I use Orinoco Silver as Wireless Card with
wvlan_csas driver and Precompiled TC from HTB Wesbite. I assign virtual IP on my wireless eth1 192.168.30.1 and eth1:1 192.168.31.1.
Quoted 7 lines
I try to sharing my 512 Kbps bandwith to three faculties. Faculty A 128 Kbps ceil 512 Kbps (classid 1:10), faculty B 128 Kbps ceil 512 Kbps (classid 1:20) and default goes to classid 1:30. But the HTB keep sending packet to 1:30 class as default. I use HTB init from
http://freshmeat.net/redir/htb.init/21951/url_homepage/ . So any solutions for me ?
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/