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