multiple level traffic filtering

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Things have been going well with my progress on integrating traffic
control in conjunction with DHCP and a web interface for my project.  I
have run into another crutch though.  The box needs to limit traffic based
off of ip but I was just informed that the traffic also has to be limited
as a whole on a port by port basis.  I've begun to think of how to
implement this and it seems quite complicated to grasp. Even more
difficult to grasp when I think that all users should have individual per
port traffic shaping as well.  Currently There is an htb root qdisc and a
class for each user to split bandwidth by user.  To split port up by user,
should I create more classes under the user's class for how I wish to
further divide that user's traffic?  I plan to add filters attached to the
qdisc who's parent is the user's class and assign it to the corresponding
classes designated for by port shaping.  To do port shaping on top of this
as a whole confuses me.  I picture having a root qdisc which has classes
to and filters attached to it to first divide the traffic by port.  Under
each of these classes has to be a class for each user to determine their
share of the allotted port bandwidth.  Make sense?

As far as an interface goes, the initial shaping by port should be setup
first because this information is needed before users are created.

After the initial shaping by port is done, user creation is possible.  The
user shaped by ip but also needs to be split by port.   The port split
needs to be accomplished by querying all of the parent classes under the
root qdisc and comparing the filters to determine which ports are split
and how much bandwidth each port gets.   Once this is done the split needs
to be specified for all of the ports being shaped to subdivide the users
traffic by port accordingly.  This seems like a mouthful and is quite
complicated.  Is this the best way to accomplish such a task?   



Hayden Myers	
Support Manager
Skyline Network Technologies	
hayden@spinbox.com
(410)583-1337 option 2


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux