All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] can I replace sfq with wrr
Date: Tue, 03 Sep 2002 13:53:15 +0000	[thread overview]
Message-ID: <marc-lartc-103106134314592@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103100856311131@msgid-missing>

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/

      parent reply	other threads:[~2002-09-03 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-103106134314592@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.