4649404b7725fdba84d4de851318d143e012ae4e
[csit.git] / tests / perf / 10ge2p1x710-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-X710 | ETH | L2BDMACLRN | BASE | VHOST | VM
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X710
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
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: Pkt 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 2p10GE NIC X710
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 # X710 bandwidth limit
60 | ${s_limit} | ${10000000000}
61 # Socket names
62 | ${bd_id1}= | 1
63 | ${bd_id2}= | 2
64 | ${sock1}= | /tmp/sock-1-${bd_id1}
65 | ${sock2}= | /tmp/sock-1-${bd_id2}
66 # Traffic profile:
67 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
68
69 *** Test Cases ***
70 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
73 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
74 | | ... | using binary search start at 10GE linerate, step 10kpps.
75 | | ...
76 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
77 | | ...
78 | | ${framesize}= | Set Variable | ${64}
79 | | ${min_rate}= | Set Variable | ${10000}
80 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
81 | | ${binary_min}= | Set Variable | ${min_rate}
82 | | ${binary_max}= | Set Variable | ${max_rate}
83 | | ${threshold}= | Set Variable | ${min_rate}
84 | | ${dut1_vm_refs}= | Create Dictionary
85 | | ${dut2_vm_refs}= | Create Dictionary
86 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
87 | | And Add PCI devices to DUTs in 3-node single link topology
88 | | And Add no multi seg to all DUTs
89 | | And Apply startup configuration on all VPP DUTs
90 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
91 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
92 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
93 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
94 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
95 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
96 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
97 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
98 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
99 | | ... | ${binary_max} | ${traffic_profile}
100 | | ... | ${min_rate} | ${max_rate} | ${threshold}
101
102 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
105 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
106 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
107 | | ...
108 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
109 | | ...
110 | | ${framesize}= | Set Variable | ${64}
111 | | ${min_rate}= | Set Variable | ${10000}
112 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
113 | | ${binary_min}= | Set Variable | ${min_rate}
114 | | ${binary_max}= | Set Variable | ${max_rate}
115 | | ${threshold}= | Set Variable | ${min_rate}
116 | | ${dut1_vm_refs}= | Create Dictionary
117 | | ${dut2_vm_refs}= | Create Dictionary
118 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
119 | | And Add PCI devices to DUTs in 3-node single link topology
120 | | And Add no multi seg to all DUTs
121 | | And Apply startup configuration on all VPP DUTs
122 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
123 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
124 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
125 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
126 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
127 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
128 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
129 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
130 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
131 | | ... | ${binary_max} | ${traffic_profile}
132 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
133 | | ... | ${perf_pdr_loss_acceptance_type}
134
135 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
138 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
139 | | ... | using binary search start at 10GE linerate, step 10kpps.
140 | | ...
141 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
142 | | ...
143 | | ${framesize}= | Set Variable | ${1518}
144 | | ${min_rate}= | Set Variable | ${10000}
145 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
146 | | ${binary_min}= | Set Variable | ${min_rate}
147 | | ${binary_max}= | Set Variable | ${max_rate}
148 | | ${threshold}= | Set Variable | ${min_rate}
149 | | ${dut1_vm_refs}= | Create Dictionary
150 | | ${dut2_vm_refs}= | Create Dictionary
151 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
152 | | And Add PCI devices to DUTs in 3-node single link topology
153 | | And Add no multi seg to all DUTs
154 | | And Apply startup configuration on all VPP DUTs
155 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
156 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
157 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
158 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
159 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
160 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
161 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
162 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
163 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
164 | | ... | ${binary_max} | ${traffic_profile}
165 | | ... | ${min_rate} | ${max_rate} | ${threshold}
166
167 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
170 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
171 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
172 | | ...
173 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
174 | | ...
175 | | ${framesize}= | Set Variable | ${1518}
176 | | ${min_rate}= | Set Variable | ${10000}
177 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
178 | | ${binary_min}= | Set Variable | ${min_rate}
179 | | ${binary_max}= | Set Variable | ${max_rate}
180 | | ${threshold}= | Set Variable | ${min_rate}
181 | | ${dut1_vm_refs}= | Create Dictionary
182 | | ${dut2_vm_refs}= | Create Dictionary
183 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
184 | | And Add PCI devices to DUTs in 3-node single link topology
185 | | And Add no multi seg to all DUTs
186 | | And Apply startup configuration on all VPP DUTs
187 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
188 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
189 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
190 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
191 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
192 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
193 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
194 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
195 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
196 | | ... | ${binary_max} | ${traffic_profile}
197 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
198 | | ... | ${perf_pdr_loss_acceptance_type}
199
200 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
201 | | [Documentation]
202 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
203 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
204 | | ... | size using binary search start at 10GE linerate, step 5kpps.
205 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
206 | | ...
207 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
208 | | ...
209 | | ${framesize}= | Set Variable | IMIX_v4_1
210 | | ${min_rate}= | Set Variable | ${10000}
211 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
212 | | ${binary_min}= | Set Variable | ${min_rate}
213 | | ${binary_max}= | Set Variable | ${max_rate}
214 | | ${threshold}= | Set Variable | ${min_rate}
215 | | ${dut1_vm_refs}= | Create Dictionary
216 | | ${dut2_vm_refs}= | Create Dictionary
217 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
218 | | And Add PCI devices to DUTs in 3-node single link topology
219 | | And Add no multi seg to all DUTs
220 | | And Apply startup configuration on all VPP DUTs
221 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
222 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
223 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
224 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
225 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
226 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
227 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
228 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
229 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
230 | | ... | ${binary_max} | ${traffic_profile}
231 | | ... | ${min_rate} | ${max_rate} | ${threshold}
232
233 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
236 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
237 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
238 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
239 | | ...
240 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
241 | | ...
242 | | ${framesize}= | Set Variable | IMIX_v4_1
243 | | ${min_rate}= | Set Variable | ${10000}
244 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
245 | | ${binary_min}= | Set Variable | ${min_rate}
246 | | ${binary_max}= | Set Variable | ${max_rate}
247 | | ${threshold}= | Set Variable | ${min_rate}
248 | | ${dut1_vm_refs}= | Create Dictionary
249 | | ${dut2_vm_refs}= | Create Dictionary
250 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
251 | | And Add PCI devices to DUTs in 3-node single link topology
252 | | And Apply startup configuration on all VPP DUTs
253 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
254 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
255 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
256 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
257 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
258 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
259 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
260 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
261 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
262 | | ... | ${binary_max} | ${traffic_profile}
263 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
264 | | ... | ${perf_pdr_loss_acceptance_type}
265
266 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
267 | | [Documentation]
268 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
269 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
270 | | ... | using binary search start at 10GE linerate, step 10kpps.
271 | | ...
272 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
273 | | ...
274 | | ${framesize}= | Set Variable | ${64}
275 | | ${min_rate}= | Set Variable | ${10000}
276 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
277 | | ${binary_min}= | Set Variable | ${min_rate}
278 | | ${binary_max}= | Set Variable | ${max_rate}
279 | | ${threshold}= | Set Variable | ${min_rate}
280 | | ${dut1_vm_refs}= | Create Dictionary
281 | | ${dut2_vm_refs}= | Create Dictionary
282 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
283 | | And Add PCI devices to DUTs in 3-node single link topology
284 | | And Add no multi seg to all DUTs
285 | | And Apply startup configuration on all VPP DUTs
286 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
287 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
288 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
289 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
290 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
291 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
292 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
293 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
294 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
295 | | ... | ${binary_max} | ${traffic_profile}
296 | | ... | ${min_rate} | ${max_rate} | ${threshold}
297
298 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
299 | | [Documentation]
300 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
301 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
302 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
303 | | ...
304 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
305 | | ...
306 | | ${framesize}= | Set Variable | ${64}
307 | | ${min_rate}= | Set Variable | ${10000}
308 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
309 | | ${binary_min}= | Set Variable | ${min_rate}
310 | | ${binary_max}= | Set Variable | ${max_rate}
311 | | ${threshold}= | Set Variable | ${min_rate}
312 | | ${dut1_vm_refs}= | Create Dictionary
313 | | ${dut2_vm_refs}= | Create Dictionary
314 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
315 | | And Add PCI devices to DUTs in 3-node single link topology
316 | | And Add no multi seg to all DUTs
317 | | And Apply startup configuration on all VPP DUTs
318 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
319 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
320 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
321 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
322 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
323 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
324 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
325 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
326 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
327 | | ... | ${binary_max} | ${traffic_profile}
328 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
329 | | ... | ${perf_pdr_loss_acceptance_type}
330
331 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
332 | | [Documentation]
333 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
334 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
335 | | ... | using binary search start at 10GE linerate, step 10kpps.
336 | | ...
337 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
338 | | ...
339 | | ${framesize}= | Set Variable | ${1518}
340 | | ${min_rate}= | Set Variable | ${10000}
341 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
342 | | ${binary_min}= | Set Variable | ${min_rate}
343 | | ${binary_max}= | Set Variable | ${max_rate}
344 | | ${threshold}= | Set Variable | ${min_rate}
345 | | ${dut1_vm_refs}= | Create Dictionary
346 | | ${dut2_vm_refs}= | Create Dictionary
347 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
348 | | And Add PCI devices to DUTs in 3-node single link topology
349 | | And Add no multi seg to all DUTs
350 | | And Apply startup configuration on all VPP DUTs
351 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
352 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
353 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
354 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
355 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
356 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
357 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
358 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
359 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
360 | | ... | ${binary_max} | ${traffic_profile}
361 | | ... | ${min_rate} | ${max_rate} | ${threshold}
362
363 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
364 | | [Documentation]
365 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
366 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
367 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
368 | | ...
369 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
370 | | ...
371 | | ${framesize}= | Set Variable | ${1518}
372 | | ${min_rate}= | Set Variable | ${10000}
373 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
374 | | ${binary_min}= | Set Variable | ${min_rate}
375 | | ${binary_max}= | Set Variable | ${max_rate}
376 | | ${threshold}= | Set Variable | ${min_rate}
377 | | ${dut1_vm_refs}= | Create Dictionary
378 | | ${dut2_vm_refs}= | Create Dictionary
379 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
380 | | And Add PCI devices to DUTs in 3-node single link topology
381 | | And Add no multi seg to all DUTs
382 | | And Apply startup configuration on all VPP DUTs
383 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
384 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
385 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
386 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
387 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
388 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
389 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
390 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
391 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
392 | | ... | ${binary_max} | ${traffic_profile}
393 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
394 | | ... | ${perf_pdr_loss_acceptance_type}
395
396 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
397 | | [Documentation]
398 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
399 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
400 | | ... | size using binary search start at 10GE linerate, step 5kpps.
401 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
402 | | ...
403 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
404 | | ...
405 | | ${framesize}= | Set Variable | IMIX_v4_1
406 | | ${min_rate}= | Set Variable | ${10000}
407 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
408 | | ${binary_min}= | Set Variable | ${min_rate}
409 | | ${binary_max}= | Set Variable | ${max_rate}
410 | | ${threshold}= | Set Variable | ${min_rate}
411 | | ${dut1_vm_refs}= | Create Dictionary
412 | | ${dut2_vm_refs}= | Create Dictionary
413 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
414 | | And Add PCI devices to DUTs in 3-node single link topology
415 | | And Add no multi seg to all DUTs
416 | | And Apply startup configuration on all VPP DUTs
417 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
418 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
419 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
420 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
421 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
422 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
423 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
424 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
425 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
426 | | ... | ${binary_max} | ${traffic_profile}
427 | | ... | ${min_rate} | ${max_rate} | ${threshold}
428
429 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
430 | | [Documentation]
431 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
432 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
433 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
434 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
435 | | ...
436 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
437 | | ...
438 | | ${framesize}= | Set Variable | IMIX_v4_1
439 | | ${min_rate}= | Set Variable | ${10000}
440 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
441 | | ${binary_min}= | Set Variable | ${min_rate}
442 | | ${binary_max}= | Set Variable | ${max_rate}
443 | | ${threshold}= | Set Variable | ${min_rate}
444 | | ${dut1_vm_refs}= | Create Dictionary
445 | | ${dut2_vm_refs}= | Create Dictionary
446 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
447 | | And Add PCI devices to DUTs in 3-node single link topology
448 | | And Add no multi seg to all DUTs
449 | | And Apply startup configuration on all VPP DUTs
450 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
451 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
452 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
453 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
454 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
455 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
456 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
457 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
458 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
459 | | ... | ${binary_max} | ${traffic_profile}
460 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
461 | | ... | ${perf_pdr_loss_acceptance_type}
462
463 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
464 | | [Documentation]
465 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
466 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames\
467 | | ... | using binary search start at 10GE linerate, step 10kpps.
468 | | ...
469 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
470 | | ...
471 | | ${framesize}= | Set Variable | ${64}
472 | | ${min_rate}= | Set Variable | ${10000}
473 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
474 | | ${binary_min}= | Set Variable | ${min_rate}
475 | | ${binary_max}= | Set Variable | ${max_rate}
476 | | ${threshold}= | Set Variable | ${min_rate}
477 | | ${dut1_vm_refs}= | Create Dictionary
478 | | ${dut2_vm_refs}= | Create Dictionary
479 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
480 | | And Add PCI devices to DUTs in 3-node single link topology
481 | | And Add no multi seg to all DUTs
482 | | And Apply startup configuration on all VPP DUTs
483 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
484 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
485 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
486 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
487 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
488 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
489 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
490 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
491 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
492 | | ... | ${binary_max} | ${traffic_profile}
493 | | ... | ${min_rate} | ${max_rate} | ${threshold}
494
495 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
496 | | [Documentation]
497 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
498 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames\
499 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
500 | | ...
501 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
502 | | ...
503 | | ${framesize}= | Set Variable | ${64}
504 | | ${min_rate}= | Set Variable | ${10000}
505 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
506 | | ${binary_min}= | Set Variable | ${min_rate}
507 | | ${binary_max}= | Set Variable | ${max_rate}
508 | | ${threshold}= | Set Variable | ${min_rate}
509 | | ${dut1_vm_refs}= | Create Dictionary
510 | | ${dut2_vm_refs}= | Create Dictionary
511 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
512 | | And Add PCI devices to DUTs in 3-node single link topology
513 | | And Add no multi seg to all DUTs
514 | | And Apply startup configuration on all VPP DUTs
515 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
516 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
517 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
518 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
519 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
520 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
521 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
522 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
523 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
524 | | ... | ${binary_max} | ${traffic_profile}
525 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
526 | | ... | ${perf_pdr_loss_acceptance_type}
527
528 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
529 | | [Documentation]
530 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
531 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames\
532 | | ... | using binary search start at 10GE linerate, step 10kpps.
533 | | ...
534 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
535 | | ...
536 | | ${framesize}= | Set Variable | ${1518}
537 | | ${min_rate}= | Set Variable | ${10000}
538 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
539 | | ${binary_min}= | Set Variable | ${min_rate}
540 | | ${binary_max}= | Set Variable | ${max_rate}
541 | | ${threshold}= | Set Variable | ${min_rate}
542 | | ${dut1_vm_refs}= | Create Dictionary
543 | | ${dut2_vm_refs}= | Create Dictionary
544 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
545 | | And Add PCI devices to DUTs in 3-node single link topology
546 | | And Add no multi seg to all DUTs
547 | | And Apply startup configuration on all VPP DUTs
548 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
549 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
550 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
551 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
552 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
553 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
554 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
555 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
556 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
557 | | ... | ${binary_max} | ${traffic_profile}
558 | | ... | ${min_rate} | ${max_rate} | ${threshold}
559
560 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
561 | | [Documentation]
562 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
563 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames\
564 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
565 | | ...
566 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
567 | | ...
568 | | ${framesize}= | Set Variable | ${1518}
569 | | ${min_rate}= | Set Variable | ${10000}
570 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
571 | | ${binary_min}= | Set Variable | ${min_rate}
572 | | ${binary_max}= | Set Variable | ${max_rate}
573 | | ${threshold}= | Set Variable | ${min_rate}
574 | | ${dut1_vm_refs}= | Create Dictionary
575 | | ${dut2_vm_refs}= | Create Dictionary
576 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
577 | | And Add PCI devices to DUTs in 3-node single link topology
578 | | And Add no multi seg to all DUTs
579 | | And Apply startup configuration on all VPP DUTs
580 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
581 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
582 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
583 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
584 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
585 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
586 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
587 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
588 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
589 | | ... | ${binary_max} | ${traffic_profile}
590 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
591 | | ... | ${perf_pdr_loss_acceptance_type}
592
593 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
594 | | [Documentation]
595 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
596 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
597 | | ... | size using binary search start at 10GE linerate, step 5kpps.
598 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
599 | | ...
600 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
601 | | ...
602 | | ${framesize}= | Set Variable | IMIX_v4_1
603 | | ${min_rate}= | Set Variable | ${10000}
604 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
605 | | ${binary_min}= | Set Variable | ${min_rate}
606 | | ${binary_max}= | Set Variable | ${max_rate}
607 | | ${threshold}= | Set Variable | ${min_rate}
608 | | ${dut1_vm_refs}= | Create Dictionary
609 | | ${dut2_vm_refs}= | Create Dictionary
610 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
611 | | And Add PCI devices to DUTs in 3-node single link topology
612 | | And Add no multi seg to all DUTs
613 | | And Apply startup configuration on all VPP DUTs
614 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
615 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
616 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
617 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
618 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
619 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
620 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
621 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
622 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
623 | | ... | ${binary_max} | ${traffic_profile}
624 | | ... | ${min_rate} | ${max_rate} | ${threshold}
625
626 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
627 | | [Documentation]
628 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
629 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
630 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
631 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
632 | | ...
633 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
634 | | ...
635 | | ${framesize}= | Set Variable | IMIX_v4_1
636 | | ${min_rate}= | Set Variable | ${10000}
637 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
638 | | ${binary_min}= | Set Variable | ${min_rate}
639 | | ${binary_max}= | Set Variable | ${max_rate}
640 | | ${threshold}= | Set Variable | ${min_rate}
641 | | ${dut1_vm_refs}= | Create Dictionary
642 | | ${dut2_vm_refs}= | Create Dictionary
643 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
644 | | And Add PCI devices to DUTs in 3-node single link topology
645 | | And Add no multi seg to all DUTs
646 | | And Apply startup configuration on all VPP DUTs
647 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
648 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
649 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
650 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
651 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
652 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
653 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
654 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
655 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
656 | | ... | ${binary_max} | ${traffic_profile}
657 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
658 | | ... | ${perf_pdr_loss_acceptance_type}