Project

General

Profile

Actions

Feature #4635

open

quirks when initializing SS7 ASP

Added by neels almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/24/2020
Due date:
% Done:

0%

Spec Reference:

Description

This is about starting up the SCCP links in osmo-bsc and osmo-msc (and possibly others), using the API provided by libosmo-sigtran.

There are problems when:
a) the 'cs7' / 'as' and 'asp' vty config is in the .cfg file
b) and/or when invoking osmo_sccp_simple_client() more than once

This came up because rapidly shutting down and restarting an SCTP connection to osmo-stp recently started triggering a race condition,
where osmo-stp's select() returned the new connection's accept before (or at the same time as) the old connection's close.
This because osmo-bsc recently started re-running osmo_sccp_simple_client() for each MSC in the pool: thrice for ttcn3-bsc-tests.

At first thought it seems that osmo-msc could also run it twice (for A and Iu)
but actually figures out to run the osmo_sccp_simple_client() only once when both A and Iu are on the same ss7 instance.

The first fix was to only re-start the ASP in osmo_sccp_simple_client() IF a new ASP was created.
That worked for osmo-bsc but only because of the peculiarity that the osmo-bsc.cfg does not contain an AS.
At the same time that broke osmo-msc tests, where the osmo-msc.cfg has AS and ASP configured in the cfg file.

I know, this is getting more and more entangled...

(I'll open this issue and then elaborate in follow-up comments.)


Related issues

Related to OsmoSTP - Bug #4625: osmo-stp crashes in ttcn3-bsc-tests on first M3UA messageResolvedlaforge06/20/2020

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)