summaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/ixnet/ixnet.py
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2015-11-24 16:55:54 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-12-16 14:01:05 +0000
commitde0aaffe31e1f787cefe21a5957a07924bb5956f (patch)
tree8f8c63658bf343361451ebb456572bd5b7f52e6f /tools/pkt_gen/ixnet/ixnet.py
parent0fd47566a26ad5170309f75640170fa8b9e81d94 (diff)
Back2Back: update default params
Update the default duration of a back to back test to be 2 seconds which is the minimum recommended by RFC2544, and update the Trials to be 50, which is also the default value specified by the RFC. This patch also fixes the tcl script to allow for the minimum framesize to be sent from the traffic gen. JIRA: Change-Id: I801196c1998ec2bffbeab69a3a290d6ef6feb1c3 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com>
Diffstat (limited to 'tools/pkt_gen/ixnet/ixnet.py')
-rw-r--r--[-rwxr-xr-x]tools/pkt_gen/ixnet/ixnet.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/pkt_gen/ixnet/ixnet.py b/tools/pkt_gen/ixnet/ixnet.py
index a4836330..b59d88a6 100755..100644
--- a/tools/pkt_gen/ixnet/ixnet.py
+++ b/tools/pkt_gen/ixnet/ixnet.py
@@ -384,15 +384,18 @@ class IxNet(trafficgen.ITrafficGenerator):
# the results file
return parse_ixnet_rfc_results(parse_result_string(output[0]))
- def send_rfc2544_back2back(self, traffic=None, trials=1, duration=20,
+ def send_rfc2544_back2back(self, traffic=None, trials=50, duration=2,
lossrate=0.0):
"""See ITrafficGenerator for description
"""
+ # NOTE 2 seconds is the recommended duration for a back 2 back
+ # test in RFC2544. 50 trials is the recommended number from the
+ # RFC also.
self.start_rfc2544_back2back(traffic, trials, duration, lossrate)
return self.wait_rfc2544_back2back()
- def start_rfc2544_back2back(self, traffic=None, trials=1, duration=20,
+ def start_rfc2544_back2back(self, traffic=None, trials=50, duration=2,
lossrate=0.0):
"""Start transmission.
"""