blob: aa89032cc2bd253c963f016f618542fd40d35d4f [file] [log] [blame]
Neels Hofmeyr1971b672020-01-23 04:40:51 +01001digraph G {
2rankdir=TB
3labelloc=t; label="HLR Proxy MM FSM"
4
5 top,top2,top3[shape=invtriangle,label="(1)"]
6
7 top -> READY
8
9 new [label="proxy_cache_subscr_new()\n/ proxy_cache_subscr_from_db()",shape=box]
10 READY [style=bold]
11 HIBERNATE [shape=note,label="Hibernate\n (keep in DB)"]
12 CLEAR [shape=box,label="Clear DB entry\n (discard completely)"]
13 WAIT_AUTH_TUPLES [style=bold]
14 WAIT_SUBSCR_DATA [style=bold]
15 WAIT_GSUP_ISD_RESULT [style=bold]
16
17 home_fsm [label="Proxy to Home HLR FSM",shape=box3d]
18 {rank=same;READY,home_fsm}
19
20
21 new -> {READY,home_fsm}
22
23 READY -> {event_lu_req,event_auth_info_req} [arrowhead=none]
24
25 event_auth_info_req [shape=rarrow,label="Rx GSUP\nSend Auth Info Request\nfrom MSC"]
26 event_auth_info_req -> junction_send_auth_info_req
27 junction_send_auth_info_req [shape=diamond,label="Unused\nauth tuples\navailable?"]
28 junction_send_auth_info_req -> action_send_auth_info [label="yes"]
29 junction_send_auth_info_req -> emit_need_tuples [label="no"]
30 emit_need_tuples [shape=lpromoter,label="emit\n HOME_EV_CHECK_TUPLES\n to Home FSM"]
31 emit_need_tuples->WAIT_AUTH_TUPLES
32 WAIT_AUTH_TUPLES -> rx_ev_rx_auth_tuples [arrowhead=none]
33 rx_ev_rx_auth_tuples [shape=rpromoter,label="receive\n MM_EV_RX_AUTH_TUPLES"]
34 rx_ev_rx_auth_tuples -> action_send_auth_info
35 action_send_auth_info [shape=larrow,label="Tx GSUP\nSend Auth Info Result\nwith fresh auth tuples\n to MSC"]
36 action_send_auth_info -> emit_check_tuples
37 emit_check_tuples [shape=lpromoter,label="emit\n HOME_EV_CHECK_TUPLES\n to Home FSM"]
38 emit_check_tuples -> top2
39 WAIT_AUTH_TUPLES -> junction_check_auth_fallback [label="Timeout",style=dashed]
40 junction_check_auth_fallback -> action_do_auth_fallback [label="yes",style=dashed]
41 action_do_auth_fallback [shape=larrow,label="Tx GSUP\nSend Auth Info Result\nwith recycled auth tuple\n(GSM AKA only)"]
42 junction_check_auth_fallback [shape=diamond,label="Re-usable\nauth tuples\navailable?"]
43 junction_check_auth_fallback -> action_fail_auth [label="no",style=dashed]
44 action_fail_auth [shape=larrow,label="Tx GSUP\nSend Auth Info Error\npending re-connection to\nthe home HLR"]
45 {action_do_auth_fallback,action_fail_auth} -> top2 [style=dashed]
46
47 event_lu_req [shape=rarrow,label="Rx GSUP\nUpdate Location Request\nfrom MSC"]
48 event_lu_req -> emit_lu_req
49 emit_lu_req [shape=lpromoter,label="emit\n HOME_EV_CONFIRM_LU"];
50 emit_lu_req -> junction_check_subscriber_data
51 junction_check_subscriber_data [shape=diamond,label="Subscriber\nData\nknown?"]
52 junction_check_subscriber_data -> WAIT_SUBSCR_DATA [label=no]
53 WAIT_SUBSCR_DATA -> rx_ev_subscr_data [arrowhead=none]
54 rx_ev_subscr_data [shape=rpromoter,label="receive\n MM_EV_RX_SUBSCR_DATA"];
55 rx_ev_subscr_data -> action_subscr_data_req
56 junction_check_subscriber_data -> action_subscr_data_req [label="yes"]
57 action_subscr_data_req [shape=larrow,label="Tx GSUP\n Insert Subscriber Data\n Request to MSC"]
58 action_subscr_data_req -> WAIT_GSUP_ISD_RESULT
59 WAIT_GSUP_ISD_RESULT -> tx_gsup_isd_res [arrowhead=none]
60 tx_gsup_isd_res [shape=rarrow,label="Rx GSUP\n Insert Subscriber Data Result\nfrom MSC"]
61 tx_gsup_isd_res -> top3
62
63 {WAIT_GSUP_ISD_RESULT,WAIT_SUBSCR_DATA} -> action_lu_reject [label="Timeout",style=dashed]
64 action_lu_reject [shape=larrow,label="Tx GSUP\nUpdate Location Error\nto MSC\npending reconnect of home HLR"]
65 action_lu_reject -> top3 [style=dashed]
66
67 READY -> HIBERNATE [label="Timeout"]
68 READY -> rx_ev_subscr_invalid [arrowhead=none]
69 rx_ev_subscr_invalid[shape=rpromoter,label="receive\n MM_EV_SUBSCR_INVALID"]
70 rx_ev_subscr_invalid -> tx_purge_req
71 tx_purge_req [shape=larrow,label="Tx GSUP\nPurge MS Request"]
72 tx_purge_req -> note_purge [style=dotted]
73 note_purge [shape=note,label="Don't care about\nPurge MS Result"]
74 tx_purge_req -> CLEAR
75 {CLEAR,HIBERNATE} -> TERM
76 TERM[shape=octagon][style=bold]
77
78}