QoS over MPLS
Problem
You want to use the Quality of Service (QoS) features of MPLS.
Solution
For this example, we will take a relatively simple view that the PE router will trust the CE router’s DSCP/IP Precedence settings and map them to the MPLS EXP traffic priority field in a simple way. So we will focus on the configuration required on the PE and P routers to make use of this information.
First, the PE routers have the dual function of converting DSCP or IP Precedence values to MPLS EXP values and then using this information appropriately when forwarding the packets into the MPLS cloud. In this example, we will do both of these functions in a single policy map.
This MPLS network supports four categories of user traffic: low, medium, and high priority plus a real-time queue, which is indicated with the Expedited Forwarding (EF) DSCP value:
Router-PE1#configure terminal
Router-PE1(config)#class-map match-any
Router-PE1(config-cmap)#
med-priority
match precedence
Router-PE1(config-cmap)#
1
match precedence
Router-PE1(config-cmap)#
2
exit
Router-PE1(config)#class-map match-any
Router-PE1(config-cmap)#
high-priority
match precedence
Router-PE1(config-cmap)#
3
match precedence
Router-PE1(config-cmap)#
4
match precedence
Router-PE1(config-cmap)#
5
exit
Router-PE1(config)#class-map match-any
Router-PE1(config-cmap)#
realtime-priority
match precedence
Router-PE1(config-cmap)#
6
match dscp
Router-PE1(config-cmap)#
ef
exit
Router-PE1(config)#policy-map
Router-PE1(config-pmap)#
MPLS-priority
class
realtime-priority ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.