Friday, July 22, 2011

QOS - Policing Example on Cisco IOS XR

In this example, we have policed mpls labeled traffic according to mpls labels on a Cisco IOS XR router.

The Mpls labeled packets that have Mpls Experimental bits value of 5 will be policed to 100 Mbps.

The Mpls labeled packets that have Mpls Experimental bits value of 2 will be policed to 10 Mbps.

The Mpls labeled packets that have Mpls Experimental bits value of 1 will be policed to 1 Mbps.

class-map match-any experimental-1
 match mpls experimental topmost 1
 end-class-map
!
class-map match-any experimental-2
 match mpls experimental topmost 2
 end-class-map
!
class-map match-any experimental-5
 match mpls experimental topmost 5
 end-class-map
!



policy-map qos
 class experimental-5
  police rate 100000000 bps
  !
class experimental-2
  police rate 10000000 bps
  !
 !
 class experimental-1
  police rate 1000000 bps
  !
class class-default
 !
 end-policy-map

interface tenGigE 0/0/0/1                     
service-policy output qos

No comments:

Post a Comment