Change in osmo-bsc[master]: handover_test: add test_balance_congestion_by_percentage.ho_vty

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/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Jan 13 08:05:24 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/22084 )

Change subject: handover_test: add test_balance_congestion_by_percentage.ho_vty
......................................................................

handover_test: add test_balance_congestion_by_percentage.ho_vty

Considering feedback by a customer, we prefer congestion balancing by
using percentage of overload instead of number of lchans of overload.
This test is intended to illustrate the change in behavior.

Change-Id: I314915718f66aec50e8dcf94569b0a52ca34b96f
---
M tests/handover/handover_tests.ok
A tests/handover/test_balance_congestion_by_percentage.ho_vty
2 files changed, 35 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



diff --git a/tests/handover/handover_tests.ok b/tests/handover/handover_tests.ok
index 95442a3..d0c1c00 100644
--- a/tests/handover/handover_tests.ok
+++ b/tests/handover/handover_tests.ok
@@ -8,6 +8,7 @@
 pass test_amr_tch_h_to_f_congestion_two_cells.ho_vty
 pass test_balance_congestion.ho_vty
 pass test_balance_congestion_2.ho_vty
+pass test_balance_congestion_by_percentage.ho_vty
 pass test_balance_congestion_tchf_tchh.ho_vty
 pass test_congestion.ho_vty
 pass test_congestion_favor_best_target_rxlev.ho_vty
diff --git a/tests/handover/test_balance_congestion_by_percentage.ho_vty b/tests/handover/test_balance_congestion_by_percentage.ho_vty
new file mode 100644
index 0000000..e00636e
--- /dev/null
+++ b/tests/handover/test_balance_congestion_by_percentage.ho_vty
@@ -0,0 +1,34 @@
+# To balance congestion, use the remaining free percentage instead of free lchan counts.
+#
+# Cell A has min-free-slots 2, and has all slots occupied.
+# Cell B has min-free-slots 4, and has 2 slots remaining free.
+#
+# If we count congested lchans: cell A has a congestion count of 2: two more lchans in use than "allowed".
+# If we move one lchan over to cell B, it ends up with a congestion count of 3, which is worse than 2.
+# So when counting lchans, we decide that cell A should remain full.
+#
+# Instead, when comparing percentage of remaining lchans, we would see that cell A is loaded 100% above congestion (2 of
+# 2 remaining lchans in use), but when moving one lchan to cell B, it would only be 75% loaded above its treshold (3 of
+# 4 remaining lchans in use). So a percentage comparison would cause a handover to cell B.
+#
+# This test currently expects the behavior of counting lchans; a patch will change to use percentage, which should
+# reflect in this test.
+
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F PDCH
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F PDCH
+
+network
+ bts 0
+  handover2 min-free-slots tch/f 2
+ bts 1
+  handover2 min-free-slots tch/f 4
+
+set-ts-use trx 0 0 states        *    TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F *
+set-ts-use trx 1 0 states        *    TCH/F TCH/F TCH/F TCH/F -     -     *
+
+meas-rep lchan * * * * rxlev 40 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+
+# bts 0 is full, but by counting lchans above congestion, it should remain full.
+congestion-check
+expect-no-chan

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I314915718f66aec50e8dcf94569b0a52ca34b96f
Gerrit-Change-Number: 22084
Gerrit-PatchSet: 5
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210113/43373510/attachment.htm>


More information about the gerrit-log mailing list