QoS implementation for DIFFSERV
QOS
7-5
iMG/RG Software Reference Manual (Quality of Service)
classifier profile cp1 set rule rule1 srcaddr 20.20.20.1
255.255.255.255
To configure a rule to assign priority value 1, use the command:
classifier profile cp1 set rule rule1 priority 1
To configure a rule to assign a meter Id to a packet matching the rule use the command:
classifier profile MF set rule Gold meterid 1
Add the profile to an existing transport using the command:
transport set default classifier profile <profile>
Typically, you would use the Classifier with the Meter to provide a full policing QoS implementation.
7.1.3.2.2 Marking packets
The Classifier incorporates the functionality of a DIFFSERV Marker. It can be configured to mark packets with a
specific DSCP. You can set a classifier rule to configure marking using the CLI command
CLASSIFIER PRO-
FILE SET RULE MARK DSCP
This command allows you to set a particular DSCP for a specific rule.
If the rule is matched, the DSCP will be written into the DS (or ToS) field in the header of the IP packet and the
checksum for the IP header will also be updated.
For example, a router at the edge of a network might classify packets according to their source and destination
address and port number, and then mark the packet with a specific DSCP. A router in the core of the network
would only need to examine the DSCP field to determine the traffic class of the packet.
The Classifier is not used to mark packets originated by applications running on the device itself. For locally
originated traffic, local applications such as VoIP allow to set the value of the IP header DS field, instead of using
the default value of 0.
7.1.3.3 Meter
The Meter is used to measure and police the rate of incoming traffic streams. The Meter does not examine out-
going packets and is placed after the Classifier in the receive data path.
The Meter is layered on top of the Classifier. The Classifier classifies (or segregates) incoming traffic stream on
the interface to which it is attached, into multiple traffic streams according to configured rules. Each traffic
stream then gets metered by the Meter device (provided a meter instance has been configured for the stream).
Metering is done against the meter profile configured by the user to measure that stream.