Change in osmo-ttcn3-hacks[master]: bsc: verify TSC in inter-BSC ho (out) RR HO Cmd

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

neels gerrit-no-reply at lists.osmocom.org
Mon Oct 4 10:43:11 UTC 2021


neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25665 )

Change subject: bsc: verify TSC in inter-BSC ho (out) RR HO Cmd
......................................................................

bsc: verify TSC in inter-BSC ho (out) RR HO Cmd

Related: SYS#4895 OS#5244
Related: Iae20df4387c3d75752301bd5daeeea7508966393 (osmo-bsc)
Change-Id: Icabcedc59d80e812c3d6ba5d6db5e2bb9b319252
---
M bsc/BSC_Tests.ttcn
1 file changed, 14 insertions(+), 2 deletions(-)

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



diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index cc387f6..d64ccc0 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -5677,6 +5677,7 @@
 	var RslChannelNr new_chan_nr := valueof(t_RslChanNr0(1, RSL_CHAN_NR_Bm_ACCH));
 	f_rslem_register(0, new_chan_nr);
 	g_chan_nr := new_chan_nr;
+	var uint3_t expect_target_tsc := BTS_TSC[0];
 	f_sleep(1.0);
 
 	f_create_mgcp_expect(ExpectCriteria:{omit,omit,omit});
@@ -5696,8 +5697,10 @@
 
 	BSSAP.receive(tr_BSSMAP_HandoverRequestAcknowledge(?)) -> value rx_bssap;
 
-	/* we're sure that the channel activation is done now, verify the encryption parameters in it */
-	f_verify_encr_info(f_rslem_get_last_act(RSL_PROC, 0, g_chan_nr));
+	/* we're sure that the channel activation is done now, verify the parameters in it */
+	var RSL_Message chan_act := f_rslem_get_last_act(RSL_PROC, 0, g_chan_nr);
+	f_verify_encr_info(chan_act);
+	f_chan_act_verify_tsc(chan_act, expect_target_tsc);
 
 	ho_command_str := rx_bssap.pdu.bssmap.handoverRequestAck.layer3Information.layer3info;
 	log("Received L3 Info in HO Request Ack: ", ho_command_str);
@@ -5717,6 +5720,15 @@
 	}
 	log("Handover Command chan_nr is", actual_new_chan_nr);
 
+	var uint3_t got_tsc := rr_chan_desc_tsc(ho_command.msgs.rrm.handoverCommand.channelDescription2);
+	if (not match(got_tsc, expect_target_tsc)) {
+		setverdict(fail, "RR Handover Command: unexpected TSC in Channel Description: expected ",
+			   expect_target_tsc, " got ", got_tsc);
+		mtc.stop;
+	} else {
+		log("handoverCommand: verified TSC = ", got_tsc);
+	}
+
 	/* Now the MSC forwards the RR Handover Command to the other BSC, which
 	 * tells the MS to handover to the new lchan. Here comes the new MS on
 	 * the new lchan with a Handover RACH: */

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Icabcedc59d80e812c3d6ba5d6db5e2bb9b319252
Gerrit-Change-Number: 25665
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy 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/20211004/3b5e0d9e/attachment.htm>


More information about the gerrit-log mailing list