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
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 10classes 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
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.> AlexYours sincerely, Peter -- http://www.shurdix.org - Linux distribution for routers and firewalls
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
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 >
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 >