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
<....>

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

No comments:

Post a Comment