Command Line Reference
Security Configuration
Copp Speed limit
5 min
copp speed limit show copp \[command] show copp \[purpose] view the mapping of packets types and queues \[view] system \[usage scenario] in a network, there are various types of packets sent to the cpu, both normal and potentially malicious if too many packets are sent to the cpu, it can lead to high cpu utilization, performance degradation, and even system interruption copp (control plane policing) rate limits packets that need to be sent to the cpu based on specified queue rates this ensures that the rate of packets sent to the cpu remains within the cpu's normal operational capacity, preventing system disruptions sonic# show copp trapid queue metertype cir action \ ttl error 0 packets 150pps trap mtu error 0 packets 150pps drop default 0 packets 2500pps trap acl 0 packets 1250pps trap ip2me 1 packets 2500pps trap snmp 1 packets 2500pps trap iccp 1 packets 3750pps trap telnet 1 packets 2500pps trap ssh 1 packets 3750pps trap pim 2 packets 1250pps trap ptp 2 packets 1250pps trap igmp 2 packets 1250pps trap mld 2 packets 1250pps trap sample packet 2 packets 1250pps trap dhcp 3 packets 4500pps copy dhcpv6 3 packets 4500pps copy lldp 4 packets 400pps trap isis 4 packets 1250pps trap bgp 4 packets 4500pps trap arp 5 packets 4500pps copy icmp 5 packets 1250pps trap ndp 5 packets 4500pps copy eapol 6 packets 1000pps trap lacp 6 packets 800pps trap snp 6 packets 4500pps trap stp 6 packets 800pps trap bfd 7 packets 2000pps trap vrrp 7 packets 1250pps copy vrrpv6 7 packets 1250pps copy ospfv6 7 packets 4500pps trap ospf 7 packets 4500pps trap bfdv6 7 packets 2000pps trap show queue cpu port \[command] show queue cpu port \[purpose] view cpu queue statistics \[view] system view sonic# show queue cpu port port rxq counter/pkts drop/pkts rate/pkts \ cpu all0 0 0 0 00/s cpu all1 0 0 0 00/s cpu all2 0 0 0 00/s cpu all3 0 0 0 00/s cpu all4 2085 0 0 10/s cpu all5 0 0 0 00/s cpu all6 31298 0 0 50/s cpu all7 0 0 0 00/s copp packet type cir trap action \[{trap|copy}] \[command] copp packet type packet type cir value trap action \[{trap|copy}] \[purpose] configure the rate limit for protocol packets sent to the cpu \[parameter] parameter description packet type protocol packet types value value range 125 10000, unit pps trap send only to the cpu copy send to the cpu and forward \[view] system configuration view \[comment] all protocol messages requiring transmission to the cpu have default rate limits unless there are specific requirements, it is not recommended to modify them excessive rate limits may fill the cpu processing channel with the current protocol messages, preventing protocol messages mapped to other queues from being transmitted to the cpu sonic(config)# copp packet type dhcp cir 5000 trap action copy
