[PATCH] osmo-ttcn3-hacks[master]: bsc: TC_paging_imsi_load: retransmit 'no paging buffer space'

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Mar 17 17:22:09 UTC 2018


Review at  https://gerrit.osmocom.org/7351

bsc: TC_paging_imsi_load: retransmit 'no paging buffer space'

If 5 seconds expire, the BSC will automatically re-fill a credit
of 20 paging slots [to work with BTSs where the paging buffer space
indications somehow are missing].  Let's make sure we don't hit
that case, even if the operating system sleeps for more than 5s
in this test .

Change-Id: I1c65096a685b70dc5183592382ec03553ba3628f
---
M bsc/BSC_Tests.ttcn
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/51/7351/1

diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index c8961e9..355f3e2 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -1175,6 +1175,7 @@
 testcase TC_paging_imsi_load() runs on test_CT {
 	var BSSMAP_FIELD_CellIdentificationList cid_list;
 	timer T := 4.0;
+	timer T_retrans := 1.0;
 	cid_list := valueof(ts_BSSMAP_CIL_noCell);
 	f_pageing_helper('001010123456789'H, cid_list, c_BtsId_all);
 
@@ -1186,11 +1187,18 @@
 	/* Wait for 4 seconds if any more PAGING CMD are received on RSL. Normally,
 	 * there would be 8 retransmissions during 4 seconds */
 	T.start;
+	T_retrans.start;
 	alt {
 	[] IPA_RSL[0].receive(tr_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0, tr_RSL_PAGING_CMD(?))) {
 		setverdict(fail, "Received PAGING after LOAD_IND(0)");
 		self.stop;
 		}
+	[] T_retrans.timeout {
+		/* re-trnsmit the zero-space LOAD IND to avoid BSC 'auto credit' */
+		f_ipa_tx(0, ts_RSL_PAGING_LOAD_IND(0));
+		T_retrans.start;
+		repeat;
+		}
 	[] T.timeout {
 		setverdict(pass);
 		}

-- 
To view, visit https://gerrit.osmocom.org/7351
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c65096a685b70dc5183592382ec03553ba3628f
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list