LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Matt Pearce <linux@mattpearce.org>
To : <linuxsa@linuxsa.org.au>
Date: Tue, 15 Apr 2003 21:07:17 +0930
CBQ - Class Based Queuing
Hi Guy's and Gal's
I'm wondering if anyone has had any success in using CBQ on their Linux Box,
here's what I'm trying to achieve:
I have a 512/128 ADSL Link, I would like to Limit the rate throughput to
enable a decent QoS ping time (specifically under 100ms) whilst downloading
(either on my Linux Box or Windows PC (using Squid)
I am currently achieving minimal or no success in obtaining anything like
the results as suggested on various websites (see below)
I have had some success with the following command :
/sbin/tc qdisc add dev eth0 root tbf rate 57Kbit latency 50ms burst 1540 - I
do however still see large ping spikes, I have tried various combinations of
lower throughput and latency settings.
Here's what I'm trying with the CBQ script and Config file:
I am using the CBQ script which utilises the "tc" command, my configuration
file is:
DEVICE=eth0,100Mbit,1Mbit
RATE=450Kbit
WEIGHT=4Kbit
PRIO=5
RULE=10.0.0.0/24
When I compile my configuration file (/etc/rc.d/init.d/cbq compile) it shows
the following config to be loaded at execution:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 cbq bandwidth 100Mbit avpkt 1000 cell 8
tc class change dev eth0 root cbq weight 1Mbit allot 1514
tc class add dev eth0 parent 1: classid 1:f cbq bandwidth 100Mbit rate
450Kbit weight 4Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth0 parent 1:f handle f tbf rate 450Kbit buffer 10Kb/8
limit 15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
10.0.0.0/24 classid 1:f
Points of reference:
http://lartc.org/howto/lartc.ratelimit.single.html
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Adv-Ro
uting-HOWTO.html#s8
My network configuration:
Router (10.0.0.138) (Alcatel Speed Touch Pro)
Switch
Linux Box (10.0.0.3) - Redhat 9.0
Windows Box (10.0.0.3) (XP)
Both use default gateway of 10.0.0.138
Many thanks in advance.
Matt Pearce
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page