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