Re: [LARTC] TC/HTB Graphs

2005-05-21 Thread Jason Boxman
On Saturday 21 May 2005 03:00, hareram wrote:
> Hi
>
> iam looking to graph the tc classes and qdisc
> iam trying to access the stef scripts
> but its site is totally broken
>
> could some one point me where i can graph using good docs

http://edseek.com/~jasonb/software.shtml
http://edseek.com/~jasonb/code/polltc-1.02.tar.gz

You might find polltc useful.

-- 

Jason Boxman
Perl Programmer / *NIX Systems Administrator
Shimberg Center for Affordable Housing | University of Florida
http://edseek.com/ - Linux and FOSS stuff

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] newbie downloading not working

2005-05-21 Thread Paulo Ricardo Bruck
Hi guys

Finally , after reading a lot of docs from larc/opalsoft/etc, I decided
to start learning some QoS

First of all I'm trying to shape only download from a iptables+squid+qos
machine for 4 machines at LAN ( eth0)

Can anyone help me , cause it is not working properly..


-
#!/bin/bash

#128Kbps  192.168.0.1
#   <-  eth1 firewall   eth0
# internet-adsl-+squid---4 desktops
#   ->  +QoS   192.168.0.5
#   450Kbps .11
#   .12
#   .20
#

echo -e "calling modules\n"
modprobe sch_htb sch_prio sch_sfq cls_u32

echo -e "limiting download\n"

echo -e " deleting qdisc \n"
tc qdisc del dev eth0 root

echo -e "adding HTB and SFP/PFIFO as leaves\n"
tc qdisc add dev eth0 root handle 1:0 htb

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 400kbit ceil
400kbit

tc class add dev eth0 parent 1:1 classid 1:20 htb rate 300kbit ceil
400kbit
tc class add dev eth0 parent 1:1 classid 1:30 htb rate  10kbit ceil
400kbit
tc class add dev eth0 parent 1:1 classid 1:40 htb rate  10kbit ceil
400kbit
tc class add dev eth0 parent 1:1 classid 1:50 htb rate  10kbit ceil
400kbit
tc class add dev eth0 parent 1:1 classid 1:60 htb rate  10kbit ceil
400kbit

tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10
tc qdisc add dev eth0 parent 1:40 handle 40: sfq perturb 10
tc qdisc add dev eth0 parent 1:50 handle 50: sfq perturb 10
tc qdisc add dev eth0 parent 1:60 handle 60: sfq perturb 10

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.0.1 flowid 1:20
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.0.11 flowid 1:30
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.0.12 flowid 1:40
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.0.20 flowid 1:50
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst
192.168.0.5 flowid 1:60


thx in advanced


-- 
Paulo Ricardo Bruck - consultor



signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem	assinada digitalmente
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Dynamic bandwith with HTB

2005-05-21 Thread Peter Surda
On Sat, 21 May 2005 01:25:06 -0700 (PDT) Calin Ilis <[EMAIL PROTECTED]> wrote:

>I want the bandwith to be divided equal among the clients that are online.
>Please spare no details, I am rater new in this.
This topic was discussed rather frequently in the last few weeks. I recommend
using wrr:
http://wipl-wrr.sourceforge.net/

[advertisement]
I also recommend my distribution Route Hat which is optimised for this type of
usage.
[/advertisement]

Yours sincerely,
Peter
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] Dynamic bandwith with HTB

2005-05-21 Thread Calin Ilis
Hi everybody. I have a dilema and I think you guys can help me out.
 
I am trying to shape the bandwith for about 500 clients, and I want the bandwith to be alocated dynamicly. Lets say I have 4 MB bandwith. I give each ip (500 IP's) a sustained rate of 4 KB/sec . I wonder if I can shape the bandwith so when for example only 100 clients are online, to give them a rate of 4MB/100. How can this be done with HTB. Can it be done. 
 
I want the bandwith to be divided equal among the clients that are online.
Please spare no details, I am rater new in this.
 
And another thing, how can I limit the upload of each client (with HTB,tc,qdisc)
 
Thanks guys.
		Yahoo! Mail 
Stay connected, organized, and protected. Take the tour___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] TC/HTB Graphs

2005-05-21 Thread hareram

Hi

iam looking to graph the tc classes and qdisc
iam trying to access the stef scripts
but its site is totally broken

could some one point me where i can graph using good docs

hare

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc