-
Notifications
You must be signed in to change notification settings - Fork 737
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
sonic-mgmt / IXIA : T2 test to verify ECN Counter operation pre and post port state toggle #15586
sonic-mgmt / IXIA : T2 test to verify ECN Counter operation pre and post port state toggle #15586
Conversation
@abdosi can you help to review this one? Thanks. |
tests/snappi_tests/multidut/ecn/test_multidut_ecn_marking_with_snappi.py
Outdated
Show resolved
Hide resolved
tests/snappi_tests/multidut/ecn/test_multidut_ecn_marking_with_snappi.py
Outdated
Show resolved
Hide resolved
flow4_ecn = post_ctr_4['SAI_QUEUE_STAT_WRED_ECN_MARKED_PACKETS'] -\ | ||
init_ctr_4['SAI_QUEUE_STAT_WRED_ECN_MARKED_PACKETS'] | ||
|
||
pytest_assert(flow3_ecn > 0, |
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.
is flow3_ecn > 0
enough? Do we expect a percentage of packets to be marked?
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.
In this specific port toggle test case, we are only making sure the ECN marking is happening.
We will have separate test to check the percentage of marking probably based on DWRR.
138fca4
to
bde32ca
Compare
@sreejithsreekumaran : please resolve conflict. |
8e0b0d0
to
c0d7504
Compare
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:
|
@sreejithsreekumaran PR conflicts with 202405 branch |
…re and post port state toggle (sonic-net#15586) [cisco] sonic-mgmt / IXIA : T2 test to verify ECN Counter operation pre and post port state toggle
Cherry-pick PR to 202405: #15763 |
…re and post port state toggle (#15586) [cisco] sonic-mgmt / IXIA : T2 test to verify ECN Counter operation pre and post port state toggle
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
MIGSMSFT-630 Add sonic-mgmt / IXIA test for cisco platforms to verify ECN Counter operation.
How did you do it?
Create two flows one for each lossless TC per Ixia port each at half of 99.98% rate
Inject traffic and read ECN Counters and verify it incremented.
flap the interface state (shut, wait for 0.2 seconds, no shut the interfaces of Ixia)
restart the traffic streams
verify that the ECN counters increment from the baseline value (new values read MUST NOT be zero)
How did you verify/test it?
Verified on T2 DUT setup
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation