Skip to content

added a retry of sending traffic in ptf test_fib in case packet wasn't correctly sent to the DUT#18012

Merged
roy-sror merged 1 commit intosonic-net:masterfrom
illia-kotvitskyi:fib_test_retry_sending_traffic
Aug 11, 2025
Merged

added a retry of sending traffic in ptf test_fib in case packet wasn't correctly sent to the DUT#18012
roy-sror merged 1 commit intosonic-net:masterfrom
illia-kotvitskyi:fib_test_retry_sending_traffic

Conversation

@illia-kotvitskyi
Copy link
Copy Markdown
Contributor

Description of PR

In case of a weak nic, when a packet is not received, resend the packet
Related PR: #14139

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

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Avoid failing the test in case of a packet wasn't received because of a weak NIC

How did you do it?

Add a retry sending traffic in case a packet wasn't received

How did you verify/test it?

Ran test in a loop to ensure its stability

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@illia-kotvitskyi
Copy link
Copy Markdown
Contributor Author

/AzurePipelines run Azure.sonic-mgmt

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 18012 in repo sonic-net/sonic-mgmt

@illia-kotvitskyi
Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@illia-kotvitskyi
Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@illia-kotvitskyi
Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

rcvd_port_index, rcvd_pkt = verify_packet_any_port(
self, masked_exp_pkt, dst_ports, timeout=1)
except AssertionError:
logging.error("Traffic wasn't sent successfully, trying again")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

need to ensure that we retry only if the packet was dropped on the server side, and not on the DUT end. otherwise, we might escape a real issue.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change will be delayed due to the test has an issue introduced on our side recently.

@r12f r12f self-requested a review July 15, 2025 19:28
@illia-kotvitskyi illia-kotvitskyi force-pushed the fib_test_retry_sending_traffic branch from 2462289 to 0a07200 Compare July 22, 2025 09:08
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Jul 23, 2025

hi @roy-sror , do you mind to help check it again?

@roy-sror
Copy link
Copy Markdown
Contributor

hi @roy-sror , do you mind to help check it again?

@r12f - the comments were not addressed yet

@congh-nvidia
Copy link
Copy Markdown
Contributor

Hi @roy-sror please approve this PR as we discussed in the meeting that Bing is OK with the current fix.

@mssonicbld
Copy link
Copy Markdown
Collaborator

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

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 12, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #20204

mssonicbld pushed a commit that referenced this pull request Aug 12, 2025
…t correctly sent to the DUT (#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: #14139
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139

Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139

Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139

Signed-off-by: Guy Shemesh <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139

Signed-off-by: Yael Tzur <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
…t correctly sent to the DUT (sonic-net#18012)

In case of a weak nic, when a packet is not received, resend the packet
Related PR: sonic-net#14139
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.

9 participants