All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] can I replace sfq with wrr
@ 2002-09-02 23:14 Krzysztof Wittek
  2002-09-03 11:09 ` Tomasz Wrona
  2002-09-03 13:53 ` Stef Coene
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Wittek @ 2002-09-02 23:14 UTC (permalink / raw)
  To: lartc


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

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 .

I've noticed that wrr could fix this problem.
I wonder if new kernel and iproute2 and :

/sbin/tc qdisc add dev $IFACE parent 1:0 wrr

instead of 

/sbin/tc qdisc add dev $IFACE parent 1:0 sfq

is enough to do what I need ? or I need some more complex qdisc ?


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 ?



Greets,

 K.
 
			
-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{ Krzysztof Wittek - Gliwice  Poland - ICQ: 6667414 - IRCNet: Krzychu }
{ krzychu@gliwice.eu.org ftp://ftp.krzychu.net http://www.krzychu.net }
{ =====> IPv4://3646973238  IPv6://3ffe:8010:28:2::1 <===== }
- - KW6109-RIPE * + P-o-w-e-r-e-d b-y P-L-D L-i-n-u-x + * KW1-6BONE - -
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-03 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-02 23:14 [LARTC] can I replace sfq with wrr Krzysztof Wittek
2002-09-03 11:09 ` Tomasz Wrona
2002-09-03 13:53 ` Stef Coene

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.