aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-08-29BTS_Tests: add new testcase TC_pcu_data_req_imm_ass_agchPhilipp Maier1-0/+25
In PCUIF v.11 we support getting confirmations for IMMEDIATE ASSIGNMENT messages that are sent through the AGCH. Related: OS#5927 Change-Id: Iec00d8144dfb2cd8bcee9093c96a3cc98aea6458
2023-08-29BTS_Tests: use f_PCUIF_tx_mac_block_agch in TC_pcu_data_req_agchPhilipp Maier1-1/+2
The testcase TC_pcu_data_req_agch uses SAPI PCU_IF_SAPI_AGCH. Since we now have a function f_PCUIF_tx_mac_block_agch() to send MAC blocks over the AGCH using the recently introduced SAPI PCU_IF_SAPI_AGCH_2, lets use this function instead. Related: OS#5927 Change-Id: I341bbd01e8132fab913d307bfb4b2fb873cdde3c
2023-08-29PCUIF: Add support for PCU_IF_SAPI_AGCH_2Philipp Maier2-1/+63
In PCUIF v.11 it will be possible to get confirmations for IMMEDIATE ASSIGNMENT messages sent through the AGCH. Related: OS#5927 Change-Id: I40e05a2e68cca77d3c2f41df9af8d35762488abf
2023-08-29PCUIF: use confirm flag in struct gsm_pcu_if_pchPhilipp Maier4-4/+11
In the recent PCUIF change of osmo-pcu (see Depends) a confirm flag is added to struct gsm_pcu_if_pch. This flag tells the receiving end (OsmoBSC or OsmoBTS) that the sending of the received MAC block has to be confirmed towards the PCU. OsmoBTS and OsmoPCU now rely on the conformation flag. Let's update the BTS_and PCU testsuites accordingly. Related: OS#5927 Depends: osmo-pcu.git Ia202862aafc1f0cb6601574ef61eb9155de11f04 Change-Id: I7017ca20ca7e0b77d0f363121e4f17280e39e8ac
2023-08-29GPRS_Components: remove excess new-linePhilipp Maier1-1/+0
Change-Id: Id039755d0136276ec2fb8f6d370a4415a8d3e17e
2023-08-29DIAMETER: Origin-State-Id in DWR and DWA messages is optionalPau Espin Pedrol1-4/+4
Change-Id: I02e6f97a308f1752711aafed39c1d7534a382c70
2023-08-29ASCI: Update commit hash of titan.ProtocolModules.MobileL3_v13.4.0Andreas Eversberg1-1/+1
After fixing GCC and BCC transaction ID, the new head is: b6602eb357673f097ea1a1d22edd568ecd239da1 Related: OS#4854 Change-Id: I2833750a8cf1def74f92a5a50f0d271891cee05f
2023-08-27library: L1CTL: add 'start_fn' field to UL/DL TBF CFG.req messagesVadim Yanitskiy1-8/+18
Change-Id: I800e4813671e92f6010945d58dfe6297302c6f13 Related: osmocom-bb.git Ibb6a05165fe1c81268fb0e3674adae4065e78171 Related: OS#5500, OS#6147
2023-08-26dia2gsup: Introduce initial testsuiteHarald Welte6-0/+315
This testsuite contains 1 working test so far. Related: OS#5757 Change-Id: Ia3db9fd62249777cd7c63f6c4af1568c79468728
2023-08-26DIAMETER_Emulation: Support forwarding messages identified by ete_id to a ↵Pau Espin Pedrol3-15/+110
client component This is useful in the scenarios where the client component submits a IMSI-based transaction such as AIR, but its answer (AIA) contains no IMSI (as per what's specified in TS 29.272 5.2.3.1). As a result, the received AIA message would be enqueued in the DIAMETER_UNIT. With this new feature, the test can create an expect using the End-to-End Identifier of the message it is going to transmit, and receive the answer in the same DIAMETER_CLIENT port the request was transmitted, even if it contains no IMSI. Related: OS#5757 Change-Id: I25e44146d2c49e308c1fb490b499e70ac6045f2f
2023-08-26diameter: Fix order of AVPs in tr_DIA_AIAPau Espin Pedrol1-3/+3
Put them in the order they are specified and transmitted in the wire. Change-Id: Ib7ced55a5986e4b9b69529622625ae3694a4d44d
2023-08-25msc: TC_ho_inter_msc_out_csd: new testOliver Smith1-0/+14
Related: OS#4394 Change-Id: Id45a634888776265a88d607080b951a2cc33820d
2023-08-25Cosmetic: msc: f_tc_ho_inter_msc_out: fix indentOliver Smith1-3/+3
Change-Id: Ie648a485991aff0c28182955a7df2d1505457978
2023-08-25msc: TC_ho_inter_bsc_csd: new testOliver Smith2-1/+12
Related: OS#4394 Change-Id: I391856282d046e915c374e0efb06d4da870bff1f
2023-08-25GTP_Templates: fix wrong function namePhilipp Maier1-1/+1
The decoder function that decodes the RIM ROUTING ADDRESS should be called dec_RIM_Routing_Address_GTPC and not dec_PCUIF_pch_dt Change-Id: I4235bc727bf8e71d1ef4a43c830706b6e1c826c9
2023-08-25msc: add helper func f_set_cpars_csd()Oliver Smith1-17/+18
Prepare to add new CSD related tests that also need to configure the call parameters for CSD. Related: OS#4394 Change-Id: I49c29af736cc37c393cecde4c45c4ffd41322bf7
2023-08-25msc/BSC_Conn…: ass req/compl: check/use CSD codecOliver Smith1-2/+28
Verify that the MSC sends the CSData codec in the Assignment Request and send this codec in the Assignment Complete towards the MSC. Related: OS#4394 Change-Id: I7906e6fdb82c27f071aa55f2f73ba4108bfb46db
2023-08-22MME_Tests: add testcase TC_s1ap_resetPhilipp Maier2-3/+40
There is currently no testcase that makes sure that the S1AP reset works. Related: OS#5760 Change-Id: I23f4d5f2c39790b6cb0dacaec1e31912177af3ec
2023-08-22BTS_Tests: rewrite outdated commentPhilipp Maier1-1/+1
We are no longer "appending" imsi digits. This is now done properly using a struct but let's still mention what we use the IMSI for. Related: OS#5927 Change-Id: I3d943cd96e1d9627ad68e3439b2a649baa5785f1
2023-08-22PCUIF_Types: get rid of _DT, _dt (Direct TLLI)Philipp Maier4-38/+38
Since we now no longer refer to TLLI when we mean "message ID" (msg_id), we should also remove the "_DT" / "_dt" suffix from structs and define constants and replace it with "_2" if required. Depends: osmo-pcu.git If641b507dcb6b176109c99dce7cff2a7561364b0 Related: OS#5927 Change-Id: I15e754ce3ceed92a517586a073d3e3ed008b5eef
2023-08-19hnbgw: TC_apply_sccp()Neels Hofmeyr1-0/+74
Change-Id: Ia1ff0cb56893edf045ea3cb3233882ca93445d21
2023-08-19rua: also match on RUA Disconnect without RANAP payloadNeels Hofmeyr2-3/+37
Add tr_RUA_Disconnect_opt_ranap that matches RUA Disconnect with and without RANAP payload. Use this in RUA_Emulation as_main_rua(), to trigger a RUA_Disc_Ind to the CLIENT also for Disconnect without RANAP data. Rationale: This patch exists for the line RUA.receive(RUA_Disc_Ind:?); in the TC_apply_sccp patch Ia1ff0cb56893edf045ea3cb3233882ca93445d21 In upcoming HNBGW_Tests.TC_apply_sccp, I want to test for an ungraceful RUA Disconnect, which is sent without a RANAP payload. But tr_RUA_Disconnect only matches when a RANAP Message IE is present. In consequence, RUA_Emulation ignores "empty" RUA Disconnect, and my test case cannot verify that the RUA Disconnect occurred. Fix that. Change-Id: Ia0b89e9198794d196a88040ee89bdf24f3b08ae0
2023-08-19rua: RUA_Disc_Ind only when CLIENT is connectedNeels Hofmeyr1-1/+3
Only dispatch RUA_Disc_Ind to CLIENT when CLIENT is connected. Reason: If a test does not care much about conn cleanup, it may cause a situation where the CLIENT has already disconnected when osmo-hnbgw sends a RUA Disconnect. A disconnected CLIENT port will cause the final verdict to become 'error'. Instead, if the CLIENT is already disconnected, just don't bother, and allow tests to still pass. This will become necessary, because: So far a RUA Disconnect without any RANAP payload is not detected by the RUA emulation. But patch Ia0b89e9198794d196a88040ee89bdf24f3b08ae0 will fix it, so that *every* RUA Disconnect causes a RUA_Disc_Ind sent to the CLIENT. From then on, we will see a bunch more RUA_Disc_Ind at the end of tests. Some of those happen *after* the client already disconnected, causing tests to error that have been passing for a long time. Change-Id: Ia1403f39cfdc75139922292a3eace7a69a64a576
2023-08-19hnbgw: add mscpool paging testsNeels Hofmeyr3-2/+163
Change-Id: If4bbd5c970108b01e8556fa7744ff627db75fb13
2023-08-19RANAP_Templates: drop unused arg from ts_RANAP_Paging()Neels Hofmeyr1-1/+0
Change-Id: I7e4bbdba34d2f0af9044050fff19ced5ea969ae9
2023-08-17PCUIF_Types: remove unnecessary members from record PCUIF_data_cnf_dtPhilipp Maier2-39/+5
The record PCUIF_data_cnf_dt was added when the first experiments with Ericsson RBS base stations were made. It is essentially a copy of record PCUIF_data, where the mamber "data" was replaced with a member "msg_id" (which was originally called "tlli"). Since we didn't know back then which parameters we would still need at some later point we kept all the other parameters. However, to this day we never used the parameters below fn. Even fn was only used for logging purposes, but is now also unused. Let's remove all those unused members. (Since all removed members are at the tail of the struct, compatibility with other programs that use the PCUIF should not break.) Related: OS#5927 Change-Id: Ie17d73d4c4bf2921800f87f6d6be7c05ce3a291d
2023-08-17PCUIF_Codec port, do not return fn in f_PCUIF_tx_imm_ass_pchPhilipp Maier2-7/+6
The function f_PCUIF_tx_imm_ass_pch() retuns the frame number, that is sent back from osmo-bts via PCUIF / gsm_pcu_if_data_cnf_dt. Since we are about to remove this field from gsm_pcu_if_data_cnf_dt, lets no longer access it here as well. Also the return code is never used anywhere in the tests. (In osmo-pcu the fn parameter was used for logging only, in osmo-bts it was set to constant 0) Related: OS#5927 Change-Id: I0e5bad7a0d74e5032f2818f6fdf5b9b2ecb531cc
2023-08-17PCUIF: rename tlli to msg_idPhilipp Maier4-15/+15
To confirm downlink IMMEDIATE ASSIGNMENT messages, we use the TLLI as an identifier and the related record member is also called "tlli". Unfortunately this is misleading since the message identifier does not necessarly have to be a TLLI. It is just an implementation detail that osmo-pcu uses the TLLI as a message identifier. To make that clear, lets rename the tlli member (and variable and parameter names where it is passed on) to "msg_id". (Since this change only renames variables and struct members it will not break compatibility with other programs that use the PCUIF) Related: OS#5927 Depends: osmo-pcu.git I4a25039dfe329e68879bc68936e49c4b190625e6 Change-Id: I1db29d5b1920e351c452b798c3260654c2cbe0cb
2023-08-15SGSN_Tests: add RIM ROUTING ADDRESS field in requestPhilipp Maier1-1/+8
When sending the RAN INFORMATION REQUEST on GTP-C, we do not add a RIM ROUTING ADDRESS + RIM ROUTING ADDRESS DISCRIMINATOR field. Those fields are optional but commonly added so that the SGSN does not have to disassemble the RAN TRANSPARENT CONTAINTER to know the destination address. see also: 3gpp TS 29.060, section 7.5.14 and 3GPP TS 23.060, section 8.1.5.2.2 Change-Id: Id944c66f28d787a18c6c6f7c9dc885997d83e94c Related: OS#6095
2023-08-10hnbgw: attempt to fix sporadic test failuresNeels Hofmeyr1-0/+5
Give some more wait time for RANAP RESET after f_cn_nr_init(). Intended to fix sporadic failures of HNBGW_Tests... - TC_rab_assign_mgcp_to - TC_ranap_cs_mo_disconnect Change-Id: Ia5144dbbc5168b3707e714e12b805f5d640fa774
2023-08-09MME_Tests: add testcase TC_RIM_RAN_INFPhilipp Maier1-1/+277
The proposed testcase models a full RIM RAN INFORMATION REQUEST that originates at the eNB (S1AP), is forwarded by the MME towards GERAN (GTP) and goes back towards the MME (GTP) and is eventually forwarded by the MME back to the eNB (S1AP). Related: OS#5760 Related: OS#5759 Change-Id: I22d5aaab64df2824099977fb574afb86a4b7e91f
2023-08-09GTP_Templates: Add templates for RIM ROUTING ADDRESSPhilipp Maier1-0/+26
The IE types RIM_RoutingAddress and RIM_RoutingAddress_Discriminator have not coresponding templates yet. Related: OS#6095 Change-Id: If79f94ac3b7ec9a76763141ee2d8cac50c69d60b
2023-08-09GTP_Templates: add template restriction qualifiersPhilipp Maier1-177/+182
The GTP Templates lack the template restriction qualifiers (present, value, omit) in many places. Related: OS#6095 Change-Id: Ic439b4ae85b417fde0ddfb8fa00758d6486b57c8
2023-08-08hnbgw: add CN pool testsNeels Hofmeyr7-22/+946
docker-playground.git needs a config file change to be committed at the same time as this patch, see 'Related'. Depends: osmo-ttcn3-hacks I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c Change-Id: I027a059faed3f140f8801f84338956cd004043b5
2023-08-08hnbgw: CN links: implement 'allow attach'Neels Hofmeyr1-7/+76
Prep for I027a059faed3f140f8801f84338956cd004043b5 Change-Id: I5c9db4b31298ca9855b4390481a709f863459172
2023-08-08hnbgw: add CTRL portNeels Hofmeyr1-0/+3
Change-Id: I4c06e1fda135d87ce52151fd574f481cd414722f
2023-08-08ctrl: f_counter_name_vals_get_n(): add start_idx, for hnbgwNeels Hofmeyr1-2/+3
Allow starting with a specific 'msc' / 'sgsn' instance without having to read all the lower numbers along. For HNBGW_Tests.ttcn. Change-Id: I9b74a1df9e115883b4b0ac0f606a370c6aca7f40
2023-08-08hnbgw: call f_start_hnbs() by defaultNeels Hofmeyr1-20/+10
Most tests need to run f_start_hnbs() directly after f_init(), so make that the default behavior. The three tests that don't want f_start_hnbs() to run now pass a new arg, f_init(start_hnb := false). Change-Id: I2b29ce66aee0b2d57fa26e6110f06292c481ab6b
2023-08-08hnbgw: do not duplicate MSC_RanOpsNeels Hofmeyr1-13/+1
Change-Id: I556eb4293f51b56a526d4e60c3ac2aa357a8d3e7
2023-08-07GTP_Templates: add decoder/encoder functions for RIM_Routing_Address_GTPCPhilipp Maier1-0/+4
When forwarding RAN TRANSPARENT CONTAINERs containers on GTP-C, the sender adds a RIM ROUTING ADDRESS and a RIM ROUTING ADDRESS DISCRIMINATOR. The RIM ROUTING ADDRESS is represented as an octet-string, so we need encoder/decoder functions for it. Related: OS#6095 Change-Id: I45d1f5b019f3847fd611c38dc19d78d6fe027c5a
2023-08-03BTS_Tests: fix log line (AGCH->PCH)Philipp Maier1-1/+1
The testcase TC_pcu_data_req_imm_ass_pch uses the PCH to transmit the IMMEDIATE ASSIGNMENT message but the log line mentions the AGCH. Related: OS#5927 Change-Id: I7cb8d91f2c3f92009d33134167eab856ee02fdab
2023-08-03PCUIF_CodecPort: mention channel (PCH) in log linesPhilipp Maier1-3/+3
Related: OS#5927 Change-Id: I8a304acfc8894e6b31617756f43632a9c4dd5d23
2023-08-03BTS_Tests: fix commentPhilipp Maier1-1/+1
The testcase is about PCH, not AGCH Related: OS#5927 Change-Id: I5c2aa1aab261a0f4bfb24b4be7af29c1d814d37a
2023-08-03BTS_Tests: call f_pcu_data_req with correct timeslotPhilipp Maier1-3/+3
We are calling f_pcu_data_req() with SAPI PCU_IF_SAPI_AGCH or SAPI PCU_IF_SAPI_PCH and use ts_nr 7. In this particular case, the parameter ts_nr has no effect (see pcu_sock.c in osmo-bts.git). However, to prevent confusion, lets use ts_nr 0 since AGCH and PCH are actually is on TS 0 (on TRX 0). Related: OS#5927 Change-Id: I20566de992809d6c857c9062bf0fb799efa43e45
2023-07-31pcu: Introduce test TC_dl_multislot_tbf_ms_class_unknownPau Espin Pedrol2-0/+76
Related: OS#6118 Change-Id: I9af8792fe4c44b5dd1aab5a2d4b7d3c2a2366d12
2023-07-31pcu: TC_dl_multislot_tbf_ms_class_from_sgsn(): Properly wait for USFPau Espin Pedrol1-2/+4
Change-Id: I34b31c292c00b6880311906ce6713a8e3c69a0d2
2023-07-31pcu: Split f_ms_tx_ul_data_block() into helper functionsPau Espin Pedrol2-42/+44
This allows shrinking some tests which wish to send specificaly crafter LlcBlocks (since the way LlcBlocks are created for f_ms_tx_ul_data_block only allows sending data related to the same upper LLC PDU) Change-Id: I81176fa5c7caa2535bcc97eec26833579933ed7a
2023-07-28ASCI: Add GCC and BCC service requests to BSC_ConnectionHandler.ttcnAndreas Eversberg1-1/+9
Related: OS#4854 Change-Id: Ic4875fde45dfc8d6928a48c0f6edc91d994bfa97
2023-07-28ASCI: Rename handoverRequest to n_connect in RAN_Emulation.ttcnppAndreas Eversberg3-37/+37
The expectation table is used to deliver new connections with Handover Request as well as with VGCS/VBS Setup and VGCS/VBS Assignment Request. "handoverRequest" is renamed to "n_connect". Related: OS#4854 Change-Id: I941c5db5235785841f3368ef908a409bbb12150e
2023-07-28ASCI: Allow incoming VGCS/VBS connections at RAN_Emulation.ttcnppAndreas Eversberg1-0/+11
Similar to Handover Requests the RAN Emulation can accept new SCCP connections with VGCS/VBS Setup message and VGCS/VBS Assignment Request message. The point code for the incoming connection can be registered in the same way as for the Handover Request. In order to allow multiple connections with the same point code, the table entry in the ExpectTable must be released after receiving the message. VGCS/VBS calls have multiple connections to the same BSC. This patch does not break existing MSC handover tests. Related: OS#4854 Change-Id: I3fc0c5efe7d9f270804e7295aeb65cfe7898bd7e