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