You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document presents the high-level design for supporting the Neighbor Miss CoPP trap type. It also covers the SAI enum capability query for the trap type attribute, CLI show command support for CoPP, and other CoPP enhancements.
39
+
This document presents the high-level design for supporting the Neighbor Miss CoPP trap type. It also covers the SAI enum capability query for the trap type attribute, CLI show command support for CoPP.
38
40
39
41
## 3. Abbreviations
40
42
@@ -44,14 +46,13 @@ This document presents the high-level design for supporting the Neighbor Miss Co
44
46
|__SWSS__| Switch State Service |
45
47
|__CLI__| Command Line interface |
46
48
|__SAI__| Switch Abstraction Interface |
47
-
|__DVS__| Docker Virtual Switch |
48
49
|__ARP__| Address Resolution Protocol |
49
50
50
51
## 4. Overview
51
52
52
53
In today’s SONIC system, CoPP for neighbor miss traffic is undefined. A surge in such IP packets sent to the CPU for ARP resolution can potentially impact other CPU traffic, starving critical traffic such as IP2ME. Therefore, it is crucial to police neighbor miss traffic separately.
53
54
54
-
Currently, trap types are applied to SAI without verifying their support, leading to exceptions in orchagent. Additionally, the current configuration lacks visibility of the trap types supported by SAI, and there is no CoPP CLI support available to display configured CoPP groups and trap types.
55
+
Furthermore, the current implementation applies trap types to SAI without verifying their support, leading to exceptions in orchagent. Additionally, the current configuration lacks visibility of the trap types supported by SAI, and there is no CoPP CLI support available to display configured CoPP groups and trap types.
55
56
56
57
This design proposes solution to the aforementioned problem. By introducing management support for neighbor miss trap type, which allows independent policing for neighbor miss packets. This ensures that surges in neighbor miss traffic will not impact other critical CPU-bound traffic and Prevents CPU starvation by controlling neighbor miss traffic independently. SAI also supports a trap type, SAI_HOSTIF_TRAP_TYPE_NEIGHBOR_MISS, to specifically identify and control neighbor miss traffic.
57
58
@@ -88,9 +89,17 @@ When CoPP trap configuration is received from APPL_DB:
88
89
2. The trap configuration will be applied only if the trap is supported.
89
90
3. If the trap is not supported, a syslog error is logged.
@@ -193,7 +202,7 @@ No changes. Yang model for CoPP is defined in [sonic-copp.yang](https://github.c
193
202
194
203
A new CLI command, `show copp configuration`, is being introduced. The purpose of this command is to display the CoPP configuration applied to SAI. The command will retrieve configuration from copp_cfg.json and CONFIG_DB. Additionally, the command will display the operational status of the trap types retrieved from STATE_DB.
0 commit comments