MPLS Class-of-Service Configuration
Configuring Class of Service for MPLS LSPs
The following sections provide an overview of MPLS class of service (CoS) and describe how to configure the MPLS CoS value:
- Class of Service for MPLS Overview
- Configuring the MPLS CoS Values
- Rewriting IEEE 802.1p Packet Headers with the MPLS CoS Value
Class of Service for MPLS Overview
When IP traffic enters an LSP tunnel, the ingress router marks all packets with a CoS value, which is used to place the traffic into a transmission priority queue. On the router, for SDH/SONET and T3 interfaces, each interface has four transmit queues. The CoS value is encoded as part of the MPLS header and remains in the packets until the MPLS header is removed when the packets exit from the egress router. The routers within the LSP utilize the CoS value set at the ingress router. The CoS value is encoded by means of the CoS bits (also known as the EXP or experimental bits). For more information, see MPLS Label Allocation.
MPLS class of service works in conjunction with the router’s general CoS functionality. If you do not configure any CoS features, the default general CoS settings are used. For MPLS class of service, you might want to prioritize how the transmit queues are serviced by configuring weighted round-robin, and to configure congestion avoidance using random early detection (RED)..
Configuring the MPLS CoS Values
When traffic enters an LSP tunnel, the CoS value in the MPLS header is set in one of three ways:
The number of the output queue into which the packet was buffered and the packet loss priority (PLP) bit are written into the MPLS header and are used as the packet’s CoS value. This behavior is the default, and no configuration is required. Default MPLS EXP Classifier explains the default MPLS CoS values, and summarizes how the CoS values are treated.
You set a fixed CoS value on all packets entering the LSP tunnel. A fixed CoS value means that all packets entering the LSP receive the same class of service.
You set an MPLS EXP rewrite rule to override the default behavior.
To set a fixed CoS value on all packets entering the LSP, include
the class-of-service
statement:
class-of-service cos-value;
You can include this statement at the following hierarchy levels:
[edit protocols mpls]
[edit protocols mpls label-switched-path path-name]
[edit protocols mpls label-switched-path path-name primary path-name]
[edit protocols mpls label-switched-path path-name secondary path-name]
[edit protocols rsvp interface interface-name link-protection]
[edit protocols rsvp interface interface-name link-protection bypass destination]
[edit logical-systems logical-system-name protocols mpls]
[edit logical-systems logical-system-name protocols mpls label-switched-path path-name]
[edit logical-systems logical-system-name protocols mpls label-switched-path path-name primary path-name]
[edit logical-systems logical-system-name protocols mpls label-switched-path path-name secondary path-name]
[edit logical-systems logical-system-name protocols rsvp interface interface-name link-protection ]
[edit logical-systems logical-system-name protocols rsvp interface interface-name link-protection bypass destination]
The CoS value set using the class-of-service
statement
at the [edit protocols mpls]
hierarchy level supersedes
the CoS value set at the [edit class-of-service]
hierarchy
level for an interface. Effectively, the CoS value configured for
an LSP overrides the CoS value set for an interface.
The class-of-service
statement at the [edit
protocols mpls label-switched-path]
hierarchy level assigns
an initial EXP value for the MPLS shim header of packets in the LSP.
This value is initialized at the ingress routing device only and overrides
the rewrite configuration established for that forwarding class. However,
the CoS processing (weighted round robin [WRR] and RED) of packets
entering the ingress routing device is not changed by the class-of-service
statement on an MPLS LSP. Classification is still based on the behavior
aggregate (BA) classifier at the [edit class-of-service]
hierarchy level or the multifield classifier at the [edit firewall]
hierarchy level.
We recommend configuring all routing devices along the LSP to have the same input classifier for EXP, and, if a rewrite rule is configured, all routing devices should have the same rewrite configuration. Otherwise, traffic at the next LSR might be classified into a different forwarding class, resulting in a different EXP value being written to the EXP header.
The CoS value can be a decimal number from 0 through 7. This number corresponds to a 3-bit binary number. The high-order 2 bits of the CoS value select which transmit queue to use on the outbound interface card.
The low-order bit of the CoS value is treated as the PLP bit and is used to select the RED drop profile to use on the output queue. If the low-order bit is 0, the non-PLP drop profile is used, and if the low-order bit is 1, the PLP drop profile is used. It is generally expected that RED will more aggressively drop packets that have the PLP bit set. For more information about RED and drop profiles, see Managing Congestion Using RED Drop Profiles and Packet Loss Priorities.
Configuring the PLP drop profile to drop packets more aggressively (for example, setting the CoS value from 6 to 7) decreases the likelihood of traffic getting through.
Table 1 summarizes how MPLS CoS values correspond to the transmit queue and PLP bit. Note that in MPLS, the mapping between the CoS bit value and the output queue is hard-coded. You cannot configure the mapping for MPLS; you can configure it only for IPv4 traffic flows, as described in Understanding How Forwarding Classes Assign Classes to Output Queues.
MPLS CoS Value |
Bits |
Transmit Queue |
PLP Bit |
---|---|---|---|
0 |
000 |
0 |
Not set |
1 |
001 |
0 |
Set |
2 |
010 |
1 |
Not set |
3 |
011 |
1 |
Set |
4 |
100 |
2 |
Not set |
5 |
101 |
2 |
Set |
6 |
110 |
3 |
Not set |
7 |
111 |
3 |
Set |
Because the CoS value is part of the MPLS header, the value is associated with the packets only as they travel through the LSP tunnel. The value is not copied back to the IP header when the packets exit from the LSP tunnel.
To configure class of service (CoS) for Multiprotocol Label Switching (MPLS) packets in a label-switched path (LSP):
Specify the CoS value
If you do not specify a CoS value, the IP precedence bits from the packet’s IP header are used as the packet’s CoS value.
Rewriting IEEE 802.1p Packet Headers with the MPLS CoS Value
For Ethernet interfaces installed on a T Series router or an M320 router with a peer connection to an M Series router or a T Series router, you can rewrite both MPLS CoS and IEEE 802.1p values to a configured value (the MPLS CoS values are also known as the EXP or experimental bits). Rewriting these values allows you to pass the configured value to the Layer 2 VLAN path. To rewrite both the MPLS CoS and IEEE 802.1p values, you must include the EXP and IEEE 802.1p rewrite rules in the class of service interface configuration. The EXP rewrite table is applied when you configure the IEEE 802.1p and EXP rewrite rules.
For information about how to configure the EXP and IEEE 802.1p rewrite rules, see Rewriting Packet Headers to Ensure Forwarding Behavior.
Configuring MPLS Rewrite Rules
You can apply a number of different rewrite rules to MPLS packets.
For more information about how to configure statements at the [edit class-of-service]
hierarchy level, see the Junos OS Class of Service User Guide for Routing Devices.
The following sections describe how you can apply rewrite rules to MPLS packets:
- Rewriting the EXP Bits of All Three Labels of an Outgoing Packet
- Rewriting MPLS and IPv4 Packet Headers
Rewriting the EXP Bits of All Three Labels of an Outgoing Packet
In interprovider, carrier-of-carrier, and complex traffic engineering scenarios, it is sometimes necessary to push three labels on the next hop.
By default, on M Series routers except the M320, the top MPLS EXP label of an outgoing packet is not rewritten when you configure swap-push-push and triple-push operations. You can rewrite the EXP bits of all three labels of an outgoing packet, thereby maintaining the class of service (CoS) of an incoming MPLS or non-MPLS packet.
To push three labels on incoming MPLS packets, include the exp-swap-push-push default
statement at the [edit class-of-service
interfaces interface-name unit logical-unit-number rewrite-rules]
hierarchy level:
[edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules] exp-swap-push-push default;
To push three labels on incoming non-MPLS packets, include the exp-push-push-push default
statement at the [edit class-of-service
interfaces interface-name unit logical-unit-number rewrite-rules]
hierarchy level:
[edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules] exp-push-push-push default;
For more information about how to configure statements at the [edit class-of-service]
hierarchy level, see the Junos OS Class of Service User Guide for Routing Devices.
Rewriting MPLS and IPv4 Packet Headers
You can apply a rewrite rule to MPLS and IPv4 packet headers simultaneously. This allows you to initialize MPLS EXP and IP precedence bits at LSP ingress. You can configure different rewrite rules depending on whether the traffic is VPN or non-VPN.
To rewrite MPLS and IPv4 packet headers, include the protocol
statement at the [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules exp rewrite-rule-name]
hierarchy
level:
[edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules exp rewrite-rule-name] protocol types;
Use the protocol
statement to specify the types of
MPLS packets and packet headers to which to apply the rewrite rule.
The MPLS packet can be a standard MPLS packet or an MPLS packet with
an IPv4 payload. Specify the type of MPLS packet by using the following
options:
mpls-any
—Applies the rewrite rule to MPLS packets and writes the code point value to MPLS headers.mpls-inet-both
—Applies the rewrite rule to VPN MPLS packets with IPv4 payloads. Writes the code point value to the MPLS and IPv4 headers in T Series (except T4000 routers) and M320 routers. On M Series routers, except the M320, thempls-inet-both
option causes all ingress MPLS LSP packets with IPv4 payloads to be initialized with 000 code points for IP precedence and MPLS EXP values.mpls-inet-both-non-vpn
—Applies the rewrite rule to any non-VPN MPLS packets with IPv4 payloads. Writes the code point value to the MPLS and IPv4 headers in T Series and M320 routers. On M Series routers, except the M320, thempls-inet-both-non-vpn
option causes all ingress MPLS LSP packets with IPv4 payloads to be initialized with 000 code points for IP precedence and MPLS EXP values.
For a detailed example on how to configure rewrite rules for MPLS and IPv4 packets and for more information about how to configure class of service, see the Junos OS Class of Service User Guide for Routing Devices.
Configuring CoS Bits for an MPLS Network
When traffic enters a labeled-switch path (LSP) tunnel, the CoS bits in the MPLS header are set in one of two ways:
The number of the output queue into which the packet was buffered and the packet loss priority (PLP) bit are written into the MPLS header and are used as the packet’s CoS value. This behavior is the default, and no configuration is required. The Junos OS Class of Service Configuration Guide explains the IP CoS values, and summarizes how the CoS bits are treated.
You set a fixed CoS value on all packets entering the LSP tunnel. A fixed CoS value means that all packets entering the LSP receive the same class of service.
To set a fixed CoS value on all packets entering the LSP:
Specify a class of service value for the LSP:
Note:The CoS value set using the
class-of-service
statement at the[edit protocols mpls]
hierarchy level supersedes the CoS value set at the[edit class-of-service]
hierarchy level for an interface. Effectively, the CoS value configured for an LSP overrides the CoS value set for an interface.[edit protocols mpls] user@switch# set class-of-service cos-value
Configuring CoS on an MPLS Provider Edge Switch Using IP Over MPLS
You can use class of service (CoS) within MPLS networks to prioritize certain types of traffic during periods of congestion. This topic describes configuring CoS components on a provider edge (PE) switch that is using IP Over MPLS.
This task describes how to create a custom DSCP classifier and a custom EXP rewrite rule on the ingress PE switch. It includes configuring a policer firewall filter and applying it to the customer-edge interface of the ingress PE switch. The policer firewall filter ensures that the amount of traffic forwarded through the MPLS tunnel never exceeds the requested bandwidth allocation.
Before you begin, configure the basic components for an MPLS network:
Configure two PE switches. See Basic MPLS Configuration.
Configure one or more provider switches.
Configuring CoS
To configure CoS on a provider edge switch:
Configuring an LSP Policer
To configure an LSP policer:
You can also configure schedulers and shapers as needed. See Defining CoS Schedulers and Scheduler Maps (CLI Procedure).
Configuring CoS on an MPLS Provider Edge Switch Using Circuit Cross-Connect
You can use class of service (CoS) within MPLS networks to prioritize certain types of traffic during periods of congestion. This topic describes configuring CoS components on a provider edge (PE) switch that is using MPLS over circuit-cross connect (CCC).
If you are using MPLS over CCC, you can use only one DSCP or IP precedence classifier and only one IEEE 802.1p classifier on the CCC interfaces.
This procedure is for creating a custom DSCP classifier and a custom EXP rewrite rule on the ingress PE. It also includes enabling a policer on the label-switched path (LSP) of the ingress PE to ensure that the amount of traffic forwarded through the LSP never exceeds the requested bandwidth allocation.
This topic includes:
Configuring CoS
To configure CoS on a provider edge switch:
Configuring an LSP Policer
To configure an LSP policer:
You can also configure schedulers and shapers as needed. See Defining CoS Schedulers and Scheduler Maps (CLI Procedure).
Configuring CoS on Provider Switches of an MPLS Network
You can add class-of-service (CoS) components to your MPLS networks on EX Series switches to achieve end-to-end Differentiated Services to match your specific business requirements. The configuration of CoS components on the provider switches is the same regardless of whether the provider edge (PE) switches are using MPLS over CCC or IP over MPLS.
This task shows how to configure a custom EXP classifier and custom EXP rewrite rule on the provider switch.
You can also configure schedulers and shapers as needed. See Defining CoS Schedulers and Scheduler Maps (CLI Procedure).
Understanding Using CoS with MPLS Networks on EX Series Switches
You can use class of service (CoS) within MPLS networks to prioritize certain types of traffic during periods of congestion. See EX Series Switch Software Features Overview for a complete list of the Junos OS MPLS features that are supported on specific EX Series switches.
Juniper Networks EX Series Ethernet Switches support Differentiated Service Code Point (DSCP) or IP precedence and IEEE 802.1p CoS classifiers on the customer-edge interfaces of the ingress provider edge (PE) switch. DSCP or IP precedence classifiers are used for Layer 3 packets. IEEE 802.1p is used for Layer 2 packets.
When a packet enters a customer-edge interface of the ingress PE switch, the switch associates the packet with a particular CoS servicing level before putting the packet onto the label-switched path (LSP). The switches within the LSP utilize the CoS value set at the ingress PE switch. The CoS value that was embedded in the classifier is translated and encoded in the MPLS header by means of the EXP or experimental bits. EX Series switches enable a default EXP classifier and a default EXP rewrite rule. For more information about EXP classifiers and EXP rewrite rules, see EXP Classifiers and EXP rewrite Rules.
This topic includes:
- EXP Classifiers and EXP rewrite Rules
- Guidelines for Using CoS Classifiers on CCCs
- Using CoS Classifiers with IP over MPLS
- Setting CoS Bits in an MPLS Header
- EXP Rewrite Rules
- Policer
- Schedulers
EXP Classifiers and EXP rewrite Rules
EX Series switches enable a default EXP classifier and a default EXP rewrite rule. You can configure a custom EXP classifier and a custom EXP rewrite rule if you prefer. However, the switch supports only one type of EXP classifier (default or custom) and only one EXP rewrite rule (default or custom).
You do not bind the EXP classifier or the EXP rewrite rule to individual interfaces. The switch automatically and implicitly applies the default or the custom EXP classifier and the default or the custom EXP rewrite rule to the appropriate MPLS-enabled interfaces. Because rewrite rules affect only egress interfaces, the switch applies the EXP rewrite rule only to those MPLS interfaces that are transmitting MPLS packets (not to the MPLS interfaces that are receiving the packets).
After traversing the MPLS tunnel, the traffic flows out from the egress provider edge (PE) switch. Before the traffic leaves the egress interface, the egress PE switch copies the EXP bits from the MPLS header to the most significant bits in the original IP packet--- that is, to the IP precedence bits.
Guidelines for Using CoS Classifiers on CCCs
When you are configuring CoS for MPLS over circuit cross-connect (CCC), there are some additional guidelines, as follows:
-
You must explicitly bind a CoS classifier to the CCC interface on the ingress PE switch.
-
You must use the same DSCP, IP precedence, or IEEE 802.1p classifier on CCC interfaces. However, if the CCC interfaces are on the same switch, you cannot configure both a DSCP and an IP precedence classifier on these interfaces. Thus, if you configure one CCC interface to use a DSCP classifier DSCP1, you cannot configure another CCC interface to use another DSCP classifier DSCP2. All the CCC interfaces on the switch must use the same DSCP (or IP precedence) classifier and the same IEEE 802.1p classifier.
-
You cannot configure one CCC interface to use a DSCP classifier and another CCC interface to use an IP precedence classifier, because these classifier types overlap.
-
You can configure one CCC interface to use a DSCP classifier and another CCC interface to use IEEE 802.1p classifier.
-
You can configure one CCC interface to use both a DSCP and an IEEE 802.1p classifier. If you configure a CCC interface to use both these classifiers, the DSCP classifier is used for routing Layer 3 packets and the IEEE 802.1p classifier is used for routing Layer 2 packets.
-
You can configure one CCC interface to use both an IP precedence and an IEEE 802.1p classifier. If you configure a CCC interface to use both these classifiers, the IP precedence classifier is used for routing Layer 3 packets and the IEEE 802.1p classifier is used for routing Layer 2 packets.
You can define multiple DSCP, IP precedence, and IEEE 802.1p classifiers for the non-CCC interfaces on a switch.
Using CoS Classifiers with IP over MPLS
When you are configuring CoS for IP over MPLS, the customer-edge interface uses the CoS configuration for the switch as the default. You do not have to bind a classifier to the customer-edge interface in this case. There are no restrictions on using multiple DSCP, IP precedence, and IEEE 802.1p classifiers on the same switch.
You can modify the CoS classifier for a particular interface, but it is not required.
You can configure a DSCP classifier, DSCP1 on the first interface, another DSCP classifier, DSCP2 on the second interface, and an IP precedence classifier on a third interface, and so forth.
Setting CoS Bits in an MPLS Header
When traffic enters an LSP tunnel, the CoS bits in the MPLS header are set in one of two ways:
-
The number of the output queue into which the packet was buffered and the packet loss priority (PLP) bit are written into the MPLS header and are used as the packet’s CoS value. This behavior is the default, and no configuration is required. The Junos OS Class of Service User Guide for Routing Devices explains the IP CoS values, and summarizes how the CoS bits are treated.
-
You set a fixed CoS value on all packets entering the LSP tunnel. A fixed CoS value means that all packets entering the LSP receive the same class of service.
The CoS value can be a decimal number from 0 through 7. This number corresponds to a 3-bit binary number. The high-order 2 bits of the CoS value select which transmit queue to use on the outbound interface card.
The low-order bit of the CoS value is treated as the PLP bit and is used to select the RED drop profile to use on the output queue. If the low-order bit is 0, the non-PLP drop profile is used, and if the low-order bit is 1, the PLP drop profile is used. It is generally expected that random early detection (RED) will more aggressively drop packets that have the PLP bit set. For more information about RED and drop profiles, see the Junos OS Class of Service User Guide for Routing Devices.
Configuring the PLP drop profile to drop packets more aggressively (for example, setting the CoS value from 6 to 7) decreases the likelihood of traffic getting through.
Table 2 summarizes how MPLS CoS values correspond to the transmit queue and PLP bit. Note that in MPLS, the mapping between the CoS bit value and the output queue is hard-coded. You cannot configure the mapping for MPLS; you can configure it only for IPv4 traffic flows, as described in the Junos OS Class of Service User Guide for Routing Devices.
MPLS CoS Value |
Bits |
Transmit Queue |
PLP Bit |
---|---|---|---|
0 |
000 |
0 |
Not set |
1 |
001 |
0 |
Set |
2 |
010 |
1 |
Not set |
3 |
011 |
1 |
Set |
4 |
100 |
2 |
Not set |
5 |
101 |
2 |
Set |
6 |
110 |
3 |
Not set |
7 |
111 |
3 |
Set |
Because the CoS value is part of the MPLS header, the value is associated with the packets only while they travel through the LSP tunnel. The value is not copied back to the IP header when the packets exit from the LSP tunnel.
EXP Rewrite Rules
When traffic passes from the customer-edge interface to an MPLS interface, the DSCP, IP precedence, or IEEE 802.1p CoS classifier is translated into the EXP bits within the MPLS header. You cannot disable the default EXP rewrite rule, but you can configure your own custom EXP classifier and a custom EXP rewrite rule. You cannot bind the EXP classifier to individual MPLS interfaces; the switch applies it globally to all the MPLS-enabled interfaces on the switch.
Only one EXP rewrite rule (either default or custom) is supported on a switch. The switch applies it to all the egress interfaces on which MPLS is enabled.
Policer
Policing helps to ensure that the amount of traffic forwarded through an LSP never exceeds the requested bandwidth allocation. During periods of congestion (when the total rate of queuing packets exceeds the rate of transmission), any new packets being sent to an interface can be dropped because there is no place to store them. You can configure a policer on the ingress PE switch to prevent this:
-
If you are using MPLS over CCC, you bind the policer to the LSP. You cannot bind a policer to a CCC interface.
-
If you are using IP over MPLS, you bind the policer to the inet-family customer-edge interface. You cannot bind a policer to the LSP when you are using IP over MPLS.
Schedulers
The schedulers for using CoS with MPLS are the same as for the other CoS configurations on EX Series switches. Default schedulers are provided for best-effort and network-control forwarding classes. If you are using assured-forwarding, expedited-forwarding, or any custom forwarding class, we recommend that you configure a scheduler to support that forwarding class. See Understanding CoS Schedulers.
Example: Combining CoS with MPLS on EX Series Switches
You can use class of service (CoS) within MPLS networks to prioritize certain types of traffic during periods of congestion. The CoS value is included within the MPLS label, which is passed through the network, enabling end-to-end CoS across the network.
MPLS services are often used to ensure better performance for low-latency applications such as VoIP and other business-critical functions. These applications place specific demands on a network for successful transmission. CoS gives you the ability to control the mix of bandwidth, delay, jitter, and packet loss while taking advantage of the MPLS labeling mechanism.
This example shows how to configure CoS on an MPLS network that is using a unidirectional circuit cross-connect (CCC) from the ingress provider edge (PE) switch to the egress PE switch. for the customer-edge interface of the ingress provider edge (PE) switch. It describes adding the configuration of CoS components to the ingress PE switch, the egress PE switch, and the core provider switches of the existing MPLS network. Because of the unidirectional configuration, the DSCP classifier needs to be configured only on the ingress PE switch.
- Requirements
- Overview and Topology
- Configuring the Local PE Switch
- Configuring the Remote PE Switch
- Configuring the Provider Switch
- Verification
Requirements
This example uses the following hardware and software components:
Junos OS Release 10.1 or later for EX Series switches
Three EX Series switches
Before you configure CoS with MPLS, be sure you have:
Configured an MPLS network with two PE switches and one provider switch. See Basic MPLS Configuration. This example assumes that an MPLS network has been configured using a cross circuit-connect (CCC).
Overview and Topology
This example describes adding custom classifiers and custom rewrite rules to switches in an MPLS network that is using MPLS over CCC.
It is a unidirectional configuration. Therefore, you need to configure custom classifiers and custom rewrite rules as follows:
On the ingress PE switch: custom DSCP classifier and custom EXP rewrite rule
On the egress PE switch: custom EXP classifier
On the provider switch: customer EXP classifier and custom EXP rewrite rule
You can also configure schedulers and shapers as needed. If you are using assured-forwarding, expedited-forwarding, or other custom forwarding classes, we recommend that you configure a scheduler to support that forwarding class. See Defining CoS Schedulers and Scheduler Maps (CLI Procedure).
The example creates a custom DSCP classifier (dscp1) on the ingress PE switch and binds this classifier to the CCC interface. It includes configuration of a policer on the ingress PE switch. The policer is applied as a filter on the label-switched path (LSP) lsp_to_pe2_ge1 to ensure that the amount of traffic forwarded through the LSP never exceeds the requested bandwidth allocation.
This example creates a custom EXP rewrite rule (exp1) on the ingress PE switch, specifying a loss-priority and code point to be used for the expedited-forwarding class as the packet travels through the LSP. The switch applies this custom rewrite rule on the core interfaces ge-0/0/5.0 and ge-0/0/6.0, which are the egress interfaces for this switch.
Table 3 shows the CoS configuration components added to the ingress PE switch.
Property |
Settings |
Description |
---|---|---|
Local PE switch hardware |
EX Series switch |
PE-1 |
Policing filter configured and applied to the LSP. |
policing filter mypolicer filter myfilter |
Name of the rate-limiting policer. Name of the filter, which refers to the policer |
Custom DSCP classifier |
dscp1 |
Specifies the name of the custom DSCP classifier |
Custom EXP rewrite rule |
e1 |
Name of the custom EXP rewrite rule. |
Customer-edge interface |
ge-0/0/1.0 |
Interface that receives packets from devices outside the network. The custom DSCP classifier must be specified on this CCC interface. |
Core interfaces |
ge-0/0/5.0 and ge-0/0/6.0 |
Interfaces that transmit MPLS packets to other switches within the MPLS network. The EXP rewrite rule is applied implicitly to these interfaces. |
Table 4 shows the CoS configuration components added to the egress PE switch in this example.
Property |
Settings |
Description |
---|---|---|
Remote provider edge switch hardware |
EX Series switch |
PE-2 |
Custom EXP classifier |
exp1 |
Name of custom EXP classifier |
Customer-edge interface |
ge-0/0/1.0 |
Interface that transmits packets from this network to devices outside the network. No CoS classifier is specified for this interface. A scheduler can be specified. |
Core interfaces |
ge-0/0/7.0 and ge-0/0/8.0 |
Core interfaces on PE-2 that receive MPLS packets from the provider switch. The EXP classifier is enabled by default on the switch and applied implicitly to these interfaces. |
Table 5 shows the MPLS configuration components used for the provider switch in this example.
Property |
Settings |
Description |
---|---|---|
Provider switch hardware |
EX Series switch |
Transit switch within the MPLS network configuration. |
Custom EXP classifier |
exp1 |
Name of the custom EXP classifier. |
Custom EXP rewrite rule |
e1 |
Name of the custom EXP rewrite rule. |
Core interfaces receiving packets from other MPLS switches. |
ge-0/0/5.0 and ge-0/0/6.0 |
Interfaces that connect the provider switch to the ingress PE switch (PE-1). The EXP classifier is enabled by default on the switch and applied implicitly to these interfaces. |
Core interfaces transmitting packets to other switches within the MPLS network. |
ge-0/0/7.0 and ge-0/0/8.0 |
Interfaces that transmit packets to the egress PE (PE-2). The EXP rewrite rule is applied implicitly on these interfaces. Schedulers can also be specified and will be applied to these interfaces. |
Topology
Configuring the Local PE Switch
Procedure
CLI Quick Configuration
To quickly configure a custom DSCP classifier, custom EXP rewrite rule, and a policer on the local PE switch, copy the following commands and paste them into the switch terminal window of PE-1:
[edit] set class-of-service classifiers dscpset class-of-service classifiers dscp dscp1 import default set class-of-service classifiers dscp dscp1 forwarding-class expedited-forwarding loss-priority low code-points 000111 set class-of-service rewrite-rules exp e1 forwarding-class expedited-forwarding loss-priority low code-point 111 set class-of-service interfaces ge-0/0/1 unit 0 classifier dscp1 set firewall policer mypolicer if-exceeding bandwidth-limit 500m set firewall policer mypolicer if-exceeding burst-size-limit 33553920 set firewall policer mypolicer then discard set firewall family any filter myfilter term t1 then policer mypolicer set protocols mpls label-switched-path lsp_to_pe2_ge1 to 127.1.1.3 policing filter myfilter
Step-by-Step Procedure
To configure a custom DSCP classifier, custom EXP rewrite rule, and a policer on the ingress PE switch:
Import the default DSCP classifier classes to the custom DSCP classifier that you are creating:
[edit class-of-service] user@switch# set classifiers dscp dscp1 import default
Add the expedited-forwarding class to this custom DSCP classifier, specifying a loss priority and code point:
[edit class-of-service] user@switch# set classifiers dscp dscp1 forwarding-class expedited-forwarding loss-priority low code-points 000111
Specify the values for the custom EXP rewrite rule, e1:
[edit class-of-service] user@switch# set rewrite-rules exp e1 forwarding-class expedited-forwarding loss-priority low code-point 111
Bind the DSCP classifier to the CCC interface:
[edit class-of-service] user@switch# set class-of-service interfaces ge-0/0/1 unit 0 classifier dscp1
Specify the number of bits per second permitted, on average, for the firewall policer, which will later be applied to the LSP:
[edit firewall] set policer mypolicer if-exceeding bandwidth-limit 500m
Specify the maximum size permitted for bursts of data that exceed the given bandwidth limit for this policer:
[edit firewall policer] set mypolicer if-exceeding burst-size-limit 33553920
Discard traffic that exceeds the rate limits for this policer:
[edit firewall policer] set mypolicer then discard
To reference the policer, configure a filter term that includes the policer action:
[edit firewall] user@switch# set family any filter myfilter term t1 then policer mypolicer
Apply the filter to the LSP:
[edit protocols mpls] set label-switched-path lsp_to_pe2_ge1 policing filter myfilter
Results
Display the results of the configuration:
[edit] user@switch# show class-of-service { classifiers { dscp dscp1 { import default; forwarding-class expedited-forwarding { loss-priority low code-points 000111; } } } interfaces { ge-0/0/1 { unit 0 { classifiers { dscp dscp1; } } } } rewrite-rules { exp e1 { forwarding-class expedited-forwarding { loss-priority low code-point 111; } } } } firewall { family any { filter myfilter { term t1 { then policer mypolicer; } } } policer mypolicer { if-exceeding { bandwidth-limit 500m; burst-size-limit 33553920; } then discard; } }
Configuring the Remote PE Switch
Procedure
CLI Quick Configuration
To quickly configure a custom EXP classifier on the remote PE switch, copy the following commands and paste them into the switch terminal window of PE-2:
[edit] set class-of-service classifiers exp exp1 import default set class-of-service classifiers exp exp1 forwarding-class expedited-forwarding loss-priority low code-points 010
Step-by-Step Procedure
To configure a custom EXP classifier on the egress PE switch:
Import the default EXP classifier classes to the custom EXP classifier that you are creating:
[edit class-of-service] user@switch# set classifiers exp exp1 import default
Add the expedited-forwarding class to this custom EXP classifier, specifying a loss priority and code point:
[edit class-of-service] user@switch# set classifiers exp exp1 forwarding-class expedited-forwarding loss-priority low code-points 010
Results
Display the results of the configuration:
[edit] user@switch# show class-of-service { classifiers { exp exp1 { import default; forwarding-class expedited-forwarding { loss-priority low code-points 010; } } } }
Configuring the Provider Switch
Procedure
CLI Quick Configuration
To quickly configure a custom EXP classifier and a custom EXP rewrite rule on the provider switch, copy the following commands and paste them into the switch terminal window of the provider switch:
[edit] set class-of-service classifiers exp exp1 import default set class-of-service classifiers exp exp1 forwarding-class expedited-forwarding loss-priority low code-points 010 set class-of-service rewrite-rules exp e1 forwarding-class expedited-forwarding loss-priority low code-point 111
Step-by-Step Procedure
To configure a custom EXP classifier and a custom EXP rewrite rule on the provider switch:
Import the default EXP classifier classes to the custom EXP classifier that you are creating:
[edit class-of-service] user@switch# set classifiers exp exp1 import default
Add the expedited-forwarding class to this custom EXP classifier, specifying a loss priority and code point:
[edit class-of-service] user@switch# set classifiers exp exp1 forwarding-class expedited-forwarding loss-priority low code-points 010
Specify the values for the custom EXP rewrite rule, e1:
[edit class-of-service] user@switch# set rewrite-rules exp e1 forwarding-class expedited-forwarding loss-priority low code-point 111
Results
Display the results of the configuration:
[edit] user@switch# show class-of-service { classifiers { exp exp1 { import default; forwarding-class expedited-forwarding { loss-priority low code-points 010; } } } rewrite-rules { exp e1 { forwarding-class expedited-forwarding { loss-priority low code-point 111; } } } }
Verification
To confirm that the configuration is working properly, perform these tasks:
- Verifying That the Policer Firewall Filter Is Operational
- Verifying That the CoS Classifiers Are Going to the Right Queue
- Verifying the CoS Forwarding Table Mapping
- Verifying the Rewrite Rules
Verifying That the Policer Firewall Filter Is Operational
Purpose
Verify the operational state of the policer that is configured on the ingress PE switch.
Action
user@switch> show firewall Filter: myfilter Policers: Name Packets mypolicer-t1 0
Meaning
This output shows that the firewall filter mypolicer has been created.
Verifying That the CoS Classifiers Are Going to the Right Queue
Purpose
Verify that the CoS classifiers are going to the right queue.
Action
user@switch> show class-of-service forwarding-table classifier Classifier table index: 7, # entries: 64, Table type: DSCP Entry # Code point Forwarding-class # PLP 0 000000 0 0 1 000001 0 0 2 000010 0 0 3 000011 0 0 4 000100 0 0 5 000101 0 0 6 000110 0 0 7 000111 0 0 8 001000 0 0 9 001001 0 0 10 001010 0 0 11 001011 0 0 12 001100 0 0 13 001101 0 0 14 001110 0 0 15 001111 0 0 16 010000 0 0 17 010001 0 0 18 010010 0 0 19 010011 0 0 20 010100 0 0 21 010101 0 0 22 010110 0 0 23 010111 0 0 24 011000 0 0 25 011001 0 0 26 011010 0 0 27 011011 0 0 28 011100 0 0 29 011101 0 0 30 011110 0 0 31 011111 0 0 32 100000 0 0 33 100001 0 0 34 100010 0 0 35 100011 0 0 36 100100 0 0 37 100101 0 0 38 100110 0 0 39 100111 0 0 40 101000 0 0 41 101001 0 0 42 101010 0 0 43 101011 0 0 44 101100 0 0 45 101101 0 0 46 101110 0 0 47 101111 0 0 48 110000 3 0 49 110001 3 0 50 110010 3 0 51 110011 3 0 52 110100 3 0 53 110101 3 0 54 110110 3 0 55 110111 3 0 56 111000 3 0 57 111001 3 0 58 111010 3 0 59 111011 3 0 60 111100 3 0 61 111101 3 0 62 111110 3 0 63 111111 3 0 Classifier table index: 11, # entries: 8, Table type: IEEE 802.1 Entry # Code point Forwarding-class # PLP 0 000 0 0 1 001 0 0 2 010 0 0 3 011 0 0 4 100 0 0 5 101 0 0 6 110 3 0 7 111 3 0 Classifier table index: 12, # entries: 8, Table type: IPv4 precedence Entry # Code point Forwarding-class # PLP 0 000 0 0 1 001 0 0 2 010 0 0 3 011 0 0 4 100 0 0 5 101 0 0 6 110 3 0 7 111 3 0 Classifier table index: 16, # entries: 8, Table type: Untrust Entry # Code point Forwarding-class # PLP 0 000 0 0 1 001 0 0 2 010 0 0 3 011 0 0 4 100 0 0 5 101 0 0 6 110 0 0 7 111 0 0 Classifier table index: 9346, # entries: 64, Table type: DSCP Entry # Code point Forwarding-class # PLP 0 000000 0 0 1 000001 0 0 2 000010 0 0 3 000011 0 0 4 000100 0 0 5 000101 0 0 6 000110 0 0 7 000111 1 0 8 001000 0 0 9 001001 0 0 10 001010 0 0 11 001011 0 0 12 001100 0 0 13 001101 0 0 14 001110 0 0 15 001111 0 0 16 010000 0 0 17 010001 0 0 18 010010 0 0 19 010011 0 0 20 010100 0 0 21 010101 0 0 22 010110 0 0 23 010111 0 0 24 011000 0 0 25 011001 0 0 26 011010 0 0 27 011011 0 0 28 011100 0 0 29 011101 0 0 30 011110 0 0 31 011111 0 0 32 100000 0 0 33 100001 0 0 34 100010 0 0 35 100011 0 0 36 100100 0 0 37 100101 0 0 38 100110 0 0 39 100111 0 0 40 101000 0 0 41 101001 0 0 42 101010 0 0 43 101011 0 0 44 101100 0 0 45 101101 0 0 46 101110 0 0 47 101111 0 0 48 110000 3 0 49 110001 3 0 50 110010 3 0 51 110011 3 0 52 110100 3 0 53 110101 3 0 54 110110 3 0 55 110111 3 0 56 111000 3 0 57 111001 3 0 58 111010 3 0 59 111011 3 0 60 111100 3 0 61 111101 3 0 62 111110 3 0 63 111111 3 0
Meaning
This output shows that a new DSCP classifier has been created, index 9346, on the ingress PE switch (PE-1).
Verifying the CoS Forwarding Table Mapping
Purpose
For each logical interface, display either the table index of the classifier for a given code point type or the queue number (if it is a fixed classification) in the forwarding table.
Action
user@switch> show class-of-service forwarding-table classifier mapping Table Index/ Interface Index Q num Table type ge-0/0/1.0 92 9346 DSCP
Meaning
The results show that the new DSCP classifier, index number 9346, is bound to interface ge-0/0/1.0.
Verifying the Rewrite Rules
Purpose
Display mapping of the queue number and loss priority to code point value for each rewrite rule as it exists in the forwarding table.
Action
user@switch>show class-of-service forwarding-table rewrite-rule Rewrite table index: 31, # entries: 4, Table type: DSCP FC# Low bits State High bits State 0 000000 Enabled 000000 Enabled 1 101110 Enabled 101110 Enabled 2 001010 Enabled 001100 Enabled 3 110000 Enabled 111000 Enabled Rewrite table index: 34, # entries: 4, Table type: IEEE 802.1 FC# Low bits State High bits State 0 000 Enabled 001 Enabled 1 010 Enabled 011 Enabled 2 100 Enabled 101 Enabled 3 110 Enabled 111 Enabled Rewrite table index: 35, # entries: 4, Table type: IPv4 precedence FC# Low bits State High bits State 0 000 Enabled 000 Enabled 1 101 Enabled 101 Enabled 2 001 Enabled 001 Enabled 3 110 Enabled 111 Enabled Rewrite table index: 9281, # entries: 1, Table type: EXP FC# Low bits State High bits State 1 111 Enabled 000 Disabled
Meaning
This output shows that a new EXP classifier with the index number 9281 has been created.
Understanding CoS MPLS EXP Classifiers and Rewrite Rules
You can use class of service (CoS) within MPLS networks to prioritize certain types of traffic
during periods of congestion by applying packet classifiers and rewrite
rules to the MPLS traffic. MPLS classifiers are global and apply to
all interfaces configured as family mpls
interfaces.
When a packet enters a customer-edge interface on the ingress provider edge (PE) switch, the switch associates the packet with a particular CoS servicing level before placing the packet onto the label-switched path (LSP). The switches within the LSP utilize the CoS value set at the ingress PE switch to determine the CoS service level. The CoS value embedded in the classifier is translated and encoded in the MPLS header by means of the experimental (EXP) bits.
EXP classifiers map incoming MPLS packets to a forwarding class and a loss priority, and assign MPLS packets to output queues based on the forwarding class mapping. EXP classifiers are behavior aggregate (BA) classifiers.
EXP rewrite rules change (rewrite) the CoS value of the EXP bits in outgoing packets on the egress queues of the switch so that the new (rewritten) value matches the policies of a targeted peer. Policy matching allows the downstream routing platform or switch in a neighboring network to classify each packet into the appropriate service group.
On QFX5200, QFX5100, QFX3500, QF3600, and EX4600 switches,
and on QFabric systems, there is no default EXP classifier. If you
want to classify incoming MPLS packets using the EXP bits, you must
configure a global EXP classifier. The global EXP classifier applies
to all MPLS traffic on interfaces configured as family mpls
.
On QFX10000 switches, there is a no default EXP classifier.
If you want to classify incoming MPLS packets using the EXP bits,
you must configure EXP classifiers and apply them to logical interfaces
configured as family mpls
. (You cannot apply classifiers
to physical interfaces.). You can configure up to 64 EXP classifiers.
There is no default EXP rewrite rule. If you want to rewrite the EXP bit value at the egress interface, you must configure EXP rewrite rules and apply them to logical interfaces.
EXP classifiers and rewrite rules are applied only to interfaces
that are configured as family mpls
(for example, set
interfaces xe-0/0/35 unit 0 family mpls
.)
This topic includes:
EXP Classifiers
On QFX5200, QFX5100, EX4600, QFX3500, and QFX3600 switches,
and on QFabric systems, unlike DSCP and IEEE 802.1p BA classifiers,
EXP classifiers are global to the switch and apply to all switch interfaces
that are configured as family mpls
. On QFX10000 switches,
you apply EXP classifiers to individual logical interfaces, and different
interfaces can use different EXP classifiers.
When you configure and apply an EXP classifier, MPLS traffic
on all family mpls
interfaces uses the EXP classifier,
even on interfaces that also have a fixed classifier. If an interface
has both an EXP classifier and a fixed classifier, the EXP classifier
is applied to MPLS traffic and the fixed classifier is applied to
all other traffic.
Also unlike DSCP and IEEE 802.1p BA classifiers, there is no default EXP classifier. If you want to classify MPLS traffic based on the EXP bits, you must explicitly configure an EXP classifier and apply it to the switch interfaces. Each EXP classifier has eight entries that correspond to the eight EXP CoS values (0 through 7, which correspond to CoS bits 000 through 111).
You can configure up to 64 EXP classifiers.
However, on QFX5200, QFX5100, EX4600, and legacy CLI switches,
the switch uses only one MPLS EXP classifier as a global classifier
on all interfaces. After you configure an MPLS EXP classifier, you
can configure that classifier as the global EXP classifier by including
the EXP classifier in the [edit class-of-service system-defaults
classifiers exp]
hierarchy level. All switch interfaces configured
as family mpls
use the global EXP classifier to classify
MPLS traffic.
On these switches, only one EXP classifier can be configured as the global EXP classifier at any time. If you want to change the global EXP classifier, delete the global EXP classifier configuration (use the user@switch# delete class-of-service system-defaults classifiers exp configuration statement), then configure the new global EXP classifier.
QFX5130 switch does not support MPLS CoS.
QFX10000 switches do not support global EXP classifiers. You can configure one EXP classifier and apply it to multiple logical interfaces, or configure multiple EXP classifiers and apply different EXP classifiers to different logical interfaces.
If an EXP classifier is not configured, then if a fixed classifier is applied to the interface, the MPLS traffic uses the fixed classifier. (Switches that have a default EXP classifier use the default classifier.) If no EXP classifier and no fixed classifier are applied to the interface, MPLS traffic is treated as best-effort traffic using the 802.1 default untrusted classifier. DSCP classifiers are not applied to MPLS traffic.
On QFX5200, QFX5100, EX4600, and legacy CLI switches, because the EXP classifier is global, you cannot configure some ports to use a fixed IEEE 802.1p classifier for MPLS traffic on some interfaces and the global EXP classifier for MPLS traffic on other interfaces. When you configure a global EXP classifier, all MPLS traffic on all interfaces uses the EXP classifier.
The switch uses only the outermost label of incoming EXP packets for classification.
MPLS packets with 802.1Q tags are not supported.
On QFX5220 switch, you can use class of service (CoS) within MPLS networks to prioritize certain types of traffic during periods of congestion by applying packet classifiers and rewrite rules to the MPLS traffic. We have also added the MPLS EXP rewrite support.
- Default CoS on the Provider (P) and Provider Edge (PE) routers for MPLS
interfaces – The MPLS traffic uses the default EXP classifier. MPLS traffic
is treated as best-effort traffic using the 802.1 default untrusted
classifier. The default EXP classifier applies to all MPLS traffic on
interfaces configured as
family mpls
. DSCP classifiers are not applied to MPLS traffic. - Default CoS on PE routers for Layer 3 interfaces – By default, all L3VPN logical interfaces are bound to default Differentiated Services Code Point (DSCP) classifiers.
If you apply an EXP classifier on a penultimate hop popping (PHP) node, then by default, the IP header time-to-live (TTL) value is overwritten by the MPLS header TLL value, and the IP header DSCP bits are over written by a zero (0), which signifies uniform mode. On Junos OS Evolved, to use pipe mode, where IP header TTL and IP header DSCP bits are not overwritten, you should configure the following command:
set protocols mpls no-propagate-ttl
However, on Junos OS, you can configure MPLS CoS without the set protocols mpls no-propagate-ttl command.
The DSCP of IP in MPLS packets can’t be remarked either at PE or P routers.
EXP Rewrite Rules
As MPLS packets enter or exit a network, edge switches might
be required to alter the class-of-service (CoS) settings of the packets.
EXP rewrite rules set the value of
the EXP CoS bits within the header of the outgoing MPLS packet on family mpls
interfaces. Each rewrite rule reads the current
forwarding class and loss priority associated with the packet, locates
the chosen CoS value from a table, and writes that CoS value into
the packet header, replacing the old CoS value. EXP rewrite rules
apply only to MPLS traffic.
EXP rewrite rules apply only to logical interfaces. You cannot apply EXP rewrite rules to physical interfaces.
There are no default EXP rewrite rules. If you want to rewrite the EXP value in MPLS packets, you must configure EXP rewrite rules and apply them to logical interfaces. If no rewrite rules are applied, all MPLS labels that are pushed have a value of zero (0). The EXP value remains unchanged on MPLS labels that are swapped.
You can configure up to 64 EXP rewrite rules, but you can only apply 16 EXP rewrite rules at any time on the switch. On a given logical interface, all pushed MPLS labels have the same EXP rewrite rule applied to them. You can apply different EXP rewrite rules to different logical interfaces on the same physical interface.
You can apply an EXP rewrite rule to an interface that has a DSCP, DSCP IPv6, or IEEE 802.1p rewrite rule. Only MPLS traffic uses the EXP rewrite rule. MPLS traffic does not use DSCP or DSCP IPv6 rewrite rules.
If the switch is performing penultimate hop popping (PHP), EXP rewrite rules do not take effect. If both an EXP classifier and an EXP rewrite rule are configured on the switch, then the EXP value from the last popped label is copied into the inner label. If either an EXP classifier or an EXP rewrite rule (but not both) is configured on the switch, then the inner label EXP value is sent unchanged.
On each physical interface, either all forwarding classes that are being used on the interface must have rewrite rules configured or no forwarding classes that are being used on the interface can have rewrite rules configured. On any physical port, do not mix forwarding classes with rewrite rules and forwarding classes without rewrite rules.
Schedulers
The schedulers for using CoS with MPLS are the same as for the other CoS configurations on the switch. Default schedulers are provided only for the best-effort, fcoe, no-loss, and network-control default forwarding classes. If you configure a custom forwarding class for MPLS traffic, you need to configure a scheduler to support that forwarding class and provide bandwidth to that forwarding class.
Configuring Rewrite Rules for MPLS EXP Classifiers
You configure EXP rewrite rules to alter CoS values in
outgoing MPLS packets on the outbound family mpls
interfaces
of a switch to match the policies of a targeted peer. Policy matching
allows the downstream routing platform or switch in a neighboring
network to classify each packet into the appropriate service group.
To configure an EXP CoS rewrite rule, create the rule by giving
it a name and associating it with a forwarding class, loss priority,
and code point. This creates a rewrite table. After the rewrite rule
is created, enable it on a logical family mpls
interface.
EXP rewrite rules can only be enabled on logical family mpls
interfaces, not on physical interfaces or on interfaces of other
family types. You can also apply an existing EXP rewrite rule on a
logical interface.
There are no default rewrite rules.
You can configure up to 64 EXP rewrite rules, but you can only
use 16 EXP rewrite rules at any time on the switch. On a given family mpls
logical interface, all pushed MPLS labels have
the same EXP rewrite rule applied to them. You can apply different
EXP rewrite rules to different logical interfaces on the same physical
interface.
On each physical interface, either all forwarding classes that are being used on the interface must have rewrite rules configured, or no forwarding classes that are being used on the interface can have rewrite rules configured. On any physical port, do not mix forwarding classes with rewrite rules and forwarding classes without rewrite rules.
To replace an existing rewrite rule on the interface with a new rewrite rule of the same type, first explicitly remove the existing rewrite rule and then apply the new rule.
To create an EXP rewrite rule for MPLS traffic and enable it on a logical interface:
Configuring CoS Bits for an MPLS Network
When traffic enters a labeled-switch path (LSP) tunnel, the CoS bits in the MPLS header are set in one of two ways:
The number of the output queue into which the packet was buffered and the packet loss priority (PLP) bit are written into the MPLS header and are used as the packet’s CoS value. This behavior is the default, and no configuration is required. The Junos OS Class of Service User Guide for Routing Devices explains the IP CoS values, and summarizes how the CoS bits are treated.
You set a fixed CoS value on all packets entering the LSP tunnel. A fixed CoS value means that all packets entering the LSP receive the same class of service.
To set a fixed CoS value on all packets entering the LSP:
Specify a class of service value for the LSP:
Note:The CoS value set using the
class-of-service
statement at the[edit protocols mpls]
hierarchy level supersedes the CoS value set at the[edit class-of-service]
hierarchy level for an interface. Effectively, the CoS value configured for an LSP overrides the CoS value set for an interface.[edit protocols mpls] user@switch# set class-of-service cos-value
Configuring a Global MPLS EXP Classifier
EXP packet classification associates incoming packets with a particular MPLS CoS servicing level. EXP behavior aggregate (BA) classifiers examine the MPLS EXP value in the packet header to determine the CoS settings applied to the packet. EXP BA classifiers allow you to set the forwarding class and loss priority of an MPLS packet based on the incoming CoS value.
You can configure up to 64 EXP classifiers, however, the switch
uses only one MPLS EXP classifier as a global classifier, which is
applied only on interfaces configured as family mpls
. All family mpls
switch interfaces use the global EXP classifier
to classify MPLS traffic.
There
is no default EXP classifier. If you want to classify incoming MPLS
packets using the EXP bits, you must configure a global EXP classifier.
The global classifier applies to all MPLS traffic on all family
mpls
interfaces.
If
a global EXP classifier is configured, MPLS traffic on family
mpls
interfaces uses the EXP classifier. If a global EXP classifier
is not configured, then if a fixed classifier is applied to the interface,
the MPLS traffic uses the fixed classifier. If no EXP classifier and
no fixed classifier is applied to the interface, MPLS traffic is treated
as best-effort traffic. DSCP classifiers are not applied to MPLS traffic.
To configure an MPLS EXP classifier using the CLI: