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