multiple wrr as child of htb
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 I want to create a root htb, then 10 htb childs each with 0.5Mb bandwidth. The traffic will be directed to each class using tc filters. Now, I want that each of 8 users from each class to share equally the class bandwidth. Can I use wrr with 8 classes each as leaf for each htb child?
Or, simply said: will each wrr classifier work on all seen ip addresses or just the addresses from its htb parent.
Thnaks for any comments,
Alex
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · at.matei
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?
Quoted 3 lines
Thnaks for any comments,
Alex
Signature · 10 lines
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 [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 1 line · at.matei
Hi all,
hi
Quoted 1 line
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.
Quoted 2 lines
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.
Quoted 1 line
Thnaks for any comments,
NP.
Quoted 1 line
Alex
Yours sincerely,
Peter
Signature · 6 lines
http://www.shurdix.org - Linux distribution for routers and firewalls _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 10 lines · Gabriel
Quoted 6 lines · at.matei
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
Quoted 7 lines
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 15 lines · Peter Surda
Quoted 1 line · at.matei
Hi all,
hi
Quoted 1 line
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.
Quoted 7 lines
Quoted 2 lines
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
Quoted 11 lines
Quoted 1 line
Thnaks for any comments,
NP.
Quoted 1 line
Alex
Yours sincerely,
Peter
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Thanks all for your answer. I'll see how it will behave in practice and let you know.
Thanks again,
Alex
Quoted 45 lines · Peter Surda
Quoted 1 line · Alexandru Matei
Ok, maybe I was not clear enough.
Yes you were :-)
Quoted 2 lines
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.
Quoted 3 lines
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.
Quoted 3 lines
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).
Quoted 2 lines
What I don't know is:
1/ tc filter match for is evaluated firstOf course.
Quoted 2 lines
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).
Quoted 7 lines
Quoted 2 lines
Regards,
AlexYours sincerely,
Peter
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc