aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-25 14:23:37 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-05-25 14:23:39 +0200
commitd84a8387be583e61101a7c9fc3868a66be930a91 (patch)
tree0c092e645c4d29fbab44bdaee0908a9d9559b013 /doc
parentf4ab97fb4a419b78536b8e0204ea69bafb52be11 (diff)
4g: Pass max bitrate to iperf3
Otherwise bitrate 0 (unlimited) does weird stuff, like iperf3 hanging forever in DL. Change-Id: I631243cce132923d9024f8161cf96161c51cdae5
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/examples/4g_srsLTE/suites/4g/iperf3_dl.py5
-rwxr-xr-xdoc/examples/4g_srsLTE/suites/4g/iperf3_ul.py5
2 files changed, 6 insertions, 4 deletions
diff --git a/doc/examples/4g_srsLTE/suites/4g/iperf3_dl.py b/doc/examples/4g_srsLTE/suites/4g/iperf3_dl.py
index 66d75bb..d90c80b 100755
--- a/doc/examples/4g_srsLTE/suites/4g/iperf3_dl.py
+++ b/doc/examples/4g_srsLTE/suites/4g/iperf3_dl.py
@@ -20,8 +20,10 @@ print('ENB is connected to EPC')
ue.connect(enb)
+max_rate = enb.ue_max_rate(downlink=True)
+
iperf3srv.start()
-proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_DL, ue.netns())
+proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_DL, ue.netns(), bitrate=max_rate)
print('waiting for UE to attach...')
wait(ue.is_connected, None)
@@ -34,7 +36,6 @@ iperf3srv.stop()
iperf3cli.print_results()
iperf3srv.print_results(iperf3cli.proto() == iperf3cli.PROTO_UDP)
-max_rate = enb.ue_max_rate(downlink=True)
res_str = ue.verify_metric(max_rate * 0.8, operation='avg', metric='dl_brate', criterion='gt')
print(res_str)
test.set_report_stdout(res_str)
diff --git a/doc/examples/4g_srsLTE/suites/4g/iperf3_ul.py b/doc/examples/4g_srsLTE/suites/4g/iperf3_ul.py
index 7dca127..453cdfa 100755
--- a/doc/examples/4g_srsLTE/suites/4g/iperf3_ul.py
+++ b/doc/examples/4g_srsLTE/suites/4g/iperf3_ul.py
@@ -20,8 +20,10 @@ print('ENB is connected to EPC')
ue.connect(enb)
+max_rate = enb.ue_max_rate(downlink=False)
+
iperf3srv.start()
-proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_UL, ue.netns())
+proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_UL, ue.netns(), bitrate=max_rate)
print('waiting for UE to attach...')
wait(ue.is_connected, None)
@@ -34,7 +36,6 @@ iperf3srv.stop()
iperf3cli.print_results()
iperf3srv.print_results(iperf3cli.proto() == iperf3cli.PROTO_UDP)
-max_rate = enb.ue_max_rate(downlink=False)
res_str = ue.verify_metric(max_rate * 0.8, operation='avg', metric='ul_brate', criterion='gt')
print(res_str)
test.set_report_stdout(res_str)