MSCBSC 移动通信论坛
搜索
登录注册
网络优化工程师招聘专栏 4G/LTE通信工程师最新职位列表 通信实习生/应届生招聘职位
 

  • 阅读:576
  • 回复:0
IMS/SIP中的消息示例1-注册(REGISTER)
KangGuoYing
版主
鎵嬫満鍙风爜宸查獙璇


 发短消息    关注Ta 

C友·铁杆勋章   公益·慈善勋章   C友·贡献勋章   纪念勋章·七周年   财富勋章·万元户   专家·高级勋章   财富勋章·财运连连   财富勋章·小财主   C友·登录达人   财富勋章·富甲一方   纪念勋章·八周年   纪念勋章·九周年   纪念勋章·十周年   纪念勋章·十二周年   C友·技术大神  
积分 93558
帖子 6268
威望 705989 个
礼品券 11319 个
专家指数 24033
注册 2007-3-13
专业方向 
回答问题数 13554
回答被采纳数 1833
回答采纳率 14%
 
发表于 2020-10-21 14:28:18  只看楼主 

       注册(REGISTER) 消息是IMS/SIP 协议中最重要的消息之一,它包含了终端物理和逻辑定义的重要信息。理解注册中每个参数的含义将极大地帮助我们解决各种故障排除情况。


一、注册(REGISTER)  在IMS/SIP系统终端注册可分为以下六种情况:


  •  1 : 基本注册(Basic Form)

  •  2 : 终端能力(支持UE通过IMS发送短信)UE Capability - IMS over SMS

  •  3 : 终端能力(支持UE通过IMS发送和VOLTE) UE Capability - IMS over SMS and VoLTE

  •  4 : 终端认证(信息) Authentication Information

  •  5 : IP加密(信息)IPSec Information

  •  6 : 终端未注册 UnRegist


二、注册要点(内容)


2.1 基本注册(Basic Form)

     [Line  1 ] REGISTER sip:ims.sharetechnote.com SIP/2.0

     [ Line  2 ] Via: SIP/2.0/UDP 192.168.1.15:5060;branch=z9hG4bK3933794001smg;transport=UDP

     [ Line  3 ] Expires: 3600

     [ Line  4 ] Route: <sip:192.168.1.2:5060;lr>

     [ Line  5 ] P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0000054200000000

     [ Line  6 ] User-Agent: SP VOIP IMS 2.0

     [ Line  7 ] Privacy: none

     [ Line  8 ] Contact: <sip:+11234567890@192.168.1.15:5060>

     [ Line  9 ] Authorization: Digest

                    username="001010123456789@ims.sharetechnote.com",

                    realm="ims.sharetechnote.com",

                    uri="sip:ims.sharetechnote.com",

                    nonce="",

                    response=""

     [ Line 10 ] From: <sip:+11234567890@ims.sharetechnote.com>;tag=2504745718

     [ Line 11 ] To: <sip:+11234567890@ims.sharetechnote.com>

     [ Line 12 ] Call-ID: 500949143@192.168.1.15

     [ Line 13 ] CSeq: 1 REGISTER

     [ Line 14 ] Max-Forwards: 70

     [ Line 15 ] Content-Length: 0


2.2 终端支持UE通过IMS发送短信


    [ Line  1 ] REGISTER sip:test.3gpp.com SIP/2.0

    [ Line  2 ] From: <sip:+11234567890@test.3gpp.com>;tag=3671736275

    [ Line  3 ] To: <sip:+11234567890@test.3gpp.com>

    [ Line  4 ] CSeq: 450510774 REGISTER

    [ Line  5 ] Call-ID: 3671736255_186872264@2001:0:0:1::3

    [ Line  6 ] Via: SIP/2.0/UDP [2001:0:0:1::3]:5060;branch=z9hG4bK74372383

    [ Line  7 ] Max-Forwards: 70

    [ Line  8 ] Contact: <sip:+11234567890@[2001:0:0:1::3]:5060>;

                           reg-id=1;

                           +g.3gpp.csi.smsip;

                           +g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel"

    [ Line  9 ] Route: <sip:[2001:0:0:1::2]:5060;lr>

    [ Line  10] P-Access-Network-Info: 3GPP-E-UTRAN-FDD; utran-cell-id-3gpp=0010100010000000

    [ Line  11] Content-Length: 0

    [ Line  12] Authorization: Digest

    [ Line  13] uri="sip:test.3gpp.com",

              username="001010123456789@test.3gpp.com",

              response="",realm="test.3gpp.com",

              nonce=""

    [ Line  14] Expires: 7200

    [ Line  15] Supported: path

    [ Line  16] Allow: INVITE,BYE,CANCEL,ACK,NOTIFY,UPDATE,REFER,PRACK,INFO,MESSAGE,OPTIONS

 

    [Line 8] According to GSMA IR92,



2.3 : 终端支持UE通过IMS发送和VOLTE


    REGISTER sip:test.3gpp.com SIP/2.0

    Route: <sip:[2001:0:0:1::2]:5060;lr>

    Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK

    Expires: 600000

    Authorization: Digest username="001010123456789@test.3gpp.com",realm="TestIMS.com",

                    nonce="fn3iiH1LnWqCtFyPUD8qzYxfiiVavYAAmfcxByxmhBg=",algorithm=AKAv1-MD5,

                    uri="sip:test.3gpp.com",response="9f17517adee640b8895dda33b336f071",

                    qop=auth,nc=00000002,cnonce="dsf232sun2299674910xyx",

                    opaque="bbedd3dd5f884860b741b03d36b430ea"

    P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000001

    Contact: <sip:+11234567890@[2001:0:0:1::1]:5060>;

             +g.3gpp.smsip;

             +g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;

             +g.gsma.rcs.telephony="cs,volte";

             +sip.instance="<urn:gsma:imei:99000493-686661-0>"

    From: <sip:+11234567890@test.3gpp.com>;tag=1334507655

    To: <sip:+11234567890@test.3gpp.com>

    Call-ID: 266901530@2001:0:0:1::1

    CSeq: 4 REGISTER

    Max-Forwards: 70

    Via: SIP/2.0/UDP [2001:0:0:1::1]:5060;branch=z9hG4bK459934981smg;transport=UDP

    Content-Length: 0


2.4 : 终端认证(信息)   

  

    [ Line  1 ] REGISTER sip:test.3gpp.com SIP/2.0

    [ Line  2 ] From: <sip:+11234567890@test.3gpp.com>;tag=3671736441

    [ Line  3 ] To: <sip:+11234567890@test.3gpp.com>

    [ Line  4 ] CSeq: 450510775 REGISTER

    [ Line  5 ] Call-ID: 3671736255_186872264@2001:0:0:1::3

    [ Line  6 ] Via: SIP/2.0/UDP [2001:0:0:1::3]:5060;branch=z9hG4bK788602866

    [ Line  7 ] Max-Forwards: 70

    [ Line  8 ] Contact: <sip:+11234567890@[2001:0:0:1::3]:5060>;

                          reg-id=1;

                          +g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";

                          +g.3gpp.csi.smsip

    [ Line  9 ] Route: <sip:[2001:0:0:1::2]:5060;lr>

    [ Line  10] P-Access-Network-Info: 3GPP-E-UTRAN-FDD; utran-cell-id-3gpp=0010100010000000

    [ Line  11] Content-Length: 0

    [ Line  12] Authorization: Digest

    [ Line  13] username="001010123456789@test.3gpp.com",

              realm="test.3gpp.com",uri="sip:test.3gpp.com",

              qop=auth,

              nonce="DtIe00txvoZUGvYmjgX98eAPJNjx3IAADsM84A8kWPE=",

              nc=00000001,

              cnonce="3671736221",

              algorithm=AKAv1-MD5,

              response="013e2a5d762d4d86e56112c0d41379f5",

              opaque="3c45b78d08f348459596ea2f6d316a42"

    [ Line  14] Expires: 7200

    [ Line  15] Supported: path

    [ Line  16] Allow: INVITE,BYE,CANCEL,ACK,NOTIFY,UPDATE,REFER,PRACK,INFO,MESSAGE,OPTIONS

 

    [Line 8] According to GSMA IR92,


2.5 : IP加密(信息)

   [ Line  1 ] REGISTER sip:test.3gpp.com SIP/2.0

   [ Line  2 ] f: <sip:001010123456789@ims.mnc246.mcc081.3gppnetwork.org>;tag=2922225

   [ Line  3 ] t: <sip:001010123456789@ims.mnc246.mcc081.3gppnetwork.org>

   [ Line  4 ] CSeq: 2922203 REGISTER

   [ Line  5 ] i: 2922206_181933240@2001:0:0:1::3

   [ Line  6 ] v: SIP/2.0/TCP [2001:0:0:1::3]:5060;branch=z9hG4bK3941737881

   [ Line  7 ] Max-Forwards: 70

   [ Line  8 ] m: <sip:001010123456789@[2001:0:0:1::3]:5060>;

                  +sip.instance="<urn:gsma:imei:35425006-000655-0>";

                  +g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";

                  +g.3gpp.smsip

   [ Line  9 ] Route: <sip:[2001:0:0:1::2]:5060;lr>

   [ Line  10] l: 0

   [ Line  11] Authorization: Digest

   [ Line  12] uri="sip:test.3gpp.com",username="001010123456789@test.3gpp.com",

              response="",realm="test.3gpp.com",nonce=""

   [ Line  13] Expires: 600000

   [ Line  14] Require: sec-agree

   [ Line  15] Proxy-Require: sec-agree

   [ Line  16] k: path,sec-agree

   [ Line  17] Allow: INVITE,BYE,CANCEL,ACK,NOTIFY,UPDATE,REFER,PRACK,INFO,MESSAGE,OPTIONS

   [ Line  18] Security-Client:

               ipsec-3gpp; alg=hmac-md5-96; ealg=des-ede3-cbc; spi-c=799251570; spi-s=1387593208;

                                port-c=8006; port-s=8906,

               ipsec-3gpp; alg=hmac-md5-96; ealg=aes-cbc; spi-c=799251570; spi-s=1387593208;

                                port-c=8006; port-s=8906,

               ipsec-3gpp; alg=hmac-md5-96; ealg=null; spi-c=799251570; spi-s=1387593208;

                                port-c=8006; port-s=8906,

               ipsec-3gpp; alg=hmac-sha-1-96; ealg=des-ede3-cbc; spi-c=799251570; spi-s=1387593208;

                                port-c=8006; port-s=8906,

               ipsec-3gpp; alg=hmac-sha-1-96; ealg=aes-cbc; spi-c=799251570; spi-s=1387593208;

                                port-c=8006; port-s=8906,

               ipsec-3gpp; alg=hmac-sha-1-96; ealg=null; spi-c=799251570; spi-s=1387593208; port-c=8006;

                                port-s=8906

 

      [Line 8] According to GSMA IR92,



 2.6 : 终端未注册


     REGISTER sip:test.3gpp.com SIP/2.0

     f: <sip:+11234567890@test.3gpp.com>;tag=589636628

     t: <sip:+11234567890@test.3gpp.com>

     CSeq: 589636509 REGISTER

     i: 589636508_2363003488@10.133.202.46

     v: SIP/2.0/UDP 10.133.202.46:5060;branch=z9hG4bK428556305

     Max-Forwards: 70

     m: <sip:+11234567890@10.133.202.46:5060>

     P-Access-Network-Info: 3GPP-E-UTRAN-FDD; utran-cell-id-3gpp=3114800001FFFFFFF

     Expires: 0

     l: 0

     Authorization: Digest           uri="sip:test.3gpp.com",username="001010123456789@test.3gpp.com",response="",realm="test.3gpp.com",nonce="",

     Digest uri="sip:test.3gpp.com",username="001010123456789@test.3gpp.com",response="",

     realm="test.3gpp.com",nonce="


原文来自:http://www.sharetechnote.com

整理:kangguoying20201021

5G网络中层二的RLC介绍 ”已在微信公众号"跟着老康学5G"中推出,敬请关注!

扫码关注5G通信官方公众号,免费领取以下5G精品资料
  • 1、回复“afgj”免费领取《 5G基站概述及基本操作
  • 2、回复“qiehuan”免费领取《5G NR切换互操作
  • 3、回复“qiantai”免费领取《5G前台信令流程
  • 4、回复“zxmm”免费领取《5G Massive MIMO网络应用白皮书
  • 5、回复“cyjg”免费领取《高速公路5G智联网技术、方案和应用
  • 6、回复“5gsa2”免费领取《5G SA独立组网部署指南(中文版)
  • 7、回复“hxw”免费领取《一份PPT看懂5G核心网
  • 8、回复“5gdh”免费领取《5G配套电源规划与设计方案
  • 对本帖内容的看法? 我要点评

     
    [充值威望,立即自动到帐] [VIP贵宾权限+威望套餐] 另有大量优惠赠送活动,请光临充值中心
    充值拥有大量的威望和最高的下载权限,下载站内资料无忧

    快速回复主题    
    标题
    内容
     上传资料请点左侧【添加附件】

    当前时区 GMT+8, 现在时间是 2020-11-24 09:01:27
    渝ICP备11001752号  Copyright @ 2006-2016 mscbsc.com  本站统一服务邮箱:mscbsc@163.com

    Processed in 0.453980 second(s), 13 queries , Gzip enabled
    TOP
    清除 Cookies - 联系我们 - 移动通信网 - 移动通信论坛 - 通信招聘网 - Archiver