CSIT-404 Adjust DPDK testpmd startup parameters
[csit.git] / resources / libraries / robot / performance.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 | Library | resources.libraries.python.topology.Topology
16 | Library | resources.libraries.python.NodePath
17 | Library | resources.libraries.python.DpdkUtil
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.VhostUser
20 | Library | resources.libraries.python.TrafficGenerator
21 | Library | resources.libraries.python.TrafficGenerator.TGDropRateSearchImpl
22 | Resource | resources/libraries/robot/default.robot
23 | Resource | resources/libraries/robot/interfaces.robot
24 | Resource | resources/libraries/robot/counters.robot
25 | Resource | resources/libraries/robot/bridge_domain.robot
26 | Resource | resources/libraries/robot/l2_xconnect.robot
27 | Resource | resources/libraries/robot/ipv4.robot
28 | Resource | resources/libraries/robot/ipv6.robot
29 | Resource | resources/libraries/robot/qemu.robot
30 | Documentation | Performance suite keywords
31
32 *** Keywords ***
33 | Setup performance rate Variables
34 | | [Documentation]
35 | | ... | Setup performance linerates as Suite Variables. Variables are used
36 | | ... | as search boundaries in RFC2544 throughput search.
37 | | ...
38 | | ... | _NOTE:_ This KW sets following suite variables:
39 | | ... | - 10Ge_linerate_pps_64B - Maximum number of packet per second
40 | | ... |                           for 10GE with 64B L2 Frame.
41 | | ... | - 10Ge_linerate_pps_68B - Maximum number of packet per second
42 | | ... |                           for 10GE with 68B L2 Frame.
43 | | ... | - 10Ge_linerate_pps_72B - Maximum number of packet per second
44 | | ... |                           for 10GE with 72B L2 Frame.
45 | | ... | - 10Ge_linerate_pps_78B - Maximum number of packet per second
46 | | ... |                           for 10GE with 78B L2 Frame.
47 | | ... | - 10Ge_linerate_pps_114B - Maximum number of packet per second
48 | | ... |                           for 10GE with 114B L2 Frame.
49 | | ... | - 10Ge_linerate_pps_1518B - Maximum number of packet per second
50 | | ... |                             for 10GE with 1518B L2 Frame.
51 | | ... | - 10Ge_linerate_pps_1522B - Maximum number of packet per second
52 | | ... |                             for 10GE with 1522B L2 Frame.
53 | | ... | - 10Ge_linerate_pps_1526B - Maximum number of packet per second
54 | | ... |                             for 10GE with 1526B L2 Frame.
55 | | ... | - 10Ge_linerate_pps_1568B - Maximum number of packet per second
56 | | ... |                             for 10GE with 1568B L2 Frame.
57 | | ... | - 10Ge_linerate_pps_9000B - Maximum number of packet per second
58 | | ... |                             for 10GE with 9000B L2 Frame.
59 | | ... | - 10Ge_linerate_pps_9004B - Maximum number of packet per second
60 | | ... |                             for 10GE with 9004B L2 Frame.
61 | | ... | - 10Ge_linerate_pps_9008B - Maximum number of packet per second
62 | | ... |                             for 10GE with 9008B L2 Frame.
63 | | ... | - 10Ge_linerate_pps_9050B - Maximum number of packet per second
64 | | ... |                             for 10GE with 9050B L2 Frame.
65 | | ... | - 10Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
66 | | ... |                                 for 10GE with IMIX_v4_1 profile.
67 | | ... | - 10Ge_lisp_linerate_pps_72B - Maximum number of packets per second
68 | | ... |                                for 10GE with 72B L2 Frame, Lisp and
69 | | ... |                                IPv4 header.
70 | | ... | - 10Ge_lisp_linerate_pps_86B - Maximum number of packets per second
71 | | ... |                                for 10GE with 86B L2 Frame, Lisp and
72 | | ... |                                IPv4 header.
73 | | ... | - 10Ge_lisp_linerate_pps_1488B - Maximum number of packets per
74 | | ... |                                  second for 10GE with 1488B L2
75 | | ... |                                  Frame, Lisp and IPv6 header.
76 | | ... | - 10Ge_lisp_linerate_pps_9008B - Maximum number of packets per
77 | | ... |                                  second for 10GE with 9008B L2
78 | | ... |                                  Frame, Lisp, IPv4 or IPv6 header.
79 | | ... | - 10Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
80 | | ... |                                     second for 10GE with 112B L2
81 | | ... |                                     Frame, Lisp, IPv4 and IPv6
82 | | ... |                                     header.
83 | | ... | - 10Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
84 | | ... |                                     second for 10GE with 126B L2
85 | | ... |                                     Frame, Lisp, IPv4 and IPv6
86 | | ... |                                     header.
87 | | ... | - 10Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
88 | | ... |                                      second for 10GE with 1508B L2
89 | | ... |                                      Frame, Lisp, IPv4 and IPv6
90 | | ... |                                      header.
91 | | ... | - 10Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
92 | | ... |                                      second for 10GE with 9048B L2
93 | | ... |                                      Frame, Lisp, IPv4 and IPv6
94 | | ... |                                      header.
95 | | ... | - 40Ge_linerate_pps_64B - Maximum number of packet per second
96 | | ... |                           for 40GE with 64B L2 Frame.
97 | | ... | - 40Ge_linerate_pps_68B - Maximum number of packet per second
98 | | ... |                           for 40GE with 68B L2 Frame.
99 | | ... | - 40Ge_linerate_pps_72B - Maximum number of packet per second
100 | | ... |                           for 40GE with 72B L2 Frame.
101 | | ... | - 40Ge_linerate_pps_78B - Maximum number of packet per second
102 | | ... |                           for 40GE with 78B L2 Frame.
103 | | ... | - 40Ge_linerate_pps_114B - Maximum number of packet per second
104 | | ... |                           for 40GE with 114B L2 Frame.
105 | | ... | - 40Ge_linerate_pps_1518B - Maximum number of packet per second
106 | | ... |                             for 40GE with 1518B L2 Frame.
107 | | ... | - 40Ge_linerate_pps_1522B - Maximum number of packet per second
108 | | ... |                             for 40GE with 1522B L2 Frame.
109 | | ... | - 40Ge_linerate_pps_1526B - Maximum number of packet per second
110 | | ... |                             for 40GE with 1526B L2 Frame.
111 | | ... | - 40Ge_linerate_pps_1568B - Maximum number of packet per second
112 | | ... |                             for 40GE with 1568B L2 Frame.
113 | | ... | - 40Ge_linerate_pps_9000B - Maximum number of packet per second
114 | | ... |                             for 40GE with 9000B L2 Frame.
115 | | ... | - 40Ge_linerate_pps_9004B - Maximum number of packet per second
116 | | ... |                             for 40GE with 9004B L2 Frame.
117 | | ... | - 40Ge_linerate_pps_9008B - Maximum number of packet per second
118 | | ... |                             for 40GE with 9008B L2 Frame.
119 | | ... | - 40Ge_linerate_pps_9050B - Maximum number of packet per second
120 | | ... |                             for 40GE with 9050B L2 Frame.
121 | | ... | - 40Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
122 | | ... |                                 for 40GE with IMIX_v4_1 profile.
123 | | ... | - 40Ge_lisp_linerate_pps_72B - Maximum number of packets per second
124 | | ... |                                for 40GE with 72B L2 Frame, Lisp and
125 | | ... |                                IPv4 header.
126 | | ... | - 40Ge_lisp_linerate_pps_86B - Maximum number of packets per second
127 | | ... |                                for 40GE with 86B L2 Frame, Lisp and
128 | | ... |                                IPv4 header.
129 | | ... | - 40Ge_lisp_linerate_pps_1488B - Maximum number of packets per
130 | | ... |                                  second for 40GE with 1488B L2
131 | | ... |                                  Frame, Lisp and IPv6 header.
132 | | ... | - 40Ge_lisp_linerate_pps_9008B - Maximum number of packets per
133 | | ... |                                  second for 40GE with 9008B L2
134 | | ... |                                  Frame, Lisp, IPv4 or IPv6 header.
135 | | ... | - 40Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
136 | | ... |                                     second for 40GE with 112B L2
137 | | ... |                                     Frame, Lisp, IPv4 and IPv6
138 | | ... |                                     header.
139 | | ... | - 40Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
140 | | ... |                                     second for 40GE with 126B L2
141 | | ... |                                     Frame, Lisp, IPv4 and IPv6
142 | | ... |                                     header.
143 | | ... | - 40Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
144 | | ... |                                      second for 40GE with 1508B L2
145 | | ... |                                      Frame, Lisp, IPv4 and IPv6
146 | | ... |                                      header.
147 | | ... | - 40Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
148 | | ... |                                      second for 40GE with 9048B L2
149 | | ... |                                      Frame, Lisp, IPv4 and IPv6
150 | | ... |                                      header.
151 | | ...
152 | | Set Suite Variable | ${10Ge_linerate_pps_64B} | 14880952
153 | | Set Suite Variable | ${10Ge_linerate_pps_68B} | 14204545
154 | | Set Suite Variable | ${10Ge_linerate_pps_72B} | 13586956
155 | | Set Suite Variable | ${10Ge_linerate_pps_78B} | 12755102
156 | | Set Suite Variable | ${10Ge_linerate_pps_114B} |  9328358
157 | | Set Suite Variable | ${10Ge_linerate_pps_1518B} | 812743
158 | | Set Suite Variable | ${10Ge_linerate_pps_1522B} | 810635
159 | | Set Suite Variable | ${10Ge_linerate_pps_1568B} | 787153
160 | | Set Suite Variable | ${10Ge_linerate_pps_9000B} | 138580
161 | | Set Suite Variable | ${10Ge_linerate_pps_9004B} | 138519
162 | | Set Suite Variable | ${10Ge_linerate_pps_9008B} | 138458
163 | | Set Suite Variable | ${10Ge_linerate_pps_9050B} | 137816
164 | | Set Suite Variable | ${10Ge_linerate_pps_IMIX_v4_1} | 3343736
165 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_72B} | 13586956
166 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_86B} | 11792452
167 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_1488B} | 828912
168 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_9008B} | 138458
169 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_112B} | 9469696
170 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_126B} | 8561643
171 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_1508B} | 818062
172 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_9048B} | 137847
173 | | Set Suite Variable | ${40Ge_linerate_pps_64B} | 59523809
174 | | Set Suite Variable | ${40Ge_linerate_pps_68B} | 56818181
175 | | Set Suite Variable | ${40Ge_linerate_pps_72B} | 54347826
176 | | Set Suite Variable | ${40Ge_linerate_pps_78B} | 51020408
177 | | Set Suite Variable | ${40Ge_linerate_pps_114B} |  37313432
178 | | Set Suite Variable | ${40Ge_linerate_pps_1518B} | 3250975
179 | | Set Suite Variable | ${40Ge_linerate_pps_1522B} | 3242542
180 | | Set Suite Variable | ${40Ge_linerate_pps_1568B} | 3148614
181 | | Set Suite Variable | ${40Ge_linerate_pps_9000B} | 554323
182 | | Set Suite Variable | ${40Ge_linerate_pps_9004B} | 554078
183 | | Set Suite Variable | ${40Ge_linerate_pps_9008B} | 553832
184 | | Set Suite Variable | ${40Ge_linerate_pps_9050B} | 551267
185 | | Set Suite Variable | ${40Ge_linerate_pps_IMIX_v4_1} | 13374944
186 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_72B} | 54347826
187 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_86B} | 47169811
188 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_1488B} | 3315649
189 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_9008B} | 553832
190 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_112B} | 37878787
191 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_126B} | 34246575
192 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_1508B} | 3272251
193 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_9048B} | 551389
194
195 | Calculate pps
196 | | [Documentation]
197 | | ... | Calculate pps for given rate and L2 frame size,
198 | | ... | additional 20B are added to L2 frame size as padding.
199 | | ...
200 | | ... | *Arguments*
201 | | ... | - bps - Rate in bps. Type: integer
202 | | ... | - framesize - L2 frame size in Bytes. Type: integer
203 | | ...
204 | | ... | *Return*
205 | | ... | - Calculated pps. Type: integer
206 | | ...
207 | | ... | *Example:*
208 | | ...
209 | | ... | \| Calculate pps \| 10000000000 | 64
210 | | [Arguments] | ${bps} | ${framesize}
211 | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__()
212 | | Return From Keyword | ${ret}
213
214 | Get Frame Size
215 | | [Documentation]
216 | | ... | Framesize can be either integer in case of a single packet
217 | | ... | in stream, or set of packets in case of IMIX type or simmilar.
218 | | ... | This keyword returns average framesize.
219 | | ...
220 | | ... | *Arguments:*
221 | | ... | - framesize - Framesize. Type: integer or string
222 | | ...
223 | | ... | *Example:*
224 | | ...
225 | | ... | \| Get Frame Size \| IMIX_v4_1
226 | | [Arguments] | ${framesize}
227 | | Run Keyword If | '${framesize}' == 'IMIX_v4_1'
228 | | ...            | Return From Keyword | 353.83333
229 | | Return From Keyword | ${framesize}
230
231 | Setup performance global Variables
232 | | [Documentation]
233 | | ... | Setup suite Variables. Variables are used across performance testing.
234 | | ...
235 | | ... | _NOTE:_ This KW sets following suite variables:
236 | | ... | - glob_loss_acceptance - Loss acceptance treshold
237 | | ... | - glob_loss_acceptance_type - Loss acceptance treshold type
238 | | ... | - glob_vm_image - Guest VM disk image
239 | | ...
240 | | Set Suite Variable | ${glob_loss_acceptance} | 0.5
241 | | Set Suite Variable | ${glob_loss_acceptance_type} | percentage
242 | | Set Suite Variable | ${glob_vm_image} | /var/lib/vm/csit-nested-1.3.img
243
244 | 2-node circular Topology Variables Setup
245 | | [Documentation]
246 | | ... | Compute path for testing on two given nodes in circular
247 | | ... | topology and set corresponding suite variables.
248 | | ...
249 | | ... | _NOTE:_ This KW sets following suite variables:
250 | | ... | - tg - TG node
251 | | ... | - tg_if1 - 1st TG interface towards DUT.
252 | | ... | - tg_if2 - 2nd TG interface towards DUT.
253 | | ... | - dut1 - DUT1 node
254 | | ... | - dut1_if1 - 1st DUT interface towards TG.
255 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
256 | | ...
257 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
258 | | Compute Path
259 | | ${tg_if1} | ${tg}= | Next Interface
260 | | ${dut1_if1} | ${dut1}= | Next Interface
261 | | ${dut1_if2} | ${dut1}= | Next Interface
262 | | ${tg_if2} | ${tg}= | Next Interface
263 | | Set Suite Variable | ${tg}
264 | | Set Suite Variable | ${tg_if1}
265 | | Set Suite Variable | ${tg_if2}
266 | | Set Suite Variable | ${dut1}
267 | | Set Suite Variable | ${dut1_if1}
268 | | Set Suite Variable | ${dut1_if2}
269
270 | 3-node circular Topology Variables Setup
271 | | [Documentation]
272 | | ... | Compute path for testing on three given nodes in circular
273 | | ... | topology and set corresponding suite variables.
274 | | ...
275 | | ... | _NOTE:_ This KW sets following suite variables:
276 | | ... | - tg - TG node
277 | | ... | - tg_if1 - TG interface towards DUT1.
278 | | ... | - tg_if2 - TG interface towards DUT2.
279 | | ... | - dut1 - DUT1 node
280 | | ... | - dut1_if1 - DUT1 interface towards TG.
281 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
282 | | ... | - dut2 - DUT2 node
283 | | ... | - dut2_if1 - DUT2 interface towards TG.
284 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
285 | | ...
286 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
287 | | ...          | ${nodes['TG']}
288 | | Compute Path
289 | | ${tg_if1} | ${tg}= | Next Interface
290 | | ${dut1_if1} | ${dut1}= | Next Interface
291 | | ${dut1_if2} | ${dut1}= | Next Interface
292 | | ${dut2_if1} | ${dut2}= | Next Interface
293 | | ${dut2_if2} | ${dut2}= | Next Interface
294 | | ${tg_if2} | ${tg}= | Next Interface
295 | | Set Suite Variable | ${tg}
296 | | Set Suite Variable | ${tg_if1}
297 | | Set Suite Variable | ${tg_if2}
298 | | Set Suite Variable | ${dut1}
299 | | Set Suite Variable | ${dut1_if1}
300 | | Set Suite Variable | ${dut1_if2}
301 | | Set Suite Variable | ${dut2}
302 | | Set Suite Variable | ${dut2_if1}
303 | | Set Suite Variable | ${dut2_if2}
304
305 | 2-node circular Topology Variables Setup with DUT interface model
306 | | [Documentation]
307 | | ... | Compute path for testing on two given nodes in circular topology
308 | | ... | based on interface model provided as an argument and set
309 | | ... | corresponding suite variables.
310 | | ...
311 | | ... | *Arguments:*
312 | | ... | - iface_model - Interface model. Type: string
313 | | ...
314 | | ... | _NOTE:_ This KW sets following suite variables:
315 | | ... | - tg - TG node
316 | | ... | - tg_if1 - 1st TG interface towards DUT.
317 | | ... | - tg_if2 - 2nd TG interface towards DUT.
318 | | ... | - dut1 - DUT1 node
319 | | ... | - dut1_if1 - 1st DUT interface towards TG.
320 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
321 | | ...
322 | | ... | *Example:*
323 | | ...
324 | | ... | \| 2-node circular Topology Variables Setup with DUT interface model \
325 | | ... | \| Intel-X520-DA2 \|
326 | | [Arguments] | ${iface_model}
327 | | ${iface_model_list}= | Create list | ${iface_model}
328 | | Append Node | ${nodes['TG']}
329 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
330 | | Append Node | ${nodes['TG']}
331 | | Compute Path
332 | | ${tg_if1} | ${tg}= | Next Interface
333 | | ${dut1_if1} | ${dut1}= | Next Interface
334 | | ${dut1_if2} | ${dut1}= | Next Interface
335 | | ${tg_if2} | ${tg}= | Next Interface
336 | | Set Suite Variable | ${tg}
337 | | Set Suite Variable | ${tg_if1}
338 | | Set Suite Variable | ${tg_if2}
339 | | Set Suite Variable | ${dut1}
340 | | Set Suite Variable | ${dut1_if1}
341 | | Set Suite Variable | ${dut1_if2}
342
343 | 3-node circular Topology Variables Setup with DUT interface model
344 | | [Documentation]
345 | | ... | Compute path for testing on three given nodes in circular topology
346 | | ... | based on interface model provided as an argument and set
347 | | ... | corresponding suite variables.
348 | | ...
349 | | ... | *Arguments:*
350 | | ... | - iface_model - Interface model. Type: string
351 | | ...
352 | | ... | _NOTE:_ This KW sets following suite variables:
353 | | ... | - tg - TG node
354 | | ... | - tg_if1 - TG interface towards DUT1.
355 | | ... | - tg_if2 - TG interface towards DUT2.
356 | | ... | - dut1 - DUT1 node
357 | | ... | - dut1_if1 - DUT1 interface towards TG.
358 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
359 | | ... | - dut2 - DUT2 node
360 | | ... | - dut2_if1 - DUT2 interface towards TG.
361 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
362 | | ...
363 | | ... | *Example:*
364 | | ...
365 | | ... | \| 3-node circular Topology Variables Setup with DUT interface model \
366 | | ... | \| Intel-X520-DA2 \|
367 | | [Arguments] | ${iface_model}
368 | | ${iface_model_list}= | Create list | ${iface_model}
369 | | Append Node | ${nodes['TG']}
370 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
371 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
372 | | Append Node | ${nodes['TG']}
373 | | Compute Path
374 | | ${tg_if1} | ${tg}= | Next Interface
375 | | ${dut1_if1} | ${dut1}= | Next Interface
376 | | ${dut1_if2} | ${dut1}= | Next Interface
377 | | ${dut2_if1} | ${dut2}= | Next Interface
378 | | ${dut2_if2} | ${dut2}= | Next Interface
379 | | ${tg_if2} | ${tg}= | Next Interface
380 | | Set Suite Variable | ${tg}
381 | | Set Suite Variable | ${tg_if1}
382 | | Set Suite Variable | ${tg_if2}
383 | | Set Suite Variable | ${dut1}
384 | | Set Suite Variable | ${dut1_if1}
385 | | Set Suite Variable | ${dut1_if2}
386 | | Set Suite Variable | ${dut2}
387 | | Set Suite Variable | ${dut2_if1}
388 | | Set Suite Variable | ${dut2_if2}
389
390 | VPP interfaces in path are up in a 2-node circular topology
391 | | [Documentation]
392 | | ... | *Set UP state on VPP interfaces in path on nodes in 2-node circular
393 | | ... | topology.*
394 | | ...
395 | | Set Interface State | ${dut1} | ${dut1_if1} | up
396 | | Set Interface State | ${dut1} | ${dut1_if2} | up
397 | | Vpp Node Interfaces Ready Wait | ${dut1}
398
399 | VPP interfaces in path are up in a 3-node circular topology
400 | | [Documentation]
401 | | ... | *Set UP state on VPP interfaces in path on nodes in 3-node circular
402 | | ... | topology.*
403 | | ...
404 | | Set Interface State | ${dut1} | ${dut1_if1} | up
405 | | Set Interface State | ${dut1} | ${dut1_if2} | up
406 | | Set Interface State | ${dut2} | ${dut2_if1} | up
407 | | Set Interface State | ${dut2} | ${dut2_if2} | up
408 | | Vpp Node Interfaces Ready Wait | ${dut1}
409 | | Vpp Node Interfaces Ready Wait | ${dut2}
410
411 | IPv4 forwarding initialized in a 3-node circular topology
412 | | [Documentation]
413 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
414 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
415 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and
416 | | ... | /30 prefix on DUT1-DUT2 link. Set routing on both DUT nodes with
417 | | ... | prefix /24 and next hop of neighbour DUT interface IPv4 address.
418 | | ...
419 | | Set Interface State | ${dut1} | ${dut1_if1} | up
420 | | Set Interface State | ${dut1} | ${dut1_if2} | up
421 | | Set Interface State | ${dut2} | ${dut2_if1} | up
422 | | Set Interface State | ${dut2} | ${dut2_if2} | up
423 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
424 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
425 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
426 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
427 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
428 | | dut1_v4.set_arp | ${dut1_if2} | 1.1.1.2 | ${dut2_if1_mac}
429 | | dut2_v4.set_arp | ${dut2_if1} | 1.1.1.1 | ${dut1_if2_mac}
430 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
431 | | dut1_v4.set_ip | ${dut1_if1} | 10.10.10.1 | 24
432 | | dut1_v4.set_ip | ${dut1_if2} | 1.1.1.1 | 30
433 | | dut2_v4.set_ip | ${dut2_if1} | 1.1.1.2 | 30
434 | | dut2_v4.set_ip | ${dut2_if2} | 20.20.20.1 | 24
435 | | dut1_v4.set_route | 20.20.20.0 | 24 | 1.1.1.2 | ${dut1_if2}
436 | | dut2_v4.set_route | 10.10.10.0 | 24 | 1.1.1.1 | ${dut2_if1}
437 | | All Vpp Interfaces Ready Wait | ${nodes}
438
439 | Scale IPv4 forwarding initialized in a 3-node circular topology
440 | | [Documentation]
441 | | ... | Custom setup of IPv4 topology with scalability of ip routes on all
442 | | ... | DUT nodes in 3-node circular topology
443 | | ...
444 | | ... | *Arguments:*
445 | | ... | - ${count} - IP route count. Type: integer
446 | | ...
447 | | ... | *Return:*
448 | | ... | - No value returned
449 | | ...
450 | | ... | *Example:*
451 | | ...
452 | | ... | \| Scale IPv4 forwarding initialized in a 3-node circular topology \
453 | | ... | \| 100000 \|
454 | | [Arguments] | ${count}
455 | | Set Interface State | ${dut1} | ${dut1_if1} | up
456 | | Set Interface State | ${dut1} | ${dut1_if2} | up
457 | | Set Interface State | ${dut2} | ${dut2_if1} | up
458 | | Set Interface State | ${dut2} | ${dut2_if2} | up
459 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
460 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
461 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
462 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
463 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
464 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
465 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
466 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.1 | ${tg1_if2_mac}
467 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
468 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
469 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
470 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.2 | 30
471 | | Vpp Route Add | ${dut1} | 10.0.0.0 | 32 | 1.1.1.1 | ${dut1_if1}
472 | | ...           | count=${count}
473 | | Vpp Route Add | ${dut1} | 20.0.0.0 | 32 | 2.2.2.2 | ${dut1_if2}
474 | | ...           | count=${count}
475 | | Vpp Route Add | ${dut2} | 10.0.0.0 | 32 | 2.2.2.1 | ${dut2_if1}
476 | | ...           | count=${count}
477 | | Vpp Route Add | ${dut2} | 20.0.0.0 | 32 | 3.3.3.1 | ${dut2_if2}
478 | | ...           | count=${count}
479 | | All Vpp Interfaces Ready Wait | ${nodes}
480
481 | IPv4 forwarding with vhost initialized in a 3-node circular topology
482 | | [Documentation]
483 | | ... | Create vhost-user interfaces in VPP. Set UP state of all VPP
484 | | ... | interfaces in path on nodes in 3-node circular topology. Create 2
485 | | ... | FIB tables on each DUT with multipath routing. Assign pair of
486 | | ... | Physical and Virtual interfaces on both nodes to each FIB table.
487 | | ... | Setup IPv4 addresses with /30 prefix on DUT-TG links and /30 prefix
488 | | ... | on DUT1-DUT2 link. Set routing on all DUT nodes in all FIB tables
489 | | ... | with prefix /24 and next hop of neighbour IPv4 address. Setup
490 | | ... | ARP on all VPP interfaces.
491 | | ...
492 | | ... | *Arguments:*
493 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
494 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
495 | | ...
496 | | ... | *Return:*
497 | | ... | - No value returned
498 | | ...
499 | | ... | *Example:*
500 | | ...
501 | | ... | \| IPv4 forwarding with vhost initialized in a 3-node circular \
502 | | ... | topology \| /tmp/sock1 \| /tmp/sock2 \|
503 | | [Arguments] | ${sock1} | ${sock2}
504 | | VPP interfaces in path are up in a 3-node circular topology
505 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
506 | | ...                                                | ${sock1}
507 | | ...                                                | ${sock2}
508 | | ${dut1_vif1}= | Set Variable | ${vhost_if1}
509 | | ${dut1_vif2}= | Set Variable | ${vhost_if2}
510 | | Set Interface State | ${dut1} | ${dut1_vif1} | up
511 | | Set Interface State | ${dut1} | ${dut1_vif2} | up
512 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
513 | | ...                                                | ${sock1}
514 | | ...                                                | ${sock2}
515 | | ${dut2_vif1}= | Set Variable | ${vhost_if1}
516 | | ${dut2_vif2}= | Set Variable | ${vhost_if2}
517 | | Set Interface State | ${dut2} | ${dut2_vif1} | up
518 | | Set Interface State | ${dut2} | ${dut2_vif2} | up
519 | | ${dut1_vif1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif1}
520 | | ${dut1_vif2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif2}
521 | | ${dut1_if1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_if1}
522 | | ${dut1_if2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_if2}
523 | | ${dut2_vif1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif1}
524 | | ${dut2_vif2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif2}
525 | | ${dut2_if1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_if1}
526 | | ${dut2_if2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_if2}
527 | | Add fib table | ${dut1} | 20.20.20.0 | 24 | ${fib_table_1}
528 | | ... | via 4.4.4.2 sw_if_index ${dut1_vif1_idx} multipath
529 | | Add fib table | ${dut1} | 10.10.10.0 | 24 | ${fib_table_1}
530 | | ... | via 1.1.1.2 sw_if_index ${dut1_if1_idx} multipath
531 | | Add fib table | ${dut1} | 20.20.20.0 | 24 | ${fib_table_2}
532 | | ... | via 2.2.2.2 sw_if_index ${dut1_if2_idx} multipath
533 | | Add fib table | ${dut1} | 10.10.10.0 | 24 | ${fib_table_2}
534 | | ... | via 5.5.5.2 sw_if_index ${dut1_vif2_idx} multipath
535 | | Add fib table | ${dut2} | 10.10.10.0 | 24 | ${fib_table_1}
536 | | ... | via 2.2.2.1 sw_if_index ${dut2_if1_idx} multipath
537 | | Add fib table | ${dut2} | 20.20.20.0 | 24 | ${fib_table_1}
538 | | ... | via 4.4.4.1 sw_if_index ${dut2_vif1_idx} multipath
539 | | Add fib table | ${dut2} | 10.10.10.0 | 24 | ${fib_table_2}
540 | | ... | via 5.5.5.2 sw_if_index ${dut2_vif2_idx} multipath
541 | | Add fib table | ${dut2} | 20.20.20.0 | 24 | ${fib_table_2}
542 | | ... | via 3.3.3.2 sw_if_index ${dut2_if2_idx} multipath
543 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if1} | ${fib_table_1}
544 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif1} | ${fib_table_1}
545 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if2} | ${fib_table_2}
546 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif2} | ${fib_table_2}
547 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if1} | ${fib_table_1}
548 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif1} | ${fib_table_1}
549 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if2} | ${fib_table_2}
550 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif2} | ${fib_table_2}
551 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
552 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
553 | | IP addresses are set on interfaces | ${dut1} | ${dut1_vif1} | 4.4.4.1 | 30
554 | | IP addresses are set on interfaces | ${dut1} | ${dut1_vif2} | 5.5.5.1 | 30
555 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
556 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.1 | 30
557 | | IP addresses are set on interfaces | ${dut2} | ${dut2_vif1} | 4.4.4.1 | 30
558 | | IP addresses are set on interfaces | ${dut2} | ${dut2_vif2} | 5.5.5.1 | 30
559 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
560 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
561 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
562 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
563 | | ${dut1_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
564 | | ... | ${dut1_vif1_idx}
565 | | ${dut1_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
566 | | ... | ${dut1_vif2_idx}
567 | | ${dut2_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
568 | | ... | ${dut2_vif1_idx}
569 | | ${dut2_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
570 | | ... | ${dut2_vif2_idx}
571 | | Set Test Variable | ${dut1_vif1_mac}
572 | | Set Test Variable | ${dut1_vif2_mac}
573 | | Set Test Variable | ${dut2_vif1_mac}
574 | | Set Test Variable | ${dut2_vif2_mac}
575 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
576 | | ... | vrf=${fib_table_1}
577 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
578 | | ... | vrf=${fib_table_2}
579 | | Add arp on dut | ${dut1} | ${dut1_vif1} | 4.4.4.2 | 52:54:00:00:04:01
580 | | ... | vrf=${fib_table_1}
581 | | Add arp on dut | ${dut1} | ${dut1_vif2} | 5.5.5.2 | 52:54:00:00:04:02
582 | | ... | vrf=${fib_table_2}
583 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
584 | | ... | vrf=${fib_table_1}
585 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.2 | ${tg1_if2_mac}
586 | | ... | vrf=${fib_table_2}
587 | | Add arp on dut | ${dut2} | ${dut2_vif1} | 4.4.4.2 | 52:54:00:00:04:01
588 | | ... | vrf=${fib_table_1}
589 | | Add arp on dut | ${dut2} | ${dut2_vif2} | 5.5.5.2 | 52:54:00:00:04:02
590 | | ... | vrf=${fib_table_2}
591 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut1_vif1}
592 | | ... | vrf=${fib_table_1}
593 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut1_if1}
594 | | ... | vrf=${fib_table_1}
595 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 2.2.2.2 | ${dut1_if2}
596 | | ... | vrf=${fib_table_2}
597 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut1_vif2}
598 | | ... | vrf=${fib_table_2}
599 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut2_vif1}
600 | | ... | vrf=${fib_table_1}
601 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 2.2.2.1 | ${dut2_if1}
602 | | ... | vrf=${fib_table_1}
603 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 3.3.3.2 | ${dut2_if2}
604 | | ... | vrf=${fib_table_2}
605 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut2_vif2}
606 | | ... | vrf=${fib_table_2}
607
608 | IPv4 policer 2r3c-${t} initialized in a 3-node circular topology
609 | | [Documentation]
610 | | ... | Setup of 2r3c color-aware or color-blind policer with dst ip match
611 | | ... | on all DUT nodes in 3-node circular topology. Policer is applied on
612 | | ... | links TG - DUT1 and DUT2 - TG.
613 | | ...
614 | | ${dscp}= | DSCP AF22
615 | | Policer Set Name | policer1
616 | | Policer Set CIR | ${cir}
617 | | Policer Set EIR | ${eir}
618 | | Policer Set CB | ${cb}
619 | | Policer Set EB | ${eb}
620 | | Policer Set Rate Type pps
621 | | Policer Set Round Type Closest
622 | | Policer Set Type 2R3C 2698
623 | | Policer Set Conform Action Transmit
624 | | Policer Set Exceed Action Mark and Transmit | ${dscp}
625 | | Policer Set Violate Action Transmit
626 | | Policer Enable Color Aware
627 | | Run Keyword If | ${t} == 'ca' | Policer Enable Color Aware
628 | | Policer Classify Set Precolor Exceed
629 | | Policer Set Node | ${dut1}
630 | | Policer Classify Set Interface | ${dut1_if1}
631 | | Policer Classify Set Match IP | 20.20.20.2 | ${False}
632 | | Policer Set Configuration
633 | | Policer Set Node | ${dut2}
634 | | Policer Classify Set Interface | ${dut2_if2}
635 | | Policer Classify Set Match IP | 10.10.10.2 | ${False}
636 | | Policer Set Configuration
637
638 | IPv6 forwarding initialized in a 3-node circular topology
639 | | [Documentation]
640 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
641 | | ... | topology. Get the interface MAC addresses and setup neighbour on all
642 | | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all
643 | | ... | interfaces. Set routing on both DUT nodes with prefix /64 and
644 | | ... | next hop of neighbour DUT interface IPv6 address.
645 | | ...
646 | | ${prefix}= | Set Variable | 64
647 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
648 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
649 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
650 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
651 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix}
652 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:3::1 | ${prefix}
653 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:3::2 | ${prefix}
654 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:2::1 | ${prefix}
655 | | Vpp nodes ra suppress link layer | ${nodes}
656 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
657 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
658 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:3::2 | ${dut2_if1_mac}
659 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac}
660 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2}
661 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1}
662
663 | Scale IPv6 forwarding initialized in a 3-node circular topology
664 | | [Documentation]
665 | | ... | Custom setup of IPv6 topology with scalability of ip routes on all
666 | | ... | DUT nodes in 3-node circular topology
667 | | ...
668 | | ... | *Arguments:*
669 | | ... | - ${count} - IP route count. Type: integer
670 | | ...
671 | | ... | *Return:*
672 | | ... | - No value returned
673 | | ...
674 | | ... | *Example:*
675 | | ...
676 | | ... | \| Scale IPv6 forwarding initialized in a 3-node circular topology \
677 | | ... | \| 100000 \|
678 | | [Arguments] | ${count}
679 | | ${subn_prefix}= | Set Variable | 64
680 | | ${host_prefix}= | Set Variable | 128
681 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:3::1 | ${subn_prefix}
682 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:4::1 | ${subn_prefix}
683 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:4::2 | ${subn_prefix}
684 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:5::1 | ${subn_prefix}
685 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
686 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
687 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
688 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
689 | | Vpp nodes ra suppress link layer | ${nodes}
690 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:3::2 | ${tg1_if1_mac}
691 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:4::2 | ${dut2_if1_mac}
692 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:4::1 | ${dut1_if2_mac}
693 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:5::2 | ${tg1_if2_mac}
694 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${host_prefix} | 2001:4::2
695 | | ...           | interface=${dut1_if2} | count=${count}
696 | | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
697 | | ...           | interface=${dut1_if1} | count=${count}
698 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
699 | | ...           | interface=${dut2_if2} | count=${count}
700 | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
701 | | ...           | interface=${dut2_if1} | count=${count}
702
703 | IPv6 iAcl whitelist initialized in a 3-node circular topology
704 | | [Documentation]
705 | | ... | Creates classify L3 table on DUTs. IPv6 iAcl security whitelist
706 | | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
707 | | ...
708 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
709 | | ... | ${dut1} | ip6 | dst
710 | | And Vpp Configures Classify Session L3
711 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
712 | | ... | ip6 | dst | 2001:2::2
713 | | And Vpp Enable Input Acl Interface
714 | | ... | ${dut1} | ${dut1_if1} | ip6 | ${table_idx}
715 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
716 | | ... | ${dut2} | ip6 | dst
717 | | And Vpp Configures Classify Session L3
718 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
719 | | ... | ip6 | dst | 2001:1::2
720 | | And Vpp Enable Input Acl Interface
721 | | ... | ${dut2} | ${dut2_if2} | ip6 | ${table_idx}
722
723 | L2 xconnect initialized in a 3-node circular topology
724 | | [Documentation]
725 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
726 | | ... | each DUT. Interfaces are brought up.
727 | | ... |
728 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
729 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
730 | | All Vpp Interfaces Ready Wait | ${nodes}
731
732 | L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
733 | | [Documentation]
734 | | ... | Setup L2 xconnect topology with VXLANoIPv4 by cross connecting
735 | | ... | physical and vxlan interfaces on each DUT. All interfaces are brought
736 | | ... | up. IPv4 addresses with prefix /24 are configured on interfaces
737 | | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as
738 | | ... | interfaces.
739 | | ...
740 | | VPP interfaces in path are up in a 3-node circular topology
741 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1
742 | | ...                                | 24
743 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2
744 | | ...                                | 24
745 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
746 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
747 | | Add arp on dut | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac}
748 | | Add arp on dut | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac}
749 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
750 | | ...             | 172.16.0.1 | 172.16.0.2
751 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1s_vxlan}
752 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
753 | | ...             | 172.16.0.2 | 172.16.0.1
754 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${dut2s_vxlan}
755
756 | L2 xconnect with Vhost-User initialized in a 3-node circular topology
757 | | [Documentation]
758 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross
759 | | ... | connect each Vhost interface with one physical interface.
760 | | ...
761 | | ... | *Arguments:*
762 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
763 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
764 | | ...
765 | | ... | *Example:*
766 | | ...
767 | | ... | \| L2 xconnect with Vhost-User initialized in a 3-node \
768 | | ... |    circular topology \| /tmp/sock1 \| /tmp/sock2 \|
769 | | [Arguments] | ${sock1} | ${sock2}
770 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
771 | | ...                                                | ${sock1}
772 | | ...                                                | ${sock2}
773 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${vhost_if1}
774 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if2} | ${vhost_if2}
775 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
776 | | ...                                                | ${sock1}
777 | | ...                                                | ${sock2}
778 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${vhost_if1}
779 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${vhost_if2}
780 | | All Vpp Interfaces Ready Wait | ${nodes}
781
782 | L2 bridge domain initialized in a 3-node circular topology
783 | | [Documentation]
784 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
785 | | ... | that is created automatically with index 1. Learning is enabled.
786 | | ... | Interfaces are brought up.
787 | | ... |
788 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
789 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
790 | | All Vpp Interfaces Ready Wait | ${nodes}
791
792 | L2 bridge domains with Vhost-User initialized in a 3-node circular topology
793 | | [Documentation]
794 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
795 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
796 | | ... | with physical inteface.
797 | | ...
798 | | ... | *Arguments:*
799 | | ... | - bd_id1 - Bridge domain ID. Type: integer
800 | | ... | - bd_id2 - Bridge domain ID. Type: integer
801 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
802 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
803 | | ...
804 | | ... | *Example:*
805 | | ...
806 | | ... | \| L2 bridge domains with Vhost-User initialized in a 3-node \
807 | | ... |    circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
808 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
809 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
810 | | ...                                                | ${sock1}
811 | | ...                                                | ${sock2}
812 | | Interface is added to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
813 | | Interface is added to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
814 | | Interface is added to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
815 | | Interface is added to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
816 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
817 | | ...                                                | ${sock1}
818 | | ...                                                | ${sock2}
819 | | Interface is added to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id1}
820 | | Interface is added to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
821 | | Interface is added to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
822 | | Interface is added to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
823 | | All Vpp Interfaces Ready Wait | ${nodes}
824
825 2-node Performance Suite Setup with DUT's NIC model
826 | | [Documentation]
827 | | ... | Suite preparation phase that setup default startup configuration of
828 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
829 | | ... | variables used in test cases based on interface model provided as an
830 | | ... | argument. Initializes traffic generator.
831 | | ...
832 | | ... | *Arguments:*
833 | | ... | - topology_type - Topology type. Type: string
834 | | ... | - nic_model - Interface model. Type: string
835 | | ...
836 | | ... | *Example:*
837 | | ...
838 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
839 | | [Arguments] | ${topology_type} | ${nic_model}
840 | | Setup default startup configuration of VPP on all DUTs
841 | | Show vpp version on all DUTs
842 | | Setup performance rate Variables
843 | | Setup performance global Variables
844 | | 2-node circular Topology Variables Setup with DUT interface model
845 | | ... | ${nic_model}
846 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
847 | | ...                          | ${dut1} | ${dut1_if1}
848 | | ...                          | ${dut1} | ${dut1_if2}
849 | | ...                          | ${topology_type}
850
851 3-node Performance Suite Setup with DUT's NIC model
852 | | [Documentation]
853 | | ... | Suite preparation phase that setup default startup configuration of
854 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
855 | | ... | variables used in test cases based on interface model provided as an
856 | | ... | argument. Initializes traffic generator.
857 | | ...
858 | | ... | *Arguments:*
859 | | ... | - topology_type - Topology type. Type: string
860 | | ... | - nic_model - Interface model. Type: string
861 | | ...
862 | | ... | *Example:*
863 | | ...
864 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
865 | | [Arguments] | ${topology_type} | ${nic_model}
866 | | Setup default startup configuration of VPP on all DUTs
867 | | Show vpp version on all DUTs
868 | | Setup performance rate Variables
869 | | Setup performance global Variables
870 | | 3-node circular Topology Variables Setup with DUT interface model
871 | | ... | ${nic_model}
872 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
873 | | ...                          | ${dut1} | ${dut1_if1}
874 | | ...                          | ${dut2} | ${dut2_if2}
875 | | ...                          | ${topology_type}
876
877 | 3-node Performance Suite Teardown
878 | | [Documentation]
879 | | ... | Suite teardown phase with traffic generator teardown.
880 | | ...
881 | | Teardown traffic generator | ${tg}
882
883 | Find NDR using linear search and pps
884 | | [Documentation]
885 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
886 | | ...
887 | | ... | *Arguments:*
888 | | ... | - framesize - L2 Frame Size [B]. Type: integer
889 | | ... | - start_rate - Initial start rate [pps]. Type: float
890 | | ... | - step_rate - Step of linear search [pps]. Type: float
891 | | ... | - topology_type - Topology type. Type: string
892 | | ... | - min_rate - Lower limit of search [pps]. Type: float
893 | | ... | - max_rate - Upper limit of search [pps]. Type: float
894 | | ...
895 | | ... | *Return:*
896 | | ... | - No value returned
897 | | ...
898 | | ... | *Example:*
899 | | ...
900 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \| \
901 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952
902 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
903 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
904 | | ${duration}= | Set Variable | 10
905 | | Set Duration | ${duration}
906 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
907 | | Set Search Linear Step | ${step_rate}
908 | | Set Search Frame Size | ${framesize}
909 | | Set Search Rate Type pps
910 | | Linear Search | ${start_rate} | ${topology_type}
911 | | ${rate_per_stream} | ${lat}= | Verify Search Result
912 | | ${tmp}= | Create List | 100%NDR | ${lat}
913 | | ${latency}= | Create List | ${tmp}
914 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
915 | | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p}
916 | | ...                               | ${framesize} | ${topology_type}
917 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
918 | | Append To List | ${latency} | ${tmp}
919 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
920 | | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p}
921 | | ...                               | ${framesize} | ${topology_type}
922 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
923 | | Append To List | ${latency} | ${tmp}
924 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
925 | | ...                          | ${latency}
926 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
927 | | ...                              | ${framesize} | ${topology_type}
928 | | ...                              | fail_on_loss=${False}
929
930 | Find PDR using linear search and pps
931 | | [Documentation]
932 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
933 | | ... | with PDR threshold and type specified by parameter.
934 | | ...
935 | | ... | *Arguments:*
936 | | ... | - framesize - L2 Frame Size [B]. Type: integer
937 | | ... | - start_rate - Initial start rate [pps]. Type: float
938 | | ... | - step_rate - Step of linear search [pps]. Type: float
939 | | ... | - topology_type - Topology type. Type: string
940 | | ... | - min_rate - Lower limit of search [pps]. Type: float
941 | | ... | - max_rate - Upper limit of search [pps]. Type: float
942 | | ... | - loss_acceptance - Accepted loss during search. Type: float
943 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
944 | | ...
945 | | ... | *Example:*
946 | | ...
947 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
948 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
949 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
950 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
951 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
952 | | ${duration}= | Set Variable | 10
953 | | Set Duration | ${duration}
954 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
955 | | Set Search Linear Step | ${step_rate}
956 | | Set Search Frame Size | ${framesize}
957 | | Set Search Rate Type pps
958 | | Set Loss Acceptance | ${loss_acceptance}
959 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
960 | | ...            | Set Loss Acceptance Type Percentage
961 | | Linear Search | ${start_rate} | ${topology_type}
962 | | ${rate_per_stream} | ${latency}= | Verify Search Result
963 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
964 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
965 | | ...                          | ${latency}
966 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
967 | | ...                                   | ${framesize} | ${topology_type}
968 | | ...                                   | ${loss_acceptance}
969 | | ...                                   | ${loss_acceptance_type}
970 | | ...                                   | fail_on_loss=${False}
971
972 | Find NDR using binary search and pps
973 | | [Documentation]
974 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
975 | | ...
976 | | ... | *Arguments:*
977 | | ... | - framesize - L2 Frame Size [B]. Type: integer
978 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
979 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
980 | | ... | - topology_type - Topology type. Type: string
981 | | ... | - min_rate - Lower limit of search [pps]. Type: float
982 | | ... | - max_rate - Upper limit of search [pps]. Type: float
983 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
984 | | ...
985 | | ... | *Example:*
986 | | ...
987 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
988 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
989 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
990 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
991 | | ${duration}= | Set Variable | 10
992 | | Set Duration | ${duration}
993 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
994 | | Set Search Frame Size | ${framesize}
995 | | Set Search Rate Type pps
996 | | Set Binary Convergence Threshold | ${threshold}
997 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
998 | | ${rate_per_stream} | ${lat}= | Verify Search Result
999 | | ${tmp}= | Create List | 100%NDR | ${lat}
1000 | | ${latency}= | Create List | ${tmp}
1001 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
1002 | | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p}
1003 | | ...                               | ${framesize} | ${topology_type}
1004 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
1005 | | Append To List | ${latency} | ${tmp}
1006 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
1007 | | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p}
1008 | | ...                               | ${framesize} | ${topology_type}
1009 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
1010 | | Append To List | ${latency} | ${tmp}
1011 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1012 | | ...                          | ${latency}
1013 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1014 | | ...                              | ${framesize} | ${topology_type}
1015 | | ...                              | fail_on_loss=${False}
1016
1017 | Find PDR using binary search and pps
1018 | | [Documentation]
1019 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
1020 | | ... | with PDR threshold and type specified by parameter.
1021 | | ...
1022 | | ... | *Arguments:*
1023 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1024 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
1025 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
1026 | | ... | - topology_type - Topology type. Type: string
1027 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1028 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1029 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1030 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1031 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1032 | | ...
1033 | | ... | *Example:*
1034 | | ...
1035 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
1036 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
1037 | | ... | \| percentage
1038 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
1039 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1040 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1041 | | ${duration}= | Set Variable | 10
1042 | | Set Duration | ${duration}
1043 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1044 | | Set Search Frame Size | ${framesize}
1045 | | Set Search Rate Type pps
1046 | | Set Loss Acceptance | ${loss_acceptance}
1047 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1048 | | ...            | Set Loss Acceptance Type Percentage
1049 | | Set Binary Convergence Threshold | ${threshold}
1050 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
1051 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1052 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1053 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1054 | | ...                          | ${latency}
1055 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1056 | | ...                                   | ${framesize} | ${topology_type}
1057 | | ...                                   | ${loss_acceptance}
1058 | | ...                                   | ${loss_acceptance_type}
1059 | | ...                                   | fail_on_loss=${False}
1060
1061 | Find NDR using combined search and pps
1062 | | [Documentation]
1063 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1064 | | ... | non drop rate.
1065 | | ...
1066 | | ... | *Arguments:*
1067 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1068 | | ... | - start_rate - Initial start rate [pps]. Type: float
1069 | | ... | - step_rate - Step of linear search [pps]. Type: float
1070 | | ... | - topology_type - Topology type. Type: string
1071 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1072 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1073 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1074 | | ...
1075 | | ... | *Example:*
1076 | | ...
1077 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
1078 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
1079 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1080 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1081 | | ${duration}= | Set Variable | 10
1082 | | Set Duration | ${duration}
1083 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1084 | | Set Search Linear Step | ${step_rate}
1085 | | Set Search Frame Size | ${framesize}
1086 | | Set Search Rate Type pps
1087 | | Set Binary Convergence Threshold | ${threshold}
1088 | | Combined Search | ${start_rate} | ${topology_type}
1089 | | ${rate_per_stream} | ${lat}= | Verify Search Result
1090 | | ${tmp}= | Create List | 100%NDR | ${lat}
1091 | | ${latency}= | Create List | ${tmp}
1092 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
1093 | | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p}
1094 | | ...                               | ${framesize} | ${topology_type}
1095 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
1096 | | Append To List | ${latency} | ${tmp}
1097 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
1098 | | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p}
1099 | | ...                               | ${framesize} | ${topology_type}
1100 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
1101 | | Append To List | ${latency} | ${tmp}
1102 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1103 | | ...                          | ${latency}
1104 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1105 | | ...                              | ${framesize} | ${topology_type}
1106 | | ...                              | fail_on_loss=${False}
1107
1108 | Find PDR using combined search and pps
1109 | | [Documentation]
1110 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1111 | | ... | partial drop rate with PDR threshold and type specified by parameter.
1112 | | ...
1113 | | ... | *Arguments:*
1114 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1115 | | ... | - start_rate - Initial start rate [pps]. Type: float
1116 | | ... | - step_rate - Step of linear search [pps]. Type: float
1117 | | ... | - topology_type - Topology type. Type: string
1118 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1119 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1120 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1121 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1122 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1123 | | ...
1124 | | ... | *Example:*
1125 | | ...
1126 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
1127 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
1128 | | ... | \| percentage
1129 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1130 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1131 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1132 | | ${duration}= | Set Variable | 10
1133 | | Set Duration | ${duration}
1134 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1135 | | Set Search Linear Step | ${step_rate}
1136 | | Set Search Frame Size | ${framesize}
1137 | | Set Search Rate Type pps
1138 | | Set Loss Acceptance | ${loss_acceptance}
1139 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1140 | | ...            | Set Loss Acceptance Type Percentage
1141 | | Set Binary Convergence Threshold | ${threshold}
1142 | | Combined Search | ${start_rate} | ${topology_type}
1143 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1144 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1145 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1146 | | ...                          | ${latency}
1147 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1148 | | ...                                   | ${framesize} | ${topology_type}
1149 | | ...                                   | ${loss_acceptance}
1150 | | ...                                   | ${loss_acceptance_type}
1151 | | ...                                   | fail_on_loss=${False}
1152
1153 | Display result of NDR search
1154 | | [Documentation]
1155 | | ... | Display result of NDR search in packet per seconds (total and per
1156 | | ... | stream) and Gbps total bandwidth with untagged packet.
1157 | | ... | Througput is calculated as:
1158 | | ... | Measured rate per stream * Total number of streams
1159 | | ... | Bandwidth is calculated as:
1160 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1161 | | ...
1162 | | ... | *Arguments:*
1163 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1164 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1165 | | ... | - nr_streams - Total number of streams. Type: integer
1166 | | ... | - latency - Latency stats. Type: dictionary
1167 | | ...
1168 | | ... | *Example:*
1169 | | ...
1170 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
1171 | | ... | \| [100%NDR, [10/10/10, 1/2/3]] \|
1172 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1173 | | ...         | ${latency}
1174 | | ${framesize}= | Get Frame Size | ${framesize}
1175 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1176 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1177 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1178 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1179 | | ...              | append=yes
1180 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1181 | | ...              | append=yes
1182 | | Set Test Message | ${\n}LATENCY usec [min/avg/max] | append=yes
1183 | | :FOR | ${lat} | IN | @{latency}
1184 | | | Set Test Message | ${\n}LAT_${lat[0]}: ${lat[1]} | append=yes
1185
1186 | Display result of PDR search
1187 | | [Documentation]
1188 | | ... | Display result of PDR search in packet per seconds (total and per
1189 | | ... | stream) and Gbps total bandwidth with untagged packet.
1190 | | ... | Througput is calculated as:
1191 | | ... | Measured rate per stream * Total number of streams
1192 | | ... | Bandwidth is calculated as:
1193 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1194 | | ...
1195 | | ... | *Arguments:*
1196 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1197 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1198 | | ... | - nr_streams - Total number of streams. Type: integer
1199 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1200 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1201 | | ... | - latency - Latency stats. Type: dictionary
1202 | | ...
1203 | | ... | *Example:*
1204 | | ...
1205 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
1206 | | ... | \| percentage \| (0, 10/10/10) \|
1207 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1208 | | ...         | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
1209 | | ${framesize}= | Get Frame Size | ${framesize}
1210 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1211 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1212 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1213 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1214 | | ...              | append=yes
1215 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1216 | | ...              | append=yes
1217 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1218 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1219 | | ...                | append=yes
1220 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
1221 | | ...              | append=yes
1222
1223 | Measure latency pps
1224 | | [Documentation]
1225 | | ... | Send traffic at specified rate. Measure min/avg/max latency
1226 | | ...
1227 | | ... | *Arguments:*
1228 | | ... | - duration - Duration of traffic run [s]. Type: integer
1229 | | ... | - rate - Rate for sending packets. Type: integer
1230 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1231 | | ... | - topology_type - Topology type. Type: string
1232 | | ...
1233 | | ... | *Example:*
1234 | | ...
1235 | | ... | \| Measure latency \| 10 \| 4.0 \| 64 \| 3-node-IPv4
1236 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1237 | | Return From Keyword If | ${rate} <= 10000 | ${-1}
1238 | | Clear all counters on all DUTs
1239 | | Send traffic on tg | ${duration} | ${rate}pps | ${framesize}
1240 | | ...                | ${topology_type} | warmup_time=0
1241 | | Show statistics on all DUTs
1242 | | Run keyword and return | Get latency
1243
1244 | Traffic should pass with no loss
1245 | | [Documentation]
1246 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
1247 | | ... | evaluation.
1248 | | ...
1249 | | ... | *Arguments:*
1250 | | ... | - duration - Duration of traffic run [s]. Type: integer
1251 | | ... | - rate - Rate for sending packets. Type: string
1252 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1253 | | ... | - topology_type - Topology type. Type: string
1254 | | ...
1255 | | ... | *Example:*
1256 | | ...
1257 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
1258 | | ... | \| 3-node-IPv4
1259 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1260 | | ...         | ${fail_on_loss}=${True}
1261 | | Clear and show runtime counters with running traffic | ${duration}
1262 | | ...  | ${rate} | ${framesize} | ${topology_type}
1263 | | Clear all counters on all DUTs
1264 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1265 | | ...                | ${topology_type} | warmup_time=0
1266 | | Show statistics on all DUTs
1267 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
1268
1269 | Traffic should pass with partial loss
1270 | | [Documentation]
1271 | | ... | Send traffic at specified rate. Partial packet loss is accepted
1272 | | ... | within loss acceptance value specified as argument.
1273 | | ...
1274 | | ... | *Arguments:*
1275 | | ... | - duration - Duration of traffic run [s]. Type: integer
1276 | | ... | - rate - Rate for sending packets. Type: string
1277 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1278 | | ... | - topology_type - Topology type. Type: string
1279 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1280 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1281 | | ...
1282 | | ... | *Example:*
1283 | | ...
1284 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1285 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1286 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1287 | | ...         | ${loss_acceptance} | ${loss_acceptance_type}
1288 | | ...         | ${fail_on_loss}=${True}
1289 | | Clear and show runtime counters with running traffic | ${duration}
1290 | | ...  | ${rate} | ${framesize} | ${topology_type}
1291 | | Clear all counters on all DUTs
1292 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1293 | | ...                | ${topology_type} | warmup_time=0
1294 | | Show statistics on all DUTs
1295 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
1296 | | ...            | ${loss_acceptance} | ${loss_acceptance_type}
1297
1298 | Clear and show runtime counters with running traffic
1299 | | [Documentation]
1300 | | ... | Start traffic at specified rate then clear runtime counters on all
1301 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
1302 | | ... | on all DUTs. Finally stop traffic
1303 | | ...
1304 | | ... | *Arguments:*
1305 | | ... | - duration - Duration of traffic run [s]. Type: integer
1306 | | ... | - rate - Rate for sending packets. Type: string
1307 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1308 | | ... | - topology_type - Topology type. Type: string
1309 | | ...
1310 | | ... | *Example:*
1311 | | ...
1312 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1313 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1314 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1315 | | Send traffic on tg | -1 | ${rate} | ${framesize}
1316 | | ...                | ${topology_type} | warmup_time=0 | async_call=${True}
1317 | | ...                | latency=${False}
1318 | | Clear runtime counters on all DUTs
1319 | | Sleep | ${duration}
1320 | | Show runtime counters on all DUTs
1321 | | Stop traffic on tg
1322
1323 | Add PCI devices to DUTs from 3-node single link topology
1324 | | ${dut1_if1_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if1}
1325 | | ${dut1_if2_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if2}
1326 | | ${dut2_if1_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if1}
1327 | | ${dut2_if2_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if2}
1328 | | Add PCI device | ${dut1} | ${dut1_if1_pci} | ${dut1_if2_pci}
1329 | | Add PCI device | ${dut2} | ${dut2_if1_pci} | ${dut2_if2_pci}
1330
1331 | Guest VM with dpdk-testpmd connected via vhost-user is setup
1332 | | [Documentation]
1333 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1334 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1335 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1336 | | ... | dedicated to io) mem-channel=4, txq/rxq=256, burst=64,
1337 | | ... | disable-hw-vlan, disable-rss, driver usr/lib/librte_pmd_virtio.so
1338 | | ... | and fwd mode is io.
1339 | | ...
1340 | | ... | *Arguments:*
1341 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1342 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1343 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1344 | | ... | - vm_name - QemuUtil instance name. Type: string
1345 | | ...
1346 | | ... | *Example:*
1347 | | ...
1348 | | ... | \| Guest VM with dpdk-testpmd connected via vhost-user is setup \
1349 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1350 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1351 | | Import Library | resources.libraries.python.QemuUtils
1352 | | ...            | WITH NAME | ${vm_name}
1353 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1354 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1355 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1356 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1357 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1358 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1359 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1360 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1361 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1362 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1363 | | ...                | eal_mem_channels=4
1364 | | ...                | pmd_fwd_mode=io
1365 | | ...                | pmd_disable_hw_vlan=${True}
1366 | | ...                | pmd_disable_rss=${True}
1367 | | Return From Keyword | ${vm}
1368
1369 | Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
1370 | | [Documentation]
1371 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1372 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1373 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1374 | | ... | dedicated to io) mem-channel=4, txq/rxq=256, burst=64,
1375 | | ... | disable-hw-vlan, disable-rss, driver usr/lib/librte_pmd_virtio.so
1376 | | ... | and fwd mode is mac rewrite.
1377 | | ...
1378 | | ... | *Arguments:*
1379 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1380 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1381 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1382 | | ... | - vm_name - QemuUtil instance name. Type: string
1383 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
1384 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
1385 | | ...
1386 | | ... | *Example:*
1387 | | ...
1388 | | ... | \| Guest VM with dpdk-testpmd for Vhost L2BD forwarding is setup \
1389 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
1390 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \|
1391 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1392 | | ...         | ${eth0_mac} | ${eth1_mac}
1393 | | Import Library | resources.libraries.python.QemuUtils
1394 | | ...            | WITH NAME | ${vm_name}
1395 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1396 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1397 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1398 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1399 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1400 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1401 | | Run keyword | ${vm_name}.Qemu Set Disk Image
1402 | | ...         | /var/lib/vm/csit-nested-1.3.img
1403 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1404 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1405 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1406 | | ...                | eal_mem_channels=4
1407 | | ...                | pmd_fwd_mode=mac
1408 | | ...                | pmd_eth_peer_0=0,${eth0_mac}
1409 | | ...                | pmd_eth_peer_1=1,${eth1_mac}
1410 | | ...                | pmd_disable_hw_vlan=${True}
1411 | | ...                | pmd_disable_rss=${True}
1412 | | Return From Keyword | ${vm}
1413
1414 | Guest VM with Linux Bridge connected via vhost-user is setup
1415 | | [Documentation]
1416 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1417 | | ... | linux bridge. Qemu Guest is using 3 cores pinned to physical cores 5,
1418 | | ... | 6, 7 and 2048M.
1419 | | ...
1420 | | ... | *Arguments:*
1421 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1422 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1423 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1424 | | ... | - vm_name - QemuUtil instance name. Type: string
1425 | | ...
1426 | | ... | *Example:*
1427 | | ...
1428 | | ... | \| Guest VM with Linux Bridge connected via vhost-user is setup \
1429 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1430 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1431 | | Import Library | resources.libraries.python.QemuUtils
1432 | | ...            | WITH NAME | ${vm_name}
1433 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1434 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1435 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1436 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1437 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1438 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1439 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1440 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1441 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1442 | | ${br}= | Set Variable | br0
1443 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
1444 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
1445 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
1446 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
1447 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
1448 | | Set Interface State | ${vm} | ${br} | up | if_type=name
1449 | | Return From Keyword | ${vm}
1450
1451 | Guest VM with dpdk-testpmd Teardown
1452 | | [Documentation]
1453 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
1454 | | ... | Argument is dictionary of all qemu nodes running with its names.
1455 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
1456 | | ... |
1457 | | ... | *Arguments:*
1458 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1459 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1460 | | ...
1461 | | ... | *Example:*
1462 | | ...
1463 | | ... | \| Guest VM with dpdk-testpmd Teardown \| ${node['DUT1']} \
1464 | | ... | \| ${dut_vm_refs} \|
1465 | | ...
1466 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1467 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1468 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1469 | | | Dpdk Testpmd Stop | ${vm}
1470 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1471 | | | Run Keyword | ${vm_name}.Qemu Kill
1472 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1473
1474 | Guest VM Teardown
1475 | | [Documentation]
1476 | | ... | Stop all qemu processes running on ${dut_node}.
1477 | | ... | Argument is dictionary of all qemu nodes running with its names.
1478 | | ... |
1479 | | ... | *Arguments:*
1480 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1481 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1482 | | ...
1483 | | ... | *Example:*
1484 | | ...
1485 | | ... | \| Guest VM Teardown \| ${node['DUT1']} \
1486 | | ... | \| ${dut_vm_refs} \|
1487 | | ...
1488 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1489 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1490 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1491 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1492 | | | Run Keyword | ${vm_name}.Qemu Kill
1493 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1494
1495 | Lisp IPv4 forwarding initialized in a 3-node circular topology
1496 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
1497 | | ...             | Don`t set route.
1498 | | ...
1499 | | ... | *Arguments:*
1500 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1501 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1502 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1503 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1504 | | ... | -${duts_prefix} - ip prefix. Type: int
1505 | | ...
1506 | | ... | *Return:*
1507 | | ... | - No value returned
1508 | | ...
1509 | | ... | *Example:*
1510 | | ... | \| Lisp IPv4 forwarding initialized in a 3-node circular topology \
1511 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1512 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1513 | | ...
1514 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1515 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1516 | | ...         | ${duts_prefix}
1517 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1518 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1519 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1520 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1521 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1522 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1523 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1524 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1525 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1526 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_address} | ${dut2_if1_mac}
1527 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_address} | ${dut1_if2_mac}
1528 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1529 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_address} | ${duts_prefix}
1530 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_address} | ${duts_prefix}
1531 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_address} | ${duts_prefix}
1532 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_address} | ${duts_prefix}
1533 | | All Vpp Interfaces Ready Wait | ${nodes}
1534
1535 | Lisp IPv6 forwarding initialized in a 3-node circular topology
1536 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
1537 | | ...             | Don`t set route.
1538 | | ...
1539 | | ... | *Arguments:*
1540 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1541 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1542 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1543 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1544 | | ... | -${duts_prefix} - ip prefix. Type: int
1545 | | ...
1546 | | ... | *Return:*
1547 | | ... | - No value returned
1548 | | ...
1549 | | ... | *Example:*
1550 | | ... | \| Lisp IPv6 forwarding initialized in a 3-node circular topology \
1551 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1552 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1553 | | ...
1554 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1555 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1556 | | ...         | ${prefix}
1557 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1558 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1559 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1560 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1561 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
1562 | | ...                  | ${prefix}
1563 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
1564 | | ...                  | ${prefix}
1565 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
1566 | | ...                  | ${prefix}
1567 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
1568 | | ...                  | ${prefix}
1569 | | Vpp nodes ra suppress link layer | ${nodes}
1570 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2
1571 | | ...             | ${tg1_if1_mac}
1572 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2
1573 | | ...             | ${tg1_if2_mac}
1574 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
1575 | | ...             | ${dut2_if1_mac}
1576 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
1577 | | ...             | ${dut1_if2_mac}
1578
1579 | Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
1580 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1581 | | ...             | Don`t set route.
1582 | | ...
1583 | | ... | *Arguments:*
1584 | | ... | -${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
1585 | | ... |                             Type: string
1586 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1587 | | ... | -${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
1588 | | ... |                             Type: string
1589 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1590 | | ... | -${prefix4} - IPv4 prefix. Type: int
1591 | | ... | -${prefix6} - IPv6 prefix. Type: int
1592 | | ...
1593 | | ... | *Return:*
1594 | | ... | - No value returned
1595 | | ...
1596 | | ... | *Example:*
1597 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology \
1598 | | ... | \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
1599 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
1600 | | ... | \| ${prefix4} \| ${prefix6} \|
1601 | | ...
1602 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
1603 | | ...         | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
1604 | | ...         | ${prefix4} | ${prefix6}
1605 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1606 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1607 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1608 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1609 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1610 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1611 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1612 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1613 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_ip4_address} | ${prefix4}
1614 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
1615 | | ...                  | ${prefix6}
1616 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
1617 | | ...                  | ${prefix6}
1618 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_ip4_address} | ${prefix4}
1619 | | Vpp nodes ra suppress link layer | ${nodes}
1620 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1621 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1622 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
1623 | | ...             | ${dut2_if1_mac}
1624 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
1625 | | ...             | ${dut1_if2_mac}
1626
1627 | Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology
1628 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1629 | | ...             | Don`t set route.
1630 | | ...
1631 | | ... | *Arguments:*
1632 | | ... | -${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
1633 | | ... |                             Type: string
1634 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1635 | | ... | -${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
1636 | | ... |                             Type: string
1637 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1638 | | ... | -${prefix4} - IPv4 prefix. Type: int
1639 | | ... | -${prefix6} - IPv6 prefix. Type: int
1640 | | ...
1641 | | ... | *Return:*
1642 | | ... | - No value returned
1643 | | ...
1644 | | ... | *Example:*
1645 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
1646 | | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
1647 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
1648 | | ... | \| ${prefix4} \| ${prefix6} \|
1649 | | ...
1650 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
1651 | | ...         | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
1652 | | ...         | ${prefix4} | ${prefix6}
1653 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1654 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1655 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1656 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1657 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1658 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1659 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1660 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1661 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
1662 | | ...                  | ${prefix6}
1663 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_ip4_address} | ${prefix4}
1664 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_ip4_address} | ${prefix4}
1665 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
1666 | | ...                  | ${prefix6}
1667 | | Vpp nodes ra suppress link layer | ${nodes}
1668 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
1669 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
1670 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_ip4_address} | ${dut2_if1_mac}
1671 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_ip4_address} | ${dut1_if2_mac}
1672