diff options
author | Luc Provoost <luc.provoost@intel.com> | 2020-05-15 11:51:56 +0200 |
---|---|---|
committer | Luc Provoost <luc.provoost@intel.com> | 2020-05-15 11:55:09 +0200 |
commit | 8f21fb5ed8231125bca3cec1329d9fd739f14684 (patch) | |
tree | 2644761fd8e751060dfa41021eb4ce577b16f9a3 /VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py | |
parent | 9d4e94ed8cbd2110cab0388181bad3223a1155ce (diff) |
Support for imix packet sizes
All packet size in the *.test files have been replaces with imix sizes.
imix is now a list of packet sizes. If you want to run with only a
pakcet size of 64, you need to specify a list containing only 1 size:
[64].
You can also specify multiple imix values by specifying a list of list
of sizes. The keyworkds in the test files are now imix & imixs.
Change-Id: Iea47c0266b022133b7bbfc9a6811e3199ae41521
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py')
-rw-r--r-- | VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py index 295cb799..eeed2384 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_impairtest.py @@ -40,7 +40,8 @@ class ImpairTest(RapidTest): # fieldnames = ['Flows','PacketSize','RequestedPPS','GeneratedPPS','SentPPS','ForwardedPPS','ReceivedPPS','AvgLatencyUSEC','MaxLatencyUSEC','Dropped','DropRate'] # writer = csv.DictWriter(data_csv_file, fieldnames=fieldnames) # writer.writeheader() - size = self.test['packetsize'] + imix = self.test['imix'] + size = mean (imix) flow_number = self.test['flowsize'] RapidLog.info("+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+") RapidLog.info("| Generator is sending UDP ("+'{:>5}'.format(flow_number)+" flow) packets ("+ '{:>5}'.format(size) +" bytes) to SUT via GW dropping and delaying packets. SUT sends packets back. Use ctrl-c to stop the test |") @@ -48,7 +49,7 @@ class ImpairTest(RapidTest): RapidLog.info("| Test | Speed requested | Sent to NIC | Sent by Gen | Forward by SUT | Rec. by Gen | Avg. Latency | Max. Latency | Packets Lost | Loss Ratio |") RapidLog.info("+--------+--------------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+------------+") attempts = 0 - self.gen_machine.set_udp_packet_size(size) + self.gen_machine.set_udp_packet_size(imix) self.gen_machine.set_flows(flow_number) self.gen_machine.start_latency_cores() speed = self.test['startspeed'] |