QoS Policy

QoS
Policy
ip access-list extended Multimedia
 permit ip host <Source prefix> <Destination prefix>
!
ip access-list extended Business
 permit ip host <Source prefix> <Destination prefix>
!
ip access-list extended Best-effort
 permit ip  <Source prefix> <Destination prefix>
!
!
class-map match-any Multimedia
 match access-group name Multimedia
class-map match-any Business
 match access-group name Business
class-map match-any Best-effort
 match access-group name Best-effort
!
policy-map UIH-MPLS
 class Multimedia
  set ip precedence 5
  bandwidth percent n
 class Business
  set ip precedence 3
  bandwidth percent n
 class Best-effort
  set ip precedence 1
  bandwidth percent n
!
policy-map QOS_PARENT
 class class-default
  shape average <B/W; bits/sec>
  service-policy UIH-MPLS
!
!
interface ATM0.33 point-to-point
 bandwidth <B/W; Kbps>
 pvc 0/33 
  vbr-rt 640 640
  service-policy out QOS_PARENT
---------------------------------------------------------------------
Example
ip access-list extended Multimedia
 permit ip host 172.24.1.11 172.24.2.0 0.0.0.255
!
ip access-list extended Business
 permit ip host 172.24.1.25 host 172.24.2.25
!
ip access-list extended Best-effort
 permit ip 172.24.1.0 0.0.0.255 172.24.2.0 0.0.0.255
!
!
class-map match-any Multimedia
 match access-group name Multimedia
class-map match-any Business
 match access-group name Business
class-map match-any Best-effort
 match access-group name Best-effort
!
policy-map UIH-MPLS
 class Multimedia
  set ip precedence 5
  bandwidth percent 40
 class Business
  set ip precedence 3
  bandwidth percent 30
 class Best-effort
  set ip precedence 1
  bandwidth percent 20
!
policy-map QOS_PARENT
 class class-default
  shape average 1024000
  service-policy UIH-MPLS
!
!
interface ATM0.33 point-to-point
 bandwidth 1024
 pvc 0/33 
  vbr-rt 640 640
  service-policy out QOS_PARENT
------------------------------------------------------------
Verify
show run int atm0.33
interface ATM0.33 point-to-point
 description ***Connect to MPLS CID:AABBCC***
 bandwidth 1024
 ip address 50.50.50.2 255.255.255.252
 pvc 0/33 
  vbr-rt 640 640
  encapsulation aal5snap
  service-policy out QOS_PARENT
 
show policy-map int atm0.33
ATM0.33: VC 0/33 - 
 
  Service-policy output: QOS_PARENT
 
    Class-map: class-default (match-any)
      1 packets, 32 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: any 
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 1/32
      shape (average) cir 1024000, bc 4096, be 4096
      target shape rate 1024000
 
      Service-policy : UIH-MPLS
 
        Class-map: Multimedia (match-any)
          0 packets, 0 bytes
          30 second offered rate 0 bps, drop rate 0 bps
          Match: access-group name Multimedia
            0 packets, 0 bytes
            30 second rate 0 bps
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 0/0
          QoS Set
            precedence 5
              Packets marked 0
          bandwidth 40% (256 kbps)
 
        Class-map: Business (match-any)
          0 packets, 0 bytes
          30 second offered rate 0 bps, drop rate 0 bps
          Match: access-group name Business
            0 packets, 0 bytes
            30 second rate 0 bps
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 0/0
          QoS Set
            precedence 3
              Packets marked 0
          bandwidth 30% (192 kbps)
 
        Class-map: Best-effort (match-any)
          0 packets, 0 bytes
          30 second offered rate 0 bps, drop rate 0 bps
          Match: access-group name Best-effort
            0 packets, 0 bytes
            30 second rate 0 bps
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 0/0
          QoS Set
            precedence 1
              Packets marked 0
          bandwidth 20% (128 kbps)
 
        Class-map: class-default (match-any)
          1 packets, 32 bytes
          30 second offered rate 0 bps, drop rate 0 bps
          Match: any 
          
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/0/0
          (pkts output/bytes output) 1/32
---------------------------------------------------------------------