diff options
author | Miroslav Miklus <mmiklus@cisco.com> | 2016-02-18 22:59:16 +0100 |
---|---|---|
committer | Miroslav Miklus <mmiklus@cisco.com> | 2016-02-19 11:04:48 +0000 |
commit | 8fe33363488d044c98650b4f9b778ea3d3e33327 (patch) | |
tree | ce466c1f99034d4d12ed6a750bed8ff95fe34a77 /resources/libraries/python/TrafficGenerator.py | |
parent | b2f08497cf7c31c4e8b3276ef8b7091242770ae3 (diff) |
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 <mmiklus@cisco.com>
Diffstat (limited to 'resources/libraries/python/TrafficGenerator.py')
-rw-r--r-- | resources/libraries/python/TrafficGenerator.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 " |