Skip to content

Comments

Change dummy ip for fill packets to eliminate false positives#22259

Merged
yxieca merged 1 commit intosonic-net:masterfrom
rgarofano-arista:change_dummy_ip
Feb 10, 2026
Merged

Change dummy ip for fill packets to eliminate false positives#22259
yxieca merged 1 commit intosonic-net:masterfrom
rgarofano-arista:change_dummy_ip

Conversation

@rgarofano-arista
Copy link
Contributor

Description of PR

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
  • 202412
  • 202505
  • 202511

Approach

What is the motivation for this PR?

We were seeing failures in packet trimming tests when verifying UDP packets. This is because the shaper on TH5 is still sending a few packets a second that were used to fill up the buffer (simulating congestion) and these packets are nearly identical to the UDP packets used to verify trimming. This is leading to false positives where a packet that was used to fill the buffer is being detected as a "trimmed" packet when packet trimming is turned off.

How did you do it?

Fixed this by changing the dummy ip for the packets used to fill the buffer, meaning they won't be mistaken for a packet that the test sends to verify trimming.

How did you verify/test it?

Verified that the failure goes away with the change.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@delnas
Copy link

delnas commented Feb 10, 2026

Hi @wangxin could you help to review or tag if someone else needs to approve, thanks!

Copy link
Contributor

@r12f r12f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the shaper is unable to pause the queue for good, we will have false positive when hitting this.

straightforward change and sign off.

@yxieca yxieca merged commit f36aa47 into sonic-net:master Feb 10, 2026
17 checks passed
@justin-wong-ce
Copy link
Contributor

Needs backport to 202412 and 202511

nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
…net#22259)

What is the motivation for this PR?
We were seeing failures in packet trimming tests when verifying UDP packets. This is because the shaper on TH5 is still sending a few packets a second that were used to fill up the buffer (simulating congestion) and these packets are nearly identical to the UDP packets used to verify trimming. This is leading to false positives where a packet that was used to fill the buffer is being detected as a "trimmed" packet when packet trimming is turned off.

How did you do it?
Fixed this by changing the dummy ip for the packets used to fill the buffer, meaning they won't be mistaken for a packet that the test sends to verify trimming.

How did you verify/test it?
Verified that the failure goes away with the change.

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
Signed-off-by: nnelluri-cisco <nnelluri@cisco.com>
@sdszhang sdszhang added Request for msft-202412 Branch Request for 202511 branch Request to backport a change to 202511 branch labels Feb 18, 2026
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#1025

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 19, 2026
…net#22259)

What is the motivation for this PR?
We were seeing failures in packet trimming tests when verifying UDP packets. This is because the shaper on TH5 is still sending a few packets a second that were used to fill up the buffer (simulating congestion) and these packets are nearly identical to the UDP packets used to verify trimming. This is leading to false positives where a packet that was used to fill the buffer is being detected as a "trimmed" packet when packet trimming is turned off.

How did you do it?
Fixed this by changing the dummy ip for the packets used to fill the buffer, meaning they won't be mistaken for a packet that the test sends to verify trimming.

How did you verify/test it?
Verified that the failure goes away with the change.

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511: #22474

anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
…net#22259)

What is the motivation for this PR?
We were seeing failures in packet trimming tests when verifying UDP packets. This is because the shaper on TH5 is still sending a few packets a second that were used to fill up the buffer (simulating congestion) and these packets are nearly identical to the UDP packets used to verify trimming. This is leading to false positives where a packet that was used to fill the buffer is being detected as a "trimmed" packet when packet trimming is turned off.

How did you do it?
Fixed this by changing the dummy ip for the packets used to fill the buffer, meaning they won't be mistaken for a packet that the test sends to verify trimming.

How did you verify/test it?
Verified that the failure goes away with the change.

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
mssonicbld pushed a commit that referenced this pull request Feb 20, 2026
What is the motivation for this PR?
We were seeing failures in packet trimming tests when verifying UDP packets. This is because the shaper on TH5 is still sending a few packets a second that were used to fill up the buffer (simulating congestion) and these packets are nearly identical to the UDP packets used to verify trimming. This is leading to false positives where a packet that was used to fill the buffer is being detected as a "trimmed" packet when packet trimming is turned off.

How did you do it?
Fixed this by changing the dummy ip for the packets used to fill the buffer, meaning they won't be mistaken for a packet that the test sends to verify trimming.

How did you verify/test it?
Verified that the failure goes away with the change.

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
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.

8 participants