Commit Graph

19 Commits

Author SHA1 Message Date
Pau Espin 518e24b861 pgw: Introduce test TC_s2b_createSession_v4_no_apco
This test allows initial testing of a session creation through the S2b
interface (emulating an ePDG).

A follow-up test will be added to test the APCO IE (feature which
open5gs-smfd still doesn't support).

Change-Id: I38e469edf0e00feca5a648035b64645e2c905937
2024-02-28 12:54:21 +00:00
Pau Espin 355a133048 PGW_Tests: refactor/improve several parameters to accomodate for different GTPv2C interfaces
So far we were only testing s5/s8 interface, but we'll want to test s2b
soon.
This commit is a mixture of refactorings and code improvements as a step
towards testing S2b interface.

Change-Id: I22b3e18d02ca828e2ea43bde2e0a602db236cf50
2024-02-23 17:44:17 +01:00
Pau Espin cacd707fbf GTPv2_Templates: Allow specifying APCO IE in CreateSessionReq/Resp
Change-Id: I860a9424d6109434a953b1aa39d1fa6035fc7e94
2024-02-22 20:12:04 +01:00
Pau Espin 14abac5302 epdg: Introduce test TC_ho_lte_to_wifi
This test emulates a UE doing handover to ePDG, when it may create extra
dedicated bearers.

Change-Id: Ibdfeda1fa5d7016b1952d64b306cd501cb33f61b
2024-02-07 16:36:35 +00:00
Pau Espin 9411082cc5 GTPv2_Templates: Fix tEID field optional tr_PDU_GTP2C_msgtypes()
The TEID field is optional, based on t_Bit. Hence, we also want to
match by type if there's no TEID.

Change-Id: I65044b8758046704e22f9057f34ce5fdbb7aabfe
2024-01-15 10:38:27 +01:00
Pau Espin 78c5e4128d mme: TC_ue_cell_reselect_eutran_to_geran: Make sure oI flag is not set in DeleteSessionReq
Make sure Operation Indication is set to 0, to tell the SGW to keep the Session up at the PGW.

Change-Id: If863f260a274fec5921ed888216c1688ff115ade
2024-01-03 13:15:13 +01:00
Pau Espin 2f32707d9b GTPv2_Templates: Make tr_GTP2C_DeleteSessionReq() easier to use by default
There's currently no user of this template, but there will be one in a
follow-up patch in MME_Tests.

- Set generic templates as default parameters, so it can match
  everything.
- Reorder parameters to follow the message fields more closely.
- Change/fix some template types in parameters which were not correct.

Change-Id: I38b6c51b78772bc01e7be916ba382cb78934864c
2023-12-21 19:12:13 +01:00
Pau Espin ecfc7d61e6 mme: Implement missing UE attach steps
Related: OS#6294
Change-Id: Ib4a69aef40bf9dd17d640f650e459668f8415aaa
2023-12-15 15:05:31 +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 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 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 90a46c4994 GTPv2_Templates: Several improvements to tr_GTP2C_CreateSessionReq
Change-Id: I6dd8cddcb986969d713ed7975a55cb31ab47c499
2023-10-20 14:15:47 +02:00
Pau Espin 5c18a0c846 GTPv2: Fix match of 15-digit IMSIs
15-digit IMSIs are len(imsi)=15, but decoded messages are
octet-aligned, hence the hexstring in messages is len(imsi)=16,
where the last hex char is a padding 'F'H.

* Make sure IMSIs stored in GTPv2_Emulation are padded to 16 digits (8
  octets) to process matches easily.
* Update tr_ template to transparently adapt passed hexstrings to match
  the octet-aligned value received from the wire.

Change-Id: Ie2f316ccb5bc69ec15e861616de4fd5babc4004e
2023-10-20 14:15:47 +02:00
Pau Espin 2a2e854de6 GTPv2_Templates: Fix sveral wrong ElementIdentifier
Change-Id: Idea191cedd78768a3fef7a9958fda5c27f2859e1
2023-10-20 14:15:47 +02:00
Vadim Yanitskiy bada3c927d PGW_Tests: fix f_create_session(): add missing Serving Network IE
open5gs-smfd version 2.4.2 requires this IE to be present:

[smf] INFO: [Added] Number of SMF-UEs is now 1 (../src/smf/context.c:820)
[smf] INFO: [Added] Number of SMF-Sessions is now 1 (../src/smf/context.c:2610)
[smf] ERROR: No Serving Network (../src/smf/s5c-handler.c:101)
[smf] ERROR: No Data in Serving Network (../src/smf/s5c-handler.c:105)
[smf] ERROR: Invalid Len[0] in Serving Network (../src/smf/s5c-handler.c:110)

Change-Id: Idf6d147cc4a37996ee4ae6de18158b0e140d9db6
Related: SYS#5602
2022-01-20 19:33:43 +06:00
Harald Welte 88b3ccbf5b Add GTPv2_Emulation component
Change-Id: If73aa453e44ebf28032c60d207feb03e8061dc0c
2020-04-21 22:57:31 +02:00
Harald Welte 0f7d03a787 mme: Add GTPv2 support
this includes a GTPv2_CodecPort (for the usual transcoding)
as wella as an empty GTPv2_PrivateExtensions.ttcn without which
the TITAN GTPv2 ProtocolModule won't compile.

Change-Id: I1c1b8409077103dd4e64e467d21d33d8c9c4ac95
2019-08-18 17:14:20 +00:00