Skip to contentSkip to conversation

Immediately drop packet for default class ini htb

LARTC Daniel Harold L. 2 participants 3 messages Apr 25, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

How to immediately drop packet for default class in htb ? I`m using kernel 2.6.5+htb+imq ...
I have to immediately drop packet that flow in default class because that class have queue length 1000 packets before dropping packet ... :(( If queue packets in this class is raised to 100 packets or more then traffic out from the interface is slowing down (sometimes can be zero !) for a moment (about 5-10 seconds).

Thank you for any help from all ..

Regards,

Daniel

ps. sorry for my bad English :(

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 4 lines · Daniel Harold L.

How to immediately drop packet for default class in htb ? I`m using kernel 2.6.5+htb+imq ...
I have to immediately drop packet that flow in default class because that class have queue length 1000 packets before dropping packet ... :((

Well, it all depends on how a packet ends up in your default class. For example, if you use iptables for packet marking, you could let iptables drop all packages that were not marked. This would be the best way to go.

If that's not possible, you could probably try to attach another qdisc to your default HTB class (leaf classes can be parents for qdiscs), which then just drops all the packets flowing into it (any rate limiter set to a very low rate should do). However, that's not a very clean solution, and might cause other problems, I'm not sure ;-)

HTH
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc