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