Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image_config]: Update DHCP rate-limit #17132

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

prabhataravind
Copy link
Contributor

@prabhataravind prabhataravind commented Nov 10, 2023

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.

Work item tracking
  • Microsoft ADO 25776614:

How I did it

Reduced rate limit for queue4_group3 in copp configuration to 100 PPS from 300 PPS.

How to verify it

Send DHCP broadcast packets to DUT and verify that they are trapped to CPU at 100 PPS.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

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

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

 * 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

Signed-off-by: Prabhat Aravind <[email protected]>
@prabhataravind prabhataravind marked this pull request as ready for review November 10, 2023 15:32
@prsunny
Copy link
Contributor

prsunny commented Nov 10, 2023

Could you also link the sonic-mgmt test change?

@prabhataravind
Copy link
Contributor Author

Could you also link the sonic-mgmt test change?

Done

@prsunny
Copy link
Contributor

prsunny commented Nov 10, 2023

Could you also link the sonic-mgmt test change?

Done

Since sonic-mgmt test is currently set to 300pps should also be changed to 100 based on this PR. Could you please make that change and link it here?

@prabhataravind
Copy link
Contributor Author

@prsunny, could you please merge this change? I will merge the sonic-mgmt change later so as to make sure there won't be any test failures.

@lguohan lguohan merged commit aea3c42 into sonic-net:master Nov 22, 2023
21 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Nov 22, 2023
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 sonic-net#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]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #17270

mssonicbld pushed a commit that referenced this pull request Nov 23, 2023
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]>
yxieca pushed a commit that referenced this pull request Dec 4, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants