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