Cisco CRS Command Reference Manual

Ios xr modular quality of service command reference
Hide thumbs Also See for CRS:

Advertisement

Cisco IOS XR Modular Quality of Service Command Reference for the
Cisco CRS Router, Release 4.0
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-23235-03

Advertisement

Table of Contents
loading

Summary of Contents for Cisco CRS

  • Page 1 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 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) Fax: 408 527-0883 Text Part Number: OL-23235-03...
  • Page 2 © 2013 Cisco Systems, Inc. All rights reserved.
  • Page 3 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 4 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 5 Preface This reference describes the Cisco IOS XR Quality of Service commands. The preface for Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router contains the following sections: • Changes To This Document, page v •...
  • Page 6: 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 7 39 • match discard-class, page 41 • match dscp, page 44 • match mpls experimental topmost, page 48 • match precedence, page 50 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 8 125 • show policy-map targets, page 130 • show qos ea trace, page 132 • show qos interface , page 134 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 9 Quality of Service Commands on the Cisco IOS XR Software • show qos redq, page 140 • show qos wred-curve, page 142 • switch-fabric service-policy, page 143 • violate-action, page 144 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 10: Bandwidth (Qos)

    IDs required for each command. If you suspect user group assignment is preventing you from using a command, contact your AAA administrator for assistance. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 11 1000000 bandwidth 1000000 service-policy child policy-map child class gold bandwidth percent 20 class silver bandwidth percent 40 class default bandwidth percent 40 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 12 For example, the following policy is applied to an OC-192 interface: policy-map oc-192 class c1 bandwidth percent 50 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 13 Displays policy configuration information for all classes configured for all service policies on the specified interface. show qos interface , on page 134 Displays QoS information for a specific interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 14: Bandwidth Remaining

    Layer 2 encapsulation, but including the HDLC flags, FCS, and so on. These have to be included because they are applied per packet, and the system cannot predict how many packets of a particular packet size are being sent out. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 15 In the following example, remaining bandwidth is shared by classes class1 and class2 in a 20:80 ratio. RP/0/RP0/CPU0:router(config)# policy-map policy1 RP/0/RP0/CPU0:router(config-pmap)# class class1 RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth remaining percent 20 RP/0/RP0/CPU0:router(config-pmap-c)# exit RP/0/RP0/CPU0:router(config-pmap)# class class2 RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth remaining percent 80 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 16: Class (Policy-Map)

    The class name that you specify in the policy map ties the characteristics for that class—that is, its policy—to the class map and its match criteria, as configured using the class-map command. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 17 67 Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 18: Class-Map

    Packets arriving on the interface are checked against the match criteria configured for a class map to determine if the packet belongs to that class. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 19 (OAM) or cell loss priority (CLP). match cos, on page 36 Identifies specified class of service (CoS) values as a match criteria in a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 20 Identifies a specific source MAC address as match criterion in a class map. match vlan, on page 60 Identifies selected VLAN IDs as the match criteria for a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 21: Clear Qos Counters Interface

    No default behavior or values Command Modes EXEC Command History Release Modification Release 2.0 This command was introduced. Release 3.9.0 The interface keyword was added. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 22 The following example shows how to clear output QoS counters attached to POS interface 0/7/0/3: RP/0/RP0/CPU0:router# clear qos counters interface pos 0/7/0/3 output Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 23: Conform-Action

    (Optional) Transmits the packets. Command Default By default, if no action is configured on a packet that conforms to the rate limit, the packet is transmitted. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 24 RP/0/RP0/CPU0:router(config)# class-map class RP/0/RP0/CPU0:router(config-cmap)# match mpls experimental topmost 0 RP/0/RP0/CPU0:router(config-cmap)# exit RP/0/RP0/CPU0:router(config)# policy-map child RP/0/RP0/CPU0:router(config-pmap)# class prec1 RP/0/RP0/CPU0:router(config-pmap-c)# police rate 100000000 peak-rate 3125000 peak-burst 3125000 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 25 144 Configures the action to take on packets that violate the rate limit. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 26: End-Class-Map

    RP/0/RP0/CPU0:router(config)# Related Commands Command Description class-map, on page 12 Defines a traffic class and the associated rules that match packets to the class. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 27: End-Policy-Map

    The following example shows how to end the policy map configuration and exit policy map configuration mode. RP/0/RP0/CPU0:router(config)# policy-map policy1 RP/0/RP0/CPU0:router(config-pmap)# class class1 RP/0/RP0/CPU0:router(config-pmap-c)# police RP/0/RP0/CPU0:router(config-pmap-c)# set precedence 3 RP/0/RP0/CPU0:router(config-pmap)# end-policy-map RP/0/RP0/CPU0:router(config)# Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 28 67 Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 29: Exceed-Action

    • qos-group value —Sets the QoS group value. Range is 0 to 63. • srp-priority value —Sets the Spatial Reuse Protocol (SRP) priority. Range is 0 to 7 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 30 • Ingress and egress • Layer 2 subinterfaces • Layer 2 main interfaces • Layer 3 main interfaces Task ID Task ID Operations read, write Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 31 144 Configures the action to take on packets that violate the rate limit. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 32: Hw-Module Qos Input Police Granularity Location

    Policer granularity values, whether default or configured, apply to the SIP and to all SPAs that are installed on the SIP. The configured policer granularity value will be applied only for all future traffic policies configured on the interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 33 RP/0/RP0/CPU0:router(config)# hw-module qos input police granularity location 0/1/CPU0 Related Commands Command Description show hw-module qos input police granularity location, Displays the police granularity information for input on page 119 interfaces. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 34: Hw-Module Qos Output Police Granularity Location

    Policer granularity values, whether default or configured, apply to the SIP and to all SPAs that are installed on the SIP. The configured policer granularity value is applied only for all future traffic policies configured on the interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 35 RP/0/RP0/CPU0:router(config)# hw-module qos output police granularity location 0/1/CPU0 Related Commands Command Description show hw-module qos output police granularity Displays the police granularity information for output location, on page 121 interfaces. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 36: Hw-Module Qos Output Shape Granularity Location

    For example, if the shaper rate is set to 320 kbps but the shaper granularity is configured to 256 kbps, the effective shaper rate is 512 kbps, that is a multiple of 256 kbps. To get an actual shaper rate of 320 kbps, Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 37 (config)# hw-module qos output shape granularity location 0/1/CPU0 Related Commands Command Description show hw-module qos output shape granularity location, Displays shape granularity information. on page 123 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 38: Match Access-Group

    Access Control Entries with TCP fields such as, SYN, ACK and FIN in the corresponding ACL are not supported. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 39 67 Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 40: Match Atm

    ATM interfaces can be input policy maps only. The match atmcommand can be configured for ingress service policies only. Task ID Task ID Operations read, write Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 41 Identifies a specific source MAC address as match criterion in a class map. match vlan, on page 60 Identifies selected VLAN IDs as the match criteria for a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 42: Match Cos

    If you specify more than one match cos command in a class map, the values of subsequent match statements are added to the first match cos command. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 43 RP/0/RP0/CPU0:router(config-pmap-c-police)#bandwidth remaining percent 40 RP/0/RP0/CPU0:router(config-pmap-c)#class class-default RP/0/RP0/CPU0:router(config-pmap-c)#end-policy-map RP/0/RP0/CPU0:router(config)# RP/0/RP0/CPU0:router(config)#class-map match-any ic RP/0/RP0/CPU0:router(config-cmap)#match cos inner 1 3 5 RP/0/RP0/CPU0:router(config-cmap)#end-class-map RP/0/RP0/CPU0:router(config)# RP/0/RP0/CPU0:router(config)#interface gigabitethernet 0/6/5/0.2 l2transport Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 44 97 Sets the Layer 2 class of service (CoS) value of an outgoing packet. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 45: Match Destination-Address

    Packet-over-SONET/SDH (POS) interface or a routed VLAN subinterface. The match 48-bit MAC address is specified in xxxx.xxxx.xxxx format on L2VPN PE interfaces. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 46 Identifies a specific source MAC address as match criterion in a class map. match vlan, on page 60 Identifies selected VLAN IDs as the match criteria for a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 47: Match Discard-Class

    0 1 2 3 4 5 6 7 returns matches for discard class values 0, 1, 2, 3, 4, 5, 6, and 7. Only one of the seven values is needed to yield a match (OR operation). Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 48 39 Identifies a specific destination MAC address explicitly as a match criterion in a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 49 Identifies a specific source MAC address as match criterion in a class map. match vlan, on page 60 Identifies selected VLAN IDs as the match criteria for a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 50: Match Dscp

    If you specify more than one match dscp command in a class map, only the last command entered applies. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 51 Table 2: IP DSCP Reserved Keywords DSCP Value Reserved Keyword default AF11 AF12 AF13 AF21 AF22 AF23 AF31 AF32 AF33 AF41 AF42 AF43 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 52 34 Enables packet matching on the basis of the ATM operations, administration, and maintenance (OAM) or cell loss priority (CLP). Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 53 102 Marks a packet by setting the IP differentiated services code point (DSCP) in the type of service (ToS) byte. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 54: Match Mpls Experimental Topmost

    The experimental values are used as a matching criterion only. The value has no mathematical significance. For instance, the experimental value 2 is not greater than 1. The value indicates that a packet marked with the Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 55 104 show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 56: Match Precedence

    If you specify more than one match precedence command in a class map, only the last command entered applies. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 57 0/1/0/9 for a precedence value of 5. If the incoming packet has been marked with the precedence value of 5, the packet is queued to the class queue with the bandwidth setting 300 kbps. RP/0/RP0/CPU0:router# configure Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 58 Sets the precedence value in the IP header. show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 59: Match Protocol

    The protocol-value argument supports a range of protocol numbers. After you identify the class, you may use the match protocol command to configure its match criteria. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 60 Payload Compression Protocol Protocol Independent Multicast sctp Stream Control Transmission Protocol Transport Control Protocol User Datagram Protocol Task ID Task ID Operations read, write Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 61 56 Identifies specific quality-of-service (QoS) group values as match criteria in a class map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 62: Match Qos-Group

    16 21 30 31 returns matches for QoS group values of 4, 9, 11, 15, 16, 21, 30, and 31. Only one of the eight values is needed to yield a match (OR operation). Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 63 IP Version 4 (IPv4) or Multiprotocol Label Switching (MPLS) packets. set qos-group, on page 108 Sets the quality of service (QoS) group identifiers on packets. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 64: Match Source-Address

    The command is invalid on a policy that is attached to a Packet-over-SONET/SDH (POS) interface or a routed VLAN subinterface. The match 48-bit MAC address is specified in xxxx.xxxx.xxxx format on L2VPN PE interfaces. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 65 RP/0/RP0/CPU0:router(config-cmap)# match source-address mac 0003.f0d0.2356 Related Commands Command Description class-map, on page 12 Defines a traffic class and the associated rules that match packets to the class. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 66: Match Vlan

    To use the match vlan command, you must first enter the class-map command to specify the name of the class whose match criteria you want to establish. If you specify more than one match vlan command in a Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 67 RP/0/RP0/CPU0:router(config-cmap)# match vlan inner 1 2 3 RP/0/RP0/CPU0:router(config-cmap)# end-class-map RP/0/RP0/CPU0:router(config)# interface gigabitethernet 0/6/5/0.2 l2transport RP/0/RP0/CPU0:router(config-subif)# dot1q vlan 1 any RP/0/RP0/CPU0:router(config-subif)# service-policy input p1 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 68 Related Commands Command Description class-map, on page 12 Defines a traffic class and the associated rules that match packets to the class. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 69: Police Rate

    • us —microseconds peak-rate value (Optional) Specifies the Peak Information Rate (PIR) in the specified units . Range is from 1 to 4294967295. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 70 The parameters set by the action keywords are rounded by the hardware. To check the actual values programmed in the hardware use the show qos interface command. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 71 RP/0/RP0/CPU0:router(config)# class-map class1 RP/0/RP0/CPU0:router(config-cmap)# match mpls experimental topmost 0 RP/0/RP0/CPU0:router(config-cmap)# exit RP/0/RP0/CPU0:router(config)# policy-map policy1 RP/0/RP0/CPU0:router(config-pmap)# class class1 RP/0/RP0/CPU0:router(config-pmap-c)# police rate 250 kbps burst 50 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 72 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 73: Policy-Map

    You can configure class policies in a policy map only if the classes have match criteria defined for them. Use the class-map and match commands to configure the match criteria for a class. Because you can configure Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 74 Specifies the name of the class whose policy you want to create or change. class-map, on page 12 Defines a traffic class and the associated rules that match packets to the class. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 75: Priority (Qos)

    The bandwidth and priority commands cannot be used in the same class, within the same policy map. These commands can be used together in the same policy map . Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 76 There is one priority queue per level in a group. Modifying CRS-MSC-40G QoS Configurations for CRS-MSC-140G On the Cisco CRS Series Modular Services Card 40G (CRS-MSC-40G), a priority action can be configured with or without a police action in the same class.
  • Page 77: Queue-Limit

    = (100 ms * queue bandwidth kbps) / 8. Command Modes Policy map class configuration Command History Release Modification Release 2.0 This command was introduced. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 78 ◦ When the queue-limit is configured in time units, the guaranteed service rate is used to compute the queue limit. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 79 Related Commands Command Description class (policy-map), on page 10 Specifies the name of the class whose policy you want to create or change. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 80 Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. show qos interface , on page 134 Displays QoS information for a specific interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 81: Random-Detect

    23, whichever is larger, to 1073741823. When the queue length exceeds the maximum threshold, RED drops all packets with the specified discard class value. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 82 , bandwidth (QoS) , or bandwidth remaining commands in the user-defined policy map class. Release 3.9.2 The cells unit was added. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 83 Note The exponential weight factor is set to 0 for Cisco ASR 9000 series routers. Note Task ID Task ID Operations read, write Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 84 IP precedence. show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 85: Random-Detect Cos

    Default unit for max-threshold and min-threshold is packets. min-threshold: 30 ms max-threshold: 100 ms Command Modes Policy map class configuration Command History Release Modification Release 3.4.0 This command was introduced. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 86 Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. show qos interface , on page 134 Displays QoS information for a specific interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 87: Random-Detect Discard-Class

    Release 2.0 This command was introduced. Release 3.2 Range of values for the thresholds changed from 512 to 1073741823 to 0 to 1073741823. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 88 90 Configures the Weighted Random Early Detection (WRED) thresholds for packets with a particular IP precedence. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 89 Description show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 90: Random-Detect Dscp

    • bytes—bytes • gbytes—gigabytes • kbytes—kilobytes • mbytes—megabytes • ms—milliseconds • packets—packets (default) • us—microseconds Command Default Match packets with default DSCP (000000). Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 91 The following example shows that for packets with DSCP AF11, the WRED minimum threshold is 1,000,000 bytes and the maximum threshold is 2,000,000 bytes: RP/0/RP0/CPU0:router(config)# policy-map policy1 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 92 IP precedence. show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 93: Random-Detect Exp

    Release 2.0 This command was introduced. Release 3.2 Range of values for the thresholds was changed from 512 to 1073741823 to 0 to 1073741823. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 94 (DSCP) value. random-detect precedence, on page Configures the Weighted Random Early Detection (WRED) thresholds for packets with a particular IP precedence. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 95 Command Description show policy-map interface, on page Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 96: Random-Detect Precedence

    Release 2.0 This command was introduced. Release 3.2 Range of values for the thresholds changed from 512 to 1073741823 to 0 to 1073741823. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 97 RP/0/RP0/CPU0:router(config-pmap-c)#random-detect precedence 3 1000000 2000000 Related Commands Command Description bandwidth (QoS), on page 4 Specifies the minimum bandwidth allocated to a class belonging to a policy map. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 98 (DSCP) value. show policy-map interface, on page Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 99: Service-Policy (Interface)

    To apply a new policy to an interface, you must remove the previous policy. A new policy cannot replace an existing policy. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 100 RP/0/RP0/CPU0:router(config-cmap)# match precedence ipv4 1 RP/0/RP0/CPU0:router(config-cmap)# exit RP/0/RP0/CPU0:router(config)# policy-map policy1 RP/0/RP0/CPU0:router(config-pmap)# class class1 RP/0/RP0/CPU0:router(config-pmap-c)# set precedence 2 RP/0/RP0/CPU0:router(config-pmap)# exit RP/0/RP0/CPU0:router(config)# interface pos 0/2/0/0 RP/0/RP0/CPU0:router(config-if)# service-policy output policy1 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 101: Service-Policy (Policy Map Class)

    The service-policy (policy-map class) command has the following restrictions: • The priority command can be used in either the parent or the child policy, but not both policies simultaneously. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 102 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 103 • Layer 2 main interfaces and subinterfaces • Layer 3 main interfaces The set cos inner command is not supported on Layer 3 subinterfaces or on bundles. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 104 67 Creates or modifies a policy map that can be attached to one or more interfaces to specify a service policy. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 105 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 106: Set Discard-Class

    Marking of the discard class and the QoS group has only local significance on a node. Task ID Task ID Operations read, write Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 107 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 108: Set Dscp

    DSCP tunnel as a policy action. Both conditional and unconditional markings are supported only in the ingress direction. The tunnel keyword is available on Layer 2 (Ethernet only) and Layer 3 interfaces in the ingress direction. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 109 Sets the precedence value in the IP header. show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 110: Set Mpls Experimental

    WRED ensures that high-priority traffic has lower loss rates than other traffic during times of congestion. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 111 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 112: Set Precedence

    MDRR or WRED at points downstream in the network. IP precedence can be set at the edge of the network (or administrative domain) and have queueing act on it thereafter. MDRR can speed handling for Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 113 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 114: Set Qos-Group

    The following example sets the QoS group to 5 for packets that match the MPLS experimental bit 1: RP/0/RP0/CPU0:router(config)# class-map class1 RP/0/RP0/CPU0:router(config-cmap)# match mpls experimental topmost 1 RP/0/RP0/CPU0:router(config-cmap)# exit Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 115 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 116: Set Srp-Priority

    In the following example, the policy map called srp-set is created to assign different SRP CoS values for different types of traffic, and then is attached to output SRP interface 0/2/0/0: RP/0/RP0/CPU0:router(config)# policy-map srp-set Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 117 (interface), on page 93 Attaches a policy map to an input interface or output interface to be used as the service policy for that interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 118: Shape Average

    This command was introduced. Release 3.3.1 Minimum rate value changed from 128 kbps to 256 kbps. Release 4.3.1 The per-million and per-thousand keywords were added. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 119 The following example shows how to set traffic shaping to 5,000,000 kbps: RP/0/RP0/CPU0:router(config)# policy-map policy1 RP/0/RP0/CPU0:router(config-pmap)# class class1 RP/0/RP0/CPU0:router(config-pmap-c)# shape average 5000000 kbps Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 120: Show Fmgr Fabqos

    RP/0/RP0/CPU0:router# show fmgr fabqos sw location 0/1/CPU0 FABQOS ENTRIES =============================================================================== Interface = FABQOS Feature = fabqos Direction = in TCAM Fields: protocol qos-group dscp exp dc cos =============================================================================== Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 121 Zero entries found Related Commands Command Description show fmgr interface, on page 116 Displays ternary content addressable memory (TCAM) feature entries for QoS. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 122: Show Fmgr Interface

    The node-id is expressed in the rack/slot/module notation. Note Use the show platform command to see the location of all nodes installed in the router. (Optional) Reads from the software. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 123 MPLS: ip/mpls vlg_id l2_cos label exp qos_grp dc qos-id CSRAM Fields: cid token1 stats_ptr conform1 exceed1 violate1 token2 conform2 exceed2 violate2 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 124 • Direction—Direction of interface (ingress or egress). CSRAM Fields General CSRAM information. POLICER ENTRIES General policer and TCAM information for the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 125: Show Hw-Module Qos Input Police Granularity Location

    0/1/CPU0: RP/0/RP0/CPU0:router# show hw-module qos input police granularity location 0/1/CPU0 =========================== QOS POLICE GRANULARITY =========================== Location Rate Deviation Tolerance (%) ========== ============== 0/1/CPU0 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 126 ---------------------------- Related Commands Command Description hw-module qos input police granularity location, on Configures the policer granularity on input interfaces. page 26 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 127: Show Hw-Module Qos Output Police Granularity Location

    This sample output shows how to display police granularity information, for the output interface at location RP/0/RP0/CPU0:router# show hw-module qos output police granularity location 0/1/CPU0 =========================== QOS POLICE GRANULARITY =========================== Location Rate Deviation Tolerance (%) ========== ============== 0/1/CPU0 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 128 ---------------------------- Related Commands Command Description hw-module qos output police granularity location, on Configures the policer granularity on output interfaces. page 28 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 129: Show Hw-Module Qos Output Shape Granularity Location

    RP/0/RP0/CPU0:router# show hw-module qos output shape granularity location 0/1/CPU0 ============= ==================================== QOS SHAPING GRANULARITY ==================================== Configured Location Shape Programmed reload Granularity Granularity (Y / N) ============ =========== ============ ======== 0/1/CPU0 256Kbps Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 130 Specifies whether a line card reload will be required to enable the user configured shape granularity. Related Commands Command Description hw-module qos output shape granularity location, on page Configures shape granularity. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 131: Show Policy-Map Interface

    Displays qos statistics for qos type qos policies. interface type Interface type. For more information, use the question mark (?) online help function. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 132 (Optional) Specifies the bundle member’s interface. Command Default No default behavior or values Command Modes EXEC Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 133 Total Dropped Policing statistics (packets/bytes) (rate - kbps) Policed(conform) Policed(exceed) Policed(violate) Policed and dropped : Queueing statistics Queue ID : 44 Taildropped(packets/bytes) : 0/0 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 134 Transmitted Number of packets or bytes transmitted for this class. Total Dropped Number of packets or bytes dropped for this class. Policing statistics Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 135 Inst-queue-len (bytes)/(ms) Instantaneous length of the queue. Avg-queue-len (bytes)/(ms) Average length of the queue. Taildropped (bytes) Number of bytes taildropped for this queue. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 136: Show Policy-Map Targets

    QoS policies that affect the fewest number of interfaces at a time. Use the show policy-map targets command to identify the number of interfaces that will be affected during policy map modification. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 137 Description show policy-map interface, on page 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 138: Show Qos Ea Trace

    (Optional) Displays external events received. (Optional) Displays error traces. errors qfifo (Optional) Displays QFIFO component interface events. Command Default No default behavior or values Command Modes EXEC Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 139 Time when the trace message is captured. Process Name Name of the process responsible for the trace. Location Card or slot which executes the process. Message Trace message. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 140: Show Qos Interface

    Attaches the specified policy map to the input input interface. Attaches the specified policy map to the output output interface. host-link Specifies the host-link Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 141 Examples This is the sample output shows the L2VPN QoS information on a GigabitEthernet interface: RP/0/RP0/CPU0:router# show qos interface GigabitEthernet 0/2/0/0 output Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 142 LEVEL1 class Level 1 class identifier. Queue Max. BW. Maximum bandwidth allowed on this queue. Queue Min. BW Minimum bandwidth allowed on this queue. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 143 (GB), kilobytes (KB), megabytes (MB), milliseconds (ms), or microseconds (us). The user-configured value is in parentheses. Policer conform action Policer conform action. The user-configured value is in parentheses. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 144 Queue Limit: 472 kbytes (100 ms) Abs-Index: 53 Template: 0 Curve: 6 Shape CIR Profile: INVALID Shape PIR Profile : 2/1(E) PIR: 37496 kbps PBS: 468736 bytes Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 145 Shape CIR Profile: INVALID WFQ Profile: 2/9 Committed Weight: 10 Excess Weight: 10 Bandwidth: 0 kbps, BW sum for Level 2: 0 kbps, Excess Ratio: 1 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 146: Show Qos Redq

    RP/0/RP0/CPU0:router# show qos redq 5000 input location 0/1/CPU0 Tue Nov 11 03:31:02.370 PST DST node 11 queue 5000 -- direction input policy ------------------------------------------------------- weight Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 147 Drop threshold of the queue. average length Average length of the queue. instantaneous length Instantaneous length of the queue. high watermark Maximum length of the queue. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 148: Show Qos Wred-Curve

    Task ID Operations read Examples The following example shows how to display QoS WRED curve information: RP/0/RP0/CPU0:router# show qos wred-curve input location 0/1/0 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 149: Switch-Fabric Service-Policy

    Task ID Task ID Operations read, write Examples The following example configures the service policy for policy map1. RP/0/RP0/CPU0:router# configure RP/0/RP0/CPU0:router(config)# switch-fabric service-policy map1 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 150: Violate-Action

    Command Modes Policy map police configuration Command History Release Modification Release 3.4.0 This command was introduced. Release 3.4.1 The set qos-group keyword was added. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 151 125 Displays policy configuration information for all classes configured for all service policies on the specified interface. Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 152 Quality of Service Commands on the Cisco IOS XR Software violate-action Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03...
  • Page 153 Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 OL-23235-03 IN-1...
  • Page 154 Index violate-action command Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0 IN-2 OL-23235-03...

Table of Contents