Change in osmo-bsc[master]: handover_test: add test_congestion_favor_best_target_rxlev.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
Thu Jan 7 10:29:41 UTC 2021


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

Change subject: handover_test: add test_congestion_favor_best_target_rxlev.ho_vty
......................................................................

handover_test: add test_congestion_favor_best_target_rxlev.ho_vty

The aim is to pin the current basic behavior of handover decision 2,
before modifying the algorithm conditions to fix some bugs in upcoming
patches -- so far no test ensures this particular detail.

Change-Id: I68cdda21ef59c464f0af3c2eee356623e58ea1cd
---
M tests/handover/handover_tests.ok
A tests/handover/test_congestion_favor_best_target_rxlev.ho_vty
2 files changed, 34 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/tests/handover/handover_tests.ok b/tests/handover/handover_tests.ok
index 1a9a18f..71f6255 100644
--- a/tests/handover/handover_tests.ok
+++ b/tests/handover/handover_tests.ok
@@ -7,6 +7,7 @@
 pass test_balance_congestion.ho_vty
 pass test_balance_congestion_2.ho_vty
 pass test_congestion.ho_vty
+pass test_congestion_favor_best_target_rxlev.ho_vty
 pass test_disabled_ho_and_as.ho_vty
 pass test_dyn_ts_amr_tch_f_to_h_congestion_assignment.ho_vty
 pass test_dyn_ts_favor_half_used_tch_h_as_target.ho_vty
diff --git a/tests/handover/test_congestion_favor_best_target_rxlev.ho_vty b/tests/handover/test_congestion_favor_best_target_rxlev.ho_vty
new file mode 100644
index 0000000..e31d98d
--- /dev/null
+++ b/tests/handover/test_congestion_favor_best_target_rxlev.ho_vty
@@ -0,0 +1,33 @@
+# A handover should mostly favor the best target rxlev:
+# Two candidates for congestion resolution both reduce the RXLEV for the MS,
+# candidate A results in 10 RXLEV loss, candidate B only in 5 RXLEV loss.
+# But candidate A still results in a better RXLEV at the target than candidate B.
+# So tolerate more RXLEV reduction if the resulting RXLEV still remains better.
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F
+
+network
+ bts 0
+  handover2 min-free-slots tch/f 6
+
+set-ts-use trx 0 0 states * TCH/F TCH/F - - - - -
+meas-rep lchan 0 0 1 0 rxlev 40 rxqual 0 ta 0 neighbors 30
+meas-rep lchan 0 0 2 0 rxlev 30 rxqual 0 ta 0 neighbors 25
+
+congestion-check
+expect-ho from lchan 0 0 1 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - TCH/F - - - - -
+expect-ts-use trx 1 0 states * TCH/F - - - - - -
+
+# clear measurements for next run
+set-ts-use trx 0 0 states * - - - - - - -
+set-ts-use trx 1 0 states * - - - - - - -
+
+set-ts-use trx 0 0 states * TCH/F TCH/F - - - - -
+meas-rep lchan 0 0 1 0 rxlev 30 rxqual 0 ta 0 neighbors 25
+meas-rep lchan 0 0 2 0 rxlev 40 rxqual 0 ta 0 neighbors 30
+
+congestion-check
+expect-ho from lchan 0 0 2 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * TCH/F - - - - - -
+expect-ts-use trx 1 0 states * TCH/F - - - - - -

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

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


More information about the gerrit-log mailing list