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:
> >>>>For now try making a parent with rate and ceil 220kbit.
> >>>>Have 4 child/leaf classes like - (assuming 1 is highest priority)
> >>>>
> >>>>class 1 rate 120 ceil 220 prio 0
> >>>>class 2 rate 50 ceil 220 prio 1
> >>>>class 3 rate 25 ceil 220 prio 2
> >>>>class 4 rate 25 ceil 220 prio 3
> >>>>
> >>>>There are other tweaks you can try, it depends how much you care about 
> >>>>latency. You could also share the windows boxes bandwidth by IP.
> >>>>
> >>>>I don't do it quite like the above - so if it doesn't work, say and 
> >>>>I'll think again.
> >>>
> >>><snip>
> >>
> >>
> >>Try to make it look like I said - back off from 256 ceil, make rates add 
> >>up to master rate (220), give interactive more rate than it will ever 
> >>need.
> >
> >
> >Ok, im now trying:
> >
> >class add dev $INTERFACE parent 1: classid 1:1 htb rate 220kbit
> >class add dev $INTERFACE parent 1:1 classid 1:20 htb rate 70kbit ceil 
> >220kbit prio 1
> >class add dev $INTERFACE parent 1:1 classid 1:21 htb rate 50kbit ceil 
> >220kbit prio 2
> >class add dev $INTERFACE parent 1:1 classid 1:22 htb rate 25kbit ceil 
> >220kbit prio 3
> >class add dev $INTERFACE parent 1:1 classid 1:23 htb rate 25kbit ceil 
> >220kbit prio 4
> >class add dev $INTERFACE parent 1:1 classid 1:24 htb rate 25kbit ceil 
> >220kbit prio 5
> >class add dev $INTERFACE parent 1:1 classid 1:25 htb rate 25kbit ceil 
> >220kbit prio 8
> >
> >Its simply not working.
> >Bittorrent is using ~22kb/sec on class 25, leaving the FTP upload (class 
> >22)
> >sitting on only ~3kb/sec.
> >
> >Any ideas? 
> 
> 
> 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.

Thanks, 
Mark.
_______________________________________________
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