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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
33 | Setup performance rate Variables
35 | | ... | Setup performance linerates as Suite Variables. Variables are used
36 | | ... | as search boundaries in RFC2544 throughput search.
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
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
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
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
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
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
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
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
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
179 | | ... | Calculate pps for given rate and L2 frame size,
180 | | ... | additional 20B are added to L2 frame size as padding.
182 | | ... | *Arguments*
183 | | ... | - bps - Rate in bps. Type: integer
184 | | ... | - framesize - L2 frame size in Bytes. Type: integer
187 | | ... | - Calculated pps. Type: integer
191 | | ... | \| Calculate pps \| 10000000000 | 64
192 | | [Arguments] | ${bps} | ${framesize}
193 | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__()
194 | | Return From Keyword | ${ret}
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.
202 | | ... | *Arguments:*
203 | | ... | - framesize - Framesize. Type: integer or string
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}
213 | Setup performance global Variables
215 | | ... | Setup suite Variables. Variables are used across performance testing.
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
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
226 | 2-node circular Topology Variables Setup
228 | | ... | Compute path for testing on two given nodes in circular
229 | | ... | topology and set corresponding suite variables.
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.
239 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
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}
252 | 3-node circular Topology Variables Setup
254 | | ... | Compute path for testing on three given nodes in circular
255 | | ... | topology and set corresponding suite variables.
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.
268 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
269 | | ... | ${nodes['TG']}
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}
287 | 2-node circular Topology Variables Setup with DUT interface model
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.
293 | | ... | *Arguments:*
294 | | ... | - iface_model - Interface model. Type: string
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.
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']}
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}
325 | 3-node circular Topology Variables Setup with DUT interface model
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.
331 | | ... | *Arguments:*
332 | | ... | - iface_model - Interface model. Type: string
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.
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']}
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}
372 | VPP interfaces in path are up in a 2-node circular topology
374 | | ... | *Set UP state on VPP interfaces in path on nodes in 2-node circular
377 | | Set Interface State | ${dut1} | ${dut1_if1} | up
378 | | Set Interface State | ${dut1} | ${dut1_if2} | up
379 | | Vpp Node Interfaces Ready Wait | ${dut1}
381 | VPP interfaces in path are up in a 3-node circular topology
383 | | ... | *Set UP state on VPP interfaces in path on nodes in 3-node circular
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}
393 | IPv4 forwarding initialized in a 3-node circular topology
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.
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}
421 | Scale IPv4 forwarding initialized in a 3-node circular topology
423 | | ... | Custom setup of IPv4 topology with scalability of ip routes on all
424 | | ... | DUT nodes in 3-node circular topology
426 | | ... | *Arguments:*
427 | | ... | - ${count} - IP route count. Type: integer
430 | | ... | - No value returned
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}
463 | IPv4 forwarding with vhost initialized in a 3-node circular topology
465 | | ... | Create vhost-user interfaces in VPP. Set UP state of all VPP
466 | | ... | interfaces in path on nodes in 3-node circular topology. Create 2
467 | | ... | FIB tables on each DUT with multipath routing. Assign pair of
468 | | ... | Physical and Virtual interfaces on both nodes to each FIB table.
469 | | ... | Setup IPv4 addresses with /30 prefix on DUT-TG links and /30 prefix
470 | | ... | on DUT1-DUT2 link. Set routing on all DUT nodes in all FIB tables
471 | | ... | with prefix /24 and next hop of neighbour IPv4 address. Setup
472 | | ... | ARP on all VPP interfaces.
474 | | ... | *Arguments:*
475 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
476 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
479 | | ... | - No value returned
483 | | ... | \| IPv4 forwarding with vhost initialized in a 3-node circular \
484 | | ... | topology \| /tmp/sock1 \| /tmp/sock2 \|
485 | | [Arguments] | ${sock1} | ${sock2}
486 | | VPP interfaces in path are up in a 3-node circular topology
487 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
490 | | ${dut1_vif1}= | Set Variable | ${vhost_if1}
491 | | ${dut1_vif2}= | Set Variable | ${vhost_if2}
492 | | Set Interface State | ${dut1} | ${dut1_vif1} | up
493 | | Set Interface State | ${dut1} | ${dut1_vif2} | up
494 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
497 | | ${dut2_vif1}= | Set Variable | ${vhost_if1}
498 | | ${dut2_vif2}= | Set Variable | ${vhost_if2}
499 | | Set Interface State | ${dut2} | ${dut2_vif1} | up
500 | | Set Interface State | ${dut2} | ${dut2_vif2} | up
501 | | ${dut1_vif1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif1}
502 | | ${dut1_vif2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif2}
503 | | ${dut1_if1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_if1}
504 | | ${dut1_if2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_if2}
505 | | ${dut2_vif1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif1}
506 | | ${dut2_vif2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif2}
507 | | ${dut2_if1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_if1}
508 | | ${dut2_if2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_if2}
509 | | Add fib table | ${dut1} | 20.20.20.0 | 24 | ${fib_table_1}
510 | | ... |Â via 4.4.4.2 sw_if_index ${dut1_vif1_idx} multipath
511 | | Add fib table | ${dut1} | 10.10.10.0 | 24 | ${fib_table_1}
512 | | ... |Â via 1.1.1.2 sw_if_index ${dut1_if1_idx} multipath
513 | | Add fib table | ${dut1} | 20.20.20.0 | 24 | ${fib_table_2}
514 | | ... |Â via 2.2.2.2 sw_if_index ${dut1_if2_idx} multipath
515 | | Add fib table | ${dut1} | 10.10.10.0 | 24 | ${fib_table_2}
516 | | ... |Â via 5.5.5.2 sw_if_index ${dut1_vif2_idx} multipath
517 | | Add fib table | ${dut2} | 10.10.10.0 | 24 | ${fib_table_1}
518 | | ... |Â via 2.2.2.1 sw_if_index ${dut2_if1_idx} multipath
519 | | Add fib table | ${dut2} | 20.20.20.0 | 24 | ${fib_table_1}
520 | | ... |Â via 4.4.4.1 sw_if_index ${dut2_vif1_idx} multipath
521 | | Add fib table | ${dut2} | 10.10.10.0 | 24 | ${fib_table_2}
522 | | ... |Â via 5.5.5.2 sw_if_index ${dut2_vif2_idx} multipath
523 | | Add fib table | ${dut2} | 20.20.20.0 | 24 | ${fib_table_2}
524 | | ... |Â via 3.3.3.2 sw_if_index ${dut2_if2_idx} multipath
525 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if1} | ${fib_table_1}
526 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif1} | ${fib_table_1}
527 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if2} | ${fib_table_2}
528 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif2} | ${fib_table_2}
529 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if1} | ${fib_table_1}
530 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif1} | ${fib_table_1}
531 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if2} | ${fib_table_2}
532 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif2} | ${fib_table_2}
533 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
534 | | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
535 | | IP addresses are set on interfaces | ${dut1} | ${dut1_vif1} | 4.4.4.1 | 30
536 | | IP addresses are set on interfaces | ${dut1} | ${dut1_vif2} | 5.5.5.1 | 30
537 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
538 | | IP addresses are set on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.1 | 30
539 | | IP addresses are set on interfaces | ${dut2} | ${dut2_vif1} | 4.4.4.1 | 30
540 | | IP addresses are set on interfaces | ${dut2} | ${dut2_vif2} | 5.5.5.1 | 30
541 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
542 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
543 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
544 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
545 | | ${dut1_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
546 | | ... | ${dut1_vif1_idx}
547 | | ${dut1_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
548 | | ... | ${dut1_vif2_idx}
549 | | ${dut2_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
550 | | ... | ${dut2_vif1_idx}
551 | | ${dut2_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
552 | | ... | ${dut2_vif2_idx}
553 | | Set Test Variable | ${dut1_vif1_mac}
554 | | Set Test Variable | ${dut1_vif2_mac}
555 | | Set Test Variable | ${dut2_vif1_mac}
556 | | Set Test Variable | ${dut2_vif2_mac}
557 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
558 | | ... | vrf=${fib_table_1}
559 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
560 | | ... | vrf=${fib_table_2}
561 | | Add arp on dut | ${dut1} | ${dut1_vif1} | 4.4.4.2 | 52:54:00:00:04:01
562 | | ... | vrf=${fib_table_1}
563 | | Add arp on dut | ${dut1} | ${dut1_vif2} | 5.5.5.2 | 52:54:00:00:04:02
564 | | ... | vrf=${fib_table_2}
565 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
566 | | ... | vrf=${fib_table_1}
567 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.2 | ${tg1_if2_mac}
568 | | ... | vrf=${fib_table_2}
569 | | Add arp on dut | ${dut2} | ${dut2_vif1} | 4.4.4.2 | 52:54:00:00:04:01
570 | | ... | vrf=${fib_table_1}
571 | | Add arp on dut | ${dut2} | ${dut2_vif2} | 5.5.5.2 | 52:54:00:00:04:02
572 | | ... | vrf=${fib_table_2}
573 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut1_vif1}
574 | | ... | vrf=${fib_table_1}
575 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut1_if1}
576 | | ... | vrf=${fib_table_1}
577 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 2.2.2.2 | ${dut1_if2}
578 | | ... | vrf=${fib_table_2}
579 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut1_vif2}
580 | | ... | vrf=${fib_table_2}
581 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut2_vif1}
582 | | ... | vrf=${fib_table_1}
583 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 2.2.2.1 | ${dut2_if1}
584 | | ... | vrf=${fib_table_1}
585 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 3.3.3.2 | ${dut2_if2}
586 | | ... | vrf=${fib_table_2}
587 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut2_vif2}
588 | | ... | vrf=${fib_table_2}
590 | IPv6 forwarding initialized in a 3-node circular topology
592 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
593 | | ... | topology. Get the interface MAC addresses and setup neighbour on all
594 | | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all
595 | | ... | interfaces. Set routing on both DUT nodes with prefix /64 and
596 | | ... | next hop of neighbour DUT interface IPv6 address.
598 | | ${prefix}= | Set Variable | 64
599 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
600 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
601 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
602 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
603 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix}
604 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:3::1 | ${prefix}
605 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:3::2 | ${prefix}
606 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:2::1 | ${prefix}
607 | | Vpp nodes ra suppress link layer | ${nodes}
608 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
609 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
610 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:3::2 | ${dut2_if1_mac}
611 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac}
612 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2}
613 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1}
615 | Scale IPv6 forwarding initialized in a 3-node circular topology
617 | | ... | Custom setup of IPv6 topology with scalability of ip routes on all
618 | | ... | DUT nodes in 3-node circular topology
620 | | ... | *Arguments:*
621 | | ... | - ${count} - IP route count. Type: integer
624 | | ... | - No value returned
628 | | ... | \| Scale IPv6 forwarding initialized in a 3-node circular topology \
629 | | ... | \| 100000 \|
630 | | [Arguments] | ${count}
631 | | ${subn_prefix}= | Set Variable | 64
632 | | ${host_prefix}= | Set Variable | 128
633 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:3::1 | ${subn_prefix}
634 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:4::1 | ${subn_prefix}
635 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:4::2 | ${subn_prefix}
636 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:5::1 | ${subn_prefix}
637 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
638 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
639 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
640 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
641 | | Vpp nodes ra suppress link layer | ${nodes}
642 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:3::2 | ${tg1_if1_mac}
643 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:4::2 | ${dut2_if1_mac}
644 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:4::1 | ${dut1_if2_mac}
645 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:5::2 | ${tg1_if2_mac}
646 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${host_prefix} | 2001:4::2
647 | | ... | interface=${dut1_if2} | count=${count}
648 | | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
649 | | ... | interface=${dut1_if1} | count=${count}
650 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
651 | | ... | interface=${dut2_if2} | count=${count}
652 | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
653 | | ... | interface=${dut2_if1} | count=${count}
655 | IPv6 iAcl whitelist initialized in a 3-node circular topology
657 | | ... | Creates classify L3 table on DUTs. IPv6 iAcl security whitelist
658 | | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
660 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
661 | | ... | ${dut1} | ip6 | dst
662 | | And Vpp Configures Classify Session L3
663 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
664 | | ... | ip6 | dst | 2001:2::2
665 | | And Vpp Enable Input Acl Interface
666 | | ... | ${dut1} | ${dut1_if1} | ip6 | ${table_idx}
667 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
668 | | ... | ${dut2} | ip6 | dst
669 | | And Vpp Configures Classify Session L3
670 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
671 | | ... | ip6 | dst | 2001:1::2
672 | | And Vpp Enable Input Acl Interface
673 | | ... | ${dut2} | ${dut2_if2} | ip6 | ${table_idx}
675 | L2 xconnect initialized in a 3-node circular topology
677 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
678 | | ... | each DUT. Interfaces are brought up.
680 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
681 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
682 | | All Vpp Interfaces Ready Wait | ${nodes}
684 | L2 bridge domain initialized in a 3-node circular topology
686 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
687 | | ... | that is created automatically with index 1. Learning is enabled.
688 | | ... | Interfaces are brought up.
690 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
691 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
692 | | All Vpp Interfaces Ready Wait | ${nodes}
694 | L2 bridge domains with Vhost-User initialized in a 3-node circular topology
696 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
697 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
698 | | ... | with physical inteface.
700 | | ... | *Arguments:*
701 | | ... | - bd_id1 - Bridge domain ID. Type: integer
702 | | ... | - bd_id2 - Bridge domain ID. Type: integer
703 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
704 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
708 | | ... | \| L2 bridge domains with Vhost-User initialized in a 3-node \
709 | | ... | circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
710 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
711 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1}
714 | | Interface is added to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
715 | | Interface is added to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
716 | | Interface is added to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
717 | | Interface is added to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
718 | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2}
721 | | Interface is added to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id1}
722 | | Interface is added to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
723 | | Interface is added to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
724 | | Interface is added to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
725 | | All Vpp Interfaces Ready Wait | ${nodes}
727 2-node Performance Suite Setup with DUT's NIC model
729 | | ... | Suite preparation phase that setup default startup configuration of
730 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
731 | | ... | variables used in test cases based on interface model provided as an
732 | | ... | argument. Initializes traffic generator.
734 | | ... | *Arguments:*
735 | | ... | - topology_type - Topology type. Type: string
736 | | ... | - nic_model - Interface model. Type: string
740 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
741 | | [Arguments] | ${topology_type} | ${nic_model}
742 | | Setup default startup configuration of VPP on all DUTs
743 | | Show vpp version on all DUTs
744 | | Setup performance rate Variables
745 | | Setup performance global Variables
746 | | 2-node circular Topology Variables Setup with DUT interface model
747 | | ... | ${nic_model}
748 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
749 | | ... | ${dut1} | ${dut1_if1}
750 | | ... | ${dut1} | ${dut1_if2}
751 | | ... | ${topology_type}
753 3-node Performance Suite Setup with DUT's NIC model
755 | | ... | Suite preparation phase that setup default startup configuration of
756 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
757 | | ... | variables used in test cases based on interface model provided as an
758 | | ... | argument. Initializes traffic generator.
760 | | ... | *Arguments:*
761 | | ... | - topology_type - Topology type. Type: string
762 | | ... | - nic_model - Interface model. Type: string
766 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
767 | | [Arguments] | ${topology_type} | ${nic_model}
768 | | Setup default startup configuration of VPP on all DUTs
769 | | Show vpp version on all DUTs
770 | | Setup performance rate Variables
771 | | Setup performance global Variables
772 | | 3-node circular Topology Variables Setup with DUT interface model
773 | | ... | ${nic_model}
774 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
775 | | ... | ${dut1} | ${dut1_if1}
776 | | ... | ${dut2} | ${dut2_if2}
777 | | ... | ${topology_type}
779 | 3-node Performance Suite Teardown
781 | | ... | Suite teardown phase with traffic generator teardown.
783 | | Teardown traffic generator | ${tg}
785 | Find NDR using linear search and pps
787 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
789 | | ... | *Arguments:*
790 | | ... | - framesize - L2 Frame Size [B]. Type: integer
791 | | ... | - start_rate - Initial start rate [pps]. Type: float
792 | | ... | - step_rate - Step of linear search [pps]. Type: float
793 | | ... | - topology_type - Topology type. Type: string
794 | | ... | - min_rate - Lower limit of search [pps]. Type: float
795 | | ... | - max_rate - Upper limit of search [pps]. Type: float
798 | | ... | - No value returned
802 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \| \
803 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952
804 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
805 | | ... | ${topology_type} | ${min_rate} | ${max_rate}
806 | | ${duration}= | Set Variable | 10
807 | | Set Duration | ${duration}
808 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
809 | | Set Search Linear Step | ${step_rate}
810 | | Set Search Frame Size | ${framesize}
811 | | Set Search Rate Type pps
812 | | Linear Search | ${start_rate} | ${topology_type}
813 | | ${rate_per_stream} | ${latency}= | Verify Search Result
814 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
816 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
817 | | ... | ${framesize} | ${topology_type}
818 | | ... | fail_on_loss=${False}
820 | Find PDR using linear search and pps
822 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
823 | | ... | with PDR threshold and type specified by parameter.
825 | | ... | *Arguments:*
826 | | ... | - framesize - L2 Frame Size [B]. Type: integer
827 | | ... | - start_rate - Initial start rate [pps]. Type: float
828 | | ... | - step_rate - Step of linear search [pps]. Type: float
829 | | ... | - topology_type - Topology type. Type: string
830 | | ... | - min_rate - Lower limit of search [pps]. Type: float
831 | | ... | - max_rate - Upper limit of search [pps]. Type: float
832 | | ... | - loss_acceptance - Accepted loss during search. Type: float
833 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
837 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
838 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage
839 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
840 | | ... | ${topology_type} | ${min_rate} | ${max_rate}
841 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
842 | | ${duration}= | Set Variable | 10
843 | | Set Duration | ${duration}
844 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
845 | | Set Search Linear Step | ${step_rate}
846 | | Set Search Frame Size | ${framesize}
847 | | Set Search Rate Type pps
848 | | Set Loss Acceptance | ${loss_acceptance}
849 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
850 | | ... | Set Loss Acceptance Type Percentage
851 | | Linear Search | ${start_rate} | ${topology_type}
852 | | ${rate_per_stream} | ${latency}= | Verify Search Result
853 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
854 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
856 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
857 | | ... | ${framesize} | ${topology_type}
858 | | ... | ${loss_acceptance}
859 | | ... | ${loss_acceptance_type}
860 | | ... | fail_on_loss=${False}
862 | Find NDR using binary search and pps
864 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
866 | | ... | *Arguments:*
867 | | ... | - framesize - L2 Frame Size [B]. Type: integer
868 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
869 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
870 | | ... | - topology_type - Topology type. Type: string
871 | | ... | - min_rate - Lower limit of search [pps]. Type: float
872 | | ... | - max_rate - Upper limit of search [pps]. Type: float
873 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
877 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
878 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000
879 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
880 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
881 | | ${duration}= | Set Variable | 10
882 | | Set Duration | ${duration}
883 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
884 | | Set Search Frame Size | ${framesize}
885 | | Set Search Rate Type pps
886 | | Set Binary Convergence Threshold | ${threshold}
887 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
888 | | ${rate_per_stream} | ${latency}= | Verify Search Result
889 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
891 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
892 | | ... | ${framesize} | ${topology_type}
893 | | ... | fail_on_loss=${False}
895 | Find PDR using binary search and pps
897 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
898 | | ... | with PDR threshold and type specified by parameter.
900 | | ... | *Arguments:*
901 | | ... | - framesize - L2 Frame Size [B]. Type: integer
902 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
903 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
904 | | ... | - topology_type - Topology type. Type: string
905 | | ... | - min_rate - Lower limit of search [pps]. Type: float
906 | | ... | - max_rate - Upper limit of search [pps]. Type: float
907 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
908 | | ... | - loss_acceptance - Accepted loss during search. Type: float
909 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
913 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
914 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
915 | | ... | \| percentage
916 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
917 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
918 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
919 | | ${duration}= | Set Variable | 10
920 | | Set Duration | ${duration}
921 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
922 | | Set Search Frame Size | ${framesize}
923 | | Set Search Rate Type pps
924 | | Set Loss Acceptance | ${loss_acceptance}
925 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
926 | | ... | Set Loss Acceptance Type Percentage
927 | | Set Binary Convergence Threshold | ${threshold}
928 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
929 | | ${rate_per_stream} | ${latency}= | Verify Search Result
930 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
931 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
933 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
934 | | ... | ${framesize} | ${topology_type}
935 | | ... | ${loss_acceptance}
936 | | ... | ${loss_acceptance_type}
937 | | ... | fail_on_loss=${False}
939 | Find NDR using combined search and pps
941 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
942 | | ... | non drop rate.
944 | | ... | *Arguments:*
945 | | ... | - framesize - L2 Frame Size [B]. Type: integer
946 | | ... | - start_rate - Initial start rate [pps]. Type: float
947 | | ... | - step_rate - Step of linear search [pps]. Type: float
948 | | ... | - topology_type - Topology type. Type: string
949 | | ... | - min_rate - Lower limit of search [pps]. Type: float
950 | | ... | - max_rate - Upper limit of search [pps]. Type: float
951 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
955 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
956 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000
957 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
958 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
959 | | ${duration}= | Set Variable | 10
960 | | Set Duration | ${duration}
961 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
962 | | Set Search Linear Step | ${step_rate}
963 | | Set Search Frame Size | ${framesize}
964 | | Set Search Rate Type pps
965 | | Set Binary Convergence Threshold | ${threshold}
966 | | Combined Search | ${start_rate} | ${topology_type}
967 | | ${rate_per_stream} | ${latency}= | Verify Search Result
968 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
970 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
971 | | ... | ${framesize} | ${topology_type}
972 | | ... | fail_on_loss=${False}
974 | Find PDR using combined search and pps
976 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
977 | | ... | partial drop rate with PDR threshold and type specified by parameter.
979 | | ... | *Arguments:*
980 | | ... | - framesize - L2 Frame Size [B]. Type: integer
981 | | ... | - start_rate - Initial start rate [pps]. Type: float
982 | | ... | - step_rate - Step of linear search [pps]. Type: float
983 | | ... | - topology_type - Topology type. Type: string
984 | | ... | - min_rate - Lower limit of search [pps]. Type: float
985 | | ... | - max_rate - Upper limit of search [pps]. Type: float
986 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
987 | | ... | - loss_acceptance - Accepted loss during search. Type: float
988 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
992 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
993 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
994 | | ... | \| percentage
995 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
996 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
997 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
998 | | ${duration}= | Set Variable | 10
999 | | Set Duration | ${duration}
1000 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
1001 | | Set Search Linear Step | ${step_rate}
1002 | | Set Search Frame Size | ${framesize}
1003 | | Set Search Rate Type pps
1004 | | Set Loss Acceptance | ${loss_acceptance}
1005 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
1006 | | ... | Set Loss Acceptance Type Percentage
1007 | | Set Binary Convergence Threshold | ${threshold}
1008 | | Combined Search | ${start_rate} | ${topology_type}
1009 | | ${rate_per_stream} | ${latency}= | Verify Search Result
1010 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
1011 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1012 | | ... | ${latency}
1013 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
1014 | | ... | ${framesize} | ${topology_type}
1015 | | ... | ${loss_acceptance}
1016 | | ... | ${loss_acceptance_type}
1017 | | ... | fail_on_loss=${False}
1019 | Display result of NDR search
1021 | | ... | Display result of NDR search in packet per seconds (total and per
1022 | | ... | stream) and Gbps total bandwidth with untagged packet.
1023 | | ... | Througput is calculated as:
1024 | | ... | Measured rate per stream * Total number of streams
1025 | | ... | Bandwidth is calculated as:
1026 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1028 | | ... | *Arguments:*
1029 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1030 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1031 | | ... | - nr_streams - Total number of streams. Type: integer
1032 | | ... | - latency - Latency stats. Type: dictionary
1034 | | ... | *Example:*
1036 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
1037 | | ... | \| (0, 10/10/10) \|
1038 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1039 | | ... | ${latency}
1040 | | ${framesize}= | Get Frame Size | ${framesize}
1041 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1042 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1043 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1044 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1045 | | ... | append=yes
1046 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1047 | | ... | append=yes
1048 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1049 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1050 | | ... | append=yes
1052 | Display result of PDR search
1054 | | ... | Display result of PDR search in packet per seconds (total and per
1055 | | ... | stream) and Gbps total bandwidth with untagged packet.
1056 | | ... | Througput is calculated as:
1057 | | ... | Measured rate per stream * Total number of streams
1058 | | ... | Bandwidth is calculated as:
1059 | | ... | (Througput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
1061 | | ... | *Arguments:*
1062 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
1063 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1064 | | ... | - nr_streams - Total number of streams. Type: integer
1065 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1066 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1067 | | ... | - latency - Latency stats. Type: dictionary
1069 | | ... | *Example:*
1071 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
1072 | | ... | \| percentage \| (0, 10/10/10) \|
1073 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
1074 | | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
1075 | | ${framesize}= | Get Frame Size | ${framesize}
1076 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
1077 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
1078 | | Set Test Message | FINAL_RATE: ${rate_total} pps
1079 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps)
1080 | | ... | append=yes
1081 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
1082 | | ... | append=yes
1083 | | :FOR | ${idx} | ${lat} | IN ENUMERATE | @{latency}
1084 | | | Set Test Message | ${\n}LATENCY_STREAM_${idx}: ${lat} usec (min/avg/max)
1085 | | ... | append=yes
1086 | | Set Test Message | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
1087 | | ... | append=yes
1089 | Traffic should pass with no loss
1091 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
1092 | | ... | evaluation.
1094 | | ... | *Arguments:*
1095 | | ... | - duration - Duration of traffic run [s]. Type: integer
1096 | | ... | - rate - Rate for sending packets. Type: string
1097 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1098 | | ... | - topology_type - Topology type. Type: string
1100 | | ... | *Example:*
1102 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
1103 | | ... | \| 3-node-IPv4
1104 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1105 | | ... | ${fail_on_loss}=${True}
1106 | | Clear and show runtime counters with running traffic | ${duration}
1107 | | ... | ${rate} | ${framesize} | ${topology_type}
1108 | | Clear all counters on all DUTs
1109 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1110 | | ... | ${topology_type} | warmup_time=0
1111 | | Show statistics on all DUTs
1112 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
1114 | Traffic should pass with partial loss
1116 | | ... | Send traffic at specified rate. Partial packet loss is accepted
1117 | | ... | within loss acceptance value specified as argument.
1119 | | ... | *Arguments:*
1120 | | ... | - duration - Duration of traffic run [s]. Type: integer
1121 | | ... | - rate - Rate for sending packets. Type: string
1122 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1123 | | ... | - topology_type - Topology type. Type: string
1124 | | ... | - loss_acceptance - Accepted loss during search. Type: float
1125 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
1127 | | ... | *Example:*
1129 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1130 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1131 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1132 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1133 | | ... | ${fail_on_loss}=${True}
1134 | | Clear and show runtime counters with running traffic | ${duration}
1135 | | ... | ${rate} | ${framesize} | ${topology_type}
1136 | | Clear all counters on all DUTs
1137 | | Send traffic on tg | ${duration} | ${rate} | ${framesize}
1138 | | ... | ${topology_type} | warmup_time=0
1139 | | Show statistics on all DUTs
1140 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
1141 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
1143 | Clear and show runtime counters with running traffic
1145 | | ... | Start traffic at specified rate then clear runtime counters on all
1146 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
1147 | | ... | on all DUTs. Finally stop traffic
1149 | | ... | *Arguments:*
1150 | | ... | - duration - Duration of traffic run [s]. Type: integer
1151 | | ... | - rate - Rate for sending packets. Type: string
1152 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1153 | | ... | - topology_type - Topology type. Type: string
1155 | | ... | *Example:*
1157 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
1158 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage
1159 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
1160 | | Send traffic on tg | -1 | ${rate} | ${framesize}
1161 | | ... | ${topology_type} | warmup_time=0 | async_call=${True}
1162 | | ... | latency=${False}
1163 | | Clear runtime counters on all DUTs
1164 | | Sleep | ${duration}
1165 | | Show runtime counters on all DUTs
1166 | | Stop traffic on tg
1168 | Add PCI devices to DUTs from 3-node single link topology
1169 | | ${dut1_if1_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if1}
1170 | | ${dut1_if2_pci}= | Get Interface PCI Addr | ${dut1} | ${dut1_if2}
1171 | | ${dut2_if1_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if1}
1172 | | ${dut2_if2_pci}= | Get Interface PCI Addr | ${dut2} | ${dut2_if2}
1173 | | Add PCI device | ${dut1} | ${dut1_if1_pci} | ${dut1_if2_pci}
1174 | | Add PCI device | ${dut2} | ${dut2_if1_pci} | ${dut2_if2_pci}
1176 | Guest VM with dpdk-testpmd connected via vhost-user is setup
1178 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1179 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1180 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1181 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1182 | | ... | burst=64, disable-hw-vlan, total-num-mbufs, driver
1183 | | ... | usr/lib/librte_pmd_virtio.so.
1185 | | ... | *Arguments:*
1186 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1187 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1188 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1189 | | ... | - vm_name - QemuUtil instance name. Type: string
1191 | | ... | *Example:*
1193 | | ... | \| Guest VM with dpdk-testpmd connected via vhost-user is setup \
1194 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1195 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1196 | | Import Library | resources.libraries.python.QemuUtils
1197 | | ... | WITH NAME | ${vm_name}
1198 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1199 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1200 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1201 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1202 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1203 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1204 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1205 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1206 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1207 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1208 | | ... | eal_mem_channels=4
1209 | | ... | eal_socket_mem=1024
1210 | | ... | pmd_fwd_mode=io
1211 | | ... | pmd_disable_hw_vlan=${True}
1212 | | Return From Keyword | ${vm}
1214 | Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
1216 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1217 | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
1218 | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
1219 | | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048,
1220 | | ... | burst=64, disable-hw-vlan, total-num-mbufs=65K, driver
1221 | | ... | usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite.
1223 | | ... | *Arguments:*
1224 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1225 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1226 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1227 | | ... | - vm_name - QemuUtil instance name. Type: string
1228 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
1229 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
1231 | | ... | *Example:*
1233 | | ... | \| Guest VM with dpdk-testpmd for Vhost L2BD forwarding is setup \
1234 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
1235 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \|
1236 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1237 | | ... | ${eth0_mac} | ${eth1_mac}
1238 | | Import Library | resources.libraries.python.QemuUtils
1239 | | ... | WITH NAME | ${vm_name}
1240 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1241 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1242 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1243 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1244 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1245 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1246 | | Run keyword | ${vm_name}.Qemu Set Disk Image
1247 | | ... | /var/lib/vm/csit-nested-1.3.img
1248 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1249 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1250 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
1251 | | ... | eal_mem_channels=4
1252 | | ... | eal_socket_mem=1024
1253 | | ... | pmd_fwd_mode=mac
1254 | | ... | pmd_eth_peer_0=0,${eth0_mac}
1255 | | ... | pmd_eth_peer_1=1,${eth1_mac}
1256 | | ... | pmd_disable_hw_vlan=${True}
1257 | | Return From Keyword | ${vm}
1259 | Guest VM with Linux Bridge connected via vhost-user is setup
1261 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1262 | | ... | linux bridge. Qemu Guest is using 3 cores pinned to physical cores 5,
1263 | | ... | 6, 7 and 2048M.
1265 | | ... | *Arguments:*
1266 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1267 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1268 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1269 | | ... | - vm_name - QemuUtil instance name. Type: string
1271 | | ... | *Example:*
1273 | | ... | \| Guest VM with Linux Bridge connected via vhost-user is setup \
1274 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \|
1275 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
1276 | | Import Library | resources.libraries.python.QemuUtils
1277 | | ... | WITH NAME | ${vm_name}
1278 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1279 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1280 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1281 | | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
1282 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1283 | | Run keyword | ${vm_name}.Qemu Set Huge Allocate
1284 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
1285 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1286 | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
1287 | | ${br}= | Set Variable | br0
1288 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
1289 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
1290 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
1291 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
1292 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
1293 | | Set Interface State | ${vm} | ${br} | up | if_type=name
1294 | | Return From Keyword | ${vm}
1296 | Guest VM with dpdk-testpmd Teardown
1298 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
1299 | | ... | Argument is dictionary of all qemu nodes running with its names.
1300 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
1302 | | ... | *Arguments:*
1303 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1304 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1306 | | ... | *Example:*
1308 | | ... | \| Guest VM with dpdk-testpmd Teardown \| ${node['DUT1']} \
1309 | | ... | \| ${dut_vm_refs} \|
1311 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1312 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1313 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1314 | | | Dpdk Testpmd Stop | ${vm}
1315 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1316 | | | Run Keyword | ${vm_name}.Qemu Kill
1317 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1321 | | ... | Stop all qemu processes running on ${dut_node}.
1322 | | ... | Argument is dictionary of all qemu nodes running with its names.
1324 | | ... | *Arguments:*
1325 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
1326 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
1328 | | ... | *Example:*
1330 | | ... | \| Guest VM Teardown \| ${node['DUT1']} \
1331 | | ... | \| ${dut_vm_refs} \|
1333 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
1334 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
1335 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
1336 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1337 | | | Run Keyword | ${vm_name}.Qemu Kill
1338 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
1340 | Lisp IPv4 forwarding initialized in a 3-node circular topology
1341 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
1342 | | ... | Don`t set route.
1344 | | ... | *Arguments:*
1345 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1346 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1347 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1348 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1349 | | ... | -${duts_prefix} - ip prefix. Type: int
1352 | | ... | - No value returned
1354 | | ... | *Example:*
1355 | | ... | \| Lisp IPv4 forwarding initialized in a 3-node circular topology \
1356 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1357 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1359 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1360 | | ... | ${dut2_dut1_address} | ${dut2_tg_address}
1361 | | ... | ${duts_prefix}
1362 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1363 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1364 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1365 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1366 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1367 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1368 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1369 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1370 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1371 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_address} | ${dut2_if1_mac}
1372 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_address} | ${dut1_if2_mac}
1373 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1374 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_address} | ${duts_prefix}
1375 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_address} | ${duts_prefix}
1376 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_address} | ${duts_prefix}
1377 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_address} | ${duts_prefix}
1378 | | All Vpp Interfaces Ready Wait | ${nodes}
1380 | Lisp IPv6 forwarding initialized in a 3-node circular topology
1381 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
1382 | | ... | Don`t set route.
1384 | | ... | *Arguments:*
1385 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
1386 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1387 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
1388 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
1389 | | ... | -${duts_prefix} - ip prefix. Type: int
1392 | | ... | - No value returned
1394 | | ... | *Example:*
1395 | | ... | \| Lisp IPv6 forwarding initialized in a 3-node circular topology \
1396 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
1397 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
1399 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
1400 | | ... | ${dut2_dut1_address} | ${dut2_tg_address}
1402 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1403 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1404 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1405 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1406 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
1408 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
1410 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
1412 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
1414 | | Vpp nodes ra suppress link layer | ${nodes}
1415 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2
1416 | | ... | ${tg1_if1_mac}
1417 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2
1418 | | ... | ${tg1_if2_mac}
1419 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
1420 | | ... | ${dut2_if1_mac}
1421 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
1422 | | ... | ${dut1_if2_mac}
1424 | Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
1425 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1426 | | ... | Don`t set route.
1428 | | ... | *Arguments:*
1429 | | ... | -${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
1430 | | ... | Type: string
1431 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1432 | | ... | -${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
1433 | | ... | Type: string
1434 | | ... | -${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
1435 | | ... | -${prefix4} - IPv4 prefix. Type: int
1436 | | ... | -${prefix6} - IPv6 prefix. Type: int
1439 | | ... | - No value returned
1441 | | ... | *Example:*
1442 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology \
1443 | | ... | \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
1444 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
1445 | | ... | \| ${prefix4} \| ${prefix6} \|
1447 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
1448 | | ... | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
1449 | | ... | ${prefix4} | ${prefix6}
1450 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1451 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1452 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1453 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1454 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1455 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1456 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1457 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1458 | | dut1_v4.set_ip | ${dut1_if1} | ${dut1_tg_ip4_address} | ${prefix4}
1459 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
1460 | | ... | ${prefix6}
1461 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
1462 | | ... | ${prefix6}
1463 | | dut2_v4.set_ip | ${dut2_if2} | ${dut2_tg_ip4_address} | ${prefix4}
1464 | | Vpp nodes ra suppress link layer | ${nodes}
1465 | | dut1_v4.set_arp | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
1466 | | dut2_v4.set_arp | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
1467 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
1468 | | ... | ${dut2_if1_mac}
1469 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
1470 | | ... | ${dut1_if2_mac}
1472 | Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology
1473 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
1474 | | ... | Don`t set route.
1476 | | ... | *Arguments:*
1477 | | ... | -${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
1478 | | ... | Type: string
1479 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1480 | | ... | -${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
1481 | | ... | Type: string
1482 | | ... | -${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
1483 | | ... | -${prefix4} - IPv4 prefix. Type: int
1484 | | ... | -${prefix6} - IPv6 prefix. Type: int
1487 | | ... | - No value returned
1489 | | ... | *Example:*
1490 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
1491 | | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
1492 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
1493 | | ... | \| ${prefix4} \| ${prefix6} \|
1495 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
1496 | | ... | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
1497 | | ... | ${prefix4} | ${prefix6}
1498 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1499 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1500 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1501 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1502 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1503 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1504 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1505 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1506 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
1507 | | ... | ${prefix6}
1508 | | dut1_v4.set_ip | ${dut1_if2} | ${dut1_dut2_ip4_address} | ${prefix4}
1509 | | dut2_v4.set_ip | ${dut2_if1} | ${dut2_dut1_ip4_address} | ${prefix4}
1510 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
1511 | | ... | ${prefix6}
1512 | | Vpp nodes ra suppress link layer | ${nodes}
1513 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
1514 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
1515 | | dut1_v4.set_arp | ${dut1_if2} | ${dut2_dut1_ip4_address} | ${dut2_if1_mac}
1516 | | dut2_v4.set_arp | ${dut2_if1} | ${dut1_dut2_ip4_address} | ${dut1_if2_mac}