CSIT-576 HC Test: Improve SPAN test coverage
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-copwhtlistbase-ndrpdrdisc.robot
1 # Copyright (c) 2017 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']}
18 | ... | WITH NAME | dut1_v4
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
20 | ... | WITH NAME | dut2_v4
21 | ...
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
23 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | COPWHLIST
24 | ...
25 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
26 | ... | L3 | Intel-X520-DA2
27 | Suite Teardown | 3-node Performance Suite Teardown
28 | ...
29 | Test Setup | Performance test setup
30 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
31 | ... | 3-node-IPv4
32 | ...
33 | Documentation | *RFC2544: Pkt throughput IPv4 whitelist test cases*
34 | ...
35 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
36 | ... | with single links between nodes.
37 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
38 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
39 | ... | routing, two static IPv4 /24 routes and IPv4 COP security whitelist
40 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
41 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
45 | ... | of packets transmitted. NDR and PDR are discovered for different
46 | ... | Ethernet L2 frame sizes using either binary search or linear search
47 | ... | algorithms with configured starting rate and final step that determines
48 | ... | throughput measurement resolution. Test packets are generated by TG on
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
50 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 # X520-DA2 bandwidth limit
58 | ${s_limit} | ${10000000000}
59
60 *** Test Cases ***
61 | tc01-64B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
62 | | [Documentation]
63 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
64 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
65 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
66 | | ... | step 100kpps.
67 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
68 | | ${framesize}= | Set Variable | ${64}
69 | | ${min_rate}= | Set Variable | ${100000}
70 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
71 | | ${binary_min}= | Set Variable | ${min_rate}
72 | | ${binary_max}= | Set Variable | ${max_rate}
73 | | ${threshold}= | Set Variable | ${min_rate}
74 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
75 | | And   Add PCI devices to DUTs from 3-node single link topology
76 | | And   Add No Multi Seg to all DUTs
77 | | And   Apply startup configuration on all VPP DUTs
78 | | When  IPv4 forwarding initialized in a 3-node circular topology
79 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
80 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
81 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
82 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
83 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
84 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
85 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
86 | | ...                                       | ${binary_max} | 3-node-IPv4
87 | | ...                                       | ${min_rate} | ${max_rate}
88 | | ...                                       | ${threshold}
89
90 | tc02-64B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
91 | | [Documentation]
92 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
93 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
94 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
95 | | ... | step 100kpps, LT=0.5%.
96 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
97 | | ${framesize}= | Set Variable | ${64}
98 | | ${min_rate}= | Set Variable | ${100000}
99 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
100 | | ${binary_min}= | Set Variable | ${min_rate}
101 | | ${binary_max}= | Set Variable | ${max_rate}
102 | | ${threshold}= | Set Variable | ${min_rate}
103 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
104 | | And   Add PCI devices to DUTs from 3-node single link topology
105 | | And   Add No Multi Seg to all DUTs
106 | | And   Apply startup configuration on all VPP DUTs
107 | | When  IPv4 forwarding initialized in a 3-node circular topology
108 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
109 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
110 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
111 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
112 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
113 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
114 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
115 | | ...                                       | ${binary_max} | 3-node-IPv4
116 | | ...                                       | ${min_rate} | ${max_rate}
117 | | ...                                       | ${threshold}
118 | | ...                                       | ${perf_pdr_loss_acceptance}
119 | | ...                                       | ${perf_pdr_loss_acceptance_type}
120
121 | tc03-1518B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
124 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
125 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
126 | | ... | step 10kpps.
127 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
128 | | ${framesize}= | Set Variable | ${1518}
129 | | ${min_rate}= | Set Variable | ${10000}
130 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
131 | | ${binary_min}= | Set Variable | ${min_rate}
132 | | ${binary_max}= | Set Variable | ${max_rate}
133 | | ${threshold}= | Set Variable | ${min_rate}
134 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
135 | | And   Add PCI devices to DUTs from 3-node single link topology
136 | | And   Add No Multi Seg to all DUTs
137 | | And   Apply startup configuration on all VPP DUTs
138 | | When  IPv4 forwarding initialized in a 3-node circular topology
139 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
140 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
141 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
142 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
143 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
144 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
145 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
146 | | ...                                       | ${binary_max} | 3-node-IPv4
147 | | ...                                       | ${min_rate} | ${max_rate}
148 | | ...                                       | ${threshold}
149
150 | tc04-1518B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
153 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
154 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
155 | | ... | step 10kpps, LT=0.5%.
156 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
157 | | ${framesize}= | Set Variable | ${1518}
158 | | ${min_rate}= | Set Variable | ${10000}
159 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
160 | | ${binary_min}= | Set Variable | ${min_rate}
161 | | ${binary_max}= | Set Variable | ${max_rate}
162 | | ${threshold}= | Set Variable | ${min_rate}
163 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
164 | | And   Add PCI devices to DUTs from 3-node single link topology
165 | | And   Add No Multi Seg to all DUTs
166 | | And   Apply startup configuration on all VPP DUTs
167 | | When  IPv4 forwarding initialized in a 3-node circular topology
168 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
169 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
170 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
171 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
172 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
173 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
174 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
175 | | ...                                       | ${binary_max} | 3-node-IPv4
176 | | ...                                       | ${min_rate} | ${max_rate}
177 | | ...                                       | ${threshold}
178 | | ...                                       | ${perf_pdr_loss_acceptance}
179 | | ...                                       | ${perf_pdr_loss_acceptance_type}
180
181 | tc05-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
184 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
185 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
186 | | ... | step 5kpps.
187 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
188 | | ${framesize}= | Set Variable | ${9000}
189 | | ${min_rate}= | Set Variable | ${10000}
190 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
191 | | ${binary_min}= | Set Variable | ${min_rate}
192 | | ${binary_max}= | Set Variable | ${max_rate}
193 | | ${threshold}= | Set Variable | ${min_rate}
194 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
195 | | And   Add PCI devices to DUTs from 3-node single link topology
196 | | And   Apply startup configuration on all VPP DUTs
197 | | When  IPv4 forwarding initialized in a 3-node circular topology
198 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
199 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
200 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
201 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
202 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
203 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
204 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
205 | | ...                                       | ${binary_max} | 3-node-IPv4
206 | | ...                                       | ${min_rate} | ${max_rate}
207 | | ...                                       | ${threshold}
208
209 | tc06-9000B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
212 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
213 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
214 | | ... | step 5kpps, LT=0.5%.
215 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
216 | | ${framesize}= | Set Variable | ${9000}
217 | | ${min_rate}= | Set Variable | ${10000}
218 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
219 | | ${binary_min}= | Set Variable | ${min_rate}
220 | | ${binary_max}= | Set Variable | ${max_rate}
221 | | ${threshold}= | Set Variable | ${min_rate}
222 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
223 | | And   Add PCI devices to DUTs from 3-node single link topology
224 | | And   Apply startup configuration on all VPP DUTs
225 | | When  IPv4 forwarding initialized in a 3-node circular topology
226 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
227 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
228 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
229 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
230 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
231 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
232 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
233 | | ...                                       | ${binary_max} | 3-node-IPv4
234 | | ...                                       | ${min_rate} | ${max_rate}
235 | | ...                                       | ${threshold}
236 | | ...                                       | ${perf_pdr_loss_acceptance}
237 | | ...                                       | ${perf_pdr_loss_acceptance_type}
238
239 | tc07-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
240 | | [Documentation]
241 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
242 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
243 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
244 | | ... | step 100kpps.
245 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
246 | | ${framesize}= | Set Variable | ${64}
247 | | ${min_rate}= | Set Variable | ${100000}
248 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
249 | | ${binary_min}= | Set Variable | ${min_rate}
250 | | ${binary_max}= | Set Variable | ${max_rate}
251 | | ${threshold}= | Set Variable | ${min_rate}
252 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
253 | | And   Add PCI devices to DUTs from 3-node single link topology
254 | | And   Add No Multi Seg to all DUTs
255 | | And   Apply startup configuration on all VPP DUTs
256 | | When  IPv4 forwarding initialized in a 3-node circular topology
257 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
258 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
259 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
260 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
261 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
262 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
263 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
264 | | ...                                       | ${binary_max} | 3-node-IPv4
265 | | ...                                       | ${min_rate} | ${max_rate}
266 | | ...                                       | ${threshold}
267
268 | tc08-64B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
269 | | [Documentation]
270 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
271 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
272 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
273 | | ... | step 100kpps, LT=0.5%.
274 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
275 | | ${framesize}= | Set Variable | ${64}
276 | | ${min_rate}= | Set Variable | ${100000}
277 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
278 | | ${binary_min}= | Set Variable | ${min_rate}
279 | | ${binary_max}= | Set Variable | ${max_rate}
280 | | ${threshold}= | Set Variable | ${min_rate}
281 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
282 | | And   Add PCI devices to DUTs from 3-node single link topology
283 | | And   Add No Multi Seg to all DUTs
284 | | And   Apply startup configuration on all VPP DUTs
285 | | When  IPv4 forwarding initialized in a 3-node circular topology
286 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
287 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
288 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
289 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
290 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
291 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
292 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
293 | | ...                                       | ${binary_max} | 3-node-IPv4
294 | | ...                                       | ${min_rate} | ${max_rate}
295 | | ...                                       | ${threshold}
296 | | ...                                       | ${perf_pdr_loss_acceptance}
297 | | ...                                       | ${perf_pdr_loss_acceptance_type}
298
299 | tc09-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
300 | | [Documentation]
301 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
302 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
303 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
304 | | ... | step 10kpps.
305 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
306 | | ${framesize}= | Set Variable | ${1518}
307 | | ${min_rate}= | Set Variable | ${10000}
308 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
309 | | ${binary_min}= | Set Variable | ${min_rate}
310 | | ${binary_max}= | Set Variable | ${max_rate}
311 | | ${threshold}= | Set Variable | ${min_rate}
312 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
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   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
318 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
319 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
320 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
321 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
322 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
323 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
324 | | ...                                       | ${binary_max} | 3-node-IPv4
325 | | ...                                       | ${min_rate} | ${max_rate}
326 | | ...                                       | ${threshold}
327
328 | tc10-1518B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
329 | | [Documentation]
330 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
331 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
332 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
333 | | ... | step 10kpps, LT=0.5%.
334 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
335 | | ${framesize}= | Set Variable | ${1518}
336 | | ${min_rate}= | Set Variable | ${10000}
337 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
338 | | ${binary_min}= | Set Variable | ${min_rate}
339 | | ${binary_max}= | Set Variable | ${max_rate}
340 | | ${threshold}= | Set Variable | ${min_rate}
341 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
342 | | And   Add PCI devices to DUTs from 3-node single link topology
343 | | And   Add No Multi Seg to all DUTs
344 | | And   Apply startup configuration on all VPP DUTs
345 | | When  IPv4 forwarding initialized in a 3-node circular topology
346 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
347 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
348 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
349 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
350 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
351 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
352 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
353 | | ...                                       | ${binary_max} | 3-node-IPv4
354 | | ...                                       | ${min_rate} | ${max_rate}
355 | | ...                                       | ${threshold}
356 | | ...                                       | ${perf_pdr_loss_acceptance}
357 | | ...                                       | ${perf_pdr_loss_acceptance_type}
358
359 | tc11-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
360 | | [Documentation]
361 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
362 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
363 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
364 | | ... | step 5kpps.
365 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
366 | | ${framesize}= | Set Variable | ${9000}
367 | | ${min_rate}= | Set Variable | ${10000}
368 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
369 | | ${binary_min}= | Set Variable | ${min_rate}
370 | | ${binary_max}= | Set Variable | ${max_rate}
371 | | ${threshold}= | Set Variable | ${min_rate}
372 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
373 | | And   Add PCI devices to DUTs from 3-node single link topology
374 | | And   Apply startup configuration on all VPP DUTs
375 | | When  IPv4 forwarding initialized in a 3-node circular topology
376 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
377 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
378 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
379 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
380 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
381 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
382 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
383 | | ...                                       | ${binary_max} | 3-node-IPv4
384 | | ...                                       | ${min_rate} | ${max_rate}
385 | | ...                                       | ${threshold}
386
387 | tc12-9000B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
388 | | [Documentation]
389 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
390 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
391 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
392 | | ... | step 5kpps, LT=0.5%.
393 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
394 | | ${framesize}= | Set Variable | ${9000}
395 | | ${min_rate}= | Set Variable | ${10000}
396 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
397 | | ${binary_min}= | Set Variable | ${min_rate}
398 | | ${binary_max}= | Set Variable | ${max_rate}
399 | | ${threshold}= | Set Variable | ${min_rate}
400 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
401 | | And   Add PCI devices to DUTs from 3-node single link topology
402 | | And   Apply startup configuration on all VPP DUTs
403 | | When  IPv4 forwarding initialized in a 3-node circular topology
404 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
405 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
406 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
407 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
408 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
409 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
410 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
411 | | ...                                       | ${binary_max} | 3-node-IPv4
412 | | ...                                       | ${min_rate} | ${max_rate}
413 | | ...                                       | ${threshold}
414 | | ...                                       | ${perf_pdr_loss_acceptance}
415 | | ...                                       | ${perf_pdr_loss_acceptance_type}
416
417 | tc13-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
418 | | [Documentation]
419 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
420 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
421 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
422 | | ... | step 100kpps.
423 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
424 | | ${framesize}= | Set Variable | ${64}
425 | | ${min_rate}= | Set Variable | ${100000}
426 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
427 | | ${binary_min}= | Set Variable | ${min_rate}
428 | | ${binary_max}= | Set Variable | ${max_rate}
429 | | ${threshold}= | Set Variable | ${min_rate}
430 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
431 | | And   Add PCI devices to DUTs from 3-node single link topology
432 | | And   Add No Multi Seg to all DUTs
433 | | And   Apply startup configuration on all VPP DUTs
434 | | When  IPv4 forwarding initialized in a 3-node circular topology
435 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
436 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
437 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
438 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
439 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
440 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
441 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
442 | | ...                                       | ${binary_max} | 3-node-IPv4
443 | | ...                                       | ${min_rate} | ${max_rate}
444 | | ...                                       | ${threshold}
445
446 | tc14-64B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
447 | | [Documentation]
448 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
449 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
450 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
451 | | ... | step 100kpps, LT=0.5%.
452 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
453 | | ${framesize}= | Set Variable | ${64}
454 | | ${min_rate}= | Set Variable | ${100000}
455 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
456 | | ${binary_min}= | Set Variable | ${min_rate}
457 | | ${binary_max}= | Set Variable | ${max_rate}
458 | | ${threshold}= | Set Variable | ${min_rate}
459 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
460 | | And   Add PCI devices to DUTs from 3-node single link topology
461 | | And   Add No Multi Seg to all DUTs
462 | | And   Apply startup configuration on all VPP DUTs
463 | | When  IPv4 forwarding initialized in a 3-node circular topology
464 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
465 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
466 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
467 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
468 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
469 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
470 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
471 | | ...                                       | ${binary_max} | 3-node-IPv4
472 | | ...                                       | ${min_rate} | ${max_rate}
473 | | ...                                       | ${threshold}
474 | | ...                                       | ${perf_pdr_loss_acceptance}
475 | | ...                                       | ${perf_pdr_loss_acceptance_type}
476
477 | tc15-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
478 | | [Documentation]
479 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
480 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
481 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
482 | | ... | step 10kpps.
483 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
484 | | ${framesize}= | Set Variable | ${1518}
485 | | ${min_rate}= | Set Variable | ${10000}
486 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
487 | | ${binary_min}= | Set Variable | ${min_rate}
488 | | ${binary_max}= | Set Variable | ${max_rate}
489 | | ${threshold}= | Set Variable | ${min_rate}
490 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
491 | | And   Add PCI devices to DUTs from 3-node single link topology
492 | | And   Add No Multi Seg to all DUTs
493 | | And   Apply startup configuration on all VPP DUTs
494 | | When  IPv4 forwarding initialized in a 3-node circular topology
495 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
496 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
497 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
498 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
499 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
500 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
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 | tc16-1518B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
507 | | [Documentation]
508 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
509 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
510 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
511 | | ... | step 10kpps, LT=0.5%.
512 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
513 | | ${framesize}= | Set Variable | ${1518}
514 | | ${min_rate}= | Set Variable | ${10000}
515 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
516 | | ${binary_min}= | Set Variable | ${min_rate}
517 | | ${binary_max}= | Set Variable | ${max_rate}
518 | | ${threshold}= | Set Variable | ${min_rate}
519 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
520 | | And   Add PCI devices to DUTs from 3-node single link topology
521 | | And   Add No Multi Seg to all DUTs
522 | | And   Apply startup configuration on all VPP DUTs
523 | | When  IPv4 forwarding initialized in a 3-node circular topology
524 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
525 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
526 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
527 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
528 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
529 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
530 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
531 | | ...                                       | ${binary_max} | 3-node-IPv4
532 | | ...                                       | ${min_rate} | ${max_rate}
533 | | ...                                       | ${threshold}
534 | | ...                                       | ${perf_pdr_loss_acceptance}
535 | | ...                                       | ${perf_pdr_loss_acceptance_type}
536
537 | tc17-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
538 | | [Documentation]
539 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
540 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
541 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
542 | | ... | step 5kpps.
543 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
544 | | ${framesize}= | Set Variable | ${9000}
545 | | ${min_rate}= | Set Variable | ${10000}
546 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
547 | | ${binary_min}= | Set Variable | ${min_rate}
548 | | ${binary_max}= | Set Variable | ${max_rate}
549 | | ${threshold}= | Set Variable | ${min_rate}
550 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
551 | | And   Add PCI devices to DUTs from 3-node single link topology
552 | | And   Apply startup configuration on all VPP DUTs
553 | | When  IPv4 forwarding initialized in a 3-node circular topology
554 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
555 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
556 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
557 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
558 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
559 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
560 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
561 | | ...                                       | ${binary_max} | 3-node-IPv4
562 | | ...                                       | ${min_rate} | ${max_rate}
563 | | ...                                       | ${threshold}
564
565 | tc18-9000B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
566 | | [Documentation]
567 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
568 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
569 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
570 | | ... | step 5kpps, LT=0.5%.
571 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
572 | | ${framesize}= | Set Variable | ${9000}
573 | | ${min_rate}= | Set Variable | ${10000}
574 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
575 | | ${binary_min}= | Set Variable | ${min_rate}
576 | | ${binary_max}= | Set Variable | ${max_rate}
577 | | ${threshold}= | Set Variable | ${min_rate}
578 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
579 | | And   Add PCI devices to DUTs from 3-node single link topology
580 | | And   Apply startup configuration on all VPP DUTs
581 | | When  IPv4 forwarding initialized in a 3-node circular topology
582 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
583 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
584 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
585 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
586 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
587 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
588 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
589 | | ...                                       | ${binary_max} | 3-node-IPv4
590 | | ...                                       | ${min_rate} | ${max_rate}
591 | | ...                                       | ${threshold}
592 | | ...                                       | ${perf_pdr_loss_acceptance}
593 | | ...                                       | ${perf_pdr_loss_acceptance_type}