CSIT-387 collect HW stats if binary search fails
[csit.git] / tests / perf / Long_IPv4_Cop_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.Cop
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 whitelist 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, two static IPv4 /24 routes and IPv4 COP security whitelist
39 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
40 | ... | 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 static
51 | ... | payload. MAC addresses are matching MAC addresses of the TG node
52 | ... | interfaces.
53 | ... | *[Ref] Applicable standard specifications:* RFC2544.
54
55 *** Test Cases ***
56 | TC01: 64B NDR binary search - DUT IPv4 whitelist - 1thread 1core 1rxq
57 | | [Documentation]
58 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
59 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
60 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
61 | | ... | step 100kpps.
62 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
63 | | ${framesize}= | Set Variable | 64
64 | | ${min_rate}= | Set Variable | 100000
65 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
66 | | ${binary_min}= | Set Variable | ${min_rate}
67 | | ${binary_max}= | Set Variable | ${max_rate}
68 | | ${threshold}= | Set Variable | ${min_rate}
69 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
70 | | And   Add PCI devices to DUTs from 3-node single link topology
71 | | And   Add No Multi Seg to all DUTs
72 | | And   Apply startup configuration on all VPP DUTs
73 | | When  IPv4 forwarding initialized in a 3-node circular topology
74 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
75 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
76 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
77 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
78 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
79 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
80 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
81 | | ...                                       | ${binary_max} | 3-node-IPv4
82 | | ...                                       | ${min_rate} | ${max_rate}
83 | | ...                                       | ${threshold}
84
85 | TC02: 64B PDR binary search - DUT IPv4 whitelist - 1thread 1core 1rxq
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
88 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
89 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
90 | | ... | step 100kpps, LT=0.5%.
91 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
92 | | ${framesize}= | Set Variable | 64
93 | | ${min_rate}= | Set Variable | 100000
94 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
95 | | ${binary_min}= | Set Variable | ${min_rate}
96 | | ${binary_max}= | Set Variable | ${max_rate}
97 | | ${threshold}= | Set Variable | ${min_rate}
98 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
99 | | And   Add PCI devices to DUTs from 3-node single link topology
100 | | And   Add No Multi Seg to all DUTs
101 | | And   Apply startup configuration on all VPP DUTs
102 | | When  IPv4 forwarding initialized in a 3-node circular topology
103 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
104 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
105 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
106 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
107 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
108 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
109 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
110 | | ...                                       | ${binary_max} | 3-node-IPv4
111 | | ...                                       | ${min_rate} | ${max_rate}
112 | | ...                                       | ${threshold}
113 | | ...                                       | ${glob_loss_acceptance}
114 | | ...                                       | ${glob_loss_acceptance_type}
115
116 | TC03: 1518B NDR binary search - DUT IPv4 whitelist - 1thread 1core 1rxq
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
119 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
120 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
121 | | ... | step 10kpps.
122 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
123 | | ${framesize}= | Set Variable | 1518
124 | | ${min_rate}= | Set Variable | 10000
125 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
126 | | ${binary_min}= | Set Variable | ${min_rate}
127 | | ${binary_max}= | Set Variable | ${max_rate}
128 | | ${threshold}= | Set Variable | ${min_rate}
129 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
130 | | And   Add PCI devices to DUTs from 3-node single link topology
131 | | And   Add No Multi Seg to all DUTs
132 | | And   Apply startup configuration on all VPP DUTs
133 | | When  IPv4 forwarding initialized in a 3-node circular topology
134 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
135 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
136 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
137 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
138 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
139 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
140 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
141 | | ...                                       | ${binary_max} | 3-node-IPv4
142 | | ...                                       | ${min_rate} | ${max_rate}
143 | | ...                                       | ${threshold}
144
145 | TC04: 1518B PDR binary search - DUT IPv4 whitelist - 1thread 1core 1rxq
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
148 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
149 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
150 | | ... | step 10kpps, LT=0.5%.
151 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
152 | | ${framesize}= | Set Variable | 1518
153 | | ${min_rate}= | Set Variable | 10000
154 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
155 | | ${binary_min}= | Set Variable | ${min_rate}
156 | | ${binary_max}= | Set Variable | ${max_rate}
157 | | ${threshold}= | Set Variable | ${min_rate}
158 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
159 | | And   Add PCI devices to DUTs from 3-node single link topology
160 | | And   Add No Multi Seg to all DUTs
161 | | And   Apply startup configuration on all VPP DUTs
162 | | When  IPv4 forwarding initialized in a 3-node circular topology
163 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
164 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
165 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
166 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
167 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
168 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
169 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
170 | | ...                                       | ${binary_max} | 3-node-IPv4
171 | | ...                                       | ${min_rate} | ${max_rate}
172 | | ...                                       | ${threshold}
173 | | ...                                       | ${glob_loss_acceptance}
174 | | ...                                       | ${glob_loss_acceptance_type}
175
176 | TC05: 9000B NDR binary search - DUT IPv4 whitelist - 1thread 1core 1rxq
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
179 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
180 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
181 | | ... | step 5kpps.
182 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
183 | | ${framesize}= | Set Variable | 9000
184 | | ${min_rate}= | Set Variable | 5000
185 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
186 | | ${binary_min}= | Set Variable | ${min_rate}
187 | | ${binary_max}= | Set Variable | ${max_rate}
188 | | ${threshold}= | Set Variable | ${min_rate}
189 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
190 | | And   Add PCI devices to DUTs from 3-node single link topology
191 | | And   Apply startup configuration on all VPP DUTs
192 | | When  IPv4 forwarding initialized in a 3-node circular topology
193 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
194 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
195 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
196 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
197 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
198 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
199 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
200 | | ...                                       | ${binary_max} | 3-node-IPv4
201 | | ...                                       | ${min_rate} | ${max_rate}
202 | | ...                                       | ${threshold}
203
204 | TC06: 9000B PDR binary search - DUT IPv4 whitelist - 1thread 1core 1rxq
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
207 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
208 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
209 | | ... | step 5kpps, LT=0.5%.
210 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
211 | | ${framesize}= | Set Variable | 9000
212 | | ${min_rate}= | Set Variable | 5000
213 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
214 | | ${binary_min}= | Set Variable | ${min_rate}
215 | | ${binary_max}= | Set Variable | ${max_rate}
216 | | ${threshold}= | Set Variable | ${min_rate}
217 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
218 | | And   Add PCI devices to DUTs from 3-node single link topology
219 | | And   Apply startup configuration on all VPP DUTs
220 | | When  IPv4 forwarding initialized in a 3-node circular topology
221 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
222 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
223 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
224 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
225 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
226 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
227 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
228 | | ...                                       | ${binary_max} | 3-node-IPv4
229 | | ...                                       | ${min_rate} | ${max_rate}
230 | | ...                                       | ${threshold}
231 | | ...                                       | ${glob_loss_acceptance}
232 | | ...                                       | ${glob_loss_acceptance_type}
233
234 | TC07: 64B NDR binary search - DUT IPv4 whitelist - 2threads 2cores 1rxq
235 | | [Documentation]
236 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
237 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
238 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
239 | | ... | step 100kpps.
240 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
241 | | ${framesize}= | Set Variable | 64
242 | | ${min_rate}= | Set Variable | 100000
243 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
244 | | ${binary_min}= | Set Variable | ${min_rate}
245 | | ${binary_max}= | Set Variable | ${max_rate}
246 | | ${threshold}= | Set Variable | ${min_rate}
247 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
248 | | And   Add PCI devices to DUTs from 3-node single link topology
249 | | And   Add No Multi Seg to all DUTs
250 | | And   Apply startup configuration on all VPP DUTs
251 | | When  IPv4 forwarding initialized in a 3-node circular topology
252 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
253 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
254 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
255 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
256 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
257 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
258 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
259 | | ...                                       | ${binary_max} | 3-node-IPv4
260 | | ...                                       | ${min_rate} | ${max_rate}
261 | | ...                                       | ${threshold}
262
263 | TC08: 64B PDR binary search - DUT IPv4 whitelist - 2threads 2cores 1rxq
264 | | [Documentation]
265 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
266 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
267 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
268 | | ... | step 100kpps, LT=0.5%.
269 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
270 | | ${framesize}= | Set Variable | 64
271 | | ${min_rate}= | Set Variable | 100000
272 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
273 | | ${binary_min}= | Set Variable | ${min_rate}
274 | | ${binary_max}= | Set Variable | ${max_rate}
275 | | ${threshold}= | Set Variable | ${min_rate}
276 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
277 | | And   Add PCI devices to DUTs from 3-node single link topology
278 | | And   Add No Multi Seg to all DUTs
279 | | And   Apply startup configuration on all VPP DUTs
280 | | When  IPv4 forwarding initialized in a 3-node circular topology
281 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
282 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
283 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
284 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
285 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
286 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
287 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
288 | | ...                                       | ${binary_max} | 3-node-IPv4
289 | | ...                                       | ${min_rate} | ${max_rate}
290 | | ...                                       | ${threshold}
291 | | ...                                       | ${glob_loss_acceptance}
292 | | ...                                       | ${glob_loss_acceptance_type}
293
294 | TC09: 1518B NDR binary search - DUT IPv4 whitelist - 2threads 2cores 1rxq
295 | | [Documentation]
296 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
297 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
298 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
299 | | ... | step 10kpps.
300 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
301 | | ${framesize}= | Set Variable | 1518
302 | | ${min_rate}= | Set Variable | 10000
303 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
304 | | ${binary_min}= | Set Variable | ${min_rate}
305 | | ${binary_max}= | Set Variable | ${max_rate}
306 | | ${threshold}= | Set Variable | ${min_rate}
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   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
313 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
314 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
315 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
316 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
317 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
318 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
319 | | ...                                       | ${binary_max} | 3-node-IPv4
320 | | ...                                       | ${min_rate} | ${max_rate}
321 | | ...                                       | ${threshold}
322
323 | TC10: 1518B PDR binary search - DUT IPv4 whitelist - 2threads 2cores 1rxq
324 | | [Documentation]
325 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
326 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
327 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
328 | | ... | step 10kpps, LT=0.5%.
329 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
330 | | ${framesize}= | Set Variable | 1518
331 | | ${min_rate}= | Set Variable | 10000
332 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
333 | | ${binary_min}= | Set Variable | ${min_rate}
334 | | ${binary_max}= | Set Variable | ${max_rate}
335 | | ${threshold}= | Set Variable | ${min_rate}
336 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
337 | | And   Add PCI devices to DUTs from 3-node single link topology
338 | | And   Add No Multi Seg to all DUTs
339 | | And   Apply startup configuration on all VPP DUTs
340 | | When  IPv4 forwarding initialized in a 3-node circular topology
341 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
342 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
343 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
344 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
345 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
346 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
347 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
348 | | ...                                       | ${binary_max} | 3-node-IPv4
349 | | ...                                       | ${min_rate} | ${max_rate}
350 | | ...                                       | ${threshold}
351 | | ...                                       | ${glob_loss_acceptance}
352 | | ...                                       | ${glob_loss_acceptance_type}
353
354 | TC11: 9000B NDR binary search - DUT IPv4 whitelist - 2threads 2cores 1rxq
355 | | [Documentation]
356 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
357 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
358 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
359 | | ... | step 5kpps.
360 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
361 | | ${framesize}= | Set Variable | 9000
362 | | ${min_rate}= | Set Variable | 5000
363 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
364 | | ${binary_min}= | Set Variable | ${min_rate}
365 | | ${binary_max}= | Set Variable | ${max_rate}
366 | | ${threshold}= | Set Variable | ${min_rate}
367 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
368 | | And   Add PCI devices to DUTs from 3-node single link topology
369 | | And   Apply startup configuration on all VPP DUTs
370 | | When  IPv4 forwarding initialized in a 3-node circular topology
371 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
372 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
373 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
374 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
375 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
376 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
377 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
378 | | ...                                       | ${binary_max} | 3-node-IPv4
379 | | ...                                       | ${min_rate} | ${max_rate}
380 | | ...                                       | ${threshold}
381
382 | TC12: 9000B PDR binary search - DUT IPv4 whitelist - 2threads 2cores 1rxq
383 | | [Documentation]
384 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
385 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
386 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
387 | | ... | step 5kpps, LT=0.5%.
388 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
389 | | ${framesize}= | Set Variable | 9000
390 | | ${min_rate}= | Set Variable | 5000
391 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
392 | | ${binary_min}= | Set Variable | ${min_rate}
393 | | ${binary_max}= | Set Variable | ${max_rate}
394 | | ${threshold}= | Set Variable | ${min_rate}
395 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
396 | | And   Add PCI devices to DUTs from 3-node single link topology
397 | | And   Apply startup configuration on all VPP DUTs
398 | | When  IPv4 forwarding initialized in a 3-node circular topology
399 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
400 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
401 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
402 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
403 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
404 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
405 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
406 | | ...                                       | ${binary_max} | 3-node-IPv4
407 | | ...                                       | ${min_rate} | ${max_rate}
408 | | ...                                       | ${threshold}
409 | | ...                                       | ${glob_loss_acceptance}
410 | | ...                                       | ${glob_loss_acceptance_type}
411
412 | TC13: 64B NDR binary search - DUT IPv4 whitelist - 4threads 4cores 2rxq
413 | | [Documentation]
414 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
415 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
416 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
417 | | ... | step 100kpps.
418 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
419 | | ${framesize}= | Set Variable | 64
420 | | ${min_rate}= | Set Variable | 100000
421 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
422 | | ${binary_min}= | Set Variable | ${min_rate}
423 | | ${binary_max}= | Set Variable | ${max_rate}
424 | | ${threshold}= | Set Variable | ${min_rate}
425 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
426 | | And   Add PCI devices to DUTs from 3-node single link topology
427 | | And   Add No Multi Seg to all DUTs
428 | | And   Apply startup configuration on all VPP DUTs
429 | | When  IPv4 forwarding initialized in a 3-node circular topology
430 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
431 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
432 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
433 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
434 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
435 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
436 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
437 | | ...                                       | ${binary_max} | 3-node-IPv4
438 | | ...                                       | ${min_rate} | ${max_rate}
439 | | ...                                       | ${threshold}
440
441 | TC14: 64B PDR binary search - DUT IPv4 whitelist - 4threads 4cores 2rxq
442 | | [Documentation]
443 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
444 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
445 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
446 | | ... | step 100kpps, LT=0.5%.
447 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
448 | | ${framesize}= | Set Variable | 64
449 | | ${min_rate}= | Set Variable | 100000
450 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
451 | | ${binary_min}= | Set Variable | ${min_rate}
452 | | ${binary_max}= | Set Variable | ${max_rate}
453 | | ${threshold}= | Set Variable | ${min_rate}
454 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
455 | | And   Add PCI devices to DUTs from 3-node single link topology
456 | | And   Add No Multi Seg to all DUTs
457 | | And   Apply startup configuration on all VPP DUTs
458 | | When  IPv4 forwarding initialized in a 3-node circular topology
459 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
460 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
461 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
462 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
463 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
464 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
465 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
466 | | ...                                       | ${binary_max} | 3-node-IPv4
467 | | ...                                       | ${min_rate} | ${max_rate}
468 | | ...                                       | ${threshold}
469 | | ...                                       | ${glob_loss_acceptance}
470 | | ...                                       | ${glob_loss_acceptance_type}
471
472 | TC15: 1518B NDR binary search - DUT IPv4 whitelist - 4threads 4cores 2rxq
473 | | [Documentation]
474 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
475 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
476 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
477 | | ... | step 10kpps.
478 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
479 | | ${framesize}= | Set Variable | 1518
480 | | ${min_rate}= | Set Variable | 10000
481 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
482 | | ${binary_min}= | Set Variable | ${min_rate}
483 | | ${binary_max}= | Set Variable | ${max_rate}
484 | | ${threshold}= | Set Variable | ${min_rate}
485 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
486 | | And   Add PCI devices to DUTs from 3-node single link topology
487 | | And   Add No Multi Seg to all DUTs
488 | | And   Apply startup configuration on all VPP DUTs
489 | | When  IPv4 forwarding initialized in a 3-node circular topology
490 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
491 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
492 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
493 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
494 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
495 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
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 | TC16: 1518B PDR binary search - DUT IPv4 whitelist - 4threads 4cores 2rxq
502 | | [Documentation]
503 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
504 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
505 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
506 | | ... | step 10kpps, LT=0.5%.
507 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
508 | | ${framesize}= | Set Variable | 1518
509 | | ${min_rate}= | Set Variable | 10000
510 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
511 | | ${binary_min}= | Set Variable | ${min_rate}
512 | | ${binary_max}= | Set Variable | ${max_rate}
513 | | ${threshold}= | Set Variable | ${min_rate}
514 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
515 | | And   Add PCI devices to DUTs from 3-node single link topology
516 | | And   Add No Multi Seg to all DUTs
517 | | And   Apply startup configuration on all VPP DUTs
518 | | When  IPv4 forwarding initialized in a 3-node circular topology
519 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
520 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
521 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
522 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
523 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
524 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
525 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
526 | | ...                                       | ${binary_max} | 3-node-IPv4
527 | | ...                                       | ${min_rate} | ${max_rate}
528 | | ...                                       | ${threshold}
529 | | ...                                       | ${glob_loss_acceptance}
530 | | ...                                       | ${glob_loss_acceptance_type}
531
532 | TC17: 9000B NDR binary search - DUT IPv4 whitelist - 4threads 4cores 2rxq
533 | | [Documentation]
534 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
535 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
536 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
537 | | ... | step 5kpps.
538 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
539 | | ${framesize}= | Set Variable | 9000
540 | | ${min_rate}= | Set Variable | 5000
541 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
542 | | ${binary_min}= | Set Variable | ${min_rate}
543 | | ${binary_max}= | Set Variable | ${max_rate}
544 | | ${threshold}= | Set Variable | ${min_rate}
545 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
546 | | And   Add PCI devices to DUTs from 3-node single link topology
547 | | And   Apply startup configuration on all VPP DUTs
548 | | When  IPv4 forwarding initialized in a 3-node circular topology
549 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
550 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
551 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
552 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
553 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
554 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
555 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
556 | | ...                                       | ${binary_max} | 3-node-IPv4
557 | | ...                                       | ${min_rate} | ${max_rate}
558 | | ...                                       | ${threshold}
559
560 | TC18: 9000B PDR binary search - DUT IPv4 whitelist - 4threads 4cores 2rxq
561 | | [Documentation]
562 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
563 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
564 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
565 | | ... | step 5kpps, LT=0.5%.
566 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
567 | | ${framesize}= | Set Variable | 9000
568 | | ${min_rate}= | Set Variable | 5000
569 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
570 | | ${binary_min}= | Set Variable | ${min_rate}
571 | | ${binary_max}= | Set Variable | ${max_rate}
572 | | ${threshold}= | Set Variable | ${min_rate}
573 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
574 | | And   Add PCI devices to DUTs from 3-node single link topology
575 | | And   Apply startup configuration on all VPP DUTs
576 | | When  IPv4 forwarding initialized in a 3-node circular topology
577 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
578 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
579 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
580 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
581 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
582 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
583 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
584 | | ...                                       | ${binary_max} | 3-node-IPv4
585 | | ...                                       | ${min_rate} | ${max_rate}
586 | | ...                                       | ${threshold}
587 | | ...                                       | ${glob_loss_acceptance}
588 | | ...                                       | ${glob_loss_acceptance_type}
589