Packet classification associates incoming packets with a particular CoS servicing level. Behavior aggregate (BA) classifiers examine the Differentiated Services code point (DSCP or DSCP IPv6) value, the IEEE 802.1p CoS value, or the MPLS EXP value in the packet header to determine the CoS settings applied to the packet. (See Configuring a Global MPLS EXP Classifier to learn how to define EXP classifiers for MPLS traffic.) BA classifiers allow you to set the forwarding class and loss priority of a packet based on the incoming CoS value.
Note: OCX Series switches do not support MPLS EXP classifiers.
On switches except QFX10000 and NFX Series devices, unicast traffic must use different classifiers than multidestination (mulitcast, broadcast, and destination lookup fail) traffic. You use the multi-destination
statement at the [edit class-of-service]
hierarhcy level to configure a multidestination BA classifier.
On QFX10000 switches and NFX Series devices, unicast and multidestination traffic use the same classifiers and forwarding classes.
Multidestination classifiers apply to all of the switch interfaces and handle multicast, broadcast, and destination lookup fail (DLF) traffic. You cannot apply a multidestination classifier to a single interface or to a range of interfaces.
To configure a DSCP, DSCP IPv6, or IEEE 802.1p BA classifier using the CLI:
- Create a BA classifier:
-
To create a DSCP, DSCP IPv6, or IEEE 802.1p BA
classifier based on the default classifier, import
the default DSCP, DSCP IPv6, or IEEE 802.1p
classifier and associate it with a forwarding
class, a loss priority, and a code point:
[edit class-of-service classifiers]
user@switch# set (dscp | dscp-ipv6 | ieee-802.1) classifier-name import default forwarding-class forwarding-class-name loss-priority level code-points [aliases] [bit-patterns]
To create a BA classifier that is not based on the default classifier, create a DSCP, DSCP IPv6, or IEEE 802.1p classifier and associate it with a forwarding class, a loss priority, and a code point:
[edit class-of-service classifiers]
user@switch# set (dscp | dscp-ipv6 | ieee-802.1) classifier-name forwarding-class forwarding-class-name loss-priority level code-points [aliases] [bit-patterns]
- For multidestination traffic, except on QFX10000 switches or NFX Series devices, configure the classifier as a multidestination classifier:
[edit class-of-service]
user@switch# set multi-destination classifiers (dscp | dscp-ipv6 | ieee-802.1 | inet-precedence) classifier-name
- Apply the classifier to a specific Ethernet interface or to all Ethernet interfaces, or to all Fibre Channel interfaces on the device.
-
To apply the classifier to a specific
interface:
[edit class-of-service interfaces]
user@switch# set interface-name unit unit classifiers (dscp | dscp-ipv6 | ieee-802.1) classifier-name
-
To apply the classifier to all Ethernet
interfaces on the switch, use wildcards for the
interface name and the logical interface (unit)
number:
[edit class-of-service interfaces]
user@switch# set xe-* unit * classifiers (dscp | dscp-ipv6 | ieee-802.1) classifier-name