All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] How to define class type hierarchy of speeds?
@ 2006-03-29 23:17 Beat Meier
  2006-03-30  1:17 ` Andreas Klauer
  0 siblings, 1 reply; 2+ messages in thread
From: Beat Meier @ 2006-03-29 23:17 UTC (permalink / raw)
  To: lartc

Hi

I'm very very new to tc iproute etc and have read the LARTC howto.
What I want to do is create some "master" classes of bandwidth limit and
below that per ip address which "inherits" from this master class.

Example:

one queue for 128Kbps
other queue for 256Kbps

What I want now is that for example in "class" 128Kbps the ip
10.0.0.5, 10.0.0.8 etc. goes BUT every ip adress will have 128Kbps.
The same for 256Kbps.
128Kbps
  |_ 10.0.0.5
  |_ 10.0.0.8 

256Kbpss
  |_ 10.0.0.6
  |_ 10.0.0.7

Is there now way to do that without create for any ip address its own
"master" class?
Do I have to do it like in example 15.1 (Cookbook) in the howto i.e.
if I have 1000 ip addresses they are all flat there in?


It would be nice to add such an example to ilustrate that.
What I have noticed there are a lot of example but always with 2 different
speeds but no one with customers of the same speed, same queueing disiplines
but should not share the bandwidth but have each one the full speficied
bandwidth.
Or do I have overlooked or missinterpreted this examples?

Thanks for any information!

Beat


-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] How to define class type hierarchy of speeds?
  2006-03-29 23:17 [LARTC] How to define class type hierarchy of speeds? Beat Meier
@ 2006-03-30  1:17 ` Andreas Klauer
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Klauer @ 2006-03-30  1:17 UTC (permalink / raw)
  To: lartc

On Thu, Mar 30, 2006 at 01:17:00AM +0200, Beat Meier wrote:
> What I want now is that for example in "class" 128Kbps the ip
> 10.0.0.5, 10.0.0.8 etc. goes BUT every ip adress will have 128Kbps.
> The same for 256Kbps.
> 128Kbps
>   |_ 10.0.0.5
>   |_ 10.0.0.8 
> 
> 256Kbpss
>   |_ 10.0.0.6
>   |_ 10.0.0.7

I don't know if such a scheduler exists. With HTB, you could do 
it, but you would have to create a separate class per user. 
Which is not that much different from what this scheduler would 
do, as it has to keep track of every single IP's bandwidth 
either way.

> Do I have to do it like in example 15.1 (Cookbook) in the howto i.e.
> if I have 1000 ip addresses they are all flat there in?

Example 15.1 seems to be based on CBQ. I did not have much luck 
with this scheduler myself. But as far as I know, it also would 
require you to create one separate class per user.

> What I have noticed there are a lot of example but always with 2 different
> speeds but no one with customers of the same speed, same queueing disiplines
> but should not share the bandwidth but have each one the full speficied
> bandwidth.

I do not know such a script, since I'm doing traffic shaping for home 
use only. If you're looking for a script that does not primarily work 
by prioritizing traffic classes, but which works on a per-user basis,
you could have a look at my own script. (http://www.metamorpher.de/fairnat)
That is if you're willing to regard my former flatmates as customers and 
my former linux-based old PC router as high-end internet gateway.

The script will by far not be flexible enough for a project of your 
scale, but at least it's user based and I put some effort into 
documenting it, so maybe it will be useful as an example to you.

Kind regards
Andreas Klauer
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-30  1:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29 23:17 [LARTC] How to define class type hierarchy of speeds? Beat Meier
2006-03-30  1:17 ` Andreas Klauer

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.