From: <arisantois@unsoed.ac.id>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB & Default Class
Date: Mon, 22 Apr 2002 15:31:41 +0000 [thread overview]
Message-ID: <marc-lartc-101948964123000@msgid-missing> (raw)
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-04-22 15:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 15:31 arisantois [this message]
2002-04-22 16:44 ` [LARTC] HTB & Default Class Martin Devera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101948964123000@msgid-missing \
--to=arisantois@unsoed.ac.id \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.