相关协议:

3GPP TS 24.301
6.6.1.2    ESM information request procedure
6.6.1.2.1    General
The ESM information request procedure is used by the network to retrieve ESM information, i.e. protocol configuration options, APN, or both from the UE during the attach procedure if the UE indicated in the PDN CONNECTIVITY REQUEST message that it has ESM information that needs to be sent security protected. The purpose of this procedure is to provide privacy for the ESM information if ciphering is enabled in the network.
6.6.1.2.2    ESM information request initiated by the network
The network intiates the ESM information request procedure by sending a ESM INFORMATION REQUEST message to the UE, starting timer T3489 and entering the state PROCEDURE TRANSACTION PENDING (see example in figure 6.6.1.2.2.1). This message shall be sent only after the security context has been setup, and if the ESM information transfer flag has been set in the PDN CONNECTIVITY REQUEST message.

The MME shall set the EPS bearer identity of the ESM INFORMATION REQUEST message to the value "no EPS bearer identity assigned" and include the PTI from the associated PDN CONNECTIVITY REQUEST message.

    UE                                        NetworkESM INFORMATION REQUEST<---------------------------------------  Start T3489ESM INFORMATION RESPONSE--------------------------------------->  Stop T3489

Figure 6.6.1.2.2.1: ESM information request procedure

6.6.1.2.3    ESM information request completion by the UE
Upon receipt of the ESM INFORMATION REQUEST message, the UE shall send an ESM INFORMATION RESPONSE message to the network. The UE shall include all the protocol configuration options that need to be transferred security protected, and APN if required, to the network in the ESM INFORMATION RESPONSE message. The UE shall set the EPS bearer identity of the ESM INFORMATION RESPONSE message to the value "no EPS bearer identity assigned" and include the PTI from the ESM INFORMATION REQUEST message.

6.6.1.2.4    ESM information request completion by the network
Upon receipt of the ESM INFORMATION RESPONSE message, the network shall stop timer T3489 and enter the state PROCEDURE TRANSACTION INACTIVE. A protocol configuration options IE or extended protocol configuration options IE included in the ESM INFORMATION RESPONSE message replaces any protocol configuration options IE or extended protocol configuration options IE that the network previously may have received during the attach procedure execution.
6.6.1.2.5    Abnormal cases in the UE
Apart from the case described in subclause 6.3.3, no abnormal cases have been identified.
6.6.1.2.6    Abnormal cases on the network side
The following abnormal cases can be identified:
a)    Expiry of timer T3489:
    On the first expiry of the timer T3489, the MME shall resend the ESM INFORMATION REQUEST message and shall reset and restart timer T3489. This retransmission is repeated two times, i.e. on the third expiry of timer T3489, the MME shall

abort the procedure, release any resources for this procedure and reject the associated PDN connectivity procedure including the ESM cause #53 "ESM information not received", in the PDN CONNECTIVITY REJECT message.

6.6.1.2    ESM信息请求过程
6.6.1.2.1    概述
如果UE在PDN连接请求消息中指示其具有需要发送安全保护的ESM信息,则网络使用ESM信息请求过程在附着过程中从UE获取ESM信息,即协议配置选项、APN或两者。如果网络中启用了加密,则此过程的目的是为ESM信息提供隐私。
6.6.1.2.2    网络发起的ESM信息请求
网络通过向UE发送ESM信息请求消息、启动计时器T3489并进入过程事务挂起状态来初始化ESM信息请求过程(见图6.6.1.2.2.1中的示例)。只有在设置了安全上下文之后,并且如果在PDN连接请求消息中设置了ESM信息传输标志,才应发送此消息。MME应将ESM信息请求消息的EPS承载身份设置为“未分配EPS承载身份”的值,并包括来自相关PDN连接请求消息的PTI。

    UE                                        NetworkESM INFORMATION REQUEST<---------------------------------------  Start T3489ESM INFORMATION RESPONSE--------------------------------------->  Stop T3489

图 6.6.1.2.2.1: ESM信息请求过程

6.6.1.2.3    UE完成ESM信息请求

在收到ESM信息请求消息后,UE应向网络发送ESM信息响应消息。UE应在ESM信息响应消息中包括需要安全保护传输的所有协议配置选项以及APN(如果需要)到网络。UE应将ESM信息响应消息的EPS承载身份设置为“未分配EPS承载身份”的值,并包括来自ESM信息请求消息的PTI。
6.6.1.2.4    网络完成ESM信息请求
收到ESM信息响应消息后,网络应停止计时器T3489并进入程序事务未激活状态。ESM信息响应消息中包含的协议配置选项IE或扩展协议配置选项IE将替换网络先前在附着过程执行期间可能接收到的任何协议配置选项IE或扩展协议配置选项IE。
6.6.1.2.5    UE中的异常情况
除第6.3.3节所述情况外,未发现异常情况。
6.6.1.2.6    网络侧异常情况
可以识别以下异常情况:

a) 计时器T3489到期:

计时器T3489首次到期时,MME应重新发送ESM信息请求消息,并应重置和重新启动计时器T3489。此重传重复两次,即在计时器T3489第三次到期时,MME应中止该过程,释放该过程的任何资源,并拒绝相关PDN连接过程,ESM原因53“ESM信息未收到”包括在PDN连接拒绝消息中。

高通modem日志:

[0xB0ED]                 OTA LOG                  07:12:16.836016          LTE NAS EMM Plain OTA Outgoing Message Attach request Msg       1
        pdn_connectivity_req
          pdn_type = 1 (0x1) (Ipv4)
          req_type = 1 (0x1) (initial request)
          info_trans_flag_incl = 1 (0x1)
          esm_info_trans_flag = 1 (0x1) 
[0xB0EC]                 OTA LOG                  07:12:17.037031          LTE NAS EMM Plain OTA Incoming Message Authentication request Msg 1
[0xB0ED]                 OTA LOG                  07:12:19.558281          LTE NAS EMM Plain OTA Outgoing Message Authentication response Msg 1
[0xB0EC]                 OTA LOG                  07:12:20.062057          LTE NAS EMM Plain OTA Incoming Message Security mode command Msg 1
[0xB0ED]                 OTA LOG                  07:12:20.066016          LTE NAS EMM Plain OTA Outgoing Message Security mode complete Msg 1
[0xB0E2]                 OTA LOG                  07:12:20.217995          LTE NAS ESM P

[0xB0E2]                 OTA LOG                  07:12:20.217995          LTE NAS ESM Plain OTA Incoming Message ESM information request Msg 1
prot_disc = 2 (0x2) (EPS session management messages)
trans_id = 1 (0x1)
msg_type = 217 (0xd9) (ESM information request)
lte_esm_msg
[0xB0E3]                 OTA LOG                  07:12:20.220052          LTE NAS ESM Plain OTA Outgoing Message ESM information response Msg 1
prot_disc = 2 (0x2) (EPS session management messages)
trans_id = 1 (0x1)
msg_type = 218 (0xda) (ESM information response)
lte_esm_msg
  esm_info_res
    acc_pt_name_incl = 1 (0x1)
    access_point_name
      num_acc_pt_val = 6 (0x6)
      acc_pt_name_val[0] = 5 (0x5) (length)
      acc_pt_name_val[1] = 67 (0x43) (C)
      acc_pt_name_val[2] = 77 (0x4d) (M)
      acc_pt_name_val[3] = 73 (0x49) (I)
      acc_pt_name_val[4] = 79 (0x4f) (O)
      acc_pt_name_val[5] = 84 (0x54) (T)
    prot_config_incl = 0 (0x0)
    ext_prot_config_incl = 0 (0x0)

esm_info_trans_flag是如何赋值的?

AP设置过RIL_REQUEST_SET_INITIAL_ATTACH_APN到modem后esm_info_trans_flag会被赋值为1.
在SIM loaded或者apn change之后,查找ia类型的APN,设置attach APN给modem。具体流程主要分为以下几个步骤:
1.从modem获取attach pdn list,发送消息 QMI_WDS_GET_LTE_ATTACH_PDN_LIST_REQ_V01
2.判断当前APN是否能够在attach pdn list中匹配成功,调用qdp模块函数qdp_match_lte_attach_profile_params()
3.如果没有匹配成功,则调用qdp模块函数qdp_lte_attach_profile_lookup()创建新的attach APN
4.设置 ia apn给modem,发送消息 QMI_DSD_SET_APN_INFO_REQ_V01
5.更新attach pdn list,,发送消息 QMI_WDS_SET_LTE_ATTACH_PDN_LIST_REQ_V01
6. PS detach , 发送消息 QMI_NAS_SET_SYSTEM_SELECTION_PREFERENCE_REQ_MSG_V01

esm_info_trans_flag之APN研究相关推荐

  1. Android 系统(169)---Android 7.0 插卡后APN信息的加载流程

    Android 7.0 插卡后APN信息的加载流程.UI界面编辑APN的流程及Android中APN配置相关的漏洞 终端中有一个apns-config.xml文件,负责定义各个运营商规定的默认APN参 ...

  2. 全球与中国稀土荧光粉市场深度研究分析报告

    [报告篇幅]:108 [报告图表数]:153 [报告出版时间]:2021年12月 报告摘要 2021年全球稀土荧光粉市场销售额达到了3.9亿美元,预计2028年将达到3.6亿美元,年复合增长率(CAG ...

  3. android apn切换工具,Android修改和添加APN网络

    由于工作中需要用到网络的判断和APN的切换,研究了一下Android中APN的修改和切换,关于APN的基础知识,这里就不在介绍了,自己百度就行! 直接进入正题: 1.建立一个android工程,需要如 ...

  4. Android 7.0 插卡后APN信息的加载流程、UI界面编辑APN的流程及Android中APN配置相关的漏洞

    终端中有一个apns-config.xml文件,负责定义各个运营商规定的默认APN参数. 开机后,终端启动Phone进程时,会加载运行在Phone进程中的TelephonyProvider. Tele ...

  5. 苹果审核规则研究,实时更新

    Introduction(资料日期,2015-12-11) We're pleased that you want to invest your talents and time to develop ...

  6. 5G MEC场景下移动终端IP地址固定方法研究

      摘要:  在企业通过5G.边缘计算.专网等新技术推进数字化改造的过程中,越来越多的终端和设备将通过5G接入,终端现有的动态IP地址获取方式无法满足企业实际生产管理的需要,因此有必要为企业提供在专网 ...

  7. 【Android 数据业务解析】APN参数创建

    手机可以上网,首先要建立数据连接,建立数据连接之前需要有apn才可以,所以本节先研究APN参数的创建过程. 在DcTracker.java中,创建APN的起点方法为createAllApnList方法 ...

  8. Android APN设置 获取APN列表

    转自:http://blog.csdn.net/skiffloveblue/article/details/7920655 由于Android对于APN的网络API没有公开,不过我们可以阅读源代码,然 ...

  9. Android MMS APN工作原理以及PDP知识摘要

    大概了解Mms机制,发现发送彩信时,使用的是另一路APN.因此以此为追踪入口. MmsNetworkManager.java>>>connectivityManager.reques ...

最新文章

  1. 独家 | 在Python中使用广义极端学生化偏差(GESD)进行异常检测(附链接)
  2. MyBatis学习总结(八)——Mybatis3.x与Spring4.x整合
  3. 【RHCE学习笔记】基于安全的NFS认证(kerberos)
  4. MySQL第5天:MySQL的架构介绍之主要配置文件
  5. 关于LoginFilter的问题
  6. mybatis传递多个参数_Mybatis传递多个参数的4种方式(干货)
  7. asp.net 生成、解析条形码和二维码
  8. 设计模式学习笔记--Mediator 中介者模式
  9. c语言通过什么传递参数 寄存器,关于使用寄存器传参解决方法
  10. 常用公差配合表图_ER弹簧夹头配套BT刀柄常用规格型号表
  11. linux下make 文件写法之简单函数调用
  12. Visual Studio 2017 15.5 正式发布,性能再提升
  13. mysqlinnodb教程_MySQL创建数据表时设定引擎MyISAM/InnoDB操作
  14. HTML怎么插入一段代码
  15. Win10台式电脑怎么不拔网线断网
  16. 为什么python叫爬虫_python为什么叫爬虫
  17. CSS外边距塌陷问题,吊打面试官
  18. php实现股票日线数据转换为周线月线,通达信引用月线数据,如何在日线里调用周线和月线函数?...
  19. 计算长方形的周长和面积(类和对象)
  20. 高德地图地理编码和逆地理编码,以及逆地理编码的时候如何去掉省、市、镇

热门文章

  1. 矩阵分析与应用(12)
  2. 一个自学网络安全攻防的弱鸟简单描述下关于压力测试如何实现的
  3. 浅析互联网产品设计中的色彩心理学
  4. 怎样学好计算机英语,怎样学好小学英语
  5. IDEA新推出的优雅美观字体初体验(赏心悦目)——JetBrainsMono
  6. 解答c语言的app,你学c语言用的什么app?
  7. 干支纪年、干支纪月、干支纪日、干支纪时
  8. 商务咖啡机实力推荐——Barsetto百胜图BAV01咖啡机
  9. 易语言 python库_精易Python支持库 (1.1#1205版)发布啦!
  10. Ext4 超级块详解