Default Settings for CoPP (N2224PX-ON/N2248X-ON/N3208PX-ON)


NOTE:

  • Default settings for CoPP in this page is only applicable for N2224PX-ON/N2248X-ON/N3208PX-ON.

  • CoPP configures control policy of the traffic from the ASIC to CPU. It is a very sensitive process of the whole switch OS. Any incorrect setting could impact the stability or could even paralyze the normal network operation. It is therefore highly recommended to KEEP the default configurations of CoPP to ensure the system and network stability.

Default Queue Mapping Policy

By default, CoPP provides 8 CPU queues for data forwarding that would have a default scheduling weight. The system pre-defines 15 types of control plane protocols mapping from queue 8 to 22. The default queue mapping policy is as follows.

Table 1. Default Queue Mapping Policy

Protocols

CPU Queue

Default Scheduling Weight

BPDU

7

32

LACP

6

32

LLDP

5

32

ARP/NDP

4

32

MLAG/MLAG-MAC-SYNC

3

16

SSH/TELNET/SNMP

2

32

DHCP/DHCPv6/IGMP/PIM

1

16

Default*

0

16

Default*: The flow of traffic directed to switch CPU will be sent to CPU queue 0 when the traffic matches no firewall filter rule.

But for the packet with an Inet Precedence or DSCP value, it will not always be sent to CPU queue 0 when the traffic matches no firewall filter rule. When you configure the classifier to classify services on different inbound interfaces by using set class-of-service classifier trust-mode dscp and set class-of-service interface classifier commands. The packets will be sent to the CPU queue according to the Inet Precedence or DSCP value. Mappings from Inet Precedence/DSCP value to CPU Queue are shown in the following tables.

Table 2. Mapping from Inet Precedence value to CPU Queue

Inet-precedence

CPU Queue

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

Table 3. Mapping from DSCP value to CPU Queue

DSCP

CPU Queue

0,1,2,3,4,5,6,7

0

8,9,10,11,12,13,14,15

1

16,17,18,19,20,21,22,23

2

24,25,26,27,28,29,30,31

3

32,33,34,35,36,37,38,39

4

40,41,42,43,44,45,46,47

5

48,49,50,51,52,53,54,55

6

56,57,58,59,60,61,62,63

7

Default CLI Settings

PicOS will startup with the following CLI commands by default. Users can change the pre-defined CoPP policies but are NOT allowed to delete them.

NOTE: The values of min-bandwidth-pps and max-bandwidth-pps are different on different platforms.

# Default configurations of forwarding class for CoPP.

set class-of-service forwarding-class bpdu-class local-priority 7 set class-of-service forwarding-class lacp-class local-priority 6 set class-of-service forwarding-class lldp-class local-priority 5 set class-of-service forwarding-class arp-ndp-class local-priority 4 set class-of-service forwarding-class mlag-class local-priority 3 set class-of-service forwarding-class management-class local-priority 2 set class-of-service forwarding-class dhcp-igmp-pim-class local-priority 1 set class-of-service forwarding-class default-class local-priority 0

# Default configurations of schedulers for CoPP.

set class-of-service scheduler arp-ndp-scheduler mode WRR set class-of-service scheduler arp-ndp-scheduler weight 32 set class-of-service scheduler arp-ndp-scheduler max-bandwidth-pps 500 set class-of-service scheduler arp-ndp-scheduler min-bandwidth-pps 100 set class-of-service scheduler management-scheduler mode WRR set class-of-service scheduler management-scheduler weight 32 set class-of-service scheduler management-scheduler max-bandwidth-pps 500 set class-of-service scheduler management-scheduler min-bandwidth-pps 100 set class-of-service scheduler dhcp-igmp-pim-scheduler mode WRR set class-of-service scheduler dhcp-igmp-pim-scheduler weight 16 set class-of-service scheduler dhcp-igmp-pim-scheduler max-bandwidth-pps 500 set class-of-service scheduler dhcp-igmp-pim-scheduler min-bandwidth-pps 0 set class-of-service scheduler mlag-scheduler mode WRR set class-of-service scheduler mlag-scheduler weight 16 set class-of-service scheduler mlag-scheduler max-bandwidth-pps 500 set class-of-service scheduler mlag-scheduler min-bandwidth-pps 0 set class-of-service scheduler bpdu-scheduler mode WRR set class-of-service scheduler bpdu-scheduler weight 32 set class-of-service scheduler bpdu-scheduler max-bandwidth-pps 500 set class-of-service scheduler bpdu-scheduler min-bandwidth-pps 100 set class-of-service scheduler lacp-scheduler mode WRR set class-of-service scheduler lacp-scheduler weight 32 set class-of-service scheduler lacp-scheduler max-bandwidth-pps 500 set class-of-service scheduler lacp-scheduler min-bandwidth-pps 100 set class-of-service scheduler lldp-scheduler mode WRR set class-of-service scheduler lldp-scheduler weight 32 set class-of-service scheduler lldp-scheduler max-bandwidth-pps 500 set class-of-service scheduler lldp-scheduler min-bandwidth-pps 100  set class-of-service scheduler default-scheduler mode WRR set class-of-service scheduler default-scheduler weight 16 set class-of-service scheduler default-scheduler max-bandwidth-pps 500 set class-of-service scheduler default-scheduler min-bandwidth-pps 0    set class-of-service scheduler-profile copp-profile forwarding-class bpdu-class scheduler bpdu-scheduler set class-of-service scheduler-profile copp-profile forwarding-class lacp-class scheduler lacp-scheduler set class-of-service scheduler-profile copp-profile forwarding-class lldp-class scheduler lldp-scheduler set class-of-service scheduler-profile copp-profile forwarding-class dhcp-igmp-pim-class scheduler dhcp-igmp-pim-scheduler set class-of-service scheduler-profile copp-profile forwarding-class mlag-class scheduler mlag-scheduler set class-of-service scheduler-profile copp-profile forwarding-class management-class scheduler management-scheduler set class-of-service scheduler-profile copp-profile forwarding-class arp-ndp-class scheduler arp-ndp-scheduler set class-of-service scheduler-profile copp-profile forwarding-class default-class scheduler default-scheduler

# Apply schedulers of CoPP to inbound interface.

set class-of-service interface inbound-control-plane scheduler-profile copp-profile

# Default configurations of protocol sequences and forwarding class.

#Apply firewall filter of CoPP to inbound interface.

Show Default Settings of CoPP

  • You can use run show copp bandwidth, run show class-of-service interface inbound-control-plane and run show filter copp commands to view the default settings. (Besides default settings, the commands will also show the COPP configurations made by the user.) 

Copyright © 2024 Pica8 Inc. All Rights Reserved.