7938b1e88f6bd37558a829fff466c960cef0f6da
[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
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 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
93 | | ... | ${binary_max} | ${traffic_profile}
94 | | ... | ${min_rate} | ${max_rate} | ${threshold}
95
96 | tc02-64B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
99 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
100 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
101 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
102 | | ${framesize}= | Set Variable | ${64}
103 | | ${min_rate}= | Set Variable | ${10000}
104 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
105 | | ${binary_min}= | Set Variable | ${min_rate}
106 | | ${binary_max}= | Set Variable | ${max_rate}
107 | | ${threshold}= | Set Variable | ${min_rate}
108 | | ${dut1_vm_refs}= | Create Dictionary
109 | | ${dut2_vm_refs}= | Create Dictionary
110 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
111 | | And Add PCI devices to DUTs in 3-node single link topology
112 | | And Add no multi seg to all DUTs
113 | | And Apply startup configuration on all VPP DUTs
114 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
115 | | ... | ${sock1} | ${sock2}
116 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
117 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
118 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
119 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
120 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
121 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
122 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
123 | | ... | ${binary_max} | ${traffic_profile}
124 | | ... | ${min_rate} | ${max_rate} | ${threshold}
125 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
126
127 | tc03-1518B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
130 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
131 | | ... | using binary search start at 10GE linerate, step 10kpps.
132 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
133 | | ${framesize}= | Set Variable | ${1518}
134 | | ${min_rate}= | Set Variable | ${10000}
135 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
136 | | ${binary_min}= | Set Variable | ${min_rate}
137 | | ${binary_max}= | Set Variable | ${max_rate}
138 | | ${threshold}= | Set Variable | ${min_rate}
139 | | ${dut1_vm_refs}= | Create Dictionary
140 | | ${dut2_vm_refs}= | Create Dictionary
141 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
142 | | And Add PCI devices to DUTs in 3-node single link topology
143 | | And Add no multi seg to all DUTs
144 | | And Apply startup configuration on all VPP DUTs
145 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
146 | | ... | ${sock1} | ${sock2}
147 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
148 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
149 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
150 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
151 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
152 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
153 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
154 | | ... | ${binary_max} | ${traffic_profile}
155 | | ... | ${min_rate} | ${max_rate} | ${threshold}
156
157 | tc04-1518B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
160 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
161 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
162 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
163 | | ${framesize}= | Set Variable | ${1518}
164 | | ${min_rate}= | Set Variable | ${10000}
165 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
166 | | ${binary_min}= | Set Variable | ${min_rate}
167 | | ${binary_max}= | Set Variable | ${max_rate}
168 | | ${threshold}= | Set Variable | ${min_rate}
169 | | ${dut1_vm_refs}= | Create Dictionary
170 | | ${dut2_vm_refs}= | Create Dictionary
171 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
172 | | And Add PCI devices to DUTs in 3-node single link topology
173 | | And Add no multi seg to all DUTs
174 | | And Apply startup configuration on all VPP DUTs
175 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
176 | | ... | ${sock1} | ${sock2}
177 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
178 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
179 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
180 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
181 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
182 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
183 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
184 | | ... | ${binary_max} | ${traffic_profile}
185 | | ... | ${min_rate} | ${max_rate} | ${threshold}
186 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
187
188 | tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
189 | | [Documentation]
190 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
191 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
192 | | ... | size using binary search start at 10GE linerate, step 10kpps.
193 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
194 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
195 | | ${framesize}= | Set Variable | IMIX_v4_1
196 | | ${min_rate}= | Set Variable | ${10000}
197 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
198 | | ${binary_min}= | Set Variable | ${min_rate}
199 | | ${binary_max}= | Set Variable | ${max_rate}
200 | | ${threshold}= | Set Variable | ${min_rate}
201 | | ${dut1_vm_refs}= | Create Dictionary
202 | | ${dut2_vm_refs}= | Create Dictionary
203 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
204 | | And Add PCI devices to DUTs in 3-node single link topology
205 | | And Add no multi seg to all DUTs
206 | | And Apply startup configuration on all VPP DUTs
207 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
208 | | ... | ${sock1} | ${sock2}
209 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
210 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
211 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
212 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
213 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
214 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
215 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
216 | | ... | ${binary_max} | ${traffic_profile}
217 | | ... | ${min_rate} | ${max_rate} | ${threshold}
218
219 | tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
222 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
223 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
224 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
225 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
226 | | ${framesize}= | Set Variable | IMIX_v4_1
227 | | ${min_rate}= | Set Variable | ${10000}
228 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
229 | | ${binary_min}= | Set Variable | ${min_rate}
230 | | ${binary_max}= | Set Variable | ${max_rate}
231 | | ${threshold}= | Set Variable | ${min_rate}
232 | | ${dut1_vm_refs}= | Create Dictionary
233 | | ${dut2_vm_refs}= | Create Dictionary
234 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
235 | | And Add PCI devices to DUTs in 3-node single link topology
236 | | And Add no multi seg to all DUTs
237 | | And Apply startup configuration on all VPP DUTs
238 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
239 | | ... | ${sock1} | ${sock2}
240 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
241 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
242 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
243 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
244 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
245 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
246 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
247 | | ... | ${binary_max} | ${traffic_profile}
248 | | ... | ${min_rate} | ${max_rate} | ${threshold}
249 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
250
251 | tc07-64B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
252 | | [Documentation]
253 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
254 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
255 | | ... | using binary search start at 10GE linerate, step 10kpps.
256 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
257 | | ${framesize}= | Set Variable | ${64}
258 | | ${min_rate}= | Set Variable | ${10000}
259 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
260 | | ${binary_min}= | Set Variable | ${min_rate}
261 | | ${binary_max}= | Set Variable | ${max_rate}
262 | | ${threshold}= | Set Variable | ${min_rate}
263 | | ${dut1_vm_refs}= | Create Dictionary
264 | | ${dut2_vm_refs}= | Create Dictionary
265 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
266 | | And Add PCI devices to DUTs in 3-node single link topology
267 | | And Add no multi seg to all DUTs
268 | | And Apply startup configuration on all VPP DUTs
269 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
270 | | ... | ${sock1} | ${sock2}
271 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
272 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
273 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
274 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
275 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
276 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
277 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
278 | | ... | ${binary_max} | ${traffic_profile}
279 | | ... | ${min_rate} | ${max_rate} | ${threshold}
280
281 | tc08-64B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
282 | | [Documentation]
283 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
284 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
285 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
286 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
287 | | ${framesize}= | Set Variable | ${64}
288 | | ${min_rate}= | Set Variable | ${10000}
289 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
290 | | ${binary_min}= | Set Variable | ${min_rate}
291 | | ${binary_max}= | Set Variable | ${max_rate}
292 | | ${threshold}= | Set Variable | ${min_rate}
293 | | ${dut1_vm_refs}= | Create Dictionary
294 | | ${dut2_vm_refs}= | Create Dictionary
295 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
296 | | And Add PCI devices to DUTs in 3-node single link topology
297 | | And Add no multi seg to all DUTs
298 | | And Apply startup configuration on all VPP DUTs
299 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
300 | | ... | ${sock1} | ${sock2}
301 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
302 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
303 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
304 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
305 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
306 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
307 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
308 | | ... | ${binary_max} | ${traffic_profile}
309 | | ... | ${min_rate} | ${max_rate} | ${threshold}
310 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
311
312 | tc09-1518B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
313 | | [Documentation]
314 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
315 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
316 | | ... | using binary search start at 10GE linerate, step 10kpps.
317 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
318 | | ${framesize}= | Set Variable | ${1518}
319 | | ${min_rate}= | Set Variable | ${10000}
320 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
321 | | ${binary_min}= | Set Variable | ${min_rate}
322 | | ${binary_max}= | Set Variable | ${max_rate}
323 | | ${threshold}= | Set Variable | ${min_rate}
324 | | ${dut1_vm_refs}= | Create Dictionary
325 | | ${dut2_vm_refs}= | Create Dictionary
326 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
327 | | And Add PCI devices to DUTs in 3-node single link topology
328 | | And Add no multi seg to all DUTs
329 | | And Apply startup configuration on all VPP DUTs
330 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
331 | | ... | ${sock1} | ${sock2}
332 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
333 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
334 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
335 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
336 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
337 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
338 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
339 | | ... | ${binary_max} | ${traffic_profile}
340 | | ... | ${min_rate} | ${max_rate} | ${threshold}
341
342 | tc10-1518B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
343 | | [Documentation]
344 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
345 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
346 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
347 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
348 | | ${framesize}= | Set Variable | ${1518}
349 | | ${min_rate}= | Set Variable | ${10000}
350 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
351 | | ${binary_min}= | Set Variable | ${min_rate}
352 | | ${binary_max}= | Set Variable | ${max_rate}
353 | | ${threshold}= | Set Variable | ${min_rate}
354 | | ${dut1_vm_refs}= | Create Dictionary
355 | | ${dut2_vm_refs}= | Create Dictionary
356 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
357 | | And Add PCI devices to DUTs in 3-node single link topology
358 | | And Add no multi seg to all DUTs
359 | | And Apply startup configuration on all VPP DUTs
360 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
361 | | ... | ${sock1} | ${sock2}
362 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
363 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
364 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
365 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
366 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
367 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
368 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
369 | | ... | ${binary_max} | ${traffic_profile}
370 | | ... | ${min_rate} | ${max_rate} | ${threshold}
371 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
372
373 | tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
374 | | [Documentation]
375 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
376 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
377 | | ... | size using binary search start at 10GE linerate, step 10kpps.
378 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
379 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
380 | | ${framesize}= | Set Variable | IMIX_v4_1
381 | | ${min_rate}= | Set Variable | ${10000}
382 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
383 | | ${binary_min}= | Set Variable | ${min_rate}
384 | | ${binary_max}= | Set Variable | ${max_rate}
385 | | ${threshold}= | Set Variable | ${min_rate}
386 | | ${dut1_vm_refs}= | Create Dictionary
387 | | ${dut2_vm_refs}= | Create Dictionary
388 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
389 | | And Add PCI devices to DUTs in 3-node single link topology
390 | | And Add no multi seg to all DUTs
391 | | And Apply startup configuration on all VPP DUTs
392 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
393 | | ... | ${sock1} | ${sock2}
394 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
395 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
396 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
397 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
398 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
399 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
400 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
401 | | ... | ${binary_max} | ${traffic_profile}
402 | | ... | ${min_rate} | ${max_rate} | ${threshold}
403
404 | tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
405 | | [Documentation]
406 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
407 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
408 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
409 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
410 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
411 | | ${framesize}= | Set Variable | IMIX_v4_1
412 | | ${min_rate}= | Set Variable | ${10000}
413 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
414 | | ${binary_min}= | Set Variable | ${min_rate}
415 | | ${binary_max}= | Set Variable | ${max_rate}
416 | | ${threshold}= | Set Variable | ${min_rate}
417 | | ${dut1_vm_refs}= | Create Dictionary
418 | | ${dut2_vm_refs}= | Create Dictionary
419 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
420 | | And Add PCI devices to DUTs in 3-node single link topology
421 | | And Add no multi seg to all DUTs
422 | | And Apply startup configuration on all VPP DUTs
423 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
424 | | ... | ${sock1} | ${sock2}
425 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
426 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
427 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
428 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
429 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
430 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
431 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
432 | | ... | ${binary_max} | ${traffic_profile}
433 | | ... | ${min_rate} | ${max_rate} | ${threshold}
434 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
435
436 | tc13-64B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
437 | | [Documentation]
438 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
439 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
440 | | ... | using binary search start at 10GE linerate, step 10kpps.
441 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
442 | | ${framesize}= | Set Variable | ${64}
443 | | ${min_rate}= | Set Variable | ${10000}
444 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
445 | | ${binary_min}= | Set Variable | ${min_rate}
446 | | ${binary_max}= | Set Variable | ${max_rate}
447 | | ${threshold}= | Set Variable | ${min_rate}
448 | | ${dut1_vm_refs}= | Create Dictionary
449 | | ${dut2_vm_refs}= | Create Dictionary
450 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
451 | | And Add PCI devices to DUTs in 3-node single link topology
452 | | And Add no multi seg to all DUTs
453 | | And Apply startup configuration on all VPP DUTs
454 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
455 | | ... | ${sock1} | ${sock2}
456 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
457 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
458 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
459 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
460 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
461 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
462 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
463 | | ... | ${binary_max} | ${traffic_profile}
464 | | ... | ${min_rate} | ${max_rate} | ${threshold}
465
466 | tc14-64B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
467 | | [Documentation]
468 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
469 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
470 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
471 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
472 | | ${framesize}= | Set Variable | ${64}
473 | | ${min_rate}= | Set Variable | ${10000}
474 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
475 | | ${binary_min}= | Set Variable | ${min_rate}
476 | | ${binary_max}= | Set Variable | ${max_rate}
477 | | ${threshold}= | Set Variable | ${min_rate}
478 | | ${dut1_vm_refs}= | Create Dictionary
479 | | ${dut2_vm_refs}= | Create Dictionary
480 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
481 | | And Add PCI devices to DUTs in 3-node single link topology
482 | | And Add no multi seg to all DUTs
483 | | And Apply startup configuration on all VPP DUTs
484 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
485 | | ... | ${sock1} | ${sock2}
486 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
487 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
488 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
489 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
490 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
491 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
492 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
493 | | ... | ${binary_max} | ${traffic_profile}
494 | | ... | ${min_rate} | ${max_rate} | ${threshold}
495 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
496
497 | tc15-1518B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
498 | | [Documentation]
499 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
500 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
501 | | ... | using binary search start at 10GE linerate, step 10kpps.
502 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
503 | | ${framesize}= | Set Variable | ${1518}
504 | | ${min_rate}= | Set Variable | ${10000}
505 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
506 | | ${binary_min}= | Set Variable | ${min_rate}
507 | | ${binary_max}= | Set Variable | ${max_rate}
508 | | ${threshold}= | Set Variable | ${min_rate}
509 | | ${dut1_vm_refs}= | Create Dictionary
510 | | ${dut2_vm_refs}= | Create Dictionary
511 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
512 | | And Add PCI devices to DUTs in 3-node single link topology
513 | | And Add no multi seg to all DUTs
514 | | And Apply startup configuration on all VPP DUTs
515 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
516 | | ... | ${sock1} | ${sock2}
517 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
518 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
519 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
520 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
521 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
522 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
523 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
524 | | ... | ${binary_max} | ${traffic_profile}
525 | | ... | ${min_rate} | ${max_rate} | ${threshold}
526
527 | tc16-1518B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
528 | | [Documentation]
529 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
530 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
531 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
532 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
533 | | ${framesize}= | Set Variable | ${1518}
534 | | ${min_rate}= | Set Variable | ${10000}
535 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
536 | | ${binary_min}= | Set Variable | ${min_rate}
537 | | ${binary_max}= | Set Variable | ${max_rate}
538 | | ${threshold}= | Set Variable | ${min_rate}
539 | | ${dut1_vm_refs}= | Create Dictionary
540 | | ${dut2_vm_refs}= | Create Dictionary
541 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
542 | | And Add PCI devices to DUTs in 3-node single link topology
543 | | And Add no multi seg to all DUTs
544 | | And Apply startup configuration on all VPP DUTs
545 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
546 | | ... | ${sock1} | ${sock2}
547 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
548 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
549 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
550 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
551 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
552 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
553 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
554 | | ... | ${binary_max} | ${traffic_profile}
555 | | ... | ${min_rate} | ${max_rate} | ${threshold}
556 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
557
558 | tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
559 | | [Documentation]
560 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
561 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
562 | | ... | size using binary search start at 10GE linerate, step 10kpps.
563 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
564 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
565 | | ${framesize}= | Set Variable | IMIX_v4_1
566 | | ${min_rate}= | Set Variable | ${10000}
567 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
568 | | ${binary_min}= | Set Variable | ${min_rate}
569 | | ${binary_max}= | Set Variable | ${max_rate}
570 | | ${threshold}= | Set Variable | ${min_rate}
571 | | ${dut1_vm_refs}= | Create Dictionary
572 | | ${dut2_vm_refs}= | Create Dictionary
573 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
574 | | And Add PCI devices to DUTs in 3-node single link topology
575 | | And Add no multi seg to all DUTs
576 | | And Apply startup configuration on all VPP DUTs
577 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
578 | | ... | ${sock1} | ${sock2}
579 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
580 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
581 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
582 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
583 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
584 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
585 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
586 | | ... | ${binary_max} | ${traffic_profile}
587 | | ... | ${min_rate} | ${max_rate} | ${threshold}
588
589 | tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
590 | | [Documentation]
591 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
592 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
593 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
594 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
595 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
596 | | ${framesize}= | Set Variable | IMIX_v4_1
597 | | ${min_rate}= | Set Variable | ${10000}
598 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
599 | | ${binary_min}= | Set Variable | ${min_rate}
600 | | ${binary_max}= | Set Variable | ${max_rate}
601 | | ${threshold}= | Set Variable | ${min_rate}
602 | | ${dut1_vm_refs}= | Create Dictionary
603 | | ${dut2_vm_refs}= | Create Dictionary
604 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
605 | | And Add PCI devices to DUTs in 3-node single link topology
606 | | And Add no multi seg to all DUTs
607 | | And Apply startup configuration on all VPP DUTs
608 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
609 | | ... | ${sock1} | ${sock2}
610 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
611 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
612 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
613 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
614 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
615 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
616 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
617 | | ... | ${binary_max} | ${traffic_profile}
618 | | ... | ${min_rate} | ${max_rate} | ${threshold}
619 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}