Hi again, I just ran into a seriously strange glitch, and was wondering if anybody had experienced this... I have an HTB class with an iptables classifier. The iptables classifier shows packets hitting the rule for this class. Now, HTB drops these packets (''dropped'' increases), even although the packets are small, and there are over 10000 tokens available. Is there any other reason HTB may decide to discard these packets? Restarting the classifier script seems to have solved the problem, but I need to avoid it happening again. Thanks, Justin _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
buddies, im newbie to traffic control and been studying htb scripts (examples), I wonder how to use params, this line below for ex.: -------- $TC filter add dev $WAN parent 1: protocol ip prio 10 u32 match ip protocol 6 0xff match u 8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 33 flowid 1:$VIP -------- I understood it is adding a filter to go to class $VIP in device wan (eth0 in my case)........ I also understant that "match ip protocol 6" <-- 6 = TCP - I see that in /etc/protocols, but why that 0xff after it ? can someone explain the rest of the params ? I donnot understant those params like prio 10, u32, match u16 0x0000 0xffc0, etc ! thanks in advance James _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 26 November 2004 07:38, James Lista wrote:> buddies, ><snip>> I understood it is adding a filter to go to class $VIP in device wan (eth0 > in my case)........ > I also understant that "match ip protocol 6" <-- 6 = TCP - I see that in > /etc/protocols, but why that 0xff after it ? > > can someone explain the rest of the params ? I donnot understant those > params like prio 10, u32, match u16 0x0000 0xffc0, etc !This is the only documentation I have been able to track down in my travels about the u32 classifier[1]. I don''t know why there''s an 0xff after match ''ip protocol 6''. You get the same thing for ''[d|s]port 53 0xff'' matches, too. I think those keywords are syntactic sugar. [1] http://lartc.org/howto/lartc.adv-filter.html -- Jason Boxman Perl Programmer / *NIX Systems Administrator Shimberg Center for Affordable Housing | University of Florida http://edseek.com/ - Linux and FOSS stuff _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 26 November 2004 10:07, Justin Schoeman wrote:> Hi again, > > I just ran into a seriously strange glitch, and was wondering if anybody > had experienced this... > > I have an HTB class with an iptables classifier. The iptables > classifier shows packets hitting the rule for this class. > > Now, HTB drops these packets (''dropped'' increases), even although the > packets are small, and there are over 10000 tokens available. > > Is there any other reason HTB may decide to discard these packets? > > Restarting the classifier script seems to have solved the problem, but I > need to avoid it happening again.The only info I have is: Each dropped packet is overlimited. overlimits : Packet is not sent due to ceil or rate restrictions So there was too much data in the class. But don''t believe this too much. It depends on how often the qdisc looked for packets. This counter is incremented per unsuccessful DRR loop and it''s possible that this happens more then once per packet. From http://www.docum.org/docum.org/faq/cache/33.html Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 26 November 2004 13:38, James Lista wrote:> buddies, > > im newbie to traffic control and been studying htb scripts (examples), I > wonder how to use params, this line below for ex.: > -------- > $TC filter add dev $WAN parent 1: protocol ip prio 10 u32 match ip protocol > 6 0xff match u 8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 > 0xff at 33 flowid 1:$VIP > -------- > > I understood it is adding a filter to go to class $VIP in device wan (eth0 > in my case)........ > I also understant that "match ip protocol 6" <-- 6 = TCP - I see that in > /etc/protocols, but why that 0xff after it ? > > can someone explain the rest of the params ? I donnot understant those > params like prio 10, u32, match u16 0x0000 0xffc0, etc !Start reading and reading and reading and more reading: http://www.lartc.org http://www.docum.org Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/