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] TBF algorithm/usage
Date: Tue, 10 Dec 2002 18:08:42 +0000	[thread overview]
Message-ID: <marc-lartc-103954379614041@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103953705603989@msgid-missing>

On Tuesday 10 December 2002 15:51, Radu-Mihail Obada wrote:
> Hello everyone,
> I have a (mini) Linux router, which goes "out" through eth0; eth0 is
> capable of almost 2Mbit of bandwith (well, actually it's like 10Mbit,
> but you wouldn't care less). Now, say I want to limit _everything_, like
> in every connection. So naturally, after carefully reading the man pages
> and that excellent HOWTO, I resort to TBF. I fiddle a lit with this, but
> after a couple of hours of intense experimentation, I find that it
> doesn't do what I really want it to.
> Specifically, I want _every_ connection to use _at most_ (say) 16kbps,
> never more, even if there is some bandwidth to borrow from. But TBF doesn't
> seem to do just that (or I don't understand its inner working, which I
> kinda don't). And what does burst mean/do? tc-tbf(8) says that I would
> never need to modify this, but tc qdisc add ... root tbf always requires
> it.
> Thanks in advance.
Tbf limits all bandwidth that leaves the NIC.  What you want to do, limit each 
connection to a certain bandwidth, is not so easy to implement.  If you want 
to do it per ip-address, or port, you can create a cbq or htb setup.  So you 
can put each connection in a different class and limit the speed it can get.  
The filtering can be done on ports and/or ip-addresses.  But if you want a 
class for each connection, you will need a lot of classes.

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/

  reply	other threads:[~2002-12-10 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 14:51 [LARTC] TBF algorithm/usage Radu-Mihail Obada
2002-12-10 18:08 ` Stef Coene [this message]
2002-12-10 18:12 ` Radu-Mihail Obada

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-103954379614041@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.