lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

December 2026

  • 1 participants
  • 245 discussions
[S] Change in osmo-ttcn3-hacks[master]: 5gc: Fix milenage K and OPC swapped
by fixeria 03 Dec '26

03 Dec '26
Attention is currently required from: osmith, pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44227?usp=email ) Change subject: 5gc: Fix milenage K and OPC swapped ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44227?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I052d45d5e1fb66ea5063435446ce796a65d30fc2 Gerrit-Change-Number: 44227 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 03 Dec 2026 13:08:38 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: 5gc: OGS_UEInfo: Rename g_tout_http to avoid collision with Prometheu...
by pespin 03 Dec '26

03 Dec '26
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44228?usp=email ) Change subject: 5gc: OGS_UEInfo: Rename g_tout_http to avoid collision with Prometheus_Checker ...................................................................... Patch Set 1: (1 comment) Patchset: PS1: This will become more important in upcoming AMF_Tests where the http2 adapter is also used, and I plan to share the OGS_UEInfo between AMF_Tests and C5G_Tests, since it actually is only used against open5gs-amfd. -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44228?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I55ea3e56ea703eee312cf29c276593bb846005f5 Gerrit-Change-Number: 44228 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Comment-Date: Thu, 03 Dec 2026 12:59:48 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: 5gc: OGS_UEInfo: Rename g_tout_http to avoid collision with Prometheu...
by pespin 03 Dec '26

03 Dec '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44228?usp=email ) Change subject: 5gc: OGS_UEInfo: Rename g_tout_http to avoid collision with Prometheus_Checker ...................................................................... 5gc: OGS_UEInfo: Rename g_tout_http to avoid collision with Prometheus_Checker A module willing to extend from both OGS_UEInfo and Prometheus_Checker will result in a ttcn3 compiler error regarding this collision. Change-Id: I55ea3e56ea703eee312cf29c276593bb846005f5 --- M 5gc/OGS_UEInfo.ttcn 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/28/44228/1 diff --git a/5gc/OGS_UEInfo.ttcn b/5gc/OGS_UEInfo.ttcn index e463006..10aba1f 100644 --- a/5gc/OGS_UEInfo.ttcn +++ b/5gc/OGS_UEInfo.ttcn @@ -44,7 +44,7 @@ } type component OGS_UEInfo_CT extends http_CT { - var float g_tout_http := 5.0; + var float g_ogs_ueinfo_tout_http := 5.0; }; function f_OGS_UEInfo_init(charstring http_host, integer http_port := c_OGS_UEInfo_default_http_port) @@ -62,8 +62,8 @@ { var HTTPMessage http_resp; /* page=-1 needed to avoid paging... */ - f_http_tx_request(url := "/ue-info?page=-1", method := "GET", tout := g_tout_http); - http_resp := f_http_rx_response(tr_HTTP_Resp(200), tout := g_tout_http); + f_http_tx_request(url := "/ue-info?page=-1", method := "GET", tout := g_ogs_ueinfo_tout_http); + http_resp := f_http_rx_response(tr_HTTP_Resp(200), tout := g_ogs_ueinfo_tout_http); return http_resp.response.body; } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44228?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I55ea3e56ea703eee312cf29c276593bb846005f5 Gerrit-Change-Number: 44228 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: 5gc: Fix milenage K and OPC swapped
by laforge 03 Dec '26

03 Dec '26
Attention is currently required from: fixeria, osmith, pespin. laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44227?usp=email ) Change subject: 5gc: Fix milenage K and OPC swapped ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44227?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I052d45d5e1fb66ea5063435446ce796a65d30fc2 Gerrit-Change-Number: 44227 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 03 Dec 2026 12:54:33 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: 5gc: Fix milenage K and OPC swapped
by pespin 03 Dec '26

03 Dec '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44227?usp=email ) Change subject: 5gc: Fix milenage K and OPC swapped ...................................................................... 5gc: Fix milenage K and OPC swapped The call to f_milenage_check() was passing K and OPC params swapped. This worked because in turn also the mp_usim_key and mp_usim_opc were being set swapped in relation to what was configured at the open5gs DB, hence double swap ended up passing the correct values. Take the chance to also fix a couple typos around related code, which also helps in quickly spotting the swap when reading the patch. Related: OS#7154 Change-Id: I052d45d5e1fb66ea5063435446ce796a65d30fc2 --- M 5gc/C5G_Tests.cfg M 5gc/C5G_Tests.ttcn M 5gc/ConnHdlr.ttcn M library/milenage/Milenage_Functions.ttcn 4 files changed, 9 insertions(+), 9 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/27/44227/1 diff --git a/5gc/C5G_Tests.cfg b/5gc/C5G_Tests.cfg index 9d4439c..a0c1c06 100644 --- a/5gc/C5G_Tests.cfg +++ b/5gc/C5G_Tests.cfg @@ -17,8 +17,8 @@ C5G_Tests.mp_local_ngap_ip := "127.0.0.202"; C5G_Tests.mp_local_ngap_port := 50000; C5G_Tests.mp_imsi := '999700000000000'H; -C5G_Tests.mp_usim_key := '762a2206fe0b4151ace403c86a11e479'O; -C5G_Tests.mp_usim_opc := '3c6e0b8a9c15224a8228b9a98ca1531d'O; +C5G_Tests.mp_usim_key := '3c6e0b8a9c15224a8228b9a98ca1531d'O; +C5G_Tests.mp_usim_opc := '762a2206fe0b4151ace403c86a11e479'O; C5G_Tests.mp_run_prog_log_path := "./run_prog" C5G_Tests.mp_run_prog_as_user := "osmocom" # testenv.sh sets this to $USER C5G_Tests.mp_ping_hostname := "10.45.0.1"; diff --git a/5gc/C5G_Tests.ttcn b/5gc/C5G_Tests.ttcn index 89c8988..66ba83a 100644 --- a/5gc/C5G_Tests.ttcn +++ b/5gc/C5G_Tests.ttcn @@ -65,8 +65,8 @@ GsmMcc mp_mcc := '999'H; GsmMnc mp_mnc := '70'H; HEX15n mp_imsi := '999700000000000'H; - octetstring mp_usim_key := '762a2206fe0b4151ace403c86a11e479'O; - octetstring mp_usim_opc := '3c6e0b8a9c15224a8228b9a98ca1531d'O; + octetstring mp_usim_key := '3c6e0b8a9c15224a8228b9a98ca1531d'O; + octetstring mp_usim_opc := '762a2206fe0b4151ace403c86a11e479'O; uint24_t mp_tac := 1; charstring mp_apn := "internet"; charstring mp_local_gtpu_ip := "127.0.0.20"; diff --git a/5gc/ConnHdlr.ttcn b/5gc/ConnHdlr.ttcn index e6a9879..7f986bd 100644 --- a/5gc/ConnHdlr.ttcn +++ b/5gc/ConnHdlr.ttcn @@ -285,18 +285,18 @@ g_pars.kset_id := rx_nas.authentication_Request.ngNasKeySetId; - ret := f_milenage_check(g_pars.ue_pars.usim_key, - g_pars.ue_pars.usim_opc, + ret := f_milenage_check(g_pars.ue_pars.usim_opc, + g_pars.ue_pars.usim_key, int2oct(my_sqn, 8), rand, autn, ik, ck, res, auts); if (ret == -1) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("fx_milenage_check() failed! -1")); + log2str("f_milenage_check() failed! -1")); } if (ret == -2) { if (not allow_resync) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("fx_milenage_check() unexpected Resync!")); + log2str("f_milenage_check() unexpected Resync!")); } log("Milenage: RX-SQN differs from SIM SQN: Re-Sync! AUTS=", auts); /* 3GPP TS 24.501 5.4.1.3.6 d) */ diff --git a/library/milenage/Milenage_Functions.ttcn b/library/milenage/Milenage_Functions.ttcn index 8fb9b04..91ea108 100644 --- a/library/milenage/Milenage_Functions.ttcn +++ b/library/milenage/Milenage_Functions.ttcn @@ -15,7 +15,7 @@ import from General_Types all; /* 3GPP TS 33.102 Figure 9, 3GPP TS 35.206 Annex 3 */ -external function f_milenage_check(OCT16 opc,OCT16 k, +external function f_milenage_check(OCT16 opc, OCT16 k, OCT8 sqn, OCT16 rand, OCT16 autn, out OCT16 ik, out OCT16 ck, out OCT8 res, out OCT14 auts) return integer; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44227?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I052d45d5e1fb66ea5063435446ce796a65d30fc2 Gerrit-Change-Number: 44227 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: mme: Introduce tests TC_incoming_update_bearer_*
by pespin 03 Dec '26

03 Dec '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44198?usp=email ) Change subject: mme: Introduce tests TC_incoming_update_bearer_* ...................................................................... mme: Introduce tests TC_incoming_update_bearer_* The compilation flag --legacy-template-subrefs is now needed in order to have proper matching in tr_S1AP_RABModifyReq(). Related: SYS#8357 Change-Id: Ib0c0996ed1cbf9b2182e3b232b733af5b9c441ce --- M library/GTPv2_Templates.ttcn M library/NAS_EPS_Templates.ttcn M mme/ConnHdlr.ttcn M mme/MME_Tests.ttcn M mme/expected-results.xml M mme/regen_makefile.sh 6 files changed, 360 insertions(+), 20 deletions(-) Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/GTPv2_Templates.ttcn b/library/GTPv2_Templates.ttcn index 1664f9a..1d19efc 100644 --- a/library/GTPv2_Templates.ttcn +++ b/library/GTPv2_Templates.ttcn @@ -177,6 +177,7 @@ /* ... */ Context_Not_Found (64), System_Failure (72), + No_resources_available (73), APN_access_denied__no_subscription (93) } with { variant "FIELDLENGTH(8)" encode "RAW" }; @@ -462,6 +463,88 @@ additionalOctets := * } +/* 8.18 */ +template (value) ServingNetwork +ts_GTP2C_ServingNetwork(template (value) hexstring mcc, + template (value) hexstring mnc, + template (value) BIT4 instance := '0000'B) := +{ + elementIdentifier := '53'O, + lengthIndicator := 0, /* overwritten */ + instance := instance, + spare := '0000'B, + mccDigit1 := mcc[0], + mccDigit2 := mcc[1], + mccDigit3 := mcc[2], + mncDigit3 := mnc[2], /* 'F'H for 2 digit MNC */ + mncDigit1 := mnc[0], + mncDigit2 := mnc[1], + additionalOctets := omit +} + +/* 8.19 24.008 */ +template (value) TrafficFlowTemplateV_CreateAddReplaceTFT +ts_GTP2C_TrafficFlowTemplateV_CreateAddReplaceTFT( + template (value) integer numberOfPacketFilters, + template (value) BIT1 eBIT, + template (value) BIT3 operationCodeTFT, + template (value) PacketFilterList_CreateAddReplaceTFT packetFilterList_CreateAddReplaceTFT, + template (omit) ParametersList parametersList := omit) := +{ + numberOfPacketFilters := numberOfPacketFilters, + eBIT := eBIT, + operationCodeTFT := operationCodeTFT, + packetFilterList_CreateAddReplaceTFT := packetFilterList_CreateAddReplaceTFT, + parametersList := parametersList +} + +template (value) TrafficFlowTemplateV +ts_GTP2C_TrafficFlowTemplateV_U_CreateAddReplaceTFT( + template (value) integer numberOfPacketFilters, + template (value) BIT1 eBIT := '0'B, + template (value) BIT3 operationCodeTFT := '011'B, /* Add packet filters to existing TFT */ + template (value) PacketFilterList_CreateAddReplaceTFT packetFilterList_CreateAddReplaceTFT, + template (omit) ParametersList parametersList := omit) := +{ + trafficFlowTemplateV_CreateAddReplaceTFT := + ts_GTP2C_TrafficFlowTemplateV_CreateAddReplaceTFT(numberOfPacketFilters, + eBIT, + operationCodeTFT, + packetFilterList_CreateAddReplaceTFT, + parametersList) +} + +template (value) PacketFilter +ts_GTP2C_PacketFilter(template (value) PacketFilterIdentifier identifier, + template (value) OCT1 evaluationPrecedence, + template (value) octetstring contents) := +{ + identifier := identifier, + evaluationPrecedence := evaluationPrecedence, + lengthIndicator := 0, /* overwritten */ + contents := contents +} + +template (value) PacketFilterIdentifier +ts_PacketFilterIdentifier(template (value) BIT4 identifier, + template (value) BIT2 direction) := { + identifier := identifier, + direction := direction, + spare := '00'B +}; + +/* 8.19 */ +template (value) EPS_BearerLevel_TFT +ts_GTPC2_EPS_BearerLevel_TFT(template (value) TrafficFlowTemplateV trafficFlowTemplateValue, + template (value) BIT4 instance := '0000'B) := +{ + elementIdentifier := '54'O, + lengthIndicator := 0, /* overwritten */ + instance := instance, + spare := '0000'B, + trafficFlowTemplateValue := trafficFlowTemplateValue +} + /* 8.21 */ function ts_GTP2C_UserLocInfo(template (omit) CGI cgi := omit, template (omit) SAI sai := omit, @@ -627,12 +710,13 @@ /* 8.28 */ template (value) BearerContextIEs ts_GTP2C_BcContextIE(template (value) uint4_t ebi, + template (omit) EPS_BearerLevel_TFT ePS_Bearer_TFT := omit, template (omit) FullyQualifiedTEID_List teid_list := omit, template (omit) Bearer_QoS qos := ts_GTP2C_BearerQos('09'O, 0,0,0,0), template (omit) ChargingID charging_id := omit) := { ePS_Bearer_ID := ts_GTP2C_EpsBearerId(ebi), cause := ts_GTP2C_Cause(Request_accepted, '0'B), - ePS_Bearer_TFT := omit, + ePS_Bearer_TFT := ePS_Bearer_TFT, fullyQualifiedTEID := teid_list, bearerLevel_QoS := qos, chargingID := charging_id, @@ -1453,25 +1537,81 @@ privateExtension := omit }}); -/* 8.18 */ -template (value) ServingNetwork -ts_GTP2C_ServingNetwork(template (value) hexstring mcc, - template (value) hexstring mnc, - template (value) BIT4 instance := '0000'B) := -{ - elementIdentifier := '53'O, - lengthIndicator := 0, /* overwritten */ - instance := instance, - spare := '0000'B, - mccDigit1 := mcc[0], - mccDigit2 := mcc[1], - mccDigit3 := mcc[2], - mncDigit3 := mnc[2], /* 'F'H for 2 digit MNC */ - mncDigit1 := mnc[0], - mncDigit2 := mnc[1], - additionalOctets := omit -} +/* 7.2.15 Update Bearer Request */ +template (value) PDU_GTPCv2 +ts_GTP2C_UpdateBearerRequest(template (value) OCT4 d_teid, + template (value) OCT3 seq, + template (value) BearerContextGrouped_List bearerContextGrouped, + template (value) AggregateMaximumBitRate apn_ambr, + template (omit) ProcedureTransactionID procedureTransactionID := omit, + template (omit) ProtocolConfigOptions protocolConfigOptions := omit, + template (omit) ChangeReportingAction changeReportingAction := omit, + template (omit) CSG_InformationReportingAction cSG_InformationReportingAction := omit, + template (omit) Indication indicationFlags := omit, + template (omit) HeNBInformationReporting heNBInformationReporting := omit, + template (omit) FullyQualifiedPDN_ConnectionSetID_List csid := omit, + template (omit) PresenceReportingAreaAction presenceReportingAreaAction := omit, + template (omit) LoadControlInformationGrouped_List loadControlInformationGrouped := omit, + template (omit) OverloadControlInformationGrouped_List overloadControlInformationGrouped := omit, + template (omit) FullyQualifiedContainer nBIFOMContainer := omit) := +ts_PDU_GTP2C(d_teid, seq, '61'O, { + updateBearerRequest := { + bearerContextGrouped := bearerContextGrouped, + procedureTransactionID := procedureTransactionID, + protocolConfigOptions := protocolConfigOptions, + apn_ambr := apn_ambr, + changeReportingAction := changeReportingAction, + cSG_InformationReportingAction := cSG_InformationReportingAction, + indicationFlags := indicationFlags, + heNBInformationReporting := heNBInformationReporting, + csid := csid, + presenceReportingAreaAction := presenceReportingAreaAction, + loadControlInformationGrouped := loadControlInformationGrouped, + overloadControlInformationGrouped := overloadControlInformationGrouped, + nBIFOMContainer := nBIFOMContainer, + privateExtension := omit + }}); +/* 7.2.16 Update Bearer Response */ +template (present) PDU_GTPCv2 +tr_GTP2C_UpdateBearerResp(template (present) OCT4 d_teid, + template (present) OCT3 seq := ?, + template (present) GTP2C_Cause cause := ?, + template BearerContextGrouped_List bearerContextGrouped := *, + template ProtocolConfigOptions protocolConfigOptions := *, + template Recovery recovery := *, + template FullyQualifiedPDN_ConnectionSetID_List csid := *, + template Indication indicationFlags := *, + template UE_TimeZone uE_TimeZone := *, + template UserLocationInfo uLI := *, + template TrustedWLANAccessNetworkIdentifier trustedWLANAccessNetworkIdentifier := *, + template OverloadControlInformationGrouped_List overloadControlInformationGrouped := *, + template PresenceReportingAreaInformation presenceReportingAreaInformation := *, + template IP_Address_List iP_Addr := *, + template TWANIdentifierTimestamp tWANIdentifierTimestamp := *, + template PortNumber_List portNumber := *, + template FullyQualifiedContainer nBIFOMContainer := *, + template ExtendedProtocolConfigOptions extendedProtocolConfigOptions := *) := +tr_PDU_GTP2C(d_teid, seq, { + updateBearerResponse := { + cause := tr_GTP2C_Cause(cause), + bearerContextGrouped := bearerContextGrouped, + protocolConfigOptions := protocolConfigOptions, + recovery := recovery, + csid := csid, + indicationFlags := indicationFlags, + uE_TimeZone := uE_TimeZone, + uLI := uLI, + trustedWLANAccessNetworkIdentifier := trustedWLANAccessNetworkIdentifier, + overloadControlInformationGrouped := overloadControlInformationGrouped, + presenceReportingAreaInformation := presenceReportingAreaInformation, + iP_Addr := iP_Addr, + tWANIdentifierTimestamp := tWANIdentifierTimestamp, + portNumber := portNumber, + nBIFOMContainer := nBIFOMContainer, + extendedProtocolConfigOptions := extendedProtocolConfigOptions, + privateExtension := * + }}); } diff --git a/library/NAS_EPS_Templates.ttcn b/library/NAS_EPS_Templates.ttcn index 20b2913..8ddd11a 100644 --- a/library/NAS_EPS_Templates.ttcn +++ b/library/NAS_EPS_Templates.ttcn @@ -1432,4 +1432,67 @@ } } +/* 8.3.18 Modify EPS bearer context request */ +template (present) PDU_NAS_EPS +tr_NAS_ModifyEpsBearCtxReq(template (present) BIT4 bearer_id := ?, + template (present) BIT8 proc_tid := ?, + template EPS_QualityOfServiceTLV newEPS_QoS := *, + template TrafficFlowTemplateTLV trafficFlowTemplate := *, + template QoSTLV new_QoS := *, + template LLC_SAPITV negotiated_LLC_SAPI := *, + template RadioPriorityTV radioPriority := *, + template PacketFlowIDTLV packetFlowID := *, + template APN_AggregateMaximumBitRateTLV aPN_AMBR := *, + template ProtocolConfigOptionsTLV protocolConfigOptions := *, + template WLANOffloadAcceptabilityTV wLANOffloadIndication := *, + template NBIFOM_ContainerTLV nBIFOMContainer := *, + template HeaderCompressinConfigurationTLV headerCompressinConfiguration := *, + template ExtendedProtocolConfigurationOptionsTLVE extendedProtocolConfigurationOptions := *, + template Extended_APN_AMBR_TLV extended_APN_AMBR := *, + template ExtendedEPSQoSTLV extendedQoS := *) := { + protocolDiscriminator := c_EPS_NAS_PD_ESM, + ePS_messages := { + ePS_SessionManagement := { + pDU_NAS_EPS_ModifyEPSBearerContextRequest := { + ePSBearerIdentity := bearer_id, + procedureTransactionIdentifier := proc_tid, + messageType := '11001001'B, + newEPS_QoS := newEPS_QoS, + trafficFlowTemplate := trafficFlowTemplate, + new_QoS := new_QoS, + negotiated_LLC_SAPI := negotiated_LLC_SAPI, + radioPriority := radioPriority, + packetFlowID := packetFlowID, + aPN_AMBR := aPN_AMBR, + protocolConfigOptions := protocolConfigOptions, + wLANOffloadIndication := wLANOffloadIndication, + nBIFOMContainer := nBIFOMContainer, + headerCompressinConfiguration := headerCompressinConfiguration, + extendedProtocolConfigurationOptions := extendedProtocolConfigurationOptions, + extended_APN_AMBR := extended_APN_AMBR, + extendedQoS := extendedQoS + } + } + } +} + +/* 8.3.16 Modify EPS bearer context accept */ +template (value) PDU_NAS_EPS +ts_NAS_ActDefEpsBearCtxAcc(template (value) BIT4 bearer_id, + template (value) BIT8 proc_tid) := { + protocolDiscriminator := c_EPS_NAS_PD_ESM, + ePS_messages := { + ePS_SessionManagement := { + pDU_NAS_EPS_ModifyEPSBearerContextAccept := { + ePSBearerIdentity := bearer_id, + procedureTransactionIdentifier := proc_tid, + messageType := '11001010'B, + protocolConfigOptions := omit, + nBIFOMContainer := omit, + extendedProtocolConfigurationOptions := omit + } + } + } +} + } diff --git a/mme/ConnHdlr.ttcn b/mme/ConnHdlr.ttcn index e3e62f8..37b60a3 100644 --- a/mme/ConnHdlr.ttcn +++ b/mme/ConnHdlr.ttcn @@ -374,6 +374,50 @@ } } +altstep as_s1ap_handle_ERABModifyRequest_ModifyBearerCtxReq(boolean reply_success := true) runs on ConnHdlr { + var S1AP_PDU rx_msg; + var PDU_NAS_EPS rx_nas; + [] S1AP.receive((tr_S1AP_RABModifyReq(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + max_br := omit), + tr_S1AP_RABModifyReq(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + max_br := ?))) -> value rx_msg { + var template (value) E_RAB_ID rab_id := 5; + + S1AP.receive(tr_NAS_ModifyEpsBearCtxReq()) -> value rx_nas; + + if (reply_success) { + var template (value) PDU_NAS_EPS nas_esm; + var template (omit) E_RABModifyListBearerModRes rab_modified_items; + + rab_modified_items := + ts_E_RABModifyListBearerModRes(ts_E_RABModifyItemBearerModRes(rab_id := rab_id)) + S1AP.send(ts_S1AP_RABModifyRsp(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + rab_modified_items := rab_modified_items, + rab_failed_items := omit)); + + nas_esm := ts_NAS_ActDefEpsBearCtxAcc(bearer_id := int2bit(g_pars.ue_pars.bearer.ebi, 4), + proc_tid := int2bit(1,8)); + S1AP.send(nas_esm); + } else { + var template (omit) E_RABList rab_failed_items; + + rab_failed_items := + ts_E_RABList(ts_E_RABItem(rab_id := rab_id, + cause := {radioNetwork := reduce_load_in_serving_cell})); + S1AP.send(ts_S1AP_RABModifyRsp(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + rab_modified_items := omit, + rab_failed_items := rab_failed_items)); + } + } + [] S1AP.receive(PDU_NAS_EPS:?) -> value rx_nas { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Rx Unexpected NAS PDU msg: ", rx_nas)); + } +} + altstep as_s1ap_handle_IntialCtxSetupReq_TAU_Accept() runs on ConnHdlr { var S1AP_PDU rx_msg; var PDU_NAS_EPS rx_nas; @@ -678,6 +722,51 @@ } } +function f_GTP2C_tx_UpdateBearerRequest() +runs on ConnHdlr { + var uint16_t gtpc_seq_nr := f_rnd_int(65535); + var template (value) GTPv2_Types.TrafficFlowTemplateV flow; + var template (value) BearerContextGrouped bctx; + var template (value) PDU_GTPCv2 upd_req; + + flow := ts_GTP2C_TrafficFlowTemplateV_U_CreateAddReplaceTFT(numberOfPacketFilters := 1, + operationCodeTFT := '011'B, /* Add packet filters to existing TFT */ + packetFilterList_CreateAddReplaceTFT := { + ts_GTP2C_PacketFilter(identifier := ts_PacketFilterIdentifier(identifier := '0100'B, + direction := '01'B), + evaluationPrecedence := '1C'O, + contents := '3011100a13eb85ffffffff11ac170642ffffffff50a00c40c370'O) + }) + bctx := ts_GTP2C_BcGrouped(ts_GTP2C_BcContextIE(ebi := g_pars.ue_pars.bearer.ebi, + ePS_Bearer_TFT := ts_GTPC2_EPS_BearerLevel_TFT(trafficFlowTemplateValue := flow), + qos := ts_GTP2C_BearerQos(qci := '01'O, + max_br_ul := 44, + max_br_dl := 31, + g_br_ul := 44, + g_br_dl := 31, + prio_lvl := '0010'B, + pe_vuln := '0'B, + pe_capa := '0'B))); + upd_req := ts_GTP2C_UpdateBearerRequest(d_teid := g_pars.ue_pars.s11_teic_remote, + seq := int2oct(gtpc_seq_nr, 3), + bearerContextGrouped := { bctx }, + apn_ambr := ts_GTP2C_Ambr(102400, 102400)); + GTP2.send(upd_req); +} + +altstep as_GTP2C_UpdateBearerResp(template (present) GTP2C_Cause cause := Request_accepted) runs on ConnHdlr { + var PDU_GTPCv2 rx_msg; + + [] GTP2.receive(tr_GTP2C_UpdateBearerResp(g_pars.ue_pars.s11_teic_local, + cause := cause)) -> value rx_msg { + setverdict(pass); + } + [] GTP2.receive { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("Unexpected GTPv2/S11 message from MME")); + } +} + /* 3GPP TS 23.401 D.3.5, TS 23.003 2.8.2.1 */ private function guti2rai_ptmsi(in NAS_EPS_Types.GUTI guti, in OCT2 truncated_nas_token, out RoutingAreaIdentity rai, out OCT4 ptmsi, out OCT3 ptmsi_sig) runs on ConnHdlr { diff --git a/mme/MME_Tests.ttcn b/mme/MME_Tests.ttcn index 586c667..e717766 100644 --- a/mme/MME_Tests.ttcn +++ b/mme/MME_Tests.ttcn @@ -816,6 +816,45 @@ vc_conn.done; } +/* SWGC forwards PGW-originated GTPv2C Update Bearer Request to MME, + * which should update the eRAB + NAS towards the eNB+UE. + * Success scenario. */ +private function f_TC_incoming_update_bearer_success() runs on ConnHdlr { + f_attach(); + f_GTP2C_tx_UpdateBearerRequest(); + as_s1ap_handle_ERABModifyRequest_ModifyBearerCtxReq(reply_success := true); + as_GTP2C_UpdateBearerResp(cause := Request_accepted); +} +testcase TC_incoming_update_bearer_success() runs on MTC_CT { + f_init(9, init_diameter := true, init_gtpv2c_s11 := true); + f_s1ap_setup(0); + + var ConnHdlrPars pars := f_init_pars(ue_idx := 0); + var ConnHdlr vc_conn; + vc_conn := f_start_handler_with_pars(refers(f_TC_incoming_update_bearer_success), pars); + vc_conn.done; +} + +/* SWGC forwards PGW-originated GTPv2C Update Bearer Request to MME, + * which should update the eRAB + NAS towards the eNB+UE. + * eNB fails to update the eRAB scenario. */ +private function f_TC_incoming_update_bearer_enb_failure() runs on ConnHdlr { + f_attach(); + f_GTP2C_tx_UpdateBearerRequest(); + as_s1ap_handle_ERABModifyRequest_ModifyBearerCtxReq(reply_success := false); + as_GTP2C_UpdateBearerResp(cause := No_resources_available); +} +testcase TC_incoming_update_bearer_enb_failure() runs on MTC_CT { + f_init(11, init_diameter := true, init_gtpv2c_s11 := true); + f_s1ap_setup(0); + + var ConnHdlrPars pars := f_init_pars(ue_idx := 0); + var ConnHdlr vc_conn; + vc_conn := f_start_handler_with_pars(refers(f_TC_incoming_update_bearer_enb_failure), pars); + vc_conn.done; +} + + control { execute( TC_s1ap_setup_unknown_global_enb_id_plmn() ); execute( TC_s1ap_setup_wrong_tac() ); @@ -829,6 +868,8 @@ execute( TC_ue_cell_reselect_eutran_to_geran() ); execute( TC_ue_cell_reselect_geran_to_eutran() ); execute( TC_s1ap_attach_no_emergency() ); + execute( TC_incoming_update_bearer_success() ); + execute( TC_incoming_update_bearer_enb_failure() ); } diff --git a/mme/expected-results.xml b/mme/expected-results.xml index ae2dd4e..95b2d55 100644 --- a/mme/expected-results.xml +++ b/mme/expected-results.xml @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<testsuite name='Titan' tests='17' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> +<testsuite name='Titan' tests='23' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> <testcase classname='MME_Tests' name='TC_s1ap_setup_unknown_global_enb_id_plmn' time='MASKED'/> <testcase classname='MME_Tests' name='TC_s1ap_setup_wrong_tac' time='MASKED'/> <testcase classname='MME_Tests' name='TC_s1ap_setup' time='MASKED'/> @@ -12,6 +12,8 @@ <testcase classname='MME_Tests' name='TC_ue_cell_reselect_eutran_to_geran' time='MASKED'/> <testcase classname='MME_Tests' name='TC_ue_cell_reselect_geran_to_eutran' time='MASKED'/> <testcase classname='MME_Tests' name='TC_s1ap_attach_no_emergency' time='MASKED'/> + <testcase classname='MME_Tests' name='TC_incoming_update_bearer_success' time='MASKED'/> + <testcase classname='MME_Tests' name='TC_incoming_update_bearer_enb_failure' time='MASKED'/> <testcase classname='MME_Tests_SGsAP' name='TC_sgsap_vlr_reset' time='MASKED'/> <testcase classname='MME_Tests_SGsAP' name='TC_sgsap_paging_sms' time='MASKED'/> <testcase classname='MME_Tests_SGsAP' name='TC_sgsap_paging_cs' time='MASKED'/> diff --git a/mme/regen_makefile.sh b/mme/regen_makefile.sh index 79686ab..1e4ed89 100755 --- a/mme/regen_makefile.sh +++ b/mme/regen_makefile.sh @@ -28,6 +28,11 @@ TELNETasp_PT.cc " +# https://gitlab.eclipse.org/eclipse/titan/titan.core/-/work_items/798 +REGEN_MAKEFILE_ADD_TTCN3_COMPILER_FLAGS_IF_SUPPORTED=" + --legacy-template-subrefs +" + . ../_buildsystem/regen_makefile.inc.sh sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lgnutls/' Makefile -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44198?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib0c0996ed1cbf9b2182e3b232b733af5b9c441ce Gerrit-Change-Number: 44198 Gerrit-PatchSet: 5 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: library/S1AP_Functions: Support routing rx E-RABModifyResponse to cor...
by pespin 03 Dec '26

03 Dec '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44196?usp=email ) ( 2 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr ...................................................................... library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr Related: SYS#8357 Change-Id: Ic14c0990fcb885d39a107719fb9f520c88594c58 --- M library/S1AP_Functions.ttcn 1 file changed, 19 insertions(+), 0 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/S1AP_Functions.ttcn b/library/S1AP_Functions.ttcn index d9af50e..abc74a4 100644 --- a/library/S1AP_Functions.ttcn +++ b/library/S1AP_Functions.ttcn @@ -52,6 +52,9 @@ case (tr_S1AP_RABSetupReq) { return im.value_.E_RABSetupRequest.protocolIEs[1].value_.ENB_UE_S1AP_ID; } + case (tr_S1AP_RABModifyReq) { + return im.value_.E_RABModifyRequest.protocolIEs[1].value_.ENB_UE_S1AP_ID; + } /* TODO */ } } else if (ischosen(s1ap.successfulOutcome)) { @@ -110,6 +113,9 @@ case (tr_S1AP_RABSetupReq) { return im.value_.E_RABSetupRequest.protocolIEs[0].value_.MME_UE_S1AP_ID; } + case (tr_S1AP_RABModifyReq) { + return im.value_.E_RABModifyRequest.protocolIEs[0].value_.MME_UE_S1AP_ID; + } /* TODO */ } } else if (ischosen(s1ap.successfulOutcome)) { @@ -184,6 +190,19 @@ } return omit; } + case (tr_S1AP_RABModifyReq) { + var E_RABModifyRequest msg := im.value_.E_RABModifyRequest; + for (i := 0; i < lengthof(msg.protocolIEs); i := i+1) { + if (msg.protocolIEs[i].id == id_E_RABToBeModifiedListBearerModReq) { + var E_RABToBeModifiedListBearerModReq rab_req := msg.protocolIEs[i].value_.E_RABToBeModifiedListBearerModReq; + for (j := 0; j < lengthof(rab_req); j := j+1) { + var E_RABToBeModifiedItemBearerModReq it := rab_req[j].value_.E_RABToBeModifiedItemBearerModReq; + return it.nAS_PDU; + } + } + } + return omit; + } } } return omit; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44196?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ic14c0990fcb885d39a107719fb9f520c88594c58 Gerrit-Change-Number: 44196 Gerrit-PatchSet: 5 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: mme: Introduce tests TC_incoming_update_bearer_*
by fixeria 03 Dec '26

03 Dec '26
Attention is currently required from: osmith, pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44198?usp=email ) Change subject: mme: Introduce tests TC_incoming_update_bearer_* ...................................................................... Patch Set 5: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44198?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib0c0996ed1cbf9b2182e3b232b733af5b9c441ce Gerrit-Change-Number: 44198 Gerrit-PatchSet: 5 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Thu, 03 Dec 2026 12:25:37 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: S1AP_Templates: Fix f_tr_* templates with newer titan following ttcn3...
by pespin 03 Dec '26

03 Dec '26
pespin has abandoned this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44219?usp=email ) Change subject: S1AP_Templates: Fix f_tr_* templates with newer titan following ttcn3 specs ...................................................................... Abandoned -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44219?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: abandon Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I4fbee80a7245fa00c8c42ff10a8346691b94a839 Gerrit-Change-Number: 44219 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: library/S1AP_Functions: Support routing rx E-RABModifyResponse to cor...
by pespin 03 Dec '26

03 Dec '26
Attention is currently required from: pespin. Hello Jenkins Builder, fixeria, osmith, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44196?usp=email to look at the new patch set (#5). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder The change is no longer submittable: Verified is unsatisfied now. Change subject: library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr ...................................................................... library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr Related: SYS#8357 Change-Id: Ic14c0990fcb885d39a107719fb9f520c88594c58 --- M library/S1AP_Functions.ttcn 1 file changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/44196/5 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44196?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ic14c0990fcb885d39a107719fb9f520c88594c58 Gerrit-Change-Number: 44196 Gerrit-PatchSet: 5 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de>
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • ...
  • 25
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.