Chapter 44
Configuring Quality of Service
To configure class-level queue-limit in a service policy, perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# policy-map
policy-map-name
Step 3
Switch(config-pmap)# class class-name
Step 4
Switch(config-pmap-class)# shape
average {cir-bps [optional_postfix] |
percent percent}
Step 5
Switch(config-pmap-class)# queue-limit
number-of-packets
Step 6
Switch(config-pmap-class)# exit
Step 7
Switch(config-pmap)# exit
Step 8
Switch(config)# interface interface-id
Step 9
Switch(config-interface)#
service-policy output policy-map-name
Step 10
Switch(config-interface)# end
Step 11
Switch# show policy-map
[policy-map-name [class
class-map-name]]
or
Switch# show policy-map interface
interface-id
Step 12
Switch# copy running-config
startup-config
To remove the explicit queue size use the no queue-limit command under the class in a policy-map.
This example shows how to configure a class-based queue with an explicit queue-limit command. It
limits traffic class class1 to a queue of size 4048:
Switch# configure terminal
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# shape average 256000
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Purpose
Enters global configuration mode.
Creates a policy map by entering the policy-map name, and enter
policy-map configuration mode.
By default, no policy maps are defined.
Specifies the name of the class whose traffic policy you want to
create or change, and enter policy-map class configuration mode.
By default, no traffic classes are defined.
Enables average-rate traffic shaping.
You can specify the shaping rate in absolute value or as a percentage:
For cir-bps [optional_postfix], specify the shaping rate in bps.
•
Range is 32000 to 10000000000 bps. Supply an optional postfix
(K, M, G).
For percent, specify the percentage of link rate to shape the class
•
of traffic. The range is 1 to 100.
By default, average-rate traffic shaping is disabled.
Provides an explicit queue size in packets. The size must be a
multiple of 8 and ranging from 16 to 8184.
Returns to policy-map configuration mode.
Returns to global configuration mode.
Specifies a physical port and enter interface configuration mode.
Specifies the policy-map name, and apply it a physical interface.
Returns to privileged EXEC mode.
Verifies your entries.
(Optional) Saves your entries in the configuration file.
Configuring VSS QoS
44-33