The Set ATM CLP Bit Using Policer feature allows you to police and then mark outbound PPP over ATM (PPPoA) traffic. You can set the ATM cell loss priority (CLP) bit using either of the following methods:
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Prerequisites for Set ATM CLP Bit Using Policer
If you are setting the ATM CLP bit by a policed threshold, ensure that a policy map includes the set-clp-transmitaction. The new policer action conditionally marks PPPoA traffic in the matched class for a higher drop probability in the ATM network when traffic exceeds a given rate.
If you are setting the ATM CLP bit strictly by matching a class, ensure that a policy map includes the setatm-clp action. The set directive marks all traffic in the matched class for higher drop probability in the ATM network.
You can attach policy maps with the set-clp-transmitorsetatm-clpactions to a virtual template. This template is cloned when PPPoA sessions are created or by dynamic assignment.
The ATM CLP bit shows the drop priority of the ATM cell. During ATM network congestion, the router discards ATM cells with the CLP bit set to 1 before discarding cells with a CLP bit setting of 0.
Using the Set ATM CLP Bit Using Policer feature, you can configure the police command to enable the ATM CLP bit in cell headers. The ATM CLP bit can be explicitly marked by a set directive.
The Set ATM CLP Bit Using Policer feature supports the set-clp-transmit policing action in the following types of policies:
Enters policy-map configuration mode and creates a policy map.
Step 4
class {class-name|class-default]
Example:
Router(config-pmap)# class class-default
Enters policy-map class configuration mode.
Specifies the name of the class whose policy you want to create or change or specifies the default class (commonly known as the class-default class) before you configure its policy. Repeat this command as many times as necessary to specify the child or parent classes that you are creating or modifying:
classname--Name of the class to be configured or whose policy is to be modified. The class name is used for both the class map and to configure a policy for the class in the policy map.
class-default--Specifies the default class so that you can configure or modify its policy.
Configures traffic policing and specifies multiple actions applied to packets marked as conforming to, exceeding, or violating a specific rate.
Enters policy-map class police configuration mode. Use one line per action that you want to specify:
cir--(Optional) Committed information rate. Indicates that the CIR will be used for policing traffic.
conform-action--(Optional) Action to take on packets when the rate is less than the conform burst.
exceed-action--(Optional) Action to take on packets whose rate is within the conform and conform plus exceed burst.
Step 6
end
Example:
Router(config-pmap-c)# end
(Optional) Returns to privileged EXEC mode.
Example
The following example shows you how to set the ATM CLP using a policer:
policy-map egress_atm_clp_policer
class prec0
police cir 5000000
class prec1
police cir 3000000 conform-action transmit exceed-action set-clp-transmit
class class-default
police cir 1000000 conform-action transmit exceed-action set-clp-transmit
Marking the ATM CLP Bit
Before You Begin
Before configuring the policy map, ensure that you have defined any class maps used to classify traffic.
SUMMARY STEPS
1.enable
2.configureterminal
3.policy-mappolicy-map-name
4.class {class-name|class-default]
5.setatm-clp
6.end
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
policy-mappolicy-map-name
Example:
Router(config)# policy-map parent-policy
Enters policy-map configuration mode and creates a policy map.
Step 4
class {class-name|class-default]
Example:
Router(config-pmap)# class class-default
Enters policy-map class configuration mode.
Specifies the name of the class whose policy you want to create or change or specifies the default class (commonly known as the class-default class) before you configure its policy. Repeat this command as many times as necessary to specify the child or parent classes that you are creating or modifying:
classname--Name of the class to be configured or whose policy is to be modified. The class name is used for both the class map and to configure a policy for the class in the policy map.
class-default--Specifies the default class so that you can configure or modify its policy.
Step 5
setatm-clp
Example:
Router(config-pmap-c)# set atm-clp
Configures marking of the ATM CLP bit for all traffic matching this class.
Step 6
end
Example:
Router(config-pmap-c)# end
(Optional) Returns to privileged EXEC mode.
Example
The following example shows you how to set the ATM CLP using explicit marking:
policy-map egress_atm_clp_policer
class prec0
police cir 5000000
class class-default
set atm-clp
Configuration Examples for Set ATM CLP Bit Using Policer
Example Marking the ATM CLP by Policer Action Matching a Class
This example shows how to do the following:
Define traffic classes.
Configure a two-layer policy map.
Apply the policy map to PPPoA sessions.
This policy conditionally marks the ATM CLP bit on the traffic in the matching low_interest class once traffic on the class exceeds a given rate.
class-map voice
match precedence 4
!
class-map web
match precedence 3
!
class low_interest
match precedence 1 0
!
policy-map child
child class voice
police cir 256000
priority level 1
class web
bandwidth remaining ratio 10
class low_interest
police cir 1000000 conform-action transmit exceed-action set-clp-transmit
class class-default
bandwidth remaining ratio 1
!
policy-map parent
class class-default
shape average 15000000
service-policy child
policy maps attached to virtual templates are cloned and used to create a virtual access interface for each PPPoA session:
interface Virtual-Template1
ip unnumbered Loopback1
load-interval 30
peer default ip address pool POOL1
ppp authentication chap ppp
ipcp address required
service-policy output parent
Example Marking the ATM CLP by Policer Action Policed Threshold
This example shows how to do the following:
Define traffic classes.
Configure a two-layer policy map.
Apply the policy map to PPPoA sessions.
This policy marks all non-essential traffic with the ATM CLP bit so that it is eligible for dropping if the ATM network becomes congested.
class-map video
match precedence 5
!
class-map voice
match precedence 4
!
class-map web
match precedence 3
!
policy-map child
child class voice
police cir 256000
priority level 1
class video
police cir 4000000
priority level 2
class web
set atm-clp
bandwidth remaining ratio 10
class class-default
bandwidth remaining ratio 1
set atm-clp
!
interface Virtual-Template1
ip unnumbered Loopback1
load-interval 30
peer default ip address pool POOL1
ppp authentication chap ppp
ipcp address required
service-policy output parent
No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
--
Technical Assistance
Description
Link
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.
Feature Information for Set ATM CLP Bit Using Policer
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 1 Feature Information for Set ATM CLP Bit Using Policer
Feature Name
Releases
Feature Information
Set ATM CLP Bit Using Policer
Cisco IOS XE Release 3.3S
The Set ATM CLP Bit Using Policer feature allows you to police and then mark outbound PPPoA traffic.
The following commands were introduced or modified:
setatm-clpand
police.