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