Cisco IOS XE Quality of Service Solutions Configuration Guide, Release 2
Applying QoS Features Using MQC

Table Of Contents

Applying QoS Features Using the MQC

Finding Feature Information

Contents

Restrictions for Applying QoS Features Using the MQC

Information About Applying QoS Features Using the MQC

The MQC Structure

Elements of a Traffic Class

Elements of a Traffic Policy

Benefits of Applying QoS Features Using the MQC

How to Apply QoS Features Using the MQC

Creating a Traffic Class Using the MQC

The match-all and match-any Keywords of the class-map Command

Creating a Traffic Policy Using the MQC

Attaching a Traffic Policy to an Interface Using the MQC

The input and output Keywords of the service-policy Command

Restrictions

Verifying the Traffic Class and Traffic Policy Information

Configuration Examples for Applying QoS Features Using the MQC

Creating a Traffic Class: Example

Creating a Traffic Policy: Example

Attaching a Traffic Policy to an Interface: Example

match not Command: Example

Default Traffic Class Configuration: Example

class-map match-any and class-map match-all Commands: Example

Traffic Policy as a QoS Policy (Hierarchical Traffic Policies): Example

Additional References

Related Documents

Standards

MIBs

RFCs

Technical Assistance

Feature Information for Applying QoS Features Using the MQC


Applying QoS Features Using the MQC


First Published: April 30, 2007
Last Updated: March 2, 2009

This module contains the concepts about applying QoS features using the Modular Quality of Service (QoS) Command-Line Interface (CLI) (MQC) and the tasks for configuring the MQC. The MQC allows you to define a traffic class, create a traffic policy (policy map), and attach the traffic policy to an interface. The traffic policy contains the QoS feature that will be applied to the traffic class.

Finding Feature Information

For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the "Feature Information for Applying QoS Features Using the MQC" section.

Use Cisco Feature Navigator to find information about platform support and Cisco IOS XE Software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.

Contents

Restrictions for Applying QoS Features Using the MQC

Information About Applying QoS Features Using the MQC

How to Apply QoS Features Using the MQC

Configuration Examples for Applying QoS Features Using the MQC

Additional References

Feature Information for Applying QoS Features Using the MQC

Restrictions for Applying QoS Features Using the MQC

Number of QoS Class Maps Supported (Cisco IOS XE Releases 2.1 and 2.2)

The MQC supports a maximum of 8 class maps in a single policy map.

Number of QoS Class Maps Supported (Cisco IOS XE Release 2.3)

The MQC supports a maximum of 256 class maps in a single policy map.

QoS Policy Maps and Sessions

When sessions are created and QoS policy maps are attached in both the ingress and egress directions, only 2000 sessions are supported. Sessions that exceed this limit can still be created, but the QoS policy maps will not be applied to the session.

Information About Applying QoS Features Using the MQC

Before applying QoS features using the MQC, you should be familiar with the following concepts:

The MQC Structure

Elements of a Traffic Class

Elements of a Traffic Policy

Benefits of Applying QoS Features Using the MQC

The MQC Structure

The MQC structure allows you to define a traffic class, create a traffic policy, and attach the traffic policy to an interface.

The MQC structure consists of the following three high-level steps.


Step 1 Define a traffic class by using the class-map command. A traffic class is used to classify traffic.

Step 2 Create a traffic policy by using the policy-map command. (The terms traffic policy and policy map are often synonymous.) A traffic policy (policy map) contains a traffic class and one or more QoS features that will be applied to the traffic class. The QoS features in the traffic policy determine how to treat the classified traffic.

Step 3 Attach the traffic policy (policy map) to the interface by using the service-policy command.


Elements of a Traffic Class

A traffic class contains three major elements: a traffic class name, a series of match commands, and, if more than one match command is used in the traffic class, instructions on how to evaluate these match commands.

The match commands are used for classifying packets. Packets are checked to determine whether they meet the criteria specified in the match commands; if a packet meets the specified criteria, that packet is considered a member of the class. Packets that fail to meet the matching criteria are classified as members of the default traffic class.

Available match Commands

Table 1 lists some of the available match commands that can be used with the MQC. The available match commands vary by Cisco IOS XE release. For more information about the commands and command syntax, see the Cisco IOS Quality of Service Solutions Command Reference.

Table 1 match Commands That Can Be Used with the MQC 

Command
Purpose

match access-group

Configures the match criteria for a class map on the basis of the specified access control list (ACL).

match any

Configures the match criteria for a class map to be successful match criteria for all packets.

match cos

Matches a packet based on a Layer 2 class of service (CoS) marking.

match destination-address mac

Uses the destination MAC address as a match criterion.

match discard-class

Matches packets of a certain discard class.

match [ip] dscp

Identifies a specific IP differentiated service code point (DSCP) value as a match criterion. Up to eight DSCP values can be included in one match statement.

match fr-dlci

Specifies the Frame Relay data-link connection identifier (DLCI) number as a match criterion in a class map.

match input-interface

Configures a class map to use the specified input interface as a match criterion.

match ip rtp

Configures a class map to use the Real-Time Transport Protocol (RTP) port as the match criterion.

match mpls experimental

Configures a class map to use the specified value of the Multiprotocol Label Switching (MPLS) experimental (EXP) field as a match criterion.

match mpls experimental topmost

Matches the MPLS EXP value in the topmost label.

match not

Specifies the single match criterion value to use as an unsuccessful match criterion.

Note The match not command, rather than identifying the specific match parameter to use as a match criterion, is used to specify a match criterion that prevents a packet from being classified as a member of the class. For instance, if the match not qos-group 6 command is issued while you configure the traffic class, QoS group 6 becomes the only QoS group value that is not considered a successful match criterion. All other QoS group values would be successful match criteria.

match packet length

Specifies the Layer 3 packet length in the IP header as a match criterion in a class map.

match port-type

Matches traffic on the basis of the port type for a class map.

match [ip] precedence

Identifies IP precedence values as match criteria.

match protocol

Configures the match criteria for a class map on the basis of the specified protocol.

Note There is a separate match protocol (NBAR) command used to configure Network-Based Application Recognition (NBAR) to match traffic by a protocol type known to NBAR.

match protocol fasttrack

Configures NBAR to match FastTrack peer-to-peer traffic.

match protocol gnutella

Configures NBAR to match Gnutella peer-to-peer traffic.

match protocol http

Configures NBAR to match Hypertext Transfer Protocol (HTTP) traffic by URL, host, Multipurpose Internet Mail Extension (MIME) type, or fields in HTTP packet headers.

match protocol rtp

Configures NBAR to match Real-Time Transport Protocol (RTP) traffic.

match qos-group

Identifies a specific QoS group value as a match criterion.

match source-address mac

Uses the source MAC address as a match criterion.


Multiple match Commands in One Traffic Class

If the traffic class contains more than one match command, you need to specify how to evaluate the match commands. You specify this by using either the match-any or match-all keywords of the class-map command. Note the following points about the match-any and match-all keywords:

If you specify the match-any keyword, the traffic being evaluated by the traffic class must match one of the specified criteria.

If you specify the match-all keyword, the traffic being evaluated by the traffic class must match all of the specified criteria.

If you do not specify either keyword, the traffic being evaluated by the traffic class must match all of the specified criteria (that is, the behavior of the match-all keyword is used).

Elements of a Traffic Policy

A traffic policy contains three elements: a traffic policy name, a traffic class (specified with the class command), and the command used to enable the QoS feature.

The traffic policy (policy map) applies the enabled QoS feature to the traffic class once you attach the policy map to the interface (by using the service-policy command).


Note A packet can match only one traffic class within a traffic policy. If a packet matches more than one traffic class in the traffic policy, the first traffic class defined in the policy will be used.


Commands Used to Enable QoS Features

The commands used to enable QoS features vary by Cisco IOS XE release. Table 2 lists some of the available commands and the QoS features that they enable. For complete command syntax, see the command reference for the release that you are using.

For more information about a specific QoS feature that you want to enable, see the appropriate module of the Cisco IOS Quality of Service Solutions Configuration Guide.

Table 2 Commands Used to Enable QoS Features 

Command
Purpose

bandwidth

Configures a minimum bandwidth guarantee for a class.

bandwidth remaining

Configures an excess weight for a class.

fair-queue

Enables the flow-based queueing feature within a traffic class.

drop

Discards the packets in the specified traffic class.

police

Configures traffic policing.

police (EtherSwitch)

Defines a policer for classified traffic.

police (percent)

Configures traffic policing on the basis of a percentage of bandwidth available on an interface.

police (two rates)

Configures traffic policing using two rates, the committed information rate (CIR) and the peak information rate (PIR).

priority

Gives priority to a class of traffic belonging to a policy map.

priority-group

Assigns the specified priority list to an interface,

priority-level

Configures multiple priority queues.

priority-list default

Assigns a priority queue for those packets that do not match any other rule in the priority list.

priority-list interface

Establishes queueing priorities on packets entering from a given interface.

priority-list protocol

Establishes queueing priorities based upon the protocol type.

priority-list queue-limit

Specifies the maximum number of packets that can be waiting in each of the priority queues.

queue-limit

Specifies or modifies the maximum number of packets the queue can hold for a class configured in a policy map.

random-detect

Enables Weighted Random Early Detection (WRED).

random-detect discard-class

Configures the WRED parameters for a discard-class value for a class in a policy map.

random-detect discard-class-based

Configures WRED on the basis of the discard class value of a packet.

random-detect exponential-weighting-constant

Configures the exponential weight factor for the average queue size calculation for the queue reserved for a class.

random-detect precedence

Configure the WRED parameters for a particular IP Precedence for a class policy in a policy map.

service-policy

Specifies the name of a traffic policy used as a matching criterion (for nesting traffic policies [hierarchical traffic policies] within one another).

set atm-clp

Sets the cell loss priority (CLP) bit when a policy map is configured.

set cos

Sets the Layer 2 class of service (CoS) value of an outgoing packet.

set discard-class

Marks a packet with a discard-class value.

set [ip] dscp

Marks a packet by setting the differentiated services code point (DSCP) value in the type of service (ToS) byte.

set fr-de

Changes the discard eligible (DE) bit setting in the address field of a Frame Relay frame to 1 for all traffic leaving an interface.

set mpls experimental

Designates the value to which the MPLS bits are set if the packets match the specified policy map.

set precedence

Sets the precedence value in the packet header.

set qos-group

Sets a QoS group identifier (ID) that can be used later to classify packets.

shape

Shapes traffic to the indicated bit rate according to the algorithm specified.


Benefits of Applying QoS Features Using the MQC

The MQC structure allows you to create the traffic policy (policy map) once and then apply it to as many traffic classes as needed. You can also attach the traffic policies to as many interfaces as needed.

How to Apply QoS Features Using the MQC

To apply QoS features using the MQC, perform the following tasks.

Creating a Traffic Class Using the MQC (required)

Creating a Traffic Policy Using the MQC (required)

Attaching a Traffic Policy to an Interface Using the MQC (required)

Verifying the Traffic Class and Traffic Policy Information (optional)

Creating a Traffic Class Using the MQC

To create a traffic class, use the class-map command to specify the traffic class name. Then use one or more match commands to specify the appropriate match criteria. Packets matching the criteria that you specify are placed in the traffic class.

To create the traffic class, complete the following steps.


Note The match cos command is shown in Step 4. The match cos command is simply an example of one of the match commands that you can use. For information about the other available match commands, see Table 1.


The match-all and match-any Keywords of the class-map Command

One of the commands used when you create a traffic class is the class-map command. The command syntax for the class-map command includes two keywords: match-all and match-any. The match-all and match-any keywords need to be specified only if more than one match criterion is configured in the traffic class. Note the following points about these keywords:

The match-all keyword is used when all of the match criteria in the traffic class must be met in order for a packet to be placed in the specified traffic class.

The match-any keyword is used when only one of the match criterion in the traffic class must be met in order for a packet to be placed in the specified traffic class.

If neither the match-all keyword nor match-any keyword is specified, the traffic class will behave in a manner consistent with match-all keyword.

SUMMARY STEPS

1. enable

2. configure terminal

3. class-map [match-all | match-any] class-map-name

4. match cos cos-number

5. Enter additional match commands, if applicable; otherwise, continue with Step 6.

6. end

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

class-map [match-all | match-any] class-map-name

Example:

Router(config)# class-map match-any class1

Creates a class to be used with a class map and enters class-map configuration mode. The class map is used for matching packets to the specified class.

Enter the class name.

Note The match-all keyword specifies that all match criteria must be met. The match-any keyword specifies that one of the match criterion must be met. Use these keywords only if you will be specifying more than one match command.

Step 4 

match cos cos-number

Example:

Router(config-cmap)# match cos 2

Matches a packet on the basis of a Layer 2 class of service (CoS) number.

Enter the CoS number.

Note The match cos command is simply an example of one of the match commands you can use. For information about the other match commands that are available, see Table 1.

Step 5 

Enter additional match commands, if applicable; otherwise, continue with Step 6.

Step 6 

end

Example:

Router(config-cmap)# end

(Optional) Exits class-map configuration mode and returns to privileged EXEC mode.

Creating a Traffic Policy Using the MQC

To create a traffic policy (or policy map) and enable one or more QoS features, perform the following steps.


Note The bandwidth command is shown in Step 5. The bandwidth command is simply an example of one of the commands that you can use in a policy map. For information about other available commands, see Table 2.


SUMMARY STEPS

1. enable

2. configure terminal

3. policy-map policy-map-name

4. class {class-name | class-default}

5. bandwidth {bandwidth-kbps | percent percent}

6. Enter the commands for any additional QoS feature that you want to enable, if applicable; otherwise, continue with Step 7.

7. end

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

policy-map policy-map-name

Example:

Router(config)# policy-map policy1

Creates or specifies the name of the traffic policy and enters policy-map configuration mode.

Enter the policy map name.

Step 4 

class {class-name | class-default}

Example:

Router(config-pmap)# class class1

Specifies the name of a traffic class and enters policy-map class configuration mode.

Enter the class name created in the "Creating a Traffic Class Using the MQC" section.

Note This step associates the traffic class with the traffic policy.

Step 5 

bandwidth {bandwidth-kbps | percent percent}

Example:

Router(config-pmap-c)# bandwidth 3000

(Optional) Specifies a minimum bandwidth guarantee to a traffic class in periods of congestion. A minimum bandwidth guarantee can be specified in kbps or by a percentage of the overall available bandwidth.

Note The bandwidth command is simply an example of one of the commands that you can use in a policy map to enable a QoS feature. For information about the other commands available, see Table 2.

Step 6 

Enter the commands for any additional QoS feature that you want to enable, if applicable; otherwise, continue with Step 7.

Step 7 

end

Example:

Router(config-pmap-c)# end

(Optional) Exits policy-map class configuration mode and returns to privileged EXEC mode.


Attaching a Traffic Policy to an Interface Using the MQC

The traffic policy (policy map) applies the enabled QoS feature to the traffic class once you attach the policy map to the interface (by using the service-policy command).

Depending on the platform and Cisco IOS XE release that you are using, a traffic policy can be attached to an ATM permanent virtual circuit (PVC) subinterface, to a Frame Relay data-link connection identifier (DLCI), or to another type of interface.

To attach a traffic policy to an interface, perform the following steps.

The input and output Keywords of the service-policy Command

As a general rule, the QoS features configured in the traffic policy can be applied to packets entering the interface or to packets leaving the interface. Therefore, when you use the service-policy command, you need to specify the direction of the traffic policy by using the input or output keyword.

For instance, the service-policy output policy1 command would apply the QoS features in the traffic policy to the interface in the output direction. All packets leaving the interface (output) are evaluated according to the criteria specified in the traffic policy named policy1.


Note For Cisco IOX XE Software Release 2.1 and later, queueing mechanisms are not supported in the input direction. Non-queueing mechanisms (such as traffic policing and traffic marking) are supported in the input direction.


Restrictions

A traffic policy containing a queueing mechanism or feature cannot be attached to a physical interface or subinterface.

SUMMARY STEPS

1. enable

2. configure terminal

3. interface interface-type interface-number

4. service-policy {input | output} policy-map-name

5. end

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

configure terminal

Example:

Router# configure terminal

Enters global configuration mode.

Step 3 

interface interface-type interface-number

Example:

Router(config)# interface serial0/0/1

Configures an interface type and enters interface configuration mode.

Enter the interface type and interface number.

Step 4 

service-policy {input | output} policy-map-name

Example:

Router(config-if)# service-policy input policy1

Attaches a policy map to an interface.

Enter either the input or output keyword and the policy map name.

Step 5 

end

Example:

Router (config-if)# end

(Optional) Exits interface configuration mode and returns to privileged EXEC mode.


Verifying the Traffic Class and Traffic Policy Information

To display and verify the information about a traffic class or traffic policy, perform the following steps.

SUMMARY STEPS

1. enable

2. show class-map

3. show policy-map policy-map-name class class-name

4. show policy-map

5. show policy-map interface interface-type interface-number

6. exit

DETAILED STEPS

 
Command or Action
Purpose

Step 1 

enable

Example:

Router> enable

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2 

show class-map

Example:

Router# show class-map

(Optional) Displays all class maps and their matching criteria.

Step 3 

show policy-map policy-map-name class class-name

Example:

Router# show policy-map policy1 class class1

(Optional) Displays the configuration for the specified class of the specified policy map.

Enter the policy map name and the class name.

Step 4 

show policy-map

Example:

Router# show policy-map

(Optional) Displays the configuration of all classes for all existing policy maps.

Step 5 

show policy-map interface interface-type interface-number

Example:

Router# show policy-map interface serial0/0/1

(Optional) Displays the statistics and the configurations of the input and output policies that are attached to an interface.

Enter the interface type and number.

Step 6 

exit

Example:

Router# exit

(Optional) Exits privileged EXEC mode.


Configuration Examples for Applying QoS Features Using the MQC

This section provides the following Modular QoS CLI configuration examples:

Creating a Traffic Class: Example

Creating a Traffic Policy: Example

Attaching a Traffic Policy to an Interface: Example

match not Command: Example

Default Traffic Class Configuration: Example

class-map match-any and class-map match-all Commands: Example

Traffic Policy as a QoS Policy (Hierarchical Traffic Policies): Example

Creating a Traffic Class: Example

In the following example, two traffic classes are created and their match criteria are defined. For the first traffic class called class1, access control list (ACL) 101 is used as the match criterion. For the second traffic class called class2, ACL 102 is used as the match criterion. Packets are checked against the contents of these ACLs to determine if they belong to the class.

Router(config)# class-map class1
Router(config-cmap)# match access-group 101
Router(config-cmap)# exit

Router(config)# class-map class2
Router(config-cmap)# match access-group 102
Router(config-cmap)# end

Creating a Traffic Policy: Example

In the following example, a traffic policy called policy1 is defined. The traffic policy contains the QoS features to be applied to two classes—class1 and class2. The match criteria for these classes were previously defined (as described in the "Creating a Traffic Class: Example").

For class1, the policy includes a bandwidth allocation request and a maximum packet count limit for the queue reserved for the class. For class2, the policy specifies only a bandwidth allocation request.

Router(config)# policy-map policy1
Router(config-pmap)# class class1
Router(config-pmap-c)# bandwidth 3000
Router(config-pmap-c)# queue-limit 30
Router(config-pmap-c)# exit

Router(config-pmap)# class class2
Router(config-pmap-c)# bandwidth 2000
Router(config-pmap-c)# end

Attaching a Traffic Policy to an Interface: Example

The following example shows how to attach an existing traffic policy to an interface. After you define a traffic policy with the policy-map command, you can attach it to one or more interfaces by using the service-policy command in interface configuration mode. Although you can assign the same traffic policy to multiple interfaces, each interface can have only one traffic policy attached in the input direction and only one traffic policy attached in the output direction.

Router(config)# interface fastethernet1/1/1
Router(config-if)# service-policy output policy1
Router(config-if)# exit

Router(config)# interface fastethernet1/0/0
Router(config-if)# service-policy output policy1
Router(config-if)# end

match not Command: Example

The match not command is used to specify a specific QoS policy value that is not used as a match criterion. When using the match not command, all other values of that QoS policy become successful match criteria.

For instance, if the match not qos-group 4 command is issued in class-map configuration mode, the specified class will accept all QoS group values except 4 as successful match criteria.

In the following traffic class, all protocols except IP are considered successful match criteria:

Router(config)# class-map noip
Router(config-cmap)# match not protocol ip
Router(config-cmap)# end

Default Traffic Class Configuration: Example

Unclassified traffic (traffic that does not meet the match criteria specified in the traffic classes) is treated as belonging to the default traffic class.

If you do not configure a default class, packets are still treated as members of the default class. However, by default, the default class has no QoS features enabled. Therefore, packets belonging to a default class have no QoS functionality. These packets are placed into a first-in, first-out (FIFO) queue managed by tail drop. Tail drop is a means of avoiding congestion that treats all traffic equally and does not differentiate between classes of service. Queues fill during periods of congestion. When the output queue is full and tail drop is in effect, packets are dropped until the congestion is eliminated and the queue is no longer full.

The following example configures a traffic policy for the default class of the traffic policy called policy1. The default class (which is always called class-default) has these characteristics: 10 queues for traffic that does not meet the match criteria of other classes whose policy is defined by the traffic policy policy1, and a maximum of 20 packets per queue before tail drop is enacted to handle additional queued packets.

Router(config)# policy-map policy1
Router(config-pmap)# class class-default
Router(config-pmap-c)# fair-queue
Router(config-pmap-c)# queue-limit 20

class-map match-any and class-map match-all Commands: Example

This example illustrates the difference between the class-map match-any command and the class-map match-all command. The match-any and match-all keywords determine how packets are evaluated when multiple match criteria exist. Packets must either meet all of the match criteria (match-all) or meet one of the match criterion (match-any) to be considered a member of the traffic class.

The following example shows a traffic class configured with the class-map match-all command:

Router(config)# class-map match-all cisco1
Router(config-cmap)# match protocol ip
Router(config-cmap)# match qos-group 4
Router(config-cmap)# match access-group 101

If a packet arrives on a router with the traffic class called cisco1 configured on the interface, the packet is evaluated to determine if it matches the IP protocol, QoS group 4, and access group 101. If all three of these match criteria are met, the packet is classified as a member of the traffic class cisco1.

The following example shows a traffic class that is configured with the class-map match-any command:

Router(config)# class-map match-any cisco2
Router(config-cmap)# match protocol ip
Router(config-cmap)# match qos-group 4
Router(config-cmap)# match access-group 101

In the traffic class called cisco2, the match criteria are evaluated consecutively until a successful match criterion is located. The packet is first evaluated to the determine whether the IP protocol can be used as a match criterion. If the IP protocol can be used as a match criterion, the packet is matched to traffic class cisco2. If the IP protocol is not a successful match criterion, then QoS group 4 is evaluated as a match criterion. Each criterion is evaluated to see if the packet matches that criterion. Once a successful match occurs, the packet is classified as a member of traffic class cisco2. If the packet matches none of the specified criteria, the packet is classified as a member of the default traffic class (class default-class).

Note that the class-map match-all command requires that all of the match criteria be met in order for the packet to be considered a member of the specified traffic class (a logical AND operator). In the first example, protocol IP AND QoS group 4 AND access group 101 must be successful match criteria. However, only one match criterion must be met in order for the packet in the class-map match-any command to be classified as a member of the traffic class (a logical OR operator). In the second example, protocol IP OR QoS group 4 OR access group 101 must be successful match criterion.

Traffic Policy as a QoS Policy (Hierarchical Traffic Policies): Example

A traffic policy can be included in a QoS policy when the service-policy command is used in policy-map class configuration mode. A traffic policy that contains a traffic policy is called a hierarchical traffic policy.

A hierarchical traffic policy contains a child policy and a parent policy. The child policy is the previously defined traffic policy that is being associated with the new traffic policy through the use of the service-policy command. The new traffic policy using the preexisting traffic policy is the parent policy. In the example in this section, the traffic policy called child is the child policy and traffic policy called parent is the parent policy.

Hierarchical traffic policies can be attached to subinterfaces and ATM PVCs. When hierarchical traffic policies are used, a single traffic policy (with a child and a parent policy) can be used to shape and prioritize PVC traffic. In the following example, the child policy is responsible for prioritizing traffic and the parent policy is responsible for shaping traffic. In this configuration, the parent policy allows packets to be sent from the interface, and the child policy determines the order in which the packets are sent.

Router(config)# policy-map child
Router(config-pmap)# class voice
Router(config-pmap-c)# priority 50

Router(config)# policy-map parent
Router(config-pmap)# class class-default
Router(config-pmap-c)# shape average 10000000
Router(config-pmap-c)# service-policy child

The value used with the shape command is provisioned from the committed information rate (CIR) value from the service provider.

Additional References

The following sections provide references related to the applying QoS features using the MQC.

Related Documents

Related Topic
Document Title

QoS commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples

Cisco IOS Quality of Service Solutions Command Reference

Packet classification

"Classifying Network Traffic" module


Standards

Standard
Title

No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.


MIBs

MIB
MIBs Link

No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature.

To locate and download MIBs for selected platforms, Cisco IOS XE Software releases, and feature sets, use Cisco MIB Locator found at the following URL:

http://www.cisco.com/go/mibs


RFCs

RFC
Title

No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.


Technical Assistance

Description
Link

The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.

To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.

Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.

http://www.cisco.com/techsupport


Feature Information for Applying QoS Features Using the MQC

Table 3 lists the release history for this feature.

Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS XE Software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.


Note Table 3 lists only the Cisco IOS XE Software release that introduced support for a given feature in a given Cisco IOS XE Software release train. Unless noted otherwise, subsequent releases of that Cisco IOS XE Software release train also support that feature.


Table 3 Feature Information for Applying QoS Features Using the MQC

Feature Name
Releases
Feature Information

Modular QoS CLI (MQC)

Cisco IOS XE Release 2.1

This module contains the concepts about applying QoS features using the Modular Quality of Service (QoS) Command-Line Interface (CLI) (MQC) and the tasks for configuring the MQC. The MQC allows you to define a traffic class, create a traffic policy (policy map), and attach the traffic policy to an interface. The traffic policy contains the QoS feature that will be applied to the traffic class.

This feature was introduced on Cisco ASR 1000 Series Routers.

This feature was enhanced to provide infrastructure support for additional features included with Cisco IOS XE Release 2.3.

Priority Queueing

Cisco IOS XE Release 2.1

This feature was introduced on Cisco ASR 1000 Series Routers.

The following section provides information about this feature:

Information About Applying QoS Features Using the MQC.

How to Apply QoS Features Using the MQC

Weighted Random Early Detection

Cisco IOS XE Release 2.1

This feature was introduced on Cisco ASR 1000 Series Routers.

The following section provides information about this feature:

Information About Applying QoS Features Using the MQC

How to Apply QoS Features Using the MQC

Class-Based Weighted Fair Queueing (CBWFQ)

Cisco IOS XE Release 2.1

This feature was introduced on Cisco ASR 1000 Series Routers.

The following section provides information about this feature:

Information About Applying QoS Features Using the MQC

How to Apply QoS Features Using the MQC