CSIT-524: Traffic generator using python profiles
[csit.git] / tests / perf / 40ge2p1xl710-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 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.robot
16 | Library | resources.libraries.python.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-XL710 | ETH | L2BDMACLRN | BASE | VHOST | VM
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Intel-XL710
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance test with vhost and VM with dpdk-testpmd teardown
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
28 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
29 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
30 | ...
31 | Documentation | *RFC2544: Packet throughput L2BD test cases with vhost*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
37 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
38 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
39 | ... | vhost-user interfaces using 5 cores pinned to cpus on NUMA1 and 2048M
40 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
41 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
42 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p40GE NIC XL710
43 | ... | by Intel.
44 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
45 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
46 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
47 | ... | of packets transmitted. NDR and PDR are discovered for different
48 | ... | Ethernet L2 frame sizes using either binary search or linear search
49 | ... | algorithms with configured starting rate and final step that determines
50 | ... | throughput measurement resolution. Test packets are generated by TG on
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
52 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
54 | ... | payload. MAC addresses are matching MAC addresses of the TG node
55 | ... | interfaces.
56 | ... | *[Ref] Applicable standard specifications:* RFC2544.
57
58 *** Variables ***
59 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
60 | ${s_24.5G} | ${24500000000}
61 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
62 | ${s_18.75Mpps} | ${18750000}
63 # Socket names
64 | ${bd_id1}= | 1
65 | ${bd_id2}= | 2
66 | ${sock1}= | /tmp/sock-1-${bd_id1}
67 | ${sock2}= | /tmp/sock-1-${bd_id2}
68 # Traffic profile:
69 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
70
71 *** Test Cases ***
72 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
75 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
76 | | ... | using binary search start at 40GE linerate, step 10kpps.
77 | | ...
78 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
79 | | ...
80 | | ${framesize}= | Set Variable | ${64}
81 | | ${min_rate}= | Set Variable | ${10000}
82 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
83 | | ${binary_min}= | Set Variable | ${min_rate}
84 | | ${binary_max}= | Set Variable | ${max_rate}
85 | | ${threshold}= | Set Variable | ${min_rate}
86 | | ${dut1_vm_refs}= | Create Dictionary
87 | | ${dut2_vm_refs}= | Create Dictionary
88 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
89 | | And Add PCI devices to DUTs from 3-node single link topology
90 | | And Add No Multi Seg to all DUTs
91 | | And Apply startup configuration on all VPP DUTs
92 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
93 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
94 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
95 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
96 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
97 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
98 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
99 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
100 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
101 | | ... | ${binary_max} | ${traffic_profile}
102 | | ... | ${min_rate} | ${max_rate} | ${threshold}
103
104 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
107 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
108 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
109 | | ...
110 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
111 | | ...
112 | | ${framesize}= | Set Variable | ${64}
113 | | ${min_rate}= | Set Variable | ${10000}
114 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
115 | | ${binary_min}= | Set Variable | ${min_rate}
116 | | ${binary_max}= | Set Variable | ${max_rate}
117 | | ${threshold}= | Set Variable | ${min_rate}
118 | | ${dut1_vm_refs}= | Create Dictionary
119 | | ${dut2_vm_refs}= | Create Dictionary
120 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
121 | | And Add PCI devices to DUTs from 3-node single link topology
122 | | And Add No Multi Seg to all DUTs
123 | | And Apply startup configuration on all VPP DUTs
124 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
125 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
126 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
127 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
128 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
129 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
130 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
131 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
132 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
133 | | ... | ${binary_max} | ${traffic_profile}
134 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
135 | | ... | ${perf_pdr_loss_acceptance_type}
136
137 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
140 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
141 | | ... | using binary search start at 40GE linerate, step 10kpps.
142 | | ...
143 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
144 | | ...
145 | | ${framesize}= | Set Variable | ${1518}
146 | | ${min_rate}= | Set Variable | ${10000}
147 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
148 | | ${binary_min}= | Set Variable | ${min_rate}
149 | | ${binary_max}= | Set Variable | ${max_rate}
150 | | ${threshold}= | Set Variable | ${min_rate}
151 | | ${dut1_vm_refs}= | Create Dictionary
152 | | ${dut2_vm_refs}= | Create Dictionary
153 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
154 | | And Add PCI devices to DUTs from 3-node single link topology
155 | | And Add No Multi Seg to all DUTs
156 | | And Apply startup configuration on all VPP DUTs
157 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
158 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
159 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
160 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
161 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
162 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
163 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
164 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
165 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
166 | | ... | ${binary_max} | ${traffic_profile}
167 | | ... | ${min_rate} | ${max_rate} | ${threshold}
168
169 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
170 | | [Documentation]
171 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
172 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
173 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
174 | | ...
175 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
176 | | ...
177 | | ${framesize}= | Set Variable | ${1518}
178 | | ${min_rate}= | Set Variable | ${10000}
179 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
180 | | ${binary_min}= | Set Variable | ${min_rate}
181 | | ${binary_max}= | Set Variable | ${max_rate}
182 | | ${threshold}= | Set Variable | ${min_rate}
183 | | ${dut1_vm_refs}= | Create Dictionary
184 | | ${dut2_vm_refs}= | Create Dictionary
185 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
186 | | And Add PCI devices to DUTs from 3-node single link topology
187 | | And Add No Multi Seg to all DUTs
188 | | And Apply startup configuration on all VPP DUTs
189 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
190 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
191 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
192 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
193 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
194 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
195 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
196 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
197 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
198 | | ... | ${binary_max} | ${traffic_profile}
199 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
200 | | ... | ${perf_pdr_loss_acceptance_type}
201
202 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
203 | | [Documentation]
204 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
205 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
206 | | ... | size using binary search start at 40GE linerate, step 5kpps.
207 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
208 | | ...
209 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
210 | | ...
211 | | ${framesize}= | Set Variable | IMIX_v4_1
212 | | ${min_rate}= | Set Variable | ${10000}
213 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
214 | | ${binary_min}= | Set Variable | ${min_rate}
215 | | ${binary_max}= | Set Variable | ${max_rate}
216 | | ${threshold}= | Set Variable | ${min_rate}
217 | | ${dut1_vm_refs}= | Create Dictionary
218 | | ${dut2_vm_refs}= | Create Dictionary
219 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
220 | | And Add PCI devices to DUTs from 3-node single link topology
221 | | And Add No Multi Seg to all DUTs
222 | | And Apply startup configuration on all VPP DUTs
223 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
224 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
225 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
226 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
227 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
228 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
229 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
230 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
231 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
232 | | ... | ${binary_max} | ${traffic_profile}
233 | | ... | ${min_rate} | ${max_rate} | ${threshold}
234
235 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
236 | | [Documentation]
237 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
238 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
239 | | ... | size using binary search start at 40GE linerate, step 5kpps, LT=0.5%.
240 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
241 | | ...
242 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
243 | | ...
244 | | ${framesize}= | Set Variable | IMIX_v4_1
245 | | ${min_rate}= | Set Variable | ${10000}
246 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
247 | | ${binary_min}= | Set Variable | ${min_rate}
248 | | ${binary_max}= | Set Variable | ${max_rate}
249 | | ${threshold}= | Set Variable | ${min_rate}
250 | | ${dut1_vm_refs}= | Create Dictionary
251 | | ${dut2_vm_refs}= | Create Dictionary
252 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
253 | | And Add PCI devices to DUTs from 3-node single link topology
254 | | And Apply startup configuration on all VPP DUTs
255 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
256 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
257 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
258 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
259 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
260 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
261 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
262 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
263 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
264 | | ... | ${binary_max} | ${traffic_profile}
265 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
266 | | ... | ${perf_pdr_loss_acceptance_type}
267
268 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
269 | | [Documentation]
270 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
271 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
272 | | ... | using binary search start at 40GE linerate, step 10kpps.
273 | | ...
274 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
275 | | ...
276 | | ${framesize}= | Set Variable | ${64}
277 | | ${min_rate}= | Set Variable | ${10000}
278 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
279 | | ${binary_min}= | Set Variable | ${min_rate}
280 | | ${binary_max}= | Set Variable | ${max_rate}
281 | | ${threshold}= | Set Variable | ${min_rate}
282 | | ${dut1_vm_refs}= | Create Dictionary
283 | | ${dut2_vm_refs}= | Create Dictionary
284 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
285 | | And Add PCI devices to DUTs from 3-node single link topology
286 | | And Add No Multi Seg to all DUTs
287 | | And Apply startup configuration on all VPP DUTs
288 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
289 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
290 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
291 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
292 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
293 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
294 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
295 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
296 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
297 | | ... | ${binary_max} | ${traffic_profile}
298 | | ... | ${min_rate} | ${max_rate} | ${threshold}
299
300 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
301 | | [Documentation]
302 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
303 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
304 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
305 | | ...
306 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
307 | | ...
308 | | ${framesize}= | Set Variable | ${64}
309 | | ${min_rate}= | Set Variable | ${10000}
310 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
311 | | ${binary_min}= | Set Variable | ${min_rate}
312 | | ${binary_max}= | Set Variable | ${max_rate}
313 | | ${threshold}= | Set Variable | ${min_rate}
314 | | ${dut1_vm_refs}= | Create Dictionary
315 | | ${dut2_vm_refs}= | Create Dictionary
316 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
317 | | And Add PCI devices to DUTs from 3-node single link topology
318 | | And Add No Multi Seg to all DUTs
319 | | And Apply startup configuration on all VPP DUTs
320 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
321 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
322 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
323 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
324 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
325 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
326 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
327 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
328 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
329 | | ... | ${binary_max} | ${traffic_profile}
330 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
331 | | ... | ${perf_pdr_loss_acceptance_type}
332
333 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
334 | | [Documentation]
335 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
336 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
337 | | ... | using binary search start at 40GE linerate, step 10kpps.
338 | | ...
339 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
340 | | ...
341 | | ${framesize}= | Set Variable | ${1518}
342 | | ${min_rate}= | Set Variable | ${10000}
343 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
344 | | ${binary_min}= | Set Variable | ${min_rate}
345 | | ${binary_max}= | Set Variable | ${max_rate}
346 | | ${threshold}= | Set Variable | ${min_rate}
347 | | ${dut1_vm_refs}= | Create Dictionary
348 | | ${dut2_vm_refs}= | Create Dictionary
349 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
350 | | And Add PCI devices to DUTs from 3-node single link topology
351 | | And Add No Multi Seg to all DUTs
352 | | And Apply startup configuration on all VPP DUTs
353 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
354 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
355 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
356 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
357 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
358 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
359 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
360 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
361 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
362 | | ... | ${binary_max} | ${traffic_profile}
363 | | ... | ${min_rate} | ${max_rate} | ${threshold}
364
365 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
366 | | [Documentation]
367 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
368 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
369 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
370 | | ...
371 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
372 | | ...
373 | | ${framesize}= | Set Variable | ${1518}
374 | | ${min_rate}= | Set Variable | ${10000}
375 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
376 | | ${binary_min}= | Set Variable | ${min_rate}
377 | | ${binary_max}= | Set Variable | ${max_rate}
378 | | ${threshold}= | Set Variable | ${min_rate}
379 | | ${dut1_vm_refs}= | Create Dictionary
380 | | ${dut2_vm_refs}= | Create Dictionary
381 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
382 | | And Add PCI devices to DUTs from 3-node single link topology
383 | | And Add No Multi Seg to all DUTs
384 | | And Apply startup configuration on all VPP DUTs
385 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
386 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
387 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
388 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
389 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
390 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
391 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
392 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
393 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
394 | | ... | ${binary_max} | ${traffic_profile}
395 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
396 | | ... | ${perf_pdr_loss_acceptance_type}
397
398 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
399 | | [Documentation]
400 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
401 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
402 | | ... | size using binary search start at 40GE linerate, step 5kpps.
403 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
404 | | ...
405 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
406 | | ...
407 | | ${framesize}= | Set Variable | IMIX_v4_1
408 | | ${min_rate}= | Set Variable | ${10000}
409 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
410 | | ${binary_min}= | Set Variable | ${min_rate}
411 | | ${binary_max}= | Set Variable | ${max_rate}
412 | | ${threshold}= | Set Variable | ${min_rate}
413 | | ${dut1_vm_refs}= | Create Dictionary
414 | | ${dut2_vm_refs}= | Create Dictionary
415 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
416 | | And Add PCI devices to DUTs from 3-node single link topology
417 | | And Add No Multi Seg to all DUTs
418 | | And Apply startup configuration on all VPP DUTs
419 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
420 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
421 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
422 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
423 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
424 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
425 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
426 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
427 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
428 | | ... | ${binary_max} | ${traffic_profile}
429 | | ... | ${min_rate} | ${max_rate} | ${threshold}
430
431 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
432 | | [Documentation]
433 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
434 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
435 | | ... | size using binary search start at 40GE linerate, step 5kpps, LT=0.5%.
436 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
437 | | ...
438 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
439 | | ...
440 | | ${framesize}= | Set Variable | IMIX_v4_1
441 | | ${min_rate}= | Set Variable | ${10000}
442 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
443 | | ${binary_min}= | Set Variable | ${min_rate}
444 | | ${binary_max}= | Set Variable | ${max_rate}
445 | | ${threshold}= | Set Variable | ${min_rate}
446 | | ${dut1_vm_refs}= | Create Dictionary
447 | | ${dut2_vm_refs}= | Create Dictionary
448 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
449 | | And Add PCI devices to DUTs from 3-node single link topology
450 | | And Add No Multi Seg to all DUTs
451 | | And Apply startup configuration on all VPP DUTs
452 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
453 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
454 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
455 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
456 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
457 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
458 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
459 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
460 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
461 | | ... | ${binary_max} | ${traffic_profile}
462 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
463 | | ... | ${perf_pdr_loss_acceptance_type}
464
465 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
466 | | [Documentation]
467 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
468 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames\
469 | | ... | using binary search start at 40GE linerate, step 10kpps.
470 | | ...
471 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
472 | | ...
473 | | ${framesize}= | Set Variable | ${64}
474 | | ${min_rate}= | Set Variable | ${10000}
475 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
476 | | ${binary_min}= | Set Variable | ${min_rate}
477 | | ${binary_max}= | Set Variable | ${max_rate}
478 | | ${threshold}= | Set Variable | ${min_rate}
479 | | ${dut1_vm_refs}= | Create Dictionary
480 | | ${dut2_vm_refs}= | Create Dictionary
481 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
482 | | And Add PCI devices to DUTs from 3-node single link topology
483 | | And Add No Multi Seg to all DUTs
484 | | And Apply startup configuration on all VPP DUTs
485 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
486 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
487 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
488 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
489 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
490 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
491 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
492 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
493 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
494 | | ... | ${binary_max} | ${traffic_profile}
495 | | ... | ${min_rate} | ${max_rate} | ${threshold}
496
497 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
498 | | [Documentation]
499 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
500 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames\
501 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
502 | | ...
503 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
504 | | ...
505 | | ${framesize}= | Set Variable | ${64}
506 | | ${min_rate}= | Set Variable | ${10000}
507 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
508 | | ${binary_min}= | Set Variable | ${min_rate}
509 | | ${binary_max}= | Set Variable | ${max_rate}
510 | | ${threshold}= | Set Variable | ${min_rate}
511 | | ${dut1_vm_refs}= | Create Dictionary
512 | | ${dut2_vm_refs}= | Create Dictionary
513 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
514 | | And Add PCI devices to DUTs from 3-node single link topology
515 | | And Add No Multi Seg to all DUTs
516 | | And Apply startup configuration on all VPP DUTs
517 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
518 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
519 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
520 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
521 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
522 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
523 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
524 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
525 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
526 | | ... | ${binary_max} | ${traffic_profile}
527 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
528 | | ... | ${perf_pdr_loss_acceptance_type}
529
530 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
531 | | [Documentation]
532 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
533 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames\
534 | | ... | using binary search start at 40GE linerate, step 10kpps.
535 | | ...
536 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
537 | | ...
538 | | ${framesize}= | Set Variable | ${1518}
539 | | ${min_rate}= | Set Variable | ${10000}
540 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
541 | | ${binary_min}= | Set Variable | ${min_rate}
542 | | ${binary_max}= | Set Variable | ${max_rate}
543 | | ${threshold}= | Set Variable | ${min_rate}
544 | | ${dut1_vm_refs}= | Create Dictionary
545 | | ${dut2_vm_refs}= | Create Dictionary
546 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
547 | | And Add PCI devices to DUTs from 3-node single link topology
548 | | And Add No Multi Seg to all DUTs
549 | | And Apply startup configuration on all VPP DUTs
550 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
551 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
552 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
553 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
554 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
555 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
556 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
557 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
558 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
559 | | ... | ${binary_max} | ${traffic_profile}
560 | | ... | ${min_rate} | ${max_rate} | ${threshold}
561
562 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
563 | | [Documentation]
564 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
565 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames\
566 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
567 | | ...
568 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
569 | | ...
570 | | ${framesize}= | Set Variable | ${1518}
571 | | ${min_rate}= | Set Variable | ${10000}
572 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
573 | | ${binary_min}= | Set Variable | ${min_rate}
574 | | ${binary_max}= | Set Variable | ${max_rate}
575 | | ${threshold}= | Set Variable | ${min_rate}
576 | | ${dut1_vm_refs}= | Create Dictionary
577 | | ${dut2_vm_refs}= | Create Dictionary
578 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
579 | | And Add PCI devices to DUTs from 3-node single link topology
580 | | And Add No Multi Seg to all DUTs
581 | | And Apply startup configuration on all VPP DUTs
582 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
583 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
584 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
585 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
586 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
587 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
588 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
589 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
590 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
591 | | ... | ${binary_max} | ${traffic_profile}
592 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
593 | | ... | ${perf_pdr_loss_acceptance_type}
594
595 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
596 | | [Documentation]
597 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
598 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
599 | | ... | size using binary search start at 40GE linerate, step 5kpps.
600 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
601 | | ...
602 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
603 | | ...
604 | | ${framesize}= | Set Variable | IMIX_v4_1
605 | | ${min_rate}= | Set Variable | ${10000}
606 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
607 | | ${binary_min}= | Set Variable | ${min_rate}
608 | | ${binary_max}= | Set Variable | ${max_rate}
609 | | ${threshold}= | Set Variable | ${min_rate}
610 | | ${dut1_vm_refs}= | Create Dictionary
611 | | ${dut2_vm_refs}= | Create Dictionary
612 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
613 | | And Add PCI devices to DUTs from 3-node single link topology
614 | | And Add No Multi Seg to all DUTs
615 | | And Apply startup configuration on all VPP DUTs
616 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
617 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
618 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
619 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
620 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
621 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
622 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
623 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
624 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
625 | | ... | ${binary_max} | ${traffic_profile}
626 | | ... | ${min_rate} | ${max_rate} | ${threshold}
627
628 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
629 | | [Documentation]
630 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
631 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
632 | | ... | size using binary search start at 40GE linerate, step 5kpps, LT=0.5%.
633 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
634 | | ...
635 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
636 | | ...
637 | | ${framesize}= | Set Variable | IMIX_v4_1
638 | | ${min_rate}= | Set Variable | ${10000}
639 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
640 | | ${binary_min}= | Set Variable | ${min_rate}
641 | | ${binary_max}= | Set Variable | ${max_rate}
642 | | ${threshold}= | Set Variable | ${min_rate}
643 | | ${dut1_vm_refs}= | Create Dictionary
644 | | ${dut2_vm_refs}= | Create Dictionary
645 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
646 | | And Add PCI devices to DUTs from 3-node single link topology
647 | | And Add No Multi Seg to all DUTs
648 | | And Apply startup configuration on all VPP DUTs
649 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
650 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
651 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
652 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
653 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
654 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
655 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
656 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
657 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
658 | | ... | ${binary_max} | ${traffic_profile}
659 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
660 | | ... | ${perf_pdr_loss_acceptance_type}