Hi I am the author of /etc/net project (http://etcnet.org/), which along with other features provides QoS support. This support is done through a hierarchical configuration tree for each interface, which is translated into ''tc'' command sequence. Filters are supported and for each filter parent is determined automatically during translation: it is the last qdisc seen in the tree. Some time ago a /etc/net user pointed out that his HTB setup did not work until he modified the code to install filters with root qdisc as parent. I have found a short notice about that in LARTC HOW-TO: http://lartc.org/howto/lartc.qdisc.filters.html "Also, with HTB, you should attach all filters to the root!" Can anyone provide a hint if this limitation is true (I did not research it myself) and if it''s true, what is the origin of this exception? -- DO4-UANIC
I have examined user''s configuration and found that while child classes had correct filters, the root qdisc hadn''t any filter that could direct packets to lower classes. Most examples attach filters to root qdisc for unknown reason. The information on LARTC web-site (which is gone ATM, but nobody cares about that) was incorrect. You don''t have to attach all filters to root qdisc, HTB code handles filters as well as CBQ does. The issue is resolved, Martin, thank you for help. -- DO4-UANIC
On Fri, Dec 23, 2005 at 11:35:51AM +0300, Denis Ovsienko wrote:> I have examined user''s configuration and found that while child classes > had correct filters, the root qdisc hadn''t any filter that could direct > packets to lower classes. Most examples attach filters to root qdisc for > unknown reason. The information on LARTC web-site (which is gone ATM, > but nobody cares about that) was incorrect. You don''t have to attach all > filters to root qdisc, HTB code handles filters as well as CBQ does. > The issue is resolved, Martin, thank you for help.Sorry, Denis, I have missed your first message. When I twidded with htb, I noticed that filters do work being attached to child classes, too. There was some limitations, as far as i can remember (filters can drop packets even to upper classes but can not drop to different branches... or otherwise...), but it worked. It was necessary, of course, cascade filters to have it working.> > -- > DO4-UANIC > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc-- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-'' ` G.m-"^m`m'' Dmytro O. Redchuk
brick@caramidaru.botosani.rdsnet.ro
2005-Dec-24 21:02 UTC
Re: Resolved: HTB filters'' parent
so by saying the issue is resolved, you mean that there was an issue:) i bumped into it myself-not being able to create filters and make them work unless they were attached to the root qdisc. what do i do to get this fixed version(i hope that s what you meant by saying it was resolved)? thank you and merry christmas:) On Fri, 23 Dec 2005, Denis Ovsienko wrote:> I have examined user''s configuration and found that while child classes > had correct filters, the root qdisc hadn''t any filter that could direct > packets to lower classes. Most examples attach filters to root qdisc for > unknown reason. The information on LARTC web-site (which is gone ATM, > but nobody cares about that) was incorrect. You don''t have to attach all > filters to root qdisc, HTB code handles filters as well as CBQ does. > The issue is resolved, Martin, thank you for help. > > -- > DO4-UANIC > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >