From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Frischknecht peter@empoweringsolutions.com Date: Sun, 22 Oct 2000 15:46:14 +0000 Subject: [LARTC] tc usage with filter priority Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
I am bit confused on the use of tc and filters.
I have gotten the traffic shapping to work, but I just need more help in
subclassifying it.

I need to prioritize certain protocol/port over a different one in the same
subnet.
Most examples show me how to allow for a certain IP address/range to have a
cap on its bandwidth.

It seems that I have all of the tools, but what confuses me the most is that
I don't know how the filter goes about picking up a match.
In iptables, the match is made from top to bottom.  As soon as a match is
made, the packet is dealt with.  Is there a parallel application with tc?
There is some mention of hash tables...what are those for?
What about all of the different kinds of filter (u32, rsvp, route, fw)?
What are they for?

Btw, my setup is similar to a campus LAN, if anybody has already tackled
this kind of environment, please let me know.
I envision 3 different classes of service.
1 - General purpose web browsing (65% bandwidth, medium priority)
2 - Real time applications - games, dialpad, etc. (10% bandwidth, high
priority)
3 - Everything else. (25% bandwidth, low priority)

I am using a cache server in transparent mode to help with the network
performance, but that is a side-note.
Has anyone created an environment like this?

If anyone can point me to a good reference, I would be more than glad to
find the answer on my own.  Fact is, that most of the material that I found
is a plain reference (http://snafu.freedom.org/linux2.2/iproute-notes.html)
or starter examples.

Any help is greatly appreciated.

Peter Frischknecht
Empowering Solutions, Inc.
http://www.empoweringsolutions.com
Phone:    864-6546544 x103
Fax:      864-6540022