内容发布更新时间 : 2025/1/10 16:20:36星期一 下面是文章的全部内容请认真阅读。
5.1.3 使用USIM 卡进行IMS 注册
5.1.3.1 测试目的
当UICC卡没有ISIM模块的情况下,验证终端可以从UICC卡的USIM模块中获取用户认证相 关参数,且在IMS注册成功。
5.1.3.5 测试过程
前导步骤
1. 激活小区A。终端开机并附着到TD-LTE小区,流程参见附录B表格B-1步骤1-19。 主体步骤
2. 终端发送的REGISTER消息包含以下内容:
??从USIM模块推导IMPI、IMPU和归属域信息,将IMPI和归属域信息填充到 REGISTER 消息的Authorization 头中。IMPI 格式为
??Security-client 头中至少要包括HMAC-MD5-96和HMAC-SHA-1-96 完整性算 法,DES-EDE3-CBC和AES-CBC加密算法。 ??Expires 参数设置为600000。
3. SS回复401 Unauthorized消息作为REGISTER消息的响应。401 Unauthorized消息中 指定完整性算法为HMAC-SHA-1-96,加密算法为DES-EDE3-CBC。
4. 终端发送第二条IMS REGISTER消息,该消息已经经过IPsec加密。检查Register消 息中,包含P-Access-Network-Info,接入方式为3GPP-E-UTRAN-TDD。SS发送200 OK 作为第二条REGISTER消息的响应。200 OK消息中的P-Associated-URI头域中包含两 个隐式注册的IMPU(SIP URI and TEL URI )信息: ??TEL URI: “tel: +86xxxxxxxxxxx”
??SIP URI: “sip: +86xxxxxxxxxxx @ ims.bj.chinamobile.com ”
5. 终端发送SUBSCRIBE消息。SS发送200OK作为SUBSCRIBE消息的响应消息。 6. SS发送NOTIFY消息。终端发送200OK作为NOTIFY的响应消息。
2015 Sep 17 12:07:46.331 [35] 0x156E IMS SIP Message Version = 1
Direction = UE_TO_NETWORK SDP Presence = 0 SIP Call ID Length = 53 SIP Message Length = 1652 SIP Message Logged Bytes = 1653 Message ID = IMS_SIP_REGISTER //终端发送的REGISTER消息包含以下内容:
??从USIM模块推导IMPI、IMPU和归属域信息,将IMPI和归属域信息填充到 REGISTER 消息的Authorization 头中。IMPI 格式为
??Security-client 头中至少要包括HMAC-MD5-96和HMAC-SHA-1-96 完整性算 法,DES-EDE3-CBC和AES-CBC加密算法。
??Expires 参数设置为600000。
Response Code = INFORMAL_RESPONSE (0) CM Call ID = 255
SIP Call ID = 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 Sip Message = REGISTER sip:ims.mnc000.mcc460.3gppnetwork.org SIP/2.0 From:
To:
Call-ID: 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 Via: SIP/2.0/TCP
[2409:8095:40e:90:1:1:92ac:f9b0]:5060;branch=z9hG4bK1674100237 Max-Forwards: 70 Contact:
uri=\@ims.mnc000.mcc460.3gppnetwork.org\460.3gppnetwork.org\ Expires: 600000 Require: sec-agree Proxy-Require: sec-agree Supported: path,sec-agree
Allow: INVITE,BYE,CANCEL,ACK,NOTIFY,UPDATE,PRACK,INFO,MESSAGE,OPTIONS Security-Client:
2015 Sep 17 12:07:46.857 [AC] 0x156E IMS SIP Message Version = 1
Direction = NETWORK_TO_UE SDP Presence = 0 SIP Call ID Length = 53 SIP Message Length = 654 SIP Message Logged Bytes = 655 Message ID = IMS_SIP_REGISTER Response Code = UNAUTHORIZED (401)
//SS回复401 Unauthorized消息作为REGISTER消息的响应 CM Call ID = 255
ipsec-3gpp;
alg=hmac-md5-96;
ealg=des-ede3-cbc;
spi-c=1591761140; spi-s=273915139
SIP Call ID = 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 Sip Message = SIP/2.0 401 Unauthorized Via: SIP/2.0/TCP
[2409:8095:040E:0090:0001:0001:92AC:F9B0]:5060;branch=z9hG4bK1674100237
Call-ID: 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 From:
realm=\d1K/HG3qmXJMMPuMsT9RQGU=\ Security-Server:
ipsec-3gpp;alg=hmac-md5-96;prot=esp;mod=trans;ealg=aes-cbc;spi-c=2320665939;spi-s=3899171464;port-c=9950;port-s=9900 Content-Length: 0
2015 Sep 17 12:07:47.481 [73] 0x156E IMS SIP Message Version = 1
Direction = UE_TO_NETWORK SDP Presence = 0 SIP Call ID Length = 53 SIP Message Length = 1961 SIP Message Logged Bytes = 1962 Message ID = IMS_SIP_REGISTER
//终端发送第二条IMS REGISTER消息,该消息已经经过IPsec加密。 Response Code = INFORMAL_RESPONSE (0) CM Call ID = 255
SIP Call ID = 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 Sip Message = REGISTER sip:ims.mnc000.mcc460.3gppnetwork.org SIP/2.0 From:
To:
Call-ID: 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 Via: SIP/2.0/TCP
[2409:8095:40e:90:1:1:92ac:f9b0]:8907;branch=z9hG4bK4137043578 Max-Forwards: 70
Contact:
//检查Register消息中,包含P-Access-Network-Info,接入方式为3GPP-E-UTRAN-TDD。 utran-cell-id-3gpp=4600051145019E01 Security-Verify:
ipsec-3gpp;alg=hmac-md5-96;prot=esp;mod=trans;ealg=aes-cbc;spi-c=2320665939;spi-s=3899171464;port-c=9950;port-s=9900 Content-Length: 0 Authorization: Digest
username=\ms.mnc000.mcc460.3gppnetwork.org\ork.org\hm=AKAv1-MD5,response=\ Expires: 600000 Require: sec-agree Proxy-Require: sec-agree Supported: path,sec-agree
Allow: INVITE,BYE,CANCEL,ACK,NOTIFY,UPDATE,PRACK,INFO,MESSAGE,OPTIONS Security-Client: ipsec-3gpp; alg=hmac-md5-96; ealg=des-ede3-cbc; spi-c=1591761140; spi-s=2739151393; port-c=8013; port-s=8907,ipsec-3gpp; alg=hmac-md5-96; ealg=aes-cbc; spi-c=1591761140; spi-s=2739151393; port-c=8013;
port-s=8907,ipsec-3gpp; alg=hmac-md5-96; ealg=null; spi-c=1591761140; spi-s=2739151393; port-c=8013; port-s=8907,ipsec-3gpp; alg=hmac-sha-1-96; ealg=des-ede3-cbc; spi-c=1591761140; spi-s=2739151393; port-c=8013; port-s=8907,ipsec-3gpp;
alg=hmac-sha-1-96; ealg=aes-cbc; spi-c=1591761140; spi-s=2739151393; port-c=8013; port-s=8907,ipsec-3gpp; alg=hmac-sha-1-96; ealg=null; spi-c=1591761140; spi-s=2739151393; port-c=8013; port-s=8907
2015 Sep 17 12:07:47.950 [C4] 0x156E IMS SIP Message Version = 1
Direction = NETWORK_TO_UE SDP Presence = 0 SIP Call ID Length = 53 SIP Message Length = 785 SIP Message Logged Bytes = 786 Message ID = IMS_SIP_REGISTER Response Code = OK (200)
//SS发送200 OK作为第二条REGISTER消息的响应。200 OK消息中的P-Associated-URI
头域中包含两个隐式注册的IMPU(SIP URI and TEL URI )信息: ??TEL URI: “tel: +86xxxxxxxxxxx”
??SIP URI: “sip: +86xxxxxxxxxxx @ims.bj.chinamobile.com ” CM Call ID = 255
SIP Call ID = 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 Sip Message = SIP/2.0 200 OK Via: SIP/2.0/TCP
[2409:8095:040E:0090:0001:0001:92AC:F9B0]:8907;branch=z9hG4bK4137043578
Call-ID: 1245434755_3266309720@2409:8095:40e:90:1:1:92ac:f9b0 From:
P-Associated-URI:
Path:
2015 Sep 17 12:07:47.967 [9C] 0x156E IMS SIP Message Version = 1
Direction = UE_TO_NETWORK SDP Presence = 0 SIP Call ID Length = 53 SIP Message Length = 772 SIP Message Logged Bytes = 773 Message ID = IMS_SIP_SUBSCRIBE
//终端发送SUBSCRIBE消息。
Response Code = INFORMAL_RESPONSE (0) CM Call ID = 255
SIP Call ID = 1245436406_3263607784@2409:8095:40e:90:1:1:92ac:f9b0 Sip Message = SUBSCRIBE tel:+8613735444924 SIP/2.0 From: