From: "Mugur TOMITA" <mtomita@euroweb.ro>
To: lartc@vger.kernel.org
Subject: [LARTC] CBQ Traffic control not working
Date: Wed, 12 Mar 2003 15:49:26 +0000 [thread overview]
Message-ID: <marc-lartc-104748430827281@msgid-missing> (raw)
Hi everybody,
I'm new to this list, so I appologize if a similar case has been covered already...
I have the configuration attached below...
The problem is that my traffic control doesn't work at all...
Clients from any of the private networks manage to download even with
256Kbits from the Internet...
The case is stranger because if I reboot the linux box, for a few minutes
the traffic shapping seems to work... I mean from a machine in subnet 192.168.1.8/29
I download with 16-20Kbits... but not always (most often I get at least 128Kbps).
A second question would be who has a higher priority:
a PC from a prio 8 class filtered by a prio 3 filter, or
a PC from a prio 3 class filtered by a prio 8 filter?
I'm open for further details if neccessary...
Thank you in advance,
MT
################################################
# MY ARCHITECTURE
################################################
INTERNET <--> eth0 (1.2.3.4)--SuSE 7.1 (kernel 2.2)--eth1 (192.168.0.0/16) <--> hub
################################################
# MY FIREWALL (extras)
################################################
#marking packets for traffic control
ipchains -A output -p all -s 192.168.1.0/30 -m 1
ipchains -A output -p all -s 192.168.1.8/29 -m 2
ipchains -A output -p all -s 192.168.2.0/27 -m 3
... other several subnetworks here ... marks -m 4 5 6
################################################
# MY TRAFFIC CONTROL POLICIES
################################################
# root qdisc and class
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000 mpu 64
tc class add dev eth0 parent 1: classid 1:1 cbq bandwidth 10Mbit rate 72Kbit weight
7.2Kbit prio 8 allot 1514 maxburst 20 avpkt 1000 bounded
# class for mark 1
tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 14Kbit allot
1514 cell 8 weight 1.4Kbit prio 8 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 1 fw classid 1:2
# class for mark 2
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate 44Kbit allot
1514 cell 8 weight 4.4Kbit prio 3 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 2 fw classid 1:3
# class for mark 3
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth 10Mbit rate 44Kbit allot
1514 cell 8 weight 4.4Kbit prio 8 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 3 fw classid 1:4
# class for marks 4, 5, 6
tc class add dev eth0 parent 1:1 classid 1:6 cbq bandwidth 10Mbit rate 28.8Kbit allot
1514 cell 8 weight 2.88Kbit prio 3 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 4 fw classid 1:6
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 5 fw classid 1:6
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 6 fw classid 1:6
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-03-12 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-12 15:49 Mugur TOMITA [this message]
2003-03-12 20:25 ` [LARTC] CBQ Traffic control not working 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-104748430827281@msgid-missing \
--to=mtomita@euroweb.ro \
--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.