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