* [LARTC] Shaping services and users (2nd time)
@ 2003-10-08 15:25 Phill
2003-10-09 7:02 ` Phill
2003-10-09 16:43 ` Stef Coene
0 siblings, 2 replies; 3+ messages in thread
From: Phill @ 2003-10-08 15:25 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 860 bytes --]
Hello,
I am making a HTB script for a few people and I wanted to ask a question.
Now I have a nice script with this hierarchy of classes.
root(128/128)
+---WWW(32/128)
+---Default(32/128)
+---P2P(1/64) #P2P Programs like DC and Kazza
+---....
How should I implement limiting the speed of some users (by IP addresses)?
I had an idea, but it looks too compicated. What do you think?
Let's say I want IP2 To be limited to have the speed max. 64kbits.
Will this idea work?
root(128/128)
+IP1(32/128)-----WWW(32/128)
| +---Default(10/128)
| +---P2P(1/64)
| +---...
|
+IP2(32/64)------WWW(32/64)
| +---Default(10/64)
| +---P2P(1/64)
| +---...
+IP2(32/64)--....
...
Thanks,
Phill
PS: Sorry if I posted this twice (that was my mistake).
[-- Attachment #2: Type: text/html, Size: 3286 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [LARTC] Shaping services and users (2nd time)
2003-10-08 15:25 [LARTC] Shaping services and users (2nd time) Phill
@ 2003-10-09 7:02 ` Phill
2003-10-09 16:43 ` Stef Coene
1 sibling, 0 replies; 3+ messages in thread
From: Phill @ 2003-10-09 7:02 UTC (permalink / raw)
To: lartc
Oh, I am sorry, I knew that, it's jsut that I was playing with the numbers and I
didn't check the sums.
I know how to shape traffic coming from different users,
..protocol ip dst IP...etc, And I know how to shape traffic
from each service. I just don't know how to glue them together.
So what abou this? The point is that I want to be able to shape
both the services and the IPs.
root(128/128)
+IP1(32/128)-----WWW(20/128)
| +---Default(10/128)
| +---P2P(1/64)
| +---...
|
+IP2(32/64)------WWW(20/64)
| +---Default(10/64)
| +---P2P(1/64)
| +---...
+IP3(32/64)--....
...
-Phill
> You could nest class...
> It is desirable that the sum of rates of a Child Class = to the Parent
> Class.
_______________________________________________
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] Shaping services and users (2nd time)
2003-10-08 15:25 [LARTC] Shaping services and users (2nd time) Phill
2003-10-09 7:02 ` Phill
@ 2003-10-09 16:43 ` Stef Coene
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-10-09 16:43 UTC (permalink / raw)
To: lartc
On Thursday 09 October 2003 09:02, Phill wrote:
> Oh, I am sorry, I knew that, it's jsut that I was playing with the numbers
> and I didn't check the sums.
>
> I know how to shape traffic coming from different users,
> ..protocol ip dst IP...etc, And I know how to shape traffic
> from each service. I just don't know how to glue them together.
>
> So what abou this? The point is that I want to be able to shape
> both the services and the IPs.
>
> root(128/128)
> +IP1(32/128)-----WWW(20/128)
>
> | +---Default(10/128)
> | +---P2P(1/64)
> | +---...
>
> +IP2(32/64)------WWW(20/64)
>
> | +---Default(10/64)
> | +---P2P(1/64)
> | +---...
>
> +IP3(32/64)--....
> ...
You need a set of filters attached to the root qdisc so the traffic for the
different IP's are placed in the IPx class. Then you need a second set of
filters attached to the IPx classes and redirect all traffic to the different
sub classes.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.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
end of thread, other threads:[~2003-10-09 16:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-08 15:25 [LARTC] Shaping services and users (2nd time) Phill
2003-10-09 7:02 ` Phill
2003-10-09 16:43 ` Stef Coene
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.