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