Refactor perf test cases
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-dot1ad-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/performance_setup.robot
16 | Resource | resources/libraries/robot/l2/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 | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | ...
27 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
28 | ... | ${framesize} | ${traffic_profile}
29 | ...
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 # Traffic profile:
62 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
63
64 *** Test Cases ***
65 | tc01-64B-1t1c-dot1ad-l2xcbase-ndrdisc
66 | | [Documentation]
67 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 phy core, \
68 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
69 | | ... | using binary search start at 10GE linerate, step 50kpps.
70 | | [Tags] | 64B | 1C | NDRDISC
71 | | ${framesize}= | Set Variable | ${64}
72 | | ${min_rate}= | Set Variable | ${50000}
73 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
74 | | ${binary_min}= | Set Variable | ${min_rate}
75 | | ${binary_max}= | Set Variable | ${max_rate}
76 | | ${threshold}= | Set Variable | ${min_rate}
77 | | Given Add worker threads and rxqueues to all DUTs | 1
78 | | And Add PCI devices to all DUTs
79 | | And Add no multi seg to all DUTs
80 | | And Apply startup configuration on all VPP DUTs
81 | | And Set interfaces in path in 3-node circular topology up
82 | | When Initialize VLAN sub-interfaces in 3-node circular topology
83 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
84 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
85 | | And Configure L2 tag rewrite method on interfaces
86 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
87 | | ... | ${tag_rewrite}
88 | | And Connect interfaces and VLAN sub-interfaces using L2XC
89 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
90 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
91 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
92 | | ... | ${binary_max} | ${traffic_profile}
93 | | ... | ${min_rate} | ${max_rate} | ${threshold}
94
95 | tc02-64B-1t1c-dot1ad-l2xcbase-pdrdisc
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 phy core, \
98 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
99 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
100 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
101 | | ${framesize}= | Set Variable | ${64}
102 | | ${min_rate}= | Set Variable | ${50000}
103 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
104 | | ${binary_min}= | Set Variable | ${min_rate}
105 | | ${binary_max}= | Set Variable | ${max_rate}
106 | | ${threshold}= | Set Variable | ${min_rate}
107 | | Given Add worker threads and rxqueues to all DUTs | 1
108 | | And Add PCI devices to all DUTs
109 | | And Add no multi seg to all DUTs
110 | | And Apply startup configuration on all VPP DUTs
111 | | And Set interfaces in path in 3-node circular topology up
112 | | When Initialize VLAN sub-interfaces in 3-node circular topology
113 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
114 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
115 | | And Configure L2 tag rewrite method on interfaces
116 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
117 | | ... | ${tag_rewrite}
118 | | And Connect interfaces and VLAN sub-interfaces using L2XC
119 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
120 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
121 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
122 | | ... | ${binary_max} | ${traffic_profile}
123 | | ... | ${min_rate} | ${max_rate} | ${threshold}
124 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
125
126 | tc03-1514B-1t1c-dot1ad-l2xcbase-ndrdisc
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2XC forwarding config with 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 50kpps.
131 | | [Tags] | 1514B | 1C | NDRDISC
132 | | ${framesize}= | Set Variable | ${1514}
133 | | ${min_rate}= | Set Variable | ${50000}
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 worker threads and rxqueues to all DUTs | 1
139 | | And Add PCI devices to all DUTs
140 | | And Add no multi seg to all DUTs
141 | | And Apply startup configuration on all VPP DUTs
142 | | And Set interfaces in path in 3-node circular topology up
143 | | When Initialize VLAN sub-interfaces in 3-node circular topology
144 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
145 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
146 | | And Configure L2 tag rewrite method on interfaces
147 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
148 | | ... | ${tag_rewrite}
149 | | And Connect interfaces and VLAN sub-interfaces using L2XC
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} | ${traffic_profile}
154 | | ... | ${min_rate} | ${max_rate} | ${threshold}
155
156 | tc04-1514B-1t1c-dot1ad-l2xcbase-pdrdisc
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 phy core, \
159 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames
160 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
161 | | [Tags] | 1514B | 1C | PDRDISC | SKIP_PATCH
162 | | ${framesize}= | Set Variable | ${1514}
163 | | ${min_rate}= | Set Variable | ${50000}
164 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
165 | | ${binary_min}= | Set Variable | ${min_rate}
166 | | ${binary_max}= | Set Variable | ${max_rate}
167 | | ${threshold}= | Set Variable | ${min_rate}
168 | | Given Add worker threads and rxqueues to all DUTs | 1
169 | | And Add PCI devices to all DUTs
170 | | And Add no multi seg to all DUTs
171 | | And Apply startup configuration on all VPP DUTs
172 | | And Set interfaces in path in 3-node circular topology up
173 | | When Initialize VLAN sub-interfaces in 3-node circular topology
174 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
175 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
176 | | And Configure L2 tag rewrite method on interfaces
177 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
178 | | ... | ${tag_rewrite}
179 | | And Connect interfaces and VLAN sub-interfaces using L2XC
180 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
181 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
182 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
183 | | ... | ${binary_max} | ${traffic_profile}
184 | | ... | ${min_rate} | ${max_rate} | ${threshold}
185 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
186
187 | tc05-9000B-1t1c-dot1ad-l2xcbase-ndrdisc
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 phy core, \
190 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
191 | | ... | using binary search start at 10GE linerate, step 10kpps.
192 | | [Tags] | 9000B | 1C | NDRDISC
193 | | ${framesize}= | Set Variable | ${9000}
194 | | ${min_rate}= | Set Variable | ${10000}
195 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
196 | | ${binary_min}= | Set Variable | ${min_rate}
197 | | ${binary_max}= | Set Variable | ${max_rate}
198 | | ${threshold}= | Set Variable | ${min_rate}
199 | | Given Add worker threads and rxqueues to all DUTs | 1
200 | | And Add PCI devices to all DUTs
201 | | And Apply startup configuration on all VPP DUTs
202 | | And Set interfaces in path in 3-node circular topology up
203 | | When Initialize VLAN sub-interfaces in 3-node circular topology
204 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
205 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
206 | | And Configure L2 tag rewrite method on interfaces
207 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
208 | | ... | ${tag_rewrite}
209 | | And Connect interfaces and VLAN sub-interfaces using L2XC
210 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
211 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
212 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
213 | | ... | ${binary_max} | ${traffic_profile}
214 | | ... | ${min_rate} | ${max_rate} | ${threshold}
215
216 | tc06-9000B-1t1c-dot1ad-l2xcbase-pdrdisc
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs L2XC forwarding config with 1 phy core, \
219 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
220 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
221 | | [Tags] | 9000B | 1C | PDRDISC | SKIP_PATCH
222 | | ${framesize}= | Set Variable | ${9000}
223 | | ${min_rate}= | Set Variable | ${10000}
224 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
225 | | ${binary_min}= | Set Variable | ${min_rate}
226 | | ${binary_max}= | Set Variable | ${max_rate}
227 | | ${threshold}= | Set Variable | ${min_rate}
228 | | Given Add worker threads and rxqueues to all DUTs | 1
229 | | And Add PCI devices to all DUTs
230 | | And Apply startup configuration on all VPP DUTs
231 | | And Set interfaces in path in 3-node circular topology up
232 | | When Initialize VLAN sub-interfaces in 3-node circular topology
233 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
234 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
235 | | And Configure L2 tag rewrite method on interfaces
236 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
237 | | ... | ${tag_rewrite}
238 | | And Connect interfaces and VLAN sub-interfaces using L2XC
239 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
240 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
241 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
242 | | ... | ${binary_max} | ${traffic_profile}
243 | | ... | ${min_rate} | ${max_rate} | ${threshold}
244 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
245
246 | tc07-64B-2t2c-dot1ad-l2xcbase-ndrdisc
247 | | [Documentation]
248 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 phy cores, \
249 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
250 | | ... | using binary search start at 10GE linerate, step 50kpps.
251 | | [Tags] | 64B | 2C | NDRDISC
252 | | ${framesize}= | Set Variable | ${64}
253 | | ${min_rate}= | Set Variable | ${50000}
254 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
255 | | ${binary_min}= | Set Variable | ${min_rate}
256 | | ${binary_max}= | Set Variable | ${max_rate}
257 | | ${threshold}= | Set Variable | ${min_rate}
258 | | Given Add worker threads and rxqueues to all DUTs | 2
259 | | And Add PCI devices to all DUTs
260 | | And Add no multi seg to all DUTs
261 | | And Apply startup configuration on all VPP DUTs
262 | | And Set interfaces in path in 3-node circular topology up
263 | | When Initialize VLAN sub-interfaces in 3-node circular topology
264 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
265 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
266 | | And Configure L2 tag rewrite method on interfaces
267 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
268 | | ... | ${tag_rewrite}
269 | | And Connect interfaces and VLAN sub-interfaces using L2XC
270 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
271 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
272 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
273 | | ... | ${binary_max} | ${traffic_profile}
274 | | ... | ${min_rate} | ${max_rate} | ${threshold}
275
276 | tc08-64B-2t2c-dot1ad-l2xcbase-pdrdisc
277 | | [Documentation]
278 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 phy cores, \
279 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
280 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
281 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
282 | | ${framesize}= | Set Variable | ${64}
283 | | ${min_rate}= | Set Variable | ${50000}
284 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
285 | | ${binary_min}= | Set Variable | ${min_rate}
286 | | ${binary_max}= | Set Variable | ${max_rate}
287 | | ${threshold}= | Set Variable | ${min_rate}
288 | | Given Add worker threads and rxqueues to all DUTs | 2
289 | | And Add PCI devices to all DUTs
290 | | And Add no multi seg to all DUTs
291 | | And Apply startup configuration on all VPP DUTs
292 | | And Set interfaces in path in 3-node circular topology up
293 | | When Initialize VLAN sub-interfaces in 3-node circular topology
294 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
295 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
296 | | And Configure L2 tag rewrite method on interfaces
297 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
298 | | ... | ${tag_rewrite}
299 | | And Connect interfaces and VLAN sub-interfaces using L2XC
300 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
301 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
302 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
303 | | ... | ${binary_max} | ${traffic_profile}
304 | | ... | ${min_rate} | ${max_rate} | ${threshold}
305 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
306
307 | tc09-1514B-2t2c-dot1ad-l2xcbase-ndrdisc
308 | | [Documentation]
309 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 phy cores, \
310 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames
311 | | ... | using binary search start at 10GE linerate, step 50kpps.
312 | | [Tags] | 1514B | 2C | NDRDISC | SKIP_PATCH
313 | | ${framesize}= | Set Variable | ${1514}
314 | | ${min_rate}= | Set Variable | ${50000}
315 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
316 | | ${binary_min}= | Set Variable | ${min_rate}
317 | | ${binary_max}= | Set Variable | ${max_rate}
318 | | ${threshold}= | Set Variable | ${min_rate}
319 | | Given Add worker threads and rxqueues to all DUTs | 2
320 | | And Add PCI devices to all DUTs
321 | | And Add no multi seg to all DUTs
322 | | And Apply startup configuration on all VPP DUTs
323 | | And Set interfaces in path in 3-node circular topology up
324 | | When Initialize VLAN sub-interfaces in 3-node circular topology
325 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
326 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
327 | | And Configure L2 tag rewrite method on interfaces
328 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
329 | | ... | ${tag_rewrite}
330 | | And Connect interfaces and VLAN sub-interfaces using L2XC
331 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
332 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
333 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
334 | | ... | ${binary_max} | ${traffic_profile}
335 | | ... | ${min_rate} | ${max_rate} | ${threshold}
336
337 | tc10-1514B-2t2c-dot1ad-l2xcbase-pdrdisc
338 | | [Documentation]
339 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 phy cores, \
340 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames
341 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
342 | | [Tags] | 1514B | 2C | PDRDISC | SKIP_PATCH
343 | | ${framesize}= | Set Variable | ${1514}
344 | | ${min_rate}= | Set Variable | ${50000}
345 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
346 | | ${binary_min}= | Set Variable | ${min_rate}
347 | | ${binary_max}= | Set Variable | ${max_rate}
348 | | ${threshold}= | Set Variable | ${min_rate}
349 | | Given Add worker threads and rxqueues to all DUTs | 2
350 | | And Add PCI devices to all DUTs
351 | | And Add no multi seg to all DUTs
352 | | And Apply startup configuration on all VPP DUTs
353 | | And Set interfaces in path in 3-node circular topology up
354 | | When Initialize VLAN sub-interfaces in 3-node circular topology
355 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
356 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
357 | | And Configure L2 tag rewrite method on interfaces
358 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
359 | | ... | ${tag_rewrite}
360 | | And Connect interfaces and VLAN sub-interfaces using L2XC
361 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
362 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
363 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
364 | | ... | ${binary_max} | ${traffic_profile}
365 | | ... | ${min_rate} | ${max_rate} | ${threshold}
366 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
367
368 | tc11-9000B-2t2c-dot1ad-l2xcbase-ndrdisc
369 | | [Documentation]
370 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 phy cores, \
371 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
372 | | ... | using binary search start at 10GE linerate, step 10kpps.
373 | | [Tags] | 9000B | 2C | NDRDISC | SKIP_PATCH
374 | | ${framesize}= | Set Variable | ${9000}
375 | | ${min_rate}= | Set Variable | ${10000}
376 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
377 | | ${binary_min}= | Set Variable | ${min_rate}
378 | | ${binary_max}= | Set Variable | ${max_rate}
379 | | ${threshold}= | Set Variable | ${min_rate}
380 | | Given Add worker threads and rxqueues to all DUTs | 2
381 | | And Add PCI devices to all DUTs
382 | | And Apply startup configuration on all VPP DUTs
383 | | And Set interfaces in path in 3-node circular topology up
384 | | When Initialize VLAN sub-interfaces in 3-node circular topology
385 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
386 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
387 | | And Configure L2 tag rewrite method on interfaces
388 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
389 | | ... | ${tag_rewrite}
390 | | And Connect interfaces and VLAN sub-interfaces using L2XC
391 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
392 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
393 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
394 | | ... | ${binary_max} | ${traffic_profile}
395 | | ... | ${min_rate} | ${max_rate} | ${threshold}
396
397 | tc12-9000B-2t2c-dot1ad-l2xcbase-pdrdisc
398 | | [Documentation]
399 | | ... | [Cfg] DUT runs L2XC forwarding config with 2 phy cores, \
400 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
401 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
402 | | [Tags] | 9000B | 2C | PDRDISC | SKIP_PATCH
403 | | ${framesize}= | Set Variable | ${9000}
404 | | ${min_rate}= | Set Variable | ${10000}
405 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
406 | | ${binary_min}= | Set Variable | ${min_rate}
407 | | ${binary_max}= | Set Variable | ${max_rate}
408 | | ${threshold}= | Set Variable | ${min_rate}
409 | | Given Add worker threads and rxqueues to all DUTs | 2
410 | | And Add PCI devices to all DUTs
411 | | And Apply startup configuration on all VPP DUTs
412 | | And Set interfaces in path in 3-node circular topology up
413 | | When Initialize VLAN sub-interfaces in 3-node circular topology
414 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
415 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
416 | | And Configure L2 tag rewrite method on interfaces
417 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
418 | | ... | ${tag_rewrite}
419 | | And Connect interfaces and VLAN sub-interfaces using L2XC
420 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
421 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
422 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
423 | | ... | ${binary_max} | ${traffic_profile}
424 | | ... | ${min_rate} | ${max_rate} | ${threshold}
425 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
426
427 | tc13-64B-4t4c-dot1ad-l2xcbase-ndrdisc
428 | | [Documentation]
429 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 phy cores, \
430 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
431 | | ... | using binary search start at 10GE linerate, step 50kpps.
432 | | [Tags] | 64B | 4C | NDRDISC
433 | | ${framesize}= | Set Variable | ${64}
434 | | ${min_rate}= | Set Variable | ${50000}
435 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
436 | | ${binary_min}= | Set Variable | ${min_rate}
437 | | ${binary_max}= | Set Variable | ${max_rate}
438 | | ${threshold}= | Set Variable | ${min_rate}
439 | | Given Add worker threads and rxqueues to all DUTs | 4
440 | | And Add PCI devices to all DUTs
441 | | And Add no multi seg to all DUTs
442 | | And Apply startup configuration on all VPP DUTs
443 | | And Set interfaces in path in 3-node circular topology up
444 | | When Initialize VLAN sub-interfaces in 3-node circular topology
445 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
446 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
447 | | And Configure L2 tag rewrite method on interfaces
448 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
449 | | ... | ${tag_rewrite}
450 | | And Connect interfaces and VLAN sub-interfaces using L2XC
451 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
452 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
453 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
454 | | ... | ${binary_max} | ${traffic_profile}
455 | | ... | ${min_rate} | ${max_rate} | ${threshold}
456
457 | tc14-64B-4t4c-dot1ad-l2xcbase-pdrdisc
458 | | [Documentation]
459 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 phy cores, \
460 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
461 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
462 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
463 | | ${framesize}= | Set Variable | ${64}
464 | | ${min_rate}= | Set Variable | ${50000}
465 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
466 | | ${binary_min}= | Set Variable | ${min_rate}
467 | | ${binary_max}= | Set Variable | ${max_rate}
468 | | ${threshold}= | Set Variable | ${min_rate}
469 | | Given Add worker threads and rxqueues to all DUTs | 4
470 | | And Add PCI devices to all DUTs
471 | | And Add no multi seg to all DUTs
472 | | And Apply startup configuration on all VPP DUTs
473 | | And Set interfaces in path in 3-node circular topology up
474 | | When Initialize VLAN sub-interfaces in 3-node circular topology
475 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
476 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
477 | | And Configure L2 tag rewrite method on interfaces
478 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
479 | | ... | ${tag_rewrite}
480 | | And Connect interfaces and VLAN sub-interfaces using L2XC
481 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
482 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
483 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
484 | | ... | ${binary_max} | ${traffic_profile}
485 | | ... | ${min_rate} | ${max_rate} | ${threshold}
486 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
487
488 | tc15-1514B-4t4c-dot1ad-l2xcbase-ndrdisc
489 | | [Documentation]
490 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 phy cores, \
491 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1514 Byte frames
492 | | ... | using binary search start at 10GE linerate, step 50kpps.
493 | | [Tags] | 1514B | 4C | NDRDISC | SKIP_PATCH
494 | | ${framesize}= | Set Variable | ${1514}
495 | | ${min_rate}= | Set Variable | ${50000}
496 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
497 | | ${binary_min}= | Set Variable | ${min_rate}
498 | | ${binary_max}= | Set Variable | ${max_rate}
499 | | ${threshold}= | Set Variable | ${min_rate}
500 | | Given Add worker threads and rxqueues to all DUTs | 4
501 | | And Add PCI devices to all DUTs
502 | | And Add no multi seg to all DUTs
503 | | And Apply startup configuration on all VPP DUTs
504 | | And Set interfaces in path in 3-node circular topology up
505 | | When Initialize VLAN sub-interfaces in 3-node circular topology
506 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
507 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
508 | | And Configure L2 tag rewrite method on interfaces
509 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
510 | | ... | ${tag_rewrite}
511 | | And Connect interfaces and VLAN sub-interfaces using L2XC
512 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
513 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
514 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
515 | | ... | ${binary_max} | ${traffic_profile}
516 | | ... | ${min_rate} | ${max_rate} | ${threshold}
517
518 | tc16-1514B-4t4c-dot1ad-l2xcbase-pdrdisc
519 | | [Documentation]
520 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 phy cores, \
521 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1514 Byte frames
522 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
523 | | [Tags] | 1514B | 4C | PDRDISC | SKIP_PATCH
524 | | ${framesize}= | Set Variable | ${1514}
525 | | ${min_rate}= | Set Variable | ${50000}
526 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
527 | | ${binary_min}= | Set Variable | ${min_rate}
528 | | ${binary_max}= | Set Variable | ${max_rate}
529 | | ${threshold}= | Set Variable | ${min_rate}
530 | | Given Add worker threads and rxqueues to all DUTs | 4
531 | | And Add PCI devices to all DUTs
532 | | And Add no multi seg to all DUTs
533 | | And Apply startup configuration on all VPP DUTs
534 | | And Set interfaces in path in 3-node circular topology up
535 | | When Initialize VLAN sub-interfaces in 3-node circular topology
536 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
537 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
538 | | And Configure L2 tag rewrite method on interfaces
539 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
540 | | ... | ${tag_rewrite}
541 | | And Connect interfaces and VLAN sub-interfaces using L2XC
542 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
543 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
544 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
545 | | ... | ${binary_max} | ${traffic_profile}
546 | | ... | ${min_rate} | ${max_rate} | ${threshold}
547 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
548
549 | tc17-9000B-4t4c-dot1ad-l2xcbase-ndrdisc
550 | | [Documentation]
551 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 phy cores, \
552 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
553 | | ... | using binary search start at 10GE linerate, step 10kpps.
554 | | [Tags] | 9000B | 4C | NDRDISC | SKIP_PATCH
555 | | ${framesize}= | Set Variable | ${9000}
556 | | ${min_rate}= | Set Variable | ${10000}
557 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
558 | | ${binary_min}= | Set Variable | ${min_rate}
559 | | ${binary_max}= | Set Variable | ${max_rate}
560 | | ${threshold}= | Set Variable | ${min_rate}
561 | | Given Add worker threads and rxqueues to all DUTs | 4
562 | | And Add PCI devices to all DUTs
563 | | And Apply startup configuration on all VPP DUTs
564 | | And Set interfaces in path in 3-node circular topology up
565 | | When Initialize VLAN sub-interfaces in 3-node circular topology
566 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
567 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
568 | | And Configure L2 tag rewrite method on interfaces
569 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
570 | | ... | ${tag_rewrite}
571 | | And Connect interfaces and VLAN sub-interfaces using L2XC
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} | ${traffic_profile}
576 | | ... | ${min_rate} | ${max_rate} | ${threshold}
577
578 | tc18-9000B-4t4c-dot1ad-l2xcbase-pdrdisc
579 | | [Documentation]
580 | | ... | [Cfg] DUT runs L2XC forwarding config with 4 phy cores, \
581 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
582 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
583 | | [Tags] | 9000B | 4C | PDRDISC | SKIP_PATCH
584 | | ${framesize}= | Set Variable | ${9000}
585 | | ${min_rate}= | Set Variable | ${10000}
586 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 8}
587 | | ${binary_min}= | Set Variable | ${min_rate}
588 | | ${binary_max}= | Set Variable | ${max_rate}
589 | | ${threshold}= | Set Variable | ${min_rate}
590 | | Given Add worker threads and rxqueues to all DUTs | 4
591 | | And Add PCI devices to all DUTs
592 | | And Apply startup configuration on all VPP DUTs
593 | | And Set interfaces in path in 3-node circular topology up
594 | | When Initialize VLAN sub-interfaces in 3-node circular topology
595 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
596 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
597 | | And Configure L2 tag rewrite method on interfaces
598 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
599 | | ... | ${tag_rewrite}
600 | | And Connect interfaces and VLAN sub-interfaces using L2XC
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} | ${traffic_profile}
605 | | ... | ${min_rate} | ${max_rate} | ${threshold}
606 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}