summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/traffic_controller_rfc2544.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py
index 003307bf..bcea9568 100644
--- a/core/traffic_controller_rfc2544.py
+++ b/core/traffic_controller_rfc2544.py
@@ -82,10 +82,15 @@ class TrafficControllerRFC2544(ITrafficController, IResults):
for packet_size in self._packet_sizes:
traffic['l2'] = {'framesize': packet_size}
- result = self._traffic_gen_class.send_rfc2544_throughput(
- traffic,
- trials=int(self._trials),
- duration=int(get_test_param('rfc2544_duration', 20)))
+ if traffic['traffic_type'] == 'back2back':
+ result = self._traffic_gen_class.send_rfc2544_back2back(
+ traffic, trials=int(self._trials),
+ duration=int(get_test_param('rfc2544_duration', 20)))
+ else:
+ result = self._traffic_gen_class.send_rfc2544_throughput(
+ traffic, trials=int(self._trials),
+ duration=int(get_test_param('rfc2544_duration', 20)))
+
result = TrafficControllerRFC2544._append_results(result,
packet_size)
self._results.append(result)