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:
> 
> >>
> >>Are you sure that FTP is going to class 22 and not default -
> >>
> >>tc -s qdisc ls dev $INTERFACE or tc -s class ls dev $INTERFACE will show
> >>counters.
> >
> >
> >I am.  I graph using "tc -s qdisc show dev ppp0" with rrdtool.
> 
> Ahh, I assume you patched and recompiled your 2.6.8.1.
> 
> I just tried the script below on 2.4.24 and 2.6.8.1 and it works as I expect.
> 
> I checked rates with iptraf and tc -s class ls dev ppp0. If you use htb's rate
> counter than be aware it uses a long average >60 sec and I notice that on my
> 2.6.8.1 setup it says bit where it probably should say bps (= bytes per sec).
> 
> Does it work for you ?
> 
> If you want to graph then add some queues.
> 
> Andy.

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

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

Purple is class 23; all other traffic, in this case bittorrent.
Blue is class 21; a windows box, in this case an FTP transfer.

Shouldnt class 23 still be dropping off further than that?
It seems HTB is wanting to share traffic equally among on the classes rather than by priority.

You script is pretty much having the same effect as mine :(

BTW... this is now with kernel 2.6.10, not that seems to have changed its behaviour.

Thanks again!
 Mark Williams.
_______________________________________________
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