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