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