Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Wrapping prio in tbf
Date: Tue, 04 May 2004 16:18:10 +0000	[thread overview]
Message-ID: <200405041818.10748.stef.coene@docum.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0405032204050.7288-100000@flyingmoose.com>

On Tuesday 04 May 2004 15:05, John Meeks wrote:
> The manual says (about prio):
> > Because it doesn't actually shape, the same warning as for SFQ holds:
> > either use it only if your physical link is really full or wrap it
> > inside a classful qdisc that does shape. The latter holds for almost all
> > cable modems and DSL devices.
>
> I want to wrap prio inside of tbf.  Here's why:  I have a server on a DSL
> line, which has both hobby and business websites.  I want to make it so
> that, if the bandwidth starts to get saturated, the hobby sites will slow
> down, while the business sites will not be affected.  In other words, I
> want to limit the total bandwidth to 700kbit (the max upload is 768kbit on
> the modem) with tbf, but have a priority queue so that the business site
> can take all available bandwidth if it's being used.  The two sets of
> sites are on different IP's, so I can either filter by IP or set the TOS
> flags with iptables.
>
> I'm using kernel 2.4.18, so htb doesn't work (although it looks like it
> might be good) and I also can't seem to get cbq to work (it accepts the
> commands, but nothing changes, the bandwidth isn't being limited).  I'm
> running tests on a spare server so I can try things without messing up the
> production server.
Htb should work.

> Here's what I was trying with cbq:
>
> tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 64 cell
> 8
>
> tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate
> 5kbit weight .5kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
> bounded
Euh, 5kbit ???
See http://docum.org, you can find cbq scripts on the test pages.

> Any suggestions would be appreciated.  Keep in mind I'm new at this (never
> heard of tc before yesterday).
No problem.

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2004-05-04 16:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04 13:05 [LARTC] Wrapping prio in tbf John Meeks
2004-05-04 16:18 ` Stef Coene [this message]
2004-05-04 17:34 ` John Meeks
2004-05-05  2:06 ` gypsy
2004-05-05 19:29 ` Stef Coene

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=200405041818.10748.stef.coene@docum.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox