* [LARTC] TBF algorithm/usage
@ 2002-12-10 14:51 Radu-Mihail Obada
2002-12-10 18:08 ` Stef Coene
2002-12-10 18:12 ` Radu-Mihail Obada
0 siblings, 2 replies; 3+ messages in thread
From: Radu-Mihail Obada @ 2002-12-10 14:51 UTC (permalink / raw)
To: lartc
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.
--
Radu-Mihail Obada
_______________________________________________
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
* Re: [LARTC] TBF algorithm/usage
2002-12-10 14:51 [LARTC] TBF algorithm/usage Radu-Mihail Obada
@ 2002-12-10 18:08 ` Stef Coene
2002-12-10 18:12 ` Radu-Mihail Obada
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2002-12-10 18:08 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] TBF algorithm/usage
2002-12-10 14:51 [LARTC] TBF algorithm/usage Radu-Mihail Obada
2002-12-10 18:08 ` Stef Coene
@ 2002-12-10 18:12 ` Radu-Mihail Obada
1 sibling, 0 replies; 3+ messages in thread
From: Radu-Mihail Obada @ 2002-12-10 18:12 UTC (permalink / raw)
To: lartc
Ok, I guess I got the point. And I think this is not exactly what I want to
do. Thanks for your help.
> 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
>
--
Radu-Mihail Obada
System administrator & web programmer,
Faculty of Mathematics and Computer Science,
University of Bucharest
_______________________________________________
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-12-10 18:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 14:51 [LARTC] TBF algorithm/usage Radu-Mihail Obada
2002-12-10 18:08 ` Stef Coene
2002-12-10 18:12 ` Radu-Mihail Obada
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.