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