Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 1 | msc { |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 2 | hscale=2; |
| 3 | ms [label="MS/BTS"], lchan[label="BSC lchan FSM"], ass[label="BSC Assignment FSM"], |
| 4 | gscon[label="BSC conn FSM"], msc_[label="MSC"]; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 5 | |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 6 | ms note msc_ [label="lchan allocation sequence for BSSMAP Assignment Request"]; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 7 | |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 8 | gscon <= msc_ [label="BSSMAP Assignment Request"]; |
| 9 | gscon note gscon [label="GSCON_EV_ASSIGNMENT_START\n data=struct assignment_request"]; |
| 10 | gscon abox gscon [label="ST_ASSIGNMENT"]; |
| 11 | ass <- gscon [label="assignment_fsm_start()"]; |
| 12 | ass abox ass [label="ASSIGNMENT_ST_\nWAIT_LCHAN_ACTIVE"]; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 13 | |
Neels Hofmeyr | 44fcc9f | 2018-05-28 14:29:49 +0200 | [diff] [blame] | 14 | |||; |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 15 | --- [label="On any error (no lchan, etc.)"]; |
| 16 | ass box ass [label="on_assignment_failure()"]; |
| 17 | ass => msc_ [label="BSSMAP Assignment Failure"]; |
| 18 | ass abox ass [label="terminate"]; |
| 19 | ass -> gscon [label="GSCON_EV_ASSIGNMENT_END"]; |
| 20 | gscon abox gscon [label="ST_ACTIVE"]; |
Neels Hofmeyr | 44fcc9f | 2018-05-28 14:29:49 +0200 | [diff] [blame] | 21 | ---; |
| 22 | |||; |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 23 | lchan abox lchan [label="UNUSED"]; |
| 24 | ass box ass [label="conn->assignment.new_lchan = lchan_select_by_chan_mode()"]; |
| 25 | lchan <- ass [label="lchan_activate(FOR_ASSIGNMENT)"]; |
| 26 | lchan abox lchan [label="WAIT_TS_READY"]; |
| 27 | lchan rbox lchan [label="most details omitted, see lchan_fsm and lchan_rtp_fsm diagrams"]; |
Neels Hofmeyr | 44fcc9f | 2018-05-28 14:29:49 +0200 | [diff] [blame] | 28 | ...; |
| 29 | |||; |
| 30 | --- [label="on lchan FSM error or timeout"]; |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 31 | lchan -> ass [label="ASSIGNMENT_EV_LCHAN_ERROR"]; |
| 32 | ass box ass [label="on_assignment_failure()"]; |
| 33 | ass rbox gscon [label="See 'On any error' above"]; |
Neels Hofmeyr | 44fcc9f | 2018-05-28 14:29:49 +0200 | [diff] [blame] | 34 | --- [label="END: 'on error'"]; |
| 35 | ...; |
| 36 | ...; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 37 | |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 38 | lchan abox lchan [label="LCHAN_ST_WAIT_ACTIV_ACK"]; |
| 39 | ms <= lchan [label="RSL Chan Activ"]; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 40 | ...; |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 41 | ms => lchan [label="RSL Chan Activ ACK"]; |
| 42 | lchan -> ass [label="ASSIGNMENT_EV_LCHAN_ACTIVE"]; |
| 43 | ass abox ass [label="ASSIGNMENT_ST_\nWAIT_RR_ASS_COMPLETE"]; |
| 44 | ms <= ass [label="RR Assignment Command"]; |
| 45 | lchan note ass [label="The lchan FSM will continue with RSL and RTP while the Assignment FSM waits. |
| 46 | ASSIGNMENT_EV_LCHAN_ESTABLISHED means that both RSL and RTP are established. |
| 47 | Usually, RTP will be done first, and the ASSIGNMENT_EV_LCHAN_ESTABLISHED may be |
| 48 | received even before ASSIGNMENT_EV_RR_ASSIGNMENT_COMPLETE. |
| 49 | assignment_fsm_wait_lchan_established_onenter() decides whether to wait or not."]; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 50 | ...; |
Neels Hofmeyr | 3b5de1b | 2018-06-16 16:08:55 +0200 | [diff] [blame] | 51 | ms => lchan [label="RSL EST IND"]; |
| 52 | lchan -> ass [label="ASSIGNMENT_EV_LCHAN_ESTABLISHED",ID="(may come as early as this, or...)"]; |
| 53 | ms => ass [label="RR Assignment Complete (came with EST IND)"]; |
| 54 | ass abox ass [label="ASSIGNMENT_ST_\nWAIT_LCHAN_ESTABLISHED"]; |
| 55 | --- [label="IF lchan is not in LCHAN_ST_ESTABLISHED yet (waiting for RTP)"]; |
| 56 | ...; |
| 57 | lchan rbox lchan [label="when lchan RTP FSM is done with setting up RTP"]; |
| 58 | lchan -> ass [label="ASSIGNMENT_EV_LCHAN_ESTABLISHED",ID="(...may come only now)"]; |
| 59 | ---; |
| 60 | ass abox ass [label="ASSIGNMENT_ST_WAIT_\nMGW_ENDPOINT_TO_MSC"]; |
| 61 | ass -> gscon [label="gscon_connect_mgw_to_msc()"]; |
| 62 | ...; |
| 63 | ass <- gscon [label="ASSIGNMENT_EV_MSC_MGW_OK"]; |
| 64 | ass box ass [label="assignment_success()"]; |
| 65 | ass => msc_ [label="BSSMAP Assignment Complete"]; |
| 66 | ass -> gscon [label="gscon_change_primary_lchan()"]; |
| 67 | lchan <- gscon [label="LCHAN_RTP_EV_ESTABLISHED"]; |
| 68 | ass abox ass [label="terminate"]; |
| 69 | ass -> gscon [label="GSCON_EV_ASSIGNMENT_END"]; |
| 70 | gscon abox gscon [label="ST_ACTIVE"]; |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 71 | |
Neels Hofmeyr | 71e5a82 | 2018-05-26 23:53:31 +0200 | [diff] [blame] | 72 | } |