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