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

[Snappi]: snappi_tests/multidut: test_global_pause case failure on 8800 cross LC #14807

Open
sdszhang opened this issue Oct 1, 2024 · 1 comment

Comments

@sdszhang
Copy link
Contributor

sdszhang commented Oct 1, 2024

Issue Description

When running snappi tests on cross LC scenario, packet drops are observed.

Failed test cases:
test_global_pause

snappi_tests/multidut/pfc/test_multidut_global_pause_with_snappi.py::test_global_pause[multidut_port_info0]
-------------------------------- live log call ---------------------------------
FAILED                                                                   [100%]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
......
            exp_bg_flow_rx_pkts = bg_flow_config["flow_rate_percent"] / 100.0 * speed_gbps \
                * 1e9 * bg_flow_config["flow_dur_sec"] / 8.0 / bg_flow_config["flow_pkt_size"]
            deviation = (rx_frames - exp_bg_flow_rx_pkts) / float(exp_bg_flow_rx_pkts)

>           pytest_assert(tx_frames == rx_frames,
                          "{} should not have any dropped packet".format(metric.name))
E           Failed: Background Flow Prio 1 should not have any dropped packet

bg_flow_config = {'flow_delay_sec': 4, 'flow_dur_sec': 19, 'flow_name': 'Background Flow', 'flow_pkt_count': None, ...}
deviation  = -0.22155717614035086
exp_bg_flow_rx_pkts = 83496093.75
flow_metrics = <snappi.snappi.FlowMetricIter object at 0x7fa18a1bd580>
metric     = <snappi.snappi.FlowMetric object at 0x7fa18899a780>
rx_frames  = 64996935
snappi_extra_params = <tests.common.snappi_tests.snappi_test_params.SnappiTestParams object at 0x7fa188da3460>
speed_gbps = 400
tolerance  = 0.05
tx_frames  = 81896551

Results you see

FAILED

Results you expected to see

PASS

Is it platform specific

generic

Relevant log output

Counters on ingress port. TX drop seen on backplane port.

admin@xxxx-8800-lc4-1:~$ show interface count -d all | grep -E "256|BP640"
   Ethernet256        U  7,607,604,667  27512.09 MB/s     55.02%         0         1         0            214   2908.91 KB/s      0.01%         0            0         0
Ethernet-BP640        U        730,952   1328.96 KB/s      0.01%         0        99         0  6,884,207,638  23117.84 MB/s     92.47%         0  724,543,303         0
admin@xxxx-8800-lc4-1:~$ show interface count -d all | grep -E "256|BP640"
   Ethernet256        U  7,834,882,007  30227.30 MB/s     60.45%         0         1         0            215   2947.28 KB/s      0.01%         0            0         0
Ethernet-BP640        U        731,908   1329.18 KB/s      0.01%         0        99         0  7,075,999,864  25525.13 MB/s    102.10%         0  755,795,349         0
admin@svcstr2-8800-lc4-1:~$

Output of show version

No response

Attach files (if any)

No response

@sdszhang
Copy link
Contributor Author

sdszhang commented Oct 1, 2024

@rraghav-cisco can you look into this? Seems we need the udp flow change here too.

@sdszhang sdszhang changed the title [Snappi]: [Snappi]: snappi_tests/multidut: test_global_pause case failure on 8800 cross LC Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant