Re: can I replace sfq with wrr

Linux Advanced Routing and Traffic Control

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

 



On Tuesday 03 September 2002 01:14, Krzysztof Wittek wrote:
> Hello,
>
>
> Currently I use htb with sfq,
>
> /sbin/tc class add dev $IFACE classid 1:0 parent 1: htb rate ${RATE0}kbit \
>                         ceil ${CEIL0}kbit burst 6k prio 0
> /sbin/tc qdisc add dev $IFACE parent 1:0 sfq

Class 1:0 is a special class in htb.  All packets queued in this class will 
get pas thru as fast as possible.  Try class 1:1 and it will work like you 
want :)

>
> but it has one big "hole" -  person which uses 10 tcp connections ( with
> download accelerator ) gets 10 times more bandwidth than normal user
> with one tcp session .
>
> I want bandwidth share based on  IP adresses ( MAC adresses )
> not tcp sessions .
There is hacked sfq qdisc : EFSQ.  You can configure it so it uses only the 
src and/or dst address to classify the packets and not the ports.  I have a 
local copy on www.docum.org under FAQ.

> Another question is if it's possible to limit bandwith like squid with
> delay pools ( so files smaller than eg: 2 MB are transmitted at full speed
> and larger files are transmitted : 0 - 2 MB full speed and anything more
> over 2MB is dropper do low priority class ) ?
> How can I do this with  ipchains ( kernel 2.2 ) + htb  and
> iptables (kernel 2.4 ) + htb ?
I think there is a patch for iptables so you can mark packets based on the 
size of the file where they belong to.  But I'm not sure.  If it exist, you 
can redirect big files to a queue with lower bandwidth.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
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