AgeCommit message (Collapse)AuthorFilesLines
2019-04-25RAN_Emulation: Modularize protocol supportHarald Welte12-139/+214
The RAN_Emulation currently unconditionally provides BSSAP and MGCP support. Let's re-structure the code so that support for those protocols is now possible to enable/disable at compile time. This patch is in preparation of introducing RANAP support in RAN_Emulation. Change-Id: Id53ba3ff05f9946230e0e4a759245de14a0f9fbd Related: OS#2856
2019-04-25msc: Add testcase for UMTS AKA over GERAN TC_lu_imsi_auth3g_tmsi()Harald Welte1-0/+15
Change-Id: I10cc7ed214e83b4624587c60f332034d3f19b22d
2019-04-25msc: f_mm_auth(): Add support for UMTS AKAHarald Welte2-9/+30
Change-Id: Id57adcebd63a06cfa555824e493561fe08f13d6d
2019-04-25sgsn: Add test cases to verify SABM handling on LLGMM + LL5Harald Welte1-0/+36
As OsmoSGSN doesn't implement ABM, the correct resposne to any SABM is DM. RelateD: OS#3953 Change-Id: Ib0d371a3356d6cb481b794945476ab40f5e0f02a
2019-04-25sgsn: Add TC_llc_null to test if SGSN survives a LLC NULL packetHarald Welte1-2/+25
This test case reproduces a bug in OsmoSGSN where it would crash as a result to sending LLC NULL frames. Change-Id: I38326f2ebaaff009d4357edad9511ce2ce7736fd Related: OS#3952
2019-04-25LLC_Templates: Add templates for NULL and DISCHarald Welte1-0/+13
Change-Id: Ia5b350990379bba1677a0c1c99cf37e6651ba84d
2019-04-25deps/Makefile: Use osmocom fork of LLC protocol moduleHarald Welte1-2/+2
Change-Id: I8b9f107f0a99dcbd8148a3d431a101d194dfe788
2019-04-25LLC_Templates: Add SABM, UA, FRMR, DM templatesHarald Welte1-2/+59
Related: OS#3953 Change-Id: Idb40dcd53310b76ea9df6c0090e31175a4382460
2019-04-24BTS_Tests: wait until BTS supplies stable signalPhilipp Maier1-0/+5
When running tests with real hardware it is important to wait for some time (3 sec. should be enough) before exiting f_init(). This is to ensure that the BTS supplies a stable carrier before the test proceeds. Change-Id: Ib78633a33a15cd40514e15b6ebf9a0a8fb7b9c68 Related: OS#3863
2019-04-24BTS_Tests: default value for mp_ipa_up_timeout too lowPhilipp Maier1-1/+1
The default value for the module parameter mp_ipa_up_timeout is set to 10 sec. Given that the sysmobts needs around 10-11 sec. to perform one restart cycle this is to low and causes tests to fail occasionally. Lets increase the default value to 15 sec to get reliable. Change-Id: I5bb290d00a02a25672305688352a03f3bf484ff3 Related: OS#3863
2019-04-23BTS_Tests.ttcn: add TC_pcu_ext_rach_content() for 11-bit RACHVadim Yanitskiy3-0/+88
According to 3GPP TS 04.60, section 11.2.5a, the extended (11-bit) Access Burst on RACH/PRACH is used by the MS to indicate its EGPRS capability. One of the alternative synch. sequences (see 3GPP TS 05.02, TS1 and TS2) shall be used. Add a test case to verify extended (11-bit) RACH decoding. Depends: (OsmocomBB) I36fd20cd5502ce33c52f644ee4c22abb83350df8 Change-Id: I8fe156aeac9de3dc1e71a4950821d4942ba9a253 Related: OS#1854
2019-04-23library/L1CTL_Types.ttcn: add L1CTL_EXT_RACH_REQ messageVadim Yanitskiy1-1/+42
According to 3GPP TS 04.60, section 11.2.5a, the extended (11-bit) Access Burst on RACH/PRACH is used by the MS to indicate its EGPRS capability. One of the alternative synch. sequences (see 3GPP TS 05.02, TS1 and TS2) shall be used. Change-Id: If037cb2f2687697f168d10a033eeb20d20183328 Related: OS#1854
2019-04-23library/L1CTL_Types.ttcn: fix: add missing L1CTL_BURST_IND messageVadim Yanitskiy1-0/+1
Change-Id: Ibf75792be70f694bca9222ec6568371475d193bb
2019-04-21MSC_Tests: Allow test cases to specify RAN indexHarald Welte2-9/+12
This allows to start ConnHdlr on specific RAN connections, i.e. on different emulated BSCs (and soon RNCs). Change-Id: I3d7ec567a7b69d8c6f79d26971bf1c94e077d5f5
2019-04-21f_perform_lu(): Use f_expect_clear(), reduce code duplicationHarald Welte1-3/+1
Change-Id: I64b183ad6615f2b0b9565a711de87fe4249625a1
2019-04-21Add f_expect_paging() rather than using tr_BSSMAP_Paging directlyHarald Welte2-7/+14
this will ease the introduction of RANAP support Change-Id: I213303337373c349676be4f8ac4175acdc701e47
2019-04-21Rename BSSMAP_Emulation -> RAN_EmulationHarald Welte14-230/+228
So far, BSSMAP_Emulation supported only a transport over BSSMAP. However, we soon intend to merge support for RANAP in order to simulate RANAP/Iu connections as well as BSSMAP. Let's start by renaming some of the existing types/functions/ports/modules without introducing any functional changes just yet. Related: OS#2857, OS#2856 Change-Id: Iecbcb0c6c136baad9460eca40606bb4010d8882d
2019-04-21BSC_ConnectionHandler: Define SDP template for CN-side CRCXHarald Welte1-14/+11
Change-Id: I90546249c41de8f99ce4a558e76cb46597413518
2019-04-19sip: Add TC_mo_setup_disc_late_rtp for OS#3518Harald Welte1-0/+48
Related: OS#3518 Change-Id: I9d5752e01d6995eff67463c51deaacedc5dcabe7
2019-04-15BSSMAP_Emulation: Check for ==/!= null instead of isvalue()Daniel Willmann1-1/+1
Related: OS#3932 Change-Id: I2434c776c6a4ee83e97bc04e7cbbaf1b546731c0
2019-04-12Ensure BcdMccMnc is encoded as 24.008 Couzens3-7/+9
PCU is using BcdMccMnc as it's encoded as 24.008. But SGSN code is using it as it would be byte by byte sorted. Fixes: OS#3878 Change-Id: Ie8f67f16f18e4c5090bc5a4c46a866a7e7e00206
2019-04-12msc: expect only one Paging on failed MT SMSNeels Hofmeyr1-31/+4
An MSC might decide to repeatedly retry Paging if it failed the first time, but osmo-msc currently has no such mechanism. Instead, it so far had a bug that retriggered a failed Paging from a start in a situation where there are SMS pending for only one subscriber, and sending the SMS fails. osmo-msc patch I24bf9f1c1167efe1080ae4cf47ed2ef0bd981e49 changes this behavior to accept a Paging failure and not launch the same SMS again numerous times. Adjust the tests to this new behavior. Depends: I24bf9f1c1167efe1080ae4cf47ed2ef0bd981e49 (osmo-msc) Change-Id: I7dce12942a65eaaf97f78ca69401c7f93faacb9e
2019-04-12msc: clear the failed SMS when a test is doneNeels Hofmeyr1-6/+13
If an MT SMS is triggered and not handled in the test, it is so far left behind when the test ends. That causes Paging to retrigger for that SMS at any later point during subsequent test runs, causing stray bogus test failures. Actually remove the SMS from the SMS database and the queue with a new VTY command: The vty command to clear failed SMS from the db is added in osmo-msc I637cbd7adc075a192f49752b38779391472ff06d Depends: I637cbd7adc075a192f49752b38779391472ff06d (osmo-msc) Change-Id: I4ff05187131e93f5bc58dc7ea44546f770e5b4c1
2019-04-09MSC_Tests: Add testcase to simulate VLR/HLR failure (SGsAP)Philipp Maier2-0/+39
Currently we do not simulate a situation where the HLR is unreachable to the MSC. Lets add a test wehere the HLR is disconnected and an LU via SGsAP is tried. The SGs interface should then carry out a reset procedure. Change-Id: I830d0b936cbe9d73d1e0b1f4792c2be3d0b08cb9 Related: OS#3859
2019-04-09MSC_Tests: allow disabeling GSUPPhilipp Maier2-8/+21
The GSUP link between testsuit and osmo-msc is currently on by default and can not be disabled. However, there may be situations where a missing GSUP connection must be simulated. Lets add add a parameter to disable GSUP if necessary. Change-Id: I7c86aa0a906a0d7e8be765f9109a65b4b4387bc6 Related: OS#3859
2019-04-09SGsAP_Templates: Remove invalid template.Philipp Maier1-1/+9
The Template tr_SGsAP_RESET_IND is invalid since it requires vlr and mme name at once, which is not a valid constellation in the real world. Lets have two separate templates, one for MME and VLR, just like we have it already with the ts_ versions of the templates. Change-Id: Ifdf6030bb42ebd99c2030d600e87127e3619d7ad Related: OS#3859
2019-04-02MSC_Tests: fix TC_sgsap_expl_imsi_det_nonepsPhilipp Maier1-2/+4
When a subscriber is detached from non eps services, it gets fully detached from 2G, which means that the VLR is supposed to remove the subscriber. Lets check if the subscriber is in deed no longer known by the VLR. Change-Id: I2ec3f548dfcf5a9b99f10214a8bfd0c6978e253b Related: OS#3614
2019-04-02MSC_Tests: add testcase TC_sgsap_impl_imsi_det_epsPhilipp Maier2-0/+26
We have a testcase that sends an explicit (UE-Initiated) imsi detach from EPS services. Lets also cover the case for an implicit (Network-initated) detach. Change-Id: I63ebc32ae457dd74214d4abee4f511cde28de4a7 Related: OS#3614
2019-04-02MSC_Tests: add testcase TC_sgsap_impl_imsi_det_nonepsPhilipp Maier2-0/+29
We have a testcase that sends an explicit (UE-Initiated) imsi detach from non EPS services. Lets also cover the case for an implicit (Network-initated) detach. Change-Id: I76049e6717680c54c18f97b7cd51944901a81ae7 Related: OS#3614
2019-04-02MSC_Tests: add function to check if a subscriber is in VLRPhilipp Maier1-0/+17
The control interface of osmo-msc is able to return a list with all active subscribers from the VLR. Lets add a function, so that we can check from TTCN3 if a specified subscriber is known by the VLR or not. Change-Id: I7661ae55afe34795c3701d59795331b32d64c988 Related: OS#3614
2019-03-29HLR_Tests.ttcn: suspend some compilation warningsVadim Yanitskiy1-20/+34
In the most use cases of f_SS_expect() we are not interested in GSUP_PDU returned by this function. Calling it without storing the returned value causes TTCN-3 compiler to complain: warning: The value returned by function `@HLR_Tests.f_SS_expect' is not used Let's make use of previously unused variable 'res', and save the returned GSUP_PDU to make the TTCN-3 compiler happy. Change-Id: Ifda42aa18af8076013b436364513296b2b008731
2019-03-29bsc-nat: Add sample bsc-nat config for testDaniel Willmann2-0/+86
Change-Id: I0ab3a4fb66201cd134238f5efcf6ff80033011e3
2019-03-29bsc-nat: Use id when creating componentsDaniel Willmann1-2/+2
Change-Id: I2c130d74405cef2b9aa1f9c0a2122fd70aa9cc62
2019-03-29bsc-nat: Add default module parametersDaniel Willmann1-11/+11
Change-Id: I800ebe0f33cf7c86eea65d2e186c6af12fee6db7
2019-03-29bsc-nat: Use BSCx as token for BSC no xDaniel Willmann1-1/+3
Change-Id: I27cf1a2f5c8a55eb9883ac9430e73c95dded9b7b
2019-03-29bsc_nat: Wait for bsc-nat to connect to MSC before connecting the BSCDaniel Willmann1-0/+2
Change-Id: Ic02ce9bd46cab7e6d4833b1d838c334e377f7d50
2019-03-29bsc-nat: Fix errors due to bit rotDaniel Willmann4-4/+11
Change-Id: I79f3b1b74c9f6f8769a5d71fde04847435f3f345
2019-03-29Rename IPA_Test->BSCNAT_Tests and get proper cfg filesDaniel Willmann4-9/+31
Change-Id: I937d2aa1abfcb302dfb529ac8be75dcd269c46e2
2019-03-28mgw: Ensure TC_selftest passed if no error is encounteredDaniel Willmann1-0/+3
Change-Id: Ie1601d57ac5bf9ddf99cbbd1cdb91160dc47c84d
2019-03-27pcu: Add TC_pcuif_suspend() to test PCU->BSSGP SUSPEND processingHarald Welte2-0/+66
The PCU is supposed to forward any RR SUSPEND received by the BTS on dedicated channels and pass it to the SGSN via BSSGP. This provides knowledge to the SGSN that the MS is not reachable via PS/TBF anymore until it completes its CC dedicated mode transaction and RESUMEs. Change-Id: Iaf35e0c1087413db1dc7d169fa716df14c78f5db
2019-03-27PCU: make f_bssgp_establish() run on BSSGP_Client_CTHarald Welte1-2/+2
This means it can be used in different/other scenarios, e.g. with tests that use PCUIF directly. Change-Id: I1aa5dc090aac78a85a85ac190343befb0199a093
2019-03-27PCUIF: Add templates for PCU_IF_MSG_SUSP_REQHarald Welte1-0/+32
Change-Id: Ib7661790b9531be829ee550ce889151ebe1885ac
2019-03-27pcu: Fix MCC/MNC handling: use 'F' between MCC and MNC in 2-digit caseHarald Welte3-5/+5
Change-Id: Ifdb64c501095839e86894716769adb53e3c17382
2019-03-27Osmocom_Gb_Types: Add more templates for BSSGP SUSPEND/RESUMEHarald Welte1-1/+176
Change-Id: Ife25401043d565e52a73206c562bbb68bcfdbafa
2019-03-27GSM_RR_Types: Add enc_RoutingAreaIdentification()Harald Welte1-0/+3
This allows us to encode a stand-alone RAID as needed in some places. Change-Id: I28222304b2bac893b216c47e6dc002886fab6406
2019-03-27BSSGP_Emulation: Handle incoming BVCI=0 messagesHarald Welte1-1/+21
Like BVCI=PTP, the BVCI=0 messages must be dispatched by their TLLI, but using the BSSGP_SP_SIG port instead of BSSGP_SP. Change-Id: Ic456d43ec07600162991698ec3d75d36785b2fb8
2019-03-27pcu: move f_pcuif_tx() to PCU_Tests_RAW as it runs on RAW_PCU_CTHarald Welte2-4/+4
Change-Id: Ic60a7fc657df17ff2d3a889501f0576b98f1f4ad
2019-03-27pcu: Ensure we're always using the same defaults for the CGIHarald Welte2-4/+4
Not all parts of the code explicitly specify each and every parameter of the Cell Gobal Identifier (particularly we don't do that for the PCU INFO IND), and hence multiple parts only interoperate if the same defaults are used in all locations. Change-Id: Iac9be9a8d4ccb4d01cc343d763d2e35873e3844f
2019-03-27PCU_Tests.ttcn: Use "normal" Osmocom TTCN-3 coding styleHarald Welte1-519/+519
Change-Id: I6eaca0ec7fb9c2dc5d59e385bc3a3a8bb85fe23a
2019-03-27NS_Emulation: Disable sending NS-RESET from SGSN to BSSHarald Welte1-1/+3
Change-Id: I2a5775fcaf63ac008adecaf2c602c82e9e4ccb5a