Skip to content

Commit

Permalink
[image_config]: Update DHCP rate-limit (#17132)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
prabhataravind authored and yxieca committed Dec 4, 2023
1 parent a87cddc commit 26ade35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/image_config/copp/copp_cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"queue": "4",
"meter_type":"packets",
"mode":"sr_tcm",
"cir":"300",
"cbs":"300",
"cir":"100",
"cbs":"100",
"red_action":"drop"
},
"queue1_group1": {
Expand Down

0 comments on commit 26ade35

Please sign in to comment.