欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

NAS层架构

程序员文章站 2022-06-16 17:58:49
前言:目录 MN 模块 REG 模块 SM 模块 MBMSM 模块 CB 模块 关键字参考文档https://blog.csdn.net/u011212816/article/details/97394498https://www.csdn.net/gather_21/MtjaIg4sNTgwMTEtYmxvZwO0O0OO0O0O.htmlhttps://blog.csdn.net/u01121......

前言:

     主要參考如下文档,對NAS 做了總結

https://blog.csdn.net/twjy1314/article/details/68065029

https://blog.csdn.net/xiashaohua/article/details/40828969?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf

https://blog.csdn.net/macrohasdefined/article/details/19974069?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.edu_weight
https://blog.csdn.net/zhangchangfeng1/article/details/100011608?utm_medium=distribute.pc_relevant.none-task-blog-title-11&spm=1001.2101.3001.4242
https://blog.csdn.net/perimeter/article/details/44836199?utm_medium=distribute.pc_relevant.none-task-blog-title-14&spm=1001.2101.3001.4242
https://blog.csdn.net/u011212816/article/details/81901356?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.edu_weight
https://blog.csdn.net/zhangchangfeng1/article/details/100011136?utm_medium=distribute.pc_relevant.none-task-blog-title-7&spm=1001.2101.3001.4242
https://blog.csdn.net/qq_27540925/article/details/79459111?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight
https://download.csdn.net/download/qq_27540925/10271778
https://blog.csdn.net/qq_27540925/article/details/79467754
https://blog.csdn.net/u011263761/article/details/79896301?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight
https://blog.csdn.net/keyanting_2018/article/details/88423362?utm_medium=distribute.pc_relevant.none-task-blog-title-2&spm=1001.2101.3001.4242
https://blog.csdn.net/qq_43631743/article/details/106420674?utm_medium=distribute.pc_relevant_download.none-task-blog-baidujs-8.nonecase&depth_1-utm_source=distribute.pc_relevant_download.none-task-blog-baidujs-8.nonecase
https://zhuanlan.zhihu.com/p/62245921
https://www.cnblogs.com/zxc2man/p/7778058.html
http://sigquit.wordpress.com/2012/08/20/an-introduction-to-libqmi/ http://www.lanedo.com/users/amorgado/talks/FOSDEM2013%20-%20Mobile%20broadband%20modem%20control%20protocols.pdf http://blogs.gnome.org/dcbw/2010/04/15/mobile-broadband-and-qualcomm-proprietary-protocols/
https://blog.csdn.net/zhangpengzhen1990/article/details/107432403
https://www.csdn.net/gather_22/MtTagg1sNTIzMDgtYmxvZwO0O0OO0O0O.html
https://wenku.baidu.com/view/86911e291cb91a37f111f18583d049649a660e49.html
https://wenku.baidu.com/view/a54c242e6edb6f1aff001fbf.html
https://max.book118.com/html/2019/0603/8057002073002026.shtm
http://www.mamicode.com/info-detail-478669.html
https://wenku.baidu.com/view/678adb3e05a1b0717fd5360cba1aa81145318f76.html
https://blog.csdn.net/perimeter/article/details/44836199?locationNum=3
https://wenku.baidu.com/view/ab36e7788c9951e79b89680203d8ce2f00666505.html

https://blog.csdn.net/u011212816/article/details/97394498
https://www.csdn.net/gather_21/MtjaIg4sNTgwMTEtYmxvZwO0O0OO0O0O.html
https://blog.csdn.net/u011212816/article/details/81069710
https://blog.csdn.net/qq_36562473/article/details/78535222?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25-5-78535222.nonecase&utm_term=nas%E5%B1%82%20qxdm&spm=1000.2123.3001.4430
https://blog.csdn.net/u011263761/article/details/79896301?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25-8-79896301.nonecase&utm_term=nas%E5%B1%82%20qxdm&spm=1000.2123.3001.4430
https://blog.csdn.net/zhangchangfeng1/article/details/100011136?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25-9-100011136.nonecase&utm_term=nas%E5%B1%82%20qxdm&spm=1000.2123.3001.4430
https://blog.csdn.net/keyanting_2018/article/details/88407069?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight
https://blog.csdn.net/qq_30943197/article/details/81434284?utm_medium=distribute.pc_relevant.none-task-blog-utm_term-10&spm=1001.2101.3001.4242
https://zhuanlan.zhihu.com/p/62245921
http://bbs.16rd.com/thread-17115-1-1.html
https://www.baidu.com/link?url=X5uVJJTgutaV7QkvduU_mkKs5HnVp62Z2YZPJuz9MVQCisrWLnUFAMaIAGdi2ApNfQ56HQYuIPh-d-s-ODsNo_&wd=&eqid=cc03e06e000342aa000000025f8f969f
https://blog.csdn.net/zhangbijun1230/article/details/79951752

 

目录

  1.       MN 模块
  2.       REG 模块
  3.        SM 模块
  4.        MBMSM 模块
  5.        CB 模块
  6.        TC 模块

一  MN 模块

      1.1 作用

              存储以及路由 Call, SS,SMS 消息

             主要跟CM,CNM模块进行交互

             本地有个数据库,存储Call, ss,SMS 消息

    1.2  消息交互定义

            

模块 模块 文件
MN CM mn_cm.h(cm_mo_normal_call_req_T,消息类型
MN CNM mn_cc.h  OTA参数
MN CNM mn_ss.h OTA参数
MN CNM mn_sms.h OTA参数

 

              1.3  MN  与 CM 交互

               作用:

                         消息路由

                 参考文件:

                          mn_route_cc_msgs.c,

                          mn_route_ss_msgs.c,

                          mn_route_sms_msgs.c

                       

                 主要函数:

                 MN_route_CC_to_MN_messages,

                 MN_route_SS_to_MN_primitives,

                 MN_route_SMS_to_MN_primitives 

 

                 MN  与 CNM 交互

                作用:

                       发往底层的 消息格式组装

                文件:

                       mn_cc_processing.c,

                       mn_process_cnm_cc_msgs.c

                       mn_route_ss_msgs.c,

                       mn_get_cnm_ss_msgs.c, mn_put_cm_ss_msgs.c

                       mn_put_cnm_sms_msgs.c,

                       mn_process_cnm_sms_msgs.c,

                       mn_put_uasms_msgs.c,

                       mn_process_smrl_msgs.c 

                 参考函数:
                        MN_request_mo_call_setup(),

                        MN_handle_MNCC_CALL_PROC_IND(),

                        MN_handle_MNCC_PROGRESS_IND等

               关键字

                        msg_type=|callcmd|callevt|mnutils.c|cc_state_

                        Log packets

                       0x7001, 0x713A, 0X12C1

               日志:

                                            NAS层架构

                               

18:05:12.721033          Call Manager/High        [             cmdbg.c   3652] >>CM callcmd 0, tsk=qmi_mmode, client_type=17                                                                                                      
18:05:12.723212          Call Manager/High        [             cmdbg.c   3652] >>CM callcmd 12, tsk=qmi_mmode, client_type=17     

                                         其中 callcmd  在cm.h 中定义:

                                          NAS层架构     


二    REG 模块

           主要作用:

            2.1 选网和注册

                   优先级: RPLMN=>HPLMN=>other PLMN (signal quality)

               

            2.2 手动驻网

                   PLMN 由 用户指定

          2.3  管理内容

                  CS/PS  RAT(LTE,UMTS, 5G ,GSM)

          2.4 搜网场景

                   漫游的时候,周期性搜网;

                   驻留在visiting PLMN 时候,开启定时器周期性搜网(2min--6min)

     

                   

           NAS层架构 

       

关键字: MMR_REG_REQ|=REG=|MMR_CAMPED_IND  

//CM  SIM Status Changed  and  Notify REG SIM status Changed
Call Manager/High        [          cmregprx.c   4965] =CMREGPRX= CMREG->NAS: sub 0, Send SIM_AVAILABLE_REQ, gwl_subs_avail 1, mode_pref 1, session_type 0, nv_context 0                         
NAS REG/High             [reg_state_inactive.c    478] DS: SUB 1 =REG= REG_STATE_INACTIVE    
NAS REG/High             [         reg_state.c   9987] DS: SUB 1 =REG= CM_SIM_AVAILABLE_REQ mode_pref:1, session_type:0 nv_index:0     
NAS REG/High             [         reg_state.c   1220] DS: SUB 1 =REG= sent message MS: 7   MSG_ID: 123         



//SERVICE REQ
NAS REG/High             [         reg_state.c   9965] DS: SUB 1 =REG= CM_SERVICE_REQ     
NAS REG/High             [          reg_send.c    641] DS: SUB 1 =REG= REG_SERVICE_STATE_IND                       
NAS REG/High             [         reg_state.c   3257] DS: SUB 1 =REG= CM_SERVICE_REQ - AUTOMATIC type=2                    
NAS REG/High             [          reg_send.c   1914] DS: SUB 1 =REG= MMR_REG_REQ PLMN(460-1) RAT(0-GSM,1-W,2-LTE,3-TDS) = 1 netsel 0, type 1 grat_scan_done 0 trans_id 1 trm_timeout -1  
NAS REG/High             [reg_state_registering.c    276] DS: SUB 1 =REG= REG_STATE_REGISTERING          


//MM Camp req
NAS MM/High              [            mmsend.c   1480] DS: SUB 1 =MM= MM sent MMR_CAMPED_IND  RAT : 1, BAND : 4194304     
NAS MM/High              [            mmsend.c   1889] DS: SUB 1 =MM= MM sent MMR_REG_CNF\n =MM=   cause = 0 sim_state = 1 svc_capability = 3 \n=MM= plmn_forbidden = 0 svc_status = 2 reg_svc_domain = 1           
NAS REG/High             [         reg_state.c  11157] DS: SUB 1 =REG= CS_SERVICE on HPLMN(460-1)                         reg_state.c              11157          


//After finishing CS registration, i.e., LOCATION UPDATE, procedure, REG received MMR_SERVICE_IND indicates that UE has acquired CS domain Full Service. REG went to REG_STATE_IDLE     
NAS REG/High             [    reg_state_idle.c   1922] DS: SUB 1 =REG= REG_STATE_IDLE      


//After finishing PS registration, i.e., ATTACH, procedure, REG received MMR_SERVICE_IND indicates that UE has acquired Full Service in both CS and PS domains. 
EVENT_NAS_MESSAGE_SENT   Message ID: LOCATION_UPDATING_REQUEST Message Set: PD_MM Channel: 01                                                                                                                               EVENT_NAS_MESSAGE_SENT   Message ID: GMM_ATTACH_REQUEST Message Set: PD_GMM Channel: 01                                                                                                                                       EVENT_NAS_MESSAGE_RECEIVEDMessage ID: GMM_IDENTITY_REQUEST Message Set: PD_GMM Channel: 01                                                                                                                                   EVENT_NAS_MESSAGE_SENT   Message ID: GMM_IDENTITY_RESPONSE Message Set: PD_GMM Channel: 01                                                                                                                                EVENT_NAS_MESSAGE_RECEIVEDMessage ID: AUTHENTICATION_REQUEST Message Set: PD_MM Channel: 01                                                                                                                            EVENT_NAS_MESSAGE_RECEIVEDMessage ID: GMM_AUTHENTICATION_AND_CIPHERING_REQUEST Message Set: PD_GMM Channel: 01                                                                                      EVENT_NAS_MESSAGE_SENT   Message ID: AUTHENTICATION_RESPONSE Message Set: PD_MM Channel: 01             

NAS REG/High             [          reg_send.c    784] DS: SUB 1 =REG= CM_SERVICE_IND                        
NAS REG/High             [         reg_state.c  11165] DS: SUB 1 =REG= CS_PS_SERVICE on HPLMN(460-1)                        

         


四  MBMSM    模塊

     MBMS(Multimedia Broadcast Multicast Services),10年的时候当时国内比较流行多媒体电视,当时联芯都提供这些功能。

 

LTE eMBMS视频解决方案最适合的商业模式如下:

1、热门赛事直播,如2014年举行的巴西世界杯,奥运会、NBA等等;

2、热门电视剧直播,热点时段由OTT视频业务提供方定点定时直播热播电视连续剧;

3、频道出租,将频道分成小片段租赁给OTT视频网站;

4、将业务能力分成碎片,实现小包内业务推送,如手机报、视频手机报、热门新闻、热门音乐、股市行情、天气、运动会信息更新;

5、重大事件公布,如地震、台风、暴雨等大事件广播发布。

6、夜间整部大片推送,将热门电影以超清码率夜间推送到手机、PAD,实现按内容收费。

7、热门应用批量更新;

8、广告屏内容推送,实现广告屏幕的批量更新;

9、Push to talk,应用于警务、消防、石油勘探、调度等行业市场;

功能:

      MBMS 上下文管理,最多管理16个

      MBMS  服务管理: 上下文激活功能 ,去激活功能

      链路层建立


五 CB(Cell Broadcast (CB)) 

T echnical Realization of Cell Broadcast Service  3GPP TS 23.041

Broadcast/MulticastControl (BMC) 3GPP TS 25.324

         作用:

         1: 激活去激活CB监听

         2:  处理WMS 搜寻请求

         3: 执行CBS 监听

         4: 转发消息到WMS 模块

   CB模块主要针对GSM, BMC 主要针对WCDMA
   CB 和 BMC 模块跟上层的接口相同,跟底层的接口不同

NAS层架构

NAS层架构

//小区CELL 状态切换
03:00:42.558014          NAS CB/High              [          cb_state.c    920] DS: SUB 1 CB: Moved into COLLECTION INITIATED substate          
03:00:44.306353          NAS CB/High              [          cb_state.c   2139] DS: SUB 1 CB: Received RRC_CELL_CHANGE_IND with N = 0, K = 0       

    


六  TC模块

 作用  

 1  激活/去激活  UE Radio Bearer Testmode

2  开启/停止 UE test loop functions (支持 BER, BLER measurements by SS, etc.)

3  上报 UE’s  RLC SDU counter value
 

本文地址:https://blog.csdn.net/chengxf2/article/details/109195430

相关标签: 芯片开发