Control Plane Policing — CoPP
Cheat sheet · https://pcornel.dk/topic.php?topic=765
Answer
Control Plane Policing (CoPP) applies a QoS policy to traffic destined to the device's own CPU, so floods of ICMP, ARP, SNMP or routing packets cannot overload the control plane.
Remember
Classify control-plane traffic into classes (routing, management, monitoring, default), police each with a rate, and apply with service-policy input <policy> under control-plane. Many Catalyst switches have a built-in system CoPP policy. Too low rates drop routing protocol packets — baseline before tightening.
First checks
show policy-map control-plane— classes, rates, conformed and exceeded packets.show running-config | section control-plane— policy applied.show platform hardware qfp active feature qos interface control-plane/show policy-map system-cpp-policy— platform CoPP on IOS XE.show processes cpu sorted— CPU load and top processes.
Commands
show policy-map control-plane- Inspect CoPP counters and drops.
match access-group name <acl>- Match traffic in a class map using a named ACL.
police <rate>- Police a class to a rate; traffic above it is dropped or remarked.
service-policy input <policy>- Apply a QoS policy to traffic entering the interface.
ip access-list extended <acl>- Create a named extended ACL, here used to classify control-plane traffic.
class-map match-any <class>- Create a CoPP class map that matches traffic if any match statement is true.
policy-map <policy>- Create the policy map used for Control Plane Policing.
class <class>- Reference a traffic class inside the CoPP policy map.
control-plane- Enter control-plane configuration to attach a CoPP service policy.
show policy-map interface control-plane- Display CoPP counters per class.
Verify in this order
control-plane traffic classified → each class policed at its rate → conforming traffic reaches the CPU → excess dropped → CPU stays usable under attack
Where it usually breaks
packet selector → class match → marking → policy attachment → queue/policer/shaper → egress counters/drops → receiver behavior
Control Plane Policing — CoPP · technical reference
| CoPP signal | Interpretation |
|---|---|
| Class match | Traffic reached this classifier |
| Conform | Within configured rate/burst |
| Exceed/drop | Policer enforced limit |
| CPU/protocol state | Separate outcome evidence |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=765