Project

General

Profile

Actions

Bug #3296

closed

TCH lchan allocation is non-modular and also riddled with holes

Added by neels almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
05/28/2018
Due date:
% Done:

100%

Spec Reference:

Description

To be able to add inter-BSC Handover, I need to allocate an lchan. Since common lchan allocation steps are currently duplicated in Assignment and intra-BSC Handover, I did a review of the current code state to identify the best way to continue.

A review of the current lchan allocation procedures during BSSMAP Assignment and intra-BSC Handover has shown that besides being non-modular, the lchan allocation and release procedures have numerous "holes" where we do not safeguard message communication with timeouts, that the sequence of events is not ideal, and at least one wrong action is taken during handover error handling.

I created message sequence charts of Assignment and Handover, and marked numerous errors by red (needs a fix) and orange (could be improved) notes.
See https://gerrit.osmocom.org/9350
In osmo-bsc/doc/, do 'make msc' to generate PNGs from the message sequence charts, or look for "red" in the .msc files.

I have also made a plan for a separate lchan allocation FSM that should fix most of the problems identified here.
Above review has convinced me that there is no good quick way around a proper FSM that can be re-used in a modular way.


Files

lchan_fsm.c lchan_fsm.c 7.18 KB laforge, 05/28/2018 02:44 PM

Checklist

  • specify new lchan allocation FSM by message sequence chart
  • implement new lchan allocation FSM
  • implement TTCN3 tests to verify successful use for Assignment
  • implement TTCN3 tests to verify successful use for intra-BSC Handover

Related issues

Related to OsmoBSC - Feature #3479: test "every single failure" in osmo-bsc FSMsNew08/20/2018

Actions
Blocks OsmoBSC - Bug #2283: Inter-BSC hand-over is missing (BSC side)Resolvedneels05/22/2017

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)