You can override the default IP precedence classifier by defining a classifier and applying it to a logical interface. To define new classifiers for all code point types, include the classifiers statement at the [edit class-of-service] hierarchy level:
- [edit class-of-service]
- classifiers {
-
- (dscp | dscp-ipv6 | exp | ieee-802.1 | inet-precedence) classifier-name {
- import [classifier-name | default];
-
- forwarding-class class-name {
-
- loss-priority level {
- code-points [ aliases ] [ 6-bit-patterns ];
- }
- }
- }
- }
The map sets the forwarding class and PLP for a specific set of code-point aliases and bit patterns. The inputs of the map are code-point aliases and bit patterns. The outputs of the map are the forwarding class and the PLP.
The classifiers work as follows:
A classifier takes a specified bit pattern as either the literal pattern or as a defined alias and attempts to match it to the type of packet arriving on the interface. If the information in the packet’s header matches the specified pattern, the packet is sent to the appropriate queue, defined by the forwarding class associated with the classifier.
The code-point aliases and bit patterns are the input for the map. The loss priority and forwarding class are outputs of the map. In other words, the map sets the PLP and forwarding class for a given set of code-point aliases and bit patterns.