Cisco 10000 Series Configuration Manual page 631

Quality of service configuration guide
Hide thumbs Also See for 10000 Series:
Table of Contents

Advertisement

Chapter 17
Configuring Dynamic Subscriber Services
The following example shows how to configure a hierarchical QoS policy. In the example, the
child-policy configures QoS features for two traffic classes: Premium and Silver. Premium traffic has
priority and is policed at 40 percent. The router sets the IP precedence of Premium traffic to precedence
level 3. Silver traffic is policed at 80000 bps and IP precedence level 3 is set. The child-policy is applied
to the Parent policy class-default class, which shapes traffic to 200,000 Kbps.
Router(config)# policy-map child-policy
Router(config-pmap)# class Premium
Router(config-pmap-c)# priority
Router(config-pmap-c)# police percent 40
Router(config-pmap-c)# set ip precedence 3
Router(config-pmap-c)# class Silver
Router(config-pmap-c)# police 80000 10000 conform-action transmit exceed-action drop
Router(config-pmap-c)# set ip precedence 5
Router(config-pmap-c)# exit
Router(config-pmap)# policy-map Parent
Router(config-pmap)# class class-default
Router(config-pmap-c)# shape 200000
Router(config-pmap-c)# service-policy output child-policy
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)#
Associating the Hierarchical Policy Map with a Virtual Template
A virtual template is a logical interface whose configuration can specify generic configuration
information for a specific purpose, user-specific configuration information, and router-dependent
information. You configure a virtual template on an interface and apply QoS policy maps to the virtual
template. The virtual template inherits the QoS features specified in the policy map. When the router
establishes sessions on an interface, the router applies the QoS features specified in the virtual template
configuration to the virtual access interfaces (VAIs) created for the sessions, including the QoS features
specified in the policy map attached to the virtual template.
To associate the hierarchical policy map with a virtual template, enter the following commands
beginning in global configuration mode:
Command
Step 1
Router(config)# interface
virtual-template template-number
Step 2
Router(config-if)# service-policy {input
| output} policy-map-name
Step 3
Router(config-if)# exit
OL-7433-09
Purpose
Creates a virtual template and enters interface configuration
mode.
template-number is the number you assign to the virtual template
interface to identify it. Valid values are from 1 to 200.
You can configure up to 200 virtual template interfaces on
Note
the router.
Attaches the policy map you specify to the virtual template
interface in the inbound or outbound direction that you specify.
input specifies to apply the policy map to inbound traffic.
output specifies to apply the policy map to outbound traffic.
policy-map-name is the name of a previously configured policy
map.
Exits interface configuration mode.
Cisco 10000 Series Router Quality of Service Configuration Guide
Queuing PPP Sessions on ATM VCs
17-57

Advertisement

Table of Contents
loading

Table of Contents