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