Skip to contentSkip to conversation

bandwidth control question.

LARTC Jon Lawrence 3 participants 3 messages Mar 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
I'm looking for a way to limit bandwidth to/from clients using a contended 2Mb link. What I'm looking for is to allow a client machine to use the full 2Mb but only if there is no traffic to/from other clients. I've been looking at htb.init and cbq.init, and believe that the BURST used in htb.init will allow what I need.

I'm looking to put in place something like:

			------------------
			|   Router	 |
			------------------
				|
			------------------
			|    Bridge	 |
			------------------
				|
			------------------
			|    Switch	 |
			------------------
				|
			 Various servers

Am I right in thinking that I'll be able to use tc within the bridge ?

Regards,
Jon

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Yes,

You can use tc on a bridge. See also this thread:

http://mailman.ds9a.nl/pipermail/lartc/2003q1/007378.html

If you are just going to perform traffic control, and you don't need to use iptables, you don't need the bridge+nf functionality.

Add your filters to the "real" devices, not br0.

-Martin

: I'm looking for a way to limit bandwidth to/from clients using a : contended 2Mb link. What I'm looking for is to allow a client machine to : use the full 2Mb but only if there is no traffic to/from other clients. : I've been looking at htb.init and cbq.init, and believe that the BURST : used in htb.init will allow what I need.
:
: I'm looking to put in place something like:
: ------------------
: | Router |
: ------------------
: |
: ------------------
: | Bridge |
: ------------------
: |
: ------------------
: | Switch |
: ------------------
: |
: Various servers
:
: Am I right in thinking that I'll be able to use tc within the bridge ? :
: Regards,
: Jon
:
: _______________________________________________
: LARTC mailing list / [email protected]
: http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
:

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Jon Lawrence
Quoted 6 lines · Jon Lawrence

Hi,
I'm looking for a way to limit bandwidth to/from clients using a contended 2Mb link. What I'm looking for is to allow a client machine to use the full 2Mb but only if there is no traffic to/from other clients. I've been looking at htb.init and cbq.init, and believe that the BURST used in htb.init will allow what I need.

The burst is not what you need.
You have to create 2 htb classes. One for your limited client and one for the other clients. You can give the limit client 10% and the other clients 90% bandwidth. They both can use up to 100% if there is bandwidth left. So the other clients are always sure they can use 90% of your link.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/