Project

General

Profile

Actions

Bug #5990

closed

osmo-bsc fails to start after osmo-sgsn: "Received RKM_REG_RSP with negative result"

Added by fixeria about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/31/2023
Due date:
% Done:

0%

Spec Reference:

Description

If I start osmo-stp, osmo-msc, osmo-bsc, and then osmo-sgsn everything works fine. However, if I start osmo-sgsn before starting osmo-bsc, the later is having problems:

DRESET INFO osmo_bsc_sigtran.c:64 Sending RESET to MSC: RI=SSN_PC,PC=0.23.1,SSN=BSSAP
DLSS7 ERROR m3ua.c:508 XUA_AS(as-clnt-OsmoBSC-A)[0x561c69637920]{AS_INACTIVE}: Event AS-TRANSFER.req not permitted
DLSS7 INFO xua_rkm.c:439 0: asp-asp-clnt-OsmoBSC-A: Received RKM REG RES rctx=0 status=Invalid Routing Key
DLSS7 NOTICE xua_default_lm_fsm.c:246 xua_default_lm(asp-clnt-OsmoBSC-A)[0x561c69652ad0]{RKM_REG}: Received RKM_REG_RSP with negative result
DLSS7 INFO osmo_ss7.c:1608 0: asp-asp-clnt-OsmoBSC-A: Restarting ASP asp-clnt-OsmoBSC-A, r=127.0.0.1:2905<->l=0.0.0.0:0
DLSS7 INFO osmo_ss7.c:1841 0: asp-asp-clnt-OsmoBSC-A: Client connected (r=127.0.0.1:2905<->l=127.0.0.1:38305)
DLSS7 INFO xua_rkm.c:439 0: asp-asp-clnt-OsmoBSC-A: Received RKM REG RES rctx=0 status=Invalid Routing Key
DLSS7 NOTICE xua_default_lm_fsm.c:246 xua_default_lm(asp-clnt-OsmoBSC-A)[0x561c696548f0]{RKM_REG}: Received RKM_REG_RSP with negative result
DLSS7 INFO osmo_ss7.c:1608 0: asp-asp-clnt-OsmoBSC-A: Restarting ASP asp-clnt-OsmoBSC-A, r=127.0.0.1:2905<->l=0.0.0.0:0
DLSS7 INFO osmo_ss7.c:1841 0: asp-asp-clnt-OsmoBSC-A: Client connected (r=127.0.0.1:2905<->l=127.0.0.1:56621)

Interestingly enough, the routing context is 0 in the logging messages, while I have it set to 2 in the config file.

Below is the configuration snippets for osmo-stp, osmo-msc, osmo-bsc and osmo-sgsn:

Component point-code routing-key
osmo-msc 0.23.1 1 0.23.1
osmo-bsc 0.23.3 2 0.23.3
osmo-sgsn 0.23.4 0 0.23.4

/etc/osmocom/osmo-stp.cfg

cs7 instance 0
 xua rkm routing-key-allocation dynamic-permitted
 listen m3ua 2905
  accept-asp-connections dynamic-permitted
  local-ip 127.0.0.1
  local-ip ::1

/etc/osmocom/osmo-msc.cfg

cs7 instance 0
 point-code 0.23.1
 asp asp-clnt-OsmoMSC-A 2905 0 m3ua
  remote-ip 127.0.0.1
 as as-clnt-OsmoMSC-A m3ua
  asp asp-clnt-OsmoMSC-A
  routing-key 1 0.23.1

/etc/osmocom/osmo-bsc.cfg

cs7 instance 0
 point-code 0.23.3
 asp asp-clnt-OsmoBSC-A 2905 0 m3ua
  remote-ip 127.0.0.1
 as as-clnt-OsmoBSC-A m3ua
  asp asp-clnt-OsmoBSC-A
  routing-key 2 0.23.3

/etc/osmocom/osmo-sgsn.cfg

cs7 instance 0
 point-code 0.23.4
 asp asp-clnt-OsmoSGSN 2905 0 m3ua
  local-ip 127.0.0.1
  remote-ip 127.0.0.1
  sctp-role client
 as as-clnt-OsmoSGSN m3ua
  asp asp-clnt-OsmoSGSN
  routing-key 0 0.23.4

Software versions

Component Version
libosmocore.git 37dc995234c50cc5f3caf325598e7fddd52cb878
libosmo-sccp.git 79c64ab5556ca0d709a56f0d4f61e2f9044c4550
osmo-bsc.git 6d369665dda4160068e4f66851c3c30dcbd6133b
osmo-sgsn.git d5dca3a67f6c028b870315bc5139f39d938d1610

Files

osmo_stp_reg.pcapng.gz osmo_stp_reg.pcapng.gz 1.23 KB fixeria, 03/31/2023 12:29 PM
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)