Skip to content

Conversation

@Xichen96
Copy link
Contributor

Description of PR

On some testbeds, we have observed around 25% packet loss with dhcp relay stress test. We have confirmed that packets were sent out of dut intf fine, but packets were dropped at 1. before reaching server and 2. after reaching server and during ptf packet capture. For large packet amounts ptfutils tends to drop packets and the amount goes up as packet amount increase. By switching using tcpdump directly, 25% packet loss can be reduced to around 10%.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

This pr reduces packet loss during ptf packet capture and makes result better

How did you do it?

Replace ptfutils packet capture with tcpdump capture

How did you verify/test it?

Run test

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Xichen96 Xichen96 added Request for 202505 branch Request for 202511 branch Request to backport a change to 202511 branch labels Dec 16, 2025
@Blueve Blueve enabled auto-merge (squash) December 16, 2025 05:56
@Xichen96
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Xichen96
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Blueve Blueve merged commit 01e4991 into sonic-net:master Dec 18, 2025
23 checks passed
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Dec 18, 2025
…21706)

On some testbeds, we have observed around 25% packet loss with dhcp relay stress test. We have confirmed that packets were sent out of dut intf fine, but packets were dropped at 1. before reaching server and 2. after reaching server and during ptf packet capture. For large packet amounts ptfutils tends to drop packets and the amount goes up as packet amount increase. By switching using tcpdump directly, 25% packet loss can be reduced to around 10%.

What is the motivation for this PR?
This pr reduces packet loss during ptf packet capture and makes result better

How did you do it?
Replace ptfutils packet capture with tcpdump capture

How did you verify/test it?
Run test

Signed-off-by: Xichen Lin <[email protected]>
Signed-off-by: selldinesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…21706)

On some testbeds, we have observed around 25% packet loss with dhcp relay stress test. We have confirmed that packets were sent out of dut intf fine, but packets were dropped at 1. before reaching server and 2. after reaching server and during ptf packet capture. For large packet amounts ptfutils tends to drop packets and the amount goes up as packet amount increase. By switching using tcpdump directly, 25% packet loss can be reduced to around 10%.

What is the motivation for this PR?
This pr reduces packet loss during ptf packet capture and makes result better

How did you do it?
Replace ptfutils packet capture with tcpdump capture

How did you verify/test it?
Run test

Signed-off-by: Xichen Lin <[email protected]>
Signed-off-by: Guy Shemesh <[email protected]>
vrajeshe pushed a commit to Akshath-17/sonic-mgmt that referenced this pull request Jan 4, 2026
…21706)

On some testbeds, we have observed around 25% packet loss with dhcp relay stress test. We have confirmed that packets were sent out of dut intf fine, but packets were dropped at 1. before reaching server and 2. after reaching server and during ptf packet capture. For large packet amounts ptfutils tends to drop packets and the amount goes up as packet amount increase. By switching using tcpdump directly, 25% packet loss can be reduced to around 10%.

What is the motivation for this PR?
This pr reduces packet loss during ptf packet capture and makes result better

How did you do it?
Replace ptfutils packet capture with tcpdump capture

How did you verify/test it?
Run test

Signed-off-by: Xichen Lin <[email protected]>
Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Request for 202505 branch Request for 202511 branch Request to backport a change to 202511 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants