Examples
This section provides sample output from typical
showpolicy-map commands. Depending upon the interface or platform in use and the options enabled (for example, Weighted Fair Queueing [WFQ]),
the output you see may vary slightly from the ones shown below.
Weighted Fair Queueing: Example
The following example displays the contents of the service policy map called po1. In this example, WFQ is enabled.
Router# show policy-map po1
Policy Map po1
Weighted Fair Queueing
Class class1
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class2
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class3
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class4
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class5
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class6
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class7
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class8
Bandwidth 937 (kbps) Max thresh 64 (packets)
The following example displays the contents of all policy maps on the router. Again, WFQ is enabled.
Router# show policy-map
Policy Map poH1
Weighted Fair Queueing
Class class1
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class2
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class3
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class4
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class5
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class6
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class7
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class8
Bandwidth 937 (kbps) Max thresh 64 (packets)
Policy Map policy2
Weighted Fair Queueing
Class class1
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class2
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class3
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class4
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class5
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class6
Bandwidth 300 (kbps) Max thresh 64 (packets)
The table below describes the significant fields shown in the display.
Table 12. show policy-map Field Descriptions--Configured for WFQ
Field
|
Description
|
Policy Map
|
Policy map name.
|
Class
|
Class name.
|
Bandwidth
|
Amount of bandwidth in kbps allocated to class.
|
Max thresh
|
Maximum threshold in number of packets.
|
Frame Relay Voice-Adaptive Traffic-Shaping: Example
The following sample output for the
show-policymap command indicates that Frame Relay voice-adaptive traffic-shaping is configured in the class-default class in the policy
map MQC-SHAPE-LLQ1 and that the deactivation timer is set to 30 seconds.
Router# show policy-map
Policy Map VSD1
Class VOICE1
Strict Priority
Bandwidth 10 (kbps) Burst 250 (Bytes)
Class SIGNALS1
Bandwidth 8 (kbps) Max Threshold 64 (packets)
Class DATA1
Bandwidth 15 (kbps) Max Threshold 64 (packets)
Policy Map MQC-SHAPE-LLQ1
Class class-default
Traffic Shaping
Average Rate Traffic Shaping
CIR 63000 (bps) Max. Buffers Limit 1000 (Packets)
Adapt to 8000 (bps)
Voice Adapt Deactivation Timer 30 Sec
service-policy VSD1
 Note |
In Cisco IOS Release 12.4(20)T, if an interface configured with a policy map is full of heavy traffic, the implicit policer
allows the traffic as defined in the bandwidth statement of each traffic class.
|
The table below describes the significant fields shown in the display.
Table 13. show policy-map Field Descriptions--Configured for Frame Relay Voice-Adaptive Traffic-Shaping
Field
|
Description
|
Strict Priority
|
Indicates the queueing priority assigned to the traffic in this class.
|
Burst
|
Specifies the traffic burst size in bytes.
|
Traffic Shaping
|
Indicates that Traffic Shaping is enabled.
|
Average Rate Traffic Shaping
|
Indicates the type of Traffic Shaping enabled. Choices are Peak Rate Traffic Shaping or Average Rate Traffic Shaping.
|
CIR
|
Committed Information Rate (CIR) in bps.
|
Max. Buffers Limit
|
Maximum memory buffer size in packets.
|
Adapt to
|
Traffic rate when shaping is active.
|
Voice Adapt Deactivation Timer
|
Indicates that Frame Relay voice-adaptive traffic-shaping is configured, and that the deactivation timer is set to 30 seconds.
|
service-policy
|
Name of the service policy configured in the policy map “MQC-SHAPE-LLQ1”.
|
Traffic Policing: Example
The following is sample output from the
showpolicy-map command. This sample output displays the contents of a policy map called policy1. In policy 1, traffic policing on the basis
of a committed information rate (CIR) of 20 percent has been configured, and the bc and be have been specified in milliseconds.
As part of the traffic policing configuration, optional conform, exceed, and violate actions have been specified.
Router# show policy-map policy1
Policy Map policy1
Class class1
police cir percent 20 bc 300 ms pir percent 40 be 400 ms
conform-action transmit
exceed-action drop
violate-action drop
The table below describes the significant fields shown in the display.
Table 14. show policy-map Field Descriptions--Configured for Traffic Policing
Field
|
Description
|
Policy Map
|
Name of policy map displayed.
|
Class
|
Name of the class configured in the policy map displayed.
|
police
|
Indicates that traffic policing on the basis of specified percentage of bandwidth has been enabled. The committed burst (Bc)
and excess burst (Be) sizes have been specified in milliseconds (ms), and optional conform, exceed, and violate actions have
been specified.
|
Two-Rate Traffic Policing: Example
The following is sample output from the
showpolicy-map command when two-rate traffic policing has been configured. As shown below, two-rate traffic policing has been configured
for a class called police. In turn, the class called police has been configured in a policy map called policy1. Two-rate traffic
policing has been configured to limit traffic to an average committed rate of 500 kbps and a peak rate of 1 Mbps.
Router(config)# class-map police
Router(config-cmap)# match access-group 101
Router(config-cmap)# policy-map policy1
Router(config-pmap)# class police
Router(config-pmap-c)# police cir 500000 bc 10000 pir 1000000 be 10000 conform-action
transmit exceed-action set-prec-transmit 2 violate-action drop
Router(config-pmap-c)# interface serial3/0
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)# interface serial3/0
Router(config-if)# service-policy output policy1
Router(config-if)# end
The following sample output shows the contents of the policy map called policy1 :
Router# show policy-map policy1
Policy Map policy1
Class police
police cir 500000 conform-burst 10000 pir 1000000 peak-burst 10000 conform-action
transmit exceed-action set-prec-transmit 2 violate-action drop
Traffic marked as conforming to the average committed rate (500 kbps) will be sent as is. Traffic marked as exceeding 500
kbps, but not exceeding 1 Mbps, will be marked with IP Precedence 2 and then sent. All traffic exceeding 1 Mbps will be dropped.
The burst parameters are set to 10000 bytes.
The table below describes the significant fields shown in the display.
Table 15. show policy-map Field Descriptions--Configured for Two-Rate Traffic Policing
Field
|
Description
|
police
|
Indicates that the
police command has been configured to enable traffic policing. Also, displays the specified CIR, conform burst size (bc), peak information
rate (PIR), and peak burst (BE) size used for marking packets.
|
conform-action
|
Displays the action to be taken on packets conforming to a specified rate.
|
exceed-action
|
Displays the action to be taken on packets exceeding a specified rate.
|
violate-action
|
Displays the action to be taken on packets violating a specified rate.
|
Multiple Traffic Policing Actions: Example
The following is sample output from the
showpolicy-map command when the Policer Enhancement--Multiple Actions feature has been configured. The following sample output from the
showpolicy-map command displays the configuration for a service policy called police. In this service policy, traffic policing has been configured
to allow multiple actions for packets marked as conforming to, exceeding, or violating the CIR or the PIR shown in the example.
Router# show policy-map police
Policy Map police
Class class-default
police cir 1000000 bc 31250 pir 2000000 be 31250
conform-action transmit
exceed-action set-prec-transmit 4
exceed-action set-frde-transmit
violate-action set-prec-transmit 2
violate-action set-frde-transmit
Packets conforming to the specified CIR (1000000 bps) are marked as conforming packets. These are transmitted unaltered.
Packets exceeding the specified CIR (but not the specified PIR, 2000000 bps) are marked as exceeding packets. For these packets,
the IP Precedence level is set to 4, the discard eligibility (DE) bit is set to 1, and the packet is transmitted.
Packets exceeding the specified PIR are marked as violating packets. For these packets, the IP Precedence level is set to
2, the DE bit is set to 1, and the packet is transmitted.
 Note |
Actions are specified by using the
action argument of the
police command. For more information about the available actions, see the
police command reference page.
|
The table below describes the significant fields shown in the display.
Table 16. show policy-map Field Descriptions--Configured for Multiple Traffic Policing Actions
Field
|
Description
|
police
|
Indicates that the
police command has been configured to enable traffic policing. Also, displays the specified CIR, BC, PIR, and BE used for marking
packets.
|
conform-action
|
Displays the one or more actions to be taken on packets conforming to a specified rate.
|
exceed-action
|
Displays the one or more actions to be taken on packets exceeding a specified rate.
|
violate-action
|
Displays the one or more actions to be taken on packets violating a specified rate.
|
Explicit Congestion Notification: Example
The following is sample output from the
showpolicy-map command when the WRED--Explicit Congestion Notification (ECN) feature has been configured. The words “explicit congestion
notification” (along with the ECN marking information) included in the output indicate that ECN has been enabled.
Router# show policy-map
Policy Map pol1
Class class-default
Weighted Fair Queueing
Bandwidth 70 (%)
exponential weight 9
explicit congestion notification
class min-threshold max-threshold mark-probability
----------------------------------------------------------
----------------------------------------------------------
0 - - 1/10
1 - - 1/10
2 - - 1/10
3 - - 1/10
4 - - 1/10
5 - - 1/10
6 - - 1/10
7 - - 1/10
rsvp - - 1/10
The table below describes the significant fields shown in the display.
Table 17. show policy-map Field Descriptions--Configured for ECN
Field
|
Description
|
explicit congestion notification
|
Indication that Explicit Congestion Notification is enabled.
|
class
|
IP precedence value.
|
min-threshold
|
Minimum threshold. Minimum WRED threshold in number of packets.
|
max-threshold
|
Maximum threshold. Maximum WRED threshold in number of packets.
|
mark-probability
|
Fraction of packets dropped when the average queue depth is at the maximum threshold.
|
Modular QoS CLI (MQC) Unconditional Packet Discard: Example
The following example displays the contents of the policy map called policy1. All the packets belonging to the class called
c1 are discarded.
Router# show policy-map
policy1
Policy Map policy1
Class c1
drop
The table below describes the significant fields shown in the display.
Table 18. show policy-map Field Descriptions--Configured for MQC Unconditional Packet Discard
Field
|
Description
|
Policy Map
|
Name of the policy map being displayed.
|
Class
|
Name of the class in the policy map being displayed.
|
drop
|
Indicates that the packet discarding action for all the packets belonging to the specified class has been configured.
|
Percentage-Based Policing and Shaping: Example
The following example displays the contents of two service policy maps--one called policy1 and one called policy2. In policy1,
traffic policing based on a CIR of 50 percent has been configured. In policy 2, traffic shaping based on an average rate of
35 percent has been configured.
Router# show policy-map policy1
Policy Map policy1
class class1
police cir percent 50
Router# show policy-map policy2
Policy Map policy2
class class2
shape average percent 35
The following example displays the contents of the service policy map called po1 :
Router# show policy-map po1
Policy Map po1
Weighted Fair Queueing
Class class1
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class2
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class3
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class4
Bandwidth 937 (kbps) Max thresh 64 (packets)
The following example displays the contents of all policy maps on the router:
Router# show policy-map
Policy Map poH1
Weighted Fair Queueing
Class class1
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class2
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class3
Bandwidth 937 (kbps) Max thresh 64 (packets)
Class class4
Bandwidth 937 (kbps) Max thresh 64 (packets)
Policy Map policy2
Weighted Fair Queueing
Class class1
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class2
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class3
Bandwidth 300 (kbps) Max thresh 64 (packets)
Class class4
Bandwidth 300 (kbps) Max thresh 64 (packets)
The table below describes the significant fields shown in the display.
Table 19. show policy-map Field Descriptions--Configured for Percentage-Based Policing and Shaping
Field
|
Description
|
Policy Map
|
Name of policy map displayed.
|
Weighted Fair Queueing
|
Indicates that weighted fair queueing (WFQ) has been enabled.
|
Class
|
Name of class configured in policy map displayed.
|
Bandwidth
|
Bandwidth, in kbps, configured for this class.
|
Max threshold
|
Maximum threshold. Maximum WRED threshold in number of packets.
|
Enhanced Packet Marking: Example
The following sample output from the
showpolicy-map command displays the configuration for policy maps called policy1 and policy2.
In policy1 , a table map called table-map-cos1 has been configured to determine the precedence based on the class of service
(CoS) value. Policy map policy 1 converts and propagates the packet markings defined in the table map called table-map-cos1.
The following sample output from the
showpolicy-map command displays the configuration for service polices called policy1 and policy2 . In policy1 , a table map called table-map1
has been configured to determine the precedence according to the CoS value. In policy2 , a table map called table-map2 has
been configured to determine the CoS value according to the precedence value.
Router# show policy-map policy1
Policy Map policy1
Class class-default
set precedence cos table table-map1
Router# show policy-map policy2
Policy Map policy2
Class class-default
set cos precedence table table-map2
The table below describes the fields shown in the display.
Table 20. show policy-map Field Descriptions--Configured for Enhanced Packet Marking
Field
|
Description
|
Policy Map
|
Name of the policy map being displayed.
|
Class
|
Name of the class in the policy map being displayed.
|
set precedence cos table table-map1
or
set cos precedence table table-map2
|
Name of the set command used to set the specified value.
For instance, set precedence cos table-map1 indicates that a table map called table-map1 has been configured to set the precedence
value on the basis of the values defined in the table map.
Alternately, set cos table table-map2 indicates that a table map called table-map2 has been configured to set the CoS value
on the basis of the values defined in the table map.
|
Bandwidth-Remaining Ratio: Example
The following sample output for the show policy-map command indicates that the class-default class of the policy map named
vlan10_policy has a bandwidth-remaining ratio of 10. When congestion occurs, the scheduler allocates class-default traffic
10 times the unused bandwidth allocated in relation to other subinterfaces.
Router# show policy-map vlan10_policy
Policy Map vlan10_policy
Class class-default
Average Rate Traffic Shaping
cir 1000000 (bps)
bandwidth remaining ratio 10
service-policy child_policy
The table below describes the fields shown in the display.
Table 21. show policy-map Field Descriptions--Configured for Bandwidth-Remaining Ratio
Field
|
Description
|
Policy Map
|
Name of the policy map being displayed.
|
Class
|
Name of the class in the policy map being displayed.
|
Average Rate Traffic Shaping
|
Indicates that Average Rate Traffic Shaping is configured.
|
cir
|
Committed information rate (CIR) used to shape traffic.
|
bandwidth remaining ratio
|
Indicates the ratio used to allocate excess bandwidth.
|
ATM Overhead Accounting: Example
The following sample output for the show policy-map command indicates that ATM overhead accounting is enabled for the class-default
class. The BRAS-DSLAM encapsulation is dot1q and the subscriber encapsulation is snap-rbe for the AAL5 service.
Policy Map unit-test
Class class-default
Average Rate Traffic Shaping
cir 10% account dot1q aal5 snap-rbe
The table below describes the significant fields shown in the display.
Table 22. show policy-map Field Descriptions--Configured for ATM Overhead Accounting
Field
|
Description
|
Average Rate
|
Committed burst (Bc) is the maximum number of bits sent out in each interval.
|
cir 10%
|
Committed information rate (CIR) is 10 percent of the available interface bandwidth.
|
dot1q
|
BRAS-DSLAM encapsulation is 802.1Q VLAN.
|
aal5
|
DSLAM-CPE encapsulation type is based on the ATM Adaptation Layer 5 service. AAL5 supports connection-oriented variable bit
rate (VBR) services.
|
snap-rbe
|
Subscriber encapsulation type.
|
Tunnel-Marking: Example
In this sample output of theshowpolicy-map command, the character string “ip precedence tunnel 4” indicates that tunnel marking (either L2TPv3 or GRE) has been configured
to set the IP precedence value to 4 in the header of a tunneled packet.
 Note |
In Cisco IOS Release 12.4(15)T2, GRE-tunnel marking is supported on the RPM-XF platform
only .
|
Router# show policy-map
Policy Map TUNNEL_MARKING
Class MATCH_FRDE
set ip precedence tunnel 4
The table below describes the fields shown in the display.
Table 23. show policy-map Field Descriptions--Configured for Tunnel Marking
Field
|
Description
|
Policy Map
|
Name of the policy map being displayed.
|
Class
|
Name of the class in the policy map being displayed.
|
set ip precedence tunnel
|
Indicates that tunnel marking has been configured.
|
HQF: Example 1
The following sample output from the
showpolicy-map command displays the configuration for a policy map called test1:
Router# show policy-map test1
Policy Map test1
Class class-default
Average Rate Traffic Shaping
cir 1536000 (bps)
service-policy test2
The table below describes the fields shown in the display.
Table 24. show policy-map Field Descriptions--Configured for HQF
Field
|
Description
|
Policy Map
|
Name of the policy map being displayed.
|
Class
|
Name of the class in the policy map being displayed.
|
Average Rate Traffic Shaping
|
Indicates that Average Rate Traffic Shaping is configured.
|
cir
|
Committed information rate (CIR) in bps.
|
service-policy
|
Name of the service policy configured in policy map “test1”.
|
HQF: Example 2
The following sample output from the
showpolicy-map command displays the configuration for a policy map called test2:
Router# show policy-map test2
Policy Map test2
Class RT
priority 20 (%)
Class BH
bandwidth 40 (%)
queue-limit 128 packets
Class BL
bandwidth 35 (%)
packet-based wred, exponential weight 9
dscp min-threshold max-threshold mark-probablity
----------------------------------------------------------
af21 (18) 100 400 1/10
default (0) - - 1/10
The table below describes the fields shown in the display.
Table 25. show policy-map Field Descriptions--Configured for HQF
Field
|
Description
|
Policy Map
|
Name of the policy map being displayed.
|
Class
|
Name of the class in the policy map being displayed.
|
Average Rate Traffic Shaping
|
Indicates that Average Rate Traffic Shaping is configured.
|
priority
|
Indicates the queueing priority percentage assigned to traffic in this class.
|
bandwidth
|
Indicates the bandwidth percentage allocated to traffic in this class.
|
queue-limit
|
Indicates the queue limit in packets for this traffic class.
|
packet-based wred, exponential weight
|
Indicates that random detect is being applied and the units used are packets. Exponential weight is a factor for calculating
the average queue size used with WRED.
|
dscp
|
Differentiated services code point (DSCP). Values can be the following:
-
0 to 63--Numerical DSCP values. The default value is 0.
-
af1 to af43--Assured forwarding (AF) DSCP values.
-
cs1 to cs7--Type of service (ToS) precedence values.
-
default--Default DSCP value.
-
ef--Expedited forwarding (EF) DSCP values.
|
min-threshold
|
Minimum threshold. Minimum WRED threshold in number of packets.
|
max-threshold
|
Maximum threshold. Maximum WRED threshold in number of packets.
|
mark-probability
|
Fraction of packets dropped when the average queue depth is at the maximum threshold.
|