X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tests%2Fperf%2FLong_IPv4_Policer_Intel-X520-DA2.robot;h=149050bc3700f957a0559efdc57fac59c2e1d356;hp=d0c0e2109ca9ed349ade8e3b5fb899c95e6ff842;hb=13809a4ee66ec5e9c92ac3600805251791dfcd2b;hpb=cff5ea63c1a32c3e396e4aa47d54cb9e56748d7d diff --git a/tests/perf/Long_IPv4_Policer_Intel-X520-DA2.robot b/tests/perf/Long_IPv4_Policer_Intel-X520-DA2.robot index d0c0e2109c..149050bc37 100644 --- a/tests/perf/Long_IPv4_Policer_Intel-X520-DA2.robot +++ b/tests/perf/Long_IPv4_Policer_Intel-X520-DA2.robot @@ -22,8 +22,13 @@ | ... | L3 | Intel-X520-DA2 | Suite Teardown | 3-node Performance Suite Teardown | Test Setup | Setup all DUTs before test -| Test Teardown | Run Keywords | Remove startup configuration of VPP from all DUTs -| ... | AND | Show vpp trace dump on all DUTs +| Test Teardown | Run Keywords +| ... | Run Keyword If Test Failed +| ... | Traffic should pass with no loss | 10 +| ... | ${min_rate}pps | ${framesize} | 3-node-IPv4 +| ... | fail_on_loss=${False} +| ... | AND | Remove startup configuration of VPP from all DUTs +| ... | AND | Show vpp trace dump on all DUTs | Documentation | *RFC2544: Pkt throughput IPv4 policer test cases* | ... | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology @@ -48,10 +53,10 @@ | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC2698. *** Variables *** +#X520-DA2 bandwidth limit +| ${s_limit} | ${10000000000} | ${cir}= | ${100} -| ${eir}= | ${100} -| ${cb}= | ${100} -| ${eb}= | ${100} +| ${eir}= | ${150} *** Test Cases *** | TC01: 64B NDR binary search - DUT IPv4 2r3c-ca policer - 1thread 1core 1rxq @@ -61,12 +66,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 100kpps. | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR -| | ${framesize}= | Set Variable | 64 -| | ${min_rate}= | Set Variable | 100000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B} +| | ${framesize}= | Set Variable | ${64} +| | ${min_rate}= | Set Variable | ${100000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -85,12 +92,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 100kpps, LT=0.5%. | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 64 -| | ${min_rate}= | Set Variable | 100000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B} +| | ${framesize}= | Set Variable | ${64} +| | ${min_rate}= | Set Variable | ${100000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -110,12 +119,14 @@ | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \ | | ... | Byte frames using binary search start at 10GE linerate, step 10kpps. | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR -| | ${framesize}= | Set Variable | 1518 -| | ${min_rate}= | Set Variable | 10000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B} +| | ${framesize}= | Set Variable | ${1518} +| | ${min_rate}= | Set Variable | ${10000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -134,12 +145,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 10kpps, LT=0.5%. | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 1518 -| | ${min_rate}= | Set Variable | 10000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B} +| | ${framesize}= | Set Variable | ${1518} +| | ${min_rate}= | Set Variable | ${10000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -159,12 +172,14 @@ | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \ | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps. | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR -| | ${framesize}= | Set Variable | 9000 -| | ${min_rate}= | Set Variable | 5000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B} +| | ${framesize}= | Set Variable | ${9000} +| | ${min_rate}= | Set Variable | ${5000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Apply startup configuration on all VPP DUTs @@ -182,12 +197,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \ | | ... | LT=0.5%. | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 9000 -| | ${min_rate}= | Set Variable | 5000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B} +| | ${framesize}= | Set Variable | ${9000} +| | ${min_rate}= | Set Variable | ${5000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Apply startup configuration on all VPP DUTs @@ -207,12 +224,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 100kpps. | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR -| | ${framesize}= | Set Variable | 64 -| | ${min_rate}= | Set Variable | 100000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B} +| | ${framesize}= | Set Variable | ${64} +| | ${min_rate}= | Set Variable | ${100000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -231,12 +250,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 100kpps, LT=0.5%. | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 64 -| | ${min_rate}= | Set Variable | 100000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B} +| | ${framesize}= | Set Variable | ${64} +| | ${min_rate}= | Set Variable | ${100000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -256,12 +277,14 @@ | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \ | | ... | Byte frames using binary search start at 10GE linerate, step 10kpps. | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 1518 -| | ${min_rate}= | Set Variable | 10000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B} +| | ${framesize}= | Set Variable | ${1518} +| | ${min_rate}= | Set Variable | ${10000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -280,12 +303,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 10kpps, LT=0.5%. | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 1518 -| | ${min_rate}= | Set Variable | 10000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B} +| | ${framesize}= | Set Variable | ${1518} +| | ${min_rate}= | Set Variable | ${10000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -305,12 +330,14 @@ | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \ | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps. | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 9000 -| | ${min_rate}= | Set Variable | 5000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B} +| | ${framesize}= | Set Variable | ${9000} +| | ${min_rate}= | Set Variable | ${5000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Apply startup configuration on all VPP DUTs @@ -328,12 +355,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \ | | ... | LT=0.5%. | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 9000 -| | ${min_rate}= | Set Variable | 5000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B} +| | ${framesize}= | Set Variable | ${9000} +| | ${min_rate}= | Set Variable | ${5000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Apply startup configuration on all VPP DUTs @@ -352,12 +381,14 @@ | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 64 \ | | ... | Byte frames using binary search start at 10GE linerate, step 100kpps. | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR -| | ${framesize}= | Set Variable | 64 -| | ${min_rate}= | Set Variable | 100000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B} +| | ${framesize}= | Set Variable | ${64} +| | ${min_rate}= | Set Variable | ${100000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -376,12 +407,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 100kpps, LT=0.5%. | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 64 -| | ${min_rate}= | Set Variable | 100000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B} +| | ${framesize}= | Set Variable | ${64} +| | ${min_rate}= | Set Variable | ${100000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -401,12 +434,14 @@ | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 1518 \ | | ... | Byte frames using binary search start at 10GE linerate, step 10kpps. | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 1518 -| | ${min_rate}= | Set Variable | 10000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B} +| | ${framesize}= | Set Variable | ${1518} +| | ${min_rate}= | Set Variable | ${10000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -425,12 +460,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step \ | | ... | 10kpps, LT=0.5%. | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 1518 -| | ${min_rate}= | Set Variable | 10000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B} +| | ${framesize}= | Set Variable | ${1518} +| | ${min_rate}= | Set Variable | ${10000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Add No Multi Seg to all DUTs @@ -450,12 +487,14 @@ | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 9000 \ | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps. | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 9000 -| | ${min_rate}= | Set Variable | 5000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B} +| | ${framesize}= | Set Variable | ${9000} +| | ${min_rate}= | Set Variable | ${5000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Apply startup configuration on all VPP DUTs @@ -473,12 +512,14 @@ | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \ | | ... | LT=0.5%. | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH -| | ${framesize}= | Set Variable | 9000 -| | ${min_rate}= | Set Variable | 5000 -| | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B} +| | ${framesize}= | Set Variable | ${9000} +| | ${min_rate}= | Set Variable | ${5000} +| | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize} | | ${binary_min}= | Set Variable | ${min_rate} | | ${binary_max}= | Set Variable | ${max_rate} | | ${threshold}= | Set Variable | ${min_rate} +| | Set Test Variable | ${cb} | ${framesize} +| | Set Test Variable | ${eb} | ${framesize} | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs | | And Add PCI devices to DUTs from 3-node single link topology | | And Apply startup configuration on all VPP DUTs