Change in osmo-bsc[master]: handover tests: test passing of penalty timeout

neels gerrit-no-reply at lists.osmocom.org
Thu Jul 15 09:28:21 UTC 2021


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

Change subject: handover tests: test passing of penalty timeout
......................................................................

handover tests: test passing of penalty timeout

With recent addition of fake time in handover_test ('wait cmd'), show
how a penalty timeout in handover decision 2 passes and allows a
handover again after due time.

Related: SYS#5198
Change-Id: I65e59cc7309778cf9d71612669ce84d101c8135e
---
M tests/handover/test_max_ta.ho_vty
M tests/handover/test_penalty_timer.ho_vty
2 files changed, 30 insertions(+), 0 deletions(-)

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



diff --git a/tests/handover/test_max_ta.ho_vty b/tests/handover/test_max_ta.ho_vty
index 05c4a76..56dbb19 100644
--- a/tests/handover/test_max_ta.ho_vty
+++ b/tests/handover/test_max_ta.ho_vty
@@ -7,15 +7,31 @@
 
 create-n-bts 2
 set-ts-use trx 0 0 states * TCH/F - - - - - -
+
 network
  bts 0
   handover2 maximum distance 5
+  handover2 penalty-time max-distance 17
+
 meas-rep lchan 0 0 1 0 rxlev 30 rxqual 0 ta 5 neighbors 20
 expect-no-chan
 meas-rep lchan 0 0 1 0 rxlev 30 rxqual 0 ta 6 neighbors 20
 expect-ho from lchan 0 0 1 0 to lchan 1 0 1 0
 expect-ts-use trx 0 0 states * - - - - - - -
 expect-ts-use trx 1 0 states * TCH/F - - - - - -
+
+# Penalty timer after TA was exceeded is running, so no handover back to the better cell:
 meas-rep lchan 1 0 1 0 rxlev 20 rxqual 0 ta 6 neighbors 30
 expect-no-chan
 
+wait 16
+# Penalty timer still running
+meas-rep lchan 1 0 1 0 rxlev 20 rxqual 0 ta 6 neighbors 30
+expect-no-chan
+
+wait 1
+# Now 17 seconds have passed, timeout is done, and a handover is performed again.
+meas-rep lchan 1 0 1 0 rxlev 20 rxqual 0 ta 6 neighbors 30
+expect-ho from lchan 1 0 1 0 to lchan 0 0 1 0
+expect-ts-use trx 0 0 states * TCH/F - - - - - -
+expect-ts-use trx 1 0 states * - - - - - - -
diff --git a/tests/handover/test_penalty_timer.ho_vty b/tests/handover/test_penalty_timer.ho_vty
index 9511b5e..8d864a2 100644
--- a/tests/handover/test_penalty_timer.ho_vty
+++ b/tests/handover/test_penalty_timer.ho_vty
@@ -29,3 +29,17 @@
 # No handover because the penalty timer is still running
 meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
 expect-no-chan
+
+wait 17
+# at this point, the penalty timer has not yet expired. (4+1+17 = 22 < 23)
+meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
+expect-no-chan
+expect-ts-use trx 0 0 states * TCH/F - - - - - -
+expect-ts-use trx 1 0 states * - - - - - - -
+
+wait 1
+# now the penalty timer of 23 seconds has passed and the handover is attempted again.
+meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
+expect-ho from lchan 0 0 1 0 to lchan 1 0 1 0
+expect-ts-use trx 0 0 states * - - - - - - -
+expect-ts-use trx 1 0 states * TCH/F - - - - - -

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I65e59cc7309778cf9d71612669ce84d101c8135e
Gerrit-Change-Number: 24935
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
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/20210715/76f6f34c/attachment.htm>


More information about the gerrit-log mailing list