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 -----
  • 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

September 2026

  • 1 participants
  • 1894 discussions
[L] Change in osmo-ttcn3-hacks[master]: smf: Implement f_n11_update_sm_context()
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43681?usp=email ) Change subject: smf: Implement f_n11_update_sm_context() ...................................................................... smf: Implement f_n11_update_sm_context() Change-Id: I3c79ba747886add0ea8e5ea3003364eedf4c43be --- M library/HTTP2_Msg.ttcn M library/TS29502_Nsmf_PDUSession_Templates.ttcn A library/TS29503_Nudm_UECM_Templates.ttcn M smf/SMF_Session_CT.ttcn M smf/SMF_Session_CT_5G.ttcn M smf/gen_links.sh 6 files changed, 484 insertions(+), 17 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve diff --git a/library/HTTP2_Msg.ttcn b/library/HTTP2_Msg.ttcn index b5b5bc6..4150c0b 100644 --- a/library/HTTP2_Msg.ttcn +++ b/library/HTTP2_Msg.ttcn @@ -61,6 +61,18 @@ body := body } +template (present) HTTP2_Msg +tr_HTTP2_Msg_Status(template (present) IPL4asp_Types.ConnectionId conn_id := ?, + template (present) integer stream_id := ?, + template (present) integer status := ?, + template HTTP2_header_list headers := *, + template HTTP2_Data_frame body := *) := +tr_HTTP2_Msg(conn_id, + stream_id, + hb := tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(status), + headers := headers), + body := body + ); template (value) HTTP2_Msg ts_HTTP2_Msg_Status(template (value) IPL4asp_Types.ConnectionId conn_id, template (value) integer stream_id, @@ -88,6 +100,13 @@ template (omit) HTTP2_Data_frame body := omit) := ts_HTTP2_Msg_Status(conn_id, stream_id, 201, headers, body); +template (present) HTTP2_Msg +tr_HTTP2_Msg_204_No_Content(template (present) IPL4asp_Types.ConnectionId conn_id := ?, + template (present) integer stream_id := ?, + template HTTP2_header_list headers := *, + template HTTP2_Data_frame body := omit) := +tr_HTTP2_Msg_Status(conn_id, stream_id, 204, headers, body); + function f_HTTP2_Msg_append_hdr_content_length(inout HTTP2_Msg http2_msg) { diff --git a/library/TS29502_Nsmf_PDUSession_Templates.ttcn b/library/TS29502_Nsmf_PDUSession_Templates.ttcn index e34cd10..b89c5c8 100644 --- a/library/TS29502_Nsmf_PDUSession_Templates.ttcn +++ b/library/TS29502_Nsmf_PDUSession_Templates.ttcn @@ -253,6 +253,166 @@ priorityUserInd := priorityUserInd } +type TS29502_Nsmf_PDUSession.SmContextUpdateData.backupAmfInfo BackupAmfInfoNullable; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.n9DlForwardingTnlList N9DlForwardingTnlList; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.n9UlForwardingTnlList N9UlForwardingTnlList; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.epsBearerSetup EpsBearerContainerList; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.revokeEbiList EpsBearerIdList; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.forwardingBearerContexts ForwardingBearerContainerList; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.secondaryRatUsageDataReportContainer SecondaryRatUsageDataReportContainerList; +type TS29502_Nsmf_PDUSession.SmContextUpdateData.qosMonitoringPdMethods QosMonitoringPdMethodList; + +template (value) SmContextUpdateData +ts_SmContextUpdateData( + template (omit) Pei pei := omit, + template (omit) NfInstanceId servingNfId := omit, + template (omit) Guami guami := omit, + template (omit) PlmnIdNid servingNetwork := omit, + template (omit) BackupAmfInfoNullable backupAmfInfo := omit, + template (omit) AccessType anType := omit, + template (omit) AccessType additionalAnType := omit, + template (omit) AccessType anTypeToReactivate := omit, + template (omit) AccessType anTypeOfN1N2Info := omit, + template (omit) RatType ratType := omit, + template (omit) PresenceState presenceInLadn := omit, + template (omit) UserLocation ueLocation := omit, + template (omit) TimeZone ueTimeZone := omit, + template (omit) UserLocation addUeLocation := omit, + template (omit) UpCnxState upCnxState := omit, + template (omit) HoState hoState := omit, + template (omit) boolean toBeSwitched := omit, + template (omit) boolean failedToBeSwitched := omit, + template (omit) RefToBinaryData n1SmMsg := omit, + template (omit) RefToBinaryData n2SmInfo := omit, + template (omit) N2SmInfoType n2SmInfoType := omit, + template (omit) NgRanTargetId targetId := omit, + template (omit) NfInstanceId targetServingNfId := omit, + template (omit) Uri smContextStatusUri := omit, + template (omit) boolean dataForwarding := omit, + template (omit) TunnelInfo n9ForwardingTunnel := omit, + template (omit) N9DlForwardingTnlList n9DlForwardingTnlList := omit, + template (omit) N9UlForwardingTnlList n9UlForwardingTnlList := omit, + template (omit) TunnelInfo n9DlForwardingTunnel := omit, + template (omit) DurationSec n9InactivityTimer := omit, + template (omit) EpsBearerContainerList epsBearerSetup := omit, + template (omit) EpsBearerIdList revokeEbiList := omit, + template (omit) boolean release := omit, + template (omit) Cause cause := omit, + template (omit) NgApCause ngApCause := omit, + template (omit) FiveGMmCause fivegMmCauseValue := omit, + template (omit) Snssai sNssai := omit, + template (omit) TraceData traceData := omit, + template (omit) EpsInterworkingIndication epsInterworkingInd := omit, + template (omit) boolean anTypeCanBeChanged := omit, + template (omit) RefToBinaryData n2SmInfoExt1 := omit, + template (omit) N2SmInfoType n2SmInfoTypeExt1 := omit, + template (omit) MaReleaseIndication maReleaseInd := omit, + template (omit) boolean maNwUpgradeInd := omit, + template (omit) boolean maRequestInd := omit, + template (omit) boolean n3gPathSwitchExecutionInd := omit, + template (omit) ExemptionInd exemptionInd := omit, + template (omit) SupportedFeatures supportedFeatures := omit, + template (omit) MoExpDataCounter moExpDataCounter := omit, + template (omit) boolean extendedNasSmTimerInd := omit, + template (omit) Bytes forwardingFTeid := omit, + template (omit) ForwardingBearerContainerList forwardingBearerContexts := omit, + template (omit) DdnFailureSubs ddnFailureSubs := omit, + template (omit) boolean skipN2PduSessionResRelInd := omit, + template (omit) SecondaryRatUsageDataReportContainerList secondaryRatUsageDataReportContainer := omit, + template (omit) boolean smPolicyNotifyInd := omit, + template (omit) PcfUeCallbackInfo pcfUeCallbackInfo := omit, + template (omit) SatelliteBackhaulCategory satelliteBackhaulCat := omit, + template (omit) boolean cnBasedMt := omit, + template (omit) GeoSatelliteId geoSatelliteId := omit, + template (omit) SatelliteId servingSatelliteId := omit, + template (omit) Snssai altSnssai := omit, + template (omit) Snssai altHplmnSnssai := omit, + template (omit) boolean nsReplTerminInd := omit, + template (omit) boolean sliceAreaRestrictInd := omit, + template (omit) QosMonitoringPdSupported qosMonitoringPdSupported := omit, + template (omit) QosMonitoringPdMethodList qosMonitoringPdMethods := omit, + template (omit) QosMonitoringCongestionSupported qosMonitoringCongestionSupported := omit, + template (omit) AvailBitRateMonSupported availBitRateMonSupported := omit, + template (omit) UeLevelMeasurementsConfiguration ueLevelMeasConfig := omit, + template (omit) NfGroupId udmGroupId := omit, + template (omit) boolean amfResynchedInd := omit, + template (omit) boolean localOffloadingMgtAllowedInd := omit +) := { + pei := pei, + servingNfId := servingNfId, + guami := guami, + servingNetwork := servingNetwork, + backupAmfInfo := backupAmfInfo, + anType := anType, + additionalAnType := additionalAnType, + anTypeToReactivate := anTypeToReactivate, + anTypeOfN1N2Info := anTypeOfN1N2Info, + ratType := ratType, + presenceInLadn := presenceInLadn, + ueLocation := ueLocation, + ueTimeZone := ueTimeZone, + addUeLocation := addUeLocation, + upCnxState := upCnxState, + hoState := hoState, + toBeSwitched := toBeSwitched, + failedToBeSwitched := failedToBeSwitched, + n1SmMsg := n1SmMsg, + n2SmInfo := n2SmInfo, + n2SmInfoType := n2SmInfoType, + targetId := targetId, + targetServingNfId := targetServingNfId, + smContextStatusUri := smContextStatusUri, + dataForwarding := dataForwarding, + n9ForwardingTunnel := n9ForwardingTunnel, + n9DlForwardingTnlList := n9DlForwardingTnlList, + n9UlForwardingTnlList := n9UlForwardingTnlList, + n9DlForwardingTunnel := n9DlForwardingTunnel, + n9InactivityTimer := n9InactivityTimer, + epsBearerSetup := epsBearerSetup, + revokeEbiList := revokeEbiList, + release := release, + cause := cause, + ngApCause := ngApCause, + fivegMmCauseValue := fivegMmCauseValue, + sNssai := sNssai, + traceData := traceData, + epsInterworkingInd := epsInterworkingInd, + anTypeCanBeChanged := anTypeCanBeChanged, + n2SmInfoExt1 := n2SmInfoExt1, + n2SmInfoTypeExt1 := n2SmInfoTypeExt1, + maReleaseInd := maReleaseInd, + maNwUpgradeInd := maNwUpgradeInd, + maRequestInd := maRequestInd, + n3gPathSwitchExecutionInd := n3gPathSwitchExecutionInd, + exemptionInd := exemptionInd, + supportedFeatures := supportedFeatures, + moExpDataCounter := moExpDataCounter, + extendedNasSmTimerInd := extendedNasSmTimerInd, + forwardingFTeid := forwardingFTeid, + forwardingBearerContexts := forwardingBearerContexts, + ddnFailureSubs := ddnFailureSubs, + skipN2PduSessionResRelInd := skipN2PduSessionResRelInd, + secondaryRatUsageDataReportContainer := secondaryRatUsageDataReportContainer, + smPolicyNotifyInd := smPolicyNotifyInd, + pcfUeCallbackInfo := pcfUeCallbackInfo, + satelliteBackhaulCat := satelliteBackhaulCat, + cnBasedMt := cnBasedMt, + geoSatelliteId := geoSatelliteId, + servingSatelliteId := servingSatelliteId, + altSnssai := altSnssai, + altHplmnSnssai := altHplmnSnssai, + nsReplTerminInd := nsReplTerminInd, + sliceAreaRestrictInd := sliceAreaRestrictInd, + qosMonitoringPdSupported := qosMonitoringPdSupported, + qosMonitoringPdMethods := qosMonitoringPdMethods, + qosMonitoringCongestionSupported := qosMonitoringCongestionSupported, + availBitRateMonSupported := availBitRateMonSupported, + ueLevelMeasConfig := ueLevelMeasConfig, + udmGroupId := udmGroupId, + amfResynchedInd := amfResynchedInd, + localOffloadingMgtAllowedInd := localOffloadingMgtAllowedInd +} + template (value) RefToBinaryData ts_RefToBinaryData(template (value) charstring contentId) := { contentId := contentId @@ -345,4 +505,9 @@ nid := nid } +template (value) N2SmInfoType +ts_N2SmInfoType(template (value) N2SmInfoType_enum enum_val) := { + enum_val := enum_val +} + } diff --git a/library/TS29503_Nudm_UECM_Templates.ttcn b/library/TS29503_Nudm_UECM_Templates.ttcn new file mode 100644 index 0000000..9636c82 --- /dev/null +++ b/library/TS29503_Nudm_UECM_Templates.ttcn @@ -0,0 +1,58 @@ +module TS29503_Nudm_UECM_Templates { + +import from TS29503_Nudm_UECM all; + +template (present) SmfRegistration +tr_SmfRegistration(template (present) NfInstanceId smfInstanceId := ?, + template NfSetId smfSetId := *, + template SupportedFeatures supportedFeatures := *, + template (present) PduSessionId pduSessionId := ?, + template (present) Snssai singleNssai := ?, + template Dnn dnn := *, + template boolean emergencyServices := *, + template Uri pcscfRestorationCallbackUri := *, + template (present) PlmnId plmnId := ?, + template Fqdn pgwFqdn := *, + template IpAddress pgwIpAddr := *, + template boolean epdgInd := *, + template Uri deregCallbackUri := *, + template RegistrationReason registrationReason := *, + template DateTime registrationTime := *, + template ContextInfo contextInfo := *, + template NfInstanceId pcfId := *, + template Uri dataRestorationCallbackUri := *, + template record of charstring resetIds := *, + template boolean udrRestartInd := *, + template DateTime lastSynchronizationTime := *, + template boolean pduSessionReActivationRequired := *, + template Uri staleCheckCallbackUri := *, + template Uri udmStaleCheckCallbackUri := *, + template boolean wildcardInd := *) := { + smfInstanceId:= smfInstanceId, + smfSetId := smfSetId, + supportedFeatures := supportedFeatures, + pduSessionId:= pduSessionId, + singleNssai:= singleNssai, + dnn := dnn, + emergencyServices := emergencyServices, + pcscfRestorationCallbackUri := pcscfRestorationCallbackUri, + plmnId:= plmnId, + pgwFqdn := pgwFqdn, + pgwIpAddr := pgwIpAddr, + epdgInd := epdgInd, + deregCallbackUri := deregCallbackUri, + registrationReason := registrationReason, + registrationTime := registrationTime, + contextInfo := contextInfo, + pcfId := pcfId, + dataRestorationCallbackUri := dataRestorationCallbackUri, + resetIds := resetIds, + udrRestartInd := udrRestartInd, + lastSynchronizationTime := lastSynchronizationTime, + pduSessionReActivationRequired := pduSessionReActivationRequired, + staleCheckCallbackUri := staleCheckCallbackUri, + udmStaleCheckCallbackUri := udmStaleCheckCallbackUri, + wildcardInd := wildcardInd +} + +} diff --git a/smf/SMF_Session_CT.ttcn b/smf/SMF_Session_CT.ttcn index 197717f..d0a7aea 100644 --- a/smf/SMF_Session_CT.ttcn +++ b/smf/SMF_Session_CT.ttcn @@ -17,6 +17,8 @@ import from DIAMETER_Templates all; import from DIAMETER_Emulation all; +import from NG_NAS_TypeDefs all; + import from PFCP_Types all; import from PFCP_Emulation all; import from PFCP_Templates all; @@ -152,8 +154,29 @@ return valueof(pfcp_pars); } +type record SessionPars_Namf { + integer pdu_sess_id, + charstring ran_gtpu_ip, + OCT4 ran_gtpu_teid, + charstring cn_gtpu_ip optional, + OCT4 cn_gtpu_teid optional, + charstring ue_ip4 optional, + charstring ue_ip6 optional, + octetstring ipv6_interface_id optional + +}; + +type record SessionPars_Nsmf { + charstring smContextRef optional +}; + +type record SessionPars_Nudm { + charstring smf_subscription_id +}; + type record SessionPars_NGNAS { - OCT1 pti + OCT1 pti, + QoS_RuleList qos_rules optional }; /* configuration data for a given Session */ @@ -185,6 +208,9 @@ PfcpParameters pfcp_pars, + SessionPars_Namf namf, + SessionPars_Nsmf nsmf, + SessionPars_Nudm nudm, SessionPars_NGNAS nas } @@ -217,8 +243,25 @@ cca_res_code := DIAMETER_SUCCESS }, pfcp_pars := pfcp_pars, + namf := { + pdu_sess_id := 1, + ran_gtpu_ip := mp_amf_local_ip, + ran_gtpu_teid := int2oct(1, 4), + cn_gtpu_ip := omit, + cn_gtpu_teid := omit, + ue_ip4 := omit, + ue_ip6 := omit, + ipv6_interface_id := omit + }, + nsmf := { + smContextRef := omit + }, + nudm := { + smf_subscription_id := int2str(1) + }, nas := { - pti := '00'O + pti := '00'O, + qos_rules := omit } } diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index 7b4e3bc..5313c54 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -13,17 +13,21 @@ import from HTTP2_Server_Emulation all; import from TS29518_Namf_Communication all; +import from TS29503_Nudm_UECM all; import from TS29503_Nudm_SDM all; import from TS29502_Nsmf_PDUSession all; import from TS29512_Npcf_SMPolicyControl all; import from TS29518_Namf_Communication_Templates all; +import from TS29503_Nudm_UECM_Templates all; import from TS29503_Nudm_SDM_Templates all; import from TS29502_Nsmf_PDUSession_Templates all; import from TS29512_Npcf_SMPolicyControl_Templates all; +import from NGAP_Constants language "ASN.1:2002" all; import from NGAP_IEs all; import from NGAP_Types all; +import from NGAP_Templates all; import from NAS_CommonTypeDefs all; import from NG_NAS_MsgContainers all; @@ -61,11 +65,15 @@ const charstring Nsmf_PDUSession_path_api_prefix := "/nsmf-pdusession/v1" const charstring Nsmf_PDUSession_path_sm_contexts := Nsmf_PDUSession_path_api_prefix & "/sm-contexts"; -template (value) charstring ts_Nsmf_PDUSession_path_sm_contexts(template (value) charstring pdu_sess_id) := - Nsmf_PDUSession_path_sm_contexts & "/" & valueof(pdu_sess_id); +template (value) charstring ts_Nsmf_PDUSession_path_sm_contexts(template (value) charstring smContextRef) := + Nsmf_PDUSession_path_sm_contexts & "/" & valueof(smContextRef); -template (present) charstring tr_Nsmf_PDUSession_uri_sm_contexts(template charstring pdu_sess_id := pattern "\d+") := - pattern Nsmf_uri_prefix & Nsmf_PDUSession_path_sm_contexts & "/" & pdu_sess_id; +template (present) charstring tr_Nsmf_PDUSession_uri_sm_contexts(template charstring smContextRef := pattern "\d+") := + pattern Nsmf_uri_prefix & Nsmf_PDUSession_path_sm_contexts & "/" & smContextRef; + +template (value) charstring ts_Nsmf_PDUSession_path_sm_context_modify(template (value) charstring smContextRef) := + Nsmf_PDUSession_path_sm_contexts & "/" & valueof(smContextRef) & "/modify"; + function f_n11_init() runs on SMF_Session_CT { f_http2_adapter_init(); @@ -110,6 +118,21 @@ return f_HTTP2_multipart_msg_encode(parts, boundary); } +function f_http2_encode_body_multipart_json_ngap(octetstring json_encoded, + octetstring ngap_ecnoded, + charstring boundary := "=-0EVVjxcWWFYNd1JXh1OQEg==") return octetstring +{ + var template (value) HTTP2_multipart_part_list parts; + parts := { + ts_HTTP2_multipart_part({ ts_HTTP2_Hdr_content_type("application/json") }, + json_encoded), + ts_HTTP2_multipart_part({ ts_HTTP2_Hdr_content_id("N2SmInfo"), + ts_HTTP2_Hdr_content_type("application/vnd.3gpp.ngap") }, + ngap_ecnoded) + }; + return f_HTTP2_multipart_msg_encode(parts, boundary); +} + /* Nsmf_PDUSession_CreateSMContext Request/response * 3GPP TS 23.502 Figure 4.3.2.2.1-1 * 3GPP TS 29.502 6.1.3.2 */ @@ -118,7 +141,6 @@ var template (value) NG_NAS_UL_Message_Type nas_ul_msg; var ProcedureTransactionIdentifier pti := f_next_pti(); var template (value) octetstring body; - var integer pdu_sess_id := 1; var integer http2_idx; var integer http2_stream_id := 3; var template (value) HTTP2_Msg http2_tx; @@ -129,7 +151,7 @@ var octetstring sm_contexts_enc; sm_contexts := ts_SmContextCreateData(supi := "imsi-" & g_pars.imsi_str, pei := "imeisv-0790219824011594", - pduSessionId := pdu_sess_id, + pduSessionId := g_pars.namf.pdu_sess_id, dnn := "internet", sNssai := TS29502_Nsmf_PDUSession_Templates.ts_Snssai(1), servingNfId := "foobar", @@ -139,12 +161,12 @@ anType := ThreeGPP_ACCESS, ratType := ts_RatType(NR), ueLocation := f_ts_UserLocation(), - smContextStatusUri := ts_Namf_Callback_uri_imsi_sm_context_status_id(g_pars.imsi_str, int2str(pdu_sess_id))); + smContextStatusUri := ts_Namf_Callback_uri_imsi_sm_context_status_id(g_pars.imsi_str, int2str(g_pars.namf.pdu_sess_id))); sm_contexts_enc := f_enc_SmContextCreateData(valueof(sm_contexts)); var charstring boundary := "=-0EVVjxcWWFYNd1JXh1OQEg==" - nas_ul_msg := cs_NG_PDU_SESSION_ESTABLISHMENT_REQUEST(cs_NG_PDU_SessionIdV(int2oct(pdu_sess_id, 1)), pti, + nas_ul_msg := cs_NG_PDU_SESSION_ESTABLISHMENT_REQUEST(cs_NG_PDU_SessionIdV(int2oct(g_pars.namf.pdu_sess_id, 1)), pti, p_IntegrityProtMaxDataRate := cs_IntegrityProtMaxDataRateV('FF'O, 'FF'O), p_PDU_SessionType := cs_PDU_SessionTypeTV(c_PDU_SessionType_IPv4), p_SSC_Mode := cs_SSC_ModeTV('001'B)); @@ -201,6 +223,10 @@ end_stream_flag := true, data := char2oct("{}"))); as_http2_adapter_receive(http2_rx, http2_exp_rx, idx := http2_idx); + /* Store obtained smContextRef:*/ + var charstring created_location := valueof(f_HTTP2_header_list_find_header(http2_rx.hb.headers, c_HTTP2_HDR_location)); + g_pars.nsmf.smContextRef := regexp(created_location, Nsmf_uri_prefix & Nsmf_PDUSession_path_sm_contexts & "/(?+)", 0); + /* Close HTTP2 conn: */ f_http2_adapter_close(idx := http2_idx); /* Expect PCF to receive POST sm-policies: */ @@ -218,8 +244,66 @@ /////////// END MUTUAL EXCLUSION ZONE //////////// as_namf_comm_post_n1n2_messages(); + + f_n11_update_sm_context(); setverdict(pass); - f_sleep(3.0); +} + + +/* 3GPP TS 29.502 5.2.2.3 Update SM Context service operation */ +function f_n11_update_sm_context() +runs on SMF_Session_CT { + + var template (value) SmContextUpdateData sm_ctx_update; + var octetstring sm_ctx_update_enc; + var template (value) octetstring body_enc; + var charstring http2_boundary := "=-0EVVjxcWWFYNd1JXh1OQEg==" + var integer http2_idx; + var integer http2_stream_id := 3; + var template (value) HTTP2_Msg http2_tx; + var HTTP2_Msg http2_rx; + + sm_ctx_update := ts_SmContextUpdateData(ueLocation := f_ts_UserLocation(), + n2SmInfo := TS29502_Nsmf_PDUSession_Templates.ts_RefToBinaryData("N2SmInfo"), + n2SmInfoType := ts_N2SmInfoType(PDU_RES_SETUP_RSP)); + sm_ctx_update_enc := f_enc_SmContextUpdateData(valueof(sm_ctx_update)); + + /* TODO: generate and encode ngap: */ + var octetstring ngap_enc := f_ngap_pdu_gen_PDUSessionResourceSetupResponseTransfer(); + + body_enc := f_http2_encode_body_multipart_json_ngap(sm_ctx_update_enc, ngap_enc, http2_boundary); + http2_idx := f_http2_adapter_find_free_idx(); + http2_tx := ts_HTTP2_Msg(http2_idx, + http2_stream_id, + hb := { + pseudo_headers := ts_HTTP2_pseudo_headers_Req(method := "POST", + scheme := "http", + authority := Nsmf_uri_hostport, + path := ts_Nsmf_PDUSession_path_sm_context_modify(g_pars.nsmf.smContextRef)), + headers := { + ts_HTTP2_Hdr_content_type_multipart(http2_boundary), + ts_HTTP2_Hdr_accept("application/json"), + ts_HTTP2_Hdr_user_agent("ttcn3-amf"), + ts_HTTP2_Hdr_accept_encoding("gzip") + } + }, + body := ts_HTTP2_Data_frame(http2_stream_id, + end_stream_flag := true, + data := body_enc)); + + f_http2_adapter_connect(mp_smf_hostname, mp_smf_sbi_port, mp_amf_local_ip, -1, idx := http2_idx); + f_http2_adapter_send(http2_tx); + + /* SMF updates RAN GTPU IP addr+TEID info on UPF: */ + as_pfcp_sess_mod_req(); + + /* SMF registers on UDM: */ + as_nudm_uecm_put_IndividualSmfRegistration(); + + /* Successful answer with no content: */ + as_http2_adapter_receive(http2_rx, tr_HTTP2_Msg_204_No_Content(), idx := http2_idx); + f_http2_adapter_close(idx := http2_idx); + setverdict(pass); } function f_n11_delete_session() @@ -294,9 +378,11 @@ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Rx unexpected DL NG-NAS: ", dl_nas, " vs exp ", exp_rx_nas)); } + g_pars.nas.qos_rules := dl_nas.pdu_Session_Establishment_Accept.authorizedQoSRules.listofQoSRules; /* Decode 3rd part: NGAP: */ setup_req_transf := dec_NGAP_PDUSessionResourceSetupRequestTransfer(parts[2].data); + f_ngap_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf); /* Tx answer: */ n1n2msg_rsp := ts_N1N2MessageTransferRspData(cause := ts_N1N2MessageTransferCause(N1_N2_TRANSFER_INITIATED)) @@ -315,13 +401,27 @@ } } -/************************************* - * N10 Nudm (SBI): Emulated UDM - *************************************/ +/************************************************ + * N10 Nudm (SBI): Emulated UDM, 3GPP TS 29.503 + ************************************************/ const charstring Nudm_uri_prefix := SCP_uri_prefix; +const charstring Nudm_UECM_path_api_prefix := "/nudm-uecm/v1" const charstring Nudm_SDM_path_api_prefix := "/nudm-sdm/v2" +/* 6.2.3.5 Resource: IndividualSmfRegistration */ +template (present) charstring tr_Nudm_UECM_path_individual_smf_registration(template (present) charstring imsi := pattern "\d+", + template (present) charstring smf_reg := pattern "\d+") := + pattern Nudm_UECM_path_api_prefix & "/imsi-" & imsi & "/registrations/smf-registrations/" & smf_reg; + +template (value) charstring ts_Nudm_UECM_path_individual_smf_registration(template (value) charstring imsi, + template (value) charstring smf_reg) := + Nudm_UECM_path_api_prefix & "/imsi-" & valueof(imsi) & "/registrations/smf-registrations/" & valueof(smf_reg); + +template (value) charstring ts_Nudm_UECM_uri_individual_smf_registration(template (value) charstring imsi, + template (value) charstring smf_reg) := + Nudm_uri_prefix & valueof(ts_Nudm_UECM_path_individual_smf_registration(imsi, smf_reg)); + template (value) charstring ts_Nudm_SDM_path_sdm_imsi(template (value) charstring imsi) := Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi); @@ -335,7 +435,50 @@ template (value) charstring ts_Nudm_SDM_uri_sdm_imsi_sdm_subscriptions_id(template (value) charstring imsi, template (value) charstring subscr_id) := Nudm_uri_prefix & Nudm_SDM_path_api_prefix & "/imsi-" & valueof(imsi) & "/sdm-subscriptions/" & valueof(subscr_id); +/* 3GPP TS 29.503 6.2.3.5.2.1 */ +function f_tr_Nudm_UECM_put_IndividualSmfRegistration() +runs on SMF_Session_CT return template (present) HTTP2_Msg { + var template (present) HTTP2_Msg http2_msg; + var template (present) HTTP2_header_block hb; + var template (present) HTTP2_pseudo_headers pseudo_headers; + var template HTTP2_header_list headers := *; + pseudo_headers := tr_HTTP2_pseudo_headers_Req(method := "PUT", + path := tr_Nudm_UECM_path_individual_smf_registration(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)); + hb := tr_HTTP2_header_block(pseudo_headers, headers); + http2_msg := tr_HTTP2_Msg(?, ?, + hb := hb, + body := tr_HTTP2_Data_frame(data := decmatch tr_SmfRegistration)); + return http2_msg; +} + +/* 3GPP TS 29.503 5.3.2.2.4 SMF registration */ +private altstep as_nudm_uecm_put_IndividualSmfRegistration() +runs on SMF_Session_CT { + var HTTP2_Msg http2_rx; + [] HTTP2_CONN[HTTP2_CONN_SCP].receive(f_tr_Nudm_UECM_put_IndividualSmfRegistration()) -> value http2_rx { + var SmfRegistration smf_reg; + var octetstring body_enc; + var template (value) HTTP2_Msg http2_tx; + + f_dec_SmfRegistration(http2_rx.body.data, smf_reg); + body_enc := f_enc_SmfRegistration(smf_reg); + + http2_tx := ts_HTTP2_Msg_201_Created(http2_rx.conn_id, + http2_rx.stream_id, + headers := { + ts_HTTP2_Hdr_content_type("application/json; charset=utf-8"), + ts_HTTP2_Hdr_location(ts_Nudm_UECM_uri_individual_smf_registration(g_pars.imsi_str, + g_pars.nudm.smf_subscription_id)) + }, + body := ts_HTTP2_Data_frame(http2_rx.stream_id, + end_stream_flag := true, + data := body_enc)); + HTTP2_CONN[HTTP2_CONN_SCP].send(http2_tx); + setverdict(pass); + } +} /* 3GPP TS 29.503: * 5.2.2.2.5 Session Management Subscription Data Retrieval @@ -429,7 +572,7 @@ f_dec_SdmSubscription1(http2_rx.body.data, sdm_subscription); // TODO: check returned integer. /* Add subscriptionId to received object and transmit it back: */ - sdm_subscription.subscriptionId := "1"; + sdm_subscription.subscriptionId := g_pars.nudm.smf_subscription_id; body_enc := f_enc_SdmSubscription1(sdm_subscription); http2_tx := ts_HTTP2_Msg_201_Created(http2_rx.conn_id, @@ -504,6 +647,45 @@ /************ + * NGAP +**************/ + +/* Handle a PDUSessionResourceSetupRequestTransfer and return a Result */ +private function f_ngap_pdu_handle_PDUSessionResourceSetupRequestTransfer(NGAP_IEs.PDUSessionResourceSetupRequestTransfer setup_req_transf) +runs on SMF_Session_CT { + for (var integer i := 0; i < lengthof(setup_req_transf.protocolIEs); i := i + 1) { + select (setup_req_transf.protocolIEs[i].id) { + case (id_UL_NGU_UP_TNLInformation) { + var UPTransportLayerInformation utli := setup_req_transf.protocolIEs[i].value_.uPTransportLayerInformation; + g_pars.namf.cn_gtpu_ip := f_inet_ntoa(bit2oct(utli.gTPTunnel.transportLayerAddress)); + g_pars.namf.cn_gtpu_teid := utli.gTPTunnel.gTP_TEID; + } + case (id_QosFlowSetupRequestList) { + var QosFlowSetupRequestList qos_req_li := setup_req_transf.protocolIEs[i].value_.QosFlowSetupRequestList; + /* TODO: validate received QoS */ + } + } + } +} + +private function f_ngap_pdu_gen_PDUSessionResourceSetupResponseTransfer() +runs on SMF_Session_CT return octetstring { + var template (value) UPTransportLayerInformation utla; + var template (value) QosFlowPerTNLInformation qos; + var NGAP_IEs.PDUSessionResourceSetupResponseTransfer setup_resp_transf; + var integer qos_id := bit2int(g_pars.nas.qos_rules[0].u.creat.flowIdentifier); + + /* Prepare Response for it: */ + utla := m_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(f_inet_addr(g_pars.namf.ran_gtpu_ip)), + p_gtp_teid := g_pars.namf.ran_gtpu_teid)); + qos := m_qosFlowPerTNLInformation(utla, { m_associatedQosFlowItem(qos_id) }); + setup_resp_transf := valueof(m_pDUSessionResourceSetupResponseTransfer(qos)); + + return enc_NGAP_PDUSessionResourceSetupResponseTransfer(setup_resp_transf); +} + +/************ * NG NAS **************/ diff --git a/smf/gen_links.sh b/smf/gen_links.sh index b95339f..8ab6063 100755 --- a/smf/gen_links.sh +++ b/smf/gen_links.sh @@ -67,7 +67,7 @@ gen_links $DIR $FILES DIR=$BASEDIR/osmo-ttcn3-openapi-generator/openapi-specs/3GPP_5GC_Rel19/ttcn3 -FILES="TS29571_CommonData.ttcn TS29502_Nsmf_PDUSession.ttcn TS29503_Nudm_SDM.ttcn TS29512_Npcf_SMPolicyControl.ttcn TS29518_Namf_Communication.ttcn " +FILES="TS29571_CommonData.ttcn TS29502_Nsmf_PDUSession.ttcn TS29503_Nudm_UECM.ttcn TS29503_Nudm_SDM.ttcn TS29512_Npcf_SMPolicyControl.ttcn TS29518_Namf_Communication.ttcn " gen_links $DIR $FILES @@ -127,7 +127,7 @@ FILES+="NTP_Functions.ttcn PFCP_Templates.ttcn PFCP_CodecPort.ttcn PFCP_CodecPort_CtrlFunct.ttcn PFCP_CodecPort_CtrlFunctDef.cc PFCP_Emulation.ttcn " FILES+="Mutex.ttcn " FILES+="HTTP2_CodecPort.ttcn HTTP2_CodecPort_CtrlFunct.ttcn HTTP2_CodecPort_CtrlFunctDef.cc HTTP2_Templates.ttcn HTTP2_Functions.ttcn HTTP2_Msg.ttcn HTTP2_Adapter.ttcn HTTP2_Server_Emulation.ttcn " -FILES+="TS29503_Nudm_SDM_Templates.ttcn TS29502_Nsmf_PDUSession_Templates.ttcn TS29512_Npcf_SMPolicyControl_Templates.ttcn TS29518_Namf_Communication_Templates.ttcn " +FILES+="TS29503_Nudm_UECM_Templates.ttcn TS29503_Nudm_SDM_Templates.ttcn TS29502_Nsmf_PDUSession_Templates.ttcn TS29512_Npcf_SMPolicyControl_Templates.ttcn TS29518_Namf_Communication_Templates.ttcn " FILES+="NG_NAS_Osmo_Types.ttcn NG_NAS_Osmo_Templates.ttcn NG_NAS_Functions.ttcn " gen_links $DIR $FILES -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43681?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: I3c79ba747886add0ea8e5ea3003364eedf4c43be Gerrit-Change-Number: 43681 Gerrit-PatchSet: 6 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
[XS] Change in osmo-ttcn3-hacks[master]: smf: Pass idx explicitly when registering against the the HTTP Server...
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43700?usp=email ) Change subject: smf: Pass idx explicitly when registering against the the HTTP Server Emulation ...................................................................... smf: Pass idx explicitly when registering against the the HTTP Server Emulation Change-Id: I40ccf951c16d1a0df21ef3b438042c76370aa933 --- M library/HTTP2_Server_Emulation.ttcn M smf/SMF_Session_CT_5G.ttcn 2 files changed, 4 insertions(+), 4 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/HTTP2_Server_Emulation.ttcn b/library/HTTP2_Server_Emulation.ttcn index 528cd94..a31ef87 100644 --- a/library/HTTP2_Server_Emulation.ttcn +++ b/library/HTTP2_Server_Emulation.ttcn @@ -409,9 +409,9 @@ port HTTP2_CONN_PROC_PT HTTP2_CONN_PROC[16]; }; -function f_http2_server_emu_register(integer id := 0) runs on HTTP2_ConnHdlr { - HTTP2_CONN_PROC[id].call(HTTP2EM_register:{}) { - [] HTTP2_CONN_PROC[id].getreply(HTTP2EM_register:{}); +function f_http2_server_emu_register(integer idx := 0) runs on HTTP2_ConnHdlr { + HTTP2_CONN_PROC[idx].call(HTTP2EM_register:{}) { + [] HTTP2_CONN_PROC[idx].getreply(HTTP2EM_register:{}); } } diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index 661b938..f213944 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -47,7 +47,7 @@ function f_handler_init_5G() runs on SMF_Session_CT { /* Create SCP HTTP2 sever, where IUT will send all SBI requests: */ - f_http2_server_emu_register(); + f_http2_server_emu_register(idx := HTTP2_CONN_SCP); } /******************************************** -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43700?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: I40ccf951c16d1a0df21ef3b438042c76370aa933 Gerrit-Change-Number: 43700 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: library/HTTP2: Support ConnHdlr registration based on path match
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43707?usp=email ) Change subject: library/HTTP2: Support ConnHdlr registration based on path match ...................................................................... library/HTTP2: Support ConnHdlr registration based on path match Change-Id: Ia62b07d5ae3d1974b4cad1b19d6bdebe8e252714 --- M library/HTTP2_CodecPort.ttcn M library/HTTP2_Server_Emulation.ttcn 2 files changed, 94 insertions(+), 23 deletions(-) Approvals: pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/library/HTTP2_CodecPort.ttcn b/library/HTTP2_CodecPort.ttcn index d36ff96..c2aea63 100644 --- a/library/HTTP2_CodecPort.ttcn +++ b/library/HTTP2_CodecPort.ttcn @@ -67,7 +67,7 @@ pout.connId := pin.connId; if (lengthof(pin.msg) == lengthof(HTTP2_connection_preface) and pin.msg == HTTP2_connection_preface) { - log(pin.connId, ": Rx HTTP2 preface"); + //log(pin.connId, ": Rx HTTP2 preface"); pout.pl_error_descr := omit; pout.frame := omit; } else { @@ -77,7 +77,7 @@ } else { pout.frame := omit; } - log(pin.connId, ": f_HTTP2_decode_frame(", pin.msg, ") returned ", rc); + //log(pin.connId, ": f_HTTP2_decode_frame(", pin.msg, ") returned ", rc); } } with { extension "prototype(fast)" } diff --git a/library/HTTP2_Server_Emulation.ttcn b/library/HTTP2_Server_Emulation.ttcn index a31ef87..7fb2682 100644 --- a/library/HTTP2_Server_Emulation.ttcn +++ b/library/HTTP2_Server_Emulation.ttcn @@ -26,6 +26,9 @@ import from Native_Functions all; import from Misc_Helpers all; +const integer HTTP2_SERVER_EMU_MAX_NUM_CONNS := 16; +const integer HTTP2_SERVER_EMU_MAX_NUM_CONNHDLR := HTTP2_SERVER_EMU_MAX_NUM_CONNS * 3; + /********************* * HTTP2_Server_Conn ********************/ @@ -72,6 +75,19 @@ integer http2_bind_port }; +type record HTTP2_ConnHdlr_Entry { + HTTP2_ConnHdlr vc_conn, + charstring path_pattern +}; + +private function f_HTTP2_ConnHdlr_Entry_init(inout HTTP2_ConnHdlr_Entry entry) +{ + entry := { + vc_conn := null, + path_pattern := "" + }; +} + type component HTTP2_Server_Emulation_CT { /* Communication with underlying HTTP2 CodecPort */ port HTTP2_CODEC_PT HTTP2; @@ -85,8 +101,8 @@ /* Connection identifier of the server itself */ var IPL4asp_Types.ConnectionId g_self_conn_id := -1; - var HTTP2_Server_Conn conn_table[16]; - var HTTP2_ConnHdlr vc_ConnHdlr_table[16]; + var HTTP2_Server_Conn conn_table[HTTP2_SERVER_EMU_MAX_NUM_CONNS]; + var HTTP2_ConnHdlr_Entry vc_ConnHdlr_table[HTTP2_SERVER_EMU_MAX_NUM_CONNHDLR]; }; private function f_conn_table_init() @@ -97,6 +113,14 @@ } } +private function f_vc_ConnHdlr_table_init() +runs on HTTP2_Server_Emulation_CT { + var integer i; + for (i := 0; i < sizeof(vc_ConnHdlr_table); i := i + 1) { + f_HTTP2_ConnHdlr_Entry_init(vc_ConnHdlr_table[i]); + } +} + private function f_conn_table_find_by_conn_id(IPL4asp_Types.ConnectionId conn_id) runs on HTTP2_Server_Emulation_CT return integer { var integer i; @@ -113,17 +137,36 @@ return f_conn_table_find_by_conn_id(-1); } -private function f_vc_ConnHdlr_table_add(HTTP2_ConnHdlr vc_conn) +private function f_vc_ConnHdlr_table_add(HTTP2_ConnHdlr vc_conn, charstring path_pattern) runs on HTTP2_Server_Emulation_CT { var integer i; for (i := 0; i < sizeof(vc_ConnHdlr_table); i := i + 1) { - if (not isbound(vc_ConnHdlr_table[i])) { - vc_ConnHdlr_table[i] := vc_conn; + if (vc_ConnHdlr_table[i].vc_conn == null) { + vc_ConnHdlr_table[i] := { + vc_conn := vc_conn, + path_pattern := path_pattern + }; return; } } Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("No Space in vc_ConnHdlr_table[i] for ", vc_conn)); + log2str("No Space in vc_ConnHdlr_table[i] for ", + vc_conn, " path_pattern ", path_pattern)); +} + +private function f_vc_ConnHdlr_table_del(HTTP2_ConnHdlr vc_conn, charstring path_pattern) +runs on HTTP2_Server_Emulation_CT { + var integer i; + for (i := 0; i < sizeof(vc_ConnHdlr_table); i := i + 1) { + if (vc_ConnHdlr_table[i].vc_conn == vc_conn and + vc_ConnHdlr_table[i].path_pattern == path_pattern) { + f_HTTP2_ConnHdlr_Entry_init(vc_ConnHdlr_table[i]); + return; + } + } + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("Not found in vc_ConnHdlr_table[i] for ", + vc_conn, " path_pattern ", path_pattern)); } private function f_http2_adapter_getMsgLen(in octetstring pl_stream, @@ -161,6 +204,7 @@ g_http2_cfg := cfg; f_conn_table_init(); + f_vc_ConnHdlr_table_init(); /* Start HTTP2 server */ map(self:HTTP2, system:HTTP2_CODEC_PT); @@ -169,15 +213,28 @@ f_set_tcp_segmentation(); } -/* Forward request to all registered clients */ -private function forward_http2_msg(HTTP2_Msg http2_msg) +/* Forward request to all registered matching clients */ +private function forward_http2_msg(inout HTTP2_Server_Conn conn, HTTP2_Msg http2_msg) runs on HTTP2_Server_Emulation_CT { - + var boolean forwarded := false; for (var integer i := 0; i < sizeof(vc_ConnHdlr_table); i := i + 1) { - if (isbound(vc_ConnHdlr_table[i])) { - CONN.send(http2_msg) to vc_ConnHdlr_table[i]; + if (vc_ConnHdlr_table[i].vc_conn != null) { + var charstring path_pattern := vc_ConnHdlr_table[i].path_pattern; + if (match(http2_msg.hb.pseudo_headers.path, pattern path_pattern)) { + /* log(f_HTTP2_Server_Conn_str(conn), ": '", http2_msg.hb.pseudo_headers.path, + "' matches: ", path_pattern); */ + CONN.send(http2_msg) to vc_ConnHdlr_table[i].vc_conn; + forwarded := true; + } else { + /* log(f_HTTP2_Server_Conn_str(conn), ": '", http2_msg.hb.pseudo_headers.path, + "' didn't match: ", path_pattern); */ + } } } + + if (not forwarded) { + log(f_HTTP2_Server_Conn_str(conn), ": Discarding received HTTP2 msg with no registered match: ", http2_msg); + } } private function f_HTTP2_Server_Conn_tx(inout HTTP2_Server_Conn conn, template (value) HTTP2_Frame http2_frame) @@ -254,7 +311,7 @@ } http2_msg := ts_HTTP2_Msg(conn.conn_id, http2_rx.frame.header_frame.stream_id, hb, omit); - forward_http2_msg(valueof(http2_msg)); + forward_http2_msg(conn, valueof(http2_msg)); return; } case (HTTP2_SERVER_CONN_ST_WAIT_BODY) { @@ -273,7 +330,7 @@ http2_rx.frame.data_frame.stream_id, conn.rx_hb, http2_rx.frame.data_frame); - forward_http2_msg(valueof(http2_msg)); + forward_http2_msg(conn, valueof(http2_msg)); return; } case else { @@ -293,6 +350,7 @@ var HTTP2_Msg http2_msg; var template (value) HTTP2_Frame http2_frame; var integer idx; + var charstring path_pattern; f_init(cfg); @@ -371,10 +429,15 @@ /* Send GOAWAY since we are finished: */ f_HTTP2_Server_Conn_tx(conn_table[idx], ts_HTTP2_Frame_Goaway(last_stream_id, 0 /* NO_ERROR */)); } - [] CONN_PROC.getcall(HTTP2EM_register:{}) -> sender vc_conn { - //log("HTTP2_Server: Register ", vc_conn); - f_vc_ConnHdlr_table_add(vc_conn); - CONN_PROC.reply(HTTP2EM_register:{}) to vc_conn; + [] CONN_PROC.getcall(HTTP2EM_register:{?}) -> param(path_pattern) sender vc_conn { + log("HTTP2_Server: Register ", vc_conn, "path: ", path_pattern); + f_vc_ConnHdlr_table_add(vc_conn, path_pattern); + CONN_PROC.reply(HTTP2EM_register:{path_pattern}) to vc_conn; + } + [] CONN_PROC.getcall(HTTP2EM_unregister:{?}) -> param(path_pattern) sender vc_conn { + log("HTTP2_Server: Unregister ", vc_conn, "path: ", path_pattern); + f_vc_ConnHdlr_table_del(vc_conn, path_pattern); + CONN_PROC.reply(HTTP2EM_unregister:{path_pattern}) to vc_conn; } } } @@ -390,10 +453,12 @@ inout HTTP2_Msg; } with { extension "internal" }; -signature HTTP2EM_register(); +signature HTTP2EM_register(in charstring path_pattern); +signature HTTP2EM_unregister(in charstring path_pattern); type port HTTP2_CONN_PROC_PT procedure { inout HTTP2EM_register; + inout HTTP2EM_unregister; } with { extension "internal" }; @@ -409,9 +474,15 @@ port HTTP2_CONN_PROC_PT HTTP2_CONN_PROC[16]; }; -function f_http2_server_emu_register(integer idx := 0) runs on HTTP2_ConnHdlr { - HTTP2_CONN_PROC[idx].call(HTTP2EM_register:{}) { - [] HTTP2_CONN_PROC[idx].getreply(HTTP2EM_register:{}); +function f_http2_server_emu_register(charstring path_pattern := "?+", integer idx := 0) runs on HTTP2_ConnHdlr { + HTTP2_CONN_PROC[idx].call(HTTP2EM_register:{path_pattern}) { + [] HTTP2_CONN_PROC[idx].getreply(HTTP2EM_register:{path_pattern}); + } +} + +function f_http2_server_emu_unregister(charstring path_pattern := "?+", integer idx := 0) runs on HTTP2_ConnHdlr { + HTTP2_CONN_PROC[idx].call(HTTP2EM_unregister:{path_pattern}) { + [] HTTP2_CONN_PROC[idx].getreply(HTTP2EM_unregister:{path_pattern}); } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43707?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: Ia62b07d5ae3d1974b4cad1b19d6bdebe8e252714 Gerrit-Change-Number: 43707 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: library/HTTP2: Use same comp_context during lifespan of a conn
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43708?usp=email ) Change subject: library/HTTP2: Use same comp_context during lifespan of a conn ...................................................................... library/HTTP2: Use same comp_context during lifespan of a conn titan.ProtocolModules.HTTP2/doc/HTTP2_Description.adoc mandates it: """ A header compression context is represented by the `HTTP2_comp_context` record. Separate context should be maintained for sending and receiving. """ """ Encode/Decode every header block with the functions in the exactly the same order as the header blocks are sent or received in order to maintain the header compression context """ This indeed fixes some problems when IUT decides to reuse an existing HTTP2 connection to send an extra message. Change-Id: If438832ae647266f7eafdd1ae1d3f7766fb0689b --- M library/HTTP2_Adapter.ttcn M library/HTTP2_Functions.ttcn M library/HTTP2_Server_Emulation.ttcn 3 files changed, 86 insertions(+), 39 deletions(-) Approvals: pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/library/HTTP2_Adapter.ttcn b/library/HTTP2_Adapter.ttcn index 4156395..7ce7eef 100644 --- a/library/HTTP2_Adapter.ttcn +++ b/library/HTTP2_Adapter.ttcn @@ -19,6 +19,7 @@ import from IPL4asp_PortType all; import from Socket_API_Definitions all; +import from HTTP2_Types all; import from HTTP2_Templates all; import from HTTP2_Functions all; import from HTTP2_Msg all; @@ -35,6 +36,10 @@ /* Connection identifier of the client / server itself */ var IPL4asp_Types.ConnectionId g_self_conn_id[HTTP2_MAX_NUM_CLIENTS]; + + /* Header block compress enc/dec: */ + var HTTP2_comp_context g_http2_ctx_dec[HTTP2_MAX_NUM_CLIENTS]; + var HTTP2_comp_context g_http2_ctx_enc[HTTP2_MAX_NUM_CLIENTS]; }; type record HTTP2_Adapter_Params { @@ -94,6 +99,35 @@ return -1; } +private function f_http2_adapter_header_block_encode(HTTP2_header_block hb, + integer idx := 0) +runs on HTTP2_CT return octetstring { + var octetstring data := ''O; + var integer rc; + + rc := HTTP2_comp_context_encode(g_http2_ctx_enc[idx], hb, data); + if (rc != 0) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("HTTP2_comp_context_encode(", hb, ") returned ", rc)); + } + return data; +} + +private function f_http2_adapter_header_block_decode(octetstring header_block_fragment, + integer idx := 0) +runs on HTTP2_CT return HTTP2_header_block { + var HTTP2_header_block pl_hblock; + var integer rc; + + rc := HTTP2_comp_context_decode(g_http2_ctx_dec[idx], pl_hblock, header_block_fragment); + if (rc != 0) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("HTTP2_comp_context_decode(", header_block_fragment, ") returned ", rc)); + } + + return pl_hblock; +} + /* Function to use to connect as client to a remote IPA Server */ function f_http2_adapter_connect(charstring remote_host, IPL4asp_Types.PortNumber remote_port, charstring local_host, IPL4asp_Types.PortNumber local_port := 0, boolean use_ssl := false, integer idx := 0) @@ -108,6 +142,8 @@ } g_self_conn_id[idx] := res.connId; g_http2_pars[idx] := valueof(ts_HTTP2_Adapter_Params(idx, remote_host, remote_port, local_host, local_port, use_ssl)); + g_http2_ctx_dec[idx] := HTTP2_comp_context_init(); + g_http2_ctx_enc[idx] := HTTP2_comp_context_init(); f_set_tcp_segmentation(idx := idx); HTTP2[idx].send(ts_HTTP2_Send_magic(g_self_conn_id[idx])); @@ -133,6 +169,8 @@ var IPL4asp_Types.Result res; res := HTTP2_CodecPort_CtrlFunct.f_IPL4_close(HTTP2[idx], g_self_conn_id[idx], {tcp := {}}); g_self_conn_id[idx] := -1; + HTTP2_comp_context_free(g_http2_ctx_dec[idx]); + HTTP2_comp_context_free(g_http2_ctx_enc[idx]); } private function f_http2_adapter_send_frame(template (value) HTTP2_Frame http2_frame, @@ -152,7 +190,7 @@ /* Send Header: */ f_HTTP2_Msg_append_hdr_content_length(msg); - hdr_enc := f_HTTP2_header_block_encode(msg.hb); + hdr_enc := f_http2_adapter_header_block_encode(msg.hb, idx := idx); http2_frame := ts_HTTP2_Frame_Header(msg.stream_id, end_stream_flag := not ispresent(msg.body), end_header_flag := true, @@ -193,7 +231,8 @@ var template (omit) HTTP2_Data_frame body := omit; var HTTP2_header_block hb; - hb := f_HTTP2_header_block_decode(rx_http2_frame.header_frame.header_block_fragment); + hb := f_http2_adapter_header_block_decode(rx_http2_frame.header_frame.header_block_fragment, + idx := idx); if (not rx_http2_frame.header_frame.end_stream_flag) { /* Expect body */ var HTTP2_Frame body_frame; as_http2_adapter_receive_frame(body_frame, HTTP2_Frame:{ data_frame := http2_exp_msg.body }); diff --git a/library/HTTP2_Functions.ttcn b/library/HTTP2_Functions.ttcn index 2b8f16f..307938b 100644 --- a/library/HTTP2_Functions.ttcn +++ b/library/HTTP2_Functions.ttcn @@ -7,40 +7,6 @@ import from HTTP2_Types all; import from HTTP2_Templates all; -function f_HTTP2_header_block_encode(HTTP2_header_block hb) return octetstring -{ - var HTTP2_comp_context ctx; - var octetstring data := ''O; - var integer rc; - - ctx := HTTP2_comp_context_init(); - rc := HTTP2_comp_context_encode(ctx, hb, data); - HTTP2_comp_context_free(ctx); - if (rc != 0) { - Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("HTTP2_comp_context_encode returned ", rc)); - } - return data; -} - -function f_HTTP2_header_block_decode(octetstring header_block_fragment) -return HTTP2_header_block -{ - var HTTP2_comp_context ctx; - var HTTP2_header_block pl_hblock; - var integer rc; - - ctx := HTTP2_comp_context_init(); - rc := HTTP2_comp_context_decode(ctx, pl_hblock, header_block_fragment); - HTTP2_comp_context_free(ctx); - if (rc != 0) { - Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("HTTP2_comp_context_decode returned ", rc)); - } - - return pl_hblock; -} - function f_HTTP2_header_list_find_header(HTTP2_header_list headers, charstring header_name) return template (omit) charstring { for (var integer i := 0; i < lengthof(headers); i := i + 1) { diff --git a/library/HTTP2_Server_Emulation.ttcn b/library/HTTP2_Server_Emulation.ttcn index 7fb2682..3d00a46 100644 --- a/library/HTTP2_Server_Emulation.ttcn +++ b/library/HTTP2_Server_Emulation.ttcn @@ -44,6 +44,8 @@ type record HTTP2_Server_Conn { IPL4asp_Types.ConnectionId conn_id, HTTP2_Server_Conn_State state, + HTTP2_comp_context ctx_dec, + HTTP2_comp_context ctx_enc, HTTP2_header_block rx_hb optional /* Contains received header while in HTTP2_SERVER_CONN_ST_WAIT_BODY */ } @@ -52,10 +54,19 @@ conn := { conn_id := -1, state := HTTP2_SERVER_CONN_ST_UNUSED, + ctx_dec := HTTP2_comp_context_init(), + ctx_enc := HTTP2_comp_context_init(), rx_hb := omit }; } +private function f_HTTP2_Server_Conn_release(inout HTTP2_Server_Conn conn) +{ + HTTP2_comp_context_free(conn.ctx_dec); + HTTP2_comp_context_free(conn.ctx_enc); + f_HTTP2_Server_Conn_init(conn); +} + private function f_HTTP2_Server_Conn_str(in HTTP2_Server_Conn conn) return charstring { return "HTTP2_Server_Conn(" & int2str(conn.conn_id) & "," & log2str(conn.state) & ")"; } @@ -66,6 +77,37 @@ conn.state := state } +private function f_HTTP2_Server_Conn_header_block_decode(inout HTTP2_Server_Conn conn, + octetstring header_block_fragment) +return HTTP2_header_block { + var HTTP2_header_block pl_hblock; + var integer rc; + + rc := HTTP2_comp_context_decode(conn.ctx_dec, pl_hblock, header_block_fragment); + if (rc != 0) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str(f_HTTP2_Server_Conn_str(conn), + ": HTTP2_comp_context_decode(", header_block_fragment, ") returned ", rc)); + } + + return pl_hblock; +} + +private function f_HTTP2_Server_Conn_header_block_encode(inout HTTP2_Server_Conn conn, + HTTP2_header_block hb) +return octetstring { + var octetstring data := ''O; + var integer rc; + + rc := HTTP2_comp_context_encode(conn.ctx_enc, hb, data); + if (rc != 0) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str(f_HTTP2_Server_Conn_str(conn), + ": HTTP2_comp_context_encode(", hb, ") returned ", rc)); + } + return data; +} + /*********************************************************************** * Main Emulation Component (HTTP2 Server) ***********************************************************************/ @@ -301,7 +343,7 @@ } var HTTP2_header_block hb; - hb := f_HTTP2_header_block_decode(http2_rx.frame.header_frame.header_block_fragment); + hb := f_HTTP2_Server_Conn_header_block_decode(conn, http2_rx.frame.header_frame.header_block_fragment); /* TODO: store header in Conn or send to ConNHdlr? */ log(f_HTTP2_Server_Conn_str(conn), ": Decompressed header: ", hb); if (not http2_rx.frame.header_frame.end_stream_flag) { @@ -384,7 +426,7 @@ asp_evt.connClosed.connId)); } // TODO: Notify/Remove ConnHdlrs? - f_HTTP2_Server_Conn_init(conn_table[idx]); + f_HTTP2_Server_Conn_release(conn_table[idx]); } [] HTTP2.receive(HTTP2_Recv:?) -> value http2_rx { @@ -411,7 +453,7 @@ /* Send Header: */ f_HTTP2_Msg_append_hdr_content_length(http2_msg); - var octetstring hdr_enc := f_HTTP2_header_block_encode(http2_msg.hb); + var octetstring hdr_enc := f_HTTP2_Server_Conn_header_block_encode(conn_table[idx], http2_msg.hb); http2_frame := ts_HTTP2_Frame_Header(http2_msg.stream_id, end_stream_flag := not ispresent(http2_msg.body), end_header_flag := true, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43708?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: If438832ae647266f7eafdd1ae1d3f7766fb0689b Gerrit-Change-Number: 43708 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: HTTP2_Server_Emulation: Fix wrong value printed in log
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43711?usp=email ) Change subject: HTTP2_Server_Emulation: Fix wrong value printed in log ...................................................................... HTTP2_Server_Emulation: Fix wrong value printed in log Change-Id: I3f66a3dd2dc529e289abc88a7e3eb4fb1e9385d9 --- M library/HTTP2_Server_Emulation.ttcn 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Jenkins Builder: Verified osmith: Looks good to me, approved diff --git a/library/HTTP2_Server_Emulation.ttcn b/library/HTTP2_Server_Emulation.ttcn index 3d00a46..13a32a3 100644 --- a/library/HTTP2_Server_Emulation.ttcn +++ b/library/HTTP2_Server_Emulation.ttcn @@ -435,7 +435,7 @@ if (idx < 0) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Rx HTTP2_Recv ", http2_rx, " for unknown conn_id ", - asp_evt.connClosed.connId)); + http2_rx.connId)); } f_HTTP2_Server_Conn_rx_http2(conn_table[idx], http2_rx); } @@ -447,7 +447,7 @@ idx := f_conn_table_find_by_conn_id(http2_msg.conn_id); if (idx < 0) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("Rx HTTP2_Msg ", http2_rx, " for unknown conn_id ", + log2str("Rx HTTP2_Msg ", http2_msg, " for unknown conn_id ", http2_msg.conn_id)); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43711?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: I3f66a3dd2dc529e289abc88a7e3eb4fb1e9385d9 Gerrit-Change-Number: 43711 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: smf: Use different IP address in AMF and SMF
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43709?usp=email ) Change subject: smf: Use different IP address in AMF and SMF ...................................................................... smf: Use different IP address in AMF and SMF Don't tell the IUT (SMF) that the AMF is in the same IP address, that's confusing, specially since we may announce the same tcp port where the SMF itself is listening. Change-Id: If33d751f2af351947cc45f3df9f8cfa6e6e444d2 --- M smf/SMF_Tests.ttcn 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 5b726f0..3114803 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -61,7 +61,7 @@ /* IP address at which we listen for HTTP2/SBI to emulate a AMF in ttcn3 */ - charstring mp_amf_local_ip := "127.0.0.4"; + charstring mp_amf_local_ip := "127.0.0.5"; charstring mp_scp_local_ip := "127.0.1.10"; integer mp_scp_local_port := 7777; } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43709?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: If33d751f2af351947cc45f3df9f8cfa6e6e444d2 Gerrit-Change-Number: 43709 Gerrit-PatchSet: 5 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: HTTP2_Server_Emulation: Fix one_req_per_conn and make it configurable
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43713?usp=email ) Change subject: HTTP2_Server_Emulation: Fix one_req_per_conn and make it configurable ...................................................................... HTTP2_Server_Emulation: Fix one_req_per_conn and make it configurable The GOAWAY must be sent upon Rx time, otherwise a quick client could sent several request headers on different streams before we answered the first one, and then those subsequent request would end up going up the stack. When the ConnHdlr sent a response down the stack, the tcp conn could already have been closed by the HTTP2 client due to receiving the GOAWAY. Fix several state transitions while at it, and make the one_req_per_conn (tx GOAWAY) configurable, supporting also receiving multiple (non-concurrent, sequential stream) requests when one_req_per_conn:=false. From the ConnHdlr PoV, setting one_req_per_conn true or false is transparent, since it simply receives HTTP2_Msg filtered by HTTP2_Server_Emulation. Change-Id: I133eac0f41cfe119531bb3a60c5f0e5cd184abc5 --- M library/HTTP2_Server_Emulation.ttcn M smf/SMF_Tests.ttcn 2 files changed, 45 insertions(+), 13 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve diff --git a/library/HTTP2_Server_Emulation.ttcn b/library/HTTP2_Server_Emulation.ttcn index 13a32a3..96eb8dc 100644 --- a/library/HTTP2_Server_Emulation.ttcn +++ b/library/HTTP2_Server_Emulation.ttcn @@ -44,6 +44,8 @@ type record HTTP2_Server_Conn { IPL4asp_Types.ConnectionId conn_id, HTTP2_Server_Conn_State state, + integer last_stream_id, + boolean goaway_sent, HTTP2_comp_context ctx_dec, HTTP2_comp_context ctx_enc, HTTP2_header_block rx_hb optional /* Contains received header while in HTTP2_SERVER_CONN_ST_WAIT_BODY */ @@ -54,6 +56,9 @@ conn := { conn_id := -1, state := HTTP2_SERVER_CONN_ST_UNUSED, + /* rfc7540 6.8: "The last stream identifier can be set to 0 if no streams were processed." */ + last_stream_id := 0, + goaway_sent := false, ctx_dec := HTTP2_comp_context_init(), ctx_enc := HTTP2_comp_context_init(), rx_hb := omit @@ -114,7 +119,9 @@ type record Http2ServerEmulationCfg { charstring http2_bind_ip, - integer http2_bind_port + integer http2_bind_port, + /* If enabled, GOAWAY will be sent after first full request is received. */ + boolean one_req_per_conn }; type record HTTP2_ConnHdlr_Entry { @@ -286,6 +293,24 @@ HTTP2.send(http2_tx); } +/* Handle and forward a full request up the stack: */ +private function f_HTTP2_Server_Conn_rx_http2_msg(inout HTTP2_Server_Conn conn, HTTP2_Msg http2_msg) +runs on HTTP2_Server_Emulation_CT { + if (not conn.goaway_sent) { + conn.last_stream_id := http2_msg.stream_id; + if (g_http2_cfg.one_req_per_conn) { + /* Send GOAWAY to avoid receiving more requests on this conn: */ + f_HTTP2_Server_Conn_tx(conn, ts_HTTP2_Frame_Goaway(conn.last_stream_id, 0 /* NO_ERROR */)); + conn.goaway_sent := true; + } + } else if (http2_msg.stream_id > conn.last_stream_id) { + log(f_HTTP2_Server_Conn_str(conn), ": Ignoring received msg since we already sent GOAWAY(", + conn.last_stream_id, "): ", http2_msg); + return; + } + forward_http2_msg(conn, valueof(http2_msg)); +} + private function f_HTTP2_Server_Conn_rx_http2(inout HTTP2_Server_Conn conn, HTTP2_Recv http2_rx) runs on HTTP2_Server_Emulation_CT { var template (value) HTTP2_Msg http2_msg; @@ -338,22 +363,20 @@ log2str(f_HTTP2_Server_Conn_str(conn), ": Rx unexpected: ", http2_rx)); } if (not match(http2_rx.frame, tr_HTTP2_Frame_Header())) { - - return; /* TODO: we should only allow WINDOW_UPDATE and SETTINGS here... */ + return; } var HTTP2_header_block hb; hb := f_HTTP2_Server_Conn_header_block_decode(conn, http2_rx.frame.header_frame.header_block_fragment); - /* TODO: store header in Conn or send to ConNHdlr? */ log(f_HTTP2_Server_Conn_str(conn), ": Decompressed header: ", hb); + if (not http2_rx.frame.header_frame.end_stream_flag) { conn.rx_hb := hb; f_HTTP2_Server_Conn_st_change(conn, HTTP2_SERVER_CONN_ST_WAIT_BODY); return; } - http2_msg := ts_HTTP2_Msg(conn.conn_id, http2_rx.frame.header_frame.stream_id, hb, omit); - forward_http2_msg(conn, valueof(http2_msg)); + f_HTTP2_Server_Conn_rx_http2_msg(conn, valueof(http2_msg)); return; } case (HTTP2_SERVER_CONN_ST_WAIT_BODY) { @@ -362,17 +385,28 @@ log2str(f_HTTP2_Server_Conn_str(conn), ": Rx unexpected: ", http2_rx)); } if (not match(http2_rx.frame, tr_HTTP2_Frame_Data())) { - return; /* TODO: we should only allow WINDOW_UPDATE and SETTINGS here... */ + if (match(http2_rx.frame, tr_HTTP2_Frame_Header())) { + log(f_HTTP2_Server_Conn_str(conn), + ": FIXME: Multiple concurrent active streams not supported! requires updating HTTP2_Server_Conn to use a list of streams!"); + setverdict(fail); + return; + } + return; } if (not http2_rx.frame.data_frame.end_stream_flag) { - log("FIXME: Multiple DATA blocks not supported! requires updating HTTP2_Msg.body to be a list!"); + log(f_HTTP2_Server_Conn_str(conn), + ": FIXME: Multiple DATA blocks not supported! requires updating HTTP2_Msg.body to be a list!"); setverdict(fail); + return; + } else { + f_HTTP2_Server_Conn_st_change(conn, HTTP2_SERVER_CONN_ST_WAIT_HEADER); } + http2_msg := ts_HTTP2_Msg(conn.conn_id, http2_rx.frame.data_frame.stream_id, conn.rx_hb, http2_rx.frame.data_frame); - forward_http2_msg(conn, valueof(http2_msg)); + f_HTTP2_Server_Conn_rx_http2_msg(conn, valueof(http2_msg)); return; } case else { @@ -442,7 +476,6 @@ [] CONN.receive(HTTP2_Msg:?) -> value http2_msg sender vc_conn { //log("HTTP2_Server: Tx ", http2_msg); - var integer last_stream_id := http2_msg.stream_id; idx := f_conn_table_find_by_conn_id(http2_msg.conn_id); if (idx < 0) { @@ -468,8 +501,6 @@ http2_msg.body.padding); f_HTTP2_Server_Conn_tx(conn_table[idx], http2_frame); } - /* Send GOAWAY since we are finished: */ - f_HTTP2_Server_Conn_tx(conn_table[idx], ts_HTTP2_Frame_Goaway(last_stream_id, 0 /* NO_ERROR */)); } [] CONN_PROC.getcall(HTTP2EM_register:{?}) -> param(path_pattern) sender vc_conn { log("HTTP2_Server: Register ", vc_conn, "path: ", path_pattern); diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 97afed9..5b726f0 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -246,7 +246,8 @@ var Http2ServerEmulationCfg http2_srv_cfg := { http2_bind_ip := mp_scp_local_ip, - http2_bind_port := mp_scp_local_port + http2_bind_port := mp_scp_local_port, + one_req_per_conn := false }; vc_HTTP2_SRV_SCP := HTTP2_Server_Emulation_CT.create(id) alive; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43713?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: I133eac0f41cfe119531bb3a60c5f0e5cd184abc5 Gerrit-Change-Number: 43713 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: smf: Improvements to set up multiple sessions
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43710?usp=email ) Change subject: smf: Improvements to set up multiple sessions ...................................................................... smf: Improvements to set up multiple sessions Change-Id: Ib483f71fc51d6947de799449ddc40d8825aeba8f --- M smf/SMF_Session_CT.ttcn M smf/SMF_Tests.ttcn 2 files changed, 75 insertions(+), 66 deletions(-) Approvals: pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/smf/SMF_Session_CT.ttcn b/smf/SMF_Session_CT.ttcn index c65ef32..e7a78fc 100644 --- a/smf/SMF_Session_CT.ttcn +++ b/smf/SMF_Session_CT.ttcn @@ -35,6 +35,10 @@ import from SMF_Session_CT_5G all; import from SMF_Tests all; +modulepar { + HEX15n mp_imsi := '999700000000000'H; +} + const OCT8 c_SEID0 := '0000000000000000'O; /* per-session component; we typically have 1..N per testcase */ @@ -91,15 +95,15 @@ FTeids access } template (value) Gtp1uParameters -t_Gtp1uParameters_default(uint32_t idx := 1, +t_Gtp1uParameters_default(uint32_t idx := 0, charstring mp_pfcp_ip_local) := { core := { - local := ts_PFCP_F_TEID_ipv4(int2oct(idx + 8192, 4), + local := ts_PFCP_F_TEID_ipv4(int2oct(idx + 1 + 8192, 4), f_inet_addr(mp_pfcp_ip_local)), remote := omit }, access := { - local := ts_PFCP_F_TEID_ipv4(int2oct(idx, 4), + local := ts_PFCP_F_TEID_ipv4(int2oct(idx + 1, 4), f_inet_addr(mp_pfcp_ip_local)), remote := omit } @@ -138,11 +142,11 @@ } -function f_t_PfcpParams(uint32_t idx := 1, +function f_t_PfcpParams(uint32_t idx := 0, charstring pfcp_local_addr := mp_pfcp_ip_local, template (value) Node_ID local_node_id := ts_PFCP_Node_ID_ipv4(f_inet_addr(mp_pfcp_ip_local))) return PfcpParameters { - var uint64_t local_f_seid := idx; + var uint64_t local_f_seid := idx + 1; var template (value) PfcpParameters pfcp_pars := { pfcp_local_addr := pfcp_local_addr, local_node_id := local_node_id, @@ -219,58 +223,66 @@ SessionPars_NGNAS nas } -template (value) SessionPars -t_SessionPars(hexstring imsi, - template (omit) hexstring msisdn := '1234'H, - GTP2C_RAT_Type rat_type := GTP2C_RAT_EUTRAN, - charstring apn := "internet", - boolean selection_mode := false, - GTP2C_PDN_Type pdn_type := GTP2C_PDN_IPv4, - template (value) PfcpParameters pfcp_pars := f_t_PfcpParams(1)) := { - imsi := imsi, - imsi_str := f_dec_TBCD(imsi_hex2oct(imsi)), - msisdn := msisdn, - rat_type := rat_type, - apn := apn, - selection_mode := selection_mode, - pdn_type := pdn_type, - pco := omit, - epco := omit, - teic_local := '00000000'O, - teic_remote := omit, - bearer := { - ebi := 5, - teid_local := omit, - teid_remote := omit - }, - gy := { - validity_time := 0, - cca_res_code := DIAMETER_SUCCESS - }, - pfcp_pars := pfcp_pars, - namf := { - pdu_sess_id := 1, - ran_gtpu_ip := mp_amf_local_ip, - ran_gtpu_teid := int2oct(1, 4), - cn_gtpu_ip := omit, - cn_gtpu_teid := omit, - ue_ip4 := omit, - ue_ip6 := omit, - ipv6_interface_id := omit - }, - npcf := { - sm_policy_id := f_dec_TBCD(imsi_hex2oct(imsi)) /* imsi_str */ & "-" & int2str(1) - }, - nsmf := { - smContextRef := omit - }, - nudm := { - smf_subscription_id := int2str(1) - }, - nas := { - pti := '00'O, - qos_rules := omit +function f_SessionPars(integer idx := 0, + template (omit) hexstring msisdn := '1234'H, + GTP2C_RAT_Type rat_type := GTP2C_RAT_EUTRAN, + charstring apn := "internet", + boolean selection_mode := false, + GTP2C_PDN_Type pdn_type := GTP2C_PDN_IPv4, + template (omit) PfcpParameters pfcp_pars := omit) +return SessionPars { + var hexstring imsi := f_concat_pad(lengthof(mp_imsi), substr(mp_imsi, 0, lengthof(mp_imsi) - 6), idx); + var charstring imsi_str := f_dec_TBCD(imsi_hex2oct(imsi)); + if (not isvalue(pfcp_pars)) { + pfcp_pars := f_t_PfcpParams(idx := idx); } + var template (value) SessionPars pars := { + imsi := imsi, + imsi_str := imsi_str, + msisdn := msisdn, + rat_type := rat_type, + apn := apn, + selection_mode := selection_mode, + pdn_type := pdn_type, + pco := omit, + epco := omit, + teic_local := '00000000'O, + teic_remote := omit, + bearer := { + ebi := 5, + teid_local := omit, + teid_remote := omit + }, + gy := { + validity_time := 0, + cca_res_code := DIAMETER_SUCCESS + }, + pfcp_pars := pfcp_pars, + namf := { + pdu_sess_id := idx + 1, + ran_gtpu_ip := mp_amf_local_ip, + ran_gtpu_teid := int2oct(idx + 1, 4), + cn_gtpu_ip := omit, + cn_gtpu_teid := omit, + ue_ip4 := omit, + ue_ip6 := omit, + ipv6_interface_id := omit + }, + npcf := { + sm_policy_id := imsi_str & "-" & int2str(idx + 1) + }, + nsmf := { + smContextRef := omit + }, + nudm := { + smf_subscription_id := int2str(idx + 1) + }, + nas := { + pti := '00'O, + qos_rules := omit + } + } + return valueof(pars); } diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 3114803..32af169 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -342,7 +342,7 @@ } testcase TC_createSession_deleteSession() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H)); + var SessionPars pars := f_SessionPars(0); f_init(); vc_conn := f_start_handler(refers(f_TC_createSession_deleteSession), pars); vc_conn.done; @@ -356,7 +356,7 @@ } testcase TC_deleteSession_unknown() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H)); + var SessionPars pars := f_SessionPars(1); f_init(); vc_conn := f_start_handler(refers(f_TC_deleteSession_unknown), pars); vc_conn.done; @@ -409,7 +409,7 @@ } testcase TC_gy_charging_cc_time() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H)); + var SessionPars pars := f_SessionPars(2); pars.gy.validity_time := 3; /* Grant access for 3 seconds, needs to be re-validated afterwards */ f_init(); vc_conn := f_start_handler(refers(f_TC_gy_charging_cc_time), pars); @@ -446,7 +446,7 @@ } testcase TC_gy_ccr_update_rejected() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H)); + var SessionPars pars := f_SessionPars(3); pars.gy.validity_time := 3; /* Grant access for 3 seconds, needs to be re-validated afterwards */ f_init(); vc_conn := f_start_handler(refers(f_TC_gy_ccr_update_rejected), pars); @@ -462,8 +462,7 @@ } testcase TC_s2b_createSession_v4_noapco() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H, - rat_type := GTP2C_RAT_WLAN)); + var SessionPars pars := f_SessionPars(4, rat_type := GTP2C_RAT_WLAN); f_init(); vc_conn := f_start_handler(refers(f_TC_s2b_createSession_v4_noapco), pars); vc_conn.done; @@ -482,8 +481,7 @@ } testcase TC_s2b_createSession_v4_apco() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H, - rat_type := GTP2C_RAT_WLAN)); + var SessionPars pars := f_SessionPars(5, rat_type := GTP2C_RAT_WLAN); f_init(); vc_conn := f_start_handler(refers(f_TC_s2b_createSession_v4_apco), pars); vc_conn.done; @@ -497,8 +495,7 @@ } testcase TC_n11_createSession_deleteSession() runs on SMF_Test_CT { var SMF_Session_CT vc_conn; - var SessionPars pars := valueof(t_SessionPars('001010123456789'H, - rat_type := GTP2C_RAT_NR)); + var SessionPars pars := f_SessionPars(6, rat_type := GTP2C_RAT_NR); f_init(); vc_conn := f_start_handler(refers(f_TC_n11_createSession_deleteSession), pars); vc_conn.done; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43710?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: Ib483f71fc51d6947de799449ddc40d8825aeba8f Gerrit-Change-Number: 43710 Gerrit-PatchSet: 5 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: smf: Support concurrent sessions
by pespin 25 Sep '26

25 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43714?usp=email ) Change subject: smf: Support concurrent sessions ...................................................................... smf: Support concurrent sessions Change-Id: I10157c936162ea001b81c054041fb9325a0e5d96 --- M library/HTTP2_Server_Emulation.ttcn M smf/SMF_Session_CT.ttcn M smf/SMF_Session_CT_4G.ttcn M smf/SMF_Session_CT_5G.ttcn M smf/SMF_Tests.ttcn M smf/expected-results.xml M smf/open5gs-smf.yaml 7 files changed, 51 insertions(+), 5 deletions(-) Approvals: osmith: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/HTTP2_Server_Emulation.ttcn b/library/HTTP2_Server_Emulation.ttcn index 96eb8dc..5b558bd 100644 --- a/library/HTTP2_Server_Emulation.ttcn +++ b/library/HTTP2_Server_Emulation.ttcn @@ -26,7 +26,7 @@ import from Native_Functions all; import from Misc_Helpers all; -const integer HTTP2_SERVER_EMU_MAX_NUM_CONNS := 16; +const integer HTTP2_SERVER_EMU_MAX_NUM_CONNS := 250; const integer HTTP2_SERVER_EMU_MAX_NUM_CONNHDLR := HTTP2_SERVER_EMU_MAX_NUM_CONNS * 3; /********************* diff --git a/smf/SMF_Session_CT.ttcn b/smf/SMF_Session_CT.ttcn index e7a78fc..e581251 100644 --- a/smf/SMF_Session_CT.ttcn +++ b/smf/SMF_Session_CT.ttcn @@ -296,6 +296,7 @@ f_handler_init_5G(); fn.apply(); + f_handler_cleanup_5G(); } /******* diff --git a/smf/SMF_Session_CT_4G.ttcn b/smf/SMF_Session_CT_4G.ttcn index 06a7e37..d041e19 100644 --- a/smf/SMF_Session_CT_4G.ttcn +++ b/smf/SMF_Session_CT_4G.ttcn @@ -225,7 +225,7 @@ * so that the PFCPEM component cannot route them unambiguously. This is why we * need to ensure that only one ConnHdlr is triggering PFCP session establishment * at the given moment of time. */ - f_Mutex_lock(__BFILE__, __LINE__); + f_Mutex_lock(__BFILE__, __LINE__, Tval := 30.0); /* Subscribe for PFCP Session Establishment Request PDU(s), which are * expected to have SEID set to 0, as per 3GPP TS 29.244, section 7.2.2.4.2. */ f_PFCPEM_subscribe_seid(c_SEID0); diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index f213944..0f01549 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -44,10 +44,24 @@ /* Index in SMF_Session_CT inherited HTTP2_ConnHdlr ports HTTP2_CONN[] and HTTP2_CONN_PROC[] */ const integer HTTP2_CONN_SCP := 0; +/* These are a preset of path matches which can be applied through the entire lifecycle of the session: */ +function f_http2_server_path_match() +runs on SMF_Session_CT return charstring { + var charstring imsi_match := "*imsi-" & g_pars.imsi_str & "*"; + var charstring sm_policy_id_match := valueof(ts_Npcf_SMPolicyControl_path_individual_sm_policy(g_pars.npcf.sm_policy_id)) & "/*"; + var charstring path_match := "(" & imsi_match & ")|(" & sm_policy_id_match & ")"; + return path_match; +} + function f_handler_init_5G() runs on SMF_Session_CT { - /* Create SCP HTTP2 sever, where IUT will send all SBI requests: */ - f_http2_server_emu_register(idx := HTTP2_CONN_SCP); + /* Register SCP HTTP2 sever, where IUT will send all SBI requests: */ + f_http2_server_emu_register(f_http2_server_path_match(), idx := HTTP2_CONN_SCP); +} + +function f_handler_cleanup_5G() +runs on SMF_Session_CT { + f_http2_server_emu_unregister(f_http2_server_path_match(), idx := HTTP2_CONN_SCP); } /******************************************** @@ -206,13 +220,17 @@ * so that the PFCPEM component cannot route them unambiguously. This is why we * need to ensure that only one ConnHdlr is triggering PFCP session establishment * at the given moment of time. */ - f_Mutex_lock(__BFILE__, __LINE__); + f_Mutex_lock(__BFILE__, __LINE__, Tval := 30.0); /* Subscribe for PFCP Session Establishment Request PDU(s), which are * expected to have SEID set to 0, as per 3GPP TS 29.244, section 7.2.2.4.2. */ f_PFCPEM_subscribe_seid(c_SEID0); f_http2_adapter_send(http2_tx); + /* PCF: register to rx generic path. We take advantage of the fact that + * we are inside a mutual exclusion zone, so only one session can be here at a time. */ + f_http2_server_emu_register(Npcf_SMPolicyControl_path_sm_policies, idx := HTTP2_CONN_SCP); + /* Expect UDM to receive GET sm-data: */ as_nudm_sdm_get_sm_data(); /* Expect UDM to receive POST sdm-subscriptions: */ @@ -230,11 +248,15 @@ /* Store obtained smContextRef:*/ var charstring created_location := valueof(f_HTTP2_header_list_find_header(http2_rx.hb.headers, c_HTTP2_HDR_location)); g_pars.nsmf.smContextRef := regexp(created_location, Nsmf_uri_prefix & Nsmf_PDUSession_path_sm_contexts & "/(?+)", 0); + /* Prepare expect for the smContextRef: */ + f_http2_server_emu_register(valueof(ts_Nsmf_PDUSession_path_sm_contexts(g_pars.nsmf.smContextRef)), + idx := HTTP2_CONN_SCP); /* Close HTTP2 conn: */ f_http2_adapter_close(idx := http2_idx); /* Expect PCF to receive POST sm-policies: */ as_npcf_smpolicycontrol_post_sm_policies(); + f_http2_server_emu_unregister(Npcf_SMPolicyControl_path_sm_policies, idx := HTTP2_CONN_SCP); /* Expect PFCP Session Establishment Request. */ as_pfcp_sess_est_req(); @@ -364,6 +386,8 @@ /* Successful answer with no content: */ as_http2_adapter_receive(http2_rx, tr_HTTP2_Msg_204_No_Content(), idx := http2_idx); + f_http2_server_emu_unregister(valueof(ts_Nsmf_PDUSession_path_sm_contexts(g_pars.nsmf.smContextRef)), + idx := HTTP2_CONN_SCP); f_http2_adapter_close(idx := http2_idx); setverdict(pass); } diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 32af169..1c9cf5a 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -501,6 +501,22 @@ vc_conn.done; } +testcase TC_n11_createSession_deleteSession_250() runs on SMF_Test_CT { + var SMF_Session_CT vc_conn[250]; + var integer i; + + f_init(); + + for (i := 0; i < sizeof(vc_conn); i := i + 1) { + var SessionPars pars := f_SessionPars(idx := i); + vc_conn[i] := f_start_handler(refers(f_TC_n11_createSession_deleteSession), pars); + } + + for (i := 0; i < sizeof(vc_conn); i := i + 1) { + vc_conn[i].done; + } +} + control { execute( TC_tx_echo() ); execute( TC_createSession_deleteSession() ); @@ -511,6 +527,8 @@ execute( TC_s2b_createSession_v4_apco() ); execute( TC_n11_createSession_deleteSession() ); + + execute( TC_n11_createSession_deleteSession_250() ); } diff --git a/smf/expected-results.xml b/smf/expected-results.xml index a167103..c8f6931 100644 --- a/smf/expected-results.xml +++ b/smf/expected-results.xml @@ -8,4 +8,5 @@ <testcase classname='SMF_Tests' name='TC_s2b_createSession_v4_noapco' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_s2b_createSession_v4_apco' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_createSession_deleteSession' time='MASKED'/> + <testcase classname='SMF_Tests' name='TC_n11_createSession_deleteSession_250' time='MASKED'/> </testsuite> diff --git a/smf/open5gs-smf.yaml b/smf/open5gs-smf.yaml index f37de82..c5dbea1 100644 --- a/smf/open5gs-smf.yaml +++ b/smf/open5gs-smf.yaml @@ -70,3 +70,5 @@ max: time: + message: + duration: 20000 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43714?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: I10157c936162ea001b81c054041fb9325a0e5d96 Gerrit-Change-Number: 43714 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: smf: Support concurrent sessions
by pespin 25 Sep '26

25 Sep '26
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43714?usp=email ) Change subject: smf: Support concurrent sessions ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43714?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: I10157c936162ea001b81c054041fb9325a0e5d96 Gerrit-Change-Number: 43714 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Fri, 25 Sep 2026 08:06:42 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.