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