TLLI

P-TMSI是属于GMM层的一个参数,通常包含在GMM层的一些消息里面,如Attach request、Attach accept、Routing area update request、Routing area update accept等等。而TLLI是属于LLC层(逻辑链路控制层)的一个临时逻辑链路标识符,由四个字节也就是32个比特位组成,是手机和SGSN之间建立逻辑连接时需要用到的,接下来看一下TLLI的分类及构成。
根据3GPP规范TS23.003 Chapter 2.6,共有四种类型的TLLI:
1) Local TLLI
A local TLLI is built by a MS which has a valid P-TMSI as follows:
bits 31 down to 30 are set to 1;and bits 29 down to 0 are set equal to bits 29 to 0 of the P-TMSI.
2) Foreign TLLI
A foreign TLLI is built by a MS which has a valid P-TMSI as follows:
bit 31 is set to 1 and bit 30 is set to 0;and bits 29 down to 0 are set equal to bits 29 to 0 of the P-TMSI.
3) Random TLLIm
A random TLLI is built by an MS as follows:
bit 31 is set to 0; bits 30 down to 27 are set to 1;and bits 0 to 26 are chosen randomly.
4) Auxiliary TLLI(辅助TLLI)
An auxiliary TLLI is built by the SGSN as follows:
bit 31 is set to 0; bits 30 down to 28 are set to 1; bit 27 is set to 0; and bits 0 to 26 can be assigned independently.
由此,我们可以看到,Local TLLI和Foreign TLLI都是由P-TMSI得出,只是Bit31与Bit30有差别而已,Local TLLI的Bit31和Bit30为11,而Foreign TLLI的Bit31和Bit30为10;Random TLLI的Bit0到Bit26是由手机随机产生的;Auxiliary TLLI(辅助TLLI)我们目前没有用到。
由于Local TLLI的Bit31与Bit30为11,其余Bit29-Bit0均从P-TMSI得出,而P-TMSI的Bit31与Bit30也为11,因此Local TLLI与P-TMSI在数值上完全一样。
那么,在前面提到的四种类型的TLLI中除了Auxiliary TLLI(辅助TLLI)目前没有使用外,其它三种分别在什么情况下使用呢?规范3GPP TS 24.008 Chapter 4.7.1.4.1定义如下:
1) 手机具有有效的P-TMSI的情况下:
简单的说明就是如果手机具有有效的P-TMSI,那么手机在发起Attach request和Routing area update request的时候,会使用由这个P-TMSI得出的Foreign TLLI(即把P-TMSI的Bit31和Bit30改为10),而在Attach和路由区更新成功完成之后则使用Local TLLI(和P-TMSI在数值上一样)。
2) 手机没有有效的P-TMSI的情况下:
如果手机没有有效的P-TMSI(例如第一次开机、上次Attach请求被拒绝等),那么手机在Attach request的时候只能使用IMSI来标识身份,而在LLC层将会使用Random TLLI。在Attach成功完成后,SGSN分配给手机一个P-TMSI,而手机也会从这个P-TMSI中得出Local TLLI。


参考资料:
百度百科及百度文库
 
贡献者:
jxwnwh静夜深深地
Copyright © 1999-2024 C114 All Rights Reserved | 联系我们 | 沪ICP备12002291号-4