CSIT-530: Add common setup and teardown to perf tests
[csit.git] / tests / perf / 10ge2p1x520-dot1ad-l2xcbase-ndrdisc.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Resource | resources/libraries/robot/tagging.robot
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | L2XCFWD | BASE | DOT1AD
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
27 | ... | 3-node-xconnect
28 | ...
29 | Documentation | *RFC2544: Pkt throughput L2XC with 802.1ad test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 xconnect.
34 | ... | 802.1ad tagging is applied on link between DUT1 and DUT2 with inner 4B
35 | ... | vlan tag (id=100) and outer 4B vlan tag (id=200).
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
48 | ... | static payload. MAC addresses are matching MAC addresses of the TG
49 | ... | node interfaces.
50 | ... | *[Ref] Applicable standard specifications:* RFC2544.
51
52 *** Variables ***
53 | ${subid}= | 10
54 | ${outer_vlan_id}= | 100
55 | ${inner_vlan_id}= | 200
56 | ${type_subif}= | two_tags
57 | ${tag_rewrite}= | pop-2
58 # X520-DA2 bandwidth limit
59 | ${s_limit} | ${10000000000}
60
61 *** Test Cases ***
62 | tc01-64B-1t1c-dot1ad-l2xcbase-ndrdisc
63 | | [Documentation]
64 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, \
65 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
66 | | ... | using binary search start at 10GE linerate, step 100kpps.
67 | | [Tags] | 1T1C | STHREAD | NDRDISC
68 | | ${framesize}= | Set Variable | ${64}
69 | | ${min_rate}= | Set Variable | ${100000}
70 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
71 | | ${binary_min}= | Set Variable | ${min_rate}
72 | | ${binary_max}= | Set Variable | ${max_rate}
73 | | ${threshold}= | Set Variable | ${min_rate}
74 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
75 | | And   Add PCI devices to DUTs from 3-node single link topology
76 | | And   Add No Multi Seg to all DUTs
77 | | And   Apply startup configuration on all VPP DUTs
78 | | And   VPP interfaces in path are up in a 3-node circular topology
79 | | When VLAN subinterfaces initialized on 3-node topology
80 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
81 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
82 | | And L2 tag rewrite method setup on interfaces
83 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
84 | | ... | ${tag_rewrite}
85 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
86 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
87 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
88 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
89 | | ...                                       | ${binary_max} | 3-node-xconnect
90 | | ...                                       | ${min_rate} | ${max_rate}
91 | | ...                                       | ${threshold}
92
93 | tc02-64B-1t1c-dot1ad-l2xcbase-pdrdisc
94 | | [Documentation]
95 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, \
96 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
97 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
98 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
99 | | ${framesize}= | Set Variable | ${64}
100 | | ${min_rate}= | Set Variable | ${100000}
101 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
102 | | ${binary_min}= | Set Variable | ${min_rate}
103 | | ${binary_max}= | Set Variable | ${max_rate}
104 | | ${threshold}= | Set Variable | ${min_rate}
105 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
106 | | And   Add PCI devices to DUTs from 3-node single link topology
107 | | And   Add No Multi Seg to all DUTs
108 | | And   Apply startup configuration on all VPP DUTs
109 | | And   VPP interfaces in path are up in a 3-node circular topology
110 | | When VLAN subinterfaces initialized on 3-node topology
111 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
112 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
113 | | And L2 tag rewrite method setup on interfaces
114 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
115 | | ... | ${tag_rewrite}
116 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
117 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
118 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
119 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
120 | | ...                                       | ${binary_max} | 3-node-xconnect
121 | | ...                                       | ${min_rate} | ${max_rate}
122 | | ...                                       | ${threshold}
123 | | ...                                       | ${perf_pdr_loss_acceptance}
124 | | ...                                       | ${perf_pdr_loss_acceptance_type}
125
126 | tc03-1514B-1t1c-dot1ad-l2xcbase-ndrdisc
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, \
129 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames
130 | | ... | using binary search start at 10GE linerate, step 10kpps.
131 | | [Tags] | 1T1C | STHREAD | NDRDISC
132 | | ${framesize}= | Set Variable | ${1514}
133 | | ${min_rate}= | Set Variable | ${10000}
134 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
135 | | ${binary_min}= | Set Variable | ${min_rate}
136 | | ${binary_max}= | Set Variable | ${max_rate}
137 | | ${threshold}= | Set Variable | ${min_rate}
138 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
139 | | And   Add PCI devices to DUTs from 3-node single link topology
140 | | And   Add No Multi Seg to all DUTs
141 | | And   Apply startup configuration on all VPP DUTs
142 | | And   VPP interfaces in path are up in a 3-node circular topology
143 | | When VLAN subinterfaces initialized on 3-node topology
144 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
145 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
146 | | And L2 tag rewrite method setup on interfaces
147 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
148 | | ... | ${tag_rewrite}
149 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
150 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
151 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
152 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
153 | | ...                                       | ${binary_max} | 3-node-xconnect
154 | | ...                                       | ${min_rate} | ${max_rate}
155 | | ...                                       | ${threshold}
156
157 | tc04-1514B-1t1c-dot1ad-l2xcbase-pdrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, \
160 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames
161 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
162 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
163 | | ${framesize}= | Set Variable | ${1514}
164 | | ${min_rate}= | Set Variable | ${10000}
165 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
166 | | ${binary_min}= | Set Variable | ${min_rate}
167 | | ${binary_max}= | Set Variable | ${max_rate}
168 | | ${threshold}= | Set Variable | ${min_rate}
169 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
170 | | And   Add PCI devices to DUTs from 3-node single link topology
171 | | And   Add No Multi Seg to all DUTs
172 | | And   Apply startup configuration on all VPP DUTs
173 | | And   VPP interfaces in path are up in a 3-node circular topology
174 | | When VLAN subinterfaces initialized on 3-node topology
175 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
176 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
177 | | And L2 tag rewrite method setup on interfaces
178 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
179 | | ... | ${tag_rewrite}
180 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
181 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
182 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
183 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
184 | | ...                                       | ${binary_max} | 3-node-xconnect
185 | | ...                                       | ${min_rate} | ${max_rate}
186 | | ...                                       | ${threshold}
187 | | ...                                       | ${perf_pdr_loss_acceptance}
188 | | ...                                       | ${perf_pdr_loss_acceptance_type}
189
190 | tc05-9000B-1t1c-dot1ad-l2xcbase-ndrdisc
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, \
193 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
194 | | ... | using binary search start at 10GE linerate, step 5kpps.
195 | | [Tags] | 1T1C | STHREAD | NDRDISC
196 | | ${framesize}= | Set Variable | ${9000}
197 | | ${min_rate}= | Set Variable | ${10000}
198 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
199 | | ${binary_min}= | Set Variable | ${min_rate}
200 | | ${binary_max}= | Set Variable | ${max_rate}
201 | | ${threshold}= | Set Variable | ${min_rate}
202 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
203 | | And   Add PCI devices to DUTs from 3-node single link topology
204 | | And   Apply startup configuration on all VPP DUTs
205 | | And   VPP interfaces in path are up in a 3-node circular topology
206 | | When VLAN subinterfaces initialized on 3-node topology
207 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
208 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
209 | | And L2 tag rewrite method setup on interfaces
210 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
211 | | ... | ${tag_rewrite}
212 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
213 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
214 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
215 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
216 | | ...                                       | ${binary_max} | 3-node-xconnect
217 | | ...                                       | ${min_rate} | ${max_rate}
218 | | ...                                       | ${threshold}
219
220 | tc06-9000B-1t1c-dot1ad-l2xcbase-pdrdisc
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, \
223 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
224 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
225 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
226 | | ${framesize}= | Set Variable | ${9000}
227 | | ${min_rate}= | Set Variable | ${10000}
228 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
229 | | ${binary_min}= | Set Variable | ${min_rate}
230 | | ${binary_max}= | Set Variable | ${max_rate}
231 | | ${threshold}= | Set Variable | ${min_rate}
232 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
233 | | And   Add PCI devices to DUTs from 3-node single link topology
234 | | And   Apply startup configuration on all VPP DUTs
235 | | And   VPP interfaces in path are up in a 3-node circular topology
236 | | When VLAN subinterfaces initialized on 3-node topology
237 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
238 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
239 | | And L2 tag rewrite method setup on interfaces
240 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
241 | | ... | ${tag_rewrite}
242 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
243 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
244 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
245 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
246 | | ...                                       | ${binary_max} | 3-node-xconnect
247 | | ...                                       | ${min_rate} | ${max_rate}
248 | | ...                                       | ${threshold}
249 | | ...                                       | ${perf_pdr_loss_acceptance}
250 | | ...                                       | ${perf_pdr_loss_acceptance_type}
251
252 | tc07-64B-2t2c-dot1ad-l2xcbase-ndrdisc
253 | | [Documentation]
254 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, \
255 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
256 | | ... | using binary search start at 10GE linerate, step 100kpps.
257 | | [Tags] | 2T2C | MTHREAD | NDRDISC
258 | | ${framesize}= | Set Variable | ${64}
259 | | ${min_rate}= | Set Variable | ${100000}
260 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
261 | | ${binary_min}= | Set Variable | ${min_rate}
262 | | ${binary_max}= | Set Variable | ${max_rate}
263 | | ${threshold}= | Set Variable | ${min_rate}
264 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
265 | | And   Add PCI devices to DUTs from 3-node single link topology
266 | | And   Add No Multi Seg to all DUTs
267 | | And   Apply startup configuration on all VPP DUTs
268 | | And   VPP interfaces in path are up in a 3-node circular topology
269 | | When VLAN subinterfaces initialized on 3-node topology
270 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
271 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
272 | | And L2 tag rewrite method setup on interfaces
273 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
274 | | ... | ${tag_rewrite}
275 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
276 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
277 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
278 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
279 | | ...                                       | ${binary_max} | 3-node-xconnect
280 | | ...                                       | ${min_rate} | ${max_rate}
281 | | ...                                       | ${threshold}
282
283 | tc08-64B-2t2c-dot1ad-l2xcbase-pdrdisc
284 | | [Documentation]
285 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, \
286 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
287 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
288 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
289 | | ${framesize}= | Set Variable | ${64}
290 | | ${min_rate}= | Set Variable | ${100000}
291 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
292 | | ${binary_min}= | Set Variable | ${min_rate}
293 | | ${binary_max}= | Set Variable | ${max_rate}
294 | | ${threshold}= | Set Variable | ${min_rate}
295 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
296 | | And   Add PCI devices to DUTs from 3-node single link topology
297 | | And   Add No Multi Seg to all DUTs
298 | | And   Apply startup configuration on all VPP DUTs
299 | | And   VPP interfaces in path are up in a 3-node circular topology
300 | | When VLAN subinterfaces initialized on 3-node topology
301 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
302 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
303 | | And L2 tag rewrite method setup on interfaces
304 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
305 | | ... | ${tag_rewrite}
306 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
307 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
308 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
309 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
310 | | ...                                       | ${binary_max} | 3-node-xconnect
311 | | ...                                       | ${min_rate} | ${max_rate}
312 | | ...                                       | ${threshold}
313 | | ...                                       | ${perf_pdr_loss_acceptance}
314 | | ...                                       | ${perf_pdr_loss_acceptance_type}
315
316 | tc09-1514B-2t2c-dot1ad-l2xcbase-ndrdisc
317 | | [Documentation]
318 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, \
319 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames
320 | | ... | using binary search start at 10GE linerate, step 10kpps.
321 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
322 | | ${framesize}= | Set Variable | ${1514}
323 | | ${min_rate}= | Set Variable | ${10000}
324 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
325 | | ${binary_min}= | Set Variable | ${min_rate}
326 | | ${binary_max}= | Set Variable | ${max_rate}
327 | | ${threshold}= | Set Variable | ${min_rate}
328 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
329 | | And   Add PCI devices to DUTs from 3-node single link topology
330 | | And   Add No Multi Seg to all DUTs
331 | | And   Apply startup configuration on all VPP DUTs
332 | | And   VPP interfaces in path are up in a 3-node circular topology
333 | | When VLAN subinterfaces initialized on 3-node topology
334 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
335 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
336 | | And L2 tag rewrite method setup on interfaces
337 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
338 | | ... | ${tag_rewrite}
339 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
340 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
341 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
342 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
343 | | ...                                       | ${binary_max} | 3-node-xconnect
344 | | ...                                       | ${min_rate} | ${max_rate}
345 | | ...                                       | ${threshold}
346
347 | tc10-1514B-2t2c-dot1ad-l2xcbase-pdrdisc
348 | | [Documentation]
349 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, \
350 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames
351 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
352 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
353 | | ${framesize}= | Set Variable | ${1514}
354 | | ${min_rate}= | Set Variable | ${10000}
355 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
356 | | ${binary_min}= | Set Variable | ${min_rate}
357 | | ${binary_max}= | Set Variable | ${max_rate}
358 | | ${threshold}= | Set Variable | ${min_rate}
359 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
360 | | And   Add PCI devices to DUTs from 3-node single link topology
361 | | And   Add No Multi Seg to all DUTs
362 | | And   Apply startup configuration on all VPP DUTs
363 | | And   VPP interfaces in path are up in a 3-node circular topology
364 | | When VLAN subinterfaces initialized on 3-node topology
365 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
366 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
367 | | And L2 tag rewrite method setup on interfaces
368 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
369 | | ... | ${tag_rewrite}
370 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
371 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
372 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
373 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
374 | | ...                                       | ${binary_max} | 3-node-xconnect
375 | | ...                                       | ${min_rate} | ${max_rate}
376 | | ...                                       | ${threshold}
377 | | ...                                       | ${perf_pdr_loss_acceptance}
378 | | ...                                       | ${perf_pdr_loss_acceptance_type}
379
380 | tc11-9000B-2t2c-dot1ad-l2xcbase-ndrdisc
381 | | [Documentation]
382 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, \
383 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
384 | | ... | using binary search start at 10GE linerate, step 5kpps.
385 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
386 | | ${framesize}= | Set Variable | ${9000}
387 | | ${min_rate}= | Set Variable | ${10000}
388 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
389 | | ${binary_min}= | Set Variable | ${min_rate}
390 | | ${binary_max}= | Set Variable | ${max_rate}
391 | | ${threshold}= | Set Variable | ${min_rate}
392 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
393 | | And   Add PCI devices to DUTs from 3-node single link topology
394 | | And   Apply startup configuration on all VPP DUTs
395 | | And   VPP interfaces in path are up in a 3-node circular topology
396 | | When VLAN subinterfaces initialized on 3-node topology
397 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
398 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
399 | | And L2 tag rewrite method setup on interfaces
400 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
401 | | ... | ${tag_rewrite}
402 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
403 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
404 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
405 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
406 | | ...                                       | ${binary_max} | 3-node-xconnect
407 | | ...                                       | ${min_rate} | ${max_rate}
408 | | ...                                       | ${threshold}
409
410 | tc12-9000B-2t2c-dot1ad-l2xcbase-pdrdisc
411 | | [Documentation]
412 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, \
413 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
414 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
415 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
416 | | ${framesize}= | Set Variable | ${9000}
417 | | ${min_rate}= | Set Variable | ${10000}
418 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
419 | | ${binary_min}= | Set Variable | ${min_rate}
420 | | ${binary_max}= | Set Variable | ${max_rate}
421 | | ${threshold}= | Set Variable | ${min_rate}
422 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
423 | | And   Add PCI devices to DUTs from 3-node single link topology
424 | | And   Apply startup configuration on all VPP DUTs
425 | | And   VPP interfaces in path are up in a 3-node circular topology
426 | | When VLAN subinterfaces initialized on 3-node topology
427 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
428 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
429 | | And L2 tag rewrite method setup on interfaces
430 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
431 | | ... | ${tag_rewrite}
432 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
433 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
434 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
435 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
436 | | ...                                       | ${binary_max} | 3-node-xconnect
437 | | ...                                       | ${min_rate} | ${max_rate}
438 | | ...                                       | ${threshold}
439 | | ...                                       | ${perf_pdr_loss_acceptance}
440 | | ...                                       | ${perf_pdr_loss_acceptance_type}
441
442 | tc13-64B-4t4c-dot1ad-l2xcbase-ndrdisc
443 | | [Documentation]
444 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, \
445 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
446 | | ... | using binary search start at 10GE linerate, step 100kpps.
447 | | [Tags] | 4T4C | MTHREAD | NDRDISC
448 | | ${framesize}= | Set Variable | ${64}
449 | | ${min_rate}= | Set Variable | ${100000}
450 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
451 | | ${binary_min}= | Set Variable | ${min_rate}
452 | | ${binary_max}= | Set Variable | ${max_rate}
453 | | ${threshold}= | Set Variable | ${min_rate}
454 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
455 | | And   Add PCI devices to DUTs from 3-node single link topology
456 | | And   Add No Multi Seg to all DUTs
457 | | And   Apply startup configuration on all VPP DUTs
458 | | And   VPP interfaces in path are up in a 3-node circular topology
459 | | When VLAN subinterfaces initialized on 3-node topology
460 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
461 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
462 | | And L2 tag rewrite method setup on interfaces
463 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
464 | | ... | ${tag_rewrite}
465 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
466 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
467 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
468 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
469 | | ...                                       | ${binary_max} | 3-node-xconnect
470 | | ...                                       | ${min_rate} | ${max_rate}
471 | | ...                                       | ${threshold}
472
473 | tc14-64B-4t4c-dot1ad-l2xcbase-pdrdisc
474 | | [Documentation]
475 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, \
476 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
477 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
478 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
479 | | ${framesize}= | Set Variable | ${64}
480 | | ${min_rate}= | Set Variable | ${100000}
481 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
482 | | ${binary_min}= | Set Variable | ${min_rate}
483 | | ${binary_max}= | Set Variable | ${max_rate}
484 | | ${threshold}= | Set Variable | ${min_rate}
485 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
486 | | And   Add PCI devices to DUTs from 3-node single link topology
487 | | And   Add No Multi Seg to all DUTs
488 | | And   Apply startup configuration on all VPP DUTs
489 | | And   VPP interfaces in path are up in a 3-node circular topology
490 | | When VLAN subinterfaces initialized on 3-node topology
491 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
492 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
493 | | And L2 tag rewrite method setup on interfaces
494 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
495 | | ... | ${tag_rewrite}
496 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
497 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
498 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
499 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
500 | | ...                                       | ${binary_max} | 3-node-xconnect
501 | | ...                                       | ${min_rate} | ${max_rate}
502 | | ...                                       | ${threshold}
503 | | ...                                       | ${perf_pdr_loss_acceptance}
504 | | ...                                       | ${perf_pdr_loss_acceptance_type}
505
506 | tc15-1514B-4t4c-dot1ad-l2xcbase-ndrdisc
507 | | [Documentation]
508 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, \
509 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1514 Byte frames
510 | | ... | using binary search start at 10GE linerate, step 10kpps.
511 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
512 | | ${framesize}= | Set Variable | ${1514}
513 | | ${min_rate}= | Set Variable | ${10000}
514 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
515 | | ${binary_min}= | Set Variable | ${min_rate}
516 | | ${binary_max}= | Set Variable | ${max_rate}
517 | | ${threshold}= | Set Variable | ${min_rate}
518 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
519 | | And   Add PCI devices to DUTs from 3-node single link topology
520 | | And   Add No Multi Seg to all DUTs
521 | | And   Apply startup configuration on all VPP DUTs
522 | | And   VPP interfaces in path are up in a 3-node circular topology
523 | | When VLAN subinterfaces initialized on 3-node topology
524 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
525 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
526 | | And L2 tag rewrite method setup on interfaces
527 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
528 | | ... | ${tag_rewrite}
529 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
530 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
531 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
532 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
533 | | ...                                       | ${binary_max} | 3-node-xconnect
534 | | ...                                       | ${min_rate} | ${max_rate}
535 | | ...                                       | ${threshold}
536
537 | tc16-1514B-4t4c-dot1ad-l2xcbase-pdrdisc
538 | | [Documentation]
539 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, \
540 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1514 Byte frames
541 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
542 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
543 | | ${framesize}= | Set Variable | ${1514}
544 | | ${min_rate}= | Set Variable | ${10000}
545 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
546 | | ${binary_min}= | Set Variable | ${min_rate}
547 | | ${binary_max}= | Set Variable | ${max_rate}
548 | | ${threshold}= | Set Variable | ${min_rate}
549 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
550 | | And   Add PCI devices to DUTs from 3-node single link topology
551 | | And   Add No Multi Seg to all DUTs
552 | | And   Apply startup configuration on all VPP DUTs
553 | | And   VPP interfaces in path are up in a 3-node circular topology
554 | | When VLAN subinterfaces initialized on 3-node topology
555 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
556 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
557 | | And L2 tag rewrite method setup on interfaces
558 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
559 | | ... | ${tag_rewrite}
560 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
561 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
562 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
563 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
564 | | ...                                       | ${binary_max} | 3-node-xconnect
565 | | ...                                       | ${min_rate} | ${max_rate}
566 | | ...                                       | ${threshold}
567 | | ...                                       | ${perf_pdr_loss_acceptance}
568 | | ...                                       | ${perf_pdr_loss_acceptance_type}
569
570 | tc17-9000B-4t4c-dot1ad-l2xcbase-ndrdisc
571 | | [Documentation]
572 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, \
573 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
574 | | ... | using binary search start at 10GE linerate, step 5kpps.
575 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
576 | | ${framesize}= | Set Variable | ${9000}
577 | | ${min_rate}= | Set Variable | ${10000}
578 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
579 | | ${binary_min}= | Set Variable | ${min_rate}
580 | | ${binary_max}= | Set Variable | ${max_rate}
581 | | ${threshold}= | Set Variable | ${min_rate}
582 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
583 | | And   Add PCI devices to DUTs from 3-node single link topology
584 | | And   Apply startup configuration on all VPP DUTs
585 | | And   VPP interfaces in path are up in a 3-node circular topology
586 | | When VLAN subinterfaces initialized on 3-node topology
587 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
588 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
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 NDR using binary search and pps | ${framesize} | ${binary_min}
596 | | ...                                       | ${binary_max} | 3-node-xconnect
597 | | ...                                       | ${min_rate} | ${max_rate}
598 | | ...                                       | ${threshold}
599
600 | tc18-9000B-4t4c-dot1ad-l2xcbase-pdrdisc
601 | | [Documentation]
602 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, \
603 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
604 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
605 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
606 | | ${framesize}= | Set Variable | ${9000}
607 | | ${min_rate}= | Set Variable | ${10000}
608 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
609 | | ${binary_min}= | Set Variable | ${min_rate}
610 | | ${binary_max}= | Set Variable | ${max_rate}
611 | | ${threshold}= | Set Variable | ${min_rate}
612 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
613 | | And   Add PCI devices to DUTs from 3-node single link topology
614 | | And   Apply startup configuration on all VPP DUTs
615 | | And   VPP interfaces in path are up in a 3-node circular topology
616 | | When VLAN subinterfaces initialized on 3-node topology
617 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
618 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
619 | | And L2 tag rewrite method setup on interfaces
620 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
621 | | ... | ${tag_rewrite}
622 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
623 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
624 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
625 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
626 | | ...                                       | ${binary_max} | 3-node-xconnect
627 | | ...                                       | ${min_rate} | ${max_rate}
628 | | ...                                       | ${threshold}
629 | | ...                                       | ${perf_pdr_loss_acceptance}
630 | | ...                                       | ${perf_pdr_loss_acceptance_type}