The following example shows how to configure policing based on service type:
CBR or UBR:
CBR.1 (real-time traffic) and UBR (best effort, non-real time traffic) require the peak cell rate (PCR) and delay tolerance parameters to be specified for policing. The main difference between the configurations for UBR.1 and UBR.2 traffic is that for UBR.2 traffic, the exceed action includes the set-clp-transmit option to tag the non-conforming cells.
policy-map CBR1
class class-default
police rate <pcr> cellsps delay-tolerance <cdvt> us
conform-action <>
exceed-action <>
The police rate is expressed in percentage.
VBR.1
VBR.1 is real-time and non-real time traffic, and requires the peak cell rate (PCR), sustainable cell rate (SCR) and delay tolerance parameters to be specified for policing. In addition, the atm-mbs parameter can be specified to define the burst allowed on the SCR bucket.
policy-map VBR1
class class-default
police rate <scr> cellsps atm-mbs <mbs> cells peak-rate <pcr> cellsps delay-tolerance <cdvt> us
conform-action <>
exceed-action <>
The police rate is expressed in percentage.
VBR.2 or VBR.3
VBR.2 and VBR.3 are real-time and non-real time traffic, and require the peak cell rate (PCR), sustainable cell rate (SCR) and delay tolerance parameters to be specified for policing. In addition, the atm-mbs parameter can be specified to define the burst allowed on the SCR bucket.
The main difference between VBR.1 and VBR.2 or VBR.3 is that the SCR bucket is for CLP0 cells only. A hierarchical policy is defined to support this configuration:
policy-map child
class atm_clp0
police rate <scr> cellsps atm-mbs <mbs> cells
conform-action <>
exceed-action <>
policy-map VBR2
class class-default
police rate <pcr> cellsps delay-tolerance <cdvt> us
conform-action <>
exceed-action <>
service-policy child
The police rates is expressed in percentage. The child policy can contain other set actions as well.
Exclude OAM cells
OAM cells can be excluded from being policed by configuring the classification criteria.
policy-map child
class atm-oam
set <>
class class-default
police rate <scr> cellsps atm-mbs <mbs> cells
conform-action <>
exceed-action <>
policy-map VBR2
class class-default
police rate <pcr> cellsps delay-tolerance <cdvt> us
conform-action <>
exceed-action <>
service-policy child