Re: [LARTC] Deleting tc filters

2004-01-24 Thread Simon Byrnand
> I have a fairly sophisticated bandwidth control tree. I am using filters
> to allocate traffic to various HTB buckets according to packet marks.
> Nothing about that is terribly hard.
>
> The problem is that my user population is dynamic. Users appear and
> disappear over time. Also, the priority to which a user is entitled
> changes over time. So, as these changes occur, I need to delete and
> recreate various classes, and I need to change the associated filters in
> order to route user traffic to the appropriate places. Deleting and
> reconstructing the entire tree is not an option.

Why not ?

My traffic control script starts with:

/sbin/tc qdisc del dev eth0 root >/dev/null 2>/dev/null

Which deletes *all* classes and qdisc's etc for eth0, then the script
re-adds things..

So I simply make a change to the tc entries in my script and re-execute
it. At worst a user might be unthrottled for 1/100 of a second or less
that it takes the script to execute

Seems a heck of a lot easier than trying to figure out how to delete
classes and recreate them etc... (not to mention having to keep track of
the heirachy - eg deleting and readding in the correct order)

Regards,
Simon

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Deleting tc filters

2004-01-23 Thread Patrick Turley
I have a fairly sophisticated bandwidth control tree. I am using filters 
to allocate traffic to various HTB buckets according to packet marks. 
Nothing about that is terribly hard.

The problem is that my user population is dynamic. Users appear and 
disappear over time. Also, the priority to which a user is entitled 
changes over time. So, as these changes occur, I need to delete and 
recreate various classes, and I need to change the associated filters in 
order to route user traffic to the appropriate places. Deleting and 
reconstructing the entire tree is not an option.

The problem I'm running into is that it's *very* hard to figure out how 
to delete filters. And I'm not the only one who has found this 
difficult. After a lot of painful Googling, I found the following two 
outstanding examples:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg07359.html

http://lists.nocat.net/pipermail/nocat/2003-April/003004.html

Has anyone made any progress in figuring out the best way to do this?
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/