aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
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 'core')
-rw-r--r--core/traffic_controller_rfc2544.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py
index a6b3e7f9..7117feeb 100644
--- a/core/traffic_controller_rfc2544.py
+++ b/core/traffic_controller_rfc2544.py
@@ -99,6 +99,8 @@ class TrafficControllerRFC2544(ITrafficController, IResults):
traffic['l2'] = {'framesize': packet_size}
if traffic['traffic_type'] == 'back2back':
+ self._duration = int(get_test_param('duration', 1))
+ self._trials = int(get_test_param('rfc2544_trials', 1))
result = self._traffic_gen_class.send_rfc2544_back2back(
traffic, trials=self._trials,
duration=self._duration)