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