2afbb093c8340d067fbb51f548ea7390d5453ce5
[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} | 10.10.10.0 | 24 | 1 | local
83 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
84 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
85 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
86 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
87 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
88 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
89 | | ... | ${binary_max} | ${traffic_profile}
90 | | ... | ${min_rate} | ${max_rate} | ${threshold}
91
92 | tc02-64B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
95 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
96 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
97 | | ... | step 100kpps, LT=0.5%.
98 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
99 | | ${framesize}= | Set Variable | ${64}
100 | | ${min_rate}= | Set Variable | ${100000}
101 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
102 | | ${binary_min}= | Set Variable | ${min_rate}
103 | | ${binary_max}= | Set Variable | ${max_rate}
104 | | ${threshold}= | Set Variable | ${min_rate}
105 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
106 | | And Add PCI devices to DUTs in 3-node single link topology
107 | | And Add no multi seg to all DUTs
108 | | And Apply startup configuration on all VPP DUTs
109 | | When Initialize IPv4 forwarding in 3-node circular topology
110 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
111 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
112 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
113 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
114 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
115 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
116 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
117 | | ... | ${binary_max} | ${traffic_profile}
118 | | ... | ${min_rate} | ${max_rate} | ${threshold}
119 | | ... | ${perf_pdr_loss_acceptance} | ${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 '1' rxqueues in 3-node single-link circular topology
135 | | And Add PCI devices to DUTs in 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 Initialize IPv4 forwarding in 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} | ${traffic_profile}
147 | | ... | ${min_rate} | ${max_rate} | ${threshold}
148
149 | tc04-1518B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
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] | 1518B | 1T1C | STHREAD | PDRDISC | 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 '1' rxqueues in 3-node single-link circular topology
163 | | And Add PCI devices to DUTs in 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 Initialize IPv4 forwarding in 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} | ${traffic_profile}
175 | | ... | ${min_rate} | ${max_rate} | ${threshold}
176 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
177
178 | tc05-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
181 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
182 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
183 | | ... | step 5kpps.
184 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
185 | | ${framesize}= | Set Variable | ${9000}
186 | | ${min_rate}= | Set Variable | ${10000}
187 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
188 | | ${binary_min}= | Set Variable | ${min_rate}
189 | | ${binary_max}= | Set Variable | ${max_rate}
190 | | ${threshold}= | Set Variable | ${min_rate}
191 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
192 | | And Add PCI devices to DUTs in 3-node single link topology
193 | | And Apply startup configuration on all VPP DUTs
194 | | When Initialize IPv4 forwarding in 3-node circular topology
195 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
196 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
197 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
198 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
199 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
200 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
201 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
202 | | ... | ${binary_max} | ${traffic_profile}
203 | | ... | ${min_rate} | ${max_rate} | ${threshold}
204
205 | tc06-9000B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
208 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
209 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
210 | | ... | step 5kpps, LT=0.5%.
211 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
212 | | ${framesize}= | Set Variable | ${9000}
213 | | ${min_rate}= | Set Variable | ${10000}
214 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
215 | | ${binary_min}= | Set Variable | ${min_rate}
216 | | ${binary_max}= | Set Variable | ${max_rate}
217 | | ${threshold}= | Set Variable | ${min_rate}
218 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
219 | | And Add PCI devices to DUTs in 3-node single link topology
220 | | And Apply startup configuration on all VPP DUTs
221 | | When Initialize IPv4 forwarding in 3-node circular topology
222 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
223 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
224 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
225 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
226 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
227 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
228 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
229 | | ... | ${binary_max} | ${traffic_profile}
230 | | ... | ${min_rate} | ${max_rate} | ${threshold}
231 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
232
233 | tc07-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
236 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
237 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
238 | | ... | step 100kpps.
239 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
240 | | ${framesize}= | Set Variable | ${64}
241 | | ${min_rate}= | Set Variable | ${100000}
242 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
243 | | ${binary_min}= | Set Variable | ${min_rate}
244 | | ${binary_max}= | Set Variable | ${max_rate}
245 | | ${threshold}= | Set Variable | ${min_rate}
246 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
247 | | And Add PCI devices to DUTs in 3-node single link topology
248 | | And Add no multi seg to all DUTs
249 | | And Apply startup configuration on all VPP DUTs
250 | | When Initialize IPv4 forwarding in 3-node circular topology
251 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
252 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
253 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
254 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
255 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
256 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
257 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
258 | | ... | ${binary_max} | ${traffic_profile}
259 | | ... | ${min_rate} | ${max_rate} | ${threshold}
260
261 | tc08-64B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
262 | | [Documentation]
263 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
264 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
265 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
266 | | ... | step 100kpps, LT=0.5%.
267 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
268 | | ${framesize}= | Set Variable | ${64}
269 | | ${min_rate}= | Set Variable | ${100000}
270 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
271 | | ${binary_min}= | Set Variable | ${min_rate}
272 | | ${binary_max}= | Set Variable | ${max_rate}
273 | | ${threshold}= | Set Variable | ${min_rate}
274 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
275 | | And Add PCI devices to DUTs in 3-node single link topology
276 | | And Add no multi seg to all DUTs
277 | | And Apply startup configuration on all VPP DUTs
278 | | When Initialize IPv4 forwarding in 3-node circular topology
279 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
280 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
281 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
282 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
283 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
284 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
285 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
286 | | ... | ${binary_max} | ${traffic_profile}
287 | | ... | ${min_rate} | ${max_rate} | ${threshold}
288 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
289
290 | tc09-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
291 | | [Documentation]
292 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
293 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
294 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
295 | | ... | step 10kpps.
296 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
297 | | ${framesize}= | Set Variable | ${1518}
298 | | ${min_rate}= | Set Variable | ${10000}
299 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
300 | | ${binary_min}= | Set Variable | ${min_rate}
301 | | ${binary_max}= | Set Variable | ${max_rate}
302 | | ${threshold}= | Set Variable | ${min_rate}
303 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
304 | | And Add PCI devices to DUTs in 3-node single link topology
305 | | And Add no multi seg to all DUTs
306 | | And Apply startup configuration on all VPP DUTs
307 | | When Initialize IPv4 forwarding in 3-node circular topology
308 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
309 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
310 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
311 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
312 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
313 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
314 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
315 | | ... | ${binary_max} | ${traffic_profile}
316 | | ... | ${min_rate} | ${max_rate} | ${threshold}
317
318 | tc10-1518B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
319 | | [Documentation]
320 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
321 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
322 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
323 | | ... | step 10kpps, LT=0.5%.
324 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
325 | | ${framesize}= | Set Variable | ${1518}
326 | | ${min_rate}= | Set Variable | ${10000}
327 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
328 | | ${binary_min}= | Set Variable | ${min_rate}
329 | | ${binary_max}= | Set Variable | ${max_rate}
330 | | ${threshold}= | Set Variable | ${min_rate}
331 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
332 | | And Add PCI devices to DUTs in 3-node single link topology
333 | | And Add no multi seg to all DUTs
334 | | And Apply startup configuration on all VPP DUTs
335 | | When Initialize IPv4 forwarding in 3-node circular topology
336 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
337 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
338 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
339 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
340 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
341 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
342 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
343 | | ... | ${binary_max} | ${traffic_profile}
344 | | ... | ${min_rate} | ${max_rate} | ${threshold}
345 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
346
347 | tc11-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
348 | | [Documentation]
349 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
350 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
351 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
352 | | ... | step 5kpps.
353 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
354 | | ${framesize}= | Set Variable | ${9000}
355 | | ${min_rate}= | Set Variable | ${10000}
356 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
357 | | ${binary_min}= | Set Variable | ${min_rate}
358 | | ${binary_max}= | Set Variable | ${max_rate}
359 | | ${threshold}= | Set Variable | ${min_rate}
360 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
361 | | And Add PCI devices to DUTs in 3-node single link topology
362 | | And Apply startup configuration on all VPP DUTs
363 | | When Initialize IPv4 forwarding in 3-node circular topology
364 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
365 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
366 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
367 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
368 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
369 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
370 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
371 | | ... | ${binary_max} | ${traffic_profile}
372 | | ... | ${min_rate} | ${max_rate} | ${threshold}
373
374 | tc12-9000B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
375 | | [Documentation]
376 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
377 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
378 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
379 | | ... | step 5kpps, LT=0.5%.
380 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
381 | | ${framesize}= | Set Variable | ${9000}
382 | | ${min_rate}= | Set Variable | ${10000}
383 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
384 | | ${binary_min}= | Set Variable | ${min_rate}
385 | | ${binary_max}= | Set Variable | ${max_rate}
386 | | ${threshold}= | Set Variable | ${min_rate}
387 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
388 | | And Add PCI devices to DUTs in 3-node single link topology
389 | | And Apply startup configuration on all VPP DUTs
390 | | When Initialize IPv4 forwarding in 3-node circular topology
391 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
392 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
393 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
394 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
395 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
396 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
397 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
398 | | ... | ${binary_max} | ${traffic_profile}
399 | | ... | ${min_rate} | ${max_rate} | ${threshold}
400 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
401
402 | tc13-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
403 | | [Documentation]
404 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
405 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
406 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
407 | | ... | step 100kpps.
408 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
409 | | ${framesize}= | Set Variable | ${64}
410 | | ${min_rate}= | Set Variable | ${100000}
411 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
412 | | ${binary_min}= | Set Variable | ${min_rate}
413 | | ${binary_max}= | Set Variable | ${max_rate}
414 | | ${threshold}= | Set Variable | ${min_rate}
415 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
416 | | And Add PCI devices to DUTs in 3-node single link topology
417 | | And Add no multi seg to all DUTs
418 | | And Apply startup configuration on all VPP DUTs
419 | | When Initialize IPv4 forwarding in 3-node circular topology
420 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
421 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
422 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
423 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
424 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
425 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
426 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
427 | | ... | ${binary_max} | ${traffic_profile}
428 | | ... | ${min_rate} | ${max_rate} | ${threshold}
429
430 | tc14-64B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
431 | | [Documentation]
432 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
433 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
434 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
435 | | ... | step 100kpps, LT=0.5%.
436 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
437 | | ${framesize}= | Set Variable | ${64}
438 | | ${min_rate}= | Set Variable | ${100000}
439 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
440 | | ${binary_min}= | Set Variable | ${min_rate}
441 | | ${binary_max}= | Set Variable | ${max_rate}
442 | | ${threshold}= | Set Variable | ${min_rate}
443 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
444 | | And Add PCI devices to DUTs in 3-node single link topology
445 | | And Add no multi seg to all DUTs
446 | | And Apply startup configuration on all VPP DUTs
447 | | When Initialize IPv4 forwarding in 3-node circular topology
448 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
449 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
450 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
451 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
452 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
453 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
454 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
455 | | ... | ${binary_max} | ${traffic_profile}
456 | | ... | ${min_rate} | ${max_rate} | ${threshold}
457 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
458
459 | tc15-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
460 | | [Documentation]
461 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
462 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
463 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
464 | | ... | step 10kpps.
465 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
466 | | ${framesize}= | Set Variable | ${1518}
467 | | ${min_rate}= | Set Variable | ${10000}
468 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
469 | | ${binary_min}= | Set Variable | ${min_rate}
470 | | ${binary_max}= | Set Variable | ${max_rate}
471 | | ${threshold}= | Set Variable | ${min_rate}
472 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
473 | | And Add PCI devices to DUTs in 3-node single link topology
474 | | And Add no multi seg to all DUTs
475 | | And Apply startup configuration on all VPP DUTs
476 | | When Initialize IPv4 forwarding in 3-node circular topology
477 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
478 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
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 NDR using binary search and pps | ${framesize} | ${binary_min}
484 | | ... | ${binary_max} | ${traffic_profile}
485 | | ... | ${min_rate} | ${max_rate} | ${threshold}
486
487 | tc16-1518B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
488 | | [Documentation]
489 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
490 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
491 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
492 | | ... | step 10kpps, LT=0.5%.
493 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
494 | | ${framesize}= | Set Variable | ${1518}
495 | | ${min_rate}= | Set Variable | ${10000}
496 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
497 | | ${binary_min}= | Set Variable | ${min_rate}
498 | | ${binary_max}= | Set Variable | ${max_rate}
499 | | ${threshold}= | Set Variable | ${min_rate}
500 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
501 | | And Add PCI devices to DUTs in 3-node single link topology
502 | | And Add no multi seg to all DUTs
503 | | And Apply startup configuration on all VPP DUTs
504 | | When Initialize IPv4 forwarding in 3-node circular topology
505 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
506 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
507 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
508 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
509 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
510 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
511 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
512 | | ... | ${binary_max} | ${traffic_profile}
513 | | ... | ${min_rate} | ${max_rate} | ${threshold}
514 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
515
516 | tc17-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
517 | | [Documentation]
518 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
519 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
520 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
521 | | ... | step 5kpps.
522 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
523 | | ${framesize}= | Set Variable | ${9000}
524 | | ${min_rate}= | Set Variable | ${10000}
525 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
526 | | ${binary_min}= | Set Variable | ${min_rate}
527 | | ${binary_max}= | Set Variable | ${max_rate}
528 | | ${threshold}= | Set Variable | ${min_rate}
529 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
530 | | And Add PCI devices to DUTs in 3-node single link topology
531 | | And Apply startup configuration on all VPP DUTs
532 | | When Initialize IPv4 forwarding in 3-node circular topology
533 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
534 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
535 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
536 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
537 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
538 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
539 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
540 | | ... | ${binary_max} | ${traffic_profile}
541 | | ... | ${min_rate} | ${max_rate} | ${threshold}
542
543 | tc18-9000B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
544 | | [Documentation]
545 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
546 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
547 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
548 | | ... | step 5kpps, LT=0.5%.
549 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
550 | | ${framesize}= | Set Variable | ${9000}
551 | | ${min_rate}= | Set Variable | ${10000}
552 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
553 | | ${binary_min}= | Set Variable | ${min_rate}
554 | | ${binary_max}= | Set Variable | ${max_rate}
555 | | ${threshold}= | Set Variable | ${min_rate}
556 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
557 | | And Add PCI devices to DUTs in 3-node single link topology
558 | | And Apply startup configuration on all VPP DUTs
559 | | When Initialize IPv4 forwarding in 3-node circular topology
560 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
561 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
562 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
563 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
564 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
565 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
566 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
567 | | ... | ${binary_max} | ${traffic_profile}
568 | | ... | ${min_rate} | ${max_rate} | ${threshold}
569 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}