This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21395 ) Change subject: gbproxy: Introduce TC_overload ...................................................................... gbproxy: Introduce TC_overload When the SGSN is sending an OVERLOAD message, we expect that to propagate down to every BSS on the other side. Change-Id: Ic61fabd9c633bcb3f256fe7aa5834e66cc66a4fb --- M gbproxy/GBProxy_Tests.ttcn M library/BSSGP_Emulation.ttcnpp M library/Osmocom_Gb_Types.ttcn 3 files changed, 63 insertions(+), 1 deletion(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn index 938dcc1..b708fa0 100644 --- a/gbproxy/GBProxy_Tests.ttcn +++ b/gbproxy/GBProxy_Tests.ttcn @@ -1905,6 +1905,35 @@ f_cleanup(); } +/* Send an OVERLOAD from SGSN side and expect it to show up on each PCU (SIG BVC) */ +testcase TC_overload() runs on GlobalTest_CT +{ + f_init(); + f_global_init(); + + var template (value) PDU_BSSGP pdu_tx := ts_OVERLOAD('1'B); + var template (present) PDU_BSSGP exp_rx := tr_OVERLOAD('1'B); + + var ro_default defaults := {}; + for (var integer i := 0; i < lengthof(g_pcu); i := i+1) { + activate(as_bssgp_g_pcu_count(i, exp_rx, g_roi)); + } + G_SGSN[0].send(pdu_tx); + f_sleep(2.0); + for (var integer i := 0; i < lengthof(defaults); i := i+1) { + deactivate(defaults[i]); + } + + for (var integer i := 0; i < lengthof(g_pcu); i := i+1) { + if (not ro_integer_contains(g_roi, i)) { + setverdict(fail, "Failed to receive OVERLOAD on PCU index ", i); + } + } + setverdict(pass); + + f_cleanup(); +} + private function f_block_ptp_bvc_from_pcu(integer pcu_idx, integer bvc_idx) runs on test_CT { var BSSGP_BVC_CT bvc_ct := g_pcu[pcu_idx].vc_BSSGP_BVC[bvc_idx]; @@ -2138,6 +2167,7 @@ execute( TC_resume() ); execute( TC_trace() ); execute( TC_llc_discarded() ); + execute( TC_overload() ); execute( TC_bvc_block_ptp() ); execute( TC_bvc_unblock_ptp() ); execute( TC_bvc_reset_ptp_from_bss() ); diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp index d747ca2..e3ad9fe 100644 --- a/library/BSSGP_Emulation.ttcnpp +++ b/library/BSSGP_Emulation.ttcnpp @@ -302,7 +302,7 @@ private template PDU_BSSGP tr_GLOBAL := ( {pDU_BSSGP_SUSPEND:=?}, {pDU_BSSGP_SUSPEND_ACK:=?}, {pDU_BSSGP_SUSPEND_NACK:=?}, {pDU_BSSGP_RESUME:=?}, {pDU_BSSGP_RESUME_ACK:=?}, {pDU_BSSGP_RESUME_NACK:=?}, - {pDU_BSSGP_SGSN_INVOKE_TRACE:=?} + {pDU_BSSGP_SGSN_INVOKE_TRACE:=?}, {pDU_BSSGP_OVERLOAD:=?} ); /* We are in BVC_S_UNBLOCKED state */ diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn index a345d7f..2afedcc 100644 --- a/library/Osmocom_Gb_Types.ttcn +++ b/library/Osmocom_Gb_Types.ttcn @@ -2077,6 +2077,38 @@ } } + /* 10.4.36 */ + template (value) PDU_BSSGP + ts_OVERLOAD(template (value) BIT1 priority_class) := { + pDU_BSSGP_OVERLOAD := { + bssgpPduType := '42'O, + priority_Class_Indicator := { + iEI := '8f'O, + ext := '1'B, + lengthIndicator := { + length1 := 1 + }, + priority_Class_Indicator_Value := priority_class, + spare := '0000000'B + } + } + } + template (present) PDU_BSSGP + tr_OVERLOAD(template (present) BIT1 priority_class) := { + pDU_BSSGP_OVERLOAD := { + bssgpPduType := '42'O, + priority_Class_Indicator := { + iEI := '8f'O, + ext := '1'B, + lengthIndicator := { + length1 := 1 + }, + priority_Class_Indicator_Value := priority_class, + spare := '0000000'B + } + } + } + /* PDU permitted on PTP BVC only (TS 48.018 Section 5.4.1) */ template (present) PDU_BSSGP tr_BSSGP_PERMITTED_PTP_ONLY := ( {pDU_BSSGP_DL_UNITDATA := ?}, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21395 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ic61fabd9c633bcb3f256fe7aa5834e66cc66a4fb Gerrit-Change-Number: 21395 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201128/59d23b9b/attachment.htm>