ON THIS PAGE
Example: Configuring Unicast Classifiers
Packet classification associates incoming packets with a particular CoS servicing level. Classifiers associate packets with a forwarding class and loss priority and assign packets to output queues based on the associated forwarding class. You apply classifiers to ingress interfaces.
Configuring Unicast Classifiers
Step-by-Step Procedure
To configure a unicast IEEE 802.1 BA classifier named ba-ucast-classifier as the default IEEE 802.1 map:
Associate code point
000
with forwarding classbe
and loss prioritylow
:[edit class-of-service classifiers] user@switch# set ieee-802.1 ba-ucast-classifier import default forwarding-class be loss-priority low code-points 000
Associate code point
011
with forwarding classfcoe
and loss prioritylow
:[edit class-of-service classifiers] user@switch# set ieee-802.1 ba-ucast-classifier forwarding-class fcoe loss-priority low code-points 011
Associate code point
100
with forwarding classno-loss
and loss prioritylow
:[edit class-of-service classifiers] user@switch# set ieee-802.1 ba-ucast-classifier forwarding-class no-loss loss-priority low code-points 100
Associate code point
110
with forwarding classnc
and loss prioritylow
:[edit class-of-service classifiers] user@switch# set ieee-802.1 ba-ucast-classifier forwarding-class nc loss-priority low code-points 110
Apply the unicast classifier to ingress interface
xe-0/0/10
:[edit class-of-service interfaces] user@switch# set xe-0/0/10 unit 0 classifiers ieee-802.1 ba-ucast-classifier
Requirements
This example uses the following hardware and software components:
One switch except QFX10000 (this example was tested on a Juniper Networks QFX3500 switch)
Junos OS Release 11.1 or later for the QFX Series
Overview
Junos OS supports two general types of classifiers:
Behavior aggregate or CoS value traffic classifiers—Examine the CoS value in the packet header. The value in this single field determines the CoS settings applied to the packet. BA classifiers allow you to set the forwarding class and loss priority of a packet based on the Differentiated Services code point (DSCP) value or IEEE 802.1p value.
Multifield traffic classifiers—Examine multiple fields in the packet, such as source and destination addresses and source and destination port numbers of the packet. With multifield classifiers, you set the forwarding class and loss priority of a packet based on firewall filter rules.
You must assign unicast traffic and multidestination (multicast, broadcast, and destination lookup fail) traffic to different classifiers. One classifier cannot include both unicast and multidestination forwarding classes. A unicast classifier can include only forwarding classes for unicast traffic.
This example describes how to configure a BA classifier called ba-ucast-classifier as the default IEEE 802.1 map and apply it to ingress interface xe-0/0/10. The BA classifier assigns loss priorities, as shown in Table 1, to incoming packets in the four forwarding classes.
You can use the same procedure to set multifield classifiers (except that you use firewall filter rules).
Unicast Forwarding Class |
For CoS Traffic Type |
ba-ucast-classifier Assignment |
Packet Drop Attribute |
---|---|---|---|
|
Best-effort traffic |
Low loss priority code point: |
Low loss priority code point: 000 |
|
Guaranteed delivery for Fibre Channel over Ethernet (FCoE) traffic |
Low loss priority code point: |
no-loss |
|
Guaranteed delivery for TCP traffic |
Low loss priority code point: |
Low loss priority code point: 100 |
|
Network-control traffic |
Low loss priority code point: |
drop |
Verification
To verify the unicast classifier configuration, perform these tasks:
Verifying the Unicast Classifier Configuration
Purpose
Verify that you configured the unicast classifier with the correct forwarding classes, loss priorities, and code points.
Action
List the classifier configuration using the operational
mode command show configuration class-of-service classifiers
ieee-802.1 ba-ucast-classifier
:
user@switch> show configuration class-of-service classifiers ieee-802.1 ba-ucast-classifier forwarding-class be { loss-priority low code-points 000; } forwarding-class fcoe { loss-priority low code-points 011; } forwarding-class no-loss { loss-priority low code-points 100; } forwarding-class nc loss-priority low code-points 110; }
Verifying the Ingress Interface Configuration
Purpose
Verify that the unicast classifier ba-ucast-classifier
is attached to ingress interface xe-0/0/10
.
Action
List the ingress interface using the operational mode
command show configuration class-of-service interfaces xe-0/0/10
:
user@switch> show configuration class-of-service interfaces xe-0/0/10 congestion-notification-profile fcoe-cnp; unit 0 { classifiers { ieee-802.1 ba-ucast-classifier; } }