在IMS和SIP的消息(Message)通過(guò)“消息會(huì)話中繼協(xié)議”MSRP( Message Session Relay Protocol)定義;其初期設(shè)置是為了在IP網(wǎng)絡(luò)了傳送短消息和視頻,這類(lèi)業(yè)務(wù)我們也稱(chēng)中“即時(shí)信息”IM((Instant Messaging);從應(yīng)用層來(lái)看顧類(lèi)似于短信(SMS)和彩信(MMS); "消息會(huì)話中繼協(xié)議”MSRP主要應(yīng)用于"富媒體系統(tǒng)"(RCS);
“消息會(huì)話中繼協(xié)議”MSRP共有兩類(lèi):Pager Mode和Session Mode,其中:
Pager Mode主要用于短消息(類(lèi)似SMS)業(yè)務(wù)交互;
Session Mode主要用于多媒體消息(類(lèi)似MMS)業(yè)務(wù)交互;
1.Pager Mode特點(diǎn)
Pager Mode主要用于短消息(文本消息)業(yè)務(wù),具體以下特點(diǎn):
每條消息與之前消息無(wú)(連帶)關(guān)系;
消息中無(wú)“開(kāi)始”和“結(jié)束”標(biāo)識(shí)(單條信息就可以完成信息傳遞)
每條消息都通過(guò)代理發(fā)送
消息中最大字節(jié)數(shù)為1200 bytes
2.Pager Mode缺點(diǎn)
Pager Mode在協(xié)議方面比較簡(jiǎn)單,但也有不少缺點(diǎn),如:
消息中最多只能傳送1200 bytes;
消息需通過(guò)代理進(jìn)行傳送,所以可能因代理問(wèn)題導(dǎo)致業(yè)務(wù)不能進(jìn)行;
不能保證端到端之間的安全性;
消息的(包)頭可能很大;
在SIP的INVITE消息中不能應(yīng)用;
不容易實(shí)現(xiàn)在多個(gè)設(shè)備上使用
3.Pager Mode應(yīng)用示例
Pager Mode應(yīng)用只是簡(jiǎn)單的 MESSAGE和 200 OK。在實(shí)際應(yīng)用中可能運(yùn)營(yíng)商要求提交發(fā)送報(bào)告;
Step | Direction | Protocol | Message | Comments |
(1) | UA1 --> Proxy/UA2 | SIP | MESSAGE | Send a text '123456789abcdef' |
(2) | UA1 <-- Proxy/UA2 | SIP | 200 OK |
|
3.1 MESSAGE
MESSAGE sip:+[email]14448880011@sharetechnote.com[/email];user=phone SIP/2.0
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.oma.cpm.msg
Contribution-ID: 477b66ae9662e3ad18549bf5dabf9d26d5e707ca
Conversation-ID: 1710887c7ca47dc2c1274c11673eb0df5a604fd3
P-Preferred-Identity: <sip:310410123456789@sharetechnote.com>
Request-Disposition: no-fork
User-Agent: TEST IMS 5.0
CSeq: 1 MESSAGE
Max-Forwards: 70
P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=31041000010000000
Route: <sip:[2001:0:0:1::2]:5060;lr>
a: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg"
c: message/cpim
f: <sip:310410123456789@sharetechnote.com>;tag=1384874566
i: 3712948749@2001::1:88fe:fccf:2870:5dee
l: 322
m: <sip:310410123456789@[2001::1:88fe:fccf:2870:5dee]:5060>;
+sip.instance="<urn:gsma:imei:35469106-056673-0>"
t: <sip:+[email]14448880011@sharetechnote.com[/email];user=phone>
v: SIP/2.0/TCP [2001::1:88fe:fccf:2870:5dee]:5060;branch=z9hG4bK2629405539smg;transport=TCP
From: <sip:310410123456789@sharetechnote.com>
To: <sip:+[email]14448880011@sharetechnote.com[/email];user=phone>
DateTime: 2015-02-17T06:54:27Z
NS: imdn <urn:ietf:params:imdn>
imdn.Message-ID: PH7qAIV8cgH5
imdn.Disposition-Notification: positive-delivery, display
Content-type: text/plain;charset=UTF-8
Content-Length: 15
123456789abcdef
3.2 200 OK
SIP/2.0 200 OK
Max-Forwards: 70
Via: SIP/2.0/TCP [2001::1:88fe:fccf:2870:5dee]:5060;branch=z9hG4bK2629405539smg;transport=TCP
From: <sip:310410123456789@sharetechnote.com>;tag=1384874566
To: <sip:+[email]14448880011@sharetechnote.com[/email];user=phone>;tag=73335cbb32b744baaaf5097a34431c92
Call-ID: 3712948749@2001::1:88fe:fccf:2870:5dee
CSeq: 1 MESSAGE
Server: TEST-RCS-serv/OMA1.0
Content-Length: 0
原文來(lái)自:http://www.sharetechnote.com/
整理:kangguoying20201003
"無(wú)會(huì)話,非5G”已在微信公眾號(hào)"跟著老康學(xué)5G"中推出,敬請(qǐng)關(guān)注!
鏈接如下:https://mp.weixin.qq.com/s/AX3MCn1woaSRrDVd2nkrtA