Skip to content
Success

Changes

Summary

  1. Introduce iu_rnc FSM (details)
Commit 12d110d65effb6d1276f53b45b49f4dc71371327 by Pau Espin Pedrol
Introduce iu_rnc FSM

This FSM is similar to the already existing ran_peer_fsm in osmo-msc,
which already had better logic around SCCP and RANAP state handling.
Similarly, osmo-sgsn's struct ranap_iu_rnc maps to osmo-msc's struct ran_peer.

With this FSM we can currently track the RANAP link state towards a given
RNC peer:
* Reject (RANAP Error Indication) all UE-related messages until a RANAP
  RESET from RNC is received first.
* Tear down all subsriber connections whenever the RANAP peer sends us a
  RESET message.
* Tear down all subscriber connections whenever the SCCP link towards
  RNC becomes unavailable.
* Send a RESET towards RNC peer once the SCCP link towrdards it becomes
  available again.

This commit only implements so far the Rx path of the FSM, ie. when
receiving events/messages from a peer over SCCP and pushing them locally
up the stack (RANAP). The Tx side will be implemented in a follow-up
commit, which will allow discarding messages if the lower layers towards
a given RNC are known to be down.

Change-Id: I18b7803500163e78ff6a684095194174b0fb6ee1
The file was addedsrc/sgsn/iu_rnc_fsm.c
The file was modifiedinclude/osmocom/sgsn/gprs_ranap.h
The file was modifiedsrc/sgsn/iu_rnc.c
The file was modifiedinclude/osmocom/sgsn/iu_rnc.h
The file was modifiedsrc/sgsn/Makefile.am
The file was modifiedsrc/sgsn/gprs_ranap.c
The file was modifiedinclude/osmocom/sgsn/sgsn.h
The file was modifiedtests/gprs_routing_area/Makefile.am
The file was modifiedsrc/sgsn/sgsn_vty.c
The file was modifiedinclude/osmocom/sgsn/Makefile.am
The file was addedinclude/osmocom/sgsn/iu_rnc_fsm.h
The file was modifiedsrc/sgsn/sgsn.c
The file was modifiedtests/sgsn/Makefile.am
The file was modifiedsrc/sgsn/sccp.c
The file was modifiedtests/osmo-sgsn_test-nodes.vty
The file was modifiedinclude/osmocom/sgsn/sccp.h