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

  • 1 participants
  • 97203 discussions
[M] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_direct_dl_forward
by osmith 25 Nov '26

25 Nov '26
Attention is currently required from: pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44163?usp=email ) Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_direct_dl_forward ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44163?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: Ib2d134f688ce3a3f2e67ad6edfa589c94971abf9 Gerrit-Change-Number: 44163 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 09:10:41 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_dl_forward
by osmith 25 Nov '26

25 Nov '26
Attention is currently required from: jolly, pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44157?usp=email ) Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_dl_forward ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44157?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: I11609e8b75d5ff03d2ca635599d99a7523b6787e Gerrit-Change-Number: 44157 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Wed, 25 Nov 2026 09:08:25 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered()
by fixeria 24 Nov '26

24 Nov '26
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email ) Change subject: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered() ...................................................................... cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered() Only osmo_cbsp_recv_buffered() uses recv() and thus requires <sys/socket.h>. However, the guard is extended to the end of the file, also covering osmo_cbsp_segmentation_cb() and osmo_cbsp_cause_names[], which have no socket dependencies. Change-Id: Ibaf89d14dafdec431dafbf2202e0f5bb145aac6c --- M src/gsm/cbsp.c 1 file changed, 1 insertion(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/65/44165/1 diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c index b1d0d2f..18b8226 100644 --- a/src/gsm/cbsp.c +++ b/src/gsm/cbsp.c @@ -1588,6 +1588,7 @@ msgb_free(msg); return rc; } +#endif /* HAVE_SYS_SOCKET_H */ /*! call-back function to segment the data at message boundaries. * Returns the size of the next message. If it returns -EAGAIN or a value larger than msgb_length() (message @@ -1629,5 +1630,3 @@ { OSMO_CBSP_CAUSE_LAI_OR_LAC_NOT_VALID, "LAI-or-LAC-not-valid"}, { 0, NULL } }; - -#endif /* HAVE_SYS_SOCKET_H */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ibaf89d14dafdec431dafbf2202e0f5bb145aac6c Gerrit-Change-Number: 44165 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct
by pespin 24 Nov '26

24 Nov '26
Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44164?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct ...................................................................... smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct Change-Id: I480b1a9b714d2b73bc39470ac6c676a982d2839b --- M smf/SMF_Tests.ttcn M smf/expected-results.xml 2 files changed, 45 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/64/44164/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44164?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: I480b1a9b714d2b73bc39470ac6c676a982d2839b Gerrit-Change-Number: 44164 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct
by pespin 24 Nov '26

24 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44164?usp=email ) Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct ...................................................................... smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct Change-Id: I480b1a9b714d2b73bc39470ac6c676a982d2839b --- M smf/SMF_Tests.ttcn M smf/expected-results.xml 2 files changed, 44 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/64/44164/1 diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 6ffb502..b6ac837 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -982,6 +982,49 @@ f_shutdown(); } +/* 3GPP TS 23.502 4.9.1.3 Inter NG-RAN node N2 based handover + * The session first goes through a indirect forwarding N2 Handover, + * and after it succeds it goes through a direct forwarding N2 Handover. */ +private function f_TC_n11_handover_inter_ngran_n2_indirect_back_direct() runs on SMF_Session_CT { + var template (value) UPTransportLayerInformation dl_forward_utla; + var template (value) UPTransportLayerInformation dl_utla; + f_n11_create_session(); + + /* Temporary gNB endpoint where to send DL traffic from the UPF during Handover: */ + dl_forward_utla := m_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(f_inet_addr("1.2.3.4")), + p_gtp_teid := '12345678'O)); + /* Final gNB endpoint where to send DL traffic from the UPF after Handover is completed: */ + dl_utla := m_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(f_inet_addr(g_pars.namf.ran_gtpu_ip)), + p_gtp_teid := '11223344'O)); + + /* First N2 Handover with indirect DL forwarding: */ + f_n11_update_sm_context_handover_request_ack(dl_utla := dl_utla, + dl_forward_utla := dl_forward_utla); + f_n11_update_sm_context_handover_complete(valueof(dl_utla), exp_forward_tun_teardown := true); + + /* Second N2 Handover with direct DL forwarding: */ + dl_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)); + f_n11_update_sm_context_handover_request_ack(dl_utla := dl_utla, + dl_forward_utla := omit); + f_n11_update_sm_context_handover_complete(valueof(dl_utla), exp_forward_tun_teardown := false); + + f_n11_delete_session(); + setverdict(pass); +} +testcase TC_n11_handover_inter_ngran_n2_indirect_back_direct() runs on SMF_Test_CT { + var SMF_Session_CT vc_conn; + var SessionPars pars := f_SessionPars(20, + rat_type := GTP2C_RAT_NR); + f_init(); + vc_conn := f_start_handler(refers(f_TC_n11_handover_inter_ngran_n2_indirect_back_direct), pars); + vc_conn.done; + f_shutdown(); +} + /* Validate IUT detects PFCP Heartbeat timeout and recovers from it tearing down * existing subscriber connections: */ diff --git a/smf/expected-results.xml b/smf/expected-results.xml index ae436ff..dd56947 100644 --- a/smf/expected-results.xml +++ b/smf/expected-results.xml @@ -25,6 +25,7 @@ <testcase classname='SMF_Tests' name='TC_n11_createSession_pfcp_sess_est_timeout_no_pdu_sess_est_rej' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_handover_inter_ngran_n2_direct_dl_forward' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_handover_inter_ngran_n2_indirect_dl_forward' time='MASKED'/> + <testcase classname='SMF_Tests' name='TC_n11_handover_inter_ngran_n2_indirect_back_direct' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_5g_pfcp_heartbeat_timeout' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_5g_pfcp_heartbeat_recovery_timestamp' time='MASKED'/> </testsuite> -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44164?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: I480b1a9b714d2b73bc39470ac6c676a982d2839b Gerrit-Change-Number: 44164 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_dl_forward
by pespin 24 Nov '26

24 Nov '26
Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44157?usp=email to look at the new patch set (#2). Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_dl_forward ...................................................................... smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_dl_forward Related: SYS#8338 Change-Id: I11609e8b75d5ff03d2ca635599d99a7523b6787e --- M library/HTTP2_Msg.ttcn M library/PFCP_Templates.ttcn M library/TS29502_Nsmf_PDUSession_Templates.ttcn M library/ngap/NGAP_EncDec.cc M library/ngap/NGAP_Types.ttcn M smf/SMF_Session_CT.ttcn M smf/SMF_Session_CT_5G.ttcn M smf/SMF_Tests.ttcn M smf/expected-results.xml 9 files changed, 359 insertions(+), 16 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/57/44157/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44157?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: I11609e8b75d5ff03d2ca635599d99a7523b6787e Gerrit-Change-Number: 44157 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: ausf: Fix ResStar with wrong length being sent
by pespin 24 Nov '26

24 Nov '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?usp=email ) Change subject: ausf: Fix ResStar with wrong length being sent ...................................................................... ausf: Fix ResStar with wrong length being sent Since open5gs.git 068881e88a721b4f35878d7ca4227fc923bca98b, open5gs-ausfd checks the length of the ResStar being sent. Hence, fix the test checking the correct path and add an extra test checking the incorrect-length path. Change-Id: I8db7f2c773e3c40b9b1dd115dd2d073b73992c4e --- M ausf/AUSF_Tests.ttcn M ausf/ConnHdlr.ttcn M ausf/expected-results.xml 3 files changed, 42 insertions(+), 12 deletions(-) Approvals: fixeria: Looks good to me, but someone else must approve osmith: Looks good to me, approved Jenkins Builder: Verified diff --git a/ausf/AUSF_Tests.ttcn b/ausf/AUSF_Tests.ttcn index ff36313..b069f07 100644 --- a/ausf/AUSF_Tests.ttcn +++ b/ausf/AUSF_Tests.ttcn @@ -129,9 +129,25 @@ f_shutdown(); } +/* 3GPP TS 29.509 5.2.2.2.2 5G AKA, sending a resStar shorter than expected (32 chars) */ +private function f_TC_5g_aka_short_resStar() runs on ConnHdlr { + f_n12_post_ue_authentications(); + f_n12_put_5g_aka_confirmation(resStar := "", exp_res_code := 400); + setverdict(pass); +} +testcase TC_5g_aka_short_resStar() runs on MTC_CT { + var ConnHdlr vc_conn; + var ConnHdlrPars pars := f_ConnHdlrPars(0); + f_init(); + vc_conn := f_start_handler(refers(f_TC_5g_aka_short_resStar), pars); + vc_conn.done; + f_shutdown(); +} + control { execute( TC_5g_aka() ); + execute( TC_5g_aka_short_resStar() ); } } diff --git a/ausf/ConnHdlr.ttcn b/ausf/ConnHdlr.ttcn index dacfa1d..1fde3c5 100644 --- a/ausf/ConnHdlr.ttcn +++ b/ausf/ConnHdlr.ttcn @@ -213,28 +213,41 @@ } /* 3GPP TS 29.509 6.1.3.3.3.1 Resource: 5g-aka-confirmation (PUT) */ -function f_n12_put_5g_aka_confirmation() +function f_n12_put_5g_aka_confirmation(template (value) charstring resStar := "0123456789abcdef0123456789abcdef", + integer exp_res_code := 200) runs on ConnHdlr { var HTTP2_Msg http2_tx; var HTTP2_Msg http2_rx; var template (present) HTTP2_Msg http2_exp_rx; var template (value) ConfirmationData conf_data; - conf_data := ts_ConfirmationData(resStar := ts_ResStar("")); + conf_data := ts_ConfirmationData(resStar := ts_ResStar(resStar)); http2_tx := f_n12_prepare_put_5g_aka_confirmation(valueof(conf_data)); f_http2_adapter_connect_send_ausf(http2_tx, idx := http2_tx.conn_id); - as_Nudm_UEAU_post_auth_events(); - /* 3GPP TS 29.503 Table 6.3.3.2.4.2.2-2 */ - http2_exp_rx := - tr_HTTP2_Msg(http2_tx.conn_id, - http2_tx.stream_id, - tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(200)), - tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, - end_stream_flag := true, - data := decmatch tr_ConfirmationDataResponse)); + select (exp_res_code) { + case (200) { + as_Nudm_UEAU_post_auth_events(); + http2_exp_rx := + tr_HTTP2_Msg(http2_tx.conn_id, + http2_tx.stream_id, + tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(200)), + tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, + end_stream_flag := true, + data := decmatch tr_ConfirmationDataResponse)); + } + case (400) { + http2_exp_rx := + tr_HTTP2_Msg(http2_tx.conn_id, + http2_tx.stream_id, + tr_HTTP2_header_block(pseudo_headers := tr_HTTP2_pseudo_headers_Resp(400)), + tr_HTTP2_Data_frame(stream_id := http2_tx.stream_id, + end_stream_flag := true, + data := ? )); + } + } as_http2_adapter_receive(http2_rx, http2_exp_rx, idx := http2_tx.conn_id); f_http2_adapter_close(idx := http2_tx.conn_id); diff --git a/ausf/expected-results.xml b/ausf/expected-results.xml index 7e1d439..d4a9e9b 100644 --- a/ausf/expected-results.xml +++ b/ausf/expected-results.xml @@ -1,4 +1,5 @@ <?xml version="1.0"?> -<testsuite name='Titan' tests='1' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> +<testsuite name='Titan' tests='2' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> <testcase classname='AUSF_Tests' name='TC_5g_aka' time='MASKED'/> + <testcase classname='AUSF_Tests' name='TC_5g_aka_short_resStar' time='MASKED'/> </testsuite> -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?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: I8db7f2c773e3c40b9b1dd115dd2d073b73992c4e Gerrit-Change-Number: 44162 Gerrit-PatchSet: 1 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
[M] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_direct_dl_forward
by pespin 24 Nov '26

24 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44163?usp=email ) Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_direct_dl_forward ...................................................................... smf: Introduce test TC_n11_handover_inter_ngran_n2_direct_dl_forward Change-Id: Ib2d134f688ce3a3f2e67ad6edfa589c94971abf9 --- M smf/SMF_Session_CT_5G.ttcn M smf/SMF_Tests.ttcn M smf/expected-results.xml 3 files changed, 53 insertions(+), 14 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/63/44163/1 diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index e64d23d..f81ff22 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -418,7 +418,8 @@ /* 3GPP TS 23.502 Figure 4.9.1.3.2-1 step 11f * 3GPP TS 29.502 Table 6.1.3.3.4.2.2-2, 6.1.6.2.5 Type: SmContextUpdatedData * Expect to receive "200 OK with multipart body containing SBI + NGAP Handover Command */ -altstep as_n11_200_OK_handover_command(HTTP2_Msg http2_tx) +altstep as_n11_200_OK_handover_command(HTTP2_Msg http2_tx, + template (present) NGAP_IEs.HandoverCommandTransfer exp_ho_cmd_transfer := ?) runs on SMF_Session_CT { var HTTP2_Msg http2_rx; var template (present) HTTP2_Msg http2_exp_rx := @@ -437,7 +438,7 @@ var SmContextUpdatedData sm_ctx_updated_data; var NGAP_IEs.PDUSessionResourceSetupRequestTransfer setup_req_transf; - var NGAP_IEs.HandoverCommandTransfer ho_cmd_transfer + var NGAP_IEs.HandoverCommandTransfer ho_cmd_transfer; /* Decode 1st part: SBI json: */ f_dec_SmContextUpdatedData(parts[0].data, sm_ctx_updated_data); // TODO: check returned integer. @@ -445,14 +446,10 @@ /* Decode 2nd part: NGAP Handover Command: */ ho_cmd_transfer := dec_NGAP_HandoverCommandTransfer(parts[1].data); - var F_TEID fteid := g_pars.pfcp_pars.gtp1u_pars.access.local; - if (not match(ho_cmd_transfer, - mw_handoverCommandTransfer(p_dLForwardingUP_TNLInformation := - mw_uPTransportLayerInformation_gTPTunnel( - m_gTPTunnel(p_tla := oct2bit(fteid.ipv4_address), - p_gtp_teid := fteid.teid))))) { + if (not match(ho_cmd_transfer, exp_ho_cmd_transfer)) { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("Got unexpected HandoverCommandTransfer ", ho_cmd_transfer)); + log2str("Got unexpected HandoverCommandTransfer ", ho_cmd_transfer, + " vs exp ", exp_ho_cmd_transfer)); } } } @@ -464,6 +461,7 @@ var template (value) SmContextUpdateData sm_ctx_update; var template (value) octetstring body_enc; var HTTP2_Msg http2_tx; + var template UPTransportLayerInformation p_dLForwardingUP_TNLInformation := omit; sm_ctx_update := ts_SmContextUpdateData(ueLocation := f_ts_UserLocation(), n2SmInfo := TS29502_Nsmf_PDUSession_Templates.ts_RefToBinaryData("ngap-sm"), @@ -503,10 +501,18 @@ as_pfcp_sess_mod_req(exp_create_pdr_list := {create_pdr}, exp_create_far_list := {create_far}, tx_created_pdr := created_pdr); + + var F_TEID fteid := g_pars.pfcp_pars.gtp1u_pars.access.local; + p_dLForwardingUP_TNLInformation := + mw_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(fteid.ipv4_address), + p_gtp_teid := fteid.teid)); } /* Successful answer with HandoverCommandTransfer: */ - as_n11_200_OK_handover_command(http2_tx); + var template (present) NGAP_IEs.HandoverCommandTransfer exp_ho_cmd_transfer := + mw_handoverCommandTransfer(p_dLForwardingUP_TNLInformation := p_dLForwardingUP_TNLInformation); + as_n11_200_OK_handover_command(http2_tx, exp_ho_cmd_transfer); f_http2_adapter_close(idx := http2_tx.conn_id); setverdict(pass); @@ -515,7 +521,8 @@ /* 3GPP TS 23.502 Figure 4.9.1.3.3-1 step 7-11 * 3GPP TS 29.502 5.2.2.3.4.3 N2 Handover Execution */ -function f_n11_update_sm_context_handover_complete(UPTransportLayerInformation dl_utla) +function f_n11_update_sm_context_handover_complete(UPTransportLayerInformation dl_utla, + boolean exp_forward_tun_teardown := true) runs on SMF_Session_CT { var template (value) SmContextUpdateData sm_ctx_update; var template (value) octetstring body_enc; @@ -538,9 +545,11 @@ network_instance := tr_PFCP_Network_Instance(g_pars.apn))); as_pfcp_sess_mod_req(exp_update_far_list := { exp_update_far }); - /* The forwarding tunnel is removed: */ - as_pfcp_sess_mod_req(remove_pdr_list := { tr_PFCP_Remove_PDR(pdr_id := int2oct(5, 2)) }, - remove_far_list := { tr_PFCP_Remove_FAR(far_id := 4) }); + if (exp_forward_tun_teardown) { + /* The forwarding tunnel is removed: */ + as_pfcp_sess_mod_req(remove_pdr_list := { tr_PFCP_Remove_PDR(pdr_id := int2oct(5, 2)) }, + remove_far_list := { tr_PFCP_Remove_FAR(far_id := 4) }); + } /* Successful answer: */ var HTTP2_Msg http2_rx; diff --git a/smf/SMF_Tests.ttcn b/smf/SMF_Tests.ttcn index 7a132cb..6ffb502 100644 --- a/smf/SMF_Tests.ttcn +++ b/smf/SMF_Tests.ttcn @@ -921,6 +921,34 @@ } /* 3GPP TS 23.502 4.9.1.3 Inter NG-RAN node N2 based handover + * No "DL Forwarding UP TNL Information" in NGAP Handover Request ACK AMF->SMF, + * only "DL NG-U UP TNL Information" IE is to be used.*/ +private function f_TC_n11_handover_inter_ngran_n2_direct_dl_forward() runs on SMF_Session_CT { + var template (value) UPTransportLayerInformation dl_forward_utla; + var template (value) UPTransportLayerInformation dl_utla; + f_n11_create_session(); + + /* Final gNB endpoint where to send DL traffic from the UPF after Handover is completed: */ + dl_utla := m_uPTransportLayerInformation_gTPTunnel( + m_gTPTunnel(p_tla := oct2bit(f_inet_addr(g_pars.namf.ran_gtpu_ip)), + p_gtp_teid := '11223344'O)); + + f_n11_update_sm_context_handover_request_ack(dl_utla := dl_utla); + f_n11_update_sm_context_handover_complete(valueof(dl_utla), exp_forward_tun_teardown := false); + f_n11_delete_session(); + setverdict(pass); +} +testcase TC_n11_handover_inter_ngran_n2_direct_dl_forward() runs on SMF_Test_CT { + var SMF_Session_CT vc_conn; + var SessionPars pars := f_SessionPars(20, + rat_type := GTP2C_RAT_NR); + f_init(); + vc_conn := f_start_handler(refers(f_TC_n11_handover_inter_ngran_n2_direct_dl_forward), pars); + vc_conn.done; + f_shutdown(); +} + +/* 3GPP TS 23.502 4.9.1.3 Inter NG-RAN node N2 based handover * Set "DL Forwarding UP TNL Information" in NGAP Handover Request ACK AMF->SMF: * The SMF should update the UPF to point to it until the handover is completed, * at which point the "DL NG-U UP TNL Information" IE is to be used.*/ @@ -1094,6 +1122,7 @@ execute( TC_n11_createSession_pfcp_sess_est_timeout() ); execute( TC_n11_createSession_pfcp_sess_est_timeout_no_pdu_sess_est_rej() ); + execute( TC_n11_handover_inter_ngran_n2_direct_dl_forward() ); execute( TC_n11_handover_inter_ngran_n2_indirect_dl_forward() ); execute( TC_5g_pfcp_heartbeat_timeout() ); diff --git a/smf/expected-results.xml b/smf/expected-results.xml index e2d0150..ae436ff 100644 --- a/smf/expected-results.xml +++ b/smf/expected-results.xml @@ -23,6 +23,7 @@ <testcase classname='SMF_Tests' name='TC_n11_createSession_deleteSession_250_ipv4v6' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_createSession_pfcp_sess_est_timeout' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_createSession_pfcp_sess_est_timeout_no_pdu_sess_est_rej' time='MASKED'/> + <testcase classname='SMF_Tests' name='TC_n11_handover_inter_ngran_n2_direct_dl_forward' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_n11_handover_inter_ngran_n2_indirect_dl_forward' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_5g_pfcp_heartbeat_timeout' time='MASKED'/> <testcase classname='SMF_Tests' name='TC_5g_pfcp_heartbeat_recovery_timestamp' time='MASKED'/> -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44163?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: Ib2d134f688ce3a3f2e67ad6edfa589c94971abf9 Gerrit-Change-Number: 44163 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: ausf: Fix ResStar with wrong length being sent
by osmith 24 Nov '26

24 Nov '26
Attention is currently required from: pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?usp=email ) Change subject: ausf: Fix ResStar with wrong length being sent ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?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: I8db7f2c773e3c40b9b1dd115dd2d073b73992c4e Gerrit-Change-Number: 44162 Gerrit-PatchSet: 1 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-Comment-Date: Tue, 24 Nov 2026 12:44:23 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: ausf: Fix ResStar with wrong length being sent
by fixeria 24 Nov '26

24 Nov '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/+/44162?usp=email ) Change subject: ausf: Fix ResStar with wrong length being sent ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44162?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: I8db7f2c773e3c40b9b1dd115dd2d073b73992c4e Gerrit-Change-Number: 44162 Gerrit-PatchSet: 1 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: Tue, 24 Nov 2026 12:26:21 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.