A class definition contains the parameters for the class, including the filters that cause packets to be placed in this class.
class name
parent parent_class
interface interface
bandwidth bandwidth
max_bandwidth max_bandwidth
priority priority
bandwidth_bps bandwidth_bps
max_bandwidth_bps max_bandwidth_bps
tos_mark tos_mark
tos_mark_mask tos_mark_mask
flow_events flow_events
filter filter
name is the name of the class. This must be unique for the specified interface. If you want this class to act as the default class, its name must be default.
parent_class is the name of the class above this class in the hierarchy.
interface is the name of the interface used by traffic in this class.
bandwidth is the percentage of the bandwidth of the interface that is allocated to the class. Use either this parameter or bandwidth_bps.
max_bandwidth is the maximum percentage of bandwidth this class can use, including bandwidth borrowed from its parent class. Use either this parameter or max_bandwidth_bps.
priority is the priority of the class. Specify an integer from 1 (highest priority) to 7 (lowest priority).
bandwidth_bps is the absolute bandwidth in bits per second that is allocated to the class. Use either this parameter, or bandwidth.
max_bandwidth_bps is the absolute maximum bandwidth in bits per second that this class can use, including bandwidth borrowed from its parent class. Use either this parameter, or max_bandwidth.
tos_mark is the Type of Service specified as a value between 0-255. It overwrites the existing value in classified packets in this class. Refer to "Type of Service Values" for further information.
tos_mark_mask is a bit mask that specifies which Type of Service bits in the IP header are modified with the tos_mark. Refer to "Type of Service Values" for further information.
flow_events indicates that "flow added" events are generated when a new flow is detected in the class. There are no semantics associated with the value of this keyword. To disable flow added events, remove this line from the file.
filter is the name of a filter that allocates packets to this class. You can specify more than one filter, in a comma-separated list.
class test_class
parent root
interface qe0_out
bandwidth 35
max_bandwidth 45
priority 3
tos_mark 0x07
tos_mark_mask 0x0F
flow_events ip_source
filter filter1,filter2