Attention is currently required from: fixeria, jolly, laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email )
Change subject: Implement M3UA-over-TCP (in addition to SCTP)
......................................................................
Patch Set 4:
(4 comments)
File include/osmocom/sigtran/osmo_ss7.h:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/5c6f7276_7447096c
PS4, Line 515: int osmo_ss7_asp_get_trans_proto(const struct osmo_ss7_asp *asp);
Is this needed by any app right now? Otherwise I vote for keeping it private until needed.
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/26384a30_1ce00802
PS4, Line 566: int trans_proto;
You need to update TODO-RELEASE about new fields and APIs.
I think right now all these structs are allocated by libosmo-sccp itself, so it's fine using same app with newer version. The opposite would be wrong though, so you need to say ABI BREAK here.
File include/osmocom/sigtran/osmo_ss7.h:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/007917a1_cece3754
PS3, Line 616: osmo_sccp_simple_client2(void *ctx, const char *name, uint32_t default_pc,
> > Any input is welcome. I'll continue investigating this. […]
My understanding is that for current ticket only osmo-stp is needed.
It is ofc desirable to support them in other users of libosmo-sccp, but usually those use the _simple_* APIs, which we want to drop at some point. So at least submit that part as a different patch and we can discuss whether we merge it or whether we rather move osmo-bsc/osmo-msc to get rid of the _simple_ APIs.
File src/osmo_ss7_asp.c:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/ccf7e884_d20e5592
PS4, Line 133: #define PROTO_MUX(proto, trans_proto) \
I still think this should be changed to avoid doing assumptions about size and max value of trans_proto. But I'm not gona block if nobody else cares.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I8c76d271472befacbeb998a93bbdc9e8660d9b5d
Gerrit-Change-Number: 35796
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Feb 2024 13:48:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: jolly, laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email )
Change subject: Implement M3UA-over-TCP (in addition to SCTP)
......................................................................
Patch Set 4:
(1 comment)
File include/osmocom/sigtran/osmo_ss7.h:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/fc3b2353_436deaaf
PS3, Line 616: osmo_sccp_simple_client2(void *ctx, const char *name, uint32_t default_pc,
> Any input is welcome. I'll continue investigating this.
Actually, better halt here and wait for feedback.
> ... this way we keep osmo-stp support separated from other apps using the simple_client/server stuff, like osmo-bsc.
Just to clarify: do we still want to support other transport protocols (e.g. M3UA-over-TCP) outside of osmo-stp, i.e. in apps like osmo-bsc and osmo-msc?
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I8c76d271472befacbeb998a93bbdc9e8660d9b5d
Gerrit-Change-Number: 35796
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 14 Feb 2024 23:37:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: jolly, laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email )
Change subject: Implement M3UA-over-TCP (in addition to SCTP)
......................................................................
Patch Set 4:
(1 comment)
File include/osmocom/sigtran/osmo_ss7.h:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/ddb66e4c_9c85285f
PS3, Line 616: osmo_sccp_simple_client2(void *ctx, const char *name, uint32_t default_pc,
> Done
Having done this, I can no longer get osmo-bsc to talk to osmo-stp using M3UA/TCP. AFAICS, osmo-bsc is actually using this API and since this API is assuming the default transport protocol (SCTP), something is definitely going wrong:
```
DMSC NOTICE osmo_bsc_sigtran.c:648 Initializing SCCP connection for A/m3ua on cs7 instance 0
DLSCCP NOTICE sccp_user.c:567 A-0-m3ua: Using SS7 instance 0, pc:0.23.3
DLSCCP NOTICE sccp_user.c:585 A-0-m3ua: Using AS instance as-clnt-OsmoBSC-A
DLSCCP NOTICE sccp_user.c:590 A-0-m3ua: Creating default route
DLSS7 INFO osmo_ss7.c:781 0: Creating route: pc=0=0.0.0 mask=0x0 via AS 'as-clnt-OsmoBSC-A'
DLSCCP NOTICE sccp_user.c:632 A-0-m3ua: No unassociated ASP for m3ua, creating new ASP asp-clnt-A-0-m3ua
DLSS7 INFO osmo_ss7_as.c:110 0: as-as-clnt-OsmoBSC-A: Adding ASP asp-clnt-A-0-m3ua to AS
DLGLOBAL ERROR osmo_ss7_as.c:118 Trying to dispatch event 17 to non-existent FSM instance!
DLGLOBAL ERROR backtrace.c:42 backtrace() returned 9 addresses
DLGLOBAL ERROR backtrace.c:53 /opt/osmocom/lib/libosmocore.so.21(_osmo_fsm_inst_dispatch+0x3a3) [0x7660c5671443]
DLGLOBAL ERROR backtrace.c:53 /opt/osmocom/lib/libosmo-sigtran.so.9(osmo_ss7_as_add_asp+0x31e) [0x7660c57da45e]
DLGLOBAL ERROR backtrace.c:53 /opt/osmocom/lib/libosmo-sigtran.so.9(osmo_sccp_simple_client_on_ss7_id+0x101a) [0x7660c58055ca]
DLGLOBAL ERROR backtrace.c:53 ./src/osmo-bsc/osmo-bsc(+0x1ee30c) [0x5f63af78430c]
DLGLOBAL ERROR backtrace.c:53 ./src/osmo-bsc/osmo-bsc(+0x25bb7) [0x5f63af5bbbb7]
DLGLOBAL ERROR backtrace.c:53 /usr/lib/libc.so.6(+0x27cd0) [0x7660c5151cd0]
DLGLOBAL ERROR backtrace.c:53 /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7660c5151d8a]
DLGLOBAL ERROR backtrace.c:53 ./src/osmo-bsc/osmo-bsc(+0x25165) [0x5f63af5bb165]
```
Note the `No unassociated ASP for m3ua, creating new ASP` line. This is despite I am using the following configuration in osmo-bsc.cfg:
```
cs7 instance 0
point-code 0.23.3
asp asp-clnt-OsmoBSC-A 2905 0 m3ua tcp
remote-ip 127.0.0.1
role asp
transport-role client
as as-clnt-OsmoBSC-A m3ua
asp asp-clnt-OsmoBSC-A
routing-key 3 0.23.3
```
Any input is welcome. I'll continue investigating this.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I8c76d271472befacbeb998a93bbdc9e8660d9b5d
Gerrit-Change-Number: 35796
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 14 Feb 2024 23:33:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: jolly, laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email )
Change subject: Implement M3UA-over-TCP (in addition to SCTP)
......................................................................
Patch Set 4:
(1 comment)
File src/osmo_ss7_asp.c:
https://gerrit.osmocom.org/c/libosmo-sccp/+/35796/comment/9db5cc5b_fd97a032
PS1, Line 853: ss7_asp_m3ua_tcp_srv_conn_cb
(re-opening the thread, since this was not addressed yet)
> ... As jolly is trying to fix that right now, I guess the half-life of this code is going to be very low.
@laforge@osmocom.org IIUC this means that this code is going to be reworked anyway once we migrate to `osmo_stream_srv_create2()` and I should not be spending time trying to reduce code duplication as was suggested by @pespin@sysmocom.de.
@andreas@eversberg.eu feel free to ping me in case of the merge conflicts with this patch!
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/35796?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I8c76d271472befacbeb998a93bbdc9e8660d9b5d
Gerrit-Change-Number: 35796
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 14 Feb 2024 22:54:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment