* Re: [LARTC] multiple wrr as child of htb
2006-01-20 10:13 [LARTC] multiple wrr as child of htb at.matei
@ 2006-01-20 12:39 ` Gabriel
2006-01-20 13:39 ` Peter Surda
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Gabriel @ 2006-01-20 12:39 UTC (permalink / raw)
To: lartc
On Fri, 20 Jan 2006 12:13:06 +0200, at.matei wrote:
> Hi all,
> Here's the situation.
> I have 80 users sharing a internet link of 5Mb link.
> The users are grouped in /29 ip addr classes so I have 10
classes of users
Maybe I'm getting this wrong, but how can you have 8
users/class in a /29 subnet? Isn't 6 (2^3-1) the max?
> Thnaks for any comments,
>
> Alex
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] multiple wrr as child of htb
2006-01-20 10:13 [LARTC] multiple wrr as child of htb at.matei
2006-01-20 12:39 ` Gabriel
@ 2006-01-20 13:39 ` Peter Surda
2006-01-20 13:53 ` at.matei
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Peter Surda @ 2006-01-20 13:39 UTC (permalink / raw)
To: lartc
at.matei schrieb:
> Hi all,
hi
> Can I use wrr with 8 classes each as leaf for each htb child?
Yes, but ESFQ may be better. I had stability problems when using more
than 1 WRR per interface, but it is possible that it's fixed now.
Furthermore, WRR is designed for large numbers so it is an overkill in
your situation.
> Or, simply said: will each wrr classifier work on all seen ip
> addresses or just the addresses from its htb parent.
Any seen IP, they are assigned dynamically. If there are too many, the
classes are "recycled" in a LIFO.
> Thnaks for any comments,
NP.
> Alex
Yours sincerely,
Peter
--
http://www.shurdix.org - Linux distribution for routers and firewalls
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] multiple wrr as child of htb
2006-01-20 10:13 [LARTC] multiple wrr as child of htb at.matei
2006-01-20 12:39 ` Gabriel
2006-01-20 13:39 ` Peter Surda
@ 2006-01-20 13:53 ` at.matei
2006-01-20 14:32 ` Alexandru Matei
2006-01-23 14:53 ` Alexandru Matei
4 siblings, 0 replies; 6+ messages in thread
From: at.matei @ 2006-01-20 13:53 UTC (permalink / raw)
To: lartc
Gabriel wrote:
>On Fri, 20 Jan 2006 12:13:06 +0200, at.matei wrote:
>
>
>
>>Hi all,
>>Here's the situation.
>>I have 80 users sharing a internet link of 5Mb link.
>>The users are grouped in /29 ip addr classes so I have 10
>>
>>
>classes of users
>
>Maybe I'm getting this wrong, but how can you have 8
>users/class in a /29 subnet? Isn't 6 (2^3-1) the max?
>
>
>
Well, think not of ip separate classes but only grouping. From 255
addresses I can group 8 users by means of tc filter with x.x.x.x/29.
There are not ip classes but qdisc classes.
You're right about classical subnetting.
Alex
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] multiple wrr as child of htb
2006-01-20 10:13 [LARTC] multiple wrr as child of htb at.matei
` (2 preceding siblings ...)
2006-01-20 13:53 ` at.matei
@ 2006-01-20 14:32 ` Alexandru Matei
2006-01-23 14:53 ` Alexandru Matei
4 siblings, 0 replies; 6+ messages in thread
From: Alexandru Matei @ 2006-01-20 14:32 UTC (permalink / raw)
To: lartc
Peter Surda wrote:
> at.matei schrieb:
>
>> Hi all,
>
>
> hi
>
>> Can I use wrr with 8 classes each as leaf for each htb child?
>
>
> Yes, but ESFQ may be better. I had stability problems when using more
> than 1 WRR per interface, but it is possible that it's fixed now.
> Furthermore, WRR is designed for large numbers so it is an overkill in
> your situation.
>
>> Or, simply said: will each wrr classifier work on all seen ip
>> addresses or just the addresses from its htb parent.
>
>
> Any seen IP, they are assigned dynamically. If there are too many, the
> classes are "recycled" in a LIFO.
>
Ok, maybe I was not clear enough. What I'm interested in is the order of
passing throught filters. WRR has an built-in filter. HTB child classes
are fed by matching certain ip addresses (in my case htb chlid1 is for
x.x.x.0/29, htb child2 is for x.x.x.8/29 ) and so on. I want to attach
wrr1 as child to htb child 1 so the traffic get even divided between
clients x.x.x.0/29, wrr2 as child to htb child 2 and so on.
What I don't know is:
1/ tc filter match for is evaluated first
2/ if wrr1 is going to classify only hosts seen in x.x.x.0/29 or all
hosts x.x.x.0/24
Regards,
Alex
>> Thnaks for any comments,
>
>
> NP.
>
>> Alex
>
>
> Yours sincerely,
> Peter
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] multiple wrr as child of htb
2006-01-20 10:13 [LARTC] multiple wrr as child of htb at.matei
` (3 preceding siblings ...)
2006-01-20 14:32 ` Alexandru Matei
@ 2006-01-23 14:53 ` Alexandru Matei
4 siblings, 0 replies; 6+ messages in thread
From: Alexandru Matei @ 2006-01-23 14:53 UTC (permalink / raw)
To: lartc
Thanks all for your answer. I'll see how it will behave in practice and
let you know.
Thanks again,
Alex
Peter Surda wrote:
> Alexandru Matei schrieb:
>
>> Ok, maybe I was not clear enough.
>
>
> Yes you were :-)
>
>> What I'm interested in is the order of passing throught filters. WRR
>> has an built-in filter.
>
>
> Yes. But this isn't anything special per se, any classful qdisc
> distributes packets somehow, you just usually "tune" it by using tc
> filter.
>
>> HTB child classes are fed by matching certain ip addresses (in my
>> case htb chlid1 is for x.x.x.0/29, htb child2 is for x.x.x.8/29 )
>> and so on.
>
>
> Yes.
>
>> I want to attach wrr1 as child to htb child 1 so the traffic get
>> even divided between clients x.x.x.0/29, wrr2 as child to htb child 2
>> and so on.
>
>
> That isn't a problem (other than potential stability issues I
> mentioned before).
>
>> What I don't know is:
>> 1/ tc filter match for is evaluated first
>
>
> Of course.
>
>> 2/ if wrr1 is going to classify only hosts seen in x.x.x.0/29 or all
>> hosts x.x.x.0/24
>
>
> WRR classifies those packets that "flow" through it, like any other
> qdisc. It doesn't care whether they are a /29 subnet or some arbitrary
> IPs (it uses hashing in a way similar to conntrack for assigning
> classes).
>
>> Regards,
>> Alex
>
>
> Yours sincerely,
> Peter
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread