From: Raj Mathur <raju@linux-delhi.org>
To: lartc@vger.kernel.org
Subject: [LARTC] [LONG] Weights not working
Date: Sat, 26 Jul 2003 04:32:16 +0000 [thread overview]
Message-ID: <marc-lartc-105919332505371@msgid-missing> (raw)
Hi,
The Description
---------------
Am making a package for a VSAT ISP. Running Red Hat 8.0 with the
updated kernel (2.4.20) and patched for HTB on the bandwidth
management system (BMS). BMS has two ethernet interfaces: eth1 at
192.168.0.1/24 going to the LAN with PCs and eth0 at 10.9.25.34/28
going to the VSAT uplink.
Kernel HTB version: HTB init, kernel part version 3.10
Using the htb.init script v0.8.4
Throttling total outgoing VSAT bandwidth on eth0 at 64 Kbps.
Throttling total incoming VSAT bandwidth on eth1 at 256 Kbps.
Throttling total incoming/outgoing bandwidth for sets of PCs on the
LAN on eth1/eth0 respectively using netfilter marks.
PC pools on the LAN (IP, Min/Max download bandwidth allocated):
(a) 192.168.0.64/31 (32/128)
(b) 192.160.0.2/32 (128/256)
(c) 192.168.0.3 (32/128)
The Problem
-----------
Throttling is working fine in both directions. However, when the link
is choked the PCs do not get bandwidth proportional to their RATEs or
CEILs. So if all the PCs start downloading simultaneously, each pool
gets ~85 Kbps, instead of pools (a) and (c) getting 64 Kbps each and
(b) getting 128 Kbps.
Enclosing the files from /etc/sysconfig/htb and the htb compile
output. Thanks in advance for any help.
Regards,
-- Raju
--
Raj Mathur raju@kandalaya.org http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves
*** eth0 ***
DEFAULT0
*** eth0-0003,upload ***
RATEdKbps
PRIO=5
*** eth0-0003:0003.192.168.0.64.upload ***
RATE=8Kbit
CEIL Kbit
PRIO=5
LEAF=sfq
MARK=3
*** eth0-0003:0004.192.168.0.2.upload ***
RATE2Kbit
CEILdKbit
PRIO=5
LEAF=sfq
MARK=1
*** eth0-0003:0005.192.168.0.3.upload ***
RATE=8Kbit
CEIL Kbit
PRIO=5
LEAF=sfq
MARK=2
*** eth1 ***
DEFAULT0
*** eth1-0002.download ***
RATE%6Kbps
PRIO=5
*** eth1-0002:0003.192.168.0.64.download ***
RATE2Kbit
CEIL\x128Kbit
PRIO=5
LEAF=sfq
MARKe539
*** eth1-0002:0004.192.168.0.2.download ***
RATE\x128Kbit
CEIL%6Kbit
PRIO=5
LEAF=sfq
MARKe537
*** eth1-0002:0005.192.168.0.3.download ***
RATE2Kbit
CEIL\x128Kbit
PRIO=5
LEAF=sfq
MARKe538
*** htb compile ***
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 30
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 30
tc class add dev eth0 parent 1: classid 1:0003 htb rate 64Kbps prio 5
tc class add dev eth0 parent 1:0003 classid 1:0003 htb rate 8Kbit ceil 20Kbit prio 5
tc qdisc add dev eth0 parent 1:0003 handle 0003 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 3 fw classid 1:0003
tc class add dev eth0 parent 1:0003 classid 1:0004 htb rate 32Kbit ceil 64Kbit prio 5
tc qdisc add dev eth0 parent 1:0004 handle 0004 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 1 fw classid 1:0004
tc class add dev eth0 parent 1:0003 classid 1:0005 htb rate 8Kbit ceil 20Kbit prio 5
tc qdisc add dev eth0 parent 1:0005 handle 0005 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 2 fw classid 1:0005
tc class add dev eth1 parent 1: classid 1:0002 htb rate 256Kbps prio 5
tc class add dev eth1 parent 1:0002 classid 1:0003 htb rate 32Kbit ceil 128Kbit prio 5
tc qdisc add dev eth1 parent 1:0003 handle 0003 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 200 handle 65539 fw classid 1:0003
tc class add dev eth1 parent 1:0002 classid 1:0004 htb rate 128Kbit ceil 256Kbit prio 5
tc qdisc add dev eth1 parent 1:0004 handle 0004 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 200 handle 65537 fw classid 1:0004
tc class add dev eth1 parent 1:0002 classid 1:0005 htb rate 32Kbit ceil 128Kbit prio 5
tc qdisc add dev eth1 parent 1:0005 handle 0005 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 200 handle 65538 fw classid 1:0005
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-07-26 4:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-26 4:32 Raj Mathur [this message]
2003-07-26 4:59 ` [LARTC] [LONG] Weights not working Rio Martin.
2003-07-26 6:21 ` Raj Mathur
2003-07-29 5:22 ` Rio Martin.
2003-07-29 7:42 ` Stef Coene
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-105919332505371@msgid-missing \
--to=raju@linux-delhi.org \
--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.