Configuring Color-Aware Policing - Cisco Nexus 7000 Series Configuration Manual

Nx-os quality of service configuration guide
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring Color-Aware Policing

Step 4
Step 5
Step 6
Step 7
Step 8
Example
This example shows how to display the policy1 policy-map configuration:
switch# show policy-map policy1
Configuring Color-Aware Policing
Color-aware policing implies that the QoS DSCP field in a class of traffic has been previously marked with
values that you can use in a policer. This feature allows you to mark traffic at one node in a network and then
take action based on this marking at a subsequent node.
For information on the police command, see the "Configuring 1-Rate and 2-Rate, 2-Color and 3-Color Policing"
section.
You can use one or more of the four police command class maps conform-color or exceed-color to perform
color-aware policing. These keywords require a class-map name that is used to classify packets. Based on the
match criteria that you specify in the class maps, the traffic is classified into one of these two classes or
class-default if there is no match. The policer then takes the following action:
• Packets that belong to the conform-color class are policed with the cir and pir arguments to the police
Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide
72
Command or Action
switch(config-pmap-c-qos)# police [cir]
{committed-rate [data-rate] | percent
cir-link-percent} [bc committed-burst-rate
[link-speed]] [pir] {peak-rate [data-rate] |
percent cir-link-percent} [be peak-burst-rate
[link-speed]] {conform {transmit |
set-prec-transmit | set-dscp-transmit |
set-cos-transmit | set-qos-transmit |
set-discard-class-transmit} [exceed {drop |
set dscp dscp table {cir-markdown-map}}
[violate {drop | set dscp dscp table
{pir-markdown-map}}]]}
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)# exit
(Optional) switch(config)# show policy-map
[type qos] [policy-map-name | qos-dynamic]
(Optional) switch(config)# copy
running-config startup-config
command.
Purpose
Polices cir in bits or as a percentage of the link
rate. The conform action is taken if the data
rate is ≤ cir. If be and pir are not specified, all
other traffic takes the violate action. If be or
violate are specified, the exceed action is taken
if the data rate ≤ pir, and the violate action is
taken otherwise. The actions, data rates, and
link speeds are described in the tables above.
Note
You must specify identical values
for cir and pir.
Exits policy-map class configuration mode and
enters policy-map mode.
Exits policy-map mode and enters global
configuration mode.
Displays information about all configured
policy maps or a selected policy map of type
qos.
Saves the running configuration to the startup
configuration.
Configuring Policing

Advertisement

Table of Contents
loading

Table of Contents