23339d6031e7ee68f15fdb28dfeef5b4a8e88025
[csit.git] / tests / suites / performance / Long_Xconnect_Dot1q_Intel-X520-DA2.robot
1 # Copyright (c) 2016 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 | Resource | resources/libraries/robot/tagging.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | ...        | NIC_Intel-X520-DA2
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keyword | Remove startup configuration of VPP from all DUTs
24 | Documentation | *RFC2544: Pkt throughput L2XC test cases*
25 | ...
26 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
27 | ... | with single links between nodes.
28 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
29 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
30 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
31 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
32 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
33 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
34 | ... | of packets transmitted. NDR and PDR are discovered for different
35 | ... | Ethernet L2 frame sizes using either binary search or linear search
36 | ... | algorithms with configured starting rate and final step that determines
37 | ... | throughput measurement resolution. Test packets are generated by TG on
38 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
39 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
40 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
41 | ... | payload. MAC addresses are matching MAC addresses of the TG node
42 | ... | interfaces.
43 | ... | *[Ref] Applicable standard specifications:* RFC2544.
44
45 *** Variables ***
46 | ${subid}= | 10
47 | ${tag_rewrite}= | pop-1
48
49 *** Test Cases ***
50 | TC01: 64B NDR binary search - DUT L2XC with dot1q - 1thread 1core 1rxq
51 | | [Documentation]
52 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
53 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
54 | | ... | using binary search start at 10GE linerate, step 100kpps.
55 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
56 | | ${framesize}= | Set Variable | 64
57 | | ${min_rate}= | Set Variable | 100000
58 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
59 | | ${binary_min}= | Set Variable | ${min_rate}
60 | | ${binary_max}= | Set Variable | ${max_rate}
61 | | ${threshold}= | Set Variable | ${min_rate}
62 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
63 | | And   Add all PCI devices to all DUTs
64 | | And   Add No Multi Seg to all DUTs
65 | | And   Apply startup configuration on all VPP DUTs
66 | | And   VPP interfaces in path are up
67 | | When VLAN dot1q subinterfaces initialized on 3-node topology
68 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
69 | | And L2 tag rewrite method setup on interfaces
70 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
71 | | ... | ${tag_rewrite}
72 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
73 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
74 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
75 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
76 | | ...                                       | ${binary_max} | 3-node-xconnect
77 | | ...                                       | ${min_rate} | ${max_rate}
78 | | ...                                       | ${threshold}
79
80 | TC02: 64B PDR binary search - DUT L2XC with dot1q - 1thread 1core 1rxq
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
83 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
84 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
85 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR
86 | | ${framesize}= | Set Variable | 64
87 | | ${min_rate}= | Set Variable | 100000
88 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
89 | | ${binary_min}= | Set Variable | ${min_rate}
90 | | ${binary_max}= | Set Variable | ${max_rate}
91 | | ${threshold}= | Set Variable | ${min_rate}
92 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
93 | | And   Add all PCI devices to all DUTs
94 | | And   Add No Multi Seg to all DUTs
95 | | And   Apply startup configuration on all VPP DUTs
96 | | And   VPP interfaces in path are up
97 | | When VLAN dot1q subinterfaces initialized on 3-node topology
98 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
99 | | And L2 tag rewrite method setup on interfaces
100 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
101 | | ... | ${tag_rewrite}
102 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
103 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
104 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
105 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
106 | | ...                                       | ${binary_max} | 3-node-xconnect
107 | | ...                                       | ${min_rate} | ${max_rate}
108 | | ...                                       | ${threshold}
109 | | ...                                       | ${glob_loss_acceptance}
110 | | ...                                       | ${glob_loss_acceptance_type}
111
112 | TC03: 1518B NDR binary search - DUT L2XC with dot1q - 1thread 1core 1rxq
113 | | [Documentation]
114 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
115 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
116 | | ... | using binary search start at 10GE linerate, step 10kpps.
117 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
118 | | ${framesize}= | Set Variable | 1518
119 | | ${min_rate}= | Set Variable | 10000
120 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
121 | | ${binary_min}= | Set Variable | ${min_rate}
122 | | ${binary_max}= | Set Variable | ${max_rate}
123 | | ${threshold}= | Set Variable | ${min_rate}
124 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
125 | | And   Add all PCI devices to all DUTs
126 | | And   Add No Multi Seg to all DUTs
127 | | And   Apply startup configuration on all VPP DUTs
128 | | And   VPP interfaces in path are up
129 | | When VLAN dot1q subinterfaces initialized on 3-node topology
130 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
131 | | And L2 tag rewrite method setup on interfaces
132 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
133 | | ... | ${tag_rewrite}
134 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
135 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
136 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
137 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
138 | | ...                                       | ${binary_max} | 3-node-xconnect
139 | | ...                                       | ${min_rate} | ${max_rate}
140 | | ...                                       | ${threshold}
141
142 | TC04: 1518B PDR binary search - DUT L2XC with dot1q - 1thread 1core 1rxq
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
145 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
146 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
147 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR
148 | | ${framesize}= | Set Variable | 1518
149 | | ${min_rate}= | Set Variable | 10000
150 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
151 | | ${binary_min}= | Set Variable | ${min_rate}
152 | | ${binary_max}= | Set Variable | ${max_rate}
153 | | ${threshold}= | Set Variable | ${min_rate}
154 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
155 | | And   Add all PCI devices to all DUTs
156 | | And   Add No Multi Seg to all DUTs
157 | | And   Apply startup configuration on all VPP DUTs
158 | | And   VPP interfaces in path are up
159 | | When VLAN dot1q subinterfaces initialized on 3-node topology
160 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
161 | | And L2 tag rewrite method setup on interfaces
162 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
163 | | ... | ${tag_rewrite}
164 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
165 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
166 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
167 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
168 | | ...                                       | ${binary_max} | 3-node-xconnect
169 | | ...                                       | ${min_rate} | ${max_rate}
170 | | ...                                       | ${threshold}
171 | | ...                                       | ${glob_loss_acceptance}
172 | | ...                                       | ${glob_loss_acceptance_type}
173
174 | TC05: 9000B NDR binary search - DUT L2XC with dot1q - 1thread 1core 1rxq
175 | | [Documentation]
176 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
177 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
178 | | ... | using binary search start at 10GE linerate, step 5kpps.
179 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
180 | | ${framesize}= | Set Variable | 9000
181 | | ${min_rate}= | Set Variable | 5000
182 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
183 | | ${binary_min}= | Set Variable | ${min_rate}
184 | | ${binary_max}= | Set Variable | ${max_rate}
185 | | ${threshold}= | Set Variable | ${min_rate}
186 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
187 | | And   Add all PCI devices to all DUTs
188 | | And   Apply startup configuration on all VPP DUTs
189 | | And   VPP interfaces in path are up
190 | | When VLAN dot1q subinterfaces initialized on 3-node topology
191 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
192 | | And L2 tag rewrite method setup on interfaces
193 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
194 | | ... | ${tag_rewrite}
195 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
196 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
197 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
198 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
199 | | ...                                       | ${binary_max} | 3-node-xconnect
200 | | ...                                       | ${min_rate} | ${max_rate}
201 | | ...                                       | ${threshold}
202
203 | TC06: 9000B PDR binary search - DUT L2XC with dot1q - 1thread 1core 1rxq
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
206 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
207 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
208 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR
209 | | ${framesize}= | Set Variable | 9000
210 | | ${min_rate}= | Set Variable | 5000
211 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
212 | | ${binary_min}= | Set Variable | ${min_rate}
213 | | ${binary_max}= | Set Variable | ${max_rate}
214 | | ${threshold}= | Set Variable | ${min_rate}
215 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
216 | | And   Add all PCI devices to all DUTs
217 | | And   Apply startup configuration on all VPP DUTs
218 | | And   VPP interfaces in path are up
219 | | When VLAN dot1q subinterfaces initialized on 3-node topology
220 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
221 | | And L2 tag rewrite method setup on interfaces
222 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
223 | | ... | ${tag_rewrite}
224 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
225 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
226 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
227 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
228 | | ...                                       | ${binary_max} | 3-node-xconnect
229 | | ...                                       | ${min_rate} | ${max_rate}
230 | | ...                                       | ${threshold}
231 | | ...                                       | ${glob_loss_acceptance}
232 | | ...                                       | ${glob_loss_acceptance_type}
233
234 | TC07: 64B NDR binary search - DUT L2XC with dot1q - 2threads 2cores 1rxq
235 | | [Documentation]
236 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
237 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
238 | | ... | using binary search start at 10GE linerate, step 100kpps.
239 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
240 | | ${framesize}= | Set Variable | 64
241 | | ${min_rate}= | Set Variable | 100000
242 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
243 | | ${binary_min}= | Set Variable | ${min_rate}
244 | | ${binary_max}= | Set Variable | ${max_rate}
245 | | ${threshold}= | Set Variable | ${min_rate}
246 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
247 | | And   Add all PCI devices to all DUTs
248 | | And   Add No Multi Seg to all DUTs
249 | | And   Apply startup configuration on all VPP DUTs
250 | | And   VPP interfaces in path are up
251 | | When VLAN dot1q subinterfaces initialized on 3-node topology
252 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
253 | | And L2 tag rewrite method setup on interfaces
254 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
255 | | ... | ${tag_rewrite}
256 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
257 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
258 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
259 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
260 | | ...                                       | ${binary_max} | 3-node-xconnect
261 | | ...                                       | ${min_rate} | ${max_rate}
262 | | ...                                       | ${threshold}
263
264 | TC08: 64B PDR binary search - DUT L2XC with dot1q - 2threads 2cores 1rxq
265 | | [Documentation]
266 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
267 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
268 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
269 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR
270 | | ${framesize}= | Set Variable | 64
271 | | ${min_rate}= | Set Variable | 100000
272 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
273 | | ${binary_min}= | Set Variable | ${min_rate}
274 | | ${binary_max}= | Set Variable | ${max_rate}
275 | | ${threshold}= | Set Variable | ${min_rate}
276 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
277 | | And   Add all PCI devices to all DUTs
278 | | And   Add No Multi Seg to all DUTs
279 | | And   Apply startup configuration on all VPP DUTs
280 | | And   VPP interfaces in path are up
281 | | When VLAN dot1q subinterfaces initialized on 3-node topology
282 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
283 | | And L2 tag rewrite method setup on interfaces
284 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
285 | | ... | ${tag_rewrite}
286 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
287 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
288 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
289 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
290 | | ...                                       | ${binary_max} | 3-node-xconnect
291 | | ...                                       | ${min_rate} | ${max_rate}
292 | | ...                                       | ${threshold}
293 | | ...                                       | ${glob_loss_acceptance}
294 | | ...                                       | ${glob_loss_acceptance_type}
295
296 | TC09: 1518B NDR binary search - DUT L2XC with dot1q - 2threads 2cores 1rxq
297 | | [Documentation]
298 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
299 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
300 | | ... | using binary search start at 10GE linerate, step 10kpps.
301 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
302 | | ${framesize}= | Set Variable | 1518
303 | | ${min_rate}= | Set Variable | 10000
304 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
305 | | ${binary_min}= | Set Variable | ${min_rate}
306 | | ${binary_max}= | Set Variable | ${max_rate}
307 | | ${threshold}= | Set Variable | ${min_rate}
308 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
309 | | And   Add all PCI devices to all DUTs
310 | | And   Add No Multi Seg to all DUTs
311 | | And   Apply startup configuration on all VPP DUTs
312 | | And   VPP interfaces in path are up
313 | | When VLAN dot1q subinterfaces initialized on 3-node topology
314 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
315 | | And L2 tag rewrite method setup on interfaces
316 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
317 | | ... | ${tag_rewrite}
318 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
319 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
320 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
321 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
322 | | ...                                       | ${binary_max} | 3-node-xconnect
323 | | ...                                       | ${min_rate} | ${max_rate}
324 | | ...                                       | ${threshold}
325
326 | TC10: 1518B PDR binary search - DUT L2XC with dot1q - 2threads 2cores 1rxq
327 | | [Documentation]
328 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
329 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
330 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
331 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR
332 | | ${framesize}= | Set Variable | 1518
333 | | ${min_rate}= | Set Variable | 10000
334 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
335 | | ${binary_min}= | Set Variable | ${min_rate}
336 | | ${binary_max}= | Set Variable | ${max_rate}
337 | | ${threshold}= | Set Variable | ${min_rate}
338 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
339 | | And   Add all PCI devices to all DUTs
340 | | And   Add No Multi Seg to all DUTs
341 | | And   Apply startup configuration on all VPP DUTs
342 | | And   VPP interfaces in path are up
343 | | When VLAN dot1q subinterfaces initialized on 3-node topology
344 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
345 | | And L2 tag rewrite method setup on interfaces
346 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
347 | | ... | ${tag_rewrite}
348 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
349 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
350 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
351 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
352 | | ...                                       | ${binary_max} | 3-node-xconnect
353 | | ...                                       | ${min_rate} | ${max_rate}
354 | | ...                                       | ${threshold}
355 | | ...                                       | ${glob_loss_acceptance}
356 | | ...                                       | ${glob_loss_acceptance_type}
357
358 | TC11: 9000B NDR binary search - DUT L2XC with dot1q - 2threads 2cores 1rxq
359 | | [Documentation]
360 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
361 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
362 | | ... | using binary search start at 10GE linerate, step 5kpps.
363 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
364 | | ${framesize}= | Set Variable | 9000
365 | | ${min_rate}= | Set Variable | 5000
366 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
367 | | ${binary_min}= | Set Variable | ${min_rate}
368 | | ${binary_max}= | Set Variable | ${max_rate}
369 | | ${threshold}= | Set Variable | ${min_rate}
370 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
371 | | And   Add all PCI devices to all DUTs
372 | | And   Apply startup configuration on all VPP DUTs
373 | | And   VPP interfaces in path are up
374 | | When VLAN dot1q subinterfaces initialized on 3-node topology
375 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
376 | | And L2 tag rewrite method setup on interfaces
377 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
378 | | ... | ${tag_rewrite}
379 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
380 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
381 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
382 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
383 | | ...                                       | ${binary_max} | 3-node-xconnect
384 | | ...                                       | ${min_rate} | ${max_rate}
385 | | ...                                       | ${threshold}
386
387 | TC12: 9000B PDR binary search - DUT L2XC with dot1q - 2threads 2cores 1rxq
388 | | [Documentation]
389 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
390 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
391 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
392 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR
393 | | ${framesize}= | Set Variable | 9000
394 | | ${min_rate}= | Set Variable | 5000
395 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
396 | | ${binary_min}= | Set Variable | ${min_rate}
397 | | ${binary_max}= | Set Variable | ${max_rate}
398 | | ${threshold}= | Set Variable | ${min_rate}
399 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
400 | | And   Add all PCI devices to all DUTs
401 | | And   Apply startup configuration on all VPP DUTs
402 | | And   VPP interfaces in path are up
403 | | When VLAN dot1q subinterfaces initialized on 3-node topology
404 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
405 | | And L2 tag rewrite method setup on interfaces
406 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
407 | | ... | ${tag_rewrite}
408 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
409 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
410 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
411 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
412 | | ...                                       | ${binary_max} | 3-node-xconnect
413 | | ...                                       | ${min_rate} | ${max_rate}
414 | | ...                                       | ${threshold}
415 | | ...                                       | ${glob_loss_acceptance}
416 | | ...                                       | ${glob_loss_acceptance_type}
417
418 | TC13: 64B NDR binary search - DUT L2XC with dot1q - 4threads 4cores 2rxq
419 | | [Documentation]
420 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
421 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
422 | | ... | using binary search start at 10GE linerate, step 100kpps.
423 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
424 | | ${framesize}= | Set Variable | 64
425 | | ${min_rate}= | Set Variable | 100000
426 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
427 | | ${binary_min}= | Set Variable | ${min_rate}
428 | | ${binary_max}= | Set Variable | ${max_rate}
429 | | ${threshold}= | Set Variable | ${min_rate}
430 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
431 | | And   Add all PCI devices to all DUTs
432 | | And   Add No Multi Seg to all DUTs
433 | | And   Apply startup configuration on all VPP DUTs
434 | | And   VPP interfaces in path are up
435 | | When VLAN dot1q subinterfaces initialized on 3-node topology
436 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
437 | | And L2 tag rewrite method setup on interfaces
438 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
439 | | ... | ${tag_rewrite}
440 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
441 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
442 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
443 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
444 | | ...                                       | ${binary_max} | 3-node-xconnect
445 | | ...                                       | ${min_rate} | ${max_rate}
446 | | ...                                       | ${threshold}
447
448 | TC14: 64B PDR binary search - DUT L2XC with dot1q - 4threads 4cores 2rxq
449 | | [Documentation]
450 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
451 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
452 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
453 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR
454 | | ${framesize}= | Set Variable | 64
455 | | ${min_rate}= | Set Variable | 100000
456 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
457 | | ${binary_min}= | Set Variable | ${min_rate}
458 | | ${binary_max}= | Set Variable | ${max_rate}
459 | | ${threshold}= | Set Variable | ${min_rate}
460 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
461 | | And   Add all PCI devices to all DUTs
462 | | And   Add No Multi Seg to all DUTs
463 | | And   Apply startup configuration on all VPP DUTs
464 | | And   VPP interfaces in path are up
465 | | When VLAN dot1q subinterfaces initialized on 3-node topology
466 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
467 | | And L2 tag rewrite method setup on interfaces
468 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
469 | | ... | ${tag_rewrite}
470 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
471 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
472 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
473 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
474 | | ...                                       | ${binary_max} | 3-node-xconnect
475 | | ...                                       | ${min_rate} | ${max_rate}
476 | | ...                                       | ${threshold}
477 | | ...                                       | ${glob_loss_acceptance}
478 | | ...                                       | ${glob_loss_acceptance_type}
479
480 | TC15: 1518B NDR binary search - DUT L2XC with dot1q - 4threads 4cores 2rxq
481 | | [Documentation]
482 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
483 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
484 | | ... | using binary search start at 10GE linerate, step 10kpps.
485 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
486 | | ${framesize}= | Set Variable | 1518
487 | | ${min_rate}= | Set Variable | 10000
488 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
489 | | ${binary_min}= | Set Variable | ${min_rate}
490 | | ${binary_max}= | Set Variable | ${max_rate}
491 | | ${threshold}= | Set Variable | ${min_rate}
492 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
493 | | And   Add all PCI devices to all DUTs
494 | | And   Add No Multi Seg to all DUTs
495 | | And   Apply startup configuration on all VPP DUTs
496 | | And   VPP interfaces in path are up
497 | | When VLAN dot1q subinterfaces initialized on 3-node topology
498 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
499 | | And L2 tag rewrite method setup on interfaces
500 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
501 | | ... | ${tag_rewrite}
502 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
503 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
504 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
505 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
506 | | ...                                       | ${binary_max} | 3-node-xconnect
507 | | ...                                       | ${min_rate} | ${max_rate}
508 | | ...                                       | ${threshold}
509
510 | TC16: 1518B PDR binary search - DUT L2XC with dot1q - 4threads 4cores 2rxq
511 | | [Documentation]
512 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
513 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames
514 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
515 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR
516 | | ${framesize}= | Set Variable | 1518
517 | | ${min_rate}= | Set Variable | 10000
518 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
519 | | ${binary_min}= | Set Variable | ${min_rate}
520 | | ${binary_max}= | Set Variable | ${max_rate}
521 | | ${threshold}= | Set Variable | ${min_rate}
522 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
523 | | And   Add all PCI devices to all DUTs
524 | | And   Add No Multi Seg to all DUTs
525 | | And   Apply startup configuration on all VPP DUTs
526 | | And   VPP interfaces in path are up
527 | | When VLAN dot1q subinterfaces initialized on 3-node topology
528 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
529 | | And L2 tag rewrite method setup on interfaces
530 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
531 | | ... | ${tag_rewrite}
532 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
533 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
534 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
535 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
536 | | ...                                       | ${binary_max} | 3-node-xconnect
537 | | ...                                       | ${min_rate} | ${max_rate}
538 | | ...                                       | ${threshold}
539 | | ...                                       | ${glob_loss_acceptance}
540 | | ...                                       | ${glob_loss_acceptance_type}
541
542 | TC17: 9000B NDR binary search - DUT L2XC with dot1q - 4threads 4cores 2rxq
543 | | [Documentation]
544 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
545 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
546 | | ... | using binary search start at 10GE linerate, step 5kpps.
547 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
548 | | ${framesize}= | Set Variable | 9000
549 | | ${min_rate}= | Set Variable | 5000
550 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
551 | | ${binary_min}= | Set Variable | ${min_rate}
552 | | ${binary_max}= | Set Variable | ${max_rate}
553 | | ${threshold}= | Set Variable | ${min_rate}
554 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
555 | | And   Add all PCI devices to all DUTs
556 | | And   Apply startup configuration on all VPP DUTs
557 | | And   VPP interfaces in path are up
558 | | When VLAN dot1q subinterfaces initialized on 3-node topology
559 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
560 | | And L2 tag rewrite method setup on interfaces
561 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
562 | | ... | ${tag_rewrite}
563 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
564 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
565 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
566 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
567 | | ...                                       | ${binary_max} | 3-node-xconnect
568 | | ...                                       | ${min_rate} | ${max_rate}
569 | | ...                                       | ${threshold}
570
571 | TC18: 9000B PDR binary search - DUT L2XC with dot1q - 4threads 4cores 2rxq
572 | | [Documentation]
573 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
574 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
575 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
576 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR
577 | | ${framesize}= | Set Variable | 9000
578 | | ${min_rate}= | Set Variable | 5000
579 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
580 | | ${binary_min}= | Set Variable | ${min_rate}
581 | | ${binary_max}= | Set Variable | ${max_rate}
582 | | ${threshold}= | Set Variable | ${min_rate}
583 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
584 | | And   Add all PCI devices to all DUTs
585 | | And   Apply startup configuration on all VPP DUTs
586 | | And   VPP interfaces in path are up
587 | | When VLAN dot1q subinterfaces initialized on 3-node topology
588 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
589 | | And L2 tag rewrite method setup on interfaces
590 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
591 | | ... | ${tag_rewrite}
592 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
593 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
594 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
595 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
596 | | ...                                       | ${binary_max} | 3-node-xconnect
597 | | ...                                       | ${min_rate} | ${max_rate}
598 | | ...                                       | ${threshold}
599 | | ...                                       | ${glob_loss_acceptance}
600 | | ...                                       | ${glob_loss_acceptance_type}