Technical data

4. Packages
QOS_CLASS_2_PRIO='1'
QOS_CLASS_3_MINBANDWIDTH='40Kibit/s'
QOS_CLASS_3_PARENT='1'
QOS_CLASS_3_MAXBANDWIDTH='128Kibit/s'
QOS_CLASS_3_PRIO='1'
QOS_CLASS_4_PARENT='1'
QOS_CLASS_4_MINBANDWIDTH='28Kibit/s'
QOS_CLASS_4_MAXBANDWIDTH='128Kibit/s'
QOS_CLASS_4_PRIO='2'
Like in the original example class 2 consumes only 20Kibit/s and leaves free bandwidth
of 40Kibit/s. Classes 3 and 4 both need more bandwidth than available. Class 3 now
has a higher priority than class 4 and may use the free bandwidth of 40Kibit/s.
If class 3 needs only 20Kibit/s of the free bandwidth of 40Kibit/s class 4 will get the
remaining 20Kibit/s.
Lets assume something different: Class 4 needs no bandwidth at all and class 2 and 3 both
need more than exists. So they both get the bandwidth set in QOS_CLASS_x_MINBANDWIDTH
and the remaining will be divided in 60/40 ratio between them because both classes have
the same priority.
As you see QOS_CLASS_x_PRIO only has influence on how an enventual overrun in band-
width is spread.
QOS_CLASS_x_LABEL By using this optional variable a label for the class may be spec-
ified which will be used as the caption for the QOS-graphs created by an activated
OPT_RRDTOOL.
QOS_FILTER_N Set the number of filters desired here.
A quick note on filters: Arguments of the different variables are AND-linked, arguments
of the same variable are OR-linked. This means: If the same filter filters by an IP-
address and a port only packets will get selected and put in the queue which match both
conditions at a time.
Another example: Two ports (21 and 80) and an IP address are set in the same filter.
Since a packet can’t use two ports at a time the filter will match those packets that either
use port 21 and the named IP address or port 80 and the named IP address.
Important: The ordering of filters is essential!
An example: All traffic on port 456 for all clients should be queued to class A. In addition
all packets to a client with IP address 192.168.6.5 should be queued to class B, except
those on port 456. If the filter on the IP is created first all packets (those on port 456
too) will be queued to class B and the filter on port 456 doesn’t change this behavior.
The filter on port 456 has to be created before the one on the IP address 192.168.6.5 to
achieve our goals.
QOS_FILTER_x_CLASS This variable specifies the class a packet is queued in that matches
the given filter. If for example packets should be put in the queue specified by QOS_-
CLASS_25_MINBANDWIDTH this should be done like this:
208