467db2ece8d9427cb5113583e05731f4dbec2d30
[csit.git] / tests / dpdk / perf / 2n1l-10ge2p1x710-eth-l2xcbase-testpmd-ndrpdr.robot
1 # Copyright (c) 2021 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/dpdk/default.robot
17 | Library | resources.libraries.python.DPDK.DPDKTools
18 |
19 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | HW_ENV | PERFTEST | NDRPDR | 1NUMA
20 | ... | NIC_Intel-X710 | DPDK | ETH | L2XCFWD | BASE
21 | ... | DRV_VFIO_PCI
22 | ... | RXQ_SIZE_1024 | TXQ_SIZE_1024
23 | ... | eth-l2xcbase-testpmd
24 |
25 | Suite Setup | Setup suite topology interfaces | performance | dpdk
26 | Suite Teardown | Tear down suite | performance | dpdk
27 |
28 | Test Template | Local Template
29 |
30 | Documentation | **Raw results L2 routing test cases**
31 | ... |
32 | ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \
33 | ... | with single links between nodes.
34 | ... |
35 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 for L2 frame forwarding.
36 | ... |
37 | ... | - **[Cfg] DUT configuration:** DUT1 run the DPDK testpmd \
38 | ... | application and use the io forwarding mode. DUT1 tested with \
39 | ... | with ${nic_name}.
40 | ... |
41 | ... | - **[Ver] TG verification:** TG finds and reports throughput NDR (Non \
42 | ... | Drop Rate) with zero packet loss tolerance and throughput PDR \
43 | ... | (Partial Drop Rate) with non-zero packet loss tolerance (LT) \
44 | ... | expressed in percentage of packets transmitted. NDR and PDR are \
45 | ... | discovered for different Ethernet L2 frame sizes using MLRsearch \
46 | ... | library.
47 | ... | Test packets are generated by TG on \
48 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups \
49 | ... | (flow-group per direction, 254 flows per flow-group) with all \
50 | ... | packets containing Ethernet header, IPv4 header with static payload \
51 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
52
53 *** Variables ***
54 | ${crypto_type}= | ${None}
55 | ${nic_name}= | Intel-X710
56 | ${nic_driver}= | vfio-pci
57 | ${nic_rxq_size}= | 1024
58 | ${nic_txq_size}= | 1024
59 | ${nic_pfs}= | 2
60 | ${nic_vfs}= | 0
61 | ${osi_layer}= | L2
62 | ${overhead}= | ${0}
63 # Traffic profile:
64 | ${traffic_profile}= | trex-stl-3n-ethip4-ip4src254
65
66 *** Keywords ***
67 | Local Template
68 | | [Documentation]
69 | | ... | - **[Cfg]** DUT runs L2 frame forwarding config. \
70 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
71 | | ... | - **[Ver]** Measure NDR and PDR values using MLRsearch algorithm.
72 | |
73 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
74 | |
75 | | Set Test Variable | \${frame_size}
76 | |
77 | | Given Set Max Rate And Jumbo
78 | | And Pre-initialize layer driver | ${nic_driver}
79 | | When Start testpmd on all DUTs | ${phy_cores} | ${rxq} | ${jumbo}
80 | | Then Find NDR and PDR intervals using optimized search
81
82 *** Test Cases ***
83 | 64B-1c-eth-l2xcbase-testpmd-ndrpdr
84 | | [Tags] | 64B | 1C
85 | | frame_size=${64} | phy_cores=${1}
86
87 | 64B-2c-eth-l2xcbase-testpmd-ndrpdr
88 | | [Tags] | 64B | 2C
89 | | frame_size=${64} | phy_cores=${2}
90
91 | 64B-4c-eth-l2xcbase-testpmd-ndrpdr
92 | | [Tags] | 64B | 4C
93 | | frame_size=${64} | phy_cores=${4}
94
95 | 1518B-1c-eth-l2xcbase-testpmd-ndrpdr
96 | | [Tags] | 1518B | 1C
97 | | frame_size=${1518} | phy_cores=${1}
98
99 | 1518B-2c-eth-l2xcbase-testpmd-ndrpdr
100 | | [Tags] | 1518B | 2C
101 | | frame_size=${1518} | phy_cores=${2}
102
103 | 1518B-4c-eth-l2xcbase-testpmd-ndrpdr
104 | | [Tags] | 1518B | 4C
105 | | frame_size=${1518} | phy_cores=${4}
106
107 | 9000B-1c-eth-l2xcbase-testpmd-ndrpdr
108 | | [Tags] | 9000B | 1C
109 | | frame_size=${9000} | phy_cores=${1}
110
111 | 9000B-2c-eth-l2xcbase-testpmd-ndrpdr
112 | | [Tags] | 9000B | 2C
113 | | frame_size=${9000} | phy_cores=${2}
114
115 | 9000B-4c-eth-l2xcbase-testpmd-ndrpdr
116 | | [Tags] | 9000B | 4C
117 | | frame_size=${9000} | phy_cores=${4}
118
119 | IMIX-1c-eth-l2xcbase-testpmd-ndrpdr
120 | | [Tags] | IMIX | 1C
121 | | frame_size=IMIX_v4_1 | phy_cores=${1}
122
123 | IMIX-2c-eth-l2xcbase-testpmd-ndrpdr
124 | | [Tags] | IMIX | 2C
125 | | frame_size=IMIX_v4_1 | phy_cores=${2}
126
127 | IMIX-4c-eth-l2xcbase-testpmd-ndrpdr
128 | | [Tags] | IMIX | 4C
129 | | frame_size=IMIX_v4_1 | phy_cores=${4}