CSIT-562 HC Test: Persistence suite rework, part1
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-ipolicemarkbase-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.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] | 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 | | 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] | 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}
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 \
122 | | ... | 10kpps.
123 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
124 | | ${framesize}= | Set Variable | ${1518}
125 | | ${min_rate}= | Set Variable | ${10000}
126 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
127 | | ${binary_min}= | Set Variable | ${min_rate}
128 | | ${binary_max}= | Set Variable | ${max_rate}
129 | | ${threshold}= | Set Variable | ${min_rate}
130 | | Set Test Variable | ${cb} | ${framesize}
131 | | Set Test Variable | ${eb} | ${framesize}
132 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
133 | | And   Add PCI devices to DUTs from 3-node single link topology
134 | | And   Add No Multi Seg to all DUTs
135 | | And   Apply startup configuration on all VPP DUTs
136 | | When  IPv4 forwarding initialized in a 3-node circular topology
137 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
138 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
139 | | ...                                       | ${binary_max} | 3-node-IPv4
140 | | ...                                       | ${min_rate} | ${max_rate}
141 | | ...                                       | ${threshold}
142
143 | tc04-1518B-1t1c-ethip4-ip4base-ipolicemarkbase-pdrdisc
144 | | [Documentation]
145 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
146 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 \
147 | | ... | Byte frames using binary search start at 10GE linerate, step \
148 | | ... | 10kpps, LT=0.5%.
149 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
150 | | ${framesize}= | Set Variable | ${1518}
151 | | ${min_rate}= | Set Variable | ${10000}
152 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
153 | | ${binary_min}= | Set Variable | ${min_rate}
154 | | ${binary_max}= | Set Variable | ${max_rate}
155 | | ${threshold}= | Set Variable | ${min_rate}
156 | | Set Test Variable | ${cb} | ${framesize}
157 | | Set Test Variable | ${eb} | ${framesize}
158 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
159 | | And   Add PCI devices to DUTs from 3-node single link topology
160 | | And   Add No Multi Seg to all DUTs
161 | | And   Apply startup configuration on all VPP DUTs
162 | | When  IPv4 forwarding initialized in a 3-node circular topology
163 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
164 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
165 | | ...                                       | ${binary_max} | 3-node-IPv4
166 | | ...                                       | ${min_rate} | ${max_rate}
167 | | ...                                       | ${threshold}
168 | | ...                                       | ${perf_pdr_loss_acceptance}
169 | | ...                                       | ${perf_pdr_loss_acceptance_type}
170
171 | tc05-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
174 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \
175 | | ... | Byte frames using binary search start at 10GE linerate, step \
176 | | ... | 5kpps.
177 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
178 | | ${framesize}= | Set Variable | ${9000}
179 | | ${min_rate}= | Set Variable | ${10000}
180 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
181 | | ${binary_min}= | Set Variable | ${min_rate}
182 | | ${binary_max}= | Set Variable | ${max_rate}
183 | | ${threshold}= | Set Variable | ${min_rate}
184 | | Set Test Variable | ${cb} | ${framesize}
185 | | Set Test Variable | ${eb} | ${framesize}
186 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
187 | | And   Add PCI devices to DUTs from 3-node single link topology
188 | | And   Apply startup configuration on all VPP DUTs
189 | | When  IPv4 forwarding initialized in a 3-node circular topology
190 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
191 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
192 | | ...                                       | ${binary_max} | 3-node-IPv4
193 | | ...                                       | ${min_rate} | ${max_rate}
194 | | ...                                       | ${threshold}
195
196 | tc06-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-pdrdisc
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
199 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 \
200 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
201 | | ... | LT=0.5%.
202 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
203 | | ${framesize}= | Set Variable | ${9000}
204 | | ${min_rate}= | Set Variable | ${10000}
205 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
206 | | ${binary_min}= | Set Variable | ${min_rate}
207 | | ${binary_max}= | Set Variable | ${max_rate}
208 | | ${threshold}= | Set Variable | ${min_rate}
209 | | Set Test Variable | ${cb} | ${framesize}
210 | | Set Test Variable | ${eb} | ${framesize}
211 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
212 | | And   Add PCI devices to DUTs from 3-node single link topology
213 | | And   Apply startup configuration on all VPP DUTs
214 | | When  IPv4 forwarding initialized in a 3-node circular topology
215 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
216 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
217 | | ...                                       | ${binary_max} | 3-node-IPv4
218 | | ...                                       | ${min_rate} | ${max_rate}
219 | | ...                                       | ${threshold}
220 | | ...                                       | ${perf_pdr_loss_acceptance}
221 | | ...                                       | ${perf_pdr_loss_acceptance_type}
222
223 | tc07-64B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrdisc
224 | | [Documentation]
225 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
226 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 \
227 | | ... | Byte frames using binary search start at 10GE linerate, step \
228 | | ... | 100kpps.
229 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
230 | | ${framesize}= | Set Variable | ${64}
231 | | ${min_rate}= | Set Variable | ${100000}
232 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
233 | | ${binary_min}= | Set Variable | ${min_rate}
234 | | ${binary_max}= | Set Variable | ${max_rate}
235 | | ${threshold}= | Set Variable | ${min_rate}
236 | | Set Test Variable | ${cb} | ${framesize}
237 | | Set Test Variable | ${eb} | ${framesize}
238 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
239 | | And   Add PCI devices to DUTs from 3-node single link topology
240 | | And   Add No Multi Seg to all DUTs
241 | | And   Apply startup configuration on all VPP DUTs
242 | | When  IPv4 forwarding initialized in a 3-node circular topology
243 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
244 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
245 | | ...                                       | ${binary_max} | 3-node-IPv4
246 | | ...                                       | ${min_rate} | ${max_rate}
247 | | ...                                       | ${threshold}
248
249 | tc08-64B-2t2c-ethip4-ip4base-ipolicemarkbase-pdrdisc
250 | | [Documentation]
251 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
252 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 \
253 | | ... | Byte frames using binary search start at 10GE linerate, step \
254 | | ... | 100kpps, LT=0.5%.
255 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
256 | | ${framesize}= | Set Variable | ${64}
257 | | ${min_rate}= | Set Variable | ${100000}
258 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
259 | | ${binary_min}= | Set Variable | ${min_rate}
260 | | ${binary_max}= | Set Variable | ${max_rate}
261 | | ${threshold}= | Set Variable | ${min_rate}
262 | | Set Test Variable | ${cb} | ${framesize}
263 | | Set Test Variable | ${eb} | ${framesize}
264 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
265 | | And   Add PCI devices to DUTs from 3-node single link topology
266 | | And   Add No Multi Seg to all DUTs
267 | | And   Apply startup configuration on all VPP DUTs
268 | | When  IPv4 forwarding initialized in a 3-node circular topology
269 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
270 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
271 | | ...                                       | ${binary_max} | 3-node-IPv4
272 | | ...                                       | ${min_rate} | ${max_rate}
273 | | ...                                       | ${threshold}
274 | | ...                                       | ${perf_pdr_loss_acceptance}
275 | | ...                                       | ${perf_pdr_loss_acceptance_type}
276
277 | tc09-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrdisc
278 | | [Documentation]
279 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
280 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \
281 | | ... | Byte frames using binary search start at 10GE linerate, step \
282 | | ... | 10kpps.
283 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
284 | | ${framesize}= | Set Variable | ${1518}
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 | | Set Test Variable | ${cb} | ${framesize}
291 | | Set Test Variable | ${eb} | ${framesize}
292 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
293 | | And   Add PCI devices to DUTs from 3-node single link topology
294 | | And   Add No Multi Seg to all DUTs
295 | | And   Apply startup configuration on all VPP DUTs
296 | | When  IPv4 forwarding initialized in a 3-node circular topology
297 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
298 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
299 | | ...                                       | ${binary_max} | 3-node-IPv4
300 | | ...                                       | ${min_rate} | ${max_rate}
301 | | ...                                       | ${threshold}
302
303 | tc10-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-pdrdisc
304 | | [Documentation]
305 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
306 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 \
307 | | ... | Byte frames using binary search start at 10GE linerate, step \
308 | | ... | 10kpps, LT=0.5%.
309 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
310 | | ${framesize}= | Set Variable | ${1518}
311 | | ${min_rate}= | Set Variable | ${10000}
312 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
313 | | ${binary_min}= | Set Variable | ${min_rate}
314 | | ${binary_max}= | Set Variable | ${max_rate}
315 | | ${threshold}= | Set Variable | ${min_rate}
316 | | Set Test Variable | ${cb} | ${framesize}
317 | | Set Test Variable | ${eb} | ${framesize}
318 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
319 | | And   Add PCI devices to DUTs from 3-node single link topology
320 | | And   Add No Multi Seg to all DUTs
321 | | And   Apply startup configuration on all VPP DUTs
322 | | When  IPv4 forwarding initialized in a 3-node circular topology
323 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
324 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
325 | | ...                                       | ${binary_max} | 3-node-IPv4
326 | | ...                                       | ${min_rate} | ${max_rate}
327 | | ...                                       | ${threshold}
328 | | ...                                       | ${perf_pdr_loss_acceptance}
329 | | ...                                       | ${perf_pdr_loss_acceptance_type}
330
331 | tc11-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrdisc
332 | | [Documentation]
333 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
334 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \
335 | | ... | Byte frames using binary search start at 10GE linerate, step \
336 | | ... | 5kpps.
337 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
338 | | ${framesize}= | Set Variable | ${9000}
339 | | ${min_rate}= | Set Variable | ${10000}
340 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
341 | | ${binary_min}= | Set Variable | ${min_rate}
342 | | ${binary_max}= | Set Variable | ${max_rate}
343 | | ${threshold}= | Set Variable | ${min_rate}
344 | | Set Test Variable | ${cb} | ${framesize}
345 | | Set Test Variable | ${eb} | ${framesize}
346 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
347 | | And   Add PCI devices to DUTs from 3-node single link topology
348 | | And   Apply startup configuration on all VPP DUTs
349 | | When  IPv4 forwarding initialized in a 3-node circular topology
350 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
351 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
352 | | ...                                       | ${binary_max} | 3-node-IPv4
353 | | ...                                       | ${min_rate} | ${max_rate}
354 | | ...                                       | ${threshold}
355
356 | tc12-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-pdrdisc
357 | | [Documentation]
358 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
359 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 \
360 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
361 | | ... | LT=0.5%.
362 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
363 | | ${framesize}= | Set Variable | ${9000}
364 | | ${min_rate}= | Set Variable | ${10000}
365 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
366 | | ${binary_min}= | Set Variable | ${min_rate}
367 | | ${binary_max}= | Set Variable | ${max_rate}
368 | | ${threshold}= | Set Variable | ${min_rate}
369 | | Set Test Variable | ${cb} | ${framesize}
370 | | Set Test Variable | ${eb} | ${framesize}
371 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
372 | | And   Add PCI devices to DUTs from 3-node single link topology
373 | | And   Apply startup configuration on all VPP DUTs
374 | | When  IPv4 forwarding initialized in a 3-node circular topology
375 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
376 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
377 | | ...                                       | ${binary_max} | 3-node-IPv4
378 | | ...                                       | ${min_rate} | ${max_rate}
379 | | ...                                       | ${threshold}
380 | | ...                                       | ${perf_pdr_loss_acceptance}
381 | | ...                                       | ${perf_pdr_loss_acceptance_type}
382
383 | tc13-64B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrdisc
384 | | [Documentation]
385 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
386 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 64 \
387 | | ... | Byte frames using binary search start at 10GE linerate, step \
388 | | ... | 100kpps.
389 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
390 | | ${framesize}= | Set Variable | ${64}
391 | | ${min_rate}= | Set Variable | ${100000}
392 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
393 | | ${binary_min}= | Set Variable | ${min_rate}
394 | | ${binary_max}= | Set Variable | ${max_rate}
395 | | ${threshold}= | Set Variable | ${min_rate}
396 | | Set Test Variable | ${cb} | ${framesize}
397 | | Set Test Variable | ${eb} | ${framesize}
398 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
399 | | And   Add PCI devices to DUTs from 3-node single link topology
400 | | And   Add No Multi Seg to all DUTs
401 | | And   Apply startup configuration on all VPP DUTs
402 | | When  IPv4 forwarding initialized in a 3-node circular topology
403 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
404 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
405 | | ...                                       | ${binary_max} | 3-node-IPv4
406 | | ...                                       | ${min_rate} | ${max_rate}
407 | | ...                                       | ${threshold}
408
409 | tc14-64B-4t4c-ethip4-ip4base-ipolicemarkbase-pdrdisc
410 | | [Documentation]
411 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
412 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 64 \
413 | | ... | Byte frames using binary search start at 10GE linerate, step \
414 | | ... | 100kpps, LT=0.5%.
415 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
416 | | ${framesize}= | Set Variable | ${64}
417 | | ${min_rate}= | Set Variable | ${100000}
418 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
419 | | ${binary_min}= | Set Variable | ${min_rate}
420 | | ${binary_max}= | Set Variable | ${max_rate}
421 | | ${threshold}= | Set Variable | ${min_rate}
422 | | Set Test Variable | ${cb} | ${framesize}
423 | | Set Test Variable | ${eb} | ${framesize}
424 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
425 | | And   Add PCI devices to DUTs from 3-node single link topology
426 | | And   Add No Multi Seg to all DUTs
427 | | And   Apply startup configuration on all VPP DUTs
428 | | When  IPv4 forwarding initialized in a 3-node circular topology
429 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
430 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
431 | | ...                                       | ${binary_max} | 3-node-IPv4
432 | | ...                                       | ${min_rate} | ${max_rate}
433 | | ...                                       | ${threshold}
434 | | ...                                       | ${perf_pdr_loss_acceptance}
435 | | ...                                       | ${perf_pdr_loss_acceptance_type}
436
437 | tc15-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrdisc
438 | | [Documentation]
439 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
440 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 1518 \
441 | | ... | Byte frames using binary search start at 10GE linerate, step \
442 | | ... | 10kpps.
443 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
444 | | ${framesize}= | Set Variable | ${1518}
445 | | ${min_rate}= | Set Variable | ${10000}
446 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
447 | | ${binary_min}= | Set Variable | ${min_rate}
448 | | ${binary_max}= | Set Variable | ${max_rate}
449 | | ${threshold}= | Set Variable | ${min_rate}
450 | | Set Test Variable | ${cb} | ${framesize}
451 | | Set Test Variable | ${eb} | ${framesize}
452 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
453 | | And   Add PCI devices to DUTs from 3-node single link topology
454 | | And   Add No Multi Seg to all DUTs
455 | | And   Apply startup configuration on all VPP DUTs
456 | | When  IPv4 forwarding initialized in a 3-node circular topology
457 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
458 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
459 | | ...                                       | ${binary_max} | 3-node-IPv4
460 | | ...                                       | ${min_rate} | ${max_rate}
461 | | ...                                       | ${threshold}
462
463 | tc16-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-pdrdisc
464 | | [Documentation]
465 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
466 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 1518 \
467 | | ... | Byte frames using binary search start at 10GE linerate, step \
468 | | ... | 10kpps, LT=0.5%.
469 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
470 | | ${framesize}= | Set Variable | ${1518}
471 | | ${min_rate}= | Set Variable | ${10000}
472 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
473 | | ${binary_min}= | Set Variable | ${min_rate}
474 | | ${binary_max}= | Set Variable | ${max_rate}
475 | | ${threshold}= | Set Variable | ${min_rate}
476 | | Set Test Variable | ${cb} | ${framesize}
477 | | Set Test Variable | ${eb} | ${framesize}
478 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
479 | | And   Add PCI devices to DUTs from 3-node single link topology
480 | | And   Add No Multi Seg to all DUTs
481 | | And   Apply startup configuration on all VPP DUTs
482 | | When  IPv4 forwarding initialized in a 3-node circular topology
483 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
484 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
485 | | ...                                       | ${binary_max} | 3-node-IPv4
486 | | ...                                       | ${min_rate} | ${max_rate}
487 | | ...                                       | ${threshold}
488 | | ...                                       | ${perf_pdr_loss_acceptance}
489 | | ...                                       | ${perf_pdr_loss_acceptance_type}
490
491 | tc17-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrdisc
492 | | [Documentation]
493 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
494 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 9000 \
495 | | ... | Byte frames using binary search start at 10GE linerate, step \
496 | | ... | 5kpps.
497 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
498 | | ${framesize}= | Set Variable | ${9000}
499 | | ${min_rate}= | Set Variable | ${10000}
500 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
501 | | ${binary_min}= | Set Variable | ${min_rate}
502 | | ${binary_max}= | Set Variable | ${max_rate}
503 | | ${threshold}= | Set Variable | ${min_rate}
504 | | Set Test Variable | ${cb} | ${framesize}
505 | | Set Test Variable | ${eb} | ${framesize}
506 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
507 | | And   Add PCI devices to DUTs from 3-node single link topology
508 | | And   Apply startup configuration on all VPP DUTs
509 | | When  IPv4 forwarding initialized in a 3-node circular topology
510 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
511 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
512 | | ...                                       | ${binary_max} | 3-node-IPv4
513 | | ...                                       | ${min_rate} | ${max_rate}
514 | | ...                                       | ${threshold}
515
516 | tc18-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-pdrdisc
517 | | [Documentation]
518 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
519 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 9000 \
520 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
521 | | ... | LT=0.5%.
522 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
523 | | ${framesize}= | Set Variable | ${9000}
524 | | ${min_rate}= | Set Variable | ${10000}
525 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
526 | | ${binary_min}= | Set Variable | ${min_rate}
527 | | ${binary_max}= | Set Variable | ${max_rate}
528 | | ${threshold}= | Set Variable | ${min_rate}
529 | | Set Test Variable | ${cb} | ${framesize}
530 | | Set Test Variable | ${eb} | ${framesize}
531 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
532 | | And   Add PCI devices to DUTs from 3-node single link topology
533 | | And   Apply startup configuration on all VPP DUTs
534 | | When  IPv4 forwarding initialized in a 3-node circular topology
535 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
536 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
537 | | ...                                       | ${binary_max} | 3-node-IPv4
538 | | ...                                       | ${min_rate} | ${max_rate}
539 | | ...                                       | ${threshold}
540 | | ...                                       | ${perf_pdr_loss_acceptance}
541 | | ...                                       | ${perf_pdr_loss_acceptance_type}