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