【5G系列】NAS层PLMN选择(1)——卡文件


原创,原作发于今日头条,后续陆续迁移

introduction

PLMN选择有两种模式:自动选网、手动选网。

按照PLMN选择类型,包括开机选网、用户重选网、OOS选网、高优先级选网等。

如果MS能够提供需要注册的服务,则MS将在PLMN上执行注册。 在自动和手动模式下,都使用PLMN上的注册。 如果满足以下条件,MS将成功在PLMN上注册:

  • MS已经在PLMN上找到了一个suitable 小区驻留
  • 在MS驻留的小区所属的注册区域,发起注册请求被接受

PLMN selection相关卡文件

如果MS能够提供需要注册的服务,则需要在选择的PLMN和区域内发起注册,否则可以不发起。
ME应该使用储存在SIM卡中和PLMN选择相关的信息,下面列举部分,

EFIMSI (IMSI);
EFHPLMNwACT(HPLMN selector with access technology);
EFUPLMNwACT(user controlled PLMN selector with access technology);
EFOPLMNwACT (Operator controlled PLMN selector with Access Technology) ;
EFHPLMNwAcT (HPLMN selector with Access Technology);
EFNASCONFIG (Non Access Stratum Configuration) ;
EFFPLMN (Forbidden PLMNs) ;
EFLRPLMNSI (Last RPLMN Selection Indication) ;
EFEHPLMN (Equivalent HPLMN) ;
EFEHPLMNPI (Equivalent HPLMN Presentation Indication);
EFHPPLMN (Higher Priority PLMN search period) ;

卡文件分析

以上便列举了大致需要的卡文件了,本篇将会对卡文件的使用进行分析:

  • EFHPLMNwACT(HPLMN selector with access technology):

Home Plmn选择器,包含接入技术,是按照优先级的顺序存储的,这个文件非常特殊,里面虽然包含了带优先级的PLMN+RAT,但是里面的PLMN并不能用于选网。"HPLMN Selector with Access Technology"文件只用在获取EHPLMN或推导出的HPLMN相关的RAT及优先级的。

在卡里的存储格式:
在这里插入图片描述
其中PLMN占据了3个Bytes,接入技术占了2个bytes,接入技术是根据这2Bytes中每个bit的值确定是否支持某个接入技术,以5n-1 Bytes为例:
在这里插入图片描述
从上图的bitmap映射中可以看出,如果需要支持NG-RAN,则必须是b4置为1才可以。另外,该bitmap中的多个支持的接入技术并不存在优先级,不过按照常规,我们认为定义NR>LTE>3G>2G这种顺序。

  • EFUPLMNwACT(user controlled PLMN selector with access technology)
  • EFOPLMNwACT (Operator controlled PLMN selector with Access Technology)

这个是用户/运营商控制PLMN及接入技术选择器文件,编码的格式和EFHPLMNwACT是一的

  • EFNASCONFIG (Non Access Stratum Configuration) :

这个是NAS配置文件,包含很多参数的默认值,PLMN选择会用到其中的周期搜索定时器最小时长(MinimumPeriodicSearchTimer)和快速高优先级搜网时长(Fast First Higher Priority PLMN value)

  • EFFPLMN (Forbidden PLMNs)
    禁止的PLMN,在自动选网时,在该禁止列表的PLMN是不允许被选择的,手动选网时,则不需要考虑该限制。

  • EFLRPLMNSI (Last RPLMN Selection Indication) :

This EF contains an indication to the ME for the selection of the RPLMN or the home network at switch on, or following recovery from lack of coverage.

  • ‘00’ - The UE shall attempt registration on the last RPLMN at switch-on or recovery from out-of-coverage as described in TS 23.122 [31]

  • ‘01’ - The UE shall attempt registration either on the HPLMN or the last RPLMN at switch-on or recovery from out-of-coverage as described in TS 23.122 [31]

意思就是指示是否使用上一次的RPLMN进行首先尝试驻网。

  • EFEHPLMN (Equivalent HPLMN)

等效PLMN,这个列表在注册后需要替换或更新,这个列表包含了注册PLMN,该列表中的PLMN在所有支持的rat内,在PLMN选择、小区选择、小区重选过程中国,都认为等效的PLMN。如果EHPLMN不存在,则可以用IMSI推导出HPLMN用在plmn选择中
在这里插入图片描述

  • EFEHPLMNPI (Equivalent HPLMN Presentation Indication)

该文件用于指示,在手动选网时,是否是否全部的EHPLMN文件中的PLMN用于选网,亦或是最高优先级的PLMN用于选网。

Coding:

  • ‘00’ - No preference for the display mode

  • ‘01’ - Display the highest-priority available EHPLMN only

  • ‘02’ - Display all the available EHPLMNs

  • EFHPPLMN (Higher Priority PLMN search period)

该文件定义了高优先级搜网的周期,该文件并非直接给出周期,而是需要进行解析的,解析规则和制式有关系:

(1)For UEs not using any of the following at the time of starting the timer: NB-IoT, GERAN EC-GSM-IoT and Category M1 of E-UTRAN enhanced-MTC as specified in 3GPP TS 36.306 [85], the time interval is coded in integer multiples of n minutes. The range is from n minutes to a maximum value. The encoding is:

‑ ‘00’: No higher priority PLMN search attempts;

‑ ‘01’: n minutes;

‑ ‘02’: 2n minutes;

‑ ‘YZ’: (16Y+Z)n minutes (maximum value).

(2)For UEs using any of the following at the time of starting the timer: NB-IoT, GERAN EC-GSM-IoT and Category M1 of E-UTRAN enhanced-MTC as specified in 3GPP TS 36.306 [85], the time interval is coded as follows. The range is from n hours to a maximum value. The encoding is:

‑ ‘00’: No higher priority PLMN search attempts;

‑ ‘01’: n hours (2 hours);

‑ ‘02’ to ‘28’: 2n hours (i.e. range from 4 hours to 80 hours with step of 2 hours);

‑ ‘29’ to ‘50’: 4n-80 hours (i.e. range from 84 hours to 240 hours with step of 4 hours).

  • All other values shall be interpreted by the ME as a default period.

以(1)为例,假如配置的是14(10进制),

经过计算(16*(1)+4)* n min = 20n分钟,其中n是协议23122中规定的间隔(6min)。

下期预告

下一期讲一下选网过程。

猜你喜欢

转载自blog.csdn.net/hitguolu/article/details/106029227
今日推荐