Commit Graph

4232 Commits

Author SHA1 Message Date
Philipp Maier 522905986a PFCP_Emulation: fix typo
Change-Id: I0114aeafb0c4fe821f6b5ea7b264c2a5c055033e
2024-03-11 15:03:00 +01:00
Pau Espin 7ac383b99d epdg: Add expected-results.xml
Change-Id: I73b988220d58c36de99baf43e88ac70f646bbe3a
2024-03-08 19:58:25 +01:00
Pau Espin b8cc610d8b epdg: Introduce test TC_authinfo_fail_resync
Related: OS#6396
Change-Id: I2769d331740324200b4512a154e1321bd5825b04
2024-03-08 19:55:53 +01:00
Pau Espin b81c5da337 GSUP_Templates: tr_GSUP_SAI_ERR: Allow passing extra params like MSG_CLASS
Change-Id: I817b079ed380514e067bda1e7f3f7c6177ef314b
2024-03-07 12:18:28 +00:00
Vadim Yanitskiy 7b541af164 stp: fix -latest: add missing f_osmo_repo_is() checks
Change-Id: I9b00d3a72c5a2ad669dbaef65eec792a4c91785d
Related: SYS#5424
2024-03-07 12:09:22 +00:00
Vadim Yanitskiy f587812cd4 stp: cosmetic: use m3cfg variable in f_M3UA_listen()
Change-Id: Ic5550f17e8925c292df5b3b27cf5898edf10fd23
Related: SYS#5424
2024-03-07 12:09:22 +00:00
Pau Espin d4e86332ec epdg: Introduce test TC_authinfo_twice
Related: OS#6391
Change-Id: I86ef2bf9a0676735343d5a5c0f4ff12f552216d2
2024-03-06 18:26:14 +00:00
Pau Espin 6601f22705 epdg: Introduce test TC_authinfo_MAA_unknown_user
Related: OS#6391
Change-Id: Ie4d9d019ed56401e7e19197b4a777a1e6a55e7ee
2024-03-06 18:26:14 +00:00
Vadim Yanitskiy 88f429db69 stp: add testcases for M3UA-over-TCP
Change-Id: I1e2a887aa22f317783b3207494fd707d7b426439
Related: docker-playground.git I210b7d62845075dcfe147f2f77603625cc1e64f9
Related: SYS#5424
2024-03-06 23:48:47 +07:00
Vadim Yanitskiy 36b7b5d3e6 stp: prepare for testing M3UA-over-TCP
* rename various fields and templates to be transport neutral
* extend mp_m3ua_configs[]: add one client and one server ASPs
* f_M3UA_connect(): split onto f_M3UA_connect_{tcp,sctp}()
* f[_no]_quirk(): properly handle ASPs using TCP transport
* add osmo-stp-tcp.confmerge [*]

We cannot add new M3UA-over-TCP ASPs to osmo-stp.cfg because that
would break the job testing latest osmo-stp version.  Instead, add
a confmerge file to be applied by jenkins.sh (for nightly only).

Change-Id: I5d0b05aa434c057ad379125ac293f5fc9a240b6f
Related: docker-playground.git I210b7d62845075dcfe147f2f77603625cc1e64f9
Related: SYS#5424
2024-03-06 03:28:51 +07:00
Vadim Yanitskiy 84ec42bbc2 stp: add and use f_m3ua_{cli,srv}_config() helpers
Using this API reduces the risk of using the wrong half of the
mp_m3ua_configs[] array and improves the code readability a bit.

Change-Id: I9788f52c20574f4f9d015d2de11b5e42bb03d15f
Related: SYS#5424
2024-03-06 03:28:34 +07:00
Pau Espin 009ab6fe1c epdg: Transmit MIP6-Agent-Info AVP in S6b SAR
Inform the AAA-server about the selected PDN-GW.
Change-Id: Ia0f00a00b6474e19bb4cdc77724c75a55ef5c1f9
2024-03-05 14:44:23 +01:00
Pau Espin 9b2ebc005f epdg: Add missing Non-3GPP-User-Data AVP to tx Swx SAA
Change-Id: I05bbf076464f9110ee68c46e309d150207f8bfcd
2024-03-05 14:42:08 +01:00
Pau Espin 7337d45f06 DIAMETER_Types: generate types for RFC4004
RFC 4004 contains MIP-Home-Agent-Address AVP, which is part of
MIP6-Agent-Info AVP in RFC 5447.

Change-Id: I66cae565d332d88f24c4ee94459770f9d24c16af
2024-03-05 14:23:57 +01:00
Pau Espin 5154e357e4 Small improvements to DIAMETER_ts29_272_Templates.ttcn
* Move Service-Selection template to the TS 29.272 since it belongs
  there.
* Set some parameter types to "template (value)" which makes it easier
  for users, since both a template and a value can then be passed.

Change-Id: Ic57b2c5ec0a953f9a1751d4ce4ad441daafd3c87
2024-03-05 13:28:58 +01:00
Pau Espin 5f5dbfe7fa DIAMETER_Types: Generate types for 3GPP TS 29.273
The ddf file is added at the end of the list since it depends on tons of
other RFC and 3GGP TS specs, see for instance TS 29.372 Table 8.2.3.0.

Change-Id: I17f7f025ff31d9ce619cd23bfa5f1af282969dbf
2024-03-05 12:52:48 +01:00
Pau Espin 5b28c96469 DIAMETER_Types: Move RFC ddf files earlier in the dependency list of files to generate
A ddf file for TS 29.273 will be added soon to the list, which depends
on several RFCs. Move RFCs earlier in the list since this is a more
generic file than a 3GPP one.

Change-Id: Idcbdfd97332195af05928c81068f6a4779ac306e
2024-03-05 12:50:54 +01:00
Pau Espin b0b5e0ad12 checkpatch.conf: Exclude machine-generated file library/DIAMETER_Types.ttcn from linter
Change-Id: Iff72ddabea41b36d30a7ad87218aa68b1297c35e
2024-03-05 12:21:43 +01:00
Pau Espin 1cb639e6f1 Remove unwanted epdg/ICMP_Types.ttcn
It seems I somehow ended up adding this link file in
bf03d77649 when submitting the patch.
Get rid of it since it is totally undesired.

Change-Id: Iec812841bc474ae423b447707adc520cf4039499
2024-03-05 11:49:47 +01:00
Pau Espin 297333a423 mme, pgw: Fix GTPv2_Emulation setup after recent changes
The fields were added to be used in EPDG_Tests, but they need to be
explicitly set to omit here.

Fixes: 65a7f762ef
Change-Id: I3ed3c185310082f36bbce22817b903232825567c
2024-03-05 11:26:13 +01:00
Pau Espin bf03d77649 epdg: Introduce test TC_mt_ipv4_echo_req
Change-Id: Ie5dc1bd995262f9253cc067c97a82c801b0080e1
2024-03-04 21:47:55 +00:00
Pau Espin e16e928f14 ggsn_tests: Split out generic ICMP(v6) related templates and functions
Change-Id: I53a5da05caeef4cdd59778840a6f4eed489f1b93
2024-03-04 21:47:55 +00:00
Pau Espin a9b65f1ea9 epdg: Introduce test TC_upf_echo_req
Change-Id: I3fd96f212175959cb113d2f6a362c0e77e5ca0d7
2024-03-04 21:47:55 +00:00
Harald Welte 556e4d2dbc various: update expected-results.xml
Change-Id: I21052636bf892e5da86ef736d16035ec324aedbe
2024-03-04 19:09:58 +00:00
Vadim Yanitskiy 03b2fa9ecb stp: check-in expected-results.xml from Jenkins
Change-Id: Id4081af9e9d5b0a95dc2fe7d137778747dc27bd0
2024-03-04 19:09:03 +00:00
Pau Espin 65a7f762ef GTPv2_Emulation: Add support to handle GTPv1-U
Change-Id: I34c744015c09a387cbf736063303bdb61ca4744e
2024-03-04 10:22:31 +00:00
Vadim Yanitskiy f197ed2dfd library/M3UA: support TCP transport, implement desegmentation
Change-Id: If1dcdb185d08a08dc5a06c37d9d6ffe7d6da9325
Related: libosmo-sccp.git I8c76d271472befacbeb998a93bbdc9e8660d9b5d
Related: SYS#5424
2024-03-01 11:57:00 +00:00
Vadim Yanitskiy 020a8fc281 stp/osmo-stp.cfg: tune the logging formatting
Change-Id: Ieafa0599246f40958be6333512b7c41379b38a20
2024-03-01 11:57:00 +00:00
Pau Espin 4b090c95d5 Split GTP_CodecPort/GTP_Templates into C and U variants
The Types are already split in the dependent modules in GTPC_Types and
GTPU_Types.
There's no point in keeping them together in the same file since those 2
protocols are mostly independent.
Furthermore, testsuites using GTPv2C + GTPv1U don't need GTPv1C.

Change-Id: Ic15c9a2e92828cbafb4dda7355ee534107051e2d
2024-03-01 10:28:22 +00:00
Pau Espin 7b2cc9219a epdg: Introduce test TC_s2b_CreateSession_rejected
Related: OS#6371
Change-Id: Ide1df9e359b12094f82e54a7824c83f515aedcc3
2024-03-01 10:28:22 +00:00
Pau Espin 285a2b65ab epdg: Add tests to validate concurrent connections
Change-Id: I842dacda56abe47afb19e951eaae746b5e8d9fe7
2024-03-01 10:28:22 +00:00
Vadim Yanitskiy fdf0206ecc sgsn: osmo-*.cfg: tune logging configuration
Change-Id: I2f2cc69a481709e862d569b0298561b61506dfa7
2024-03-01 08:03:59 +00:00
Vadim Yanitskiy 472f8c0569 sgsn/expected-results.xml: add missing testcases
Change-Id: I09cc32bffde9d9dec59befa181a995e88112b2d2
2024-03-01 08:03:59 +00:00
Vadim Yanitskiy 5cefd81a0b msc/expected-results.xml: add missing testcases
Change-Id: I1604bb955707d0e44bfd08ecd3a28a936731c166
2024-03-01 08:03:59 +00:00
Oliver Smith 9daae3e49b ggsn_tests: f_wait_icmp4: don't shutdown on error
Use setverdict(fail, …) instead of shutting down the test. Otherwise we
don't close the PDP context. This fixes TC_pdp6_act_deact failing if it
runs after a failed TC_pdp4_act_update_teid.

Change-Id: Ib31481e79fc81983ae0c36f0512c6b7dba3f28a8
2024-02-29 07:22:05 +00:00
Oliver Smith bbbe05df68 ggsn_tests: fix typo
Change-Id: Iefd1bfead68878553cbfd0f34ea8aaa4bdd40a41
2024-02-29 07:22:05 +00:00
Pau Espin e28f2fbbb2 cosmetic: epdg: Drop extra whitelines
Change-Id: I20cde98340efb41a13d430f8692b3242eb5824be
2024-02-28 19:11:11 +01:00
Pau Espin e1f7a8c324 GSUP_Emulation: Update internal tables to allow 256 sessions
Other Emulations like GTPv2 and DIAMETER already support that number of
sessions. Increase it to the same number in GSUP_Emulation to allow
handling a high amount of concurrent sessions while testing ePDG.

Change-Id: I9ce650140fc372debc85b603a20bbe9ea165c972
2024-02-28 14:15:19 +01:00
Pau Espin 7ae55ea29c Update pcap pkt size to 1520 bytes
I see packets of 1520 bytes in the generated pcap running under the
docker setup. This happens when a lot of IPA concurrent clients send
messages and end up in the same TCP packet due to naggle algorithm.

Change-Id: I362371508ba83acc48376b6ed012a97a59d4b31b
2024-02-28 14:15:19 +01:00
Pau Espin 4ecc808f1d pgw: Introduce test TC_s2b_createSession_v4_apco
Make sure APCO IE is properly handled and answered back.

Change-Id: Ib01fe0512866924a5afc4d6719ceacb0b4b54df2
2024-02-28 12:54:21 +00:00
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
Vadim Yanitskiy 4199a701c3 msc/MSC_Tests.cfg: remove commented out testcase list
Change-Id: I573b55e235ebb093b1166c1fe78feaa4f296ce8c
2024-02-28 15:30:10 +07: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 f29258602e epdg: Make sure PCO is forwarded from strongswan to PGW and back
Related: OS#6369
Change-Id: Ie01d6e88b3ccc55fecc97c2ba75bb31bba5b9ef7
2024-02-22 20:12:37 +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 ce1d3cb08c gsup: Add PCO IE
This commit adds a new file PCO_Types.ttcn which allows generically
encoding decoding PCOs.

Change-Id: I9a1ae74712d6e8e0cd524ccd7fc2529b1a15dd97
2024-02-21 20:00:24 +01:00
Pau Espin 78598b51ed epdg: Validate assigned PDP Address and APN
Change-Id: I440a7379c6dab5448d4c57c498ad9d086d0c456b
2024-02-14 19:23:59 +01:00
Pau Espin 24b0859e4c epdg: Fix FTEID interface in CreateSessionResponse
Change-Id: If7ce6580c4690473d9c34ca58f704c8ff535f166
2024-02-09 18:48:53 +01:00
Pau Espin 8586b2675a epdg: Fix UsernMame being NAI instead of IMSI in S6b AAR
Change-Id: Ifa5b262db40b649c6dfe7b5ac43098208b3e8300
2024-02-09 18:12:21 +01:00
Pau Espin df00c4fe94 epdg: Fix instance in CreateSession Re S2b-U PGW F-TEID IE
According to 3GPP TS 29.274 Table 7.2.2-1, instance=1.

Change-Id: If0e2425e0a64e528990bfd589b858d0955a4677a
2024-02-08 19:23:14 +01:00