Setting The Mpls Exp Field Using A Policy Map - Cisco 10000 Series Configuration Manual

Quality of service configuration guide
Hide thumbs Also See for 10000 Series:
Table of Contents

Advertisement

Chapter 20
Configuring Quality of Service for MPLS Traffic
The following example creates a class map named af41 with DSCP AF41 defined as the match criterion.
The router classifies all packets that contain the IP DSCP binary value 100010 as belonging to the af41
traffic class.
Router(config)# class-map match-all af41
Router(config-cmap)# match ip dscp af41
Router(config-cmap)# end

Setting the MPLS EXP Field Using a Policy Map

To set the MPLS EXP field of packets belonging to a specific traffic class, enter the following commands
beginning in global configuration mode:
Even though the commands in Steps 3 through 6 are optional, you must configure one of the commands
Note
to set the MPLS EXP field. The router sets the EXP bits when the packet leaves the router using an MPLS
interface. If the packet arrives on an MPLS interface, the router does not set the EXP bits. You can only
set the EXP bits of packets that arrive on a non-MPLS interface and leave on an MPLS interface.
Command
Step 1
Router(config)# policy-map policy-map-name
Step 2
Router(config-pmap)# class class-map-name
Step 3
Router(config-pmap-c)# police [cir] bps
[bc] burst-normal [be] burst-excess
[conform-action
set-mpls-exp-imposition-transmit]
[exceed-action action] [violate-action
action]
Step 4
Router(config-pmap-c)# police {cir cir}
[bc] burst-normal [pir pir] [be] peak-burst
[conform-action
set-mpls-exp-imposition-transmit]
[exceed-action action] [violate-action
action]
Step 5
police [cir] percent percent [bc]
normal-burst-in-msec [pir pir]
[be] excess-burst-in-msec [conform-action
set-mpls-exp-imposition-transmit]
[exceed-action action] [violate-action
action]
Step 6
Router(config-pmap-c)# set mpls
experimental imposition mpls-exp-value
OL-7433-09
Purpose
Creates or modifies a policy map that specifies the QoS actions
to take on specific traffic classes.
policy-map-name is the name of the policy map.
Assigns a traffic class to a policy map. Enters policy-map class
configuration mode.
class-map-name is the name of a previously configured class
map.
(Optional) Configures traffic policing based on bits per second
and sets the MPLS EXP field for all packets that conform to the
rate.
For more information, see
(Optional) Configures traffic policing using the committed
information rate (CIR) and the peak information rate (PIR) and
sets the MPLS EXP field for all packets that conform to the rate.
For more information, see
(Optional) Configures traffic policing on the basis of a
percentage of bandwidth available on an interface and sets the
MPLS EXP field for all packets that conform to the rate.
For more information, see
(Optional) Sets the MPLS EXP bits of the packets belonging to
this traffic class.
mpls-exp-value specifies the value used to set the MPLS EXP
bits. Valid values are from 0 to 7.
Cisco 10000 Series Router Quality of Service Configuration Guide
Chapter 6, "Policing Traffic."
Chapter 6, "Policing Traffic."
Chapter 6, "Policing Traffic."
MPLS QoS
20-7

Advertisement

Table of Contents
loading

Table of Contents