




已阅读5页,还剩12页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. 首先第一条initial Attach 消息: 从具体的wireshark的包来看, 这个intial attach包含了两个事件, attach Req+PDN connectivity Req 一个是EMM 层面的消息,一个是ESM 层面的消息。 Attach Req 无需多讲,这是终端登陆网络侧所必须的过程。而PDN Conncetivity Req的出现是为了建立default Bearer。 在NAS 规范24.301 中就是很明确的提出在attach req中所包含的PDN Con Req 是为了最初的default bearer建立所发(这个独立于可能还会和其他APN 所建立的default bearer),在这个PDN Connect Req里UE 侧不需要提交APN的地址,换句话讲, 这个initial default bearer所连向的APN 应该由网络侧来决定。终端只提供了UE 所支持的IP地址类型。 (但是也有例外,虽然规范里要求是这样,但是也有观点认为,UE提供了APN 更有利于UE 对业务需求,例如UE想直接连入企业网,那得需要UE 提供APN,但是这个APN的提供得在鉴权和NAS安全关联建立之后,因为default APN的提供应该估计应该根据实际运营商的业务实现或者客户需求来做) When the PDN CONNECTIVITY REQUEST message is sent together with an ATTACH REQUEST message, the UEshall not include the APN. 而把PDN Connectivity Req和Attach Req绑定的考虑出自于3GPP2 24.301, 4.2节,LTE 中实现了the ip of UE alwanys online的想法。a. 具体来看这个消息体。 在这条消息中,在S1AP 层面上,暂时还只有eNB-UE-S1AP-ID的value,网络侧的S1AP 的 ID 需要等MME 来回复。 b.在NAS 层(如图2所示):其中 EPS mobility message 的地方出现了两次。 ESM PDN Connet Req的消息被包含在EMM 消息中,通过ESM Message container这个IE ,EMM 包含了ESM的内容。 EPS Mobility Message 出现两次的原因是: 这条消息采取了24.301中 9.1 节 所列出的消息编码格式- a security protected NAS message. 如图3 所示: 随后具体到每条NAS 的Message, NAS message 本身又有Protocol discriminator 和 Security header type 的IEI. 所以造成 EPS Mobility managerment message 这个header出现了两次的情况。 (但是为什么要出现两次呢? NAS 具体的Message 的Security header不够么? 为什么还要再加一层Security header上去呢?) 那么如果UE 侧已经有一个valid NAS security context 存在了,那么UE 需要在attach Req 中置上intergrity protect。 对应于3GPP 24301:1) Except for the case described in item 3 below, the UE shall transmit the initial NAS message integrity protectedwith the current EPS security context, but unciphered. The UE shall include the eKSI indicating the current EPSsecurity context value in the initial NAS message. The MME shall check whether the eKSI included in the initialNAS message belongs to an EPS security context available in the MME, and shall verify the MAC of the NASmessage. If the verification is successful, the MME may re-establish the secure exchange of NAS messages:- by replying with a NAS message that is integrity protected and ciphered using the current EPS securitycontext. From this time onward, all NAS messages exchanged between the UE and the MME are sentintegrity protected and except for the messages specified in subclause 4.4.5, all NAS messages exchangedbetween the UE and the MME are sent ciphered; or- by initiating a security mode control procedure. This can be used by the MME to take a non-current EPSsecurity context into use or to modify the current EPS security context by selecting new NAS securityalgorithms;而一个Scurity Context 是通过NAS COUNT 来标示的。 NAS Count对应于NAS Header呢,就是Sequence Number。 MME 通过Sequence Number来找到相对应的Security Context (如果存在的话), 然后再使用 Message Authentication Code来完成检查. 图3c. 随后再打开 ESM Message Container 这个IEI。 可以看到:在这段消息体内,值得注意的是这几个header: EPS bearer identity , Procedure transaction id。copy from 24.007:The EPS bearer identity is used to identify a message flow。 这个 NAS 中的EPS bearer id 和随后在GTP-C 上建立的Bearer Context ID 相互对应。Procedure transaction: A L3 protocol may define that the second octet of a standard L3 message of the protocol contains the proceduretransaction identity (PTI). The PTI allows distinguishing up to 254 different bi-directional messages flows for a givenPD and a given SAP. Such a message flow is called a transaction. The procedure transaction identity is released whenthe procedure is completed.对于这两个heder在LTE 中的运用,24.301 又给出了详细的描述。 参看 6.3.2.并且通过24.007 中的routing model来看, PTI+PD 是EMM 用来routing消息给ESM 的。 而一旦bearer context 建立完,ESM 能够分配出context id后,后续的消息就不需要PTI了。例如: PDN Context Req (from UE to MME) 中需要有PTI, EPS default Bearer req (from MME to UE) 需要有(PTI,EBI) , 随后的 EPS default bearer Resp (from UE to MME)只需要有EBI了,就不需要PTI了。 在这个过程中,EMM层需要为ESM 提供一个routing服务,EMM 通过PTI来区分向ESM 建立不同的transcription, MME 收到req之后,回出的 Default Bearer Req 中,也需要PTI,是因为它需要向UE 标明 它是为了之前那条ESM transaction分配了EBI, UE 收到之后,双方在ESM 上达成了统一,就不需要PTI的配合了,因为Bearer ID 的唯一性就足够EMM 在随后的过程中,将ESM的消息路由给相对应的EMS layer来处理。 这个default Beraer的的建立在MME 被pending在那边,因为要完成EMM的过程之后, MME 才会去处理ESM 的状态机。NAS 的PTI,EBI的再次出现要等到MME-SGW-PGW之间的bearer context 建立完成后。2) 随后New MME 向 UE 要求获取IMSI, MME 可以根据IMSI 向 HSS 要求鉴权数据以及随后的用户数据。但这个时候因为security mode还未建立,所以NAS 层面的消息是Plain NAS message, not security protected, 应该也算危险的地方。3) MME 收到IMSI 之后,和HSS 通过diameter 的AIR/AIA 完成鉴权五元组的交互。4) MME 向UE 发送 RAND ,AUTN value, 要求UE上报鉴权数据。5) MME 收到 NAS Authentication Resp,鉴权通过之后, 开始security mode 的建立。 按照 24.301 中 的规定, The SECURITY MODE COMMAND message sent by the MME includes the eKSI of the new EPSsecurity context to be used. The MME shall send the SECURITY MODE COMMAND message integrity protectedwith the new EPS security context, but unciphered. When the UE responds with a SECURITY MODE COMPLETE, itshall send the message integrity protected and ciphered with the new EPS security context. MME 下发的Security Command 只是integrity protected and unciphered. 但是UE 随后的Security Complete 消息应该是被cipher过的。 但是如果MME 对于cipher的规则选择的是“ null ciphering alogrithm“ EEA0, 虽然随后UE 和MME 之间的NAS 没有经过cipher,但是在security header也必须置上ciphered。 (参见24.301 - 4.4.5, ”If the null ciphering algorithm EEA0 has been selected as a ciphering algorithm, the NAS messages with the security header indicating ciphering are regarded as ciphered”) 具体见图:(还是不理解为啥要插两层EMM 的 Security header 进去, 第一层的Security header 可以理解, 但是第二层对于具体的EMM ,为啥还需要一个security header呢,直接被包含在第一层不行么?)6) 接下来就是MME 得去HSS 取数据了。使用DIAMETER ULR/ULA. 再分个子节吧。感觉这部分用户很重要。没有完全看过这部分的用户数据接续上一次的话题,到MME 像 HSS 请求用户数据, 使用Diameter ULR/ULA过程。ULR 没什么大的描述。着重对ULA 解析下。规范参照3gpp 29272, 23401对于ULA的AVPs来讲,最关心的用户数据都在Subscription-Data中,from 2340.1 step 11:The Subscription Data contain one or more PDN subscription contexts. EachPDN subscription context contains an EPS subscribed QoS profile and the subscribed APN-AMBR (seeclause 4.7.3).如下图: 在APN-Configuration-Profile下有个Context-ID AVP, 给出了 value=2, 那意思就是在随后的几个APN-Configuraions group中选定了 Context 为2 的APN 作为default APN 进行附着。随后点开Context-Identifier 为2 的APN-Configuraion 的AVP 看下:Service-Selection AVP:This IE shall contain the APN for the selected and dynamically allocatedPDN GW. It shall be present if the selected PDN-GW is present and isparticular for one specific APN and not common to all the APNs. 这个也呼应了HSS对于default Bearer提供的APN 不能是Wild type APN。并且这个value是APN的Network Identifier, 于随后的Operation Identifier构成完成的APN,用来做NAPTR/AAA查询去获得PGW地址。对于随后的QOS-Profile理解不好。 QCI 还好理解,但是对Allocation-Retention-Priority 还未理解发生场景。The VPLMN Dynamic Address Allowed AVP is of type Enumerated. It shall indicate whether for this APN, the UE isallowed to use the PDN GW in the domain of the HPLMN only, or additionally, the PDN GW in the domain of theVPLMN. If this AVP is not present, this means that the UE is not allowed to use PDN GWs in the domain of theVPLMN.这段对于后面的PGW选择有关联么? 还是VPLMN 的PGW 会去连接 HPLMN的 PGW?(另外从现场的pcpa来看,如果手机在附着时候请求的APN不是HSS的签约数据中的default APN 地址,那MME 会遵循UE 的APN 去建立 default Bearer ,而不使用HSS中的签约数据)可见规范写规范的。实际用实际的。)那么正常情况下,MME还是应该使用default APN-Configuraion-Profile为UE建立 default Bearer 链接。MME 通过用DNS query 针对PGW selection 完成后,就开始建立tunnel的过程这段开始描述 MME, SGW, PGW 之间建立Tunnel 的过程。主要使用Create Session Req/Resp for default Bearer 和 Create Bearer Request/Resp for dedicated Bearer setup.so, 1st one is MME send to SGW the Create Session Req, the message sample is :1. The tunnel Endpoiint Identifier value is 0 , as the C-TEID for Uplink doesnt assign by the SGW. 2. PDN TYPE is : IPV6 , ask the PGW to assign the ipv6 for the UE.The more important things are t he Fully Qualified Tunnel Endporint Identifier (F-TEID), PCO, and the Bearer Context. There are two F-TEIDs, One is the Control Plane of MME with IP address , another one is for the PGW.( Which is selected by the MME accroding to the APN name by DNS).SGW will do the Create Session REQ/RESP towards the IP of PGW. so that the TEID is 0 for the PGW, Need to wait the PGW to assign the value.About the PCO (Ptorocol Configuration Options )here is a answer that :/ask_the_expert/f/59/t/2422.aspxThe purpose of the Protocol Configuration Options (PCO) is to provide additional optional information about the destination network that the UE is connecting to. For example, when a UE connects to the Internet it will be given an IP address and it will be given a PCO that includes the default gateway IP address, the DNS server address, etc. All of these additional pieces of information are given in the PCO. Give to examples:for the IMS accsss, the UE need to get the PCSCF address.for the internet access, the UE need to get the DNS service ip address.the first one , the IP address allocation via NAS signalling , i think that the UE ip will get be LTE, dont the use the DHCP to get from the external network.for the Bearer Context: MME only assign a EBI, others value need the PGW to assign ( by the Policy and Charging rule from PCRF)2nd one is the Create Session Req from SGW to PGW, most of message header and value are same as the 1st one sent from MME to SGW.Except: The TEID AND IP for Control Plane are changed to SGW, And in the Bearer Context: there is the TEID and IP of SGW towards PGW for User-Plane.到这个地步,MME 和SGW 已经给出了下行信令面通道会使用到的TEID 和IP,并且SGW 也给出了下行通道会使用到的用户面的TEID和IP。随后PGW 就会分配相应的QOS,信令面和用户面,但是这个qos 和charging rule 也收到PCRF 的控制。扔到第4节描述下PCRF的流程,再回来写PGW的。继续上次, MME,SGW 已经开始建立tunnel。 现在轮到PGW了。 在发送Create Session Response的时候,PGW 需要向PGW 请求用户数据。规范3gpp 23203, 3gpp 29210, 3gpp 29212.根据 23203 里的架构, PGW (PCEF) 向 PCRF 请求用户有关Policy 和Charing rule的数据。(这里特指用Dynamic rule; predefined rules则是在PGW上预先定义好了,不需要使用GXinterface)。AF 因为没有相应的pcap流程对应,在这不进行描述。The Policy and charging control rule (PCC rule) comprises the information that is required to enable the user planedetection of, the policy control and proper charging for a service data flow. The packets detected by applying theservice data flow template of a PCC rule are designated a service data flow.至于那些informations 在PCEF 和PCRF 中传递, 在23.203 58页已经列出。只看在CCR 消息中的AVPs:CCR 中的 Default-EPS-Bearer-QoS :When this AVP is sent from the PCEF to the PCRF, it i
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 陕西2025自考舞蹈治疗马克思概论简答题专练
- 江苏2025自考金融学线性代数经管类客观题专练
- 最后一套模拟试题及答案
- 风险预测模型的动态更新机制
- 定心冥想测试题及答案
- 城市更新中的建筑风貌保护与整治
- 黑龙江2025自考教育学教育管理原理主观题专练
- 福建2025自考智能视听工程音视频编解码考前冲刺练习题
- 浙江2025自考婴幼儿管理马克思概论案例题专练
- 唐山初中测试题及答案
- 快件处理员(中级)职业技能鉴定考试题库(含答案)
- JT-T-848-2013公路用复合隔离栅立柱
- 早期工业时期英国工艺美术运动设计课件
- 《江苏住宅物业管理服务标准》(DB32T538-2002)
- 装饰装修质量通病防治质量通病防治措施
- 物理课件电源和电流
- 《无人机载荷与行业应用》教学课件合集
- 《西安交通大学》课件
- 搜索引擎营销案例分析
- 华信惠悦GGS全球职等系统
- 肝血管瘤患者的护理查房
评论
0/150
提交评论