From c59ec1c80ce4292115004fc2182fac088f803c72 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 30 Nov 2018 13:31:32 +0100 Subject: [PATCH] Delete old NDR/PDR keywords Change-Id: I932d46646408a030ffdeb78b3a3e19c39455750d Signed-off-by: Vratko Polak --- .../robot/performance/performance_utils.robot | 376 --------------------- 1 file changed, 376 deletions(-) diff --git a/resources/libraries/robot/performance/performance_utils.robot b/resources/libraries/robot/performance/performance_utils.robot index ec4033a704..1be3119713 100644 --- a/resources/libraries/robot/performance/performance_utils.robot +++ b/resources/libraries/robot/performance/performance_utils.robot @@ -168,283 +168,6 @@ | | Return From Keyword If | '${framesize}' == 'IMIX_v4_1' | ${353.83333} | | Return From Keyword | ${framesize} -| Find NDR using linear search and pps -| | [Documentation] -| | ... | Find throughput by using RFC2544 linear search with non drop rate. -| | ... -| | ... | *Arguments:* -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - start_rate - Initial start rate [pps]. Type: float -| | ... | - step_rate - Step of linear search [pps]. Type: float -| | ... | - topology_type - Topology type. Type: string -| | ... | - min_rate - Lower limit of search [pps]. Type: float -| | ... | - max_rate - Upper limit of search [pps]. Type: float -| | ... -| | ... | *Return:* -| | ... | - No value returned -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Find NDR using linear search and pps \| 64 \| 5000000 \ -| | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| -| | ... -| | [Arguments] | ${framesize} | ${start_rate} | ${step_rate} -| | ... | ${topology_type} | ${min_rate} | ${max_rate} -| | ... -| | ${duration}= | Set Variable | ${perf_trial_duration} -| | Set Duration | ${duration} -| | Set Search Rate Boundaries | ${max_rate} | ${min_rate} -| | Set Search Linear Step | ${step_rate} -| | Set Search Frame Size | ${framesize} -| | Set Search Rate Type pps -| | Linear Search | ${start_rate} | ${topology_type} -| | ${rate_per_stream} | ${lat}= | Verify Search Result -| | ${tmp}= | Create List | 100%NDR | ${lat} -| | ${latency}= | Create List | ${tmp} -| | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5) -| | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p} -| | ... | ${framesize} | ${topology_type} -| | ${tmp}= | Create List | 50%NDR | ${lat_50p} -| | Append To List | ${latency} | ${tmp} -| | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1) -| | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p} -| | ... | ${framesize} | ${topology_type} -| | ${tmp}= | Create List | 10%NDR | ${lat_10p} -| | Append To List | ${latency} | ${tmp} -| | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2 -| | ... | ${latency} -| | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps -| | ... | ${framesize} | ${topology_type} | fail_on_loss=${False} - -| Find PDR using linear search and pps -| | [Documentation] -| | ... | Find throughput by using RFC2544 linear search with partial drop rate -| | ... | with PDR threshold and type specified by parameter. -| | ... -| | ... | *Arguments:* -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - start_rate - Initial start rate [pps]. Type: float -| | ... | - step_rate - Step of linear search [pps]. Type: float -| | ... | - topology_type - Topology type. Type: string -| | ... | - min_rate - Lower limit of search [pps]. Type: float -| | ... | - max_rate - Upper limit of search [pps]. Type: float -| | ... | - loss_acceptance - Accepted loss during search. Type: float -| | ... | - loss_acceptance_type - Percentage or frames. Type: string -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Find PDR using linear search and pps \| 64 \| 5000000 \ -| | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 0.5 \| percentage \| -| | ... -| | [Arguments] | ${framesize} | ${start_rate} | ${step_rate} -| | ... | ${topology_type} | ${min_rate} | ${max_rate} -| | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames' -| | ... -| | ${duration}= | Set Variable | ${perf_trial_duration} -| | Set Duration | ${duration} -| | Set Search Rate Boundaries | ${max_rate} | ${min_rate} -| | Set Search Linear Step | ${step_rate} -| | Set Search Frame Size | ${framesize} -| | Set Search Rate Type pps -| | Set Loss Acceptance | ${loss_acceptance} -| | Run Keyword If | '${loss_acceptance_type}' == 'percentage' -| | ... | Set Loss Acceptance Type Percentage -| | Linear Search | ${start_rate} | ${topology_type} -| | ${rate_per_stream} | ${lat}= | Verify Search Result -| | ${tmp}= | Create List | 100%PDR | ${lat} -| | ${latency}= | Create List | ${tmp} -| | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2 -| | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency} -| | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps -| | ... | ${framesize} | ${topology_type} | ${loss_acceptance} -| | ... | ${loss_acceptance_type} | fail_on_loss=${False} - -| Find NDR using binary search and pps -| | [Documentation] -| | ... | Find throughput by using RFC2544 binary search with non drop rate. -| | ... -| | ... | *Arguments:* -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - binary_min - Lower boundary of search [pps]. Type: float -| | ... | - binary_max - Upper boundary of search [pps]. Type: float -| | ... | - topology_type - Topology type. Type: string -| | ... | - min_rate - Lower limit of search [pps]. Type: float -| | ... | - max_rate - Upper limit of search [pps]. Type: float -| | ... | - threshold - Threshold to stop search [pps]. Type: integer -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Find NDR using binary search and pps \| 64 \| 6000000 \ -| | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| -| | ... -| | [Arguments] | ${framesize} | ${binary_min} | ${binary_max} -| | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold} -| | ... -| | ${duration}= | Set Variable | ${perf_trial_duration} -| | Set Duration | ${duration} -| | Set Search Rate Boundaries | ${max_rate} | ${min_rate} -| | Set Search Frame Size | ${framesize} -| | Set Search Rate Type pps -| | Set Binary Convergence Threshold | ${threshold} -| | Binary Search | ${binary_min} | ${binary_max} | ${topology_type} -| | ${rate_per_stream} | ${lat}= | Verify Search Result -| | ${tmp}= | Create List | 100%NDR | ${lat} -| | ${latency}= | Create List | ${tmp} -| | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5) -| | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p} -| | ... | ${framesize} | ${topology_type} -| | ${tmp}= | Create List | 50%NDR | ${lat_50p} -| | Append To List | ${latency} | ${tmp} -| | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1) -| | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p} -| | ... | ${framesize} | ${topology_type} -| | ${tmp}= | Create List | 10%NDR | ${lat_10p} -| | Append To List | ${latency} | ${tmp} -| | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2 -| | ... | ${latency} -| | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps -| | ... | ${framesize} | ${topology_type} | fail_on_loss=${False} - -| Find PDR using binary search and pps -| | [Documentation] -| | ... | Find throughput by using RFC2544 binary search with partial drop rate -| | ... | with PDR threshold and type specified by parameter. -| | ... -| | ... | *Arguments:* -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - binary_min - Lower boundary of search [pps]. Type: float -| | ... | - binary_max - Upper boundary of search [pps]. Type: float -| | ... | - topology_type - Topology type. Type: string -| | ... | - min_rate - Lower limit of search [pps]. Type: float -| | ... | - max_rate - Upper limit of search [pps]. Type: float -| | ... | - threshold - Threshold to stop search [pps]. Type: integer -| | ... | - loss_acceptance - Accepted loss during search. Type: float -| | ... | - loss_acceptance_type - Percentage or frames. Type: string -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Find PDR using binary search and pps \| 64 \| 6000000 \ -| | ... | \| 12000000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 50000 \| 0.5 \ -| | ... | \| percentage \| -| | ... -| | [Arguments] | ${framesize} | ${binary_min} | ${binary_max} -| | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold} -| | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames' -| | ... -| | ${duration}= | Set Variable | ${perf_trial_duration} -| | Set Duration | ${duration} -| | Set Search Rate Boundaries | ${max_rate} | ${min_rate} -| | Set Search Frame Size | ${framesize} -| | Set Search Rate Type pps -| | Set Loss Acceptance | ${loss_acceptance} -| | Run Keyword If | '${loss_acceptance_type}' == 'percentage' -| | ... | Set Loss Acceptance Type Percentage -| | Set Binary Convergence Threshold | ${threshold} -| | Binary Search | ${binary_min} | ${binary_max} | ${topology_type} -| | ${rate_per_stream} | ${lat}= | Verify Search Result -| | ${tmp}= | Create List | 100%PDR | ${lat} -| | ${latency}= | Create List | ${tmp} -| | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2 -| | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency} -| | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps -| | ... | ${framesize} | ${topology_type} | ${loss_acceptance} -| | ... | ${loss_acceptance_type} | fail_on_loss=${False} - -| Find NDR using combined search and pps -| | [Documentation] -| | ... | Find throughput by using RFC2544 combined search (linear+binary) with -| | ... | non drop rate. -| | ... -| | ... | *Arguments:* -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - start_rate - Initial start rate [pps]. Type: float -| | ... | - step_rate - Step of linear search [pps]. Type: float -| | ... | - topology_type - Topology type. Type: string -| | ... | - min_rate - Lower limit of search [pps]. Type: float -| | ... | - max_rate - Upper limit of search [pps]. Type: float -| | ... | - threshold - Threshold to stop search [pps]. Type: integer -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Find NDR using combined search and pps \| 64 \| 5000000 \ -| | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| -| | ... -| | [Arguments] | ${framesize} | ${start_rate} | ${step_rate} -| | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold} -| | ... -| | ${duration}= | Set Variable | ${perf_trial_duration} -| | Set Duration | ${duration} -| | Set Search Rate Boundaries | ${max_rate} | ${min_rate} -| | Set Search Linear Step | ${step_rate} -| | Set Search Frame Size | ${framesize} -| | Set Search Rate Type pps -| | Set Binary Convergence Threshold | ${threshold} -| | Combined Search | ${start_rate} | ${topology_type} -| | ${rate_per_stream} | ${lat}= | Verify Search Result -| | ${tmp}= | Create List | 100%NDR | ${lat} -| | ${latency}= | Create List | ${tmp} -| | ${rate_50p}= | Evaluate | int(${rate_per_stream}*0.5) -| | ${lat_50p}= | Measure latency pps | ${duration} | ${rate_50p} -| | ... | ${framesize} | ${topology_type} -| | ${tmp}= | Create List | 50%NDR | ${lat_50p} -| | Append To List | ${latency} | ${tmp} -| | ${rate_10p}= | Evaluate | int(${rate_per_stream}*0.1) -| | ${lat_10p}= | Measure latency pps | ${duration} | ${rate_10p} -| | ... | ${framesize} | ${topology_type} -| | ${tmp}= | Create List | 10%NDR | ${lat_10p} -| | Append To List | ${latency} | ${tmp} -| | Display result of NDR search | ${rate_per_stream} | ${framesize} | 2 -| | ... | ${latency} -| | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps -| | ... | ${framesize} | ${topology_type} -| | ... | fail_on_loss=${False} - -| Find PDR using combined search and pps -| | [Documentation] -| | ... | Find throughput by using RFC2544 combined search (linear+binary) with -| | ... | partial drop rate with PDR threshold and type specified by parameter. -| | ... -| | ... | *Arguments:* -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - start_rate - Initial start rate [pps]. Type: float -| | ... | - step_rate - Step of linear search [pps]. Type: float -| | ... | - topology_type - Topology type. Type: string -| | ... | - min_rate - Lower limit of search [pps]. Type: float -| | ... | - max_rate - Upper limit of search [pps]. Type: float -| | ... | - threshold - Threshold to stop search [pps]. Type: integer -| | ... | - loss_acceptance - Accepted loss during search. Type: float -| | ... | - loss_acceptance_type - Percentage or frames. Type: string -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Find PDR using combined search and pps \| 64 \| 5000000 \ -| | ... | \| 100000 \| 3-node-IPv4 \| 100000 \| 14880952 \| 5000 \| 0.5 \ -| | ... | \| percentage \| -| | ... -| | [Arguments] | ${framesize} | ${start_rate} | ${step_rate} -| | ... | ${topology_type} | ${min_rate} | ${max_rate} | ${threshold} -| | ... | ${loss_acceptance}=0 | ${loss_acceptance_type}='frames' -| | ... -| | ${duration}= | Set Variable | ${perf_trial_duration} -| | Set Duration | ${duration} -| | Set Search Rate Boundaries | ${max_rate} | ${min_rate} -| | Set Search Linear Step | ${step_rate} -| | Set Search Frame Size | ${framesize} -| | Set Search Rate Type pps -| | Set Loss Acceptance | ${loss_acceptance} -| | Run Keyword If | '${loss_acceptance_type}' == 'percentage' -| | ... | Set Loss Acceptance Type Percentage -| | Set Binary Convergence Threshold | ${threshold} -| | Combined Search | ${start_rate} | ${topology_type} -| | ${rate_per_stream} | ${lat}= | Verify Search Result -| | ${tmp}= | Create List | 100%PDR | ${lat} -| | ${latency}= | Create List | ${tmp} -| | Display result of PDR search | ${rate_per_stream} | ${framesize} | 2 -| | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency} -| | Traffic should pass with partial loss | ${duration} | ${rate_per_stream}pps -| | ... | ${framesize} | ${topology_type} | ${loss_acceptance} -| | ... | ${loss_acceptance_type} | fail_on_loss=${False} - | Find NDR and PDR intervals using optimized search | | [Documentation] | | ... | Find boundaries for RFC2544 compatible NDR and PDR values @@ -614,78 +337,6 @@ | | Traffic should pass with no loss | ${duration} | ${rate_per_stream}pps | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False} -| Display result of NDR search -| | [Documentation] -| | ... | Display result of NDR search in packet per seconds (total and per -| | ... | stream) and Gbps total bandwidth with untagged packet. -| | ... | Througput is calculated as: -| | ... | Measured rate per stream * Total number of streams -| | ... | Bandwidth is calculated as: -| | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC -| | ... -| | ... | *Arguments:* -| | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - nr_streams - Total number of streams. Type: integer -| | ... | - latency - Latency stats. Type: dictionary -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Display result of NDR search \| 4400000 \| 64 \| 2 \ -| | ... | \| [100%NDR, [10/10/10, 1/2/3]] \| -| | ... -| | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams} | ${latency} -| | ... -| | ${framesize}= | Get Frame Size | ${framesize} -| | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams} -| | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9) -| | Set Test Message | FINAL_RATE: ${rate_total} pps -| | Set Test Message | (${nr_streams}x ${rate_per_stream} pps) | append=yes -| | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged) -| | ... | append=yes -| | Set Test Message | ${\n}LATENCY usec [min/avg/max] | append=yes -| | :FOR | ${lat} | IN | @{latency} -| | | Set Test Message | ${\n}LAT_${lat[0]}: ${lat[1]} | append=yes - -| Display result of PDR search -| | [Documentation] -| | ... | Display result of PDR search in packet per seconds (total and per -| | ... | stream) and Gbps total bandwidth with untagged packet. -| | ... | Througput is calculated as: -| | ... | Measured rate per stream * Total number of streams -| | ... | Bandwidth is calculated as: -| | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC -| | ... -| | ... | *Arguments:* -| | ... | - rate_per_stream - Measured rate per stream [pps]. Type: string -| | ... | - framesize - L2 Frame Size [B]. Type: integer -| | ... | - nr_streams - Total number of streams. Type: integer -| | ... | - loss_acceptance - Accepted loss during search. Type: float -| | ... | - loss_acceptance_type - Percentage or frames. Type: string -| | ... | - latency - Latency stats. Type: dictionary -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Display result of PDR search \| 4400000 \| 64 \| 2 \| 0.5 \ -| | ... | \| percentage \| [100%NDR, [10/10/10, 1/2/3]] \| -| | ... -| | [Arguments] | ${rate_per_stream} | ${framesize} | ${nr_streams} -| | ... | ${loss_acceptance} | ${loss_acceptance_type} | ${latency} -| | ... -| | ${framesize}= | Get Frame Size | ${framesize} -| | ${rate_total}= | Evaluate | ${rate_per_stream}*${nr_streams} -| | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9) -| | Set Test Message | FINAL_RATE: ${rate_total} pps -| | Set Test Message | (${nr_streams}x ${rate_per_stream} pps) | append=yes -| | Set Test Message | ${\n}FINAL_BANDWIDTH: ${bandwidth_total} Gbps (untagged) -| | ... | append=yes -| | Set Test Message | ${\n}LATENCY usec [min/avg/max] | append=yes -| | :FOR | ${lat} | IN | @{latency} -| | | Set Test Message | ${\n}LAT_${lat[0]}: ${lat[1]} | append=yes -| | Set Test Message -| | ... | ${\n}LOSS_ACCEPTANCE: ${loss_acceptance} ${loss_acceptance_type} -| | ... | append=yes - | Measure latency pps | | [Documentation] | | ... | Send traffic at specified rate. Measure min/avg/max latency @@ -732,33 +383,6 @@ | | ... | ${topology_type} | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred -| Traffic should pass with partial loss -| | [Documentation] -| | ... | Send traffic at specified rate. Partial packet loss is accepted -| | ... | within loss acceptance value specified as argument. -| | ... -| | ... | *Arguments:* -| | ... | - duration - Duration of traffic run [s]. Type: integer -| | ... | - rate - Rate for sending packets. Type: string -| | ... | - framesize - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string -| | ... | - topology_type - Topology type. Type: string -| | ... | - loss_acceptance - Accepted loss during search. Type: float -| | ... | - loss_acceptance_type - Percentage or frames. Type: string -| | ... -| | ... | *Example:* -| | ... -| | ... | \| Traffic should pass with partial loss \| 10 \| 4.0mpps \| 64 \ -| | ... | \| 3-node-IPv4 \| 0.5 \| percentage \| -| | ... -| | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type} -| | ... | ${loss_acceptance} | ${loss_acceptance_type} -| | ... | ${fail_on_loss}=${True} -| | ... -| | Send traffic at specified rate | ${duration} | ${rate} | ${framesize} -| | ... | ${topology_type} -| | Run Keyword If | ${fail_on_loss} | Partial traffic loss accepted -| | ... | ${loss_acceptance} | ${loss_acceptance_type} - | Traffic should pass with maximum rate | | [Documentation] | | ... | Send traffic at maximum rate. -- 2.16.6