Change in osmo-gsm-tester[master]: iperf: adds the option to define the packet length for udp.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Alejandro Leal gerrit-no-reply at lists.osmocom.org
Wed May 19 14:38:54 UTC 2021


Alejandro Leal has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24273 )


Change subject: iperf: adds the option to define the packet length for udp.
......................................................................

iperf: adds the option to define the packet length for udp.

Added the feature to configure the packet length in udp iperf. Added a modifier to select the length value.
The default value is configured to 1460.

Change-Id: Ic886faa82b7cb25f2bce685eb80910623e4ff686
---
M src/osmo_gsm_tester/obj/iperf3.py
M sysmocom/defaults.conf
A sysmocom/scenarios/cfg-iperf3-length at .conf
3 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/73/24273/1

diff --git a/src/osmo_gsm_tester/obj/iperf3.py b/src/osmo_gsm_tester/obj/iperf3.py
index cca93a8..675bff2 100644
--- a/src/osmo_gsm_tester/obj/iperf3.py
+++ b/src/osmo_gsm_tester/obj/iperf3.py
@@ -32,6 +32,7 @@
     config_schema = {
         'time': schema.DURATION,
         'protocol': 'iperf3_protocol',
+        'length' : schema.UINT,
         }
     schema.register_config_schema('iperf3cli', config_schema)
 
@@ -271,6 +272,9 @@
             popen_args += ('--bidir',)
         if proto == IPerf3Client.PROTO_UDP:
             popen_args += ('-u', '-b', str(bitrate))
+            # Add the buffer length.
+            buffer_length = str(values.get('length'))
+            popen_args += ('-l', buffer_length)
         if tos is not None:
             popen_args += ('-S', str(tos))
 
diff --git a/sysmocom/defaults.conf b/sysmocom/defaults.conf
index af5c52c..5a2d057 100644
--- a/sysmocom/defaults.conf
+++ b/sysmocom/defaults.conf
@@ -203,3 +203,4 @@
 
 iperf3cli:
   time: 60
+  length: 1460
diff --git a/sysmocom/scenarios/cfg-iperf3-length at .conf b/sysmocom/scenarios/cfg-iperf3-length at .conf
new file mode 100644
index 0000000..56172c3
--- /dev/null
+++ b/sysmocom/scenarios/cfg-iperf3-length at .conf
@@ -0,0 +1,3 @@
+config:
+  iperf3cli:
+    length: ${param1} 
\ No newline at end of file

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24273
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Ic886faa82b7cb25f2bce685eb80910623e4ff686
Gerrit-Change-Number: 24273
Gerrit-PatchSet: 1
Gerrit-Owner: Alejandro Leal <alejandro.leal at srs.io>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210519/4d6e8ba1/attachment.htm>


More information about the gerrit-log mailing list