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