Added Ethernet frame size tags for performance tests:
[csit.git] / tests / perf / 10ge2p1x520-eth-l2xcbase-eth-2vhost-1vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.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
66 *** Test Cases ***
67 | tc01-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
68 | | [Documentation]
69 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
70 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
71 | | ... | using binary search start at 10GE linerate, step 10kpps.
72 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
73 | | ${framesize}= | Set Variable | ${64}
74 | | ${min_rate}= | Set Variable | ${10000}
75 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
76 | | ${binary_min}= | Set Variable | ${min_rate}
77 | | ${binary_max}= | Set Variable | ${max_rate}
78 | | ${threshold}= | Set Variable | ${min_rate}
79 | | ${dut1_vm_refs}= | Create Dictionary
80 | | ${dut2_vm_refs}= | Create Dictionary
81 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
82 | | And   Add PCI devices to DUTs from 3-node single link topology
83 | | And   Add No Multi Seg to all DUTs
84 | | And   Apply startup configuration on all VPP DUTs
85 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
86 | | ...   | ${sock1} | ${sock2}
87 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
88 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
89 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
90 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
91 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
92 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
93 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
94 | | ...                                       | ${binary_max} | 3-node-xconnect
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] | 64B | 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 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ...                                       | ${binary_max} | 3-node-xconnect
126 | | ...                                       | ${min_rate} | ${max_rate}
127 | | ...                                       | ${threshold}
128 | | ...                                       | ${perf_pdr_loss_acceptance}
129 | | ...                                       | ${perf_pdr_loss_acceptance_type}
130
131 | tc03-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
134 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
135 | | ... | using binary search start at 10GE linerate, step 10kpps.
136 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
137 | | ${framesize}= | Set Variable | ${1518}
138 | | ${min_rate}= | Set Variable | ${10000}
139 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
140 | | ${binary_min}= | Set Variable | ${min_rate}
141 | | ${binary_max}= | Set Variable | ${max_rate}
142 | | ${threshold}= | Set Variable | ${min_rate}
143 | | ${dut1_vm_refs}= | Create Dictionary
144 | | ${dut2_vm_refs}= | Create Dictionary
145 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
146 | | And   Add PCI devices to DUTs from 3-node single link topology
147 | | And   Add No Multi Seg to all DUTs
148 | | And   Apply startup configuration on all VPP DUTs
149 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
150 | | ...   | ${sock1} | ${sock2}
151 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
152 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
153 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
154 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
155 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
156 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
157 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
158 | | ...                                       | ${binary_max} | 3-node-xconnect
159 | | ...                                       | ${min_rate} | ${max_rate}
160 | | ...                                       | ${threshold}
161
162 | tc04-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs L2XC 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 rxqueues '1' in 3-node single-link topo
177 | | And   Add PCI devices to DUTs from 3-node single link topology
178 | | And   Add No Multi Seg to all DUTs
179 | | And   Apply startup configuration on all VPP DUTs
180 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
181 | | ...   | ${sock1} | ${sock2}
182 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
183 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
184 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
185 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
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} | 3-node-xconnect
190 | | ...                                       | ${min_rate} | ${max_rate}
191 | | ...                                       | ${threshold}
192 | | ...                                       | ${perf_pdr_loss_acceptance}
193 | | ...                                       | ${perf_pdr_loss_acceptance_type}
194
195 | tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
198 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
199 | | ... | size using binary search start at 10GE linerate, step 10kpps.
200 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
201 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
202 | | ${framesize}= | Set Variable | IMIX_v4_1
203 | | ${min_rate}= | Set Variable | ${10000}
204 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
205 | | ${binary_min}= | Set Variable | ${min_rate}
206 | | ${binary_max}= | Set Variable | ${max_rate}
207 | | ${threshold}= | Set Variable | ${min_rate}
208 | | ${dut1_vm_refs}= | Create Dictionary
209 | | ${dut2_vm_refs}= | Create Dictionary
210 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
211 | | And   Add PCI devices to DUTs from 3-node single link topology
212 | | And   Add No Multi Seg to all DUTs
213 | | And   Apply startup configuration on all VPP DUTs
214 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
215 | | ...   | ${sock1} | ${sock2}
216 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
217 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
218 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
219 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
220 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
221 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
222 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
223 | | ...                                       | ${binary_max} | 3-node-xconnect
224 | | ...                                       | ${min_rate} | ${max_rate}
225 | | ...                                       | ${threshold}
226
227 | tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
230 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
231 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
232 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
233 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
234 | | ${framesize}= | Set Variable | IMIX_v4_1
235 | | ${min_rate}= | Set Variable | ${10000}
236 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
237 | | ${binary_min}= | Set Variable | ${min_rate}
238 | | ${binary_max}= | Set Variable | ${max_rate}
239 | | ${threshold}= | Set Variable | ${min_rate}
240 | | ${dut1_vm_refs}= | Create Dictionary
241 | | ${dut2_vm_refs}= | Create Dictionary
242 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
243 | | And   Add PCI devices to DUTs from 3-node single link topology
244 | | And   Add No Multi Seg to all DUTs
245 | | And   Apply startup configuration on all VPP DUTs
246 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
247 | | ...   | ${sock1} | ${sock2}
248 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
249 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
250 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
251 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
252 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
253 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
254 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
255 | | ...                                       | ${binary_max} | 3-node-xconnect
256 | | ...                                       | ${min_rate} | ${max_rate}
257 | | ...                                       | ${threshold}
258 | | ...                                       | ${perf_pdr_loss_acceptance}
259 | | ...                                       | ${perf_pdr_loss_acceptance_type}
260
261 | tc07-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
262 | | [Documentation]
263 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
264 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
265 | | ... | using binary search start at 10GE linerate, step 10kpps.
266 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
267 | | ${framesize}= | Set Variable | ${64}
268 | | ${min_rate}= | Set Variable | ${10000}
269 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
270 | | ${binary_min}= | Set Variable | ${min_rate}
271 | | ${binary_max}= | Set Variable | ${max_rate}
272 | | ${threshold}= | Set Variable | ${min_rate}
273 | | ${dut1_vm_refs}= | Create Dictionary
274 | | ${dut2_vm_refs}= | Create Dictionary
275 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
276 | | And   Add PCI devices to DUTs from 3-node single link topology
277 | | And   Add No Multi Seg to all DUTs
278 | | And   Apply startup configuration on all VPP DUTs
279 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
280 | | ...   | ${sock1} | ${sock2}
281 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
282 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
283 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
284 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
285 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
286 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
287 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
288 | | ...                                       | ${binary_max} | 3-node-xconnect
289 | | ...                                       | ${min_rate} | ${max_rate}
290 | | ...                                       | ${threshold}
291
292 | tc08-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
293 | | [Documentation]
294 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
295 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
296 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
297 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
298 | | ${framesize}= | Set Variable | ${64}
299 | | ${min_rate}= | Set Variable | ${10000}
300 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
301 | | ${binary_min}= | Set Variable | ${min_rate}
302 | | ${binary_max}= | Set Variable | ${max_rate}
303 | | ${threshold}= | Set Variable | ${min_rate}
304 | | ${dut1_vm_refs}= | Create Dictionary
305 | | ${dut2_vm_refs}= | Create Dictionary
306 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
307 | | And   Add PCI devices to DUTs from 3-node single link topology
308 | | And   Add No Multi Seg to all DUTs
309 | | And   Apply startup configuration on all VPP DUTs
310 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
311 | | ...   | ${sock1} | ${sock2}
312 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
313 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
314 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
315 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
316 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
317 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
318 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
319 | | ...                                       | ${binary_max} | 3-node-xconnect
320 | | ...                                       | ${min_rate} | ${max_rate}
321 | | ...                                       | ${threshold}
322 | | ...                                       | ${perf_pdr_loss_acceptance}
323 | | ...                                       | ${perf_pdr_loss_acceptance_type}
324
325 | tc09-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
326 | | [Documentation]
327 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
328 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
329 | | ... | using binary search start at 10GE linerate, step 10kpps.
330 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
331 | | ${framesize}= | Set Variable | ${1518}
332 | | ${min_rate}= | Set Variable | ${10000}
333 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
334 | | ${binary_min}= | Set Variable | ${min_rate}
335 | | ${binary_max}= | Set Variable | ${max_rate}
336 | | ${threshold}= | Set Variable | ${min_rate}
337 | | ${dut1_vm_refs}= | Create Dictionary
338 | | ${dut2_vm_refs}= | Create Dictionary
339 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
340 | | And   Add PCI devices to DUTs from 3-node single link topology
341 | | And   Add No Multi Seg to all DUTs
342 | | And   Apply startup configuration on all VPP DUTs
343 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
344 | | ...   | ${sock1} | ${sock2}
345 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
346 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
347 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
348 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
349 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
350 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
351 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
352 | | ...                                       | ${binary_max} | 3-node-xconnect
353 | | ...                                       | ${min_rate} | ${max_rate}
354 | | ...                                       | ${threshold}
355
356 | tc10-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
357 | | [Documentation]
358 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
359 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
360 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
361 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
362 | | ${framesize}= | Set Variable | ${1518}
363 | | ${min_rate}= | Set Variable | ${10000}
364 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
365 | | ${binary_min}= | Set Variable | ${min_rate}
366 | | ${binary_max}= | Set Variable | ${max_rate}
367 | | ${threshold}= | Set Variable | ${min_rate}
368 | | ${dut1_vm_refs}= | Create Dictionary
369 | | ${dut2_vm_refs}= | Create Dictionary
370 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
371 | | And   Add PCI devices to DUTs from 3-node single link topology
372 | | And   Add No Multi Seg to all DUTs
373 | | And   Apply startup configuration on all VPP DUTs
374 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
375 | | ...   | ${sock1} | ${sock2}
376 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
377 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
378 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
379 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
380 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
381 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
382 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
383 | | ...                                       | ${binary_max} | 3-node-xconnect
384 | | ...                                       | ${min_rate} | ${max_rate}
385 | | ...                                       | ${threshold}
386 | | ...                                       | ${perf_pdr_loss_acceptance}
387 | | ...                                       | ${perf_pdr_loss_acceptance_type}
388
389 | tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
390 | | [Documentation]
391 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
392 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
393 | | ... | size using binary search start at 10GE linerate, step 10kpps.
394 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
395 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
396 | | ${framesize}= | Set Variable | IMIX_v4_1
397 | | ${min_rate}= | Set Variable | ${10000}
398 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
399 | | ${binary_min}= | Set Variable | ${min_rate}
400 | | ${binary_max}= | Set Variable | ${max_rate}
401 | | ${threshold}= | Set Variable | ${min_rate}
402 | | ${dut1_vm_refs}= | Create Dictionary
403 | | ${dut2_vm_refs}= | Create Dictionary
404 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
405 | | And   Add PCI devices to DUTs from 3-node single link topology
406 | | And   Add No Multi Seg to all DUTs
407 | | And   Apply startup configuration on all VPP DUTs
408 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
409 | | ...   | ${sock1} | ${sock2}
410 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
411 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
412 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
413 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
414 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
415 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
416 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
417 | | ...                                       | ${binary_max} | 3-node-xconnect
418 | | ...                                       | ${min_rate} | ${max_rate}
419 | | ...                                       | ${threshold}
420
421 | tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
422 | | [Documentation]
423 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
424 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
425 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
426 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
427 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
428 | | ${framesize}= | Set Variable | IMIX_v4_1
429 | | ${min_rate}= | Set Variable | ${10000}
430 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
431 | | ${binary_min}= | Set Variable | ${min_rate}
432 | | ${binary_max}= | Set Variable | ${max_rate}
433 | | ${threshold}= | Set Variable | ${min_rate}
434 | | ${dut1_vm_refs}= | Create Dictionary
435 | | ${dut2_vm_refs}= | Create Dictionary
436 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
437 | | And   Add PCI devices to DUTs from 3-node single link topology
438 | | And   Add No Multi Seg to all DUTs
439 | | And   Apply startup configuration on all VPP DUTs
440 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
441 | | ...   | ${sock1} | ${sock2}
442 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
443 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
444 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
445 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
446 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
447 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
448 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
449 | | ...                                       | ${binary_max} | 3-node-xconnect
450 | | ...                                       | ${min_rate} | ${max_rate}
451 | | ...                                       | ${threshold}
452 | | ...                                       | ${perf_pdr_loss_acceptance}
453 | | ...                                       | ${perf_pdr_loss_acceptance_type}
454
455 | tc13-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
456 | | [Documentation]
457 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
458 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
459 | | ... | using binary search start at 10GE linerate, step 10kpps.
460 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
461 | | ${framesize}= | Set Variable | ${64}
462 | | ${min_rate}= | Set Variable | ${10000}
463 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
464 | | ${binary_min}= | Set Variable | ${min_rate}
465 | | ${binary_max}= | Set Variable | ${max_rate}
466 | | ${threshold}= | Set Variable | ${min_rate}
467 | | ${dut1_vm_refs}= | Create Dictionary
468 | | ${dut2_vm_refs}= | Create Dictionary
469 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
470 | | And   Add PCI devices to DUTs from 3-node single link topology
471 | | And   Add No Multi Seg to all DUTs
472 | | And   Apply startup configuration on all VPP DUTs
473 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
474 | | ...   | ${sock1} | ${sock2}
475 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
476 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
477 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
478 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
479 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
480 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
481 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
482 | | ...                                       | ${binary_max} | 3-node-xconnect
483 | | ...                                       | ${min_rate} | ${max_rate}
484 | | ...                                       | ${threshold}
485
486 | tc14-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
487 | | [Documentation]
488 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
489 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
490 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
491 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
492 | | ${framesize}= | Set Variable | ${64}
493 | | ${min_rate}= | Set Variable | ${10000}
494 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
495 | | ${binary_min}= | Set Variable | ${min_rate}
496 | | ${binary_max}= | Set Variable | ${max_rate}
497 | | ${threshold}= | Set Variable | ${min_rate}
498 | | ${dut1_vm_refs}= | Create Dictionary
499 | | ${dut2_vm_refs}= | Create Dictionary
500 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
501 | | And   Add PCI devices to DUTs from 3-node single link topology
502 | | And   Add No Multi Seg to all DUTs
503 | | And   Apply startup configuration on all VPP DUTs
504 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
505 | | ...   | ${sock1} | ${sock2}
506 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
507 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
508 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
509 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
510 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
511 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
512 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
513 | | ...                                       | ${binary_max} | 3-node-xconnect
514 | | ...                                       | ${min_rate} | ${max_rate}
515 | | ...                                       | ${threshold}
516 | | ...                                       | ${perf_pdr_loss_acceptance}
517 | | ...                                       | ${perf_pdr_loss_acceptance_type}
518
519 | tc15-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
520 | | [Documentation]
521 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
522 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
523 | | ... | using binary search start at 10GE linerate, step 10kpps.
524 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
525 | | ${framesize}= | Set Variable | ${1518}
526 | | ${min_rate}= | Set Variable | ${10000}
527 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
528 | | ${binary_min}= | Set Variable | ${min_rate}
529 | | ${binary_max}= | Set Variable | ${max_rate}
530 | | ${threshold}= | Set Variable | ${min_rate}
531 | | ${dut1_vm_refs}= | Create Dictionary
532 | | ${dut2_vm_refs}= | Create Dictionary
533 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
534 | | And   Add PCI devices to DUTs from 3-node single link topology
535 | | And   Add No Multi Seg to all DUTs
536 | | And   Apply startup configuration on all VPP DUTs
537 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
538 | | ...   | ${sock1} | ${sock2}
539 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
540 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
541 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
542 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
543 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
544 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
545 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
546 | | ...                                       | ${binary_max} | 3-node-xconnect
547 | | ...                                       | ${min_rate} | ${max_rate}
548 | | ...                                       | ${threshold}
549
550 | tc16-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
551 | | [Documentation]
552 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
553 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
554 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
555 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
556 | | ${framesize}= | Set Variable | ${1518}
557 | | ${min_rate}= | Set Variable | ${10000}
558 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
559 | | ${binary_min}= | Set Variable | ${min_rate}
560 | | ${binary_max}= | Set Variable | ${max_rate}
561 | | ${threshold}= | Set Variable | ${min_rate}
562 | | ${dut1_vm_refs}= | Create Dictionary
563 | | ${dut2_vm_refs}= | Create Dictionary
564 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
565 | | And   Add PCI devices to DUTs from 3-node single link topology
566 | | And   Add No Multi Seg to all DUTs
567 | | And   Apply startup configuration on all VPP DUTs
568 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
569 | | ...   | ${sock1} | ${sock2}
570 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
571 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
572 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
573 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
574 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
575 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
576 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
577 | | ...                                       | ${binary_max} | 3-node-xconnect
578 | | ...                                       | ${min_rate} | ${max_rate}
579 | | ...                                       | ${threshold}
580 | | ...                                       | ${perf_pdr_loss_acceptance}
581 | | ...                                       | ${perf_pdr_loss_acceptance_type}
582
583 | tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
584 | | [Documentation]
585 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
586 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
587 | | ... | size using binary search start at 10GE linerate, step 10kpps.
588 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
589 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
590 | | ${framesize}= | Set Variable | IMIX_v4_1
591 | | ${min_rate}= | Set Variable | ${10000}
592 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
593 | | ${binary_min}= | Set Variable | ${min_rate}
594 | | ${binary_max}= | Set Variable | ${max_rate}
595 | | ${threshold}= | Set Variable | ${min_rate}
596 | | ${dut1_vm_refs}= | Create Dictionary
597 | | ${dut2_vm_refs}= | Create Dictionary
598 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
599 | | And   Add PCI devices to DUTs from 3-node single link topology
600 | | And   Add No Multi Seg to all DUTs
601 | | And   Apply startup configuration on all VPP DUTs
602 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
603 | | ...   | ${sock1} | ${sock2}
604 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
605 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
606 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
607 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
608 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
609 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
610 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
611 | | ...                                       | ${binary_max} | 3-node-xconnect
612 | | ...                                       | ${min_rate} | ${max_rate}
613 | | ...                                       | ${threshold}
614
615 | tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
616 | | [Documentation]
617 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
618 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
619 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
620 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
621 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
622 | | ${framesize}= | Set Variable | IMIX_v4_1
623 | | ${min_rate}= | Set Variable | ${10000}
624 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
625 | | ${binary_min}= | Set Variable | ${min_rate}
626 | | ${binary_max}= | Set Variable | ${max_rate}
627 | | ${threshold}= | Set Variable | ${min_rate}
628 | | ${dut1_vm_refs}= | Create Dictionary
629 | | ${dut2_vm_refs}= | Create Dictionary
630 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
631 | | And   Add PCI devices to DUTs from 3-node single link topology
632 | | And   Add No Multi Seg to all DUTs
633 | | And   Apply startup configuration on all VPP DUTs
634 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
635 | | ...   | ${sock1} | ${sock2}
636 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
637 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
638 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
639 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
640 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
641 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
642 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
643 | | ...                                       | ${binary_max} | 3-node-xconnect
644 | | ...                                       | ${min_rate} | ${max_rate}
645 | | ...                                       | ${threshold}
646 | | ...                                       | ${perf_pdr_loss_acceptance}
647 | | ...                                       | ${perf_pdr_loss_acceptance_type}