aea3c42f29
Change DHCP rate limit in SONiC copp configuration to 100 PPS as this is necessary to ensure that DHCP flood does not cause LACP/BGP flaps in all scenarios This is an extension to the change in image_config: copp: Enable rate limiting for bgp, lacp, dhcp, lldp, macsec and udld #14859 and sonic-mgmt change in [tests/copp]: Update copp mgmt tests to support new rate-limits sonic-mgmt#8199 Why I did it 300 PPS is not sufficient to prevent LACP/BGP flaps in all cases. 100 PPS seems to provide better resiliency against DHCP traffic flood to CPU. Microsoft ADO 25776614: Send DHCP broadcast packets to DUT and verify that they are trapped to CPU at 100 PPS. Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
122 lines
2.6 KiB
Django/Jinja
Executable File
122 lines
2.6 KiB
Django/Jinja
Executable File
{
|
|
"COPP_GROUP": {
|
|
"default": {
|
|
"queue": "0",
|
|
"meter_type":"packets",
|
|
"mode":"sr_tcm",
|
|
"cir":"600",
|
|
"cbs":"600",
|
|
"red_action":"drop"
|
|
},
|
|
"queue4_group1": {
|
|
"trap_action":"trap",
|
|
"trap_priority":"4",
|
|
"queue": "4",
|
|
"meter_type":"packets",
|
|
"mode":"sr_tcm",
|
|
"cir":"6000",
|
|
"cbs":"6000",
|
|
"red_action":"drop"
|
|
},
|
|
"queue4_group2": {
|
|
"trap_action":"copy",
|
|
"trap_priority":"4",
|
|
"queue": "4",
|
|
"meter_type":"packets",
|
|
"mode":"sr_tcm",
|
|
"cir":"600",
|
|
"cbs":"600",
|
|
"red_action":"drop"
|
|
},
|
|
"queue4_group3": {
|
|
"trap_action":"trap",
|
|
"trap_priority":"4",
|
|
"queue": "4",
|
|
"meter_type":"packets",
|
|
"mode":"sr_tcm",
|
|
"cir":"100",
|
|
"cbs":"100",
|
|
"red_action":"drop"
|
|
},
|
|
"queue1_group1": {
|
|
"trap_action":"trap",
|
|
"trap_priority":"1",
|
|
"queue": "1",
|
|
"meter_type":"packets",
|
|
"mode":"sr_tcm",
|
|
"cir":"6000",
|
|
"cbs":"6000",
|
|
"red_action":"drop"
|
|
},
|
|
"queue1_group2": {
|
|
"trap_action":"trap",
|
|
"trap_priority":"1",
|
|
"queue": "1",
|
|
"meter_type":"packets",
|
|
"mode":"sr_tcm",
|
|
"cir":"600",
|
|
"cbs":"600",
|
|
"red_action":"drop"
|
|
},
|
|
"queue2_group1": {
|
|
"cbs": "1000",
|
|
"cir": "1000",
|
|
"genetlink_mcgrp_name": "packets",
|
|
"genetlink_name": "psample",
|
|
"meter_type": "packets",
|
|
"mode": "sr_tcm",
|
|
"queue": "2",
|
|
"red_action": "drop",
|
|
"trap_action": "trap",
|
|
"trap_priority": "1"
|
|
|
|
}
|
|
},
|
|
"COPP_TRAP": {
|
|
"bgp": {
|
|
"trap_ids": "bgp,bgpv6",
|
|
"trap_group": "queue4_group1"
|
|
},
|
|
"lacp": {
|
|
"trap_ids": "lacp",
|
|
"trap_group": "queue4_group1",
|
|
"always_enabled": "true"
|
|
},
|
|
"arp": {
|
|
"trap_ids": "arp_req,arp_resp,neigh_discovery",
|
|
"trap_group": "queue4_group2",
|
|
"always_enabled": "true"
|
|
},
|
|
"lldp": {
|
|
"trap_ids": "lldp",
|
|
"trap_group": "queue4_group3"
|
|
},
|
|
"dhcp_relay": {
|
|
"trap_ids": "dhcp,dhcpv6",
|
|
"trap_group": "queue4_group3"
|
|
},
|
|
"udld": {
|
|
"trap_ids": "udld",
|
|
"trap_group": "queue4_group3",
|
|
"always_enabled": "true"
|
|
},
|
|
"ip2me": {
|
|
"trap_ids": "ip2me",
|
|
"trap_group": "queue1_group1",
|
|
"always_enabled": "true"
|
|
},
|
|
"macsec": {
|
|
"trap_ids": "eapol",
|
|
"trap_group": "queue4_group1"
|
|
},
|
|
"nat": {
|
|
"trap_ids": "src_nat_miss,dest_nat_miss",
|
|
"trap_group": "queue1_group2"
|
|
},
|
|
"sflow": {
|
|
"trap_group": "queue2_group1",
|
|
"trap_ids": "sample_packet"
|
|
}
|
|
}
|
|
}
|