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