CSIT-408 sub-NDR latency measurements
[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} | ${lat}= | Verify Search Result
913 | | ${tmp}= | Create List | 100%NDR | ${lat}
914 | | ${latency}= | Create List | ${tmp}
915 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
916 | | ${lat_50p}= | Measure latency | ${duration} | ${rate_50p}pps
917 | | ...                           | ${framesize} | ${topology_type}
918 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
919 | | Append To List | ${latency} | ${tmp}
920 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
921 | | ${lat_10p}= | Measure latency | ${duration} | ${rate_10p}pps
922 | | ...                           | ${framesize} | ${topology_type}
923 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
924 | | Append To List | ${latency} | ${tmp}
925 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
926 | | ...                          | ${latency}
927 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
928 | | ...                              | ${framesize} | ${topology_type}
929 | | ...                              | fail_on_loss=${False}
930
931 | Find PDR using linear search and pps
932 | | [Documentation]
933 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
934 | | ... | with PDR threshold and type specified by parameter.
935 | | ...
936 | | ... | *Arguments:*
937 | | ... | - framesize - L2 Frame Size [B]. Type: integer
938 | | ... | - start_rate - Initial start rate [pps]. Type: float
939 | | ... | - step_rate - Step of linear search [pps]. Type: float
940 | | ... | - topology_type - Topology type. Type: string
941 | | ... | - min_rate - Lower limit of search [pps]. Type: float
942 | | ... | - max_rate - Upper limit of search [pps]. Type: float
943 | | ... | - loss_acceptance - Accepted loss during search. Type: float
944 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
945 | | ...
946 | | ... | *Example:*
947 | | ...
948 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
949 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
950 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
951 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
952 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
953 | | ${duration}= | Set Variable | 10
954 | | Set Duration | ${duration}
955 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
956 | | Set Search Linear Step | ${step_rate}
957 | | Set Search Frame Size | ${framesize}
958 | | Set Search Rate Type pps
959 | | Set Loss Acceptance | ${loss_acceptance}
960 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
961 | | ...            | Set Loss Acceptance Type Percentage
962 | | Linear Search | ${start_rate} | ${topology_type}
963 | | ${rate_per_stream} | ${latency}= | Verify Search Result
964 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
965 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
966 | | ...                          | ${latency}
967 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
968 | | ...                                   | ${framesize} | ${topology_type}
969 | | ...                                   | ${loss_acceptance}
970 | | ...                                   | ${loss_acceptance_type}
971 | | ...                                   | fail_on_loss=${False}
972
973 | Find NDR using binary search and pps
974 | | [Documentation]
975 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
976 | | ...
977 | | ... | *Arguments:*
978 | | ... | - framesize - L2 Frame Size [B]. Type: integer
979 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
980 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
981 | | ... | - topology_type - Topology type. Type: string
982 | | ... | - min_rate - Lower limit of search [pps]. Type: float
983 | | ... | - max_rate - Upper limit of search [pps]. Type: float
984 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
985 | | ...
986 | | ... | *Example:*
987 | | ...
988 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
989 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
990 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
991 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
992 | | ${duration}= | Set Variable | 10
993 | | Set Duration | ${duration}
994 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
995 | | Set Search Frame Size | ${framesize}
996 | | Set Search Rate Type pps
997 | | Set Binary Convergence Threshold | ${threshold}
998 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
999 | | ${rate_per_stream} | ${lat}= | Verify Search Result
1000 | | ${tmp}= | Create List | 100%NDR | ${lat}
1001 | | ${latency}= | Create List | ${tmp}
1002 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
1003 | | ${lat_50p}= | Measure latency | ${duration} | ${rate_50p}pps
1004 | | ...                           | ${framesize} | ${topology_type}
1005 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
1006 | | Append To List | ${latency} | ${tmp}
1007 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
1008 | | ${lat_10p}= | Measure latency | ${duration} | ${rate_10p}pps
1009 | | ...                           | ${framesize} | ${topology_type}
1010 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
1011 | | Append To List | ${latency} | ${tmp}
1012 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1013 | | ...                          | ${latency}
1014 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1015 | | ...                              | ${framesize} | ${topology_type}
1016 | | ...                              | fail_on_loss=${False}
1017
1018 | Find PDR using binary search and pps
1019 | | [Documentation]
1020 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
1021 | | ... | with PDR threshold and type specified by parameter.
1022 | | ...
1023 | | ... | *Arguments:*
1024 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1025 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
1026 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
1027 | | ... | - topology_type - Topology type. Type: string
1028 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1029 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1030 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1031 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1032 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1033 | | ...
1034 | | ... | *Example:*
1035 | | ...
1036 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
1037 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
1038 | | ... | \| percentage
1039 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
1040 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1041 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1042 | | ${duration}= | Set Variable | 10
1043 | | Set Duration | ${duration}
1044 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1045 | | Set Search Frame Size | ${framesize}
1046 | | Set Search Rate Type pps
1047 | | Set Loss Acceptance | ${loss_acceptance}
1048 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1049 | | ...            | Set Loss Acceptance Type Percentage
1050 | | Set Binary Convergence Threshold | ${threshold}
1051 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
1052 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1053 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1054 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1055 | | ...                          | ${latency}
1056 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1057 | | ...                                   | ${framesize} | ${topology_type}
1058 | | ...                                   | ${loss_acceptance}
1059 | | ...                                   | ${loss_acceptance_type}
1060 | | ...                                   | fail_on_loss=${False}
1061
1062 | Find NDR using combined search and pps
1063 | | [Documentation]
1064 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1065 | | ... | non drop rate.
1066 | | ...
1067 | | ... | *Arguments:*
1068 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1069 | | ... | - start_rate - Initial start rate [pps]. Type: float
1070 | | ... | - step_rate - Step of linear search [pps]. Type: float
1071 | | ... | - topology_type - Topology type. Type: string
1072 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1073 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1074 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1075 | | ...
1076 | | ... | *Example:*
1077 | | ...
1078 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
1079 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
1080 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1081 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1082 | | ${duration}= | Set Variable | 10
1083 | | Set Duration | ${duration}
1084 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1085 | | Set Search Linear Step | ${step_rate}
1086 | | Set Search Frame Size | ${framesize}
1087 | | Set Search Rate Type pps
1088 | | Set Binary Convergence Threshold | ${threshold}
1089 | | Combined Search | ${start_rate} | ${topology_type}
1090 | | ${rate_per_stream} | ${lat}= | Verify Search Result
1091 | | ${tmp}= | Create List | 100%NDR | ${lat}
1092 | | ${latency}= | Create List | ${tmp}
1093 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
1094 | | ${lat_50p}= | Measure latency | ${duration} | ${rate_50p}pps
1095 | | ...                           | ${framesize} | ${topology_type}
1096 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
1097 | | Append To List | ${latency} | ${tmp}
1098 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
1099 | | ${lat_10p}= | Measure latency | ${duration} | ${rate_10p}pps
1100 | | ...                           | ${framesize} | ${topology_type}
1101 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
1102 | | Append To List | ${latency} | ${tmp}
1103 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
1104 | | ...                          | ${latency}
1105 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
1106 | | ...                              | ${framesize} | ${topology_type}
1107 | | ...                              | fail_on_loss=${False}
1108
1109 | Find PDR using combined search and pps
1110 | | [Documentation]
1111 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
1112 | | ... | partial drop rate with PDR threshold and type specified by parameter.
1113 | | ...
1114 | | ... | *Arguments:*
1115 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1116 | | ... | - start_rate - Initial start rate [pps]. Type: float
1117 | | ... | - step_rate - Step of linear search [pps]. Type: float
1118 | | ... | - topology_type - Topology type. Type: string
1119 | | ... | - min_rate - Lower limit of search [pps]. Type: float
1120 | | ... | - max_rate - Upper limit of search [pps]. Type: float
1121 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
1122 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1123 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1124 | | ...
1125 | | ... | *Example:*
1126 | | ...
1127 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
1128 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
1129 | | ... | \| percentage
1130 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
1131 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
1132 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
1133 | | ${duration}= | Set Variable | 10
1134 | | Set Duration | ${duration}
1135 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1136 | | Set Search Linear Step | ${step_rate}
1137 | | Set Search Frame Size | ${framesize}
1138 | | Set Search Rate Type pps
1139 | | Set Loss Acceptance | ${loss_acceptance}
1140 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1141 | | ...            | Set Loss Acceptance Type Percentage
1142 | | Set Binary Convergence Threshold | ${threshold}
1143 | | Combined Search | ${start_rate} | ${topology_type}
1144 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1145 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1146 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
1147 | | ...                          | ${latency}
1148 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1149 | | ...                                   | ${framesize} | ${topology_type}
1150 | | ...                                   | ${loss_acceptance}
1151 | | ...                                   | ${loss_acceptance_type}
1152 | | ...                                   | fail_on_loss=${False}
1153
1154 | Display result of NDR search
1155 | | [Documentation]
1156 | | ... | Display result of NDR search in packet per seconds (total and per
1157 | | ... | stream) and Gbps total bandwidth with untagged packet.
1158 | | ... | Througput is calculated as:
1159 | | ... | Measured rate per stream * Total number of streams
1160 | | ... | Bandwidth is calculated as:
1161 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1162 | | ...
1163 | | ... | *Arguments:*
1164 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1165 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1166 | | ... | - nr_streams - Total number of streams. Type: integer
1167 | | ... | - latency - Latency stats. Type: dictionary
1168 | | ...
1169 | | ... | *Example:*
1170 | | ...
1171 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
1172 | | ... | \| [100%NDR, [10/10/10, 1/2/3]] \|
1173 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1174 | | ...         | ${latency}
1175 | | ${framesize}= | Get Frame Size | ${framesize}
1176 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1177 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1178 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1179 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1180 | | ...              | append=yes
1181 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1182 | | ...              | append=yes
1183 | | Set Test Message | ${\n}LATENCY usec [min/avg/max] | append=yes
1184 | | :FOR | ${lat} | IN | @{latency}
1185 | | | Set Test Message | ${\n}LAT_${lat[0]}: ${lat[1]} | append=yes
1186
1187 | Display result of PDR search
1188 | | [Documentation]
1189 | | ... | Display result of PDR search in packet per seconds (total and per
1190 | | ... | stream) and Gbps total bandwidth with untagged packet.
1191 | | ... | Througput is calculated as:
1192 | | ... | Measured rate per stream * Total number of streams
1193 | | ... | Bandwidth is calculated as:
1194 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1195 | | ...
1196 | | ... | *Arguments:*
1197 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1198 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1199 | | ... | - nr_streams - Total number of streams. Type: integer
1200 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1201 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1202 | | ... | - latency - Latency stats. Type: dictionary
1203 | | ...
1204 | | ... | *Example:*
1205 | | ...
1206 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
1207 | | ... | \| percentage \| (0, 10/10/10) \|
1208 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1209 | | ...         | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
1210 | | ${framesize}= | Get Frame Size | ${framesize}
1211 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1212 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1213 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1214 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1215 | | ...              | append=yes
1216 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1217 | | ...              | append=yes
1218 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1219 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1220 | | ...                | append=yes
1221 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
1222 | | ...              | append=yes
1223
1224 | Measure latency
1225 | | [Documentation]
1226 | | ... | Send traffic at specified rate. Measure min/avg/max latency
1227 | | ...
1228 | | ... | *Arguments:*
1229 | | ... | - duration - Duration of traffic run [s]. Type: integer
1230 | | ... | - rate - Rate for sending packets. Type: string
1231 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1232 | | ... | - topology_type - Topology type. Type: string
1233 | | ...
1234 | | ... | *Example:*
1235 | | ...
1236 | | ... | \| Measure latency \| 10 \| 4.0mpps \| 64 \| 3-node-IPv4
1237 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1238 | | Clear all counters on all DUTs
1239 | | Send traffic on tg | ${duration} | ${rate} | ${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