diff options
author | Luc Provoost <luc.provoost@intel.com> | 2020-09-30 16:57:30 +0200 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2020-10-19 08:50:26 +0000 |
commit | cd690215adb97aee66d355d9bb64a78a55e1defc (patch) | |
tree | dc923a9206051793443270b1d8460ce4f325d037 /VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py | |
parent | f9b0da859a9f2a6556f0437d5cff42a0648dcab2 (diff) |
Support dataplane subnet mask & latency histogram
There is a new parameter in the config_file: dataplane_subnet_mask. This
parameter is added to the dataplane IP addresses and is needed by the
Linux stack to deal with some protocols (e.g. ARP). If not present, the
default value of 24 will be used. In the end, this will make sure that
IP addresses in the rapid.env file will have this mask, e.g. /24
If you use other tools than createrapid.py to create the rapid.env file,
make sure to add the mask.
This commit also introduces a change when exiting: we only copy the
prox.log files from the different prox instances in case we expect a new
prox.log file to be created in these instances.
When using a valid format.yaml file, the tool will now also send the
latency distribution data (histogram) to the URL.
The tool is now also checking the value of bucket_size_exp: it needs to
be 11 or more.
Change-Id: I633cdc64ef687fdb6625be1e7482a5a371f83e93
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py')
-rw-r--r-- | VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py index ca3b5a2f..f547b3c4 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py @@ -138,7 +138,7 @@ class FlowSizeTest(RapidTest): self.set_background_speed(self.background_machines, speed) self.start_background_traffic(self.background_machines) # Get statistics now that the generation is stable and initial ARP messages are dealt with - pps_req_tx,pps_tx,pps_sut_tx,pps_rx,lat_avg,lat_perc , lat_perc_max, lat_max, abs_tx,abs_rx,abs_dropped, abs_tx_fail, drop_rate, lat_min, lat_used, r, actual_duration, avg_bg_rate = self.run_iteration(float(self.test['runtime']),flow_number,size,speed) + pps_req_tx,pps_tx,pps_sut_tx,pps_rx,lat_avg,lat_perc , lat_perc_max, lat_max, abs_tx,abs_rx,abs_dropped, abs_tx_fail, drop_rate, lat_min, lat_used, r, actual_duration, avg_bg_rate, bucket_size, buckets = self.run_iteration(float(self.test['runtime']),flow_number,size,speed) self.stop_background_traffic(self.background_machines) if r > 1: retry_warning = bcolors.WARNING + ' {:1} retries needed'.format(r) + bcolors.ENDC @@ -160,6 +160,7 @@ class FlowSizeTest(RapidTest): endlat_perc = lat_perc endlat_perc_max = lat_perc_max endlat_max = lat_max + endbuckets = buckets endabs_dropped = abs_dropped enddrop_rate = drop_rate endabs_tx = abs_tx @@ -193,6 +194,7 @@ class FlowSizeTest(RapidTest): endlat_perc = lat_perc endlat_perc_max = lat_perc_max endlat_max = lat_max + endbuckets = buckets endabs_dropped = None enddrop_rate = drop_rate endabs_tx = abs_tx @@ -267,7 +269,9 @@ class FlowSizeTest(RapidTest): 'MaxLatency': endlat_max, 'PacketsSent': endabs_tx, 'PacketsReceived': endabs_rx, - 'PacketsLost': abs_dropped} + 'PacketsLost': abs_dropped, + 'bucket_size': bucket_size, + 'buckets': endbuckets} self.post_data('rapid_flowsizetest', variables) else: RapidLog.info('|{:>7}'.format(str(flow_number))+" | Speed 0 or close to 0") |