CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-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 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']}
20 | ... | WITH NAME | dut1_v4
21 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
22 | ... | WITH NAME | dut2_v4
23 | ...
24 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
25 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
26 | ...
27 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
28 | ... | L3 | Intel-X520-DA2
29 | Suite Teardown | Tear down 3-node performance topology
30 | ...
31 | Test Setup | Set up performance test
32 | Test Teardown | Tear down performance discovery test | ${min_rate}pps | ${framesize}
33 | ... | ${traffic_profile}
34 | ...
35 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
41 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
42 | ... | 2p10GE NIC X520 Niantic by Intel.
43 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
44 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
45 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
46 | ... | of packets transmitted. NDR and PDR are discovered for different
47 | ... | Ethernet L2 frame sizes using either binary search or linear search
48 | ... | algorithms with configured starting rate and final step that determines
49 | ... | throughput measurement resolution. Test packets are generated by TG on
50 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
51 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
52 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
53 | ... | payload. MAC addresses are matching MAC addresses of the TG node
54 | ... | interfaces.
55 | ... | *[Ref] Applicable standard specifications:* RFC2544.
56
57 *** Variables ***
58 # X520-DA2 bandwidth limit
59 | ${s_limit} | ${10000000000}
60 # Traffic profile:
61 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
62
63 *** Test Cases ***
64 | tc01-64B-1t1c-ethip4-ip4base-ndrdisc
65 | | [Documentation]
66 | | ... | [Cfg] DUT runs IPv4 routing 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}
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 Initialize IPv4 forwarding in 3-node circular topology
81 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
82 | | ... | ${binary_max} | ${traffic_profile}
83 | | ... | ${min_rate} | ${max_rate} | ${threshold}
84
85 | tc02-64B-1t1c-ethip4-ip4base-pdrdisc
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
88 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
89 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
90 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
91 | | ${framesize}= | Set Variable | ${64}
92 | | ${min_rate}= | Set Variable | ${100000}
93 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
94 | | ${binary_min}= | Set Variable | ${min_rate}
95 | | ${binary_max}= | Set Variable | ${max_rate}
96 | | ${threshold}= | Set Variable | ${min_rate}
97 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
98 | | And Add PCI devices to DUTs in 3-node single link topology
99 | | And Add no multi seg to all DUTs
100 | | And Apply startup configuration on all VPP DUTs
101 | | And Initialize IPv4 forwarding in 3-node circular topology
102 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
103 | | ... | ${binary_max} | ${traffic_profile}
104 | | ... | ${min_rate} | ${max_rate} | ${threshold}
105 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
106
107 | tc03-1518B-1t1c-ethip4-ip4base-ndrdisc
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
110 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
111 | | ... | using binary search start at 10GE linerate, step 10kpps.
112 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
113 | | ${framesize}= | Set Variable | ${1518}
114 | | ${min_rate}= | Set Variable | ${10000}
115 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
120 | | And Add PCI devices to DUTs in 3-node single link topology
121 | | And Add no multi seg to all DUTs
122 | | And Apply startup configuration on all VPP DUTs
123 | | And Initialize IPv4 forwarding in 3-node circular topology
124 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ... | ${binary_max} | ${traffic_profile}
126 | | ... | ${min_rate} | ${max_rate} | ${threshold}
127
128 | tc04-1518B-1t1c-ethip4-ip4base-pdrdisc
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
131 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
132 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
133 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
134 | | ${framesize}= | Set Variable | ${1518}
135 | | ${min_rate}= | Set Variable | ${10000}
136 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
137 | | ${binary_min}= | Set Variable | ${min_rate}
138 | | ${binary_max}= | Set Variable | ${max_rate}
139 | | ${threshold}= | Set Variable | ${min_rate}
140 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
141 | | And Add PCI devices to DUTs in 3-node single link topology
142 | | And Add no multi seg to all DUTs
143 | | And Apply startup configuration on all VPP DUTs
144 | | And Initialize IPv4 forwarding in 3-node circular topology
145 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
146 | | ... | ${binary_max} | ${traffic_profile}
147 | | ... | ${min_rate} | ${max_rate} | ${threshold}
148 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
149
150 | tc05-9000B-1t1c-ethip4-ip4base-ndrdisc
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
153 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
154 | | ... | using binary search start at 10GE linerate, step 5kpps.
155 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
156 | | ${framesize}= | Set Variable | ${9000}
157 | | ${min_rate}= | Set Variable | ${10000}
158 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
159 | | ${binary_min}= | Set Variable | ${min_rate}
160 | | ${binary_max}= | Set Variable | ${max_rate}
161 | | ${threshold}= | Set Variable | ${min_rate}
162 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
163 | | And Add PCI devices to DUTs in 3-node single link topology
164 | | And Apply startup configuration on all VPP DUTs
165 | | And Initialize IPv4 forwarding in 3-node circular topology
166 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
167 | | ... | ${binary_max} | ${traffic_profile}
168 | | ... | ${min_rate} | ${max_rate} | ${threshold}
169
170 | tc06-9000B-1t1c-ethip4-ip4base-pdrdisc
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
173 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
174 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
175 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
176 | | ${framesize}= | Set Variable | ${9000}
177 | | ${min_rate}= | Set Variable | ${10000}
178 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
179 | | ${binary_min}= | Set Variable | ${min_rate}
180 | | ${binary_max}= | Set Variable | ${max_rate}
181 | | ${threshold}= | Set Variable | ${min_rate}
182 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
183 | | And Add PCI devices to DUTs in 3-node single link topology
184 | | And Apply startup configuration on all VPP DUTs
185 | | And Initialize IPv4 forwarding in 3-node circular topology
186 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
187 | | ... | ${binary_max} | ${traffic_profile}
188 | | ... | ${min_rate} | ${max_rate} | ${threshold}
189 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
190
191 | tc07-64B-2t2c-ethip4-ip4base-ndrdisc
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
194 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
195 | | ... | using binary search start at 10GE linerate, step 100kpps.
196 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
197 | | ${framesize}= | Set Variable | ${64}
198 | | ${min_rate}= | Set Variable | ${100000}
199 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
200 | | ${binary_min}= | Set Variable | ${min_rate}
201 | | ${binary_max}= | Set Variable | ${max_rate}
202 | | ${threshold}= | Set Variable | ${min_rate}
203 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
204 | | And Add PCI devices to DUTs in 3-node single link topology
205 | | And Add no multi seg to all DUTs
206 | | And Apply startup configuration on all VPP DUTs
207 | | And Initialize IPv4 forwarding in 3-node circular topology
208 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
209 | | ... | ${binary_max} | ${traffic_profile}
210 | | ... | ${min_rate} | ${max_rate} | ${threshold}
211
212 | tc08-64B-2t2c-ethip4-ip4base-pdrdisc
213 | | [Documentation]
214 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
215 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
216 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
217 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
218 | | ${framesize}= | Set Variable | ${64}
219 | | ${min_rate}= | Set Variable | ${100000}
220 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
221 | | ${binary_min}= | Set Variable | ${min_rate}
222 | | ${binary_max}= | Set Variable | ${max_rate}
223 | | ${threshold}= | Set Variable | ${min_rate}
224 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
225 | | And Add PCI devices to DUTs in 3-node single link topology
226 | | And Add no multi seg to all DUTs
227 | | And Apply startup configuration on all VPP DUTs
228 | | And Initialize IPv4 forwarding in 3-node circular topology
229 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
230 | | ... | ${binary_max} | ${traffic_profile}
231 | | ... | ${min_rate} | ${max_rate} | ${threshold}
232 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
233
234 | tc09-1518B-2t2c-ethip4-ip4base-ndrdisc
235 | | [Documentation]
236 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
237 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
238 | | ... | using binary search start at 10GE linerate, step 10kpps.
239 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
240 | | ${framesize}= | Set Variable | ${1518}
241 | | ${min_rate}= | Set Variable | ${10000}
242 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
243 | | ${binary_min}= | Set Variable | ${min_rate}
244 | | ${binary_max}= | Set Variable | ${max_rate}
245 | | ${threshold}= | Set Variable | ${min_rate}
246 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
247 | | And Add PCI devices to DUTs in 3-node single link topology
248 | | And Add no multi seg to all DUTs
249 | | And Apply startup configuration on all VPP DUTs
250 | | And Initialize IPv4 forwarding in 3-node circular topology
251 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
252 | | ... | ${binary_max} | ${traffic_profile}
253 | | ... | ${min_rate} | ${max_rate} | ${threshold}
254
255 | tc10-1518B-2t2c-ethip4-ip4base-pdrdisc
256 | | [Documentation]
257 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
258 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
259 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
260 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
261 | | ${framesize}= | Set Variable | ${1518}
262 | | ${min_rate}= | Set Variable | ${10000}
263 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
264 | | ${binary_min}= | Set Variable | ${min_rate}
265 | | ${binary_max}= | Set Variable | ${max_rate}
266 | | ${threshold}= | Set Variable | ${min_rate}
267 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
268 | | And Add PCI devices to DUTs in 3-node single link topology
269 | | And Add no multi seg to all DUTs
270 | | And Apply startup configuration on all VPP DUTs
271 | | And Initialize IPv4 forwarding in 3-node circular topology
272 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
273 | | ... | ${binary_max} | ${traffic_profile}
274 | | ... | ${min_rate} | ${max_rate} | ${threshold}
275 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
276
277 | tc11-9000B-2t2c-ethip4-ip4base-ndrdisc
278 | | [Documentation]
279 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
280 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
281 | | ... | using binary search start at 10GE linerate, step 5kpps.
282 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
283 | | ${framesize}= | Set Variable | ${9000}
284 | | ${min_rate}= | Set Variable | ${10000}
285 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
286 | | ${binary_min}= | Set Variable | ${min_rate}
287 | | ${binary_max}= | Set Variable | ${max_rate}
288 | | ${threshold}= | Set Variable | ${min_rate}
289 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
290 | | And Add PCI devices to DUTs in 3-node single link topology
291 | | And Apply startup configuration on all VPP DUTs
292 | | And Initialize IPv4 forwarding in 3-node circular topology
293 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
294 | | ... | ${binary_max} | ${traffic_profile}
295 | | ... | ${min_rate} | ${max_rate} | ${threshold}
296
297 | tc12-9000B-2t2c-ethip4-ip4base-pdrdisc
298 | | [Documentation]
299 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
300 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
301 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
302 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
303 | | ${framesize}= | Set Variable | ${9000}
304 | | ${min_rate}= | Set Variable | ${10000}
305 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
306 | | ${binary_min}= | Set Variable | ${min_rate}
307 | | ${binary_max}= | Set Variable | ${max_rate}
308 | | ${threshold}= | Set Variable | ${min_rate}
309 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
310 | | And Add PCI devices to DUTs in 3-node single link topology
311 | | And Apply startup configuration on all VPP DUTs
312 | | And Initialize IPv4 forwarding in 3-node circular topology
313 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
314 | | ... | ${binary_max} | ${traffic_profile}
315 | | ... | ${min_rate} | ${max_rate} | ${threshold}
316 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
317
318 | tc13-64B-4t4c-ethip4-ip4base-ndrdisc
319 | | [Documentation]
320 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
321 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
322 | | ... | using binary search start at 10GE linerate, step 100kpps.
323 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
324 | | ${framesize}= | Set Variable | ${64}
325 | | ${min_rate}= | Set Variable | ${100000}
326 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
327 | | ${binary_min}= | Set Variable | ${min_rate}
328 | | ${binary_max}= | Set Variable | ${max_rate}
329 | | ${threshold}= | Set Variable | ${min_rate}
330 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
331 | | And Add PCI devices to DUTs in 3-node single link topology
332 | | And Add no multi seg to all DUTs
333 | | And Apply startup configuration on all VPP DUTs
334 | | And Initialize IPv4 forwarding in 3-node circular topology
335 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
336 | | ... | ${binary_max} | ${traffic_profile}
337 | | ... | ${min_rate} | ${max_rate} | ${threshold}
338
339 | tc14-64B-4t4c-ethip4-ip4base-pdrdisc
340 | | [Documentation]
341 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
342 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
343 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
344 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
345 | | ${framesize}= | Set Variable | ${64}
346 | | ${min_rate}= | Set Variable | ${100000}
347 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
348 | | ${binary_min}= | Set Variable | ${min_rate}
349 | | ${binary_max}= | Set Variable | ${max_rate}
350 | | ${threshold}= | Set Variable | ${min_rate}
351 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
352 | | And Add PCI devices to DUTs in 3-node single link topology
353 | | And Add no multi seg to all DUTs
354 | | And Apply startup configuration on all VPP DUTs
355 | | And Initialize IPv4 forwarding in 3-node circular topology
356 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
357 | | ... | ${binary_max} | ${traffic_profile}
358 | | ... | ${min_rate} | ${max_rate} | ${threshold}
359 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
360
361 | tc15-1518B-4t4c-ethip4-ip4base-ndrdisc
362 | | [Documentation]
363 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
364 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
365 | | ... | using binary search start at 10GE linerate, step 10kpps.
366 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
367 | | ${framesize}= | Set Variable | ${1518}
368 | | ${min_rate}= | Set Variable | ${10000}
369 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
370 | | ${binary_min}= | Set Variable | ${min_rate}
371 | | ${binary_max}= | Set Variable | ${max_rate}
372 | | ${threshold}= | Set Variable | ${min_rate}
373 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
374 | | And Add PCI devices to DUTs in 3-node single link topology
375 | | And Add no multi seg to all DUTs
376 | | And Apply startup configuration on all VPP DUTs
377 | | And Initialize IPv4 forwarding in 3-node circular topology
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 | tc16-1518B-4t4c-ethip4-ip4base-pdrdisc
383 | | [Documentation]
384 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
385 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames
386 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
387 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
388 | | ${framesize}= | Set Variable | ${1518}
389 | | ${min_rate}= | Set Variable | ${10000}
390 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
391 | | ${binary_min}= | Set Variable | ${min_rate}
392 | | ${binary_max}= | Set Variable | ${max_rate}
393 | | ${threshold}= | Set Variable | ${min_rate}
394 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
395 | | And Add PCI devices to DUTs in 3-node single link topology
396 | | And Add no multi seg to all DUTs
397 | | And Apply startup configuration on all VPP DUTs
398 | | And Initialize IPv4 forwarding in 3-node circular topology
399 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
400 | | ... | ${binary_max} | ${traffic_profile}
401 | | ... | ${min_rate} | ${max_rate} | ${threshold}
402 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
403
404 | tc17-9000B-4t4c-ethip4-ip4base-ndrdisc
405 | | [Documentation]
406 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
407 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
408 | | ... | using binary search start at 10GE linerate, step 5kpps.
409 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
410 | | ${framesize}= | Set Variable | ${9000}
411 | | ${min_rate}= | Set Variable | ${10000}
412 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
413 | | ${binary_min}= | Set Variable | ${min_rate}
414 | | ${binary_max}= | Set Variable | ${max_rate}
415 | | ${threshold}= | Set Variable | ${min_rate}
416 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
417 | | And Add PCI devices to DUTs in 3-node single link topology
418 | | And Apply startup configuration on all VPP DUTs
419 | | And Initialize IPv4 forwarding in 3-node circular topology
420 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
421 | | ... | ${binary_max} | ${traffic_profile}
422 | | ... | ${min_rate} | ${max_rate} | ${threshold}
423
424 | tc18-9000B-4t4c-ethip4-ip4base-pdrdisc
425 | | [Documentation]
426 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
427 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
428 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
429 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
430 | | ${framesize}= | Set Variable | ${9000}
431 | | ${min_rate}= | Set Variable | ${10000}
432 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
433 | | ${binary_min}= | Set Variable | ${min_rate}
434 | | ${binary_max}= | Set Variable | ${max_rate}
435 | | ${threshold}= | Set Variable | ${min_rate}
436 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
437 | | And Add PCI devices to DUTs in 3-node single link topology
438 | | And Apply startup configuration on all VPP DUTs
439 | | And Initialize IPv4 forwarding in 3-node circular topology
440 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
441 | | ... | ${binary_max} | ${traffic_profile}
442 | | ... | ${min_rate} | ${max_rate} | ${threshold}
443 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
444
445 | tc19-IMIX-1t1c-ethip4-ip4base-ndrdisc
446 | | [Documentation]
447 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
448 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
449 | | ... | using binary search start at 10GE linerate, step 100kpps.
450 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
451 | | [Tags] | 1T1C | STHREAD | NDRDISC
452 | | ${framesize}= | Set Variable | IMIX_v4_1
453 | | ${min_rate}= | Set Variable | ${100000}
454 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
455 | | ${binary_min}= | Set Variable | ${min_rate}
456 | | ${binary_max}= | Set Variable | ${max_rate}
457 | | ${threshold}= | Set Variable | ${min_rate}
458 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
459 | | And Add all PCI devices to all DUTs
460 | | And Add no multi seg to all DUTs
461 | | And Apply startup configuration on all VPP DUTs
462 | | And Initialize IPv4 forwarding in 3-node circular topology
463 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
464 | | ... | ${binary_max} | ${traffic_profile}
465 | | ... | ${min_rate} | ${max_rate} | ${threshold}
466
467 | tc20-IMIX-1t1c-ethip4-ip4base-pdrdisc
468 | | [Documentation]
469 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
470 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size
471 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
472 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
473 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
474 | | ${framesize}= | Set Variable | IMIX_v4_1
475 | | ${min_rate}= | Set Variable | ${100000}
476 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
477 | | ${binary_min}= | Set Variable | ${min_rate}
478 | | ${binary_max}= | Set Variable | ${max_rate}
479 | | ${threshold}= | Set Variable | ${min_rate}
480 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
481 | | And Add all PCI devices to all DUTs
482 | | And Add no multi seg to all DUTs
483 | | And Apply startup configuration on all VPP DUTs
484 | | And Initialize IPv4 forwarding in 3-node circular topology
485 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
486 | | ... | ${binary_max} | ${traffic_profile}
487 | | ... | ${min_rate} | ${max_rate} | ${threshold}
488 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}