Re: Weighted packet shaping?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Williams (MWP) wrote:

Ok...
Using your script gave the following (from 17:30 onwards):

http://www.overclockers.com.au/~mwp/temp/tc-1hour-yours.png


This is strange I just tested again and it works for me.

http://www.jessingale.dsl.pipex.com/tc-speed-1.png

Blue is lowest with rate 20kbit green next low with 40kbit Red highest.

It may be worth trying with ceils even lower - just incase you get radsl adaption and don't really have the bandwidth.

I suppose you should also use tc from new iproute2 that matches your kernel.

rrdtool seems complicated - I suppose it could be averaging strangely, I used -

#set -x
/usr/local/rrdtool-1.0.49/bin/rrdtool create tcstats1.rrd --step 10 \
            DS:cls21:COUNTER:30:U:U   \
            DS:cls22:COUNTER:30:U:U  \
            DS:cls23:COUNTER:30:U:U  \
            RRA:AVERAGE:0.5:1:100

while [ 1 ]
do
C21=`tc -s qdisc ls dev ppp0 | grep "21:" -A 1 | grep Sent | awk '{print $2}'`
C22=`tc -s qdisc ls dev ppp0 | grep "22:" -A 1 | grep Sent | awk '{print $2}'`
C23=`tc -s qdisc ls dev ppp0 | grep "23:" -A 1 | grep Sent | awk '{print $2}'`
/usr/local/rrdtool-1.0.49/bin/rrdtool update tcstats1.rrd N:$C21:$C22:$C23
sleep 10
done


Andy.

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux