- Does tcng support HTB ? syntax ? - what is the difference between "if" and "on" ? I''m reading the docs but can get it right ! "if" uses bool expressions and "on" is using only "u32", correct ?! what more? - how can I tell tcng to use iptables for classifying and what is the syntax for it ? if I want all packets that are not classified to be dropped what i have to do, is this correct : dev eth0 { class (1) if ....; class (2) if ....; class (3) drop if 1; } thanx alot ====iVAN raptor@unacs.bg
raptor@unacs.bg wrote:> - Does tcng support HTB ? syntax ?Not yet. Someone''s working on implementing support for it, so I hope to have it in the not too distant future.> - what is the difference between "if" and "on" ?"on" gives direct access to the filters of Linux traffic control, while "if" provides a more abstract language. I''m reading the docs but can get it right !> "if" uses bool expressions and "on" is using only "u32", correct ?!Half of it ;-) "on" supports all filters except u32. "if" uses u32 to do its work.> what more?Eventually, I plan to phase out "on". If you look at the documentation, the elements in "The tcng language" are here to stay, while the ones in "Under the hood" may change, and the ones in "Historical constructs" should eventually disappear.> - how can I tell tcng to use iptables for classifying and what is the > syntax for it ?You''ll have to use the "fw" classifier. tcng doesn''t touch iptables directly, so you''d have to set up that classification separately. For static classification, "if" is probably more convenient to use than a mixture of iptables and tcng.> if I want all packets that are not classified to be dropped what i have to do, is this correct : > > dev eth0 { > class (1) if ....; > class (2) if ....; > class (3) drop if 1; > }It''s either dev eth0 { name_of_qdisc { /* except if that qdisc is prio and your kernel isn''t very very recent */ class (1) if ...; class (2) if ...; drop if 1; } } Or, better dev eth0 { egress { class (<$c1>) if ...; class (<$c2>) if ...; drop if 1; name_of_qdisc { $c1 = class (1); $c2 = class (1); } } } The second form gives you a better separation of classification and queuing, and you also don''t have to worry about drop not working (in the case of "prio"). As a disadvantage, the second form adds an indirection through "dsmark" and "tcindex". - Werner -- _________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net / /_http://icapeople.epfl.ch/almesber/_____________________________________/
> raptor@unacs.bg wrote: > > - Does tcng support HTB ? syntax ? > > Not yet. Someone''s working on implementing support for it, so I > hope to have it in the not too distant future.Jacob have it done. He sent me some results for checking and althought I have no time to test the latest one it seems to work. devik
|> raptor@unacs.bg wrote: |> > - Does tcng support HTB ? syntax ? |> |> Not yet. Someone''s working on implementing support for it, so I |> hope to have it in the not too distant future. | |Jacob have it done. He sent me some results for checking |and althought I have no time to test the latest one it |seems to work. ]- will u post a note on the list when it is integrated ? and if not soon, a patch to current tcng will be good if possible ? I''m going to build a qos server after 1-2 weeks and want not to use CBQ :") ---- dev eth0 { egress { class (<$c1>) if ...; class (<$c2>) if ...; drop if 1; name_of_qdisc { $c1 = class (1); $c2 = class (1); } } } ]- yep I forgot about the "egress" :"), still learning ..... my last time working with QoS was before a year or so and i was using flat-structure generated by a perl script I''ve done, but now tcng seems much more powerfull, easy and extendible.. and as I see the lartc-howto is very good (finally good and comprehensive documentation), thank you for the good work.. thanx alot raptor@unacs.bg
Hi Jacob, please can you post the htb tcng patch to LARTC list ? raptor@unacs.bg would test it in real environment ... thanks, devik On Sun, 14 Jul 2002 raptor@unacs.bg wrote:> > > > > |> raptor@unacs.bg wrote: > |> > - Does tcng support HTB ? syntax ? > |> > |> Not yet. Someone''s working on implementing support for it, so I > |> hope to have it in the not too distant future. > | > |Jacob have it done. He sent me some results for checking > |and althought I have no time to test the latest one it > |seems to work. > > ]- will u post a note on the list when it is integrated ? and if not soon, a patch to current tcng will be good if possible ? > I''m going to build a qos server after 1-2 weeks and want not to use CBQ :") > > > ---- > dev eth0 { > egress { > class (<$c1>) if ...; > class (<$c2>) if ...; > drop if 1; > > name_of_qdisc { > $c1 = class (1); > $c2 = class (1); > } > } > } > > > ]- yep I forgot about the "egress" :"), still learning ..... my last time working with QoS was before a year or so and i was using flat-structure generated by a perl script I''ve done, but now tcng seems much more powerfull, easy and extendible.. and as I see the lartc-howto is very good (finally good and comprehensive documentation), thank you for the good work.. > > > thanx alot > > raptor@unacs.bg > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
> Hi Jacob, > > please can you post the htb tcng patch to LARTC list ? > raptor@unacs.bg would test it in real environment ...I''d like to test tcng with htb, to :) Greetings Tobias
Here it is. - Jacob On Mon, Jul 15, 2002 at 08:22:25AM +0000, devik wrote:> Hi Jacob, > > please can you post the htb tcng patch to LARTC list ? > raptor@unacs.bg would test it in real environment ... > > thanks, devik >
in the tcng directory i''m doing this : patch -b /path/tcng_htb.patch it cant find which files to patch, i tried also "-p1" to "-p5" ... what I''m doing wrong thanx alot raptor@unacs.bg PS. one of the errors : it tries to patch tcc/Parameters but there is no such file, there is tcc/PARAMETERS .... (tcng-8s) _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/