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