3ca2faffa7a5eabbe726bcbb5de7bc184caf5316
[csit.git] / tests / perf / 40ge2p1xl710-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc.robot
1 # Copyright (c) 2016 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 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ...        | NIC_Intel-XL710 | ETH | L2BDMACLRN | BASE | VHOST | VM
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-XL710
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keywords
24 | ...           | Run Keyword If Test Failed
25 | ...           | Traffic should pass with no loss | 10
26 | ...           | ${min_rate}pps | ${framesize} | 3-node-bridge
27 | ...           | fail_on_loss=${False}
28 | ...           | AND | Show Vpp Vhost On All DUTs
29 | ...           | AND | Remove startup configuration of VPP from all DUTs
30 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut1}
31 | ...                 | ${dut1_vm_refs}
32 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut2}
33 | ...                 | ${dut2_vm_refs}
34 | Documentation | *RFC2544: Packet throughput L2BD test cases with vhost*
35 | ...
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
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 on NUMA1 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 2p40GE NIC XL710
46 | ... | 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.
60
61 *** Variables ***
62 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
63 | ${s_24.5G} | ${24500000000}
64 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
65 | ${s_18.75Mpps} | ${18750000}
66 # Socket names
67 | ${bd_id1}= | 1
68 | ${bd_id2}= | 2
69 | ${sock1}= | /tmp/sock-1-${bd_id1}
70 | ${sock2}= | /tmp/sock-1-${bd_id2}
71
72 *** Test Cases ***
73 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
74 | | [Documentation]
75 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
76 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
77 | | ... | using binary search start at 40GE linerate, step 10kpps.
78 | | ...
79 | | [Tags] | 1T1C | STHREAD | NDRDISC
80 | | ...
81 | | ${framesize}= | Set Variable | ${64}
82 | | ${min_rate}= | Set Variable | ${10000}
83 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
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 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 | ${5} | ${5}
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 | ${5} | ${5}
100 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
101 | | And Setup scheduler policy for VPP on all DUTs
102 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
103 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
104 | | ... | ${threshold}
105
106 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
109 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
110 | | ... | using binary search start at 40GE 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}= | Set Variable | ${s_18.75Mpps}
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 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 | ${5} | ${5}
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 | ${5} | ${5}
133 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
134 | | And Setup scheduler policy for VPP on all DUTs
135 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
136 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
137 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
138
139 | tc03-1518B-1t1c-eth-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. [Ver] Find NDR for 1518 Byte frames\
143 | | ... | using binary search start at 40GE linerate, step 10kpps.
144 | | ...
145 | | [Tags] | 1T1C | STHREAD | NDRDISC
146 | | ...
147 | | ${framesize}= | Set Variable | ${1518}
148 | | ${min_rate}= | Set Variable | ${10000}
149 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
150 | | ${binary_min}= | Set Variable | ${min_rate}
151 | | ${binary_max}= | Set Variable | ${max_rate}
152 | | ${threshold}= | Set Variable | ${min_rate}
153 | | ${dut1_vm_refs}= | Create Dictionary
154 | | ${dut2_vm_refs}= | Create Dictionary
155 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
156 | | And Add PCI devices to DUTs from 3-node single link topology
157 | | And Add No Multi Seg to all DUTs
158 | | And Apply startup configuration on all VPP DUTs
159 | | When L2 bridge domains with Vhost-User 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 | ${5} | ${5}
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 | ${5} | ${5}
166 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
167 | | And Setup scheduler policy for VPP on all DUTs
168 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
169 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
170 | | ... | ${threshold}
171
172 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
175 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
176 | | ... | using binary search start at 40GE 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_24.5G} | ${framesize}
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 Add No Multi Seg to all DUTs
191 | | And Apply startup configuration on all VPP DUTs
192 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
193 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
194 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
195 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
196 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
197 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
198 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
199 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
200 | | And Setup scheduler policy for VPP on all DUTs
201 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
202 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
203 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
204
205 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
208 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
209 | | ... | size using binary search start at 40GE 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 | | ${min_rate}= | Set Variable | ${10000}
216 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
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 bridge domains with Vhost-User 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 | ${5} | ${5}
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 | ${5} | ${5}
233 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
234 | | And Setup scheduler policy for VPP on all DUTs
235 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
236 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
237 | | ... | ${threshold}
238
239 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
240 | | [Documentation]
241 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
242 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
243 | | ... | size using binary search start at 40GE 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 | | ${min_rate}= | Set Variable | ${10000}
250 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
251 | | ${binary_min}= | Set Variable | ${min_rate}
252 | | ${binary_max}= | Set Variable | ${max_rate}
253 | | ${threshold}= | Set Variable | ${min_rate}
254 | | ${dut1_vm_refs}= | Create Dictionary
255 | | ${dut2_vm_refs}= | Create Dictionary
256 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
257 | | And Add PCI devices to DUTs from 3-node single link topology
258 | | And Apply startup configuration on all VPP DUTs
259 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
260 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
261 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
262 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
263 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
264 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
265 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
266 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
267 | | And Setup scheduler policy for VPP on all DUTs
268 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
269 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
270 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
271
272 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
273 | | [Documentation]
274 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
275 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
276 | | ... | using binary search start at 40GE linerate, step 10kpps.
277 | | ...
278 | | [Tags] | 2T2C | MTHREAD | NDRDISC
279 | | ...
280 | | ${framesize}= | Set Variable | ${64}
281 | | ${min_rate}= | Set Variable | ${10000}
282 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
283 | | ${binary_min}= | Set Variable | ${min_rate}
284 | | ${binary_max}= | Set Variable | ${max_rate}
285 | | ${threshold}= | Set Variable | ${min_rate}
286 | | ${dut1_vm_refs}= | Create Dictionary
287 | | ${dut2_vm_refs}= | Create Dictionary
288 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
289 | | And Add PCI devices to DUTs from 3-node single link topology
290 | | And Add No Multi Seg to all DUTs
291 | | And Apply startup configuration on all VPP DUTs
292 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
293 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
294 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
295 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
296 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
297 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
298 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
299 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
300 | | And Setup scheduler policy for VPP on all DUTs
301 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
302 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
303 | | ... | ${threshold}
304
305 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
306 | | [Documentation]
307 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
308 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
309 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
310 | | ...
311 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
312 | | ...
313 | | ${framesize}= | Set Variable | ${64}
314 | | ${min_rate}= | Set Variable | ${10000}
315 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
316 | | ${binary_min}= | Set Variable | ${min_rate}
317 | | ${binary_max}= | Set Variable | ${max_rate}
318 | | ${threshold}= | Set Variable | ${min_rate}
319 | | ${dut1_vm_refs}= | Create Dictionary
320 | | ${dut2_vm_refs}= | Create Dictionary
321 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
322 | | And Add PCI devices to DUTs from 3-node single link topology
323 | | And Add No Multi Seg to all DUTs
324 | | And Apply startup configuration on all VPP DUTs
325 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
326 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
327 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
328 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
329 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
330 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
331 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
332 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
333 | | And Setup scheduler policy for VPP on all DUTs
334 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
335 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
336 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
337
338 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
339 | | [Documentation]
340 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
341 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
342 | | ... | using binary search start at 40GE linerate, step 10kpps.
343 | | ...
344 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
345 | | ...
346 | | ${framesize}= | Set Variable | ${1518}
347 | | ${min_rate}= | Set Variable | ${10000}
348 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
349 | | ${binary_min}= | Set Variable | ${min_rate}
350 | | ${binary_max}= | Set Variable | ${max_rate}
351 | | ${threshold}= | Set Variable | ${min_rate}
352 | | ${dut1_vm_refs}= | Create Dictionary
353 | | ${dut2_vm_refs}= | Create Dictionary
354 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
355 | | And Add PCI devices to DUTs from 3-node single link topology
356 | | And Add No Multi Seg to all DUTs
357 | | And Apply startup configuration on all VPP DUTs
358 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
359 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
360 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
361 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
362 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
363 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
364 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
365 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
366 | | And Setup scheduler policy for VPP on all DUTs
367 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
368 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
369 | | ... | ${threshold}
370
371 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
372 | | [Documentation]
373 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
374 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
375 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
376 | | ...
377 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
378 | | ...
379 | | ${framesize}= | Set Variable | ${1518}
380 | | ${min_rate}= | Set Variable | ${10000}
381 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
382 | | ${binary_min}= | Set Variable | ${min_rate}
383 | | ${binary_max}= | Set Variable | ${max_rate}
384 | | ${threshold}= | Set Variable | ${min_rate}
385 | | ${dut1_vm_refs}= | Create Dictionary
386 | | ${dut2_vm_refs}= | Create Dictionary
387 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
388 | | And Add PCI devices to DUTs from 3-node single link topology
389 | | And Add No Multi Seg to all DUTs
390 | | And Apply startup configuration on all VPP DUTs
391 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
392 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
393 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
394 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
395 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
396 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
397 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
398 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
399 | | And Setup scheduler policy for VPP on all DUTs
400 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
401 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
402 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
403
404 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
405 | | [Documentation]
406 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
407 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
408 | | ... | size using binary search start at 40GE linerate, step 5kpps.
409 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
410 | | ...
411 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
412 | | ...
413 | | ${framesize}= | Set Variable | IMIX_v4_1
414 | | ${min_rate}= | Set Variable | ${10000}
415 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
416 | | ${binary_min}= | Set Variable | ${min_rate}
417 | | ${binary_max}= | Set Variable | ${max_rate}
418 | | ${threshold}= | Set Variable | ${min_rate}
419 | | ${dut1_vm_refs}= | Create Dictionary
420 | | ${dut2_vm_refs}= | Create Dictionary
421 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
422 | | And Add PCI devices to DUTs from 3-node single link topology
423 | | And Add No Multi Seg to all DUTs
424 | | And Apply startup configuration on all VPP DUTs
425 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
426 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
427 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
428 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
429 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
430 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
431 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
432 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
433 | | And Setup scheduler policy for VPP on all DUTs
434 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
435 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
436 | | ... | ${threshold}
437
438 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
439 | | [Documentation]
440 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
441 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
442 | | ... | size using binary search start at 40GE linerate, step 5kpps, LT=0.5%.
443 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
444 | | ...
445 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
446 | | ...
447 | | ${framesize}= | Set Variable | IMIX_v4_1
448 | | ${min_rate}= | Set Variable | ${10000}
449 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
450 | | ${binary_min}= | Set Variable | ${min_rate}
451 | | ${binary_max}= | Set Variable | ${max_rate}
452 | | ${threshold}= | Set Variable | ${min_rate}
453 | | ${dut1_vm_refs}= | Create Dictionary
454 | | ${dut2_vm_refs}= | Create Dictionary
455 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
456 | | And Add PCI devices to DUTs from 3-node single link topology
457 | | And Add No Multi Seg to all DUTs
458 | | And Apply startup configuration on all VPP DUTs
459 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
460 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
461 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
462 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
463 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
464 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
465 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
466 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
467 | | And Setup scheduler policy for VPP on all DUTs
468 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
469 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
470 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
471
472 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
473 | | [Documentation]
474 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
475 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames\
476 | | ... | using binary search start at 40GE linerate, step 10kpps.
477 | | ...
478 | | [Tags] | 4T4C | MTHREAD | NDRDISC
479 | | ...
480 | | ${framesize}= | Set Variable | ${64}
481 | | ${min_rate}= | Set Variable | ${10000}
482 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
483 | | ${binary_min}= | Set Variable | ${min_rate}
484 | | ${binary_max}= | Set Variable | ${max_rate}
485 | | ${threshold}= | Set Variable | ${min_rate}
486 | | ${dut1_vm_refs}= | Create Dictionary
487 | | ${dut2_vm_refs}= | Create Dictionary
488 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
489 | | And Add PCI devices to DUTs from 3-node single link topology
490 | | And Add No Multi Seg to all DUTs
491 | | And Apply startup configuration on all VPP DUTs
492 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
493 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
494 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
495 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
496 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
497 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
498 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
499 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
500 | | And Setup scheduler policy for VPP on all DUTs
501 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
502 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
503 | | ... | ${threshold}
504
505 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
506 | | [Documentation]
507 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
508 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames\
509 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
510 | | ...
511 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
512 | | ...
513 | | ${framesize}= | Set Variable | ${64}
514 | | ${min_rate}= | Set Variable | ${10000}
515 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
516 | | ${binary_min}= | Set Variable | ${min_rate}
517 | | ${binary_max}= | Set Variable | ${max_rate}
518 | | ${threshold}= | Set Variable | ${min_rate}
519 | | ${dut1_vm_refs}= | Create Dictionary
520 | | ${dut2_vm_refs}= | Create Dictionary
521 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
522 | | And Add PCI devices to DUTs from 3-node single link topology
523 | | And Add No Multi Seg to all DUTs
524 | | And Apply startup configuration on all VPP DUTs
525 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
526 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
527 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
528 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
529 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
530 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
531 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
532 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
533 | | And Setup scheduler policy for VPP on all DUTs
534 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
535 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
536 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
537
538 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
539 | | [Documentation]
540 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
541 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames\
542 | | ... | using binary search start at 40GE linerate, step 10kpps.
543 | | ...
544 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
545 | | ...
546 | | ${framesize}= | Set Variable | ${1518}
547 | | ${min_rate}= | Set Variable | ${10000}
548 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
549 | | ${binary_min}= | Set Variable | ${min_rate}
550 | | ${binary_max}= | Set Variable | ${max_rate}
551 | | ${threshold}= | Set Variable | ${min_rate}
552 | | ${dut1_vm_refs}= | Create Dictionary
553 | | ${dut2_vm_refs}= | Create Dictionary
554 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
555 | | And Add PCI devices to DUTs from 3-node single link topology
556 | | And Add No Multi Seg to all DUTs
557 | | And Apply startup configuration on all VPP DUTs
558 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
559 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
560 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
561 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
562 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
563 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
564 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
565 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
566 | | And Setup scheduler policy for VPP on all DUTs
567 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
568 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
569 | | ... | ${threshold}
570
571 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
572 | | [Documentation]
573 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
574 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames\
575 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
576 | | ...
577 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
578 | | ...
579 | | ${framesize}= | Set Variable | ${1518}
580 | | ${min_rate}= | Set Variable | ${10000}
581 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
582 | | ${binary_min}= | Set Variable | ${min_rate}
583 | | ${binary_max}= | Set Variable | ${max_rate}
584 | | ${threshold}= | Set Variable | ${min_rate}
585 | | ${dut1_vm_refs}= | Create Dictionary
586 | | ${dut2_vm_refs}= | Create Dictionary
587 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
588 | | And Add PCI devices to DUTs from 3-node single link topology
589 | | And Add No Multi Seg to all DUTs
590 | | And Apply startup configuration on all VPP DUTs
591 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
592 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
593 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
594 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
595 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
596 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
597 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
598 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
599 | | And Setup scheduler policy for VPP on all DUTs
600 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
601 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
602 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
603
604 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
605 | | [Documentation]
606 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
607 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
608 | | ... | size using binary search start at 40GE linerate, step 5kpps.
609 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
610 | | ...
611 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
612 | | ...
613 | | ${framesize}= | Set Variable | IMIX_v4_1
614 | | ${min_rate}= | Set Variable | ${10000}
615 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
616 | | ${binary_min}= | Set Variable | ${min_rate}
617 | | ${binary_max}= | Set Variable | ${max_rate}
618 | | ${threshold}= | Set Variable | ${min_rate}
619 | | ${dut1_vm_refs}= | Create Dictionary
620 | | ${dut2_vm_refs}= | Create Dictionary
621 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
622 | | And Add PCI devices to DUTs from 3-node single link topology
623 | | And Add No Multi Seg to all DUTs
624 | | And Apply startup configuration on all VPP DUTs
625 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
626 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
627 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
628 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
629 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
630 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
631 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
632 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
633 | | And Setup scheduler policy for VPP on all DUTs
634 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
635 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
636 | | ... | ${threshold}
637
638 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
639 | | [Documentation]
640 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
641 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
642 | | ... | size using binary search start at 40GE linerate, step 5kpps, LT=0.5%.
643 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
644 | | ...
645 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
646 | | ...
647 | | ${framesize}= | Set Variable | IMIX_v4_1
648 | | ${min_rate}= | Set Variable | ${10000}
649 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
650 | | ${binary_min}= | Set Variable | ${min_rate}
651 | | ${binary_max}= | Set Variable | ${max_rate}
652 | | ${threshold}= | Set Variable | ${min_rate}
653 | | ${dut1_vm_refs}= | Create Dictionary
654 | | ${dut2_vm_refs}= | Create Dictionary
655 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
656 | | And Add PCI devices to DUTs from 3-node single link topology
657 | | And Add No Multi Seg to all DUTs
658 | | And Apply startup configuration on all VPP DUTs
659 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
660 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
661 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
662 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${5} | ${5}
663 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
664 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
665 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${5} | ${5}
666 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
667 | | And Setup scheduler policy for VPP on all DUTs
668 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
669 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
670 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}