From 8fe33363488d044c98650b4f9b778ea3d3e33327 Mon Sep 17 00:00:00 2001 From: Miroslav Miklus Date: Thu, 18 Feb 2016 22:59:16 +0100 Subject: T-REX: change relative rate values to absolute units Instead of using realative values expressed in percentage of linerate rather use absolute values to assure consistency of results across NICs with various speeds (10G, 40G, 100G, ...) Change-Id: Ifd455d823e80002c277deaf8cb8295c81b59bf4a Signed-off-by: Miroslav Miklus --- resources/libraries/python/TrafficGenerator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources') diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py index bc9678b399..4b71b59cc7 100644 --- a/resources/libraries/python/TrafficGenerator.py +++ b/resources/libraries/python/TrafficGenerator.py @@ -83,7 +83,7 @@ class TrafficGenerator(object): :param nodes_info: Dictionary containing information on all nodes in topology. :param duration: Duration of test traffic generation in seconds - :param rate: Percentage of linerate + :param rate: Offered load per interface (e.g. 1%, 3gbps, 4mpps, ...) :param framesize: Frame size (L2) in Bytes :param traffic_type: Traffic profile :type nodes_info: dict @@ -110,7 +110,7 @@ class TrafficGenerator(object): if traffic_type in ["3-node-xconnect", "3-node-bridge"]: (ret, stdout, stderr) = ssh.exec_command( "sh -c '/tmp/openvpp-testing/resources/tools/t-rex-stateless.py " - "-d {0} -r {1}% -s {2} " + "-d {0} -r {1} -s {2} " "--p1_src_start_ip 10.10.10.1 " "--p1_src_end_ip 10.10.10.254 " "--p1_dst_start_ip 20.20.20.1 " @@ -121,7 +121,7 @@ class TrafficGenerator(object): elif traffic_type in ["3-node-IPv4"]: (ret, stdout, stderr) = ssh.exec_command( "sh -c '/tmp/openvpp-testing/resources/tools/t-rex-stateless.py " - "-d {0} -r {1}% -s {2} " + "-d {0} -r {1} -s {2} " "--p1_src_start_ip 10.10.10.2 " "--p1_src_end_ip 10.10.10.254 " "--p1_dst_start_ip 20.20.20.2 " -- cgit 1.2.3-korg