-
Notifications
You must be signed in to change notification settings - Fork 712
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
dhcp storm stress test #14768
base: master
Are you sure you want to change the base?
dhcp storm stress test #14768
Conversation
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
assert False, "DHCP container is NOT running." | ||
|
||
# Check CPU usage of the DHCP process | ||
dhcp_cpu_usage = duthost.shell('show processes cpu --verbose | grep dhcp | awk \'{print $9}\'')["stdout"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest to grep dhc
, because process name of v4 relay is dhcrelay
..
log_file="/tmp/dhcp_relay_stress_test.DHCPStressTest.log", | ||
qlen=100000, is_python3=True, async_mode=True) | ||
check_dhcp_stress_status(duthost, packets_send_duration) | ||
exp_count = int(ptfhost.shell('cat /tmp/dhcp_stress_test_ack.json')['stdout'].strip()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ptfrunner run in async mode, would this case end directly when execute to this line without ptfrunner end?
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
The purpose of this test is to conduct a DHCP stress test with CoPP policy, ensuring that the DHCP relay service can withstand the maximum load applied to the CPU
How did you do it?
In the test, we will generate packets at a rate of 10,000 packets per second for 120 seconds to ensure the DHCP relay service can handle the maximum load without failure.
How did you verify/test it?
By monitoring the status of the DHCP container, resource utilization, and verify that the DHCP processes are running.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation