308 Chapter 8: QoS Support on the Catalyst 6500
Example 8-31 Configuring a Single-Rate Aggregate Policer in Hybrid Mode with a PFC2 (Continued)
The first step is to define the policer with the appropriate parameters. Although 1 Mbps is
the configured rate, the value is rounded down to the closest 32-kbps increment to
conform to the hardware granularity for this particular range. Next, to account for the
largest potential frame size (1518 bytes), the value 13000 is chosen for the burst. The
policer is then applied to the appropriate ACL. When the ACL is applied to the desired
port, it is necessary to verify configuration and performance.
hybrid (enable) show qos info config 5/10
QoS setting in NVRAM:
QoS is enabled
Policy Source of port 5/10: COPS
Tx port type of port 5/10 : 2q2t
Rx port type of port 5/10 : 1q4t
Interface type: port-based
ACL attached: HTTP-traffic
The qos trust type is set to untrusted.
Default CoS = 1
(text omitted)
Based on the show qos info output for port 5/10, it is confirmed the interface is set for
port-based QoS. Also the ACL HTTP traffic has been applied. Further, note that the port
has been left at the default untrusted state. As discussed in the previous sections, frames
arriving on port 5/10 are marked with the port default CoS. Given this scenario, however,
this value is overwritten. Remember, the internal DSCP value is derived from the default
ACL, which equates to DSCP 0. Fortunately, because the port is untrusted, even if the default
ACL DSCP value was modified, all traffic matching the ACL configured in the example is set
to DSCP 0.
hybrid (enable) show qos policer config aggregate HTTP-police
QoS aggregate policers:
Aggregate name Avg. rate (kbps) Burst size (kb) Normal action
------------------------------- ---------------- --------------- -------------
HTTP-police 1000 13 policed-dscp
Excess rate (kbps) Excess burst size (kb) Excess action
------------------ ---------------------- -------------
1000 13 drop
ACL attached
------------------------------------
HTTP-traffic
show qos policer verifies the configuration for the defined policer HTTP-police. Notice
that because the single-rate policer is configured on a Catalyst 6500 equipped with a PFC2,
excess rate and burst are visible fields. Because the excess rate and burst are equal to the
normal rate and burst, however, the excess policing feature is not invoked.
hybrid (enable) show qos statistics aggregate-policer HTTP-police
QoS aggregate-policer statistics:
Aggregate policer Allowed packet Packets exceed Packets exceed
count normal rate excess rate
------------------------------- -------------- -------------- --------------
HTTP-police 42768 208811 208811
Finally, reviewing show qos statistics for the aggregate policer reveals the desired perfor-
mance. In total, 251,579 packets were forwarded to the port. This is confirmed by adding
the total number of packets exceeding the excess rate (208,811) to the total number of