Friday, July 22, 2011

QOS - Marking Example 2 on Cisco IOS XR

These configurations classify the IP packets based on the DSCP values.These IP packets are tagged with MPLS labels when they pass through the router.MPLS experimental bits of these labels are marked according to the DSCP classes.

class-map match-any dscp-0
 match dscp 0
 end-class-map
!
class-map match-any dscp-ef
 match dscp ef
 end-class-map
!
class-map match-any dscp-af11
 match dscp af11
 end-class-map


policy-map Qos-marking
 class dscp-ef
  set mpls experimental topmost 5
 !
 class dscp-af11
  set mpls experimental topmost 1
 !
 class dscp-0
  set mpls experimental topmost 2
 !
 class class-default
 !
 end-policy-map        
!
interface gigabitEthernet 0/1/0/20.1
service-policy input marking

No comments:

Post a Comment