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