66815d3dc09b26e015c9b0ba44d2dfb7c5fe211c
[csit.git] / tests / perf / 10ge2p1x520-ethip4lispip6-ip4base-ndrdisc.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 | Resource | resources/libraries/robot/lisp/lisp_static_adjacency.robot
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 # import additional Lisp settings from resource file
22 | Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
23 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
24 | ... | NIC_Intel-X520-DA2 | IP4FWD | ENCAP | LISP | IP6UNRLAY | IP4OVRLAY
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 | Test Setup | Setup all DUTs before test
29 | Test Teardown | Run Keywords
30 | ...           | Run Keyword If Test Failed
31 | ...           | Traffic should pass with no loss | 10
32 | ...           | ${min_rate}pps | ${framesize} | 3-node-IPv4
33 | ...           | fail_on_loss=${False}
34 | ...           | AND | Remove startup configuration of VPP from all DUTs
35 | Documentation | *RFC6830: Pkt throughput Lisp test cases*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-LISP-IPv6 on DUT1-DUT2 and\
40 | ... | Eth-IPv4 on TG-DUTn for IPv4 routing over LISPoIPv6 tunnel.\
41 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4\
42 | ... | routing and static routes. LISPoIPv6 tunnel is configured\
43 | ... | between DUT1 and DUT2. DUT1 and DUT2 tested with 2p10GE NIC X520\
44 | ... | Niantic by Intel.
45 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
46 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
47 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
48 | ... | of packets transmitted. NDR and PDR are discovered for different\
49 | ... | Ethernet L2 frame sizes using either binary search or linear search\
50 | ... | *[Ref] Applicable standard specifications:* RFC6830.
51
52 *** Variables ***
53 #X520-DA2 bandwidth limit
54 | ${s_limit} | ${10000000000}
55
56 *** Test Cases ***
57 | TC01: 64B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 1thread 1core 1rxq
58 | | [Documentation]
59 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
60 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
61 | | ... | port.
62 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start\
63 | | ... | at 10GE linerate, step 100kpps.
64 | | [Tags] | 1T1C | STHREAD | NDRDISC
65 | | ${framesize}= | Set Variable | ${64}
66 | | ${min_rate}= | Set Variable | ${100000}
67 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
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 Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
76 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
77 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
78 | | And  Set up Lisp topology
79 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
80 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
81 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
82 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
83 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
84 | | ...                                       | ${binary_max} | 3-node-IPv4
85 | | ...                                       | ${min_rate} | ${max_rate}
86 | | ...                                       | ${threshold}
87
88 | TC02: 64B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 1thread 1core 1rxq
89 | | [Documentation]
90 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
91 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
92 | | ... | port.
93 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start\
94 | | ... | at 10GE linerate, step 100kpps, LT=0.5%.
95 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
96 | | ${framesize}= | Set Variable | ${64}
97 | | ${min_rate}= | Set Variable | ${100000}
98 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
99 | | ${binary_min}= | Set Variable | ${min_rate}
100 | | ${binary_max}= | Set Variable | ${max_rate}
101 | | ${threshold}= | Set Variable | ${min_rate}
102 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
103 | | And   Add PCI devices to DUTs from 3-node single link topology
104 | | And   Add No Multi Seg to all DUTs
105 | | And   Apply startup configuration on all VPP DUTs
106 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
107 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
108 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
109 | | And  Set up Lisp topology
110 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
111 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
112 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
113 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
114 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
115 | | ...                                       | ${binary_max} | 3-node-IPv4
116 | | ...                                       | ${min_rate} | ${max_rate}
117 | | ...                                       | ${threshold}
118 | | ...                                       | ${glob_loss_acceptance}
119 | | ...                                       | ${glob_loss_acceptance_type}
120
121 | TC03: 1460B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 1thread 1core 1rxq
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
124 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
125 | | ... | port.
126 | | ... | [Ver] Find NDR for 1460 Byte frames using binary search start\
127 | | ... | at 10GE linerate, step 100kpps.
128 | | [Tags] | 1T1C | STHREAD | NDRDISC
129 | | ${framesize}= | Set Variable | ${1460}
130 | | ${min_rate}= | Set Variable | ${10000}
131 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
132 | | ${binary_min}= | Set Variable | ${min_rate}
133 | | ${binary_max}= | Set Variable | ${max_rate}
134 | | ${threshold}= | Set Variable | ${min_rate}
135 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
136 | | And   Add PCI devices to DUTs from 3-node single link topology
137 | | And   Add No Multi Seg to all DUTs
138 | | And   Apply startup configuration on all VPP DUTs
139 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
140 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
141 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
142 | | And  Set up Lisp topology
143 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
144 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
145 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
146 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
147 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
148 | | ...                                       | ${binary_max} | 3-node-IPv4
149 | | ...                                       | ${min_rate} | ${max_rate}
150 | | ...                                       | ${threshold}
151
152 | TC04: 1460B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 1thread 1core 1rxq
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
155 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
156 | | ... | port.
157 | | ... | [Ver] Find PDR for 1460 Byte frames using binary search start\
158 | | ... | at 10GE linerate, step 10kpps, LT=0.5%.
159 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
160 | | ${framesize}= | Set Variable | ${1460}
161 | | ${min_rate}= | Set Variable | ${10000}
162 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
163 | | ${binary_min}= | Set Variable | ${min_rate}
164 | | ${binary_max}= | Set Variable | ${max_rate}
165 | | ${threshold}= | Set Variable | ${min_rate}
166 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
167 | | And   Add PCI devices to DUTs from 3-node single link topology
168 | | And   Add No Multi Seg to all DUTs
169 | | And   Apply startup configuration on all VPP DUTs
170 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
171 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
172 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
173 | | And  Set up Lisp topology
174 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
175 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
176 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
177 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
178 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
179 | | ...                                       | ${binary_max} | 3-node-IPv4
180 | | ...                                       | ${min_rate} | ${max_rate}
181 | | ...                                       | ${threshold}
182 | | ...                                       | ${glob_loss_acceptance}
183 | | ...                                       | ${glob_loss_acceptance_type}
184
185 | TC05: 9000B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 1thread 1core 1rxq
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
188 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
189 | | ... | port.
190 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start\
191 | | ... | at 10GE linerate, step 5kpps.
192 | | [Tags] | 1T1C | STHREAD | NDRDISC
193 | | ${framesize}= | Set Variable | ${9000}
194 | | ${min_rate}= | Set Variable | ${10000}
195 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
196 | | ${binary_min}= | Set Variable | ${min_rate}
197 | | ${binary_max}= | Set Variable | ${max_rate}
198 | | ${threshold}= | Set Variable | ${min_rate}
199 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
200 | | And   Add PCI devices to DUTs from 3-node single link topology
201 | | And   Apply startup configuration on all VPP DUTs
202 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
203 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
204 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
205 | | And  Set up Lisp topology
206 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
207 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
208 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
209 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
210 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
211 | | ...                                       | ${binary_max} | 3-node-IPv4
212 | | ...                                       | ${min_rate} | ${max_rate}
213 | | ...                                       | ${threshold}
214
215 | TC06: 9000B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 1thread 1core 1rxq
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
218 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
219 | | ... | port.
220 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start\
221 | | ... | at 10GE linerate, step 5kpps, LT=0.5%.
222 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
223 | | ${framesize}= | Set Variable | ${9000}
224 | | ${min_rate}= | Set Variable | ${10000}
225 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
226 | | ${binary_min}= | Set Variable | ${min_rate}
227 | | ${binary_max}= | Set Variable | ${max_rate}
228 | | ${threshold}= | Set Variable | ${min_rate}
229 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
230 | | And   Add PCI devices to DUTs from 3-node single link topology
231 | | And   Apply startup configuration on all VPP DUTs
232 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
233 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
234 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
235 | | And  Set up Lisp topology
236 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
237 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
238 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
239 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
240 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
241 | | ...                                       | ${binary_max} | 3-node-IPv4
242 | | ...                                       | ${min_rate} | ${max_rate}
243 | | ...                                       | ${threshold}
244 | | ...                                       | ${glob_loss_acceptance}
245 | | ...                                       | ${glob_loss_acceptance_type}
246
247 | TC07: 64B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 2thread 2core 1rxq
248 | | [Documentation]
249 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
250 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
251 | | ... | port.
252 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start\
253 | | ... | at 10GE linerate, step 100kpps.
254 | | [Tags] | 2T2C | MTHREAD | NDRDISC
255 | | ${framesize}= | Set Variable | ${64}
256 | | ${min_rate}= | Set Variable | ${100000}
257 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
258 | | ${binary_min}= | Set Variable | ${min_rate}
259 | | ${binary_max}= | Set Variable | ${max_rate}
260 | | ${threshold}= | Set Variable | ${min_rate}
261 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
262 | | And   Add PCI devices to DUTs from 3-node single link topology
263 | | And   Add No Multi Seg to all DUTs
264 | | And   Apply startup configuration on all VPP DUTs
265 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
266 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
267 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
268 | | And  Set up Lisp topology
269 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
270 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
271 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
272 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
273 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
274 | | ...                                       | ${binary_max} | 3-node-IPv4
275 | | ...                                       | ${min_rate} | ${max_rate}
276 | | ...                                       | ${threshold}
277
278 | TC08: 64B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 2thread 2core 1rxq
279 | | [Documentation]
280 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
281 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
282 | | ... | port.
283 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start\
284 | | ... | at 10GE linerate, step 100kpps.
285 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
286 | | ${framesize}= | Set Variable | ${64}
287 | | ${min_rate}= | Set Variable | ${100000}
288 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
289 | | ${binary_min}= | Set Variable | ${min_rate}
290 | | ${binary_max}= | Set Variable | ${max_rate}
291 | | ${threshold}= | Set Variable | ${min_rate}
292 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
293 | | And   Add PCI devices to DUTs from 3-node single link topology
294 | | And   Add No Multi Seg to all DUTs
295 | | And   Apply startup configuration on all VPP DUTs
296 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
297 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
298 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
299 | | And  Set up Lisp topology
300 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
301 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
302 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
303 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
304 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
305 | | ...                                       | ${binary_max} | 3-node-IPv4
306 | | ...                                       | ${min_rate} | ${max_rate}
307 | | ...                                       | ${threshold}
308 | | ...                                       | ${glob_loss_acceptance}
309 | | ...                                       | ${glob_loss_acceptance_type}
310
311 | TC09: 1460B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 2thread 2core 1rxq
312 | | [Documentation]
313 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
314 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
315 | | ... | port.
316 | | ... | [Ver] Find NDR for 1460 Byte frames using binary search start\
317 | | ... | at 10GE linerate, step 10kpps.
318 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
319 | | ${framesize}= | Set Variable | ${1460}
320 | | ${min_rate}= | Set Variable | ${10000}
321 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
322 | | ${binary_min}= | Set Variable | ${min_rate}
323 | | ${binary_max}= | Set Variable | ${max_rate}
324 | | ${threshold}= | Set Variable | ${min_rate}
325 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
326 | | And   Add PCI devices to DUTs from 3-node single link topology
327 | | And   Add No Multi Seg to all DUTs
328 | | And   Apply startup configuration on all VPP DUTs
329 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
330 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
331 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
332 | | And  Set up Lisp topology
333 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
334 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
335 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
336 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
337 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
338 | | ...                                       | ${binary_max} | 3-node-IPv4
339 | | ...                                       | ${min_rate} | ${max_rate}
340 | | ...                                       | ${threshold}
341
342 | TC10: 1460B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 2thread 2core 1rxq
343 | | [Documentation]
344 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
345 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
346 | | ... | port.
347 | | ... | [Ver] Find PDR for 1460 Byte frames using binary search start\
348 | | ... | at 10GE linerate, step 10kpps, LT=0.5%.
349 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
350 | | ${framesize}= | Set Variable | ${1460}
351 | | ${min_rate}= | Set Variable | ${10000}
352 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
353 | | ${binary_min}= | Set Variable | ${min_rate}
354 | | ${binary_max}= | Set Variable | ${max_rate}
355 | | ${threshold}= | Set Variable | ${min_rate}
356 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
357 | | And   Add PCI devices to DUTs from 3-node single link topology
358 | | And   Add No Multi Seg to all DUTs
359 | | And   Apply startup configuration on all VPP DUTs
360 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
361 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
362 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
363 | | And  Set up Lisp topology
364 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
365 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
366 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
367 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
368 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
369 | | ...                                       | ${binary_max} | 3-node-IPv4
370 | | ...                                       | ${min_rate} | ${max_rate}
371 | | ...                                       | ${threshold}
372 | | ...                                       | ${glob_loss_acceptance}
373 | | ...                                       | ${glob_loss_acceptance_type}
374
375 | TC11: 9000B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 2thread 2core 1rxq
376 | | [Documentation]
377 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
378 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
379 | | ... | port.
380 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start\
381 | | ... | at 10GE linerate, step 5kpps.
382 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
383 | | ${framesize}= | Set Variable | ${9000}
384 | | ${min_rate}= | Set Variable | ${10000}
385 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
386 | | ${binary_min}= | Set Variable | ${min_rate}
387 | | ${binary_max}= | Set Variable | ${max_rate}
388 | | ${threshold}= | Set Variable | ${min_rate}
389 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
390 | | And   Add PCI devices to DUTs from 3-node single link topology
391 | | And   Apply startup configuration on all VPP DUTs
392 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
393 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
394 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
395 | | And  Set up Lisp topology
396 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
397 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
398 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
399 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
400 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
401 | | ...                                       | ${binary_max} | 3-node-IPv4
402 | | ...                                       | ${min_rate} | ${max_rate}
403 | | ...                                       | ${threshold}
404
405 | TC12: 9000B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 2thread 2core 1rxq
406 | | [Documentation]
407 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
408 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
409 | | ... | port.
410 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start\
411 | | ... | at 10GE linerate, step 5kpps, LT=0.5%.
412 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
413 | | ${framesize}= | Set Variable | ${9000}
414 | | ${min_rate}= | Set Variable | ${10000}
415 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
416 | | ${binary_min}= | Set Variable | ${min_rate}
417 | | ${binary_max}= | Set Variable | ${max_rate}
418 | | ${threshold}= | Set Variable | ${min_rate}
419 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
420 | | And   Add PCI devices to DUTs from 3-node single link topology
421 | | And   Apply startup configuration on all VPP DUTs
422 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
423 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
424 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
425 | | And  Set up Lisp topology
426 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
427 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
428 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
429 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
430 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
431 | | ...                                       | ${binary_max} | 3-node-IPv4
432 | | ...                                       | ${min_rate} | ${max_rate}
433 | | ...                                       | ${threshold}
434 | | ...                                       | ${glob_loss_acceptance}
435 | | ...                                       | ${glob_loss_acceptance_type}
436
437 | TC13: 64B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 4thread 4core 2rxq
438 | | [Documentation]
439 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
440 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
441 | | ... | port.
442 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start\
443 | | ... | at 10GE linerate, step 100kpps.
444 | | [Tags] | 4T4C | MTHREAD | NDRDISC
445 | | ${framesize}= | Set Variable | ${64}
446 | | ${min_rate}= | Set Variable | ${100000}
447 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
448 | | ${binary_min}= | Set Variable | ${min_rate}
449 | | ${binary_max}= | Set Variable | ${max_rate}
450 | | ${threshold}= | Set Variable | ${min_rate}
451 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
452 | | And   Add PCI devices to DUTs from 3-node single link topology
453 | | And   Add No Multi Seg to all DUTs
454 | | And   Apply startup configuration on all VPP DUTs
455 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
456 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
457 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
458 | | And  Set up Lisp topology
459 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
460 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
461 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
462 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
463 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
464 | | ...                                       | ${binary_max} | 3-node-IPv4
465 | | ...                                       | ${min_rate} | ${max_rate}
466 | | ...                                       | ${threshold}
467
468 | TC14: 64B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 4thread 4core 2rxq
469 | | [Documentation]
470 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
471 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
472 | | ... | port.
473 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start\
474 | | ... | at 10GE linerate, step 100kpps, LT=0.5%.
475 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
476 | | ${framesize}= | Set Variable | ${64}
477 | | ${min_rate}= | Set Variable | ${100000}
478 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
479 | | ${binary_min}= | Set Variable | ${min_rate}
480 | | ${binary_max}= | Set Variable | ${max_rate}
481 | | ${threshold}= | Set Variable | ${min_rate}
482 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
483 | | And   Add PCI devices to DUTs from 3-node single link topology
484 | | And   Add No Multi Seg to all DUTs
485 | | And   Apply startup configuration on all VPP DUTs
486 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
487 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
488 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
489 | | And  Set up Lisp topology
490 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
491 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
492 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
493 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
494 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
495 | | ...                                       | ${binary_max} | 3-node-IPv4
496 | | ...                                       | ${min_rate} | ${max_rate}
497 | | ...                                       | ${threshold}
498 | | ...                                       | ${glob_loss_acceptance}
499 | | ...                                       | ${glob_loss_acceptance_type}
500
501 | TC15: 1460B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 4thread 4core 2rxq
502 | | [Documentation]
503 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
504 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
505 | | ... | port.
506 | | ... | [Ver] Find NDR for 1460 Byte frames using binary search start\
507 | | ... | at 10GE linerate, step 10kpps.
508 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
509 | | ${framesize}= | Set Variable | ${1460}
510 | | ${min_rate}= | Set Variable | ${10000}
511 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
512 | | ${binary_min}= | Set Variable | ${min_rate}
513 | | ${binary_max}= | Set Variable | ${max_rate}
514 | | ${threshold}= | Set Variable | ${min_rate}
515 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
516 | | And   Add PCI devices to DUTs from 3-node single link topology
517 | | And   Add No Multi Seg to all DUTs
518 | | And   Apply startup configuration on all VPP DUTs
519 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
520 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
521 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
522 | | And  Set up Lisp topology
523 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
524 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
525 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
526 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
527 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
528 | | ...                                       | ${binary_max} | 3-node-IPv4
529 | | ...                                       | ${min_rate} | ${max_rate}
530 | | ...                                       | ${threshold}
531
532 | TC16: 1460B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 4thread 4core 2rxq
533 | | [Documentation]
534 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
535 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
536 | | ... | port.
537 | | ... | [Ver] Find PDR for 1460 Byte frames using binary search start\
538 | | ... | at 10GE linerate, step 10kpps, LT=0.5%.
539 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
540 | | ${framesize}= | Set Variable | ${1460}
541 | | ${min_rate}= | Set Variable | ${10000}
542 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
543 | | ${binary_min}= | Set Variable | ${min_rate}
544 | | ${binary_max}= | Set Variable | ${max_rate}
545 | | ${threshold}= | Set Variable | ${min_rate}
546 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
547 | | And   Add PCI devices to DUTs from 3-node single link topology
548 | | And   Add No Multi Seg to all DUTs
549 | | And   Apply startup configuration on all VPP DUTs
550 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
551 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
552 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
553 | | And  Set up Lisp topology
554 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
555 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
556 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
557 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
558 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
559 | | ...                                       | ${binary_max} | 3-node-IPv4
560 | | ...                                       | ${min_rate} | ${max_rate}
561 | | ...                                       | ${threshold}
562 | | ...                                       | ${glob_loss_acceptance}
563 | | ...                                       | ${glob_loss_acceptance_type}
564
565 | TC17: 9000B NDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 4thread 4core 2rxq
566 | | [Documentation]
567 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
568 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
569 | | ... | port.
570 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start\
571 | | ... | at 10GE linerate, step 5kpps.
572 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
573 | | ${framesize}= | Set Variable | ${9000}
574 | | ${min_rate}= | Set Variable | ${10000}
575 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
576 | | ${binary_min}= | Set Variable | ${min_rate}
577 | | ${binary_max}= | Set Variable | ${max_rate}
578 | | ${threshold}= | Set Variable | ${min_rate}
579 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
580 | | And   Add PCI devices to DUTs from 3-node single link topology
581 | | And   Apply startup configuration on all VPP DUTs
582 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
583 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
584 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
585 | | And  Set up Lisp topology
586 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
587 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
588 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
589 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
590 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
591 | | ...                                       | ${binary_max} | 3-node-IPv4
592 | | ...                                       | ${min_rate} | ${max_rate}
593 | | ...                                       | ${threshold}
594
595 | TC18: 9000B PDR binary search - DUT IPv4 over LISPoIPv6 tunnel - 4thread 4core 2rxq
596 | | [Documentation]
597 | | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist\
598 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
599 | | ... | port.
600 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start\
601 | | ... | at 10GE linerate, step 5kpps, LT=0.5%.
602 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
603 | | ${framesize}= | Set Variable | ${9000}
604 | | ${min_rate}= | Set Variable | ${10000}
605 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + 48}
606 | | ${binary_min}= | Set Variable | ${min_rate}
607 | | ${binary_max}= | Set Variable | ${max_rate}
608 | | ${threshold}= | Set Variable | ${min_rate}
609 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
610 | | And   Add PCI devices to DUTs from 3-node single link topology
611 | | And   Apply startup configuration on all VPP DUTs
612 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
613 | | ...  | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
614 | | ...  | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
615 | | And  Set up Lisp topology
616 | | ...  | ${dut1} | ${dut1_if2} | ${NONE}
617 | | ...  | ${dut2} | ${dut2_if1} | ${NONE}
618 | | ...  | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
619 | | ...  | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
620 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
621 | | ...                                       | ${binary_max} | 3-node-IPv4
622 | | ...                                       | ${min_rate} | ${max_rate}
623 | | ...                                       | ${threshold}
624 | | ...                                       | ${glob_loss_acceptance}
625 | | ...                                       | ${glob_loss_acceptance_type}