1 # Copyright (c) 2018 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 | Collections
16 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.DpdkUtil
19 | Library | resources.libraries.python.InterfaceUtil
20 | Library | resources.libraries.python.KubernetesUtils
21 | Library | resources.libraries.python.VhostUser
22 | Library | resources.libraries.python.TrafficGenerator
23 | Library | resources.libraries.python.TrafficGenerator.TGDropRateSearchImpl
24 | Library | resources.libraries.python.Trace
25 | Resource | resources/libraries/robot/shared/default.robot
26 | Resource | resources/libraries/robot/shared/interfaces.robot
27 | Resource | resources/libraries/robot/shared/counters.robot
28 | Resource | resources/libraries/robot/shared/container.robot
29 | Resource | resources/libraries/robot/shared/memif.robot
30 | Resource | resources/libraries/robot/l2/l2_bridge_domain.robot
31 | Resource | resources/libraries/robot/l2/l2_xconnect.robot
32 | Resource | resources/libraries/robot/ip/ip4.robot
33 | Resource | resources/libraries/robot/ip/ip6.robot
34 | Resource | resources/libraries/robot/vm/qemu.robot
35 | Resource | resources/libraries/robot/l2/tagging.robot
36 | Documentation | Performance suite keywords - utilities to find and verify NDR
42 | | ... | Calculate pps for given rate and L2 frame size,
43 | | ... | additional 20B are added to L2 frame size as padding.
46 | | ... | - bps - Rate in bps. Type: integer
47 | | ... | - framesize - L2 frame size in Bytes. Type: integer
50 | | ... | - Calculated pps. Type: integer
54 | | ... | \| Calculate pps \| 10000000000 \| 64 \|
56 | | [Arguments] | ${bps} | ${framesize}
58 | | ${framesize}= | Get Frame Size | ${framesize}
59 | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__()
60 | | Return From Keyword | ${ret}
64 | | ... | Framesize can be either integer in case of a single packet
65 | | ... | in stream, or set of packets in case of IMIX type or simmilar.
66 | | ... | This keyword returns average framesize.
68 | | ... | *Arguments:*
69 | | ... | - framesize - Framesize. Type: integer or string
73 | | ... | \| Get Frame Size \| IMIX_v4_1 \|
75 | | [Arguments] | ${framesize}
77 | | Return From Keyword If | '${framesize}' == 'IMIX_v4_1' | ${353.83333}
78 | | Return From Keyword | ${framesize}
80 | Find NDR using linear search and pps
82 | | ... | Find throughput by using RFC2544 linear search with non drop rate.
84 | | ... | *Arguments:*
85 | | ... | - framesize - L2 Frame Size [B]. Type: integer
86 | | ... | - start_rate - Initial start rate [pps]. Type: float
87 | | ... | - step_rate - Step of linear search [pps]. Type: float
88 | | ... | - topology_type - Topology type. Type: string
89 | | ... | - min_rate - Lower limit of search [pps]. Type: float
90 | | ... | - max_rate - Upper limit of search [pps]. Type: float
93 | | ... | - No value returned
97 | | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \
98 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \|
100 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
101 | | ... | ${topology_type} | ${min_rate} | ${max_rate}
103 | | ${duration}= | Set Variable | ${perf_trial_duration}
104 | | Set Duration | ${duration}
105 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
106 | | Set Search Linear Step | ${step_rate}
107 | | Set Search Frame Size | ${framesize}
108 | | Set Search Rate Type pps
109 | | Linear Search | ${start_rate} | ${topology_type}
110 | | ${rate_per_stream} | ${lat}= | Verify Search Result
111 | | ${tmp}= | Create List | 100%NDR | ${lat}
112 | | ${latency}= | Create List | ${tmp}
113 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
114 | | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p}
115 | | ... | ${framesize} | ${topology_type}
116 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
117 | | Append To List | ${latency} | ${tmp}
118 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
119 | | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p}
120 | | ... | ${framesize} | ${topology_type}
121 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
122 | | Append To List | ${latency} | ${tmp}
123 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
125 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
126 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
128 | Find PDR using linear search and pps
130 | | ... | Find throughput by using RFC2544 linear search with partial drop rate
131 | | ... | with PDR threshold and type specified by parameter.
133 | | ... | *Arguments:*
134 | | ... | - framesize - L2 Frame Size [B]. Type: integer
135 | | ... | - start_rate - Initial start rate [pps]. Type: float
136 | | ... | - step_rate - Step of linear search [pps]. Type: float
137 | | ... | - topology_type - Topology type. Type: string
138 | | ... | - min_rate - Lower limit of search [pps]. Type: float
139 | | ... | - max_rate - Upper limit of search [pps]. Type: float
140 | | ... | - loss_acceptance - Accepted loss during search. Type: float
141 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
145 | | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \
146 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage \|
148 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
149 | | ... | ${topology_type} | ${min_rate} | ${max_rate}
150 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
152 | | ${duration}= | Set Variable | ${perf_trial_duration}
153 | | Set Duration | ${duration}
154 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
155 | | Set Search Linear Step | ${step_rate}
156 | | Set Search Frame Size | ${framesize}
157 | | Set Search Rate Type pps
158 | | Set Loss Acceptance | ${loss_acceptance}
159 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
160 | | ... | Set Loss Acceptance Type Percentage
161 | | Linear Search | ${start_rate} | ${topology_type}
162 | | ${rate_per_stream} | ${lat}= | Verify Search Result
163 | | ${tmp}= | Create List | 100%PDR | ${lat}
164 | | ${latency}= | Create List | ${tmp}
165 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
166 | | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
167 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
168 | | ... | ${framesize} | ${topology_type} | ${loss_acceptance}
169 | | ... | ${loss_acceptance_type} | fail_on_loss=${False}
171 | Find NDR using binary search and pps
173 | | ... | Find throughput by using RFC2544 binary search with non drop rate.
175 | | ... | *Arguments:*
176 | | ... | - framesize - L2 Frame Size [B]. Type: integer
177 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
178 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
179 | | ... | - topology_type - Topology type. Type: string
180 | | ... | - min_rate - Lower limit of search [pps]. Type: float
181 | | ... | - max_rate - Upper limit of search [pps]. Type: float
182 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
186 | | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \
187 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \|
189 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
190 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
192 | | ${duration}= | Set Variable | ${perf_trial_duration}
193 | | Set Duration | ${duration}
194 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
195 | | Set Search Frame Size | ${framesize}
196 | | Set Search Rate Type pps
197 | | Set Binary Convergence Threshold | ${threshold}
198 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
199 | | ${rate_per_stream} | ${lat}= | Verify Search Result
200 | | ${tmp}= | Create List | 100%NDR | ${lat}
201 | | ${latency}= | Create List | ${tmp}
202 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
203 | | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p}
204 | | ... | ${framesize} | ${topology_type}
205 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
206 | | Append To List | ${latency} | ${tmp}
207 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
208 | | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p}
209 | | ... | ${framesize} | ${topology_type}
210 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
211 | | Append To List | ${latency} | ${tmp}
212 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
214 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
215 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
217 | Find PDR using binary search and pps
219 | | ... | Find throughput by using RFC2544 binary search with partial drop rate
220 | | ... | with PDR threshold and type specified by parameter.
222 | | ... | *Arguments:*
223 | | ... | - framesize - L2 Frame Size [B]. Type: integer
224 | | ... | - binary_min - Lower boundary of search [pps]. Type: float
225 | | ... | - binary_max - Upper boundary of search [pps]. Type: float
226 | | ... | - topology_type - Topology type. Type: string
227 | | ... | - min_rate - Lower limit of search [pps]. Type: float
228 | | ... | - max_rate - Upper limit of search [pps]. Type: float
229 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
230 | | ... | - loss_acceptance - Accepted loss during search. Type: float
231 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
235 | | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \
236 | | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \
237 | | ... | \| percentage \|
239 | | [Arguments] | ${framesize} | ${binary_min} | ${binary_max}
240 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
241 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
243 | | ${duration}= | Set Variable | ${perf_trial_duration}
244 | | Set Duration | ${duration}
245 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
246 | | Set Search Frame Size | ${framesize}
247 | | Set Search Rate Type pps
248 | | Set Loss Acceptance | ${loss_acceptance}
249 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
250 | | ... | Set Loss Acceptance Type Percentage
251 | | Set Binary Convergence Threshold | ${threshold}
252 | | Binary Search | ${binary_min} | ${binary_max} | ${topology_type}
253 | | ${rate_per_stream} | ${lat}= | Verify Search Result
254 | | ${tmp}= | Create List | 100%PDR | ${lat}
255 | | ${latency}= | Create List | ${tmp}
256 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
257 | | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
258 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
259 | | ... | ${framesize} | ${topology_type} | ${loss_acceptance}
260 | | ... | ${loss_acceptance_type} | fail_on_loss=${False}
262 | Find NDR using combined search and pps
264 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
265 | | ... | non drop rate.
267 | | ... | *Arguments:*
268 | | ... | - framesize - L2 Frame Size [B]. Type: integer
269 | | ... | - start_rate - Initial start rate [pps]. Type: float
270 | | ... | - step_rate - Step of linear search [pps]. Type: float
271 | | ... | - topology_type - Topology type. Type: string
272 | | ... | - min_rate - Lower limit of search [pps]. Type: float
273 | | ... | - max_rate - Upper limit of search [pps]. Type: float
274 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
278 | | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \
279 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \|
281 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
282 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
284 | | ${duration}= | Set Variable | ${perf_trial_duration}
285 | | Set Duration | ${duration}
286 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
287 | | Set Search Linear Step | ${step_rate}
288 | | Set Search Frame Size | ${framesize}
289 | | Set Search Rate Type pps
290 | | Set Binary Convergence Threshold | ${threshold}
291 | | Combined Search | ${start_rate} | ${topology_type}
292 | | ${rate_per_stream} | ${lat}= | Verify Search Result
293 | | ${tmp}= | Create List | 100%NDR | ${lat}
294 | | ${latency}= | Create List | ${tmp}
295 | | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5)
296 | | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p}
297 | | ... | ${framesize} | ${topology_type}
298 | | ${tmp}= | Create List | 50%NDR | ${lat_50p}
299 | | Append To List | ${latency} | ${tmp}
300 | | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1)
301 | | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p}
302 | | ... | ${framesize} | ${topology_type}
303 | | ${tmp}= | Create List | 10%NDR | ${lat_10p}
304 | | Append To List | ${latency} | ${tmp}
305 | | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2
307 | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps
308 | | ... | ${framesize} | ${topology_type}
309 | | ... | fail_on_loss=${False}
311 | Find PDR using combined search and pps
313 | | ... | Find throughput by using RFC2544 combined search (linear+binary) with
314 | | ... | partial drop rate with PDR threshold and type specified by parameter.
316 | | ... | *Arguments:*
317 | | ... | - framesize - L2 Frame Size [B]. Type: integer
318 | | ... | - start_rate - Initial start rate [pps]. Type: float
319 | | ... | - step_rate - Step of linear search [pps]. Type: float
320 | | ... | - topology_type - Topology type. Type: string
321 | | ... | - min_rate - Lower limit of search [pps]. Type: float
322 | | ... | - max_rate - Upper limit of search [pps]. Type: float
323 | | ... | - threshold - Threshold to stop search [pps]. Type: integer
324 | | ... | - loss_acceptance - Accepted loss during search. Type: float
325 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
329 | | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \
330 | | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \
331 | | ... | \| percentage \|
333 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
334 | | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold}
335 | | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames'
337 | | ${duration}= | Set Variable | ${perf_trial_duration}
338 | | Set Duration | ${duration}
339 | | Set Search Rate Boundaries | ${max_rate} | ${min_rate}
340 | | Set Search Linear Step | ${step_rate}
341 | | Set Search Frame Size | ${framesize}
342 | | Set Search Rate Type pps
343 | | Set Loss Acceptance | ${loss_acceptance}
344 | | Run Keyword If | '${loss_acceptance_type}' == 'percentage'
345 | | ... | Set Loss Acceptance Type Percentage
346 | | Set Binary Convergence Threshold | ${threshold}
347 | | Combined Search | ${start_rate} | ${topology_type}
348 | | ${rate_per_stream} | ${lat}= | Verify Search Result
349 | | ${tmp}= | Create List | 100%PDR | ${lat}
350 | | ${latency}= | Create List | ${tmp}
351 | | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2
352 | | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
353 | | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps
354 | | ... | ${framesize} | ${topology_type} | ${loss_acceptance}
355 | | ... | ${loss_acceptance_type} | fail_on_loss=${False}
357 | Display result of NDR search
359 | | ... | Display result of NDR search in packet per seconds (total and per
360 | | ... | stream) and Gbps total bandwidth with untagged packet.
361 | | ... | Througput is calculated as:
362 | | ... | Measured rate per stream * Total number of streams
363 | | ... | Bandwidth is calculated as:
364 | | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
366 | | ... | *Arguments:*
367 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
368 | | ... | - framesize - L2 Frame Size [B]. Type: integer
369 | | ... | - nr_streams - Total number of streams. Type: integer
370 | | ... | - latency - Latency stats. Type: dictionary
374 | | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \
375 | | ... | \| [100%NDR, [10/10/10, 1/2/3]] \|
377 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams} | ${latency}
379 | | ${framesize}= | Get Frame Size | ${framesize}
380 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
381 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
382 | | Set Test Message | FINAL_RATE: ${rate_total} pps
383 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps) | append=yes
384 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
386 | | Set Test Message | ${\n}LATENCY usec [min/avg/max] | append=yes
387 | | :FOR | ${lat} | IN | @{latency}
388 | | | Set Test Message | ${\n}LAT_${lat[0]}: ${lat[1]} | append=yes
390 | Display result of PDR search
392 | | ... | Display result of PDR search in packet per seconds (total and per
393 | | ... | stream) and Gbps total bandwidth with untagged packet.
394 | | ... | Througput is calculated as:
395 | | ... | Measured rate per stream * Total number of streams
396 | | ... | Bandwidth is calculated as:
397 | | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
399 | | ... | *Arguments:*
400 | | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string
401 | | ... | - framesize - L2 Frame Size [B]. Type: integer
402 | | ... | - nr_streams - Total number of streams. Type: integer
403 | | ... | - loss_acceptance - Accepted loss during search. Type: float
404 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
405 | | ... | - latency - Latency stats. Type: dictionary
409 | | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \
410 | | ... | \| percentage \| [100%NDR, [10/10/10, 1/2/3]] \|
412 | | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams}
413 | | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency}
415 | | ${framesize}= | Get Frame Size | ${framesize}
416 | | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams}
417 | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9)
418 | | Set Test Message | FINAL_RATE: ${rate_total} pps
419 | | Set Test Message | (${nr_streams}x ${rate_per_stream} pps) | append=yes
420 | | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged)
422 | | Set Test Message | ${\n}LATENCY usec [min/avg/max] | append=yes
423 | | :FOR | ${lat} | IN | @{latency}
424 | | | Set Test Message | ${\n}LAT_${lat[0]}: ${lat[1]} | append=yes
426 | | ... | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type}
429 | Display raw results
431 | | ... | Display raw results from TG in total received/send packets over trial
432 | | ... | duration in seconds.
434 | | ... | *Arguments:*
435 | | ... | - framesize - L2 Frame Size [B]. Type: integer
436 | | ... | - results - Measured results. Type: string
440 | | ... | \| Display raw results \| 64 \| results \|
442 | | [Arguments] | ${framesize} | ${results}
444 | | ${framesize}= | Get Frame Size | ${framesize}
445 | | @{tokens}= | Split String | ${results} | ,
446 | | @{received}= | Split String | @{tokens}[1] | =
447 | | @{sent}= | Split String | @{tokens}[2] | =
448 | | ${total_received} = | Set Variable | @{received}[1]
449 | | ${total_sent} = | Set Variable | @{sent}[1]
450 | | Set Test Message | MaxReceivedRate_Results [pkts/${perf_trial_duration}sec]:
451 | | Set Test Message | tx ${total_sent}, rx ${total_received} | append=yes
453 | Measure latency pps
455 | | ... | Send traffic at specified rate. Measure min/avg/max latency
457 | | ... | *Arguments:*
458 | | ... | - duration - Duration of traffic run [s]. Type: integer
459 | | ... | - rate - Rate for sending packets. Type: integer
460 | | ... | - framesize - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
461 | | ... | - topology_type - Topology type. Type: string
465 | | ... | \| Measure latency \| 10 \| 4.0 \| 64 \| 3-node-IPv4 \|
467 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
469 | | Return From Keyword If | ${rate} <= 10000 | ${-1}
470 | | Send traffic on tg | ${duration} | ${rate}pps | ${framesize}
471 | | ... | ${topology_type} | warmup_time=0
472 | | Run keyword and return | Get latency
474 | Traffic should pass with no loss
476 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
477 | | ... | evaluation.
479 | | ... | *Arguments:*
480 | | ... | - duration - Duration of traffic run [s]. Type: integer
481 | | ... | - rate - Rate for sending packets. Type: string
482 | | ... | - framesize - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
483 | | ... | - topology_type - Topology type. Type: string
484 | | ... | - fail_on_loss - If True, the keyword fails if loss occurred.
485 | | ... | Type: boolean
489 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
490 | | ... | \| 3-node-IPv4 \|
492 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
493 | | ... | ${fail_on_loss}=${True}
495 | | Send traffic at specified rate | ${duration} | ${rate} | ${framesize}
496 | | ... | ${topology_type}
497 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
499 | Traffic should pass with partial loss
501 | | ... | Send traffic at specified rate. Partial packet loss is accepted
502 | | ... | within loss acceptance value specified as argument.
504 | | ... | *Arguments:*
505 | | ... | - duration - Duration of traffic run [s]. Type: integer
506 | | ... | - rate - Rate for sending packets. Type: string
507 | | ... | - framesize - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
508 | | ... | - topology_type - Topology type. Type: string
509 | | ... | - loss_acceptance - Accepted loss during search. Type: float
510 | | ... | - loss_acceptance_type - Percentage or frames. Type: string
514 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
515 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage \|
517 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
518 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
519 | | ... | ${fail_on_loss}=${True}
521 | | Send traffic at specified rate | ${duration} | ${rate} | ${framesize}
522 | | ... | ${topology_type}
523 | | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted
524 | | ... | ${loss_acceptance} | ${loss_acceptance_type}
526 | Traffic should pass with maximum rate
528 | | ... | Send traffic at maximum rate.
530 | | ... | *Arguments:*
531 | | ... | - duration - Duration of traffic run [s]. Type: integer
532 | | ... | - rate - Rate for sending packets. Type: string
533 | | ... | - framesize - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
534 | | ... | - topology_type - Topology type. Type: string
535 | | ... | Type: boolean
539 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
540 | | ... | \| 3-node-IPv4 \|
542 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
544 | | ${results}= | Send traffic at specified rate | ${duration} | ${rate}
545 | | ... | ${framesize} | ${topology_type}
546 | | Display raw results | ${framesize} | ${results}
548 | Send traffic at specified rate
550 | | ... | Send traffic at specified rate.
552 | | ... | *Arguments:*
553 | | ... | - duration - Duration of traffic run [s]. Type: integer
554 | | ... | - rate - Rate for sending packets. Type: string
555 | | ... | - framesize - L2 Frame Size [B]. Type: integer/string
556 | | ... | - topology_type - Topology type. Type: string
557 | | ... | Type: boolean
561 | | ... | \| Send traffic at specific rate \| 10 \| 4.0mpps \| 64 \
562 | | ... | \| 3-node-IPv4 \|
564 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
566 | | Clear and show runtime counters with running traffic | ${duration}
567 | | ... | ${rate} | ${framesize} | ${topology_type}
568 | | Run Keyword If | ${dut_stats}==${True} | Clear all counters on all DUTs
569 | | Run Keyword If | ${dut_stats}==${True} and ${pkt_trace}==${True}
570 | | ... | VPP Enable Traces On All DUTs | ${nodes}
571 | | ${results} = | Send traffic on tg | ${duration} | ${rate} | ${framesize}
572 | | ... | ${topology_type} | warmup_time=0
573 | | Run Keyword If | ${dut_stats}==${True} | Show statistics on all DUTs | ${nodes}
574 | | Run Keyword If | ${dut_stats}==${True} and ${pkt_trace}==${True}
575 | | ... | Show Packet Trace On All Duts | ${nodes}
576 | | Return From Keyword | ${results}
578 | Clear and show runtime counters with running traffic
580 | | ... | Start traffic at specified rate then clear runtime counters on all
581 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
582 | | ... | on all DUTs. Finally stop traffic
584 | | ... | *Arguments:*
585 | | ... | - duration - Duration of traffic run [s]. Type: integer
586 | | ... | - rate - Rate for sending packets. Type: string
587 | | ... | - framesize - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
588 | | ... | - topology_type - Topology type. Type: string
592 | | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \
593 | | ... | \| 3-node-IPv4 \| 0.5 \| percentage \|
595 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
597 | | Send traffic on tg | -1 | ${rate} | ${framesize} | ${topology_type}
598 | | ... | warmup_time=0 | async_call=${True} | latency=${False}
599 | | Run Keyword If | ${dut_stats}==${True}
600 | | ... | Clear runtime counters on all DUTs | ${nodes}
601 | | Sleep | ${duration}
602 | | Run Keyword If | ${dut_stats}==${True}
603 | | ... | Show runtime counters on all DUTs | ${nodes}
604 | | Stop traffic on tg