Cisco ASR 9000 Series Service Configuration Manual

Aggregation services router modular quality
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Cisco ASR 9000 Series Aggregation
Services Router Modular Quality of
Service Configuration Guide
Cisco IOS XR Software Release 4.0.0
December, 2010
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
Text Part Number: OL-23108-02

Advertisement

Table of Contents
loading

Summary of Contents for Cisco ASR 9000 Series

  • Page 1 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide Cisco IOS XR Software Release 4.0.0 December, 2010 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 OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks.
  • Page 3: Table Of Contents

    QC-11 Traffic Class Elements QC-11 Traffic Policy Elements QC-12 Default Traffic Class QC-12 Bundle Traffic Policies QC-13 Shared Policy Instance QC-13 Port Shape Policies QC-14 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-iii...
  • Page 4 Information About Configuring QoS Congestion Management on Cisco ASR 9000 Series Routers QC-45 Congestion Management Overview QC-45 Modified Deficit Round Robin QC-46 Low-Latency Queueing with Strict Priority Queueing QC-46 Traffic Shaping QC-47 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-iv OL-23108-02...
  • Page 5 Weighted Random Early Detection for Preferential Traffic Handling QC-74 Tail Drop and the FIFO Queue QC-76 How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers QC-76 Configuring Random Early Detection QC-76 Configuring Weighted Random Early Detection...
  • Page 6 QC-111 QoS Policy Inconsistency on an Interface: Example QC-114 Additional References QC-120 Related Documents QC-120 Standards QC-120 MIBs QC-120 RFCs QC-120 Technical Assistance QC-121 QC-121 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-vi OL-23108-02...
  • Page 7 Contents QC-155 Link Bundling Overview QC-155 Load Balancing QC-156 Layer 3 Load Balancing on Link Bundles QC-156 QoS and Link Bundling QC-157 Additional References QC-158 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-vii...
  • Page 8 ASR 9000 Ethernet Line Cards QC-180 SIP 700 for the ASR 9000 QC-182 QoS on NxDS0 Interfaces QC-182 One-Level Policy Applied to Main Interface: Example QC-183 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-viii OL-23108-02...
  • Page 9 Contents Two-Level Policy Applied to a Subinterface: Example QC-183 Related Information QC-184 Index Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-ix...
  • Page 10 Contents Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-x OL-23108-02...
  • Page 11 Preface This document describes the Cisco IOS XR Quality of Service (QoS) feature for prioritizing traffic flow and providing preferential forwarding for higher-priority packets. The QoS techniques described include allocating bandwidth, improving loss characteristics, avoiding and managing network congestion, metering network traffic, and setting traffic-flow priorities across the network.
  • Page 12: Changes To This Document

    Preface Changes to This Document The following table lists the technical changes made to this document. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-xii OL-23108-02...
  • Page 13 Marking” module, added the Port Shape Policies feature. In the “Modular QoS on Link Bundles” module, corrected the information in the QoS and Link Bundling section. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-xiii...
  • Page 14: Obtaining Documentation And Submitting A Service Request

    Obtaining Documentation and Submitting a Service Request For information on obtaining documentation, submitting a service request, and gathering additional information, see the monthly What’s New in Cisco Product Documentation, which also lists all new and revised Cisco technical documentation, at: http://www.cisco.com/en/US/docs/general/whatsnew/whatsnew.html...
  • Page 15: Contents

    This module contains overview information about modular QoS features within a service provider network. Contents Information About Modular Quality of Service on Cisco ASR 9000 Series Routers, page 1 • Where to Go Next, page QC-6 •...
  • Page 16: Benefits Of Cisco Asr 9000 Series Routers Qos Features

    • Benefits of Cisco ASR 9000 Series Routers QoS Features The Cisco IOS XR QoS features enable networks to control and predictably service a variety of networked applications and traffic types. Implementing Cisco IOS XR QoS in your network promotes the following benefits: Control over resources.
  • Page 17 • For detailed conceptual and configuration information about packet marking, see the “Configuring Modular Quality of Service Packet Classification on Cisco ASR 9000 Series Routers” module in this guide for unconditional marking, and the “Configuring Modular Quality of Service Congestion Management on Cisco ASR 9000 Series Routers”...
  • Page 18: Differentiated Service Model For Cisco Ios Xr Software

    Modular QoS Overview on Cisco ASR 9000 Series Routers Information About Modular Quality of Service on Cisco ASR 9000 Series Routers Cisco IOS XR software includes traffic policing capabilities available on a per-class basis as well as class-based shaping. The traffic policing feature limits the input or output transmission rate of a class of traffic based on user-defined criteria, and can mark packets by setting values such as IP Precedence, QoS group, or DSCP value.
  • Page 19: Additional Cisco Ios Xr Qos Supported Features

    One of the main goals of MQC is to provide a platform-independent interface for configuring QoS across Cisco platforms. For detailed conceptual and configuration information about the MQC feature, see the “Configuring Modular Quality of Service Packet Classification on Cisco ASR 9000 Series Routers” module in this guide. Fabric QoS There is no separate configuration for fabric QoS.
  • Page 20: Additional References

    RFCs Title No new or modified RFCs are supported by this — feature, and support for existing RFCs has not been modified by this feature. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-6 OL-23108-02...
  • Page 21: Technical Assistance

    Registered Cisco.com users can log in from this page to access even more content. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-7...
  • Page 22 Modular QoS Overview on Cisco ASR 9000 Series Routers Additional References Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-8 OL-23108-02...
  • Page 23: Configuring Modular Qos Service Packet Classification And Marking On Cisco Asr 9000 Series Routers

    Packet Classification and Marking yes Policy Inheritance Port Shape Policies Shared Policy Instance Feature History for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Release Modification Release 3.7.2 The Class-Based Unconditional Packet Marking feature was introduced on ASR 9000 Ethernet Line Cards.
  • Page 24: Contents

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Contents Release 3.9.0 The Class-Based Unconditional Packet Marking feature was supported on the SIP 700 for the ASR 9000. The Packet Classification and Marking feature was supported on the SIP 700 for the ASR 9000.
  • Page 25: Information About Configuring Modular Qos Packet Classification And Marking On Cisco Asr 9000 Series Routers

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers...
  • Page 26: Traffic Policy Elements

    The traffic class is named in the class-map command. For example, if you use the word cisco with the class-map command, the traffic class would be named cisco.
  • Page 27: Bundle Traffic Policies

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers in, first out (FIFO) queue and forwarded at a rate determined by the available underlying link bandwidth.
  • Page 28: Port Shape Policies

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Policy Inheritance When a policy map is applied on a physical port, the policy is enforced for all Layer 2 and Layer 3 subinterfaces under that physical port.
  • Page 29: Specification Of The Cos For A Packet With Ip Precedence

    For example, queueing features such as LLQ can use the IP precedence setting of the packet to prioritize traffic. By setting precedence levels on incoming traffic and using them in combination with the Cisco IOS XR QoS queueing features, you can create differentiated service.
  • Page 30 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers So that each subsequent network element can provide service based on the determined policy, IP precedence is usually deployed as close to the edge of the network or administrative domain as possible.
  • Page 31: Classification Based On Dei

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Classification Based on DEI You can classify traffic based on the Drop Eligible Indicator (DEI ) bit that is present in 802.1ad frames and in 802.1ah frames.
  • Page 32 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers If the policy-modification is successful, the modified policy takes effect on all the interfaces to which the policy is attached.
  • Page 33: How To Configure Modular Qos Packet Classification And Marking On Cisco Asr 9000 Series Routers

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Recommendations for Using In-Place Policy Modification For a short period of time while a QoS policy is being modified, there might not be any policy in effect on the interfaces in which the modified policy is used.
  • Page 34 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers match [not] protocol protocol value [protocol-value1 ... protocol-value7] match [not] qos-group [qos-group-value1 ... qos-group-value8] match vlan [inner] vlanid [vlanid1 ...
  • Page 35 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 7 match source-address mac source-mac-address (Optional) Configures the match criteria for a class map based on the specified source MAC address.
  • Page 36: Creating A Traffic Policy

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 14 match vlan [inner] vlanid [vlanid1 ...
  • Page 37 • Congestion Management on Cisco ASR 9000 Series Routers” module in this guide. For additional commands that can be entered as match criteria, see the Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Command Reference. For conceptual information, see “Traffic Policy Elements”...
  • Page 38: Attaching A Traffic Policy To An Interface

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 5 Saves configuration changes. • When you issue the end command, the system prompts...
  • Page 39 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers DETAILED STEPS Command or Action Purpose Step 1 Enters global configuration mode.
  • Page 40: Configuring Shared Policy Instance

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuring Shared Policy Instance Attaching a Shared Policy Instance to Multiple Subinterfaces...
  • Page 41 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 3 service-policy {input | output} policy - map...
  • Page 42 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Restrictions Shared policy instance across multiple physical interfaces is not supported.
  • Page 43: Configuring Class-Based Unconditional Packet Marking

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 4 Saves configuration changes. • When you issue the end command, the system prompts...
  • Page 44 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers SUMMARY STEPS configure policy-map policy-name class class-name set precedence number set dscp dscp-value...
  • Page 45 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 4 set precedence number • Sets the precedence value in the IP header.
  • Page 46 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers How to Configure Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers Command or Action Purpose Step 10 Returns the router to policy map configuration mode.
  • Page 47: Configuration Examples For Configuring Modular Qos Packet Classification And Marking On Cisco Asr 9000 Series Routers

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Routers...
  • Page 48: Traffic Policy Attached To An Interface: Example

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series class class1 bandwidth 3000 queue-limit bytes 1000000000 exit class class2 bandwidth 2000...
  • Page 49: Efp Load Balancing With Shared Policy Instance: Example

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series EFP Load Balancing with Shared Policy Instance: Example The following examples show how to configure load balancing of an EFP when SPI is implemented. For additional information on EFP load balancing on link bundles, see the Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Configuration Guide.
  • Page 50: Class-Based, Unconditional Packet Marking Examples

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series The match qos-group command is supported only on egress policies. Note...
  • Page 51 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series QoS Group Marking Configuration: Example In the following example, a service policy called policy1 is created. This service policy is associated to a class map called class1 through the use of the class command, and then the service policy is attached in the input direction on a GigabitEthernet interface 0/1/0/9.
  • Page 52: In-Place Policy Modification: Example

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series The set mpls exp imposition command is supported only on an ingress policy.
  • Page 53 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Configuration Examples for Configuring Modular QoS Packet Classification and Marking on Cisco ASR 9000 Series Output from the show policy-map targets command indicates that the Gigabit Ethernet interface 0/1/0/0 has one policy map attached as a main policy (as opposed to being attached to a child policy in a hierarchical QoS configuration).
  • Page 54: Additional References

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Additional References Additional References The following sections provide references related to implementing packet classification. Related Documents Related Topic Document Title Initial system bootup and configuration Cisco ASR 9000 Series Aggregation Services Router Getting Started...
  • Page 55: Technical Assistance

    Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Additional References Technical Assistance Description Link The Cisco Technical Support website contains http://www.cisco.com/techsupport thousands of pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools.
  • Page 56 Configuring Modular QoS Service Packet Classification and Marking on Cisco ASR 9000 Series Routers Additional References Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-42 OL-23108-02...
  • Page 57: Configuring Modular Qos Congestion Management On Cisco Asr 9000 Series Routers

    Management on Cisco ASR 9000 Series Routers Congestion management controls congestion after it has occurred on a network. Congestion can be managed on Cisco IOS XR software by using packet queueing methods, and by shaping the packet flow through use of traffic regulation mechanisms.
  • Page 58: Contents

    Configuring Modular QoS Congestion Management on Cisco ASR 9000 Series Routers Contents Feature History for Configuring Modular QoS Congestion Management on Cisco ASR 9000 Series Routers Release Modification Release 3.7.2 The Congestion Avoidance feature was introduced on ASR 9000 Ethernet Line Cards..
  • Page 59: Information About Configuring Qos Congestion Management On Cisco Asr 9000 Series Routers

    The congestion management features in Cisco IOS XR software allow you to specify creation of a different number of queues, affording greater or lesser degree of differentiation of traffic, and to specify the order in which that traffic is sent.
  • Page 60: Modified Deficit Round Robin

    DSCP value that is set using the first six bits of the IP type of service (ToS) byte in the IP header. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-46...
  • Page 61: Traffic Shaping

    Configured bucket? Outgoing packets traffic shaping rate placed in shaping queue (transmitted later) Packet classification "Token bucket" criteria applied shaping (e.g., via the MQC) Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-47...
  • Page 62: Traffic Policing

    The two-rate policer and two-token bucket algorithm is supported in Cisco IOS XR software. Note For Cisco IOS XR software, a single-rate, two-color policer is supported that provides one token bucket with two actions for each packet: a conform action and an exceed action.
  • Page 63: Regulation Of Traffic With The Policing Mechanism

    CIR. Figure 2 How a Traffic Policing Mechanism Regulates Traffic B>Tc Packet of size B Exceed Conform Action Action Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-49...
  • Page 64: Traffic Shaping Versus Traffic Policing

    Layer 3 main interfaces • Ingress and egress • If there are any marking actions in the policy, the marked values are used for doing WRED. Note Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-50 OL-23108-02...
  • Page 65: How To Configure Qos Congestion Management On Cisco Asr 9000 Series Routers

    {rate [units] | percent percentage-value} exit class class-name bandwidth {rate [units] | percent percentage-value} exit class class-name bandwidth {rate [units] | percent percentage-value} Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-51...
  • Page 66 Example: RP/0/RSP0/CPU0:router(config-pmap-c)# exit Step 6 Specifies the name of the class whose policy you want to class class-name create or change. Example: RP/0/RSP0/CPU0:router(config-pmap)# class class2 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-52 OL-23108-02...
  • Page 67 In this example, the traffic policy evaluates all traffic Example: • leaving that interface. RP/0/RSP0/CPU0:router(config-if)# service-policy output policy1 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-53...
  • Page 68 {percent percentage-value | ratio ratio-value} exit class class-name bandwidth remaining {percent percentage-value | ratio ratio-value} exit exit interface type interface-path-id Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-54 OL-23108-02...
  • Page 69 Specifies how to allocate leftover bandwidth for class class2. Example: RP/0/RSP0/CPU0:router(config-pmap-c)# bandwidth remaining percent 40 Step 8 Returns the router to policy map configuration mode. exit Example: RP/0/RSP0/CPU0:router(config-pmap-c)# exit Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-55...
  • Page 70 In this example, the traffic policy evaluates all traffic • Example: leaving that interface. RP/0/RSP0/CPU0:router(config-if)# service-policy output policy1 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-56 OL-23108-02...
  • Page 71: Configuring Low-Latency Queueing With Strict Priority Queueing

    Within a policy map, you can give one or more classes priority status. When multiple classes within a single policy map are configured as priority classes, all traffic from these classes is queued to the same single priority queue. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-57...
  • Page 72 In this example, the low-latency queue is restricted to • [peak-rate value [ units ]] 250 kbps to protect low-priority traffic from starvation and to release bandwidth. Example: RP/0/RSP0/CPU0:router(config-pmap-c)# police rate 250 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-58 OL-23108-02...
  • Page 73 Example: • In this example, the traffic policy evaluates all traffic RP/0/RSP0/CPU0:router(config-if)# leaving that interface. service-policy output policy1 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-59...
  • Page 74: Configuring Traffic Shaping

    The bandwidth, priority, and shape average commands should not be configured together in the same class. SUMMARY STEPS configure policy-map policy-name class class-name shape average {percent value | rate [units]} exit exit Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-60 OL-23108-02...
  • Page 75 Returns the router to global configuration mode. exit Example: RP/0/RSP0/CPU0:router(config-pmap)# exit Step 7 Enters interface configuration mode and configures an interface type interface-path-id interface. Example: RP/0/RSP0/CPU0:router(config)# interface gigabitethernet 0/2/0/0 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-61...
  • Page 76: Configuring Traffic Policing

    {value [units] | percent percentage} [burst burst-size [burst-units]] [peak-burst peak-burst [burst-units]] [peak-rate value [units]] conform-action action exceed-action action exit exit Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-62 OL-23108-02...
  • Page 77 The traffic policing feature works with [peak-burst peak-burst [burst- units ]] a token bucket algorithm. [peak-rate value [ units ]] Example: RP/0/RSP0/CPU0:router(config-pmap-c)# police rate 250000 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-63...
  • Page 78 Returns the router to global configuration mode. exit Example: RP/0/RSP0/CPU0:router(config-pmap)# exit Step 10 interface type interface-path-id Enters configuration mode and configures an interface. Example: RP/0/RSP0/CPU0:router(config)# interface gigabitethernet 0/5/0/0 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-64 OL-23108-02...
  • Page 79 Hierarchical policing provides support at two levels: • Parent level • Child level SUMMARY STEPS configure policy-map policy-name class class-name service-policy policy-map-name police rate percent percentage conform-action action exceed-action action Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-65...
  • Page 80 Configures the action to take on packets that exceed the rate exceed-action action limit. The allowed action is: drop—Drops the packet. Example: RP/0/RSP0/CPU0:router(config-pmap-c-police)# exceed-action drop Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-66 OL-23108-02...
  • Page 81 Use the commit command to save the configuration • changes to the running configuration file and remain within the configuration session. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-67...
  • Page 82: Configuration Examples For Configuring Qos Congestion Management On Cisco Asr 9000 Series Routers

    Configuring Modular QoS Congestion Management on Cisco ASR 9000 Series Routers Configuration Examples for Configuring QoS Congestion Management on Cisco ASR 9000 Series Routers Configuration Examples for Configuring QoS Congestion Management on Cisco ASR 9000 Series Routers This section provides the following configuration examples: Traffic Shaping for an Input Interface: Example, page 68 •...
  • Page 83: Traffic Policing For A Bundled Interface: Example

    Configuring Modular QoS Congestion Management on Cisco ASR 9000 Series Routers Configuration Examples for Configuring QoS Congestion Management on Cisco ASR 9000 Series Routers Traffic Policing for a Bundled Interface: Example The following example shows how to configure a policy map for a bundled interface:...
  • Page 84: Multi-Action Set/Policer: Example

    Configuring Modular QoS Congestion Management on Cisco ASR 9000 Series Routers Configuration Examples for Configuring QoS Congestion Management on Cisco ASR 9000 Series Routers police rate percent 50 conform-action transmit exceed-action drop Multi-action Set/Policer: Example The following example shows how to configure multi-action set/policer in the ingress direction:...
  • Page 85: Additional References

    RFCs Title No new or modified RFCs are supported by this — feature, and support for existing RFCs has not been modified by this feature. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-71...
  • Page 86: Technical Assistance

    Registered Cisco.com users can log in from this page to access even more content. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-72 OL-23108-02...
  • Page 87: Configuring Modular Qos Congestion Avoidance On Cisco Asr 9000 Series Routers

    SIP 700 for the ASR 9000 Random Early Detection Weighted Random Early Detection yes Tail Drop Feature History for Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Release Modification Release 3.7.2 The Congestion Avoidance feature was introduced on ASR 9000 Ethernet Line Cards.
  • Page 88: Prerequisites For Configuring Modular Qos Congestion Avoidance On Cisco Asr 9000 Series Routers

    Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Prerequisites for Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers, page 76 •...
  • Page 89 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Information About Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers WRED makes early detection of congestion possible and provides for multiple classes of traffic. It also protects against global synchronization.
  • Page 90: How To Configure Modular Qos Congestion Avoidance On Cisco Asr 9000 Series Routers

    Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Tail Drop and the FIFO Queue Tail drop is a congestion avoidance technique that drops packets when an output queue is full until congestion is eliminated.
  • Page 91 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers bandwidth {bandwidth [units] | percent value} bandwidth remaining [percent value | ratio ratio-value] shape average {percent percentage | value [units]}...
  • Page 92 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Command or Action Purpose Step 5 bandwidth { bandwidth [ units ] | percent value } (Optional) Specifies the bandwidth allocated for a class belonging to a policy map.
  • Page 93: Configuring Weighted Random Early Detection

    Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Command or Action Purpose Step 10 service-policy {input | output} policy-map Attaches a policy map to an input or output interface to be used as the service policy for that interface.
  • Page 94 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers SUMMARY STEPS configure policy-map policy-name class class-name random-detect dscp dscp-value min-threshold [units] max-threshold [units] bandwidth {bandwidth [units] | percent value}...
  • Page 95 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Command or Action Purpose Step 4 random-detect dscp dscp-value min-threshold Changes the minimum and maximum packet thresholds for [ units ] max-threshold [ units ] the DSCP value.
  • Page 96: Configuring Tail Drop

    Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Command or Action Purpose Step 9 interface type inteface-path-id Enters configuration mode and configures an interface.
  • Page 97 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers The default queue-limit is set to bytes of 100 ms of queue bandwidth. The following formula is used to...
  • Page 98 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Command or Action Purpose Step 3 class class-name Enters policy map class configuration mode. • Specifies the name of the class whose policy you want to create or change.
  • Page 99 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers How to Configure Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Command or Action Purpose Step 11 Saves configuration changes. • When you issue the end command, the system prompts...
  • Page 100: Additional References

    RFCs Title No new or modified RFCs are supported by this — feature, and support for existing RFCs has not been modified by this feature. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-86 OL-23108-02...
  • Page 101: Technical Assistance

    Registered Cisco.com users can log in from this page to access even more content. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-87...
  • Page 102 Configuring Modular QoS Congestion Avoidance on Cisco ASR 9000 Series Routers Additional References Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-88 OL-23108-02...
  • Page 103: Configuring Access Node Control Protocol On Cisco Asr 9000 Series Routers

    Feature ASR 9000 Ethernet Line Cards SIP 700 for the ASR 9000 Access Node Control Protocol Feature History for Configuring Access Node Protocol on Cisco ASR 9000 Series Routerss Release Modification Release 3.7.2 The Access Node Control Protocol feature was introduced.
  • Page 104: Prerequisites For Configuring Ancp On Cisco Asr 9000 Series Routers

    Only Rate Adaptive Mode is supported in Cisco IOS XR Release 3.7.2. • VPN routing and forwarding (VRF) awareness is not supported in Cisco IOS XR Release 3.7.2. All • IP interfaces receiving ANCP traffic should be in default VRF.
  • Page 105: Neighbor Adjacency Timing

    When a mapping for that port is configured, the AN port database is scanned to identify any ANCP messages that were received on this port prior to the mapping configuration. If there were, the known rate is published. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-91...
  • Page 106: Rate Adjustment

    QoS shaping rate. (The ANCP rate used by QoS is rounded down to the nearest 128 kbps.) Prioritization of ANCP Traffic In case of congestion, the Cisco ASR 9000 Series Router marks ANCP messages as high priority so that the aggregation network between the Network Access Server (NAS) and the access node (AN) can prioritize the ANCP messages ahead of other traffic.
  • Page 107: Ancp Over Multi-Chassis Link Aggregation

    The DSLAM is known as a dual-homed device (DHD), and each router is known as a point of attachment (PoA) in MC-LAG terminology. For more detailed information about MC-LAG, see the Cisco ASR 9000 Series Aggregation Services Router L2VPN and Ethernet Services Configuration Guide.
  • Page 108: How To Configure Ancp On Cisco Asr 9000 Series Routers

    Mapping AN Ports to VLAN Subinterfaces, page 100 • Configuring ANCP Rate Adjustment, page 102 • Enabling ANCP To enable ANCP, use the ancp command in global configuration mode. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-94 OL-23108-02...
  • Page 109 DETAILED STEPS Command or Action Purpose Step 1 Enters global configuration mode. configure Example: RP/0/RSP0/CPU0:router# configure RP/0/RSP0/CPU0:router(config)# Step 2 Enables ANCP. ancp Example: RP/0/RSP0/CPU0:router(config)# ancp Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-95...
  • Page 110: Configuring Ancp Server Sender Name

    The ANCP server sender name is used by the ANCP server in adjacency protocol messages to DSLAMs. SUMMARY STEPS configure ancp server sender-name {H.H.H | A.B.C.D} commit Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-96 OL-23108-02...
  • Page 111: Configuring Ancp Neighbors

    Optionally, a description string can be supplied to identify the ANCP neighbor on the system and an adjacency timer interval configured. SUMMARY STEPS configure Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-97...
  • Page 112 Example: Configured ports are placed in a down Note RP/0/RSP0/CPU0:router(config)# ancp state while unconfigured ports are neighbor sender-name 0013.1aff.c2bd released. adjacency-timer 20 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-98 OL-23108-02...
  • Page 113 [statistics | detail] (Optional) Clears aggregate message statistics only, without modifying individual neighbor or port statistics. Example: RP/0/RSP0/CPU0:router# clear ancp summary statistics Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-99...
  • Page 114: Mapping An Ports To Vlan Subinterfaces

    Bundle-Ether bundle-id | neighbor {description string | sender-name {H.H.H | A.B.C.D}} [statistics] show ancp an-port {description description-string | sender-name {H.H.H | A.B.C.D}} show ancp an-port state [up | down | none] [statistics] Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-100 OL-23108-02...
  • Page 115 Use the commit command to save the • configuration changes to the running configuration file and remain within the configuration session. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-101...
  • Page 116: Configuring Ancp Rate Adjustment

    Configuring ANCP Rate Adjustment Use the ancp rate-adjustment command to apply a mathematical correction to the ANCP rate update prior to applying it as a shaper rate. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-102 OL-23108-02...
  • Page 117 ATM or Ethernet. percent-factor factor—(Required) A percent • value to be applied to the ANCP reported rate update prior to configuring it as a shaping rate. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-103...
  • Page 118: Configuration Examples For Configuring Ancp On Cisco Asr 9000 Series Routers

    Configuring ANCP Rate Adjustment: Example, page 109 • ANCP and QoS Interaction: Example, page 111 • QoS Policy Inconsistency on an Interface: Example, page 114 • Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-104 OL-23108-02...
  • Page 119 Remote Timeout 25500 msec Local Timeout 10000 msec Adjacency Uptime 01:25:20 Time Since Last Port Msg 00:00:04 Remote Port Remote Instance Local Instance Remote Partition ID Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-105...
  • Page 120 The following example shows how to display rate adjustment configuration information in addition to the generic information shown in the previous example: show ancp summary detail ANCP Summary Information ---------------------------------------------- Capability: Topology Discovery Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-106 OL-23108-02...
  • Page 121 The following example shows how to clear a specific neighbor: clear ancp neighbor description vendor1a The following example shows how to clear aggregate message statistics: clear ancp summary statistics Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-107...
  • Page 122: Mapping An Ports To Vlan Subinterfaces: Example

    Minimum Low Power Data Rate Upstream/Downstream (kbps) Maximum Interleaving delay Upstream/Downstream (ms) Actual Interleaving Delay Upstream/Downstream (ms) Sub-interface Summary: total 3 ----------------------------------------------- Sub-interface Name ifhandle --------------------------------- ---------- GigabitEthernet0/0/0/37.1 GigabitEthernet0/0/0/37.11 GigabitEthernet0/0/0/38.10 0xb80 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-108 OL-23108-02...
  • Page 123: Configuring Ancp Rate Adjustment: Example

    ANCP Summary Information ---------------------------------------------- Capability: Topology Discovery Server sender-name: 0013:1aff.c2bd Neighbor count by state: SYNSENT SUNRCVD ESTAB ---------------------------------- Total Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-109...
  • Page 124 The following example shows how to display a summary of ANCP message statistics: show ancp summary statistics ANCP Summary Message Statistics -------------------------------------- Sent Received SYNACK 7105 2819 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-110 OL-23108-02...
  • Page 125: Ancp And Qos Interaction: Example

    WFQ Profile: 1 Committed Weight: 1 Excess Weight: 1 Bandwidth: 0 kbps, BW sum for Level 0: 1000000 kbps, Excess Ratio: 1 --------------------------------------------------------------------------- Level: 1 Policy: child-3play Class: 3play-voip Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-111...
  • Page 126 DSL Type ADSL1 DSL Line State SHOWTIME Number of Mapped Sub-interfaces Neighbor sender-name 0000.0000.1bec Neighbor description Configured Rate Adjustment 100% Actual Downstream Data Rate (kbps) 2000 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-112 OL-23108-02...
  • Page 127 Bandwidth: 1920 kbps, BW sum for Level 1: 1920 kbps, Excess Ratio: 1 --------------------------------------------------------------------------------- Level: 1 Policy: child-3play Class: class-default Parent Policy: parent-3play-subscriber-line Class: class-default Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-113...
  • Page 128: Qos Policy Inconsistency On An Interface: Example

    3play-premium bandwidth percent 100 Class class-default end-policy-map policy-map parent-3play-subscriber-line class class-default service-policy child-3play bandwidth 200 mbps bandwidth remaining percent 100 shape average 800 mbps Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-114 OL-23108-02...
  • Page 129 Queue Limit: 2097 kbytes Profile: 2 Scale Profile: 0 WFQ Profile: 6 Committed Weight: 1020 Excess Weight: 1020 Bandwidth: 200000 kbps, BW sum for Level 1: 200000 kbps, Excess Ratio: 1 ---------------------------------------------------------------------- Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-115...
  • Page 130 Queue Limit: 2097 kbytes Profile: 2 Scale Profile: 0 WFQ Profile: 6 Committed Weight: 1020 Excess Weight: 1020 Bandwidth: 200000 kbps, BW sum for Level 1: 200000 kbps, Excess Ratio: 1 ---------------------------------------------------------------------- Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-116 OL-23108-02...
  • Page 131 Child Policer Conform: TX Child Policer Exceed: DROP Child Policer Violate: DROP ---------------------------------------------------------------------- Level: 1 Policy: child-3play Class: 3play-video Parent Policy: parent-3play-subscriber-line Class: class-default QueueID: 641 (Priority 2) Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-117...
  • Page 132 Node 0/7/CPU0 --------------------------------------------------------- Interfaces with QoS Inconsistency: ANCP - No Shaper at top policymap ========================================================================== Interface Direction Policy Name SPI Name -------------------------------------------------------------------------- GigabitEthernet0/7/0/1.5 output parent-none Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-118 OL-23108-02...
  • Page 133 Summary Counts of QoS Inconsistency Warnings: ========================================================= Node 0/7/CPU0 Inconsistency Warning Type Count -------------------------------------------------------- ANCP - No Shaper at top policymap: ANCP - Downstream Rate less than Shaper Rate: RP/0/RSP0/CPU0:RO2# Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-119...
  • Page 134: Additional References

    RFCs Title No new or modified RFCs are supported by this — feature, and support for existing RFCs has not been modified by this feature. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-120 OL-23108-02...
  • Page 135: Technical Assistance

    Registered Cisco.com users can log in from this page to access even more content. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-121...
  • Page 136 Configuring Access Node Control Protocol on Cisco ASR 9000 Series Routers Additional References Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-122 OL-23108-02...
  • Page 137: Configuring Hierarchical Modular Qos On Cisco Asr 9000 Series Routers

    Release 4.0.0 The Enhanced Hierarchical Ingress Policing feature was introduced on Cisco ASR 9000 Series Routers on the SIP 700 for the ASR 9000. The Hierarchical Policing feature was supported on Cisco ASR 9000 Series Routers on the SIP 700 for the ASR 9000.
  • Page 138 (Mbps) service on a 100-Mbps physical interface) • Restrict the maximum bandwidth of a VC while allowing policing and marking of classes within the Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-124 OL-23108-02...
  • Page 139: Information About Hierarchical Qos

    For example, the following configuration was valid in previous releases but is not valid in Cisco IOS XR Release 4.0.0 because the top-level class has a queueing action (shaping) but the middle-level and bottom-level classes do not have queueing actions:...
  • Page 140: Sample Scenarios Of Hierarchical Policies

    1 mbps class http police rate 3mbps class class-default policy-map parent-police class class-default police rate percent 10 mbps service-policy child-police Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-126 OL-23108-02...
  • Page 141: Three-Level Hierarchical Policies

    Three-Level Hierarchical Queueing Policy: Frame Relay policy-map frpvc-policy class class-default shape average 2 mbps service-policy bandwidth-mgmt policy-map bandwidth-mgmt class voice priority level 1 police rate percent 20 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-127...
  • Page 142: Processing Order For Actions In Hierarchical Policies

    If there is a stand-alone set action as part of a policer action, the packet is marked with the set value in the policer, because that is executed last. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-128...
  • Page 143: Three-Parameter Scheduler

    In some cases, a scheduler might not support the three parameters at all levels in hierarchical policies. ASR 9000 Ethernet Line Cards Queueing is supported at all levels of hierarchical policies: Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-129...
  • Page 144: Hierarchical Policing

    Police actions • In top and bottom policies – Processed from the bottom level of the hierarchy to the top level of the hierarchy – Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-130 OL-23108-02...
  • Page 145: How To Configure Hierarchical Qos

    Policing Traffic at Two Levels of Hierarchy, page 137 • • Attaching Hierarchical Policies to Physical and Virtual Links, page 139 • Configuring Enhanced Hierarchical Ingress Policing, page 141 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-131...
  • Page 146 {rate [units] | percent percentage-value} bandwidth remaining [percent percentage-value | ratio ratio-value] shape average {percent percentage | rate [units]} service-policy policy-map-name commit Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-132 OL-23108-02...
  • Page 147 You can configure only the class-default Note Example: class in a parent policy. Do not configure RP/0/RSP0/CPU0:router(config-pmap)# class class-default any other traffic class. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-133...
  • Page 148 • Use the commit command to save the configuration changes to the running configuration file and remain within the configuration session. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-134 OL-23108-02...
  • Page 149 Step 3 Assigns the traffic class that you specify to the class class-name policy map. Enters policy map class configuration mode. Example: RP/0/RSP0/CPU0:router(config-pmap)# class Bronze Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-135...
  • Page 150 Step 8 (Optional) Shapes traffic to the indicated bit rate. shape average {percent percentage | rate [ units ]} Example: RP/0/RSP0/CPU0:router(config-pmap-c)# shape average 1 mbps Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-136 OL-23108-02...
  • Page 151: Policing Traffic At Two Levels Of Hierarchy

    (Optional) police rate {value [units] | percent percentage} [burst burst-size [burst-units]] [peak-rate value [units]] [peak-burst peak-burst [burst-units]] exit policy-map policy-name class class-default Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-137...
  • Page 152 Creates or modifies a top-level policy. policy-map policy-name Example: RP/0/RSP0/CPU0:router(config)# policy-map All_Traffic Step 7 Configures or modifies the default traffic class. class class-default Example: RP/0/RSP0/CPU0:router(config-pmap)# class class-default Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-138 OL-23108-02...
  • Page 153: Attaching Hierarchical Policies To Physical And Virtual Links

    To attach hierarchical policies to interfaces, subinterfaces, virtual circuits, and virtual LANs, use the service-policy {input | output} policy-map-name command. SUMMARY STEPS configure interface type interface-path-id service-policy {input | output} policy-map-name Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-139...
  • Page 154 Use the commit command to save the • configuration changes to the running configuration file and remain within the configuration session. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-140 OL-23108-02...
  • Page 155: Configuring Enhanced Hierarchical Ingress Policing

    Enters policy map configuration mode. Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. Example: RP/0/RSP0/CPU0:router(config)# policy-map parent Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-141...
  • Page 156 Configures the action to take on packets that exceed the rate exceed-action [drop | set options | transmit] limit. The allowed action is: drop—Drops the packet. Example: RP/0/RSP0/CPU0:router(config-pmap-c-police)# exceed-action drop Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-142 OL-23108-02...
  • Page 157: Configuration Examples For Hierarchical Qos

    The same policy can be applied at Multilink PPP main interface. class-map match-any video match precedence 1 end-class-map class-map match-any premium match precedence 2 3 end-class-map class-map match-any voice-ip match precedence 0 end-class-map Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-143...
  • Page 158: Three-Level Hierarchical Queueing Policy: Examples

    1 end-class-map class-map match-any premium match precedence 2 3 end-class-map class-map match-any voice-ip match precedence 0 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-144 OL-23108-02...
  • Page 159 3 20 ms 200 ms queue-limit 200 ms class best-effort bandwidth percent 20 queue-limit 200 ms class class-default end-policy-map interface GigabitEthernet0/0/0/9 service-policy output grand-parent Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-145...
  • Page 160 40 class premium service-policy gchild_policy bandwidth percent 10 random-detect discard-class 2 10 ms 100 ms random-detect discard-class 3 20 ms 200 ms Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-146 OL-23108-02...
  • Page 161 17 end-class-map class-map match-any premium_g1 match precedence 2 end-class-map class-map match-any premium_g2 match precedence 3 end-class-map class-map match-any best-effort match precedence 4 end-class-map Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-147...
  • Page 162: Three-Parameter Scheduler: Examples

    50 class B bandwidth percent 60 bandwidth remaining percent 10 class class-default exit policy-map Top-Parent class-default shape average 1 mbps service-policy Bottom-Child Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-148 OL-23108-02...
  • Page 163: Hierarchical Policing: Examples

    10 percent (of 50 percent). Cumulatively, all traffic on the interface is policed at 50 percent of the interface rate by the policer in the parent policy. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02...
  • Page 164: Attaching Service Policies To Physical And Virtual Links: Examples

    If the child-conform-aware command were not configured in the parent policy, the parent policer would drop traffic that matches the conform rate of the child policer but exceeds the conform rate of the parent policer. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-150 OL-23108-02...
  • Page 165: Verifying The Configuration Of Hierarchical Policies

    Displays the configuration of all policy maps configured on the router. show running-config policy-map Displays the configuration of all classes contained in the policy map you specify. policy-map-name Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-151...
  • Page 166: Additional References

    RFCs Title No new or modified RFCs are supported by this — feature, and support for existing RFCs has not been modified by this feature. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-152 OL-23108-02...
  • Page 167: Technical Assistance

    Registered Cisco.com users can log in from this page to access even more content. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-153...
  • Page 168 Configuring Hierarchical Modular QoS on Cisco ASR 9000 Series Routers Additional References Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-154 OL-23108-02...
  • Page 169: Link Bundling Overview

    Feature ASR 9000 Ethernet Line Cards SIP 700 for the ASR 9000 QoS on Link Bundles Feature History for Configuring QoS on Link Bundles on Cisco ASR 9000 Series Routers Release Modification Release 3.9.0 The QoS on Link Bundles feature was introduced on ASR 9000 Ethernet Line Cards.
  • Page 170: Load Balancing

    All the individual links within a single bundle must be of the same type and the same speed. Cisco IOS XR software supports the following methods of forming bundles of Ethernet interfaces: IEEE 802.3ad—Standard technology that employs a Link Aggregation Control Protocol (LACP) to •...
  • Page 171: Qos And Link Bundling

    Ethernet link bundle. Example 1 Applying a Traffic Policy to an Ethernet Link Bundle interface Bundle-Ether bundle-id service-policy input policy-1 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-157...
  • Page 172: Additional References

    RFCs Title No new or modified RFCs are supported by this — feature, and support for existing RFCs has not been modified by this feature. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-158 OL-23108-02...
  • Page 173: Technical Assistance

    Registered Cisco.com users can log in from this page to access even more content. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-159...
  • Page 174 Configuring Modular QoS on Link Bundles on Cisco ASR 9000 Series Routers Additional References Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-160 OL-23108-02...
  • Page 175: Modular Qos Deployment Scenarios On Cisco Asr 9000 Series Routers

    The MPLS QoS feature was introduced on ASR 9000 Ethernet Line Cards. Release 3.9.0 The MLPPP QoS feature was introduced on the SIP 700 for the ASR 9000. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-161...
  • Page 176 802.1ah frames. DEI support includes the ability to: Do weighted random early detection (WRED) based on the value of the DEI bit. • Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-162 OL-23108-02...
  • Page 177: Mark Dei Based On A Policing Action: Example

    The main difference between Frame Relay QoS and other interface types is that you can perform: Frame Relay DLCI classification • • Frame Relay DE classification Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-163...
  • Page 178: Frame Relay Qos

    50 conform-action transmit exceed-action set fr-de 1 end-policy-map DE bit marking is not supported on Layer 3 interfaces. Note Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-164 OL-23108-02...
  • Page 179: Frame Relay Qos: Example

    Multilink0/2/1/0/1.17 point-to-point ipv4 address 192.1.2.1 255.255.255.0 pvc 17 encap cisco show run policy-map child_queuing_policy <--------- child policy-map Mon Aug 2 11:35:05.821 UTC policy-map child_queuing_policy Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-165...
  • Page 180 2 3 end-class-map class-map match-any voice-ip match precedence 0 end-class-map class-map match-any parentQ_1 match frame-relay dlci 16 end-class-map class-map match-any parentQ_2 match frame-relay dlci 17 end-class-map Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-166 OL-23108-02...
  • Page 181 : 880 Sent Compressed (packets) : 877 Sent full header (packets) : 342 Saved (bytes) : 31570 Sent (bytes) : 24750 Efficiency improvement factor : 2.27 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-167...
  • Page 182: Ip Header Compression Qos: Example

    This configuration allows you to manipulate and carry over the Frame Relay QoS values across L2VPN. Figure 1 shows the network topology. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-168 OL-23108-02...
  • Page 183 26 l2vpn xconnect group frfr p2p p1 interface pos0/3/0/0.26 neighbor x.x.x.x pw-id 1001 interface pos0/3/0/0.26 pvc 26 ipv4 add 10.0.0.2 255.0.0.0 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-169...
  • Page 184: Frame Relay <-> Ethernet Over Pseudowire: Example

    26 service-policy input setexp interface gig0/4/0/0.26 l2transport encapsulation dot1q 100 l2vpn xconnect group freth p2p p1 interface gig0/4/0/0.26 neighbor x.x.x.x pw-id 1001 interworking ipv4 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-170 OL-23108-02...
  • Page 185: Mlppp Qos/Mlfr Qos

    Update the policy—Active policy rates are updated to reflect the new available bandwidth. The • available bandwidth could have increased or decreased, but the applied policy's bandwidth requirements can still be satisfied. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-171...
  • Page 186: Multiclass Mlppp With Qos

    Classes that share the same encap-sequence ID number must have the same priority. A QoS policy map is configured as follows: config policy-map type qos policy-name class class-name action action action . . . Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-172 OL-23108-02...
  • Page 187: Mlppp Qos/Mlfr Qos: Example

    10 show run policy-map policy-map parent_shape class class-default service-policy child_template1 shape average 14 mbps end-policy-map policy-map child_template1 class voice-ip priority level 1 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-173...
  • Page 188 Multilink0/2/1/0/1 direction input: Service Policy not installed Multilink0/2/1/0/1 output: parent_shape Policy State = Suspended Reason Sum of Minimum-BW + priority with policer exceeds parent ref rate Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-174 OL-23108-02...
  • Page 189: Mpls Qos

    For MPLS QoS, there are three deployment scenarios based on tunneling model: uniform mode, pipe mode, and short pipe mode. Table 1 shows an overview of the tunneling models. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-175...
  • Page 190: Mpls Uniform Mode

    MPLS network. Any changes to the packet marking within the MPLS network are not permanent and do not get propagated when the packet leaves the MPLS network. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-176...
  • Page 191: Mpls Short Pipe Mode

    The egress interface configuration is not needed for the MPLS DiffServ uniform model, but it is added to show how to perform QoS on the EXP bits. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02...
  • Page 192: Uniform Mode: Egress Pe Example

    4 policy-map policy3 class qos2 set precedence 2 bandwidth percent 20 random-detect default class qos4 set precedence 4 bandwidth percent 20 random-detect default Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-178 OL-23108-02...
  • Page 193: Pipe Mode: Egress Pe Example

    IP packet. ! Configuration is not needed for ingress interface !Egress interface: class-map prec4 match precedence 4 policy-map policy3 class prec4 bandwidth percent 40 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-179...
  • Page 194: Qos On Multicast Vpn

    When an IP packet arrives at PE1 on the ingress interface E1, the packet is sent out of the tunnel interface E2 into the core network by encapsulating the IP packet inside a GRE tunnel. Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-180...
  • Page 195 3 Conditional Marking policy-map p2 class c1 police rate percent 50 conform action set dscp tunnel af11 exceed action set dscp tunnel af12 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-181...
  • Page 196: Sip 700 For The Asr 9000

    NxDS0 interfaces are: One-level policy applied to a main interface without Frame Relay configured • Two-level policy applied to a subinterface with Frame Relay configured • Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-182 OL-23108-02...
  • Page 197: One-Level Policy Applied To Main Interface: Example

    350 •-------------------frf12 enabled -------------------frf12 enabled show run policy-map policy-map parent_policy class class-default shape average rate 768 kbps show run policy-map policy-map fractional_T1_E1_policy Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-183...
  • Page 198 Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Configuration Guide Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-184 OL-23108-02...
  • Page 199 Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Interfaces Component Configuration Guide Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-185...
  • Page 200 Modular QoS Deployment Scenarios on Cisco ASR 9000 Series Routers Related Information Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-186 OL-23108-02...
  • Page 201 ANCP message types QC-91 match qos-group command QC-21 ANCP Neighbors QC-105 clear ancp an-port QC-100 ANCP neighbors QC-97 clear ancp neighbor QC-99 ancp neighbor sender-name QC-98 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-187...
  • Page 202 QoS features supported QC-16 reset recommendation QC-16 ToS field QC-15 values (table) QC-16 Frame Relay QoS QC-163 WRED QC-15 IPv6 ACLs, QoS matching QC-9 IPv6 QoS QC-9 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-188 OL-23108-02...
  • Page 203 QC-4 traffic shaping QC-4 techniques Neighbor Adjacency Timing QC-91 classification QC-11 NxDS0 interfaces QC-182 congestion avoidance QC-4 congestion management QC-3, QC-45 packet classification QC-2 queueing Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide OL-23108-02 QC-189...
  • Page 204 QC-11 IP Precedence QC-74 creating QC-19 overview QC-74 major elements QC-12 QC-75 match commands QC-12 uses QC-75 traffic policer committed information rate (CIR) QC-48 Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide QC-190 OL-23108-02...

Table of Contents