Control plane policing (CoPP): protecting router and switch CPUs from floods
In short: Most traffic through a router is forwarded in hardware, but packets addressed to the device itself, such as routing updates, SSH, SNMP, ARP and ping, are handled by its CPU. A flood of such packets can overload the CPU and drop routing adjacencies. Control plane policing classifies this traffic and rate-limits each class, so important protocols keep working during an attack or a loop.
Why the CPU needs protection
Modern routers and switches forward transit traffic in dedicated hardware at line rate. Traffic to the device, however, goes to a relatively small CPU: routing protocol packets (OSPF, BGP, EIGRP), ARP, ICMP to the device's addresses, SSH, SNMP, NTP, and packets that need special handling such as those with IP options or TTL expiry. If an attacker or a misconfigured device floods the CPU, routing neighbours time out, management stops responding, and the network can collapse even though links are not full.
How CoPP works
CoPP applies a QoS-style policy to the logical "control-plane" interface. Traffic heading to the CPU is classified into groups and each group is rate-limited (policed). Excess traffic is dropped before it reaches the CPU, so one flood cannot starve everything else.
A simple CoPP design (IOS routers)
ip access-list extended COPP-ROUTING
permit tcp any any eq bgp
permit tcp any eq bgp any
permit ospf any any
ip access-list extended COPP-MGMT
permit tcp 10.10.99.0 0.0.0.255 any eq 22
permit udp 10.10.99.0 0.0.0.255 any eq snmp
permit udp any any eq ntp
ip access-list extended COPP-ICMP
permit icmp any any
!
class-map match-all CM-ROUTING
match access-group name COPP-ROUTING
class-map match-all CM-MGMT
match access-group name COPP-MGMT
class-map match-all CM-ICMP
match access-group name COPP-ICMP
!
policy-map PM-COPP
class CM-ROUTING
police 1000000 conform-action transmit exceed-action transmit
class CM-MGMT
police 500000 conform-action transmit exceed-action drop
class CM-ICMP
police 64000 conform-action transmit exceed-action drop
class class-default
police 128000 conform-action transmit exceed-action drop
!
control-plane
service-policy input PM-COPP
Routing protocols get a generous limit (and here are never dropped), management is limited to the management subnet, ICMP is kept small, and everything else falls into a modest default class.
Catalyst 9000 switches
Catalyst 9000 switches have CoPP enabled by default (system-cpp-policy) with dozens of predefined classes for ARP, routing, DHCP snooping and others. You can adjust the rates for specific classes but cannot remove the policy. Check it with show policy-map control-plane and show platform hardware fed switch active qos queue stats internal cpu policer.
Designing and monitoring
- Measure normal CPU-bound traffic first; set limits comfortably above normal peaks.
- Protect routing and management classes most; be strict with ICMP and the default class.
- Combine CoPP with infrastructure ACLs at the edge, which stop unwanted traffic before it reaches any device.
- Watch drop counters. Drops in the routing class are a warning that limits are too low or an attack is happening.
Real-world example: the loop that killed OSPF
A Layer 2 loop on a campus flooded the core switches with broadcast ARP traffic. On an older pair of core switches without CoPP, the CPU hit 100 percent, OSPF hellos were missed, and routing to every building dropped for several minutes. After replacing them with switches using the default CoPP, a later loop caused heavy ARP drops in the ARP class, but OSPF stayed up and the rest of the campus was unaffected.
Practice
Which traffic does CoPP protect against?
Where is a CoPP policy applied on Cisco IOS?
control-plane with service-policy input.What does rising drops in a routing protocol CoPP class suggest?
Key takeaways
- Traffic to the device is processed by its CPU and can overload it.
- CoPP classifies CPU-bound traffic and rate-limits each class.
- Give routing and management priority; keep ICMP and default classes tight.
- Catalyst 9000 has CoPP on by default; monitor drop counters.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.