Skip to content
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

Bugfixes for new Ixia card #389

Merged
merged 5 commits into from
Aug 15, 2023

Conversation

SerhiyBoikoPLV
Copy link
Contributor

Fix tests that started failing after a new Ixia card was installed.

StepanVovkPLV and others added 5 commits August 8, 2023 11:24
Signed-off-by: Stepan Vovk <stepan.vovk@plvision.eu>
Check that only 1 port supports the required speed.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Make sure tgen is not oversubscribed.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Tgen needs more time to calculate the correct traffic rate.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
@mgheorghe mgheorghe self-requested a review August 15, 2023 20:41
@@ -147,4 +147,4 @@ async def test_lacp_routing_over_bridge(testbed):
stats = await tgen_utils_get_traffic_stats(tgen_dev, 'Traffic Item Statistics')
for row in stats.Rows:
err_msg = f"Expected 0.00 loss, actual {float(row['Loss %'])}"
assert tgen_utils_get_loss(row) == 0.000, err_msg
assert tgen_utils_get_loss(row) < 0.1, err_msg
Copy link
Contributor

Choose a reason for hiding this comment

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

tolerances are good but sometimes dangerous
if rate is correct and all
why would any packet get lost?

for example whe na device is freshly booted and FDB is empty if you send too much traffic some devices will drop it.
but that can be fixed in script by sending a "learning" portion to alow FDB to be populated and than send the test traffic and expecting o loss

or if traffic is flowing, there can be packets in flight and tx will not perfectly match rx, but stoppi

any way this < 0.1 is solving the intermittent failures now but may hide real bugs in future.

@mgheorghe mgheorghe merged commit 8c5d72a into dentproject:main Aug 15, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants