The default EOS Copp only provides protocol level traffic policy, for example, the maximum throughput of bgp traffic destined to the cpu. But there is no granularity of source address. So this feature - Support for CPU traffic policy is for this purpose.
Disclaimer: The information contained in this blog is for informational purposes only and should not be considered as official documentation on any subject matter. The postings on this blog are my own and do not necessarily represent the opinions of my current and previous employers.
Showing posts with label CoPP. Show all posts
Showing posts with label CoPP. Show all posts
9/22/2020
10/25/2018
Arista EOS: Change the default shape and bandwidth of CoPP class
The purpose of CoPP is to protect the CPU from unnecessary or malicious packets. Arista EOS has a default CoPP set with pre-defined bandwidth and shape.
R1#sh policy-map type control-plane copp-system-policy
Service-policy input: copp-system-policy
Number of units programmed: 8
Hardware programming status: Successful
Class-map: copp-system-arp-inspect (match-any)
shape : 250000 kbps
bandwidth : 25000 kbps
R1#sh policy-map type control-plane copp-system-policy
Service-policy input: copp-system-policy
Number of units programmed: 8
Hardware programming status: Successful
Class-map: copp-system-arp-inspect (match-any)
shape : 250000 kbps
bandwidth : 25000 kbps
<....>
Most of the class names are intuitive, some need a little explanation.
- l3destmiss - unicast routed packets but no ARP info, need ARP resolution.
- l3lpmoverflow - ip broadcast destined to router???
- linklocal - multicast packets to 224.0.0.*
- l3slowpath - header option
How to change:
bn302.15:27:12(config)#policy-map type control-plane copp-system-policy
bn302.15:27:29(config-pmap-control-plane-copp-system-policy)#class copp-system-l3destmiss
bn302.15:27:43(config-pmap-c-control-plane-copp-system-policy-copp-system-l3destmiss)#shape kbps 999999
bn302.15:27:49(config-pmap-c-control-plane-copp-system-policy-copp-system-l3destmiss)#bandwidth kbps 88888
Policy map changes are applied when existing configuration mode. Use 'abort' to ignore any changes.
How to verify:
bn302.16:47:57#show policy-map interface control-plane copp-system-policy
....
Class-map: copp-system-l3destmiss (match-any)
shape : 999999 kbps
bandwidth : 88888 kbps
bn302.15:29:48(config-cp)#sh platform jericho copp mapping | egrep 'Shape|destmiss'
Class name SysPhyPort First Voq# Total Voqs Bandwidth(kbps) Shape(kbps)
copp-system-l3destmiss 36 1680 0-40 250 2500
Subscribe to:
Posts (Atom)