51学通信技术论坛

 找回密码
 立即注册
搜索
查看: 5795|回复: 7
打印 上一主题 下一主题

探讨:MME如何选择PGW [复制链接]

Rank: 3Rank: 3Rank: 3

跳转到指定楼层
楼主
发表于 2014-7-14 20:10:45 |只看该作者 |倒序浏览
一键分享 一键分享
近期分析4G承载激活成功率时,发现有大量本地号码用CMWAP激活,却使用了外地的PGW。于是对MME如何选择PGW很关注。

我们知道,在2/3G网络下,SGSN选择GGSN是通过DNS解析来进行选择的。

翻阅23.401协议,发现以下相关内容:

5.7        Information storage5.7.1 MME
The MME maintains MM context and EPS bearer context information for UEs in the ECM-IDLE, ECM‑CONNECTED and EMM-DEREGISTERED states. Table 5.7.2-1 shows the context fields for one UE.

PDN GW Address in Use (control plane)  
he IP address of the PDN GW currently used for sending control plane signalling.

5.3.3.1            Tracking Area Update procedure with Serving GW change

5. If the Context Request is sent to an old MME the old MME responds with a Context Response (ME Identity (if available), MM Context, EPS Bearer Context(s), Serving GW signalling Address and TEID(s), ISR Supported, MS Info Change Reporting Action (if available), UE Core Network Capability, UE Specific DRX Parameters) message.

      If the Context Request is sent to an old S4 SGSN the old S4 SGSN responds with a Context Response (MM Context, EPS Bearer Context(s), Serving GW signalling Address and TEID(s), ISR Supported, MS Info Change Reporting Action (if available), UE Core Network Capability, UE Specific DRX Parameters).

      The MM Context contains security related information as well as other parameters (including IMSI, ME Identity (if available) and MSISDN) as described in clause 5.7.2 (Information Storage for MME). The unused Authentication Quintets in the MM Context are also maintained in the SGSN. TS 33.401 [41] gives further details on the transfer of security related information.

         The PDN GW Address and TEID(s) (for GTP-based S5/S8) or GRE Keys (PMIP-based S5/S8 at the PDN GW(s) for uplink traffic) and the TI(s), is part of the EPS Bearer Context. If the UE is not known in the old MME/old S4 SGSN or if the integrity check for the TAU Request message fails, the old MME/old S4 SGSN responds with an appropriate error cause. ISR Supported is indicated if the old MME/old S4 SGSN is capable to activate ISR for the UE. The MSISDN is included if the old MME/old S4 SGSN has it stored for that UE.

如上描述,在TAU过程中,old MME向new MME发送Context Response消息中携带了EPS Bearer Context(包含了PDN GW的地址),因此即使是本地用户,只要它到过外地,使用过当地的PGW,它TAU过来后,外地的old MME告诉了本地的new MME相应的PGW地址,终端在此发起承载激活时,MME不需要进行DNS解析,直接从EPS Bearer Context找到之前使用PGW地址。

而detach时(较常见的是关机),EPS Bearer Context 被删除后,用户重新附着、建立承载激活时MME才会向DNS发起APN解析。

这样就解释了为什么会有很多本地用户使用公共APN发起承载激活,本地的MME会选择外地的PGW

这是我结合现网观测到的信令和协议的个人理解,欢迎大家补充、指正


Rank: 2Rank: 2

沙发
发表于 2014-7-15 17:07:27 |只看该作者
感谢楼主案例的分享。我的一个理解是:MME只有在创建PDN连接阶段才会做PGW的选择,TAU或HO都不会触发重选PGW。一个问题是:若一个用户在A地附着并激活PDN连接,跑到B地并永久驻留的话,只要不detach,会永远使用A地的PGW吗?

使用道具 举报

Rank: 4Rank: 4Rank: 4Rank: 4

板凳
发表于 2014-7-16 11:15:03 |只看该作者
有个疑问,难道外地的PGW永久地保存EPS Bearer Context? 没有时间限制?

如果当外地PGW的EPS Bearer Context超时, 应该本地MME不会再外地的PGW吧.

使用道具 举报

Rank: 3Rank: 3Rank: 3

地板
发表于 2014-7-18 08:49:03 |只看该作者
leonzhao2004 发表于 2014-7-15 17:07
感谢楼主案例的分享。我的一个理解是:MME只有在创建PDN连接阶段才会做PGW的选择,TAU或HO都不会触发重选PG ...

个人理解是这样的

使用道具 举报

Rank: 3Rank: 3Rank: 3

5#
发表于 2014-7-18 08:50:34 |只看该作者
lighcen 发表于 2014-7-16 11:15
有个疑问,难道外地的PGW永久地保存EPS Bearer Context? 没有时间限制?

如果当外地PGW的EPS Bearer Conte ...

EPS Bearer Context是在MME上存储的,终端发起承载激活请求时,MME根据EPS Bearer Context的信息来决定将请求送到哪个PGW

使用道具 举报

Rank: 2Rank: 2

6#
发表于 2014-7-18 09:37:28 |只看该作者
lighcen 发表于 2014-7-16 11:15
有个疑问,难道外地的PGW永久地保存EPS Bearer Context? 没有时间限制?

如果当外地PGW的EPS Bearer Conte ...

PGW EPS Bearer context有定时器吗?不太清楚这块。

使用道具 举报

Rank: 2Rank: 2

7#
发表于 2014-7-18 09:39:42 |只看该作者
xiner 发表于 2014-7-18 08:50
EPS Bearer Context是在MME上存储的,终端发起承载激活请求时,MME根据EPS Bearer Context的信息来决定将 ...

初始PDN-GW选择就如你所说,MME决定的。但对于Handover/TAU过来的PDN-GW是从其他MME继承过来的,我的问题是后一种情形。

使用道具 举报

Rank: 2Rank: 2

8#
发表于 2014-10-29 10:43:52 |只看该作者
不错,学习

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

站长邮箱|Archiver|51学通信 ( 粤ICP备11025688 )

GMT+8, 2024-5-3 13:45 , Processed in 0.020810 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部