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