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