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