CSIT-200: Lisp performance test
[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_1518B - Maximum number of packet per second
48 | | ... |                             for 10GE with 1518B L2 Frame.
49 | | ... | - 10Ge_linerate_pps_1522B - Maximum number of packet per second
50 | | ... |                             for 10GE with 1522B L2 Frame.
51 | | ... | - 10Ge_linerate_pps_1526B - Maximum number of packet per second
52 | | ... |                             for 10GE with 1526B L2 Frame.
53 | | ... | - 10Ge_linerate_pps_9000B - Maximum number of packet per second
54 | | ... |                             for 10GE with 9000B L2 Frame.
55 | | ... | - 10Ge_linerate_pps_9004B - Maximum number of packet per second
56 | | ... |                             for 10GE with 9004B L2 Frame.
57 | | ... | - 10Ge_linerate_pps_9008B - Maximum number of packet per second
58 | | ... |                             for 10GE with 9008B L2 Frame.
59 | | ... | - 10Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
60 | | ... |                                 for 10GE with IMIX_v4_1 profile.
61 | | ... | - 10Ge_lisp_linerate_pps_72B - Maximum number of packets per second
62 | | ... |                                for 10GE with 72B L2 Frame, Lisp and
63 | | ... |                                IPv4 header.
64 | | ... | - 10Ge_lisp_linerate_pps_86B - Maximum number of packets per second
65 | | ... |                                for 10GE with 86B L2 Frame, Lisp and
66 | | ... |                                IPv4 header.
67 | | ... | - 10Ge_lisp_linerate_pps_1488B - Maximum number of packets per
68 | | ... |                                  second for 10GE with 1488B L2
69 | | ... |                                  Frame, Lisp and IPv6 header.
70 | | ... | - 10Ge_lisp_linerate_pps_9008B - Maximum number of packets per
71 | | ... |                                  second for 10GE with 9008B L2
72 | | ... |                                  Frame, Lisp, IPv4 or IPv6 header.
73 | | ... | - 10Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
74 | | ... |                                     second for 10GE with 112B L2
75 | | ... |                                     Frame, Lisp, IPv4 and IPv6
76 | | ... |                                     header.
77 | | ... | - 10Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
78 | | ... |                                     second for 10GE with 126B L2
79 | | ... |                                     Frame, Lisp, IPv4 and IPv6
80 | | ... |                                     header.
81 | | ... | - 10Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
82 | | ... |                                      second for 10GE with 1508B L2
83 | | ... |                                      Frame, Lisp, IPv4 and IPv6
84 | | ... |                                      header.
85 | | ... | - 10Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
86 | | ... |                                      second for 10GE with 9048B L2
87 | | ... |                                      Frame, Lisp, IPv4 and IPv6
88 | | ... |                                      header.
89 | | ... | - 40Ge_linerate_pps_64B - Maximum number of packet per second
90 | | ... |                           for 40GE with 64B L2 Frame.
91 | | ... | - 40Ge_linerate_pps_68B - Maximum number of packet per second
92 | | ... |                           for 40GE with 68B L2 Frame.
93 | | ... | - 40Ge_linerate_pps_72B - Maximum number of packet per second
94 | | ... |                           for 40GE with 72B L2 Frame.
95 | | ... | - 40Ge_linerate_pps_78B - Maximum number of packet per second
96 | | ... |                           for 40GE with 78B L2 Frame.
97 | | ... | - 40Ge_linerate_pps_1518B - Maximum number of packet per second
98 | | ... |                             for 40GE with 1518B L2 Frame.
99 | | ... | - 40Ge_linerate_pps_1522B - Maximum number of packet per second
100 | | ... |                             for 40GE with 1522B L2 Frame.
101 | | ... | - 40Ge_linerate_pps_1526B - Maximum number of packet per second
102 | | ... |                             for 40GE with 1526B L2 Frame.
103 | | ... | - 40Ge_linerate_pps_9000B - Maximum number of packet per second
104 | | ... |                             for 40GE with 9000B L2 Frame.
105 | | ... | - 40Ge_linerate_pps_9004B - Maximum number of packet per second
106 | | ... |                             for 40GE with 9004B L2 Frame.
107 | | ... | - 40Ge_linerate_pps_9008B - Maximum number of packet per second
108 | | ... |                             for 40GE with 9008B L2 Frame.
109 | | ... | - 40Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
110 | | ... |                                 for 40GE with IMIX_v4_1 profile.
111 | | ... | - 40Ge_lisp_linerate_pps_72B - Maximum number of packets per second
112 | | ... |                                for 40GE with 72B L2 Frame, Lisp and
113 | | ... |                                IPv4 header.
114 | | ... | - 40Ge_lisp_linerate_pps_86B - Maximum number of packets per second
115 | | ... |                                for 40GE with 86B L2 Frame, Lisp and
116 | | ... |                                IPv4 header.
117 | | ... | - 40Ge_lisp_linerate_pps_1488B - Maximum number of packets per
118 | | ... |                                  second for 40GE with 1488B L2
119 | | ... |                                  Frame, Lisp and IPv6 header.
120 | | ... | - 40Ge_lisp_linerate_pps_9008B - Maximum number of packets per
121 | | ... |                                  second for 40GE with 9008B L2
122 | | ... |                                  Frame, Lisp, IPv4 or IPv6 header.
123 | | ... | - 40Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
124 | | ... |                                     second for 40GE with 112B L2
125 | | ... |                                     Frame, Lisp, IPv4 and IPv6
126 | | ... |                                     header.
127 | | ... | - 40Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
128 | | ... |                                     second for 40GE with 126B L2
129 | | ... |                                     Frame, Lisp, IPv4 and IPv6
130 | | ... |                                     header.
131 | | ... | - 40Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
132 | | ... |                                      second for 40GE with 1508B L2
133 | | ... |                                      Frame, Lisp, IPv4 and IPv6
134 | | ... |                                      header.
135 | | ... | - 40Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
136 | | ... |                                      second for 40GE with 9048B L2
137 | | ... |                                      Frame, Lisp, IPv4 and IPv6
138 | | ... |                                      header.
139 | | ...
140 | | Set Suite Variable | ${10Ge_linerate_pps_64B} | 14880952
141 | | Set Suite Variable | ${10Ge_linerate_pps_68B} | 14204545
142 | | Set Suite Variable | ${10Ge_linerate_pps_72B} | 13586956
143 | | Set Suite Variable | ${10Ge_linerate_pps_78B} | 12755102
144 | | Set Suite Variable | ${10Ge_linerate_pps_1518B} | 812743
145 | | Set Suite Variable | ${10Ge_linerate_pps_1522B} | 810635
146 | | Set Suite Variable | ${10Ge_linerate_pps_9000B} | 138580
147 | | Set Suite Variable | ${10Ge_linerate_pps_9004B} | 138519
148 | | Set Suite Variable | ${10Ge_linerate_pps_9008B} | 138458
149 | | Set Suite Variable | ${10Ge_linerate_pps_IMIX_v4_1} | 3343736
150 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_72B} | 13586956
151 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_86B} | 11792452
152 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_1488B} | 828912
153 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_9008B} | 138458
154 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_112B} | 9469696
155 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_126B} | 8561643
156 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_1508B} | 818062
157 | | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_9048B} | 137847
158 | | Set Suite Variable | ${40Ge_linerate_pps_64B} | 59523809
159 | | Set Suite Variable | ${40Ge_linerate_pps_68B} | 56818181
160 | | Set Suite Variable | ${40Ge_linerate_pps_72B} | 54347826
161 | | Set Suite Variable | ${40Ge_linerate_pps_78B} | 51020408
162 | | Set Suite Variable | ${40Ge_linerate_pps_1518B} | 3250975
163 | | Set Suite Variable | ${40Ge_linerate_pps_1522B} | 3242542
164 | | Set Suite Variable | ${40Ge_linerate_pps_9000B} | 554323
165 | | Set Suite Variable | ${40Ge_linerate_pps_9004B} | 554078
166 | | Set Suite Variable | ${40Ge_linerate_pps_9008B} | 553832
167 | | Set Suite Variable | ${40Ge_linerate_pps_IMIX_v4_1} | 13374944
168 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_72B} | 54347826
169 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_86B} | 47169811
170 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_1488B} | 3315649
171 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_9008B} | 553832
172 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_112B} | 37878787
173 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_126B} | 34246575
174 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_1508B} | 3272251
175 | | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_9048B} | 551389
176
177 | Calculate pps
178 | | [Documentation]
179 | | ... | Calculate pps for given rate and L2 frame size,
180 | | ... | additional 20B are added to L2 frame size as padding.
181 | | ...
182 | | ... | *Arguments*
183 | | ... | - bps - Rate in bps. Type: integer
184 | | ... | - framesize - L2 frame size in Bytes. Type: integer
185 | | ...
186 | | ... | *Return*
187 | | ... | - Calculated pps. Type: integer
188 | | ...
189 | | ... | *Example:*
190 | | ...
191 | | ... | \| Calculate pps \| 10000000000 | 64
192 | | [Arguments] | ${bps} | ${framesize}
193 | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__()
194 | | Return From Keyword | ${ret}
195
196 | Get Frame Size
197 | | [Documentation]
198 | | ... | Framesize can be either integer in case of a single packet
199 | | ... | in stream, or set of packets in case of IMIX type or simmilar.
200 | | ... | This keyword returns average framesize.
201 | | ...
202 | | ... | *Arguments:*
203 | | ... | - framesize - Framesize. Type: integer or string
204 | | ...
205 | | ... | *Example:*
206 | | ...
207 | | ... | \| Get Frame Size \| IMIX_v4_1
208 | | [Arguments] | ${framesize}
209 | | Run Keyword If | '${framesize}' == 'IMIX_v4_1'
210 | | ...            | Return From Keyword | 353.83333
211 | | Return From Keyword | ${framesize}
212
213 | Setup performance global Variables
214 | | [Documentation]
215 | | ... | Setup suite Variables. Variables are used across performance testing.
216 | | ...
217 | | ... | _NOTE:_ This KW sets following suite variables:
218 | | ... | - glob_loss_acceptance - Loss acceptance treshold
219 | | ... | - glob_loss_acceptance_type - Loss acceptance treshold type
220 | | ... | - glob_vm_image - Guest VM disk image
221 | | ...
222 | | Set Suite Variable | ${glob_loss_acceptance} | 0.5
223 | | Set Suite Variable | ${glob_loss_acceptance_type} | percentage
224 | | Set Suite Variable | ${glob_vm_image} | /var/lib/vm/csit-nested-1.3.img
225
226 | 2-node circular Topology Variables Setup
227 | | [Documentation]
228 | | ... | Compute path for testing on two given nodes in circular
229 | | ... | topology and set corresponding suite variables.
230 | | ...
231 | | ... | _NOTE:_ This KW sets following suite variables:
232 | | ... | - tg - TG node
233 | | ... | - tg_if1 - 1st TG interface towards DUT.
234 | | ... | - tg_if2 - 2nd TG interface towards DUT.
235 | | ... | - dut1 - DUT1 node
236 | | ... | - dut1_if1 - 1st DUT interface towards TG.
237 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
238 | | ...
239 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
240 | | Compute Path
241 | | ${tg_if1} | ${tg}= | Next Interface
242 | | ${dut1_if1} | ${dut1}= | Next Interface
243 | | ${dut1_if2} | ${dut1}= | Next Interface
244 | | ${tg_if2} | ${tg}= | Next Interface
245 | | Set Suite Variable | ${tg}
246 | | Set Suite Variable | ${tg_if1}
247 | | Set Suite Variable | ${tg_if2}
248 | | Set Suite Variable | ${dut1}
249 | | Set Suite Variable | ${dut1_if1}
250 | | Set Suite Variable | ${dut1_if2}
251
252 | 3-node circular Topology Variables Setup
253 | | [Documentation]
254 | | ... | Compute path for testing on three given nodes in circular
255 | | ... | topology and set corresponding suite variables.
256 | | ...
257 | | ... | _NOTE:_ This KW sets following suite variables:
258 | | ... | - tg - TG node
259 | | ... | - tg_if1 - TG interface towards DUT1.
260 | | ... | - tg_if2 - TG interface towards DUT2.
261 | | ... | - dut1 - DUT1 node
262 | | ... | - dut1_if1 - DUT1 interface towards TG.
263 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
264 | | ... | - dut2 - DUT2 node
265 | | ... | - dut2_if1 - DUT2 interface towards TG.
266 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
267 | | ...
268 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
269 | | ...          | ${nodes['TG']}
270 | | Compute Path
271 | | ${tg_if1} | ${tg}= | Next Interface
272 | | ${dut1_if1} | ${dut1}= | Next Interface
273 | | ${dut1_if2} | ${dut1}= | Next Interface
274 | | ${dut2_if1} | ${dut2}= | Next Interface
275 | | ${dut2_if2} | ${dut2}= | Next Interface
276 | | ${tg_if2} | ${tg}= | Next Interface
277 | | Set Suite Variable | ${tg}
278 | | Set Suite Variable | ${tg_if1}
279 | | Set Suite Variable | ${tg_if2}
280 | | Set Suite Variable | ${dut1}
281 | | Set Suite Variable | ${dut1_if1}
282 | | Set Suite Variable | ${dut1_if2}
283 | | Set Suite Variable | ${dut2}
284 | | Set Suite Variable | ${dut2_if1}
285 | | Set Suite Variable | ${dut2_if2}
286
287 | 2-node circular Topology Variables Setup with DUT interface model
288 | | [Documentation]
289 | | ... | Compute path for testing on two given nodes in circular topology
290 | | ... | based on interface model provided as an argument and set
291 | | ... | corresponding suite variables.
292 | | ...
293 | | ... | *Arguments:*
294 | | ... | - iface_model - Interface model. Type: string
295 | | ...
296 | | ... | _NOTE:_ This KW sets following suite variables:
297 | | ... | - tg - TG node
298 | | ... | - tg_if1 - 1st TG interface towards DUT.
299 | | ... | - tg_if2 - 2nd TG interface towards DUT.
300 | | ... | - dut1 - DUT1 node
301 | | ... | - dut1_if1 - 1st DUT interface towards TG.
302 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
303 | | ...
304 | | ... | *Example:*
305 | | ...
306 | | ... | \| 2-node circular Topology Variables Setup with DUT interface model \
307 | | ... | \| Intel-X520-DA2 \|
308 | | [Arguments] | ${iface_model}
309 | | ${iface_model_list}= | Create list | ${iface_model}
310 | | Append Node | ${nodes['TG']}
311 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
312 | | Append Node | ${nodes['TG']}
313 | | Compute Path
314 | | ${tg_if1} | ${tg}= | Next Interface
315 | | ${dut1_if1} | ${dut1}= | Next Interface
316 | | ${dut1_if2} | ${dut1}= | Next Interface
317 | | ${tg_if2} | ${tg}= | Next Interface
318 | | Set Suite Variable | ${tg}
319 | | Set Suite Variable | ${tg_if1}
320 | | Set Suite Variable | ${tg_if2}
321 | | Set Suite Variable | ${dut1}
322 | | Set Suite Variable | ${dut1_if1}
323 | | Set Suite Variable | ${dut1_if2}
324
325 | 3-node circular Topology Variables Setup with DUT interface model
326 | | [Documentation]
327 | | ... | Compute path for testing on three given nodes in circular topology
328 | | ... | based on interface model provided as an argument and set
329 | | ... | corresponding suite variables.
330 | | ...
331 | | ... | *Arguments:*
332 | | ... | - iface_model - Interface model. Type: string
333 | | ...
334 | | ... | _NOTE:_ This KW sets following suite variables:
335 | | ... | - tg - TG node
336 | | ... | - tg_if1 - TG interface towards DUT1.
337 | | ... | - tg_if2 - TG interface towards DUT2.
338 | | ... | - dut1 - DUT1 node
339 | | ... | - dut1_if1 - DUT1 interface towards TG.
340 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
341 | | ... | - dut2 - DUT2 node
342 | | ... | - dut2_if1 - DUT2 interface towards TG.
343 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
344 | | ...
345 | | ... | *Example:*
346 | | ...
347 | | ... | \| 3-node circular Topology Variables Setup with DUT interface model \
348 | | ... | \| Intel-X520-DA2 \|
349 | | [Arguments] | ${iface_model}
350 | | ${iface_model_list}= | Create list | ${iface_model}
351 | | Append Node | ${nodes['TG']}
352 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
353 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
354 | | Append Node | ${nodes['TG']}
355 | | Compute Path
356 | | ${tg_if1} | ${tg}= | Next Interface
357 | | ${dut1_if1} | ${dut1}= | Next Interface
358 | | ${dut1_if2} | ${dut1}= | Next Interface
359 | | ${dut2_if1} | ${dut2}= | Next Interface
360 | | ${dut2_if2} | ${dut2}= | Next Interface
361 | | ${tg_if2} | ${tg}= | Next Interface
362 | | Set Suite Variable | ${tg}
363 | | Set Suite Variable | ${tg_if1}
364 | | Set Suite Variable | ${tg_if2}
365 | | Set Suite Variable | ${dut1}
366 | | Set Suite Variable | ${dut1_if1}
367 | | Set Suite Variable | ${dut1_if2}
368 | | Set Suite Variable | ${dut2}
369 | | Set Suite Variable | ${dut2_if1}
370 | | Set Suite Variable | ${dut2_if2}
371
372 | VPP interfaces in path are up in a 2-node circular topology
373 | | [Documentation]
374 | | ... | *Set UP state on VPP interfaces in path on nodes in 2-node circular
375 | | ... | topology.*
376 | | ...
377 | | Set Interface State | ${dut1} | ${dut1_if1} | up
378 | | Set Interface State | ${dut1} | ${dut1_if2} | up
379 | | Vpp Node Interfaces Ready Wait | ${dut1}
380
381 | VPP interfaces in path are up in a 3-node circular topology
382 | | [Documentation]
383 | | ... | *Set UP state on VPP interfaces in path on nodes in 3-node circular
384 | | ... | topology.*
385 | | ...
386 | | Set Interface State | ${dut1} | ${dut1_if1} | up
387 | | Set Interface State | ${dut1} | ${dut1_if2} | up
388 | | Set Interface State | ${dut2} | ${dut2_if1} | up
389 | | Set Interface State | ${dut2} | ${dut2_if2} | up
390 | | Vpp Node Interfaces Ready Wait | ${dut1}
391 | | Vpp Node Interfaces Ready Wait | ${dut2}
392
393 | IPv4 forwarding initialized in a 3-node circular topology
394 | | [Documentation]
395 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
396 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
397 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and
398 | | ... | /30 prefix on DUT1-DUT2 link. Set routing on both DUT nodes with
399 | | ... | prefix /24 and next hop of neighbour DUT interface IPv4 address.
400 | | ...
401 | | Set Interface State | ${dut1} | ${dut1_if1} | up
402 | | Set Interface State | ${dut1} | ${dut1_if2} | up
403 | | Set Interface State | ${dut2} | ${dut2_if1} | up
404 | | Set Interface State | ${dut2} | ${dut2_if2} | up
405 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
406 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
407 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
408 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
409 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
410 | | dut1_v4.set_arp | ${dut1_if2} | 1.1.1.2 | ${dut2_if1_mac}
411 | | dut2_v4.set_arp | ${dut2_if1} | 1.1.1.1 | ${dut1_if2_mac}
412 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
413 | | dut1_v4.set_ip | ${dut1_if1} | 10.10.10.1 | 24
414 | | dut1_v4.set_ip | ${dut1_if2} | 1.1.1.1 | 30
415 | | dut2_v4.set_ip | ${dut2_if1} | 1.1.1.2 | 30
416 | | dut2_v4.set_ip | ${dut2_if2} | 20.20.20.1 | 24
417 | | dut1_v4.set_route | 20.20.20.0 | 24 | 1.1.1.2 | ${dut1_if2}
418 | | dut2_v4.set_route | 10.10.10.0 | 24 | 1.1.1.1 | ${dut2_if1}
419 | | All Vpp Interfaces Ready Wait | ${nodes}
420
421 | Scale IPv4 forwarding initialized in a 3-node circular topology
422 | | [Documentation]
423 | | ... | Custom setup of IPv4 topology with scalability of ip routes on all
424 | | ... | DUT nodes in 3-node circular topology
425 | | ...
426 | | ... | *Arguments:*
427 | | ... | - ${count} - IP route count. Type: integer
428 | | ...
429 | | ... | *Return:*
430 | | ... | - No value returned
431 | | ...
432 | | ... | *Example:*
433 | | ...
434 | | ... | \| Scale IPv4 forwarding initialized in a 3-node circular topology \
435 | | ... | \| 100000 \|
436 | | [Arguments] | ${count}
437 | | Set Interface State | ${dut1} | ${dut1_if1} | up
438 | | Set Interface State | ${dut1} | ${dut1_if2} | up
439 | | Set Interface State | ${dut2} | ${dut2_if1} | up
440 | | Set Interface State | ${dut2} | ${dut2_if2} | up
441 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
442 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
443 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
444 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
445 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
446 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
447 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
448 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.1 | ${tg1_if2_mac}
449 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
450 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
451 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
452 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.2 | 30
453 | | Vpp Route Add | ${dut1} | 10.0.0.0 | 32 | 1.1.1.1 | ${dut1_if1}
454 | | ...           | count=${count}
455 | | Vpp Route Add | ${dut1} | 20.0.0.0 | 32 | 2.2.2.2 | ${dut1_if2}
456 | | ...           | count=${count}
457 | | Vpp Route Add | ${dut2} | 10.0.0.0 | 32 | 2.2.2.1 | ${dut2_if1}
458 | | ...           | count=${count}
459 | | Vpp Route Add | ${dut2} | 20.0.0.0 | 32 | 3.3.3.1 | ${dut2_if2}
460 | | ...           | count=${count}
461 | | All Vpp Interfaces Ready Wait | ${nodes}
462
463 | IPv6 forwarding initialized in a 3-node circular topology
464 | | [Documentation]
465 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
466 | | ... | topology. Get the interface MAC addresses and setup neighbour on all
467 | | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all
468 | | ... | interfaces. Set routing on both DUT nodes with prefix /64 and
469 | | ... | next hop of neighbour DUT interface IPv6 address.
470 | | ...
471 | | ${prefix}= | Set Variable | 64
472 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
473 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
474 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
475 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
476 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix}
477 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:3::1 | ${prefix}
478 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:3::2 | ${prefix}
479 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:2::1 | ${prefix}
480 | | Vpp nodes ra suppress link layer | ${nodes}
481 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
482 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
483 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:3::2 | ${dut2_if1_mac}
484 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac}
485 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2}
486 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1}
487
488 | Scale IPv6 forwarding initialized in a 3-node circular topology
489 | | [Documentation]
490 | | ... | Custom setup of IPv6 topology with scalability of ip routes on all
491 | | ... | DUT nodes in 3-node circular topology
492 | | ...
493 | | ... | *Arguments:*
494 | | ... | - ${count} - IP route count. Type: integer
495 | | ...
496 | | ... | *Return:*
497 | | ... | - No value returned
498 | | ...
499 | | ... | *Example:*
500 | | ...
501 | | ... | \| Scale IPv6 forwarding initialized in a 3-node circular topology \
502 | | ... | \| 100000 \|
503 | | [Arguments] | ${count}
504 | | ${subn_prefix}= | Set Variable | 64
505 | | ${host_prefix}= | Set Variable | 128
506 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:3::1 | ${subn_prefix}
507 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:4::1 | ${subn_prefix}
508 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:4::2 | ${subn_prefix}
509 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:5::1 | ${subn_prefix}
510 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
511 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
512 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
513 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
514 | | Vpp nodes ra suppress link layer | ${nodes}
515 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:3::2 | ${tg1_if1_mac}
516 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:4::2 | ${dut2_if1_mac}
517 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:4::1 | ${dut1_if2_mac}
518 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:5::2 | ${tg1_if2_mac}
519 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${host_prefix} | 2001:4::2
520 | | ...           | interface=${dut1_if2} | count=${count}
521 | | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
522 | | ...           | interface=${dut1_if1} | count=${count}
523 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
524 | | ...           | interface=${dut2_if2} | count=${count}
525 | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
526 | | ...           | interface=${dut2_if1} | count=${count}
527
528 | IPv6 iAcl whitelist initialized in a 3-node circular topology
529 | | [Documentation]
530 | | ... | Creates classify L3 table on DUTs. IPv6 iAcl security whitelist
531 | | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
532 | | ...
533 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
534 | | ... | ${dut1} | ip6 | dst
535 | | And Vpp Configures Classify Session L3
536 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
537 | | ... | ip6 | dst | 2001:2::2
538 | | And Vpp Enable Input Acl Interface
539 | | ... | ${dut1} | ${dut1_if1} | ip6 | ${table_idx}
540 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
541 | | ... | ${dut2} | ip6 | dst
542 | | And Vpp Configures Classify Session L3
543 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
544 | | ... | ip6 | dst | 2001:1::2
545 | | And Vpp Enable Input Acl Interface
546 | | ... | ${dut2} | ${dut2_if2} | ip6 | ${table_idx}
547
548 | L2 xconnect initialized in a 3-node circular topology
549 | | [Documentation]
550 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
551 | | ... | each DUT. Interfaces are brought up.
552 | | ... |
553 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
554 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
555 | | All Vpp Interfaces Ready Wait | ${nodes}
556
557 | L2 bridge domain initialized in a 3-node circular topology
558 | | [Documentation]
559 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
560 | | ... | that is created automatically with index 1. Learning is enabled.
561 | | ... | Interfaces are brought up.
562 | | ... |
563 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
564 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
565 | | All Vpp Interfaces Ready Wait | ${nodes}
566
567 2-node Performance Suite Setup with DUT's NIC model
568 | | [Documentation]
569 | | ... | Suite preparation phase that setup default startup configuration of
570 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
571 | | ... | variables used in test cases based on interface model provided as an
572 | | ... | argument. Initializes traffic generator.
573 | | ...
574 | | ... | *Arguments:*
575 | | ... | - topology_type - Topology type. Type: string
576 | | ... | - nic_model - Interface model. Type: string
577 | | ...
578 | | ... | *Example:*
579 | | ...
580 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
581 | | [Arguments] | ${topology_type} | ${nic_model}
582 | | Setup default startup configuration of VPP on all DUTs
583 | | Show vpp version on all DUTs
584 | | Setup performance rate Variables
585 | | Setup performance global Variables
586 | | 2-node circular Topology Variables Setup with DUT interface model
587 | | ... | ${nic_model}
588 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
589 | | ...                          | ${dut1} | ${dut1_if1}
590 | | ...                          | ${dut1} | ${dut1_if2}
591 | | ...                          | ${topology_type}
592
593 3-node Performance Suite Setup with DUT's NIC model
594 | | [Documentation]
595 | | ... | Suite preparation phase that setup default startup configuration of
596 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
597 | | ... | variables used in test cases based on interface model provided as an
598 | | ... | argument. Initializes traffic generator.
599 | | ...
600 | | ... | *Arguments:*
601 | | ... | - topology_type - Topology type. Type: string
602 | | ... | - nic_model - Interface model. Type: string
603 | | ...
604 | | ... | *Example:*
605 | | ...
606 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
607 | | [Arguments] | ${topology_type} | ${nic_model}
608 | | Setup default startup configuration of VPP on all DUTs
609 | | Show vpp version on all DUTs
610 | | Setup performance rate Variables
611 | | Setup performance global Variables
612 | | 3-node circular Topology Variables Setup with DUT interface model
613 | | ... | ${nic_model}
614 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
615 | | ...                          | ${dut1} | ${dut1_if1}
616 | | ...                          | ${dut2} | ${dut2_if2}
617 | | ...                          | ${topology_type}
618
619 | 3-node Performance Suite Teardown
620 | | [Documentation]
621 | | ... | Suite teardown phase with traffic generator teardown.
622 | | ...
623 | | Teardown traffic generator | ${tg}
624
625 | Find NDR using linear search and pps
626 | | [Documentation]
627 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
628 | | ...
629 | | ... | *Arguments:*
630 | | ... | - framesize - L2 Frame Size [B]. Type: integer
631 | | ... | - start_rate - Initial start rate [pps]. Type: float
632 | | ... | - step_rate - Step of linear search [pps]. Type: float
633 | | ... | - topology_type - Topology type. Type: string
634 | | ... | - min_rate - Lower limit of search [pps]. Type: float
635 | | ... | - max_rate - Upper limit of search [pps]. Type: float
636 | | ...
637 | | ... | *Return:*
638 | | ... | - No value returned
639 | | ...
640 | | ... | *Example:*
641 | | ...
642 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \| \
643 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952
644 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
645 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
646 | | ${duration}= | Set Variable | 10
647 | | Set Duration | ${duration}
648 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
649 | | Set Search Linear Step | ${step_rate}
650 | | Set Search Frame Size | ${framesize}
651 | | Set Search Rate Type pps
652 | | Linear Search | ${start_rate} | ${topology_type}
653 | | ${rate_per_stream} | ${latency}= | Verify Search Result
654 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
655 | | ...                          | ${latency}
656 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
657 | | ...                              | ${framesize} | ${topology_type}
658 | | ...                              | fail_on_loss=${False}
659
660 | Find PDR using linear search and pps
661 | | [Documentation]
662 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
663 | | ... | with PDR threshold and type specified by parameter.
664 | | ...
665 | | ... | *Arguments:*
666 | | ... | - framesize - L2 Frame Size [B]. Type: integer
667 | | ... | - start_rate - Initial start rate [pps]. Type: float
668 | | ... | - step_rate - Step of linear search [pps]. Type: float
669 | | ... | - topology_type - Topology type. Type: string
670 | | ... | - min_rate - Lower limit of search [pps]. Type: float
671 | | ... | - max_rate - Upper limit of search [pps]. Type: float
672 | | ... | - loss_acceptance - Accepted loss during search. Type: float
673 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
674 | | ...
675 | | ... | *Example:*
676 | | ...
677 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
678 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
679 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
680 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
681 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
682 | | ${duration}= | Set Variable | 10
683 | | Set Duration | ${duration}
684 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
685 | | Set Search Linear Step | ${step_rate}
686 | | Set Search Frame Size | ${framesize}
687 | | Set Search Rate Type pps
688 | | Set Loss Acceptance | ${loss_acceptance}
689 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
690 | | ...            | Set Loss Acceptance Type Percentage
691 | | Linear Search | ${start_rate} | ${topology_type}
692 | | ${rate_per_stream} | ${latency}= | Verify Search Result
693 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
694 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
695 | | ...                          | ${latency}
696 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
697 | | ...                                   | ${framesize} | ${topology_type}
698 | | ...                                   | ${loss_acceptance}
699 | | ...                                   | ${loss_acceptance_type}
700 | | ...                                   | fail_on_loss=${False}
701
702 | Find NDR using binary search and pps
703 | | [Documentation]
704 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
705 | | ...
706 | | ... | *Arguments:*
707 | | ... | - framesize - L2 Frame Size [B]. Type: integer
708 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
709 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
710 | | ... | - topology_type - Topology type. Type: string
711 | | ... | - min_rate - Lower limit of search [pps]. Type: float
712 | | ... | - max_rate - Upper limit of search [pps]. Type: float
713 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
714 | | ...
715 | | ... | *Example:*
716 | | ...
717 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
718 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
719 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
720 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
721 | | ${duration}= | Set Variable | 10
722 | | Set Duration | ${duration}
723 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
724 | | Set Search Frame Size | ${framesize}
725 | | Set Search Rate Type pps
726 | | Set Binary Convergence Threshold | ${threshold}
727 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
728 | | ${rate_per_stream} | ${latency}= | Verify Search Result
729 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
730 | | ...                          | ${latency}
731 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
732 | | ...                              | ${framesize} | ${topology_type}
733 | | ...                              | fail_on_loss=${False}
734
735 | Find PDR using binary search and pps
736 | | [Documentation]
737 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
738 | | ... | with PDR threshold and type specified by parameter.
739 | | ...
740 | | ... | *Arguments:*
741 | | ... | - framesize - L2 Frame Size [B]. Type: integer
742 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
743 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
744 | | ... | - topology_type - Topology type. Type: string
745 | | ... | - min_rate - Lower limit of search [pps]. Type: float
746 | | ... | - max_rate - Upper limit of search [pps]. Type: float
747 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
748 | | ... | - loss_acceptance - Accepted loss during search. Type: float
749 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
750 | | ...
751 | | ... | *Example:*
752 | | ...
753 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
754 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
755 | | ... | \| percentage
756 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
757 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
758 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
759 | | ${duration}= | Set Variable | 10
760 | | Set Duration | ${duration}
761 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
762 | | Set Search Frame Size | ${framesize}
763 | | Set Search Rate Type pps
764 | | Set Loss Acceptance | ${loss_acceptance}
765 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
766 | | ...            | Set Loss Acceptance Type Percentage
767 | | Set Binary Convergence Threshold | ${threshold}
768 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
769 | | ${rate_per_stream} | ${latency}= | Verify Search Result
770 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
771 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
772 | | ...                          | ${latency}
773 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
774 | | ...                                   | ${framesize} | ${topology_type}
775 | | ...                                   | ${loss_acceptance}
776 | | ...                                   | ${loss_acceptance_type}
777 | | ...                                   | fail_on_loss=${False}
778
779 | Find NDR using combined search and pps
780 | | [Documentation]
781 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
782 | | ... | non drop rate.
783 | | ...
784 | | ... | *Arguments:*
785 | | ... | - framesize - L2 Frame Size [B]. Type: integer
786 | | ... | - start_rate - Initial start rate [pps]. Type: float
787 | | ... | - step_rate - Step of linear search [pps]. Type: float
788 | | ... | - topology_type - Topology type. Type: string
789 | | ... | - min_rate - Lower limit of search [pps]. Type: float
790 | | ... | - max_rate - Upper limit of search [pps]. Type: float
791 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
792 | | ...
793 | | ... | *Example:*
794 | | ...
795 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
796 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
797 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
798 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
799 | | ${duration}= | Set Variable | 10
800 | | Set Duration | ${duration}
801 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
802 | | Set Search Linear Step | ${step_rate}
803 | | Set Search Frame Size | ${framesize}
804 | | Set Search Rate Type pps
805 | | Set Binary Convergence Threshold | ${threshold}
806 | | Combined Search | ${start_rate} | ${topology_type}
807 | | ${rate_per_stream} | ${latency}= | Verify Search Result
808 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
809 | | ...                          | ${latency}
810 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
811 | | ...                              | ${framesize} | ${topology_type}
812 | | ...                              | fail_on_loss=${False}
813
814 | Find PDR using combined search and pps
815 | | [Documentation]
816 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
817 | | ... | partial drop rate with PDR threshold and type specified by parameter.
818 | | ...
819 | | ... | *Arguments:*
820 | | ... | - framesize - L2 Frame Size [B]. Type: integer
821 | | ... | - start_rate - Initial start rate [pps]. Type: float
822 | | ... | - step_rate - Step of linear search [pps]. Type: float
823 | | ... | - topology_type - Topology type. Type: string
824 | | ... | - min_rate - Lower limit of search [pps]. Type: float
825 | | ... | - max_rate - Upper limit of search [pps]. Type: float
826 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
827 | | ... | - loss_acceptance - Accepted loss during search. Type: float
828 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
829 | | ...
830 | | ... | *Example:*
831 | | ...
832 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
833 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
834 | | ... | \| percentage
835 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
836 | | ...         | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
837 | | ...         | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
838 | | ${duration}= | Set Variable | 10
839 | | Set Duration | ${duration}
840 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
841 | | Set Search Linear Step | ${step_rate}
842 | | Set Search Frame Size | ${framesize}
843 | | Set Search Rate Type pps
844 | | Set Loss Acceptance | ${loss_acceptance}
845 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
846 | | ...            | Set Loss Acceptance Type Percentage
847 | | Set Binary Convergence Threshold | ${threshold}
848 | | Combined Search | ${start_rate} | ${topology_type}
849 | | ${rate_per_stream} | ${latency}= | Verify Search Result
850 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
851 | | ...                          | ${loss_acceptance} | ${loss_acceptance_type}
852 | | ...                          | ${latency}
853 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
854 | | ...                                   | ${framesize} | ${topology_type}
855 | | ...                                   | ${loss_acceptance}
856 | | ...                                   | ${loss_acceptance_type}
857 | | ...                                   | fail_on_loss=${False}
858
859 | Display result of NDR search
860 | | [Documentation]
861 | | ... | Display result of NDR search in packet per seconds (total and per
862 | | ... | stream) and Gbps total bandwidth with untagged packet.
863 | | ... | Througput is calculated as:
864 | | ... | Measured rate per stream * Total number of streams
865 | | ... | Bandwidth is calculated as:
866 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
867 | | ...
868 | | ... | *Arguments:*
869 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
870 | | ... | - framesize - L2 Frame Size [B]. Type: integer
871 | | ... | - nr_streams - Total number of streams. Type: integer
872 | | ... | - latency - Latency stats. Type: dictionary
873 | | ...
874 | | ... | *Example:*
875 | | ...
876 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
877 | | ... | \| (0, 10/10/10) \|
878 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
879 | | ...         | ${latency}
880 | | ${framesize}= | Get Frame Size | ${framesize}
881 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
882 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
883 | | Set Test Message | FINAL_RATE: ${rate_total} pps
884 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
885 | | ...              | append=yes
886 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
887 | | ...              | append=yes
888 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
889 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
890 | | ...                | append=yes
891
892 | Display result of PDR search
893 | | [Documentation]
894 | | ... | Display result of PDR search in packet per seconds (total and per
895 | | ... | stream) and Gbps total bandwidth with untagged packet.
896 | | ... | Througput is calculated as:
897 | | ... | Measured rate per stream * Total number of streams
898 | | ... | Bandwidth is calculated as:
899 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
900 | | ...
901 | | ... | *Arguments:*
902 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
903 | | ... | - framesize - L2 Frame Size [B]. Type: integer
904 | | ... | - nr_streams - Total number of streams. Type: integer
905 | | ... | - loss_acceptance - Accepted loss during search. Type: float
906 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
907 | | ... | - latency - Latency stats. Type: dictionary
908 | | ...
909 | | ... | *Example:*
910 | | ...
911 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
912 | | ... | \| percentage \| (0, 10/10/10) \|
913 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
914 | | ...         | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
915 | | ${framesize}= | Get Frame Size | ${framesize}
916 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
917 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
918 | | Set Test Message | FINAL_RATE: ${rate_total} pps
919 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
920 | | ...              | append=yes
921 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
922 | | ...              | append=yes
923 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
924 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
925 | | ...                | append=yes
926 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
927 | | ...              | append=yes
928
929 | Traffic should pass with no loss
930 | | [Documentation]
931 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
932 | | ... | evaluation.
933 | | ...
934 | | ... | *Arguments:*
935 | | ... | - duration - Duration of traffic run [s]. Type: integer
936 | | ... | - rate - Rate for sending packets. Type: string
937 | | ... | - framesize - L2 Frame Size [B]. Type: integer
938 | | ... | - topology_type - Topology type. Type: string
939 | | ...
940 | | ... | *Example:*
941 | | ...
942 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
943 | | ... | \| 3-node-IPv4
944 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
945 | | ...         | ${fail_on_loss}=${True}
946 | | Clear and show runtime counters with running traffic | ${duration}
947 | | ...  | ${rate} | ${framesize} | ${topology_type}
948 | | Clear all counters on all DUTs
949 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
950 | | ...                | ${topology_type} | warmup_time=0
951 | | Show statistics on all DUTs
952 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
953
954 | Traffic should pass with partial loss
955 | | [Documentation]
956 | | ... | Send traffic at specified rate. Partial packet loss is accepted
957 | | ... | within loss acceptance value specified as argument.
958 | | ...
959 | | ... | *Arguments:*
960 | | ... | - duration - Duration of traffic run [s]. Type: integer
961 | | ... | - rate - Rate for sending packets. Type: string
962 | | ... | - framesize - L2 Frame Size [B]. Type: integer
963 | | ... | - topology_type - Topology type. Type: string
964 | | ... | - loss_acceptance - Accepted loss during search. Type: float
965 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
966 | | ...
967 | | ... | *Example:*
968 | | ...
969 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
970 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
971 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
972 | | ...         | ${loss_acceptance} | ${loss_acceptance_type}
973 | | ...         | ${fail_on_loss}=${True}
974 | | Clear and show runtime counters with running traffic | ${duration}
975 | | ...  | ${rate} | ${framesize} | ${topology_type}
976 | | Clear all counters on all DUTs
977 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
978 | | ...                | ${topology_type} | warmup_time=0
979 | | Show statistics on all DUTs
980 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
981 | | ...            | ${loss_acceptance} | ${loss_acceptance_type}
982
983 | Clear and show runtime counters with running traffic
984 | | [Documentation]
985 | | ... | Start traffic at specified rate then clear runtime counters on all
986 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
987 | | ... | on all DUTs. Finally stop traffic
988 | | ...
989 | | ... | *Arguments:*
990 | | ... | - duration - Duration of traffic run [s]. Type: integer
991 | | ... | - rate - Rate for sending packets. Type: string
992 | | ... | - framesize - L2 Frame Size [B]. Type: integer
993 | | ... | - topology_type - Topology type. Type: string
994 | | ...
995 | | ... | *Example:*
996 | | ...
997 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
998 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
999 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1000 | | Send traffic on tg | -1 | ${rate} | ${framesize}
1001 | | ...                | ${topology_type} | warmup_time=0 | async_call=${True}
1002 | | ...                | latency=${False}
1003 | | Clear runtime counters on all DUTs
1004 | | Sleep | ${duration}
1005 | | Show runtime counters on all DUTs
1006 | | Stop traffic on tg
1007
1008 | Add PCI devices to DUTs from 3-node single link topology
1009 | | ${dut1_if1_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if1}
1010 | | ${dut1_if2_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if2}
1011 | | ${dut2_if1_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if1}
1012 | | ${dut2_if2_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if2}
1013 | | Add PCI device | ${dut1} | ${dut1_if1_pci} | ${dut1_if2_pci}
1014 | | Add PCI device | ${dut2} | ${dut2_if1_pci} | ${dut2_if2_pci}
1015
1016 | Guest VM with dpdk-testpmd connected via vhost-user is setup
1017 | | [Documentation]
1018 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1019 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1020 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1021 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1022 | | ... | burst=64, disable-hw-vlan, total-num-mbufs, driver
1023 | | ... | usr/lib/librte_pmd_virtio.so.
1024 | | ...
1025 | | ... | *Arguments:*
1026 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1027 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1028 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1029 | | ... | - vm_name - QemuUtil instance name. Type: string
1030 | | ...
1031 | | ... | *Example:*
1032 | | ...
1033 | | ... | \| Guest VM with dpdk-testpmd connected via vhost-user is setup \
1034 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1035 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1036 | | Import Library | resources.libraries.python.QemuUtils
1037 | | ...            | WITH NAME | ${vm_name}
1038 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1039 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1040 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1041 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1042 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1043 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1044 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1045 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1046 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1047 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1048 | | ...                | eal_mem_channels=4
1049 | | ...                | eal_socket_mem=1024
1050 | | ...                | pmd_fwd_mode=io
1051 | | ...                | pmd_disable_hw_vlan=${True}
1052 | | Return From Keyword | ${vm}
1053
1054 | Guest VM with Linux Bridge connected via vhost-user is setup
1055 | | [Documentation]
1056 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1057 | | ... | linux bridge. Qemu Guest is using 3 cores pinned to physical cores 5,
1058 | | ... | 6, 7 and 2048M.
1059 | | ...
1060 | | ... | *Arguments:*
1061 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1062 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1063 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1064 | | ... | - vm_name - QemuUtil instance name. Type: string
1065 | | ...
1066 | | ... | *Example:*
1067 | | ...
1068 | | ... | \| Guest VM with Linux Bridge connected via vhost-user is setup \
1069 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1070 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1071 | | Import Library | resources.libraries.python.QemuUtils
1072 | | ...            | WITH NAME | ${vm_name}
1073 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1074 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1075 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1076 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1077 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1078 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1079 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1080 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1081 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1082 | | ${br}= | Set Variable | br0
1083 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
1084 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
1085 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
1086 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
1087 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
1088 | | Set Interface State | ${vm} | ${br} | up | if_type=name
1089 | | Return From Keyword | ${vm}
1090
1091 | Guest VM with dpdk-testpmd Teardown
1092 | | [Documentation]
1093 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
1094 | | ... | Argument is dictionary of all qemu nodes running with its names.
1095 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
1096 | | ... |
1097 | | ... | *Arguments:*
1098 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1099 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1100 | | ...
1101 | | ... | *Example:*
1102 | | ...
1103 | | ... | \| Guest VM with dpdk-testpmd Teardown \| ${node['DUT1']} \
1104 | | ... | \| ${dut_vm_refs} \|
1105 | | ...
1106 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1107 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1108 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1109 | | | Dpdk Testpmd Stop | ${vm}
1110 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1111 | | | Run Keyword | ${vm_name}.Qemu Kill
1112 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1113
1114 | Guest VM Teardown
1115 | | [Documentation]
1116 | | ... | Stop all qemu processes running on ${dut_node}.
1117 | | ... | Argument is dictionary of all qemu nodes running with its names.
1118 | | ... |
1119 | | ... | *Arguments:*
1120 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1121 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1122 | | ...
1123 | | ... | *Example:*
1124 | | ...
1125 | | ... | \| Guest VM Teardown \| ${node['DUT1']} \
1126 | | ... | \| ${dut_vm_refs} \|
1127 | | ...
1128 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1129 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1130 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1131 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1132 | | | Run Keyword | ${vm_name}.Qemu Kill
1133 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1134
1135 | Lisp IPv4 forwarding initialized in a 3-node circular topology
1136 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
1137 | | ...             | Don`t set route.
1138 | | ...
1139 | | ... | *Arguments:*
1140 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1141 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1142 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1143 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1144 | | ... | -${duts_prefix} - ip prefix. Type: int
1145 | | ...
1146 | | ... | *Return:*
1147 | | ... | - No value returned
1148 | | ...
1149 | | ... | *Example:*
1150 | | ... | \| Lisp IPv4 forwarding initialized in a 3-node circular topology \
1151 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1152 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1153 | | ...
1154 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1155 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1156 | | ...         | ${duts_prefix}
1157 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1158 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1159 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1160 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1161 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1162 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1163 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1164 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1165 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1166 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_address} | ${dut2_if1_mac}
1167 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_address} | ${dut1_if2_mac}
1168 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1169 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_address} | ${duts_prefix}
1170 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_address} | ${duts_prefix}
1171 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_address} | ${duts_prefix}
1172 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_address} | ${duts_prefix}
1173 | | All Vpp Interfaces Ready Wait | ${nodes}
1174
1175 | Lisp IPv6 forwarding initialized in a 3-node circular topology
1176 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
1177 | | ...             | Don`t set route.
1178 | | ...
1179 | | ... | *Arguments:*
1180 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1181 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1182 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1183 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1184 | | ... | -${duts_prefix} - ip prefix. Type: int
1185 | | ...
1186 | | ... | *Return:*
1187 | | ... | - No value returned
1188 | | ...
1189 | | ... | *Example:*
1190 | | ... | \| Lisp IPv6 forwarding initialized in a 3-node circular topology \
1191 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1192 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1193 | | ...
1194 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1195 | | ...         | ${dut2_dut1_address} | ${dut2_tg_address}
1196 | | ...         | ${prefix}
1197 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1198 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1199 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1200 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1201 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
1202 | | ...                  | ${prefix}
1203 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
1204 | | ...                  | ${prefix}
1205 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
1206 | | ...                  | ${prefix}
1207 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
1208 | | ...                  | ${prefix}
1209 | | Vpp nodes ra suppress link layer | ${nodes}
1210 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2
1211 | | ...             | ${tg1_if1_mac}
1212 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2
1213 | | ...             | ${tg1_if2_mac}
1214 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
1215 | | ...             | ${dut2_if1_mac}
1216 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
1217 | | ...             | ${dut1_if2_mac}
1218
1219 | Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
1220 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1221 | | ...             | Don`t set route.
1222 | | ...
1223 | | ... | *Arguments:*
1224 | | ... | -${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
1225 | | ... |                             Type: string
1226 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1227 | | ... | -${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
1228 | | ... |                             Type: string
1229 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1230 | | ... | -${prefix4} - IPv4 prefix. Type: int
1231 | | ... | -${prefix6} - IPv6 prefix. Type: int
1232 | | ...
1233 | | ... | *Return:*
1234 | | ... | - No value returned
1235 | | ...
1236 | | ... | *Example:*
1237 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology \
1238 | | ... | \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
1239 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
1240 | | ... | \| ${prefix4} \| ${prefix6} \|
1241 | | ...
1242 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
1243 | | ...         | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
1244 | | ...         | ${prefix4} | ${prefix6}
1245 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1246 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1247 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1248 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1249 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1250 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1251 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1252 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1253 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_ip4_address} | ${prefix4}
1254 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
1255 | | ...                  | ${prefix6}
1256 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
1257 | | ...                  | ${prefix6}
1258 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_ip4_address} | ${prefix4}
1259 | | Vpp nodes ra suppress link layer | ${nodes}
1260 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1261 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1262 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
1263 | | ...             | ${dut2_if1_mac}
1264 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
1265 | | ...             | ${dut1_if2_mac}
1266
1267 | Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology
1268 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1269 | | ...             | Don`t set route.
1270 | | ...
1271 | | ... | *Arguments:*
1272 | | ... | -${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
1273 | | ... |                             Type: string
1274 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1275 | | ... | -${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
1276 | | ... |                             Type: string
1277 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1278 | | ... | -${prefix4} - IPv4 prefix. Type: int
1279 | | ... | -${prefix6} - IPv6 prefix. Type: int
1280 | | ...
1281 | | ... | *Return:*
1282 | | ... | - No value returned
1283 | | ...
1284 | | ... | *Example:*
1285 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
1286 | | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
1287 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
1288 | | ... | \| ${prefix4} \| ${prefix6} \|
1289 | | ...
1290 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
1291 | | ...         | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
1292 | | ...         | ${prefix4} | ${prefix6}
1293 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1294 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1295 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1296 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1297 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1298 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1299 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1300 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1301 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
1302 | | ...                  | ${prefix6}
1303 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_ip4_address} | ${prefix4}
1304 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_ip4_address} | ${prefix4}
1305 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
1306 | | ...                  | ${prefix6}
1307 | | Vpp nodes ra suppress link layer | ${nodes}
1308 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
1309 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
1310 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_ip4_address} | ${dut2_if1_mac}
1311 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_ip4_address} | ${dut1_if2_mac}
1312