66b09477e7e6ec52dd992013cb891e0ae4c0d07c
[csit.git] / tests / perf / 10ge2p1x520-eth-l2xcbase-eth-2vhost-1vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.NodePath
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | ETH | L2XCFWD | BASE | VHOST | VM
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=256,
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 | ${bd_id1}= | 1
59 | ${bd_id2}= | 2
60 | ${sock1}= | /tmp/sock-1-${bd_id1}
61 | ${sock2}= | /tmp/sock-1-${bd_id2}
62 # X520-DA2 bandwidth limit
63 | ${s_limit} | ${10000000000}
64 # Traffic profile:
65 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
66
67 *** Test Cases ***
68 | tc01-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
71 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
72 | | ... | using binary search start at 10GE linerate, step 10kpps.
73 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
74 | | ${framesize}= | Set Variable | ${64}
75 | | ${min_rate}= | Set Variable | ${10000}
76 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
77 | | ${binary_min}= | Set Variable | ${min_rate}
78 | | ${binary_max}= | Set Variable | ${max_rate}
79 | | ${threshold}= | Set Variable | ${min_rate}
80 | | ${dut1_vm_refs}= | Create Dictionary
81 | | ${dut2_vm_refs}= | Create Dictionary
82 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
83 | | And Add PCI devices to DUTs in 3-node single link topology
84 | | And Add no multi seg to all DUTs
85 | | And Apply startup configuration on all VPP DUTs
86 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
87 | | ... | ${sock1} | ${sock2}
88 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
89 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
90 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
91 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
92 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
93 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
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-2vhost-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 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ... | ${binary_max} | ${traffic_profile}
126 | | ... | ${min_rate} | ${max_rate} | ${threshold}
127 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
128
129 | tc03-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
132 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
133 | | ... | using binary search start at 10GE linerate, step 10kpps.
134 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
135 | | ${framesize}= | Set Variable | ${1518}
136 | | ${min_rate}= | Set Variable | ${10000}
137 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
138 | | ${binary_min}= | Set Variable | ${min_rate}
139 | | ${binary_max}= | Set Variable | ${max_rate}
140 | | ${threshold}= | Set Variable | ${min_rate}
141 | | ${dut1_vm_refs}= | Create Dictionary
142 | | ${dut2_vm_refs}= | Create Dictionary
143 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
144 | | And Add PCI devices to DUTs in 3-node single link topology
145 | | And Add no multi seg to all DUTs
146 | | And Apply startup configuration on all VPP DUTs
147 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
148 | | ... | ${sock1} | ${sock2}
149 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
150 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
151 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
152 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
153 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
154 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
155 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
156 | | ... | ${binary_max} | ${traffic_profile}
157 | | ... | ${min_rate} | ${max_rate} | ${threshold}
158
159 | tc04-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
162 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
163 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
164 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
165 | | ${framesize}= | Set Variable | ${1518}
166 | | ${min_rate}= | Set Variable | ${10000}
167 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
168 | | ${binary_min}= | Set Variable | ${min_rate}
169 | | ${binary_max}= | Set Variable | ${max_rate}
170 | | ${threshold}= | Set Variable | ${min_rate}
171 | | ${dut1_vm_refs}= | Create Dictionary
172 | | ${dut2_vm_refs}= | Create Dictionary
173 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
174 | | And Add PCI devices to DUTs in 3-node single link topology
175 | | And Add no multi seg to all DUTs
176 | | And Apply startup configuration on all VPP DUTs
177 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
178 | | ... | ${sock1} | ${sock2}
179 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
180 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
181 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
182 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
183 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
184 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
185 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
186 | | ... | ${binary_max} | ${traffic_profile}
187 | | ... | ${min_rate} | ${max_rate} | ${threshold}
188 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
189
190 | tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
193 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
194 | | ... | size using binary search start at 10GE linerate, step 10kpps.
195 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
196 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
197 | | ${framesize}= | Set Variable | IMIX_v4_1
198 | | ${min_rate}= | Set Variable | ${10000}
199 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
200 | | ${binary_min}= | Set Variable | ${min_rate}
201 | | ${binary_max}= | Set Variable | ${max_rate}
202 | | ${threshold}= | Set Variable | ${min_rate}
203 | | ${dut1_vm_refs}= | Create Dictionary
204 | | ${dut2_vm_refs}= | Create Dictionary
205 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
206 | | And Add PCI devices to DUTs in 3-node single link topology
207 | | And Add no multi seg to all DUTs
208 | | And Apply startup configuration on all VPP DUTs
209 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
210 | | ... | ${sock1} | ${sock2}
211 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
212 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
213 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
214 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
215 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
216 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
217 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
218 | | ... | ${binary_max} | ${traffic_profile}
219 | | ... | ${min_rate} | ${max_rate} | ${threshold}
220
221 | tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
224 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
225 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
226 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
227 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
228 | | ${framesize}= | Set Variable | IMIX_v4_1
229 | | ${min_rate}= | Set Variable | ${10000}
230 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
231 | | ${binary_min}= | Set Variable | ${min_rate}
232 | | ${binary_max}= | Set Variable | ${max_rate}
233 | | ${threshold}= | Set Variable | ${min_rate}
234 | | ${dut1_vm_refs}= | Create Dictionary
235 | | ${dut2_vm_refs}= | Create Dictionary
236 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
237 | | And Add PCI devices to DUTs in 3-node single link topology
238 | | And Add no multi seg to all DUTs
239 | | And Apply startup configuration on all VPP DUTs
240 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
241 | | ... | ${sock1} | ${sock2}
242 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
243 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
244 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
245 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
246 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
247 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
248 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
249 | | ... | ${binary_max} | ${traffic_profile}
250 | | ... | ${min_rate} | ${max_rate} | ${threshold}
251 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
252
253 | tc07-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
254 | | [Documentation]
255 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
256 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
257 | | ... | using binary search start at 10GE linerate, step 10kpps.
258 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
259 | | ${framesize}= | Set Variable | ${64}
260 | | ${min_rate}= | Set Variable | ${10000}
261 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
262 | | ${binary_min}= | Set Variable | ${min_rate}
263 | | ${binary_max}= | Set Variable | ${max_rate}
264 | | ${threshold}= | Set Variable | ${min_rate}
265 | | ${dut1_vm_refs}= | Create Dictionary
266 | | ${dut2_vm_refs}= | Create Dictionary
267 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
268 | | And Add PCI devices to DUTs in 3-node single link topology
269 | | And Add no multi seg to all DUTs
270 | | And Apply startup configuration on all VPP DUTs
271 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
272 | | ... | ${sock1} | ${sock2}
273 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
274 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
275 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
276 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
277 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
278 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
279 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
280 | | ... | ${binary_max} | ${traffic_profile}
281 | | ... | ${min_rate} | ${max_rate} | ${threshold}
282
283 | tc08-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
284 | | [Documentation]
285 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
286 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
287 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
288 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
289 | | ${framesize}= | Set Variable | ${64}
290 | | ${min_rate}= | Set Variable | ${10000}
291 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
292 | | ${binary_min}= | Set Variable | ${min_rate}
293 | | ${binary_max}= | Set Variable | ${max_rate}
294 | | ${threshold}= | Set Variable | ${min_rate}
295 | | ${dut1_vm_refs}= | Create Dictionary
296 | | ${dut2_vm_refs}= | Create Dictionary
297 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
298 | | And Add PCI devices to DUTs in 3-node single link topology
299 | | And Add no multi seg to all DUTs
300 | | And Apply startup configuration on all VPP DUTs
301 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
302 | | ... | ${sock1} | ${sock2}
303 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
304 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
305 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
306 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
307 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
308 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
309 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
310 | | ... | ${binary_max} | ${traffic_profile}
311 | | ... | ${min_rate} | ${max_rate} | ${threshold}
312 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
313
314 | tc09-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
315 | | [Documentation]
316 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
317 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
318 | | ... | using binary search start at 10GE linerate, step 10kpps.
319 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
320 | | ${framesize}= | Set Variable | ${1518}
321 | | ${min_rate}= | Set Variable | ${10000}
322 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
323 | | ${binary_min}= | Set Variable | ${min_rate}
324 | | ${binary_max}= | Set Variable | ${max_rate}
325 | | ${threshold}= | Set Variable | ${min_rate}
326 | | ${dut1_vm_refs}= | Create Dictionary
327 | | ${dut2_vm_refs}= | Create Dictionary
328 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
329 | | And Add PCI devices to DUTs in 3-node single link topology
330 | | And Add no multi seg to all DUTs
331 | | And Apply startup configuration on all VPP DUTs
332 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
333 | | ... | ${sock1} | ${sock2}
334 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
335 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
336 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
337 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
338 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
339 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
340 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
341 | | ... | ${binary_max} | ${traffic_profile}
342 | | ... | ${min_rate} | ${max_rate} | ${threshold}
343
344 | tc10-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
345 | | [Documentation]
346 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
347 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
348 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
349 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
350 | | ${framesize}= | Set Variable | ${1518}
351 | | ${min_rate}= | Set Variable | ${10000}
352 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
353 | | ${binary_min}= | Set Variable | ${min_rate}
354 | | ${binary_max}= | Set Variable | ${max_rate}
355 | | ${threshold}= | Set Variable | ${min_rate}
356 | | ${dut1_vm_refs}= | Create Dictionary
357 | | ${dut2_vm_refs}= | Create Dictionary
358 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
359 | | And Add PCI devices to DUTs in 3-node single link topology
360 | | And Add no multi seg to all DUTs
361 | | And Apply startup configuration on all VPP DUTs
362 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
363 | | ... | ${sock1} | ${sock2}
364 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
365 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
366 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
367 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
368 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
369 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
370 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
371 | | ... | ${binary_max} | ${traffic_profile}
372 | | ... | ${min_rate} | ${max_rate} | ${threshold}
373 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
374
375 | tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
376 | | [Documentation]
377 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
378 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
379 | | ... | size using binary search start at 10GE linerate, step 10kpps.
380 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
381 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
382 | | ${framesize}= | Set Variable | IMIX_v4_1
383 | | ${min_rate}= | Set Variable | ${10000}
384 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
385 | | ${binary_min}= | Set Variable | ${min_rate}
386 | | ${binary_max}= | Set Variable | ${max_rate}
387 | | ${threshold}= | Set Variable | ${min_rate}
388 | | ${dut1_vm_refs}= | Create Dictionary
389 | | ${dut2_vm_refs}= | Create Dictionary
390 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
391 | | And Add PCI devices to DUTs in 3-node single link topology
392 | | And Add no multi seg to all DUTs
393 | | And Apply startup configuration on all VPP DUTs
394 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
395 | | ... | ${sock1} | ${sock2}
396 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
397 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
398 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
399 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
400 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
401 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
402 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
403 | | ... | ${binary_max} | ${traffic_profile}
404 | | ... | ${min_rate} | ${max_rate} | ${threshold}
405
406 | tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
407 | | [Documentation]
408 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
409 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
410 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
411 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
412 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
413 | | ${framesize}= | Set Variable | IMIX_v4_1
414 | | ${min_rate}= | Set Variable | ${10000}
415 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
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 '1' rxqueues in 3-node single-link circular topology
422 | | And Add PCI devices to DUTs in 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 Initialize L2 xconnect with Vhost-User in 3-node circular topology
426 | | ... | ${sock1} | ${sock2}
427 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
428 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
429 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
430 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
431 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
432 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
433 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
434 | | ... | ${binary_max} | ${traffic_profile}
435 | | ... | ${min_rate} | ${max_rate} | ${threshold}
436 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
437
438 | tc13-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
439 | | [Documentation]
440 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
441 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
442 | | ... | using binary search start at 10GE linerate, step 10kpps.
443 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
444 | | ${framesize}= | Set Variable | ${64}
445 | | ${min_rate}= | Set Variable | ${10000}
446 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
447 | | ${binary_min}= | Set Variable | ${min_rate}
448 | | ${binary_max}= | Set Variable | ${max_rate}
449 | | ${threshold}= | Set Variable | ${min_rate}
450 | | ${dut1_vm_refs}= | Create Dictionary
451 | | ${dut2_vm_refs}= | Create Dictionary
452 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
453 | | And Add PCI devices to DUTs in 3-node single link topology
454 | | And Add no multi seg to all DUTs
455 | | And Apply startup configuration on all VPP DUTs
456 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
457 | | ... | ${sock1} | ${sock2}
458 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
459 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
460 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
461 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
462 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
463 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
464 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
465 | | ... | ${binary_max} | ${traffic_profile}
466 | | ... | ${min_rate} | ${max_rate} | ${threshold}
467
468 | tc14-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
469 | | [Documentation]
470 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
471 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
472 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
473 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
474 | | ${framesize}= | Set Variable | ${64}
475 | | ${min_rate}= | Set Variable | ${10000}
476 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
477 | | ${binary_min}= | Set Variable | ${min_rate}
478 | | ${binary_max}= | Set Variable | ${max_rate}
479 | | ${threshold}= | Set Variable | ${min_rate}
480 | | ${dut1_vm_refs}= | Create Dictionary
481 | | ${dut2_vm_refs}= | Create Dictionary
482 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
483 | | And Add PCI devices to DUTs in 3-node single link topology
484 | | And Add no multi seg to all DUTs
485 | | And Apply startup configuration on all VPP DUTs
486 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
487 | | ... | ${sock1} | ${sock2}
488 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
489 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
490 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
491 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
492 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
493 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
494 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
495 | | ... | ${binary_max} | ${traffic_profile}
496 | | ... | ${min_rate} | ${max_rate} | ${threshold}
497 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
498
499 | tc15-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
500 | | [Documentation]
501 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
502 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
503 | | ... | using binary search start at 10GE linerate, step 10kpps.
504 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
505 | | ${framesize}= | Set Variable | ${1518}
506 | | ${min_rate}= | Set Variable | ${10000}
507 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
508 | | ${binary_min}= | Set Variable | ${min_rate}
509 | | ${binary_max}= | Set Variable | ${max_rate}
510 | | ${threshold}= | Set Variable | ${min_rate}
511 | | ${dut1_vm_refs}= | Create Dictionary
512 | | ${dut2_vm_refs}= | Create Dictionary
513 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
514 | | And Add PCI devices to DUTs in 3-node single link topology
515 | | And Add no multi seg to all DUTs
516 | | And Apply startup configuration on all VPP DUTs
517 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
518 | | ... | ${sock1} | ${sock2}
519 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
520 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
521 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
522 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
523 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
524 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
525 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
526 | | ... | ${binary_max} | ${traffic_profile}
527 | | ... | ${min_rate} | ${max_rate} | ${threshold}
528
529 | tc16-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
530 | | [Documentation]
531 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
532 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
533 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
534 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
535 | | ${framesize}= | Set Variable | ${1518}
536 | | ${min_rate}= | Set Variable | ${10000}
537 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
538 | | ${binary_min}= | Set Variable | ${min_rate}
539 | | ${binary_max}= | Set Variable | ${max_rate}
540 | | ${threshold}= | Set Variable | ${min_rate}
541 | | ${dut1_vm_refs}= | Create Dictionary
542 | | ${dut2_vm_refs}= | Create Dictionary
543 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
544 | | And Add PCI devices to DUTs in 3-node single link topology
545 | | And Add no multi seg to all DUTs
546 | | And Apply startup configuration on all VPP DUTs
547 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
548 | | ... | ${sock1} | ${sock2}
549 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
550 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
551 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
552 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
553 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
554 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
555 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
556 | | ... | ${binary_max} | ${traffic_profile}
557 | | ... | ${min_rate} | ${max_rate} | ${threshold}
558 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
559
560 | tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc
561 | | [Documentation]
562 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
563 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
564 | | ... | size using binary search start at 10GE linerate, step 10kpps.
565 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
566 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
567 | | ${framesize}= | Set Variable | IMIX_v4_1
568 | | ${min_rate}= | Set Variable | ${10000}
569 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
570 | | ${binary_min}= | Set Variable | ${min_rate}
571 | | ${binary_max}= | Set Variable | ${max_rate}
572 | | ${threshold}= | Set Variable | ${min_rate}
573 | | ${dut1_vm_refs}= | Create Dictionary
574 | | ${dut2_vm_refs}= | Create Dictionary
575 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
576 | | And Add PCI devices to DUTs in 3-node single link topology
577 | | And Add no multi seg to all DUTs
578 | | And Apply startup configuration on all VPP DUTs
579 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
580 | | ... | ${sock1} | ${sock2}
581 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
582 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
583 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
584 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
585 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
586 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
587 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
588 | | ... | ${binary_max} | ${traffic_profile}
589 | | ... | ${min_rate} | ${max_rate} | ${threshold}
590
591 | tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc
592 | | [Documentation]
593 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
594 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
595 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
596 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
597 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
598 | | ${framesize}= | Set Variable | IMIX_v4_1
599 | | ${min_rate}= | Set Variable | ${10000}
600 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
601 | | ${binary_min}= | Set Variable | ${min_rate}
602 | | ${binary_max}= | Set Variable | ${max_rate}
603 | | ${threshold}= | Set Variable | ${min_rate}
604 | | ${dut1_vm_refs}= | Create Dictionary
605 | | ${dut2_vm_refs}= | Create Dictionary
606 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
607 | | And Add PCI devices to DUTs in 3-node single link topology
608 | | And Add no multi seg to all DUTs
609 | | And Apply startup configuration on all VPP DUTs
610 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
611 | | ... | ${sock1} | ${sock2}
612 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
613 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
614 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
615 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
616 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
617 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
618 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
619 | | ... | ${binary_max} | ${traffic_profile}
620 | | ... | ${min_rate} | ${max_rate} | ${threshold}
621 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}