Reference Guide
2 Enter a class name to apply the shape rate in POLICY-MAP mode.
class class-map-name
3 Congure trac policing on incoming trac in POLICY-MAP-CLASS-MAP mode.
police {cir committed-rate [bc committed-burst-size]} {pir peak-rate [be peak-burst-size]}
• cir committed-rate—Enter a committed rate value in kilobits per second (kbps) (0 to 40000000).
• bc committed-burst-size—(Optional) Enter a committed burst size in packets for control plane and kbps (16 to 200000,
default 200).
• pir peak-rate—Enter a peak-rate value in kbps (0 to 40000000).
• be peak-burst-size—(Optional) Enter a peak burst size in kbps (16 to 200000, default 200).
4 (Optional) Congure trac policing for a specic queue in POLICY-MAP-CLASS-MAP mode. Queue number range is from 0 to 7 for
qos policy map and 0 to 11 for control-plane policy map.
set qos-group queue-number
Congure policy-based rate policy
OS10(config)# policy-map type qos galaxy
OS10(conf-pmap-qos)# class bigbang
OS10(conf-pmap-c-qos)# police cir 5 bc 30 pir 20 be 40
Congure rate policing on specic queue
OS10(config)# policy-map bronze
OS10(conf-pmap-qos)# class silver
OS10(conf-pmap-c-qos)# set qos-group 7
OS10(conf-pmap-c-qos)# police cir 5 pir 30
View policy-map
OS10(conf-pmap-c-qos)# do show policy-map
Service-policy (qos) input: galaxy
Class-map (qos): bigbang
police cir 5 bc 30 pir 20 be 40
Service-policy (qos) input: bronze
Class-map (qos): silver
police cir 5 bc 100 pir 30 be 100
Control-plane policing
Control-plane policing (CoPP) increases security on the system by protecting the route processor from unnecessary trac and giving
priority to important control plane and management trac. CoPP uses a dedicated control plane conguration through the QoS CLIs to
provide ltering and rate-limiting capabilities for the control plane packets.
If the rate of control packets towards the CPU is higher than it can handle, CoPP provides a method to selectively drops some of the
control trac so the CPU can process high-priority control trac. You can use CoPP to rate-limit trac through each CPU port queue of
the NPU.
CoPP applies policy actions on all control-plane trac. The control-plane class map does not use any match criteria. To enforce rate-limiting
or rate policing on control-plane trac, create policy maps. You can use the control-plane command to attach the CoPP service
policies directly to the control-plane.
The default rate limits apply to 12 CPU queues and the protocols mapped to each CPU queue. The control packet type to CPU ports
control queue assignment is xed. The only way you can limit the trac towards the CPU is choose a low priority queue, and apply rate-
limits on that queue to nd a high rate of control trac owing through that queue.
See show control-plane info for specic information on protocols and rate limits of CPU queues.
560
Quality of service