CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / vm_vhost / 10ge2p1x520-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrpdrdisc.robot
1 # Copyright (c) 2018 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/performance/performance_setup.robot
16 | Library | resources.libraries.python.QemuUtils
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | BASE | VHOST | VM | VHOST_1024
19 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | Tear down 3-node performance topology
22 | Test Setup | Set up performance test
23 | Test Teardown | Run Keywords
24 | ... | Show Bridge Domain Data On All DUTs
25 | ... | AND | Tear down performance test with vhost and VM with dpdk-testpmd
26 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
27 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
28 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
29 | Documentation | *RFC2544: Pkt throughput L2BD test cases with vhost*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
35 | ... | domains and MAC learning enabled. Qemu Guests are connected to VPP via
36 | ... | vhost-user interfaces. Guests are running DPDK testpmd interconnecting
37 | ... | vhost-user interfaces using 5 cores pinned to cpus 6-10 and 11-15 and
38 | ... | 2048M memory. Testpmd is using socket-mem=1024M (512x2M hugepages),
39 | ... | 5 cores (1 main core and 4 cores dedicated for io), forwarding mode is
40 | ... | set to io, rxd/txd=1024, burst=64. DUT1, DUT2 are tested with 2p10GE NIC
41 | ... | X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
45 | ... | of packets transmitted. NDR and PDR are discovered for different
46 | ... | Ethernet L2 frame sizes using either binary search or linear search
47 | ... | algorithms with configured starting rate and final step that determines
48 | ... | throughput measurement resolution. Test packets are generated by TG on
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
50 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 | ${perf_qemu_qsz}= | 1024
58 # X520-DA2 bandwidth limit
59 | ${s_limit}= | ${10000000000}
60 # CPU settings
61 | ${system_cpus}= | ${1}
62 | ${vpp_cpus}= | ${5}
63 | ${vm_cpus}= | ${5}
64 # Traffic profile:
65 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
66
67 *** Keywords ***
68 | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs L2BD switching config with ${wt} thread, ${wt} phy\
71 | | ... | core, ${rxq} receive queue per NIC port.
72 | | ... | [Ver] Find NDR for ${framesize} frames using binary search start at
73 | | ... | 10GE linerate, step 10kpps.
74 | | ...
75 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
76 | | ...
77 | | # Test Variables required for test and test teardown
78 | | Set Test Variable | ${framesize}
79 | | Set Test Variable | ${min_rate}
80 | | ${get_framesize}= | Get Frame Size | ${framesize}
81 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
82 | | ${binary_min}= | Set Variable | ${min_rate}
83 | | ${binary_max}= | Set Variable | ${max_rate}
84 | | ${threshold}= | Set Variable | ${min_rate}
85 | | ${dut1_vm_refs}= | Create Dictionary
86 | | ${dut2_vm_refs}= | Create Dictionary
87 | | Set Test Variable | ${dut1_vm_refs}
88 | | Set Test Variable | ${dut2_vm_refs}
89 | | ${jumbo_frames}= | Set Variable If | ${get_framesize} < ${1522}
90 | | ... | ${False} | ${True}
91 | | Set Test Variable | ${jumbo_frames}
92 | | ...
93 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
94 | | And Add PCI devices to all DUTs
95 | | And Run Keyword If | ${get_framesize} < ${1522}
96 | | ... | Add no multi seg to all DUTs
97 | | And Apply startup configuration on all VPP DUTs
98 | | When Initialize L2 bridge domains with Vhost-User for '2' VMs in 3-node circular topology
99 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
100 | | Then Run Keyword If | '${search_type}' == 'NDR'
101 | | ... | Find NDR using binary search and pps
102 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
103 | | ... | ${min_rate} | ${max_rate} | ${threshold}
104 | | ... | ELSE IF | '${search_type}' == 'PDR'
105 | | ... | Find PDR using binary search and pps
106 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
107 | | ... | ${min_rate} | ${max_rate} | ${threshold}
108 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
109
110 *** Test Cases ***
111 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core, \
114 | | ... | 1 receive queue per NIC port.
115 | | ... | [Ver] Find NDR for 64 Byte frames \
116 | | ... | using binary search start at 10GE linerate, step 10kpps.
117 | | ...
118 | | [Tags] | 64B | 1C | NDRDISC
119 | | ...
120 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
121 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=NDR
122
123 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core, \
126 | | ... | 1 receive queue per NIC port.
127 | | ... | [Ver] Find PDR for 64 Byte frames \
128 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
129 | | ...
130 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
131 | | ...
132 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
133 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=PDR
134
135 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core, \
138 | | ... | 1 receive queue per NIC port.
139 | | ... | [Ver] Find NDR for 1518 Byte frames \
140 | | ... | using binary search start at 10GE linerate, step 10kpps.
141 | | ...
142 | | [Tags] | 1518B | 1C | NDRDISC
143 | | ...
144 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
145 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=NDR
146
147 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core, \
150 | | ... | 1 receive queue per NIC port.
151 | | ... | [Ver] Find PDR for 1518 Byte frames \
152 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
153 | | ...
154 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
155 | | ...
156 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
157 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=PDR
158
159 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core, \
162 | | ... | 1 receive queue per NIC port.
163 | | ... | [Ver] Find NDR for IMIX_v4_1 frame \
164 | | ... | size using binary search start at 10GE linerate, step 10kpps.
165 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
166 | | ...
167 | | [Tags] | IMIX | 1C | NDRDISC
168 | | ...
169 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
170 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
171
172 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core, \
175 | | ... | 1 receive queue per NIC port.
176 | | ... | [Ver] Find PDR for IMIX_v4_1 frame \
177 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
178 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
179 | | ...
180 | | [Tags] | IMIX | 1C | PDRDISC | SKIP_PATCH
181 | | ...
182 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
183 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR
184
185 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores, \
188 | | ... | 1 receive queue per NIC port.
189 | | ... | [Ver] Find NDR for 64 Byte frames \
190 | | ... | using binary search start at 10GE linerate, step 10kpps.
191 | | ...
192 | | [Tags] | 64B | 2C | NDRDISC
193 | | ...
194 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
195 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=NDR
196
197 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores, \
200 | | ... | 1 receive queue per NIC port.
201 | | ... | [Ver] Find PDR for 64 Byte frames \
202 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
203 | | ...
204 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
205 | | ...
206 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
207 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=PDR
208
209 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores, \
212 | | ... | 1 receive queue per NIC port.
213 | | ... | [Ver] Find NDR for 1518 Byte frames \
214 | | ... | using binary search start at 10GE linerate, step 10kpps.
215 | | ...
216 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
217 | | ...
218 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
219 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=NDR
220
221 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores, \
224 | | ... | 1 receive queue per NIC port.
225 | | ... | [Ver] Find PDR for 1518 Byte frames \
226 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
227 | | ...
228 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
229 | | ...
230 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
231 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=PDR
232
233 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores, \
236 | | ... | 1 receive queue per NIC port.
237 | | ... | [Ver] Find NDR for IMIX_v4_1 frame \
238 | | ... | size using binary search start at 10GE linerate, step 10kpps.
239 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
240 | | ...
241 | | [Tags] | IMIX | 2C | NDRDISC | SKIP_PATCH
242 | | ...
243 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
244 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
245
246 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
247 | | [Documentation]
248 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores, \
249 | | ... | 1 receive queue per NIC port.
250 | | ... | [Ver] Find PDR for IMIX_v4_1 frame \
251 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
252 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
253 | | ...
254 | | [Tags] | IMIX | 2C | PDRDISC | SKIP_PATCH
255 | | ...
256 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
257 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR
258
259 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
260 | | [Documentation]
261 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores, \
262 | | ... | 2 receive queues per NIC port.
263 | | ... | [Ver] Find NDR for 64 Byte frames \
264 | | ... | using binary search start at 10GE linerate, step 10kpps.
265 | | ...
266 | | [Tags] | 64B | 4C | NDRDISC
267 | | ...
268 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
269 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${10000} | search_type=NDR
270
271 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
272 | | [Documentation]
273 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores, \
274 | | ... | 2 receive queues per NIC port.
275 | | ... | [Ver] Find PDR for 64 Byte frames \
276 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
277 | | ...
278 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
279 | | ...
280 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
281 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${10000} | search_type=PDR
282
283 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
284 | | [Documentation]
285 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores, \
286 | | ... | 2 receive queues per NIC port.
287 | | ... | [Ver] Find NDR for 1518 Byte frames \
288 | | ... | using binary search start at 10GE linerate, step 10kpps.
289 | | ...
290 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
291 | | ...
292 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
293 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${10000} | search_type=NDR
294
295 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
296 | | [Documentation]
297 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores, \
298 | | ... | 2 receive queues per NIC port.
299 | | ... | [Ver] Find PDR for 1518 Byte frames \
300 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
301 | | ...
302 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
303 | | ...
304 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
305 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${10000} | search_type=PDR
306
307 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-ndrdisc
308 | | [Documentation]
309 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores, \
310 | | ... | 2 receive queues per NIC port.
311 | | ... | [Ver] Find NDR for IMIX_v4_1 frame \
312 | | ... | size using binary search start at 10GE linerate, step 10kpps.
313 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
314 | | ...
315 | | [Tags] | IMIX | 4C | NDRDISC | SKIP_PATCH
316 | | ...
317 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
318 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
319
320 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm-pdrdisc
321 | | [Documentation]
322 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores, \
323 | | ... | 2 receive queues per NIC port.
324 | | ... | [Ver] Find PDR for IMIX_v4_1 frame \
325 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
326 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
327 | | ...
328 | | [Tags] | IMIX | 4C | PDRDISC | SKIP_PATCH
329 | | ...
330 | | [Template] | Discover NDR or PDR for eth-l2bdbasemaclrn-eth-4vhostvr1024-2vm
331 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR