* [LARTC] Deleting tc filters
@ 2004-01-24 3:23 Patrick Turley
2004-01-24 10:46 ` Simon Byrnand
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Turley @ 2004-01-24 3:23 UTC (permalink / raw)
To: lartc
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/lartc@mailman.ds9a.nl/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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Deleting tc filters
2004-01-24 3:23 [LARTC] Deleting tc filters Patrick Turley
@ 2004-01-24 10:46 ` Simon Byrnand
0 siblings, 0 replies; 2+ messages in thread
From: Simon Byrnand @ 2004-01-24 10:46 UTC (permalink / raw)
To: lartc
> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-24 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-24 3:23 [LARTC] Deleting tc filters Patrick Turley
2004-01-24 10:46 ` Simon Byrnand
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.