Commit Graph

4219 Commits

Author SHA1 Message Date
Pau Espin 4976217518 LTE_CryptoFunctions.ttcn: Immediate termination upon failure
Change-Id: I09170c17c5cbb552a8aeef31b4b8fa5c89a00887
2023-12-15 13:18:09 +00:00
Vadim Yanitskiy 17953b8347 library/RLCMAC_EncDec: fix segfault in encode_trailing_padding_spb()
Change-Id: Ib0992a50026f0e0deebb959788ed6e79c5286fec
Related: OS#6310
2023-12-15 13:15:30 +00:00
Vadim Yanitskiy 8f86bbee5a library/PCUIF_Types: clean up, drop remains of PCUIFv10
Change-Id: Ibfe8558cb9f335d8c29348063b0ff02b138dd4c7
Related: osmo-pcu.git I68a3f59d5c960ae3a4fbd74f9d4a894295cb9ed8
Related: docker-playground.git If0b2209af645f391817f65b4227736b52ca59e2e
Related: docker-playground.git I70f0c30d6c514614095dcbbcac5d025001861fbc
Related: OS#6191
2023-12-15 13:15:30 +00:00
Vadim Yanitskiy 284387a865 library/PCUIF_Types: fix padding attribute for PCUIF_Message
This fixes tons of warnings like this one:

  dec_PCUIF_Message(): Data remained at the end of the stream
                       after successful decoding: '00'O

Change-Id: If34da75c21b023222c44504d561cd6f658a401cf
Fixes: e0666ea5 "PCUIF: upgrade to PCUIF v12"
Related: OS#6191
2023-12-15 13:15:30 +00:00
Vadim Yanitskiy 9f40dc586a library/L1CTL_Types: add missing L1CTL_GPRS_RTS_IND message
This commit fixes the following warnings:

  While RAW-decoding type '@L1CTL_Types.L1ctlMessageLV':
    Invalid enum value '37' for '@L1CTL_Types.L1ctlMsgType':

Change-Id: I0772f5273ecc2fb0c3def1fd645828b216e3032f
Related: osmocom-bb.git I1494e0aac7555f6e01b4b435b77140afc42c098e
2023-12-15 13:15:30 +00:00
Andreas Eversberg 2e7d39878c Fix TC_rll_est_ind (contention resolution on DCCH SAPI 0)
The BTS rejects establishment without contention resolution on DCCH SAPI
0. This only applies if channel activation type is for immediate
assignment. The Test expects the establishment on DCCH SAPI 0 to fail,
if channel activation type is for immediate assignment and to pass, if
the channel activation type is for normal assignment.

Related: OS#6309
Change-Id: I8143c6e9448a663fee2111a91415cc58fbcb2133
2023-12-14 15:04:57 +00:00
Pau Espin d7ae2c4eb2 library/GTPv2_Emulation: Patch SeqNr only on outbound initial messages
Change-Id: I0f13074ccee2bf2d00d2dc2af491b9effc142f22
2023-12-13 19:18:58 +01:00
Pau Espin fa2b384f2a GTPv2: set TEID and SeqNr in ts_GTP2C_CreateSessionResp
Change-Id: I83f1f4f78adb9cd85758513420479327ea73187a
2023-12-13 18:49:19 +01:00
Pau Espin 2e9988dc17 library/GTPv2_Templates: Fix seq nr not set in ts_GTP2C_DeleteSessionResp
Change-Id: I8409eb35fc2f0bda6c5e11ae5c3d7628503bb2cd
2023-12-13 18:48:33 +01:00
Pau Espin ae04c793b1 ggsn: Allow receiving MTU ICMPv6 Option in RouterAdv
This Option is not mandatory, but open5gs-smfd started transmitting it
recently (ab64ff9514d8da121500be7b92c9d793ef20b894). Allow it.

Change-Id: Icf3e10dc599d41fb65051670fc3aec5ff0c67510
2023-12-06 14:11:45 +00:00
Pau Espin 229ceed4ef ggsn: Fix restriction type on several template definitions
Change-Id: I47a0c3fbf1b4078c2d8157b148330f7750cc3266
2023-12-06 14:11:45 +00:00
Pau Espin 9c1c2ae6b6 ggsn: Early exit test if f_wait_icmp6() fails
Change-Id: Ida6be6194f98de44dca804759c85016031cae61c
2023-12-06 14:11:45 +00:00
Daniel Willmann 09ed994961 gbproy/ns: Make components alive
Might help with random test failures on shutdown, see OS#6273 for
details.

Change-Id: I59578934c6406bea5eb8d55d3641737e555a2d85
Related: OS#6273
2023-12-05 15:47:05 +01:00
Pau Espin af74650899 hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg
Change-Id: Ibfc37118ed3a67e4ca3f417273bedba127be7639
Related: SYS#6657
Related: OS#6127
2023-12-04 12:17:07 +01:00
Pau Espin 0c35a6363b hnbgw: Allow announcing a different mgw-local IuUP address after MDCX
This will allow emulating an MGW deciding to change its local IuUP IP
address due to received remote address in MGCP MDCX, and announce the
changed address back in MGCP MDCX. A test validating this scenario
against osmo-hnbgw will be added in a follow-up patch.

Related: SYS#6657
Change-Id: Ia724e0363a8bab56f5d31e7f7f7a127af584f935
2023-12-04 12:17:07 +01:00
Pau Espin 264679fa7c hnbgw: Rename record CrcxResponse->MgwResponse
The previous name is misleading, since they are also used during MDCX.

Change-Id: I1ffcb1100b0f92f7175ff08f9d4df49c0cf596b5
2023-12-04 11:16:41 +00:00
Pau Espin b85ac2ffe2 hnbgw: Rename mgcp conns to reflect each side peer
Change-Id: Ie68d0397a56d48223fb4b1ffe1710f988518257f
2023-12-04 11:16:41 +00:00
Neels Hofmeyr 8f4db54e95 bsc: tests recovery from BORKEN after release failed
Related: osmo-bsc Ic4728b3efe843ea63e2a0b54b1ea8a925347484a
Related: SYS#6655
Change-Id: I9b4ddfc4a337808d9d5ec538c25fd390b1b2530f
2023-11-30 02:33:11 +00:00
Philipp Maier 7c66d8087f PCU_Tests: tell PCU a more realistic BTS model
In ts_PCUIF_INFO_default we set the bts_model member to
PCU_IF_BTS_MODEL_UNSPEC. This means that the PCU will not know the BTS
model and thus it is not able to comply to the specific pecularities of
the BTS model that is used. In PCU_Tests.ttcn we simulate the behavior
of an OsmoBTS with OsmoTRX, therefore we should set the BTS model to
PCU_IF_BTS_MODEL_TRX.

This will also fix the problems we have with unexpected DUMMY messages
we currently receive since in an OsmoTRX based BTS model those frames
will be generated by OsmoTRX and do not appear on the PCUIF interface.
When the BTS model is left unspecified, then the PCU will generate those
DUMMY messages and irretate the testsuite.

Related: OS#6191
Change-Id: I6b516eece6acc96ebde9759bcb609197a245dd84
2023-11-28 12:45:36 +01:00
Neels Hofmeyr 6ce7d07623 hnbgw: fixup for osmo-hnbgw-with-pfcp.cfg
Drop a config line that should not be committed; it was added during
local testing of logging patches that are still unmerged.

Change-Id: Ie29c0e0d80c9318c104fe884868a30c17b6997bb
2023-11-22 21:49:20 +00:00
Philipp Maier c65db25a51 PCUIF_Types: make PCUIF_info_ind field bts_model optional
The field bts_model has been introduced with PCUIF v12, which is now
used in master. In latest we still use PCUIF v11, where the bts_model
field is not present. This means that when we test against osmo-bts
latest there will be an error parsing PCUIF_info_ind. A solution to this
problem is to declare the bts_model field as an optional field until
PCUIF v12 is also used in latest.

Related: OS#6191
Change-Id: I45947f3bddaccafee82824ebb1b8494eabc67e7a
2023-11-22 15:43:03 +01:00
Andreas Eversberg 412e9ab66a BTS_Tests_LAPDm.TC_sabm_retransmit_bts: Fix time to wait
Wait 20 seconds, because T200 on SDCCH, SAPI 3 lasts about 2 seconds.

Relates: OS#5970
Change-Id: I593008420f58cc1d5e4778874f9071914d24f82e
2023-11-22 12:24:25 +00:00
Andreas Eversberg 4aef798c06 BTS_Tests_LAPDm.TC_nr_seq_error: Fix test
Related: OS#5968
Change-Id: I4cdff6ab607e158d4956a1bd87f74e9e75579cff
2023-11-22 12:24:20 +00:00
Vadim Yanitskiy e2d2a5d677 BTS_Tests: extend TC_early_immediate_assignment: run on trx_nr=1
This patch demonstrates the problem with handling of the Early IA:

* the first part remains unchanged: assign a channel on C0 (arfcn=871);
* the second (new) part tests channel assignment on C1 (arfcn=873).

As of now, osmo-bts does not meet our expectations for the second part.

Change-Id: I7517574a8095ddfa05c34c4c3d4accf2bd07894b
Related: SYS#6655
2023-11-22 02:48:17 +07:00
Vadim Yanitskiy a120d03c13 RSL_Emulation: allow RSL_DchanHdlr sandbox escape for both roles
This feature was initially added in 1470fc668 for the RSL_Emulation_CT
operating in the BTS role.  In a subsequent patch I also need to escape
the sandbox, but in my case the RSL_Emulation_CT is playing the BSC role.

Change-Id: I42557f85d3e5e7ef7147a87293f5dd1716884534
Related: 1470fc668 "allow ASP_RSL_UD on MSC_ConnHdlr RSL"
Related: SYS#6655
2023-11-22 02:37:43 +07:00
Philipp Maier e0666ea5bc PCUIF: upgrade to PCUIF v12
We have added an additional bts_model field to the PCUIF_info_ind. This
also means that we have to increment the PCUIF version number since
adding fields is a major change to the protocol. This patch updates the
related TTCN3 record and also increments the PCUIF version number.

Related: OS#6191
Depends: osmo-pcu.git I48eb75f65ab54fdec41ef913e24c1f18cd4a4047
Change-Id: Ib1516e66c70f021adee49f41bd707803fc06f9cf
2023-11-21 09:17:55 +00:00
Alexander Couzens 9e3c233c7a hlr: add imsi unknown cause test case
Check if the reject-cause is correct implement when the subscriber
couldn't found.

Depends-on: Icea39020c23fbbea9e92847df76af8986fdbf48a (osmo-hlr)
Change-Id: I87c3a2d7304b81cfc11a364d933567e1a080b99a
2023-11-16 13:30:21 +00:00
Oliver Smith aa919b40f1 hnbgw: run TC_second_rab_assignment on nightly
Fixes: OS#6253
Change-Id: Id09b1a22dbd391c19ecfe34af990ec1ef3bb5089
2023-11-15 06:20:13 +00:00
Alexander Couzens c583dea140 dia2gsup: sleep(1) to forget diameter state
Sleep to allow the remote to forget the connection (see diameter connect timer).

Related: OS#5657
Change-Id: Ib909eff5c381c6271b9d16e383bed3e78ca454da
2023-11-11 19:03:55 +01:00
Oliver Smith 0bc9e96b22 hnbgw: osmo-hnbgw.cfg: reduce X31 to 5s
Set X31 to 5s as expected by the testsuite. The config files changed
here are not used by jenkins, but are used for manual testing by some
developers.

Previous patch ee4ce863 ("hnbgw: Introduce mp_hnbgw_timer_x31") already
sets the timer in one of the configs, move it to the end and add the
comment to make it consistent here and with the configs in
docker-playground.

Related: docker-playground I223d38e9ec2ca0f9f2ce2ac5311932789f328c9a
Change-Id: I1c275a1d10cfe0fe67d71e900881b0c4891af0be
2023-11-09 10:57:06 +01:00
Neels Hofmeyr c3c01d37a3 add HNBGW_Tests.TC_second_rab_assignment
Related: SYS#6624
Related: osmo-hnbgw I25bf19981cd75a87a7ceb3382dae1ec626ae475c
Change-Id: Iadaba0e5e82ad6d163ad509904ede213e2462d5c
2023-11-07 04:18:38 +01:00
Pau Espin ee4ce863e3 hnbgw: Introduce mp_hnbgw_timer_x31
The default value of the timer changed recently, and made some tests
which were using some timer hardcoded values fail.
Add this configurable option to adapt the test behavior to the
osmo-hnbgw configuration. This way we can also set it to lower values in
order to avoid waiting too much time.

Change-Id: I176ef96e193f2ca39077bcee3a2187768ddb45ce
2023-11-03 19:43:20 +00:00
Pau Espin 2748679437 sccp: Introduce test TC_cr_timeout_cc_too_late
Related: SYS#6602
Change-Id: If4b53565f1fa19894ca24fa71e02ae7b1941411e
2023-11-03 19:37:38 +00:00
Pau Espin d4a2008880 epdg: Test Handover from Wifi back to LTE
The Handover is informed to the EPDG by the PGW, who sends a
DeleteBearerRequest when receiving an attach from the 3GPP network once
the phone has jumped there.

Related: OS#6046
Change-Id: I299faf28fa51dbc5d2de6c72a39a01eca67a5775
2023-11-02 10:00:37 +00:00
Pau Espin f749cbf93f GGSN_Tests: Don't expect Used-Service-Unit AVP in Gy CCR INITIAL
open5gs 125740727e558c7604897eda711d4d40f2906239 changed behavior and is
no longer sending the Used-Service-Unit AVP during INITIAL_REQUEST,
which makes sense since those values should be only initialized and
spec seems to more or less expect it that way, though receiving it at
INITIAL time should be accepted too AFAICT.

Related: https://github.com/open5gs/open5gs/pull/2721
Change-Id: Ia16a86ff10089974e0b5d49e594467fcd437ce7e
2023-10-31 14:50:50 +01:00
Pau Espin 8c74649358 epdg: Include BearerContext in CreateSessionResponse
Change-Id: I89e364a5be68105ae8811e8bc917f32511f9e6ef
2023-10-24 14:37:29 +02:00
Pau Espin 1344e47a59 GTPv2: Declare GTP2C_Cause as enum
Change-Id: Id26f59274d7a8813b64b9b4b7c5c39cc12d5a0ac
2023-10-24 13:51:17 +02:00
Pau Espin 2c2e1877ec epdg: Tx Service-Selection in s6b AAR msg
This AVP is actually mandatory as per Table 9.1.2.2.1 in TS 29.273.

Change-Id: I86d01a0f5148e98b7faebbe0e3d7617a6c90b559
2023-10-24 13:51:17 +02:00
Pau Espin 7399673d0e epdg: Tx MIP6-Feature-Vector in s6b AAR msg
This AVP is actually mandatory as per Table 9.1.2.2.1 in TS 29.273.

Change-Id: I47e1f7ff583f60d0d16e151dbfe64fbd33fd7774
2023-10-24 13:51:17 +02:00
Pau Espin 8d8529ac4a Introduce DIAMETER_rfc5447_Templates.ttcn
Add templates for RFC 5447 MIP6-Feature-Vector.
This AVP is a bitmask which as only a few bits defined in RFC 5447, with
other interfaces using this AVP adding interface-specific bits in the
spec of each interface.

The templates are added in a new separate file with the aim of start
splitting the tons of AVPs originating from different specs in order to
be able to quickly identify them and avoid confusion.

Change-Id: I0fc646e5354d78283a2f3e1b9bb9c4688cf744a1
2023-10-24 13:51:17 +02:00
Pau Espin 7c99b3244d DIAMETER_Types: Generate fields from RFC 5447
S6b Diameter interface (TS 29.273 section 9) uses the
MIP6-Feature-Vector, which according to TS 29.273 9.2.3.2.3 is defined
in RFC 5447.

Related: OS#6229
Change-Id: I478eff657d876d4ec9a5a1906cab48fbaaaae1b9
2023-10-24 13:51:17 +02:00
Pau Espin 4669b612d7 library/DIAMETER: Split TS 29.273 templates into its own file
The templates are added in a new separate file with the aim of starting
splitting the tons of AVPs originating from different specs in order to
be able to quickly identify them and avoid confusion.

Change-Id: I77f917404dd70559b2b2cc62199ed70289ab0825
2023-10-24 13:51:17 +02:00
Pau Espin cdd4162998 epdg: Emulate PGW tx AAR and rx AAA in S6b interface
Related: OS#6229
Change-Id: Ia50698a3f6f5ed8251486b84c09f84edfd6d3951
2023-10-24 13:51:17 +02:00
Pau Espin 44b7520f62 DIAMETER_Templates: Add S6b AAR and AAA message templates
Related: OS#6229
Change-Id: I302d9a94e6ffbb62b6db81e1b14484355e55ebe5
2023-10-24 13:50:58 +02:00
Pau Espin d19fdf59b3 epdg: Test GTPv2C CreateSession triggerd by EPDG_Tunnel Req
Change-Id: I8f18c927b1897806233cc9d049c25694c1e639d4
2023-10-23 14:46:18 +00:00
Pau Espin afe3e19ae0 GSUP_Types: Add EDPG_Tunnel messages
Change-Id: Iadba149e6d299e5e666b2debdc23a00d37e78da5
2023-10-23 14:46:18 +00:00
Oliver Smith 95722c6550 ggsn: log start of test in SUT
Change-Id: I2baccc2b49e8bcbf0d1ca6dae41624b2d18fc0fa
2023-10-23 09:10:33 +00:00
Oliver Smith 7bb63cf0a8 library: deduplicate f_logp
Change-Id: Ie84a8a75e9f162fcbef0d07d0bc75e47a5303fa3
2023-10-23 09:10:33 +00:00
Pau Espin d35cd6a9cd Makefile: Update titan.ProtocolModules.BSSMAP to new osmocom/master branch
The repository branches were rebased and rearranged, where now its master branch
follows upstream, and we keep an osmocom/master branch with our own
patches (Osmux, not aimed at upstream) which can then be rebased on top of master.

Related: OS#6011
Change-Id: I1ec7cb6f8fa5acaca6eb434ea9449119de078c94
2023-10-20 13:43:29 +00:00
Pau Espin afc186d391 GSUP_Types: Fix tr_GSUP_IMSI params
Change-Id: Ifeff47d35df53f4238bc1556bdee037e62e9d892
2023-10-20 14:15:47 +02:00