082c13559e4626a7e4d9d72c286a3ebe5ef0b8c9
[csit.git] / tests / perf / 10ge2p1x520-ethip4vxlan-l2bdbasemaclrn-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.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | L2BDMACLRN | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
20 | ... | VHOST | VM
21 | ...
22 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
23 | ... | L2 | Intel-X520-DA2
24 | Suite Teardown | 3-node Performance Suite Teardown
25 | ...
26 | Test Setup | Performance test setup
27 | Test Teardown | Performance test with vhost and VM with dpdk-testpmd teardown
28 | ... | ${min_rate}pps | ${framesize} | 3-node-bridge
29 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
30 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
31 | ...
32 | Documentation | *RFC2544: Packet throughput L2BD test cases with VXLANoIPv4
33 | ... | and vhost*
34 | ...
35 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
36 | ... | with single links between nodes.
37 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
38 | ... | Eth-IPv4-VXLAN-Eth-IPv4 is applied on link between DUT1 and DUT2.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
40 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
41 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
42 | ... | vhost-user interfaces using 5 cores pinned to cpus 5-9 and 2048M
43 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
44 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
45 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520
46 | ... | Niantic by Intel.
47 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
48 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
49 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
50 | ... | of packets transmitted. NDR and PDR are discovered for different
51 | ... | Ethernet L2 frame sizes using either binary search or linear search
52 | ... | algorithms with configured starting rate and final step that determines
53 | ... | throughput measurement resolution. Test packets are generated by TG on
54 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
55 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
56 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
57 | ... | payload. MAC addresses are matching MAC addresses of the TG node
58 | ... | interfaces.
59 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC7348.
60
61 *** Variables ***
62 # X520-DA2 bandwidth limit
63 | ${s_limit} | ${10000000000}
64 | ${vxlan_overhead} | ${50}
65 # Socket names
66 | ${bd_id1}= | 1
67 | ${bd_id2}= | 2
68 | ${sock1}= | /tmp/sock-1-${bd_id1}
69 | ${sock2}= | /tmp/sock-1-${bd_id2}
70
71 *** Test Cases ***
72 | tc01-64B-1t1c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
75 | | ... | 1 receive queue per NIC port.
76 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
77 | | ... | linerate, step 10kpps.
78 | | ...
79 | | [Tags] | 1T1C | STHREAD | NDRDISC
80 | | ...
81 | | ${framesize}= | Set Variable | ${64}
82 | | ${min_rate}= | Set Variable | ${10000}
83 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
84 | | ${binary_min}= | Set Variable | ${min_rate}
85 | | ${binary_max}= | Set Variable | ${max_rate}
86 | | ${threshold}= | Set Variable | ${min_rate}
87 | | ${dut1_vm_refs}= | Create Dictionary
88 | | ${dut2_vm_refs}= | Create Dictionary
89 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
90 | | And Add PCI devices to DUTs from 3-node single link topology
91 | | And Add No Multi Seg to all DUTs
92 | | And Apply startup configuration on all VPP DUTs
93 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
94 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
95 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
96 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
97 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
98 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
99 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
100 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
101 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
102 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
103 | | ... | ${threshold}
104
105 | tc02-64B-1t1c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
106 | | [Documentation]
107 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
108 | | ... | 1 receive queue per NIC port.
109 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
110 | | ... | linerate, step 10kpps, LT=0.5%.
111 | | ...
112 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
113 | | ...
114 | | ${framesize}= | Set Variable | ${64}
115 | | ${min_rate}= | Set Variable | ${10000}
116 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
117 | | ${binary_min}= | Set Variable | ${min_rate}
118 | | ${binary_max}= | Set Variable | ${max_rate}
119 | | ${threshold}= | Set Variable | ${min_rate}
120 | | ${dut1_vm_refs}= | Create Dictionary
121 | | ${dut2_vm_refs}= | Create Dictionary
122 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
123 | | And Add PCI devices to DUTs from 3-node single link topology
124 | | And Add No Multi Seg to all DUTs
125 | | And Apply startup configuration on all VPP DUTs
126 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
127 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
128 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
129 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
130 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
131 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
132 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
133 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
134 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
135 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
136 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
137 | | ... | ${perf_pdr_loss_acceptance_type}
138
139 | tc03-1518B-1t1c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
140 | | [Documentation]
141 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
142 | | ... | 1 receive queue per NIC port.
143 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
144 | | ... | linerate, step 10kpps.
145 | | ...
146 | | [Tags] | 1T1C | STHREAD | NDRDISC
147 | | ...
148 | | ${framesize}= | Set Variable | ${1518}
149 | | ${min_rate}= | Set Variable | ${10000}
150 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
151 | | ${binary_min}= | Set Variable | ${min_rate}
152 | | ${binary_max}= | Set Variable | ${max_rate}
153 | | ${threshold}= | Set Variable | ${min_rate}
154 | | ${dut1_vm_refs}= | Create Dictionary
155 | | ${dut2_vm_refs}= | Create Dictionary
156 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
157 | | And Add PCI devices to DUTs from 3-node single link topology
158 | | And Apply startup configuration on all VPP DUTs
159 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
160 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
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 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
168 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
169 | | ... | ${threshold}
170
171 | tc04-1518B-1t1c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
174 | | ... | 1 receive queue per NIC port.
175 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
176 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
177 | | ...
178 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
179 | | ...
180 | | ${framesize}= | Set Variable | ${1518}
181 | | ${min_rate}= | Set Variable | ${10000}
182 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
183 | | ${binary_min}= | Set Variable | ${min_rate}
184 | | ${binary_max}= | Set Variable | ${max_rate}
185 | | ${threshold}= | Set Variable | ${min_rate}
186 | | ${dut1_vm_refs}= | Create Dictionary
187 | | ${dut2_vm_refs}= | Create Dictionary
188 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
189 | | And Add PCI devices to DUTs from 3-node single link topology
190 | | And Apply startup configuration on all VPP DUTs
191 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
192 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
193 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
194 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
195 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
196 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
197 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
198 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
199 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
200 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
201 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
202 | | ... | ${perf_pdr_loss_acceptance_type}
203
204 | tc05-IMIX-1t1c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
207 | | ... | 1 receive queue per NIC port.
208 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
209 | | ... | 10GE linerate, step 5kpps.
210 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
211 | | ...
212 | | [Tags] | 1T1C | STHREAD | NDRDISC
213 | | ...
214 | | ${framesize}= | Set Variable | IMIX_v4_1
215 | | ${avg_framesize}= | Set Variable | ${403.833}
216 | | ${min_rate}= | Set Variable | ${10000}
217 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
218 | | ${binary_min}= | Set Variable | ${min_rate}
219 | | ${binary_max}= | Set Variable | ${max_rate}
220 | | ${threshold}= | Set Variable | ${min_rate}
221 | | ${dut1_vm_refs}= | Create Dictionary
222 | | ${dut2_vm_refs}= | Create Dictionary
223 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
224 | | And Add PCI devices to DUTs from 3-node single link topology
225 | | And Apply startup configuration on all VPP DUTs
226 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
227 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
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-ethip4vxlan-l2bdbasemaclrn-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 frame size using binary search start at\
243 | | ... | 10GE linerate, step 5kpps, LT=0.5%.
244 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
245 | | ...
246 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
247 | | ...
248 | | ${framesize}= | Set Variable | IMIX_v4_1
249 | | ${avg_framesize}= | Set Variable | ${403.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 Apply startup configuration on all VPP DUTs
260 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
261 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
262 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
263 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
264 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
265 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
266 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
267 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
268 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
269 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
270 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
271 | | ... | ${perf_pdr_loss_acceptance_type}
272
273 | tc07-64B-2t2c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
274 | | [Documentation]
275 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
276 | | ... | 1 receive queue per NIC port.
277 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
278 | | ... | linerate, step 10kpps.
279 | | ...
280 | | [Tags] | 2T2C | MTHREAD | NDRDISC
281 | | ...
282 | | ${framesize}= | Set Variable | ${64}
283 | | ${min_rate}= | Set Variable | ${10000}
284 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
285 | | ${binary_min}= | Set Variable | ${min_rate}
286 | | ${binary_max}= | Set Variable | ${max_rate}
287 | | ${threshold}= | Set Variable | ${min_rate}
288 | | ${dut1_vm_refs}= | Create Dictionary
289 | | ${dut2_vm_refs}= | Create Dictionary
290 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
291 | | And Add PCI devices to DUTs from 3-node single link topology
292 | | And Add No Multi Seg to all DUTs
293 | | And Apply startup configuration on all VPP DUTs
294 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
295 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
296 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
297 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
298 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
299 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
300 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
301 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
302 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
303 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
304 | | ... | ${threshold}
305
306 | tc08-64B-2t2c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
307 | | [Documentation]
308 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
309 | | ... | 1 receive queue per NIC port.
310 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
311 | | ... | linerate, step 10kpps, LT=0.5%.
312 | | ...
313 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
314 | | ...
315 | | ${framesize}= | Set Variable | ${64}
316 | | ${min_rate}= | Set Variable | ${10000}
317 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
318 | | ${binary_min}= | Set Variable | ${min_rate}
319 | | ${binary_max}= | Set Variable | ${max_rate}
320 | | ${threshold}= | Set Variable | ${min_rate}
321 | | ${dut1_vm_refs}= | Create Dictionary
322 | | ${dut2_vm_refs}= | Create Dictionary
323 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
324 | | And Add PCI devices to DUTs from 3-node single link topology
325 | | And Add No Multi Seg to all DUTs
326 | | And Apply startup configuration on all VPP DUTs
327 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
328 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
329 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
330 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
331 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
332 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
333 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
334 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
335 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
336 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
337 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
338 | | ... | ${perf_pdr_loss_acceptance_type}
339
340 | tc09-1518B-2t2c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
341 | | [Documentation]
342 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
343 | | ... | 1 receive queue per NIC port.
344 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
345 | | ... | linerate, step 10kpps.
346 | | ...
347 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
348 | | ...
349 | | ${framesize}= | Set Variable | ${1518}
350 | | ${min_rate}= | Set Variable | ${10000}
351 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
352 | | ${binary_min}= | Set Variable | ${min_rate}
353 | | ${binary_max}= | Set Variable | ${max_rate}
354 | | ${threshold}= | Set Variable | ${min_rate}
355 | | ${dut1_vm_refs}= | Create Dictionary
356 | | ${dut2_vm_refs}= | Create Dictionary
357 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
358 | | And Add PCI devices to DUTs from 3-node single link topology
359 | | And Apply startup configuration on all VPP DUTs
360 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
361 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
362 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
363 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
364 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
365 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
366 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
367 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
368 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
369 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
370 | | ... | ${threshold}
371
372 | tc10-1518B-2t2c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
373 | | [Documentation]
374 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
375 | | ... | 1 receive queue per NIC port.
376 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
377 | | ... | linerate, step 10kpps, LT=0.5%.
378 | | ...
379 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
380 | | ...
381 | | ${framesize}= | Set Variable | ${1518}
382 | | ${min_rate}= | Set Variable | ${10000}
383 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
384 | | ${binary_min}= | Set Variable | ${min_rate}
385 | | ${binary_max}= | Set Variable | ${max_rate}
386 | | ${threshold}= | Set Variable | ${min_rate}
387 | | ${dut1_vm_refs}= | Create Dictionary
388 | | ${dut2_vm_refs}= | Create Dictionary
389 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
390 | | And Add PCI devices to DUTs from 3-node single link topology
391 | | And Apply startup configuration on all VPP DUTs
392 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
393 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
394 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
395 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
396 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
397 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
398 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
399 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
400 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
401 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
402 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
403 | | ... | ${perf_pdr_loss_acceptance_type}
404
405 | tc11-IMIX-2t2c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
406 | | [Documentation]
407 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
408 | | ... | 1 receive queue per NIC port.
409 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
410 | | ... | 10GE linerate, step 5kpps.
411 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
412 | | ...
413 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
414 | | ...
415 | | ${framesize}= | Set Variable | IMIX_v4_1
416 | | ${avg_framesize}= | Set Variable | ${403.833}
417 | | ${min_rate}= | Set Variable | ${10000}
418 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
419 | | ${binary_min}= | Set Variable | ${min_rate}
420 | | ${binary_max}= | Set Variable | ${max_rate}
421 | | ${threshold}= | Set Variable | ${min_rate}
422 | | ${dut1_vm_refs}= | Create Dictionary
423 | | ${dut2_vm_refs}= | Create Dictionary
424 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
425 | | And Add PCI devices to DUTs from 3-node single link topology
426 | | And Apply startup configuration on all VPP DUTs
427 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
428 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
429 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
430 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
431 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
432 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
433 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
434 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
435 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
436 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
437 | | ... | ${threshold}
438
439 | tc12-IMIX-2t2c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
440 | | [Documentation]
441 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
442 | | ... | 1 receive queue per NIC port.
443 | | ... | [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at\
444 | | ... | 10GE linerate, step 5kpps, LT=0.5%.
445 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
446 | | ...
447 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
448 | | ...
449 | | ${framesize}= | Set Variable | IMIX_v4_1
450 | | ${avg_framesize}= | Set Variable | ${403.833}
451 | | ${min_rate}= | Set Variable | ${10000}
452 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
453 | | ${binary_min}= | Set Variable | ${min_rate}
454 | | ${binary_max}= | Set Variable | ${max_rate}
455 | | ${threshold}= | Set Variable | ${min_rate}
456 | | ${dut1_vm_refs}= | Create Dictionary
457 | | ${dut2_vm_refs}= | Create Dictionary
458 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
459 | | And Add PCI devices to DUTs from 3-node single link topology
460 | | And Apply startup configuration on all VPP DUTs
461 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
462 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
463 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
464 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
465 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
466 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
467 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
468 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
469 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
470 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
471 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
472 | | ... | ${perf_pdr_loss_acceptance_type}
473
474 | tc13-64B-4t4c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
475 | | [Documentation]
476 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
477 | | ... | 2 receive queues per NIC port.
478 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
479 | | ... | linerate, step 10kpps.
480 | | ...
481 | | [Tags] | 4T4C | MTHREAD | NDRDISC
482 | | ...
483 | | ${framesize}= | Set Variable | ${64}
484 | | ${min_rate}= | Set Variable | ${10000}
485 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
486 | | ${binary_min}= | Set Variable | ${min_rate}
487 | | ${binary_max}= | Set Variable | ${max_rate}
488 | | ${threshold}= | Set Variable | ${min_rate}
489 | | ${dut1_vm_refs}= | Create Dictionary
490 | | ${dut2_vm_refs}= | Create Dictionary
491 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
492 | | And Add PCI devices to DUTs from 3-node single link topology
493 | | And Add No Multi Seg to all DUTs
494 | | And Apply startup configuration on all VPP DUTs
495 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
496 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
497 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
498 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
499 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
500 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
501 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
502 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
503 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
504 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
505 | | ... | ${threshold}
506
507 | tc14-64B-4t4c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
508 | | [Documentation]
509 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
510 | | ... | 2 receive queues per NIC port.
511 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
512 | | ... | linerate, step 10kpps, LT=0.5%.
513 | | ...
514 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
515 | | ...
516 | | ${framesize}= | Set Variable | ${64}
517 | | ${min_rate}= | Set Variable | ${10000}
518 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
519 | | ${binary_min}= | Set Variable | ${min_rate}
520 | | ${binary_max}= | Set Variable | ${max_rate}
521 | | ${threshold}= | Set Variable | ${min_rate}
522 | | ${dut1_vm_refs}= | Create Dictionary
523 | | ${dut2_vm_refs}= | Create Dictionary
524 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
525 | | And Add PCI devices to DUTs from 3-node single link topology
526 | | And Add No Multi Seg to all DUTs
527 | | And Apply startup configuration on all VPP DUTs
528 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
529 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
530 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
531 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
532 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
533 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
534 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
535 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
536 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
537 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
538 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
539 | | ... | ${perf_pdr_loss_acceptance_type}
540
541 | tc15-1518B-4t4c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
542 | | [Documentation]
543 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
544 | | ... | 2 receive queues per NIC port.
545 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
546 | | ... | linerate, step 10kpps.
547 | | ...
548 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
549 | | ...
550 | | ${framesize}= | Set Variable | ${1518}
551 | | ${min_rate}= | Set Variable | ${10000}
552 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
553 | | ${binary_min}= | Set Variable | ${min_rate}
554 | | ${binary_max}= | Set Variable | ${max_rate}
555 | | ${threshold}= | Set Variable | ${min_rate}
556 | | ${dut1_vm_refs}= | Create Dictionary
557 | | ${dut2_vm_refs}= | Create Dictionary
558 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
559 | | And Add PCI devices to DUTs from 3-node single link topology
560 | | And Apply startup configuration on all VPP DUTs
561 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
562 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
563 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
564 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
565 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
566 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
567 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
568 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
569 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
570 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
571 | | ... | ${threshold}
572
573 | tc16-1518B-4t4c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
574 | | [Documentation]
575 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
576 | | ... | 2 receive queues per NIC port.
577 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
578 | | ... | linerate, step 10kpps, LT=0.5%.
579 | | ...
580 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
581 | | ...
582 | | ${framesize}= | Set Variable | ${1518}
583 | | ${min_rate}= | Set Variable | ${10000}
584 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vxlan_overhead}}
585 | | ${binary_min}= | Set Variable | ${min_rate}
586 | | ${binary_max}= | Set Variable | ${max_rate}
587 | | ${threshold}= | Set Variable | ${min_rate}
588 | | ${dut1_vm_refs}= | Create Dictionary
589 | | ${dut2_vm_refs}= | Create Dictionary
590 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
591 | | And Add PCI devices to DUTs from 3-node single link topology
592 | | And Apply startup configuration on all VPP DUTs
593 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
594 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
595 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
596 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
597 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
598 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
599 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
600 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
601 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
602 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
603 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
604 | | ... | ${perf_pdr_loss_acceptance_type}
605
606 | tc17-IMIX-4t4c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
607 | | [Documentation]
608 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
609 | | ... | 2 receive queues per NIC port.
610 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
611 | | ... | 10GE linerate, step 5kpps.
612 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
613 | | ...
614 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
615 | | ...
616 | | ${framesize}= | Set Variable | IMIX_v4_1
617 | | ${avg_framesize}= | Set Variable | ${403.833}
618 | | ${min_rate}= | Set Variable | ${10000}
619 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
620 | | ${binary_min}= | Set Variable | ${min_rate}
621 | | ${binary_max}= | Set Variable | ${max_rate}
622 | | ${threshold}= | Set Variable | ${min_rate}
623 | | ${dut1_vm_refs}= | Create Dictionary
624 | | ${dut2_vm_refs}= | Create Dictionary
625 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
626 | | And Add PCI devices to DUTs from 3-node single link topology
627 | | And Apply startup configuration on all VPP DUTs
628 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
629 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
630 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
631 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
632 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
633 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
634 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
635 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
636 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
637 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
638 | | ... | ${threshold}
639
640 | tc18-IMIX-4t4c-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
641 | | [Documentation]
642 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
643 | | ... | 2 receive queues per NIC port.
644 | | ... | [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at\
645 | | ... | 10GE linerate, step 5kpps, LT=0.5%.
646 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
647 | | ...
648 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
649 | | ...
650 | | ${framesize}= | Set Variable | IMIX_v4_1
651 | | ${avg_framesize}= | Set Variable | ${403.833}
652 | | ${min_rate}= | Set Variable | ${10000}
653 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
654 | | ${binary_min}= | Set Variable | ${min_rate}
655 | | ${binary_max}= | Set Variable | ${max_rate}
656 | | ${threshold}= | Set Variable | ${min_rate}
657 | | ${dut1_vm_refs}= | Create Dictionary
658 | | ${dut2_vm_refs}= | Create Dictionary
659 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
660 | | And Add PCI devices to DUTs from 3-node single link topology
661 | | And Apply startup configuration on all VPP DUTs
662 | | When L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a 3-node circular topology
663 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
664 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
665 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
666 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
667 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
668 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
669 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
670 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
671 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
672 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
673 | | ... | ${perf_pdr_loss_acceptance_type}