CSIT-275 IPv4 DP - QoS - performance
[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}= | ${100}
53 | ${cb}= | ${100}
54 | ${eb}= | ${100}
55
56 *** Test Cases ***
57 | TC01: 64B NDR binary search - DUT IPv4 2r3c-ca policer - 1thread 1core 1rxq
58 | | [Documentation]
59 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
60 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 \
61 | | ... | Byte frames using binary search start at 10GE linerate, step \
62 | | ... | 100kpps.
63 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
64 | | ${framesize}= | Set Variable | 64
65 | | ${min_rate}= | Set Variable | 100000
66 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
67 | | ${binary_min}= | Set Variable | ${min_rate}
68 | | ${binary_max}= | Set Variable | ${max_rate}
69 | | ${threshold}= | Set Variable | ${min_rate}
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 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
95 | | And   Add PCI devices to DUTs from 3-node single link topology
96 | | And   Add No Multi Seg to all DUTs
97 | | And   Apply startup configuration on all VPP DUTs
98 | | When  IPv4 forwarding initialized in a 3-node circular topology
99 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
100 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
101 | | ...                                       | ${binary_max} | 3-node-IPv4
102 | | ...                                       | ${min_rate} | ${max_rate}
103 | | ...                                       | ${threshold}
104 | | ...                                       | ${glob_loss_acceptance}
105 | | ...                                       | ${glob_loss_acceptance_type}
106
107 | TC03: 1518B NDR binary search - DUT IPv4 2r3c-ca policer - 1thread 1core 1rxq
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
110 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \
111 | | ... | Byte frames using binary search start at 10GE linerate, step 10kpps.
112 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
113 | | ${framesize}= | Set Variable | 1518
114 | | ${min_rate}= | Set Variable | 10000
115 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
120 | | And   Add PCI devices to DUTs from 3-node single link topology
121 | | And   Add No Multi Seg to all DUTs
122 | | And   Apply startup configuration on all VPP DUTs
123 | | When  IPv4 forwarding initialized in a 3-node circular topology
124 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
125 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
126 | | ...                                       | ${binary_max} | 3-node-IPv4
127 | | ...                                       | ${min_rate} | ${max_rate}
128 | | ...                                       | ${threshold}
129
130 | TC04: 1518B PDR binary search - DUT IPv4 2r3c-ca policer - 1thread 1core 1rxq
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
133 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 \
134 | | ... | Byte frames using binary search start at 10GE linerate, step \
135 | | ... | 10kpps, LT=0.5%.
136 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
137 | | ${framesize}= | Set Variable | 1518
138 | | ${min_rate}= | Set Variable | 10000
139 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
140 | | ${binary_min}= | Set Variable | ${min_rate}
141 | | ${binary_max}= | Set Variable | ${max_rate}
142 | | ${threshold}= | Set Variable | ${min_rate}
143 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
144 | | And   Add PCI devices to DUTs from 3-node single link topology
145 | | And   Add No Multi Seg to all DUTs
146 | | And   Apply startup configuration on all VPP DUTs
147 | | When  IPv4 forwarding initialized in a 3-node circular topology
148 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
149 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
150 | | ...                                       | ${binary_max} | 3-node-IPv4
151 | | ...                                       | ${min_rate} | ${max_rate}
152 | | ...                                       | ${threshold}
153 | | ...                                       | ${glob_loss_acceptance}
154 | | ...                                       | ${glob_loss_acceptance_type}
155
156 | TC05: 9000B NDR binary search - DUT IPv4 2r3c-ca policer - 1thread 1core 1rxq
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
159 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \
160 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps.
161 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
162 | | ${framesize}= | Set Variable | 9000
163 | | ${min_rate}= | Set Variable | 5000
164 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
165 | | ${binary_min}= | Set Variable | ${min_rate}
166 | | ${binary_max}= | Set Variable | ${max_rate}
167 | | ${threshold}= | Set Variable | ${min_rate}
168 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
169 | | And   Add PCI devices to DUTs from 3-node single link topology
170 | | And   Apply startup configuration on all VPP DUTs
171 | | When  IPv4 forwarding initialized in a 3-node circular topology
172 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
173 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
174 | | ...                                       | ${binary_max} | 3-node-IPv4
175 | | ...                                       | ${min_rate} | ${max_rate}
176 | | ...                                       | ${threshold}
177
178 | TC06: 9000B PDR binary search - DUT IPv4 2r3c-ca policer - 1thread 1core 1rxq
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
181 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 \
182 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
183 | | ... | LT=0.5%.
184 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
185 | | ${framesize}= | Set Variable | 9000
186 | | ${min_rate}= | Set Variable | 5000
187 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
188 | | ${binary_min}= | Set Variable | ${min_rate}
189 | | ${binary_max}= | Set Variable | ${max_rate}
190 | | ${threshold}= | Set Variable | ${min_rate}
191 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
192 | | And   Add PCI devices to DUTs from 3-node single link topology
193 | | And   Apply startup configuration on all VPP DUTs
194 | | When  IPv4 forwarding initialized in a 3-node circular topology
195 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
196 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
197 | | ...                                       | ${binary_max} | 3-node-IPv4
198 | | ...                                       | ${min_rate} | ${max_rate}
199 | | ...                                       | ${threshold}
200 | | ...                                       | ${glob_loss_acceptance}
201 | | ...                                       | ${glob_loss_acceptance_type}
202
203 | TC07: 64B NDR binary search - DUT IPv4 2r3c-ca policer - 2threads 2cores 1rxq
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
206 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 \
207 | | ... | Byte frames using binary search start at 10GE linerate, step \
208 | | ... | 100kpps.
209 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
210 | | ${framesize}= | Set Variable | 64
211 | | ${min_rate}= | Set Variable | 100000
212 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
213 | | ${binary_min}= | Set Variable | ${min_rate}
214 | | ${binary_max}= | Set Variable | ${max_rate}
215 | | ${threshold}= | Set Variable | ${min_rate}
216 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
217 | | And   Add PCI devices to DUTs from 3-node single link topology
218 | | And   Add No Multi Seg to all DUTs
219 | | And   Apply startup configuration on all VPP DUTs
220 | | When  IPv4 forwarding initialized in a 3-node circular topology
221 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
222 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
223 | | ...                                       | ${binary_max} | 3-node-IPv4
224 | | ...                                       | ${min_rate} | ${max_rate}
225 | | ...                                       | ${threshold}
226
227 | TC08: 64B PDR binary search - DUT IPv4 2r3c-ca policer - 2threads 2cores 1rxq
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
230 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 \
231 | | ... | Byte frames using binary search start at 10GE linerate, step \
232 | | ... | 100kpps, LT=0.5%.
233 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
234 | | ${framesize}= | Set Variable | 64
235 | | ${min_rate}= | Set Variable | 100000
236 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
237 | | ${binary_min}= | Set Variable | ${min_rate}
238 | | ${binary_max}= | Set Variable | ${max_rate}
239 | | ${threshold}= | Set Variable | ${min_rate}
240 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
241 | | And   Add PCI devices to DUTs from 3-node single link topology
242 | | And   Add No Multi Seg to all DUTs
243 | | And   Apply startup configuration on all VPP DUTs
244 | | When  IPv4 forwarding initialized in a 3-node circular topology
245 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
246 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
247 | | ...                                       | ${binary_max} | 3-node-IPv4
248 | | ...                                       | ${min_rate} | ${max_rate}
249 | | ...                                       | ${threshold}
250 | | ...                                       | ${glob_loss_acceptance}
251 | | ...                                       | ${glob_loss_acceptance_type}
252
253 | TC09: 1518B NDR binary search - DUT IPv4 2r3c-ca policer - 2threads 2cores 1rxq
254 | | [Documentation]
255 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
256 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \
257 | | ... | Byte frames using binary search start at 10GE linerate, step 10kpps.
258 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
259 | | ${framesize}= | Set Variable | 1518
260 | | ${min_rate}= | Set Variable | 10000
261 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
262 | | ${binary_min}= | Set Variable | ${min_rate}
263 | | ${binary_max}= | Set Variable | ${max_rate}
264 | | ${threshold}= | Set Variable | ${min_rate}
265 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
266 | | And   Add PCI devices to DUTs from 3-node single link topology
267 | | And   Add No Multi Seg to all DUTs
268 | | And   Apply startup configuration on all VPP DUTs
269 | | When  IPv4 forwarding initialized in a 3-node circular topology
270 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
271 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
272 | | ...                                       | ${binary_max} | 3-node-IPv4
273 | | ...                                       | ${min_rate} | ${max_rate}
274 | | ...                                       | ${threshold}
275
276 | TC10: 1518B PDR binary search - DUT IPv4 2r3c-ca policer - 2threads 2cores 1rxq
277 | | [Documentation]
278 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
279 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 \
280 | | ... | Byte frames using binary search start at 10GE linerate, step \
281 | | ... | 10kpps, LT=0.5%.
282 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
283 | | ${framesize}= | Set Variable | 1518
284 | | ${min_rate}= | Set Variable | 10000
285 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
286 | | ${binary_min}= | Set Variable | ${min_rate}
287 | | ${binary_max}= | Set Variable | ${max_rate}
288 | | ${threshold}= | Set Variable | ${min_rate}
289 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
290 | | And   Add PCI devices to DUTs from 3-node single link topology
291 | | And   Add No Multi Seg to all DUTs
292 | | And   Apply startup configuration on all VPP DUTs
293 | | When  IPv4 forwarding initialized in a 3-node circular topology
294 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
295 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
296 | | ...                                       | ${binary_max} | 3-node-IPv4
297 | | ...                                       | ${min_rate} | ${max_rate}
298 | | ...                                       | ${threshold}
299 | | ...                                       | ${glob_loss_acceptance}
300 | | ...                                       | ${glob_loss_acceptance_type}
301
302 | TC11: 9000B NDR binary search - DUT IPv4 2r3c-ca policer - 2threads 2cores 1rxq
303 | | [Documentation]
304 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
305 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \
306 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps.
307 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
308 | | ${framesize}= | Set Variable | 9000
309 | | ${min_rate}= | Set Variable | 5000
310 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
311 | | ${binary_min}= | Set Variable | ${min_rate}
312 | | ${binary_max}= | Set Variable | ${max_rate}
313 | | ${threshold}= | Set Variable | ${min_rate}
314 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
315 | | And   Add PCI devices to DUTs from 3-node single link topology
316 | | And   Apply startup configuration on all VPP DUTs
317 | | When  IPv4 forwarding initialized in a 3-node circular topology
318 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
319 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
320 | | ...                                       | ${binary_max} | 3-node-IPv4
321 | | ...                                       | ${min_rate} | ${max_rate}
322 | | ...                                       | ${threshold}
323
324 | TC12: 9000B PDR binary search - DUT IPv4 2r3c-ca policer - 2threads 2cores 1rxq
325 | | [Documentation]
326 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
327 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 \
328 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
329 | | ... | LT=0.5%.
330 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
331 | | ${framesize}= | Set Variable | 9000
332 | | ${min_rate}= | Set Variable | 5000
333 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
334 | | ${binary_min}= | Set Variable | ${min_rate}
335 | | ${binary_max}= | Set Variable | ${max_rate}
336 | | ${threshold}= | Set Variable | ${min_rate}
337 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
338 | | And   Add PCI devices to DUTs from 3-node single link topology
339 | | And   Apply startup configuration on all VPP DUTs
340 | | When  IPv4 forwarding initialized in a 3-node circular topology
341 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
342 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
343 | | ...                                       | ${binary_max} | 3-node-IPv4
344 | | ...                                       | ${min_rate} | ${max_rate}
345 | | ...                                       | ${threshold}
346 | | ...                                       | ${glob_loss_acceptance}
347 | | ...                                       | ${glob_loss_acceptance_type}
348
349 | TC13: 64B NDR binary search - DUT IPv4 2r3c-ca policer - 4threads 4cores 2rxq
350 | | [Documentation]
351 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
352 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 64 \
353 | | ... | Byte frames using binary search start at 10GE linerate, step 100kpps.
354 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
355 | | ${framesize}= | Set Variable | 64
356 | | ${min_rate}= | Set Variable | 100000
357 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
358 | | ${binary_min}= | Set Variable | ${min_rate}
359 | | ${binary_max}= | Set Variable | ${max_rate}
360 | | ${threshold}= | Set Variable | ${min_rate}
361 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
362 | | And   Add PCI devices to DUTs from 3-node single link topology
363 | | And   Add No Multi Seg to all DUTs
364 | | And   Apply startup configuration on all VPP DUTs
365 | | When  IPv4 forwarding initialized in a 3-node circular topology
366 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
367 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
368 | | ...                                       | ${binary_max} | 3-node-IPv4
369 | | ...                                       | ${min_rate} | ${max_rate}
370 | | ...                                       | ${threshold}
371
372 | TC14: 64B PDR binary search - DUT IPv4 2r3c-ca policer - 4threads 4cores 2rxq
373 | | [Documentation]
374 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
375 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 64 \
376 | | ... | Byte frames using binary search start at 10GE linerate, step \
377 | | ... | 100kpps, LT=0.5%.
378 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
379 | | ${framesize}= | Set Variable | 64
380 | | ${min_rate}= | Set Variable | 100000
381 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
382 | | ${binary_min}= | Set Variable | ${min_rate}
383 | | ${binary_max}= | Set Variable | ${max_rate}
384 | | ${threshold}= | Set Variable | ${min_rate}
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 PDR using binary search and pps | ${framesize} | ${binary_min}
392 | | ...                                       | ${binary_max} | 3-node-IPv4
393 | | ...                                       | ${min_rate} | ${max_rate}
394 | | ...                                       | ${threshold}
395 | | ...                                       | ${glob_loss_acceptance}
396 | | ...                                       | ${glob_loss_acceptance_type}
397
398 | TC15: 1518B NDR binary search - DUT IPv4 2r3c-ca policer - 4threads 4cores 2rxq
399 | | [Documentation]
400 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
401 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 1518 \
402 | | ... | Byte frames using binary search start at 10GE linerate, step 10kpps.
403 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
404 | | ${framesize}= | Set Variable | 1518
405 | | ${min_rate}= | Set Variable | 10000
406 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
407 | | ${binary_min}= | Set Variable | ${min_rate}
408 | | ${binary_max}= | Set Variable | ${max_rate}
409 | | ${threshold}= | Set Variable | ${min_rate}
410 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
411 | | And   Add PCI devices to DUTs from 3-node single link topology
412 | | And   Add No Multi Seg to all DUTs
413 | | And   Apply startup configuration on all VPP DUTs
414 | | When  IPv4 forwarding initialized in a 3-node circular topology
415 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
416 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
417 | | ...                                       | ${binary_max} | 3-node-IPv4
418 | | ...                                       | ${min_rate} | ${max_rate}
419 | | ...                                       | ${threshold}
420
421 | TC16: 1518B PDR binary search - DUT IPv4 2r3c-ca policer - 4threads 4cores 2rxq
422 | | [Documentation]
423 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
424 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 1518 \
425 | | ... | Byte frames using binary search start at 10GE linerate, step \
426 | | ... | 10kpps, LT=0.5%.
427 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
428 | | ${framesize}= | Set Variable | 1518
429 | | ${min_rate}= | Set Variable | 10000
430 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
431 | | ${binary_min}= | Set Variable | ${min_rate}
432 | | ${binary_max}= | Set Variable | ${max_rate}
433 | | ${threshold}= | Set Variable | ${min_rate}
434 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
435 | | And   Add PCI devices to DUTs from 3-node single link topology
436 | | And   Add No Multi Seg to all DUTs
437 | | And   Apply startup configuration on all VPP DUTs
438 | | When  IPv4 forwarding initialized in a 3-node circular topology
439 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
440 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
441 | | ...                                       | ${binary_max} | 3-node-IPv4
442 | | ...                                       | ${min_rate} | ${max_rate}
443 | | ...                                       | ${threshold}
444 | | ...                                       | ${glob_loss_acceptance}
445 | | ...                                       | ${glob_loss_acceptance_type}
446
447 | TC17: 9000B NDR binary search - DUT IPv4 2r3c-ca policer - 4threads 4cores 2rxq
448 | | [Documentation]
449 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
450 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 9000 \
451 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps.
452 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
453 | | ${framesize}= | Set Variable | 9000
454 | | ${min_rate}= | Set Variable | 5000
455 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
456 | | ${binary_min}= | Set Variable | ${min_rate}
457 | | ${binary_max}= | Set Variable | ${max_rate}
458 | | ${threshold}= | Set Variable | ${min_rate}
459 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
460 | | And   Add PCI devices to DUTs from 3-node single link topology
461 | | And   Apply startup configuration on all VPP DUTs
462 | | When  IPv4 forwarding initialized in a 3-node circular topology
463 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
464 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
465 | | ...                                       | ${binary_max} | 3-node-IPv4
466 | | ...                                       | ${min_rate} | ${max_rate}
467 | | ...                                       | ${threshold}
468
469 | TC18: 9000B PDR binary search - DUT IPv4 2r3c-ca policer - 4threads 4cores 2rxq
470 | | [Documentation]
471 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
472 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 9000 \
473 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
474 | | ... | LT=0.5%.
475 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
476 | | ${framesize}= | Set Variable | 9000
477 | | ${min_rate}= | Set Variable | 5000
478 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
479 | | ${binary_min}= | Set Variable | ${min_rate}
480 | | ${binary_max}= | Set Variable | ${max_rate}
481 | | ${threshold}= | Set Variable | ${min_rate}
482 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
483 | | And   Add PCI devices to DUTs from 3-node single link topology
484 | | And   Apply startup configuration on all VPP DUTs
485 | | When  IPv4 forwarding initialized in a 3-node circular topology
486 | | And   IPv4 policer 2r3c-'ca' initialized in a 3-node circular topology
487 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
488 | | ...                                       | ${binary_max} | 3-node-IPv4
489 | | ...                                       | ${min_rate} | ${max_rate}
490 | | ...                                       | ${threshold}
491 | | ...                                       | ${glob_loss_acceptance}
492 | | ...                                       | ${glob_loss_acceptance_type}