Configuring CoPP
Figure 1Â outlines the CoPP configuration process in the following steps:
- Configure traffic classification: Define a group of matching rules to classify traffic which is the basis for differentiated services.
- Configure queue mapping: Configure a forwarding class and local priority for sending different types of packets to a specified CPU queue.
- Configure scheduling: Select a queue and process the packets from the queue with WRR scheduling algorithm and configure a queue scheduler weight.
- Configure queue shaping: Set minimum bandwidth and maximum bandwidth for each CPU queue.
Figure 1Â CoPP Configuration ProcessÂ
Procedure
Step1Â Â Â Â Â Â Â Â Â Configure CoPP firewall filter rule for traffic classification.
  set firewall filter copp sequence <number> from destination-mac-address <mac-address>      Â
NOTE:
|
Step2Â Â Â Â Â Â Â Â Â Configure queue mapping of CoPP policy.
  set firewall filter copp sequence <number> then forwarding-class <forwarding-class name>
Step3Â Â Â Â Â Â Â Â Â Configure mapping between forwarding class and local priority.
  set class-of-service forwarding-class <forwarding-class-name> local-priority <int>
Step4Â Â Â Â Â Â Â Â Â Configure queue scheduler weight.
  set class-of-service scheduler <scheduler-name> weight <value>
NOTE: It is NOT recommended to use the weight value for CPU queue scheduling due to hardware restrictions.  |
Â
Step5Â Â Â Â Â Â Â Â Â Configure WRR scheduling algorithm for queue scheduling.
  set class-of-service scheduler <scheduler-name> mode WRR
Step6Â Â Â Â Â Â Â Â Â Configure max bandwidth and min bandwidth for queue shaping.
  set class-of-service scheduler <scheduler-name> max-bandwidth-pps <value>
  set class-of-service scheduler <scheduler-name> min-bandwidth-pps <value>
NOTE: The total value of min-bandwidth-pps of all activated queues should be less than the CPU-affordable PPS depending on different platforms, which should be the maximum PPS threshold to the CPU. |
Step7    Configure the DSCP remark for COPP.
         set firewall filter copp sequence <number> then dscp <dscp-value>
Step8Â Â Â Â Â Configure CoPP scheduler profile.
  set class-of-service scheduler-profile copp-profile forwarding-class <forwarding-class-name> scheduler <scheduler-name>
Â
Copyright © 2024 Pica8 Inc. All Rights Reserved.