What is CoPP
CoPP (Control Plane Policing) is a feature that applies rate limiting and a handling action to specific types of protocol messages on a device. Each message type, such as ARP, BGP, OSPF, LACP, SSH, or SNMP, belongs to its own CoPP class. The rate limit and action are configured per class.
The action decides what happens to a message. Trap uploads the message to the CPU only. Copy uploads the message to the CPU and also forwards it. Forward simply forwards the message.
How CoPP Works
CoPP is configured inside a single CoPP policy, copp-system-policy, in four steps:
Enter the CoPP policy configuration view with
policy-map type copp copp-system-policy.Select the type of message to control with
class system_class_name.Set the rate limit for that class with
bandwidth cir cbs:CIR (Committed Information Rate): in bytes per second, range 1000 to 400000000000.
CBS (Committed Burst Size): in bytes, range 1000 to 400000000000.
Set the action for selected protocols with the global commands for ARP, ND, IGMP, PIM, IS-IS, VRRP, and OSPF messages.
Each protocol has a default action:
Protocol | Default action | Command to change | Action after change |
|---|---|---|---|
ARP | Copy |
| Trap |
ND | Copy |
| Trap |
IGMP | Forward |
| Copy |
PIM | Forward |
| Copy |
IS-IS | Forward |
| Copy |
VRRP | Forward |
| Copy |
OSPF | Forward |
| Copy |
Adding no in front of any of these commands restores the default action.
Why CoPP is Beneficial
· Rate limiting per message type: Each CoPP class has its own CIR and CBS, so every type of message is controlled separately.
· Wide protocol coverage: One policy covers 26 system classes, including routing, switching, high-availability, multicast, management, and error-handling messages.
· Selectable handling action: For ARP, ND, IGMP, PIM, IS-IS, VRRP, and OSPF messages, you can choose between trap, copy, and forward to match your design.
· Easy return to defaults: Running no bandwidth deletes the customized CoPP configuration of a class, and the system reverts to the default CoPP configuration.