Page 1
QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series) First Published: 2011-11-03 Last Modified: 2014-03-01 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387)
Page 2
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks . Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company.
How to Configure Punt Policing and Monitoring Configuring Punt Policing Verifying Punt Policing Verifying Punt Policing Statistics Configuration Examples for Punt Policing and Monitoring Example: Configuring Punt Policing QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 4
Input Rate-Limiting and Silent Mode Operation How to Use Control Plane Policing Defining Control Plane Services Verifying Control Plane Services Configuring Control Plane Policing to Mitigate Denial-of-Service Attacks QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 5
Contents Configuration Examples for Control Plane Policing Example: Configuring Control Plane Policing on Input Telnet Traffic Additional References QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 6
Contents QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
The Class-Based Policing feature performs the following functions: • Limits the input or output transmission rate of a class of traffic based on user-defined criteria. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Restrictions for Class-Based Policing Restrictions for the Cisco ASR 900 Router • Hierarchical policing (policing at both parent level and child level) is not supported. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Command or Action Purpose Step 1 Enables higher privilege levels, such as privileged EXEC mode. enable • Enter your password if prompted. Example: Router> enable QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 10
Configures traffic policing according to burst sizes and any optional conform-action action exceed-action action actions specified. violate-action action Example: Router(config-pmap-c)# police 8000 1000 1000 conform-action transmit exceed-action set-qos-transmit 1 violate-action drop QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Because enough bytes are available in the exceed token bucket, the exceed action (set the QoS transmit value of 1) is taken, and 900 bytes are taken from the exceed bucket (leaving 100 bytes in the exceed token bucket). QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Traffic marking “Marking Network Traffic” module Traffic policing “Traffic Policing” module Traffic policing and shaping concepts and overview “Policing and Shaping Overview” information QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 17
Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
ASR 903 Router. In Cisco IOS XE Release 3.16, support was added for the Cisco ASR 900 RSP3 Module. The following command was introduced or modified: police. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
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. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Perform this task to specify the maximum punt rate on the specified queue. SUMMARY STEPS 1. enable 2. configure terminal 3. platform qos-policer queue queue-id cir 4. end QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 22
Use the show platform hardware qfp active statistics drop to display the output after adding the drop cause: Device# show platform hardware qfp active statistics drop --------------------------------------------------------------------- Global Drop Stats Packets Octets --------------------------------------------------------------------- PuntPerIntfPolicerDrops 274166 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Cisco IOS Quality of Service Solutions Command command modes, command history, defaults, usage Reference guidelines, and examples Traffic marking “Marking Network Traffic” module Traffic policing “Traffic Policing” module QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 24
Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
For Cisco IOS XE Release 3.5S, this feature was implemented on Cisco ASR 903 Router. The following command was introduced: platform punt-police queue QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 26
Punt Policing and Monitoring Feature Information for Punt Policing and Monitoring QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
• If you configure a class-based HQOS or LLQ policy on the port, you cannot configure service-policies on Ethernet Flow Points (EFPs). The only exception to this is the class-default shaper policy and match EFP policy. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
To configure hierarchical policy maps, you create child policies which you then attach to a parent policy. The parent policy is then attached to an interface. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 29
(Optional) Sets the Layer 2 class of service (CoS) value of an outgoing packet. Example: • The value is a specific IEEE 802.1Q CoS value from 0 to 7. Device(config-pmap-c)# set cos 5 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 30
Applies the child policy to the parent class-default class. • child-llq is the name of the child policy map configured in step Example: Device(config-pmap-c)# service-policy child-llq QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
QoS policy-map class configuration mode. Example: • You can configure only the class-default class in a parent policy. Do not configure any other traffic class. Device(config-pmap)# class class-default QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
8. encapsulation dot1q vlan-id 9. bridge-domain bridge-domain-id 10. exit 11. service instance id ethernet 12. encapsulation dot1q vlan-id 13. bridge-domain bridge-domain-id 14. exit 15. end QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 36
Step 8 encapsulation dot1q vlan-id Defines the matching criteria to map 802.1Q frames' ingress on an interface to the service instance. Example: Device(config-if-srv)# encapsulation dot1q QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
EFP can have the HQOS policies. policy-map co12 class class-default shape average 50m policy-map def class class-default shape average 500m service-policy co12 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
QoS Congestion Management Configuration Guide Standards and RFCs Standard Title No new or modified standards are supported, and support for existing standards has not been modified. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
LLQ and traffic prioritization across all EFPs on a port. In Cisco IOS XE Release 3.6S, support was added for the Cisco ASR 903 router. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 41
Port-Shaper and LLQ in the Presence of EFPs Feature Information for Port-Shaper and LLQ in the Presence of EFPs QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 42
Port-Shaper and LLQ in the Presence of EFPs Feature Information for Port-Shaper and LLQ in the Presence of EFPs QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
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. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Configuring the Control Plane Policing feature on your Cisco router or switch provides the following benefits: • Protection against DoS attacks at infrastructure routers and switches • QoS control for packets that are destined to the control plane of Cisco routers or switches • Ease of configuration for control plane policies •...
RP, so all traffic through the control plane interface to or from the control-plane is not subject to the CoPP function performed by the forwarding plane. Supported Protocols The following table lists the protocols supported on Control Plane Policing feature. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 47
[remote vty mgmt subnet] 0.0.0.255 eq 22 any ICMP - Internet Control Protocol Match access-list 110 permit NQ_CPU_HOST_Q Message Protocol icmp any 169.223.253.1 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 48
IP/Port Match permit tcp any any eq 646 NQ_CPU_CFM_Q Protocol permit tcp any eq 646 any permit udp any any eq permit udp any eq 646 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 49
0.0.1.255 any eq 1813 HSRP - Hot Standby IP/Port Match permit udp any NQ_CPU_HOST_Q Router Protocol 224.0.0.0/24 eq 1985 permit udp any eq 1985 224.0.0.0/24 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Rate-limiting (policing) of input traffic from the control plane is performed in silent mode. In silent mode, a router that is running Cisco IOS XE software operates without receiving any system messages. If a packet that is entering the control plane is discarded for input policing, you do not receive an error message.
[all] [input Displays information about the control plane. [class class-name]] • all—(Optional) Displays service policy information about all QoS policies used on the CP. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
5 minute offered rate 0 bps, drop rate 0 bps Match:any Configuring Control Plane Policing to Mitigate Denial-of-Service Attacks Apply control plane policing (CoPP) to ICMP packets to mitigate denial of service (DoS) attacks. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 53
Configures an access list for filtering frames by protocol type. | host {address | name}} {any | host {address | name}} Example: Device(config)# access-list 110 permit icmp any 169.223.253.1 QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 54
(K, M, G). Decimal point is allowed. • bc burst-bytes—(Optional) Specifies the conformed burst (bc) or the number of acceptable burst bytes. The range is 8000 to 16000000. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 55
Exits control plane configuration mode and returns to global configuration mode. Example: Device(config-cp)# exit Step 17 exit Exits global configuration mode returns to privileged EXEC mode. Example: Device(config)# exit QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Document Title Cisco IOS commands https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ mcl/allreleasemcl/all-book.html Standards and RFCs Standard/RFC Title No specific Standards and RFCs are supported by the — features in this document. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 57
Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
Page 58
Control Plane Policing Additional References QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)