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