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