Showing posts with label cisco ios xr qos marking example. Show all posts
Showing posts with label cisco ios xr qos marking example. Show all posts

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

QOS - Marking Example on Cisco IOS XR

In this example customer traffic is marked on a Service Provider Router:


If the customer is taking Voip/Gold/Premium service than all traffic that comes from attachment circuit will be marked with Mpls Label value of 5.

policy-map marking-exp-5
class class-default
set mpls experimental imposition 5
end-policy-map

If the customer is taking other types of service, than all traffic that comes from attachment circuit will be marked with Mpls Label value of 0.

policy-map marking-exp-0
class class-default
set mpls experimental imposition 0
end-policy-map

Then these policy-maps should attached the related interfaces through inbound direction

Service-policy input marking-exp-0

or

Service-policy input marking-exp-0