Monitor Customized SM
Overview
A customized service models monitoring xApp is designed to collect the states from the RAN functions in E2-Nodes via different customized SMs, including MAC, RLC, PDCP, GTP, and SLICE SMs. It prints out the one way latency of indication message, which is sent from E2-Node to xApp. It includes the following stages:
- Init: initializes xApp based on configuration to set up the E42 connection with NearRT-RIC
- Report Service: subscribes RAN functions to each E2-Node based on the configured service model
- xApp Logic: prints out one way latency of each SM's indication message
- Exit: unsubscribes and terminates xApp
Sequence Diagram
Detail
source code: xapp_cust_moni.py
Init - Step 2 to 6
- Used Functions
Report Service - Step 7 to 13
- Used Function
report_{SM-NAME}_sm()
report_mac_sm()
report_rlc_sm()
report_pdcp_sm()
report_gtp_sm()
report_slice_sm()
xApp Logic - Step 14
- Used Function
{SM-NAME}Callback()
MACCallback()
RLCCallback()
PDCPCallback()
GTPCallback()
SLICECallback()
Note: Each indication message received through
MAC/RLC/PDCP/GTP/SLICECallback()
follows the respective structure ofswig_mac/rlc/pdcp/gtp/slice_ind_msg_t
. For complete decoding of the message contents, understanding this structure is crucial.
Exit - Step 15 to 20
- Used functions
rm_report_{SM-NAME]_sm()
rm_report_mac_sm()
rm_report_rlc_sm()
rm_report_pdcp_sm()
rm_report_gtp_sm()
rm_report_slice_sm()
try_stop()