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