Skip to content

[action] [PR:13203] Ignore received packets that weren't sent during examine_flow#14324

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/13203
Sep 2, 2024
Merged

[action] [PR:13203] Ignore received packets that weren't sent during examine_flow#14324
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/13203

Conversation

@mssonicbld
Copy link
Collaborator

Attempts to process received packets that weren't sent resulted in a KeyError exception in the examine_flow disruption calculation. This commit ignores them.

Description of PR

Summary:
Fixes # (issue)

Microsoft ADO: 27806353

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

The platform_tests.test_advanced_reboot.test_fast_reboot test was failing due to received packets that weren't sent.

How did you do it?

How did you verify/test it?

Modified the examine_flow function to run independently then tested the logic with a series of pcap files with various missing packets in the sequence. The cases included:

  • 100 packets, happy path
  • 100 packets, 0th packet receive missing
  • 100 packets, 0th packet send missing
  • 100 packets, 10th packet both missing, 11th packet both missing
  • 100 packets, 10th packet both missing, 11th packet receive missing
  • 100 packets, 10th packet both missing, 11th packet send missing
  • 100 packets, 10th packet both missing
  • 100 packets, 10th packet receive missing, 11th packet receive missing
  • 100 packets, 10th packet receive missing, 11th packet send missing
  • 100 packets, 10th packet receive missing
  • 100 packets, 10th packet send missing, 11th packet receive missing
  • 100 packets, 10th packet send missing, 11th packet send missing
  • 100 packets, 10th packet send missing
  • 100 packets, bunch of sad cases all in one:
  • pkt-10 both missing
  • pkt-15 send missing
  • pkt-20 receive missing
  • pkt-25 both missing, pkt-26 both missing
  • pkt-30 both missing, pkt-31 send missing
  • pkt-35 both missing, pkt-36 receive missing
  • pkt-45 receive missing, pkt-46 receive missing
  • pkt-55 receive missing, pkt-56 send missing
  • pkt-65 send missing, pkt-66 send missing
  • pkt-75 send missing, pkt-76 receive missing
  • 100 packets, first 10 packets missing

Any platform specific information?

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

Documentation

…net#13203)

What is the motivation for this PR?
The platform_tests.test_advanced_reboot.test_fast_reboot test was failing due to received packets that weren't sent.

How did you do it?
How did you verify/test it?
Modified the examine_flow function to run independently then tested the logic with a series of pcap files with various missing packets in the sequence. The cases included:

100 packets, happy path
100 packets, 0th packet receive missing
100 packets, 0th packet send missing
100 packets, 10th packet both missing, 11th packet both missing
100 packets, 10th packet both missing, 11th packet receive missing
100 packets, 10th packet both missing, 11th packet send missing
100 packets, 10th packet both missing
100 packets, 10th packet receive missing, 11th packet receive missing
100 packets, 10th packet receive missing, 11th packet send missing
100 packets, 10th packet receive missing
100 packets, 10th packet send missing, 11th packet receive missing
100 packets, 10th packet send missing, 11th packet send missing
100 packets, 10th packet send missing
100 packets, bunch of sad cases all in one:
pkt-10 both missing
pkt-15 send missing
pkt-20 receive missing
pkt-25 both missing, pkt-26 both missing
pkt-30 both missing, pkt-31 send missing
pkt-35 both missing, pkt-36 receive missing
pkt-45 receive missing, pkt-46 receive missing
pkt-55 receive missing, pkt-56 send missing
pkt-65 send missing, pkt-66 send missing
pkt-75 send missing, pkt-76 receive missing
100 packets, first 10 packets missing
Any platform specific information?
@mssonicbld
Copy link
Collaborator Author

Original PR: #13203

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 3555a1a into sonic-net:202405 Sep 2, 2024
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.

2 participants