




已阅读5页,还剩9页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
_MMS协议解析MMS(Multimedia Messaging Service)就是我们俗称的彩信,它能提供比SMS(短信)更加丰富的信息,能提供包括图片、视频、声音、各种格式的文字等内容。目前的应用主要有以下几个方面: 便利性实用性娱乐性互动性个人化 端到端通信 自拍照片自编贺卡/图片 带有图片照片和语音片断等表达感情内容的增强型聊天 电子邮件附件在移动终端上的增强型应用 娱乐 手机铃声/屏保下载 节日贺卡明星贺卡 多媒体交友利用手机察看自己心仪的对象并通过信息向她表达心意 原创基地:利用多媒体短信传播自己的原创动漫和音乐 新闻/金融服务 体育比赛集锦和得分镜头视频剪辑 通过移动终端获取多媒体新闻和金融信息分析等 其他 定位业务 移动广告一、 数据流程MMS系统大致网络拓扑图如下:先介绍一下网络中的节点设备:MMS Client:MMS客户端,就是平常用的手机等移动设备;MMS Proxy Relay:MMS代理中继,用于转发MMS;MMS Server:MMS服务器,用于存储MMS,一般与MMS代理集成在一台设备上;Legacy Wireless Messaging Systems:传统的无线消息系统,比如SMS系统;Email Server:邮件服务器,Ineternet上的邮件服务器,比如139邮件服务器;Other MMS Systems:其他地方或其他运营商的MMS系统;MMS承载于WAP之上,在WAP1.x系统里采用WSP协议,在WAP2.0系统里采用HTTP协议,如下图所示:详细网络图如下:SGSNGGSNMSCISMGSMSGWAP GWMMS终端1MMS终端2SPE-mail ServerMMSCMMSCBSBS核心网IP网InternetMMS的发送接收实体包括如下几种方式:1、 终端同一系统内终端2、 终端不同系统内终端3、 终端Email server4、 终端SP我们以第一种情况进行MMS收发流程说明,大致有以下几步:1、 发送终端发送MMS到MMS代理;2、 MMS代理发送通知到接收终端;3、 接收终端发送提取MMS命令到MMS代理;4、 MMS代理返回MMS到接收终端;5、 MMS代理发送回执给发送终端,表示对方已收到MMS;其中第2步的通知是通过WAP PUSH实现的,目前中国移动实现的方式是通过SMS(短信)通知对方。二、 消息解析前面提到MMS可以通过wsp和http两种方式传输,无论哪种方式,其Content-Type都必须为application/vnd.wap.mms-message(0x3E)。MMS可以分为4类:发送、通知、提取、回执。每一类消息都包含消息头,有的还包含正文。如下:2.1 发送发送是指发送者发送MMS到MMS中心,包括两条消息:MMS发送请求、MMS发送确认。2.1.1 MMS发送请求MMS发送请求消息由发送者到MMS中心,包含消息头和正文,正文紧跟消息头。消息头包含内容如下:NameContentCommentsX-Mms -Message-TypeMessage-type-value =m-send-reqMandatory.Specifies the transaction type.X-Mms -Transactio n-IDTransaction-id-valueMandatory.A unique identifier for the message. This transaction ID identifies the M -Send.req and the corresponding reply only.X-Mms -MMS-VersionMMS-version-valueMandatory.The MMS version number. According to this specificatio n, the version is 1.0DateDate-valueOptional.Arrival time of the message at MMSProxy -Relay. MMS Proxy -Relaywill generate this field when not supplied by terminal.FromFrom-valueMandatory.Address of the message sender. This field MUST be present in a message delivered to a recipient. The sending client MUST send either its address or insert -an- address token. In case of token, the MMS Proxy -Relay MUST insert the correct address of the sender.ToTo-valueOptional1.Address of the recipient.CcCc-valueOptional1.Address of the recipient. Addressing is handled inChapter 8.Any number of address fields allowed.BccBcc-valueOptional1.Address of the recipient. Addressing is handled inChapter 8.Any number of address fields allowed.SubjectSubject-valueOptional.Subject of the message.X-Mms -Message-ClassMessage-class -valueOptional.Class of the message. Value Auto indicates a message that is automatically generated by the client. If the Message-Class is Auto, the originating terminal SHALL NOT request Delivery -Report or Read-Report.If field is not present, the receiver inteprets the message as personal.X-Mms -ExpiryExpiry -valueOptional, default: maximum.Length of time the message will be stored in MMSProxy -Relayor time to delete the message. The field has two formats, either absolute or interval.X-Mms -Delivery -TimeDelivery -time -valueOptional: default: immedia te.Time of desired delivery. Indicates the earliest possible delivery of the message to the recipient. The field has two formats, either absolute or interval.X-Mms -PriorityPriority-valueOptional. Default: Normal.Priority of the message for the recip ient.X-Mms -Sender- VisibilitySender-visibility-valueOptional. Default: show address/phone number of the sender to the recipient unless the sender has a secret number/address.Hide = dont show any address. Show = show even secret address.X-Mms -Delivery- ReportDelivery -report -valueOptional. Default determined when service is ordered. Specifies whether the user wants a delivery report from each recipient. When Message-Class is Auto, the field SHALL always be present and the value SHALL be No.X-Mms -Read-ReplyRead-reply -valueOptional.Specifies whether the user wants a read report from each recipient as a new message. When Message-Class is Auto, the field SHALL always be present and the value SHALL be No.Content-TypeContent-type-valueMandatory.The content type of the message.以上字段除了开头的Message-Type、Transaction-ID、MMS-Version和末尾的Content-Type之外,其他字段没有顺序要求,以下消息也是一样。2.1.2 MMS发送确认MMS发送确认由MMS中心到发送者,只包含消息头,没有正文。消息头格式如下:NameContentCommentsX-Mms -Message-TypeMessage-type-value = m- send -confMandatory.Identifies the message type.X-Mms -Transaction-IDTransaction-id-valueMandatory.This transaction ID identifies the M -Send.conf and the corresponding request only.X-Mms -MMS-VersionMMS-version-valueMandatory.The MMS version number. According to this specification, the version is 1.0X-Mms -Response-StatusResponse-status -valueMandatory.MMS specific status.X-Mms -Response-TextResponse-text -valueOptional.Description which qualifies the response status value.Message-IDMessage-ID-valueOptional.This is a unique reference assigned to message. This ID SHALL always be present when the MMS Proxy - Relayaccepted the message.The ID enables a client to match delivery reports with previously sent messages.2.2 通知通知是指MMS中心发送通知到接收者,包括两条消息:请求和响应。目前是通过SMS进行通知,Gb接口上不存在该类数据包,所以在这里不做分析。2.3 提取提取是指MMS接收者从MMS中心提取MMS的过程,包括三个步骤:提取请求、提取响应、响应确认。2.3.1 MMS提取请求MMS提取请求消息是由接收者到MMS中心,没有真正的消息头和正文,完全由WSP或HTTP的请求头实现,也就是WSP或HTTP一个普通的GET请求,其uri是通知消息里指定的地址。2.3.2 MMS提取响应MMS提取响应消息是由MMS中心到接收者,包括消息头和正文,消息头包含内容如下:NameContentCommentsX-Mms -Message-TypeMessage-type-value =m-retrieve-confMandatory.Specifies the message type.X-Mms -Transaction-IDTransaction-id-valueOptional.Identifies either the transaction that has been started by M-Notification without M -NotifResp or new transaction when deferred delivery was requested. The new transaction ID is optional.X-Mms -MMS-VersionMMS-version-valueMandatory.The MMS version number. According to this specification, the version is 1.0.Message-IDMessage-ID-valueOptional.This is an unique reference assigned to message. This ID SHALL always be present when the originator client requested a read reply.The ID enables a client to match read reports withpreviously sent messages.DateDate-valueMandatory.Sending date and time.FromFrom-valueOptional.Address of the sender. If hiding the address of the sender from the recipient is supported, the MMS Proxy -Relay will not add this field to a message header.ToTo-valueOptional.Address of the recipient. Any number of address fields allowed.CcCc-valueOptional.Address of the recipient. Any number of address fields allowed.SubjectSubject-valueOptional.Message subjectX-Mms -Message-ClassMessage-class -valueOptional.Message class. If field is not present, the receiver inteprets the message as personal.X-Mms -PriorityPriority-valueOptional. Default: NormalPriority of the message.X-Mms -Delivery - ReportDelivery -report -valueOptional. Default: No.Specifies whether the user wants a delivery report from each recipient.X-Mms -Read-ReplyRead-reply -valueOptional. Default: No.Specifies whether the user wants a read report from each recipient as a new message.Content-TypeContent-type-valueMandatory.The content type of the message.2.3.3 MMS提取响应确认MMS提取响应确认消息由接收者到MMS中心,包括消息头,不包含正文,消息头包含内容如下:NameContentCommentsX-Mms -Message-TypeMessage-type-value = m- acknowledge-indMandatory.Identifies the transaction type.X-Mms -Transaction-IDTransaction-id-valueMandatory.This is the transaction number that originates from immediately previous M -Retrieve operation.X-Mms -MMS-VersionMMS-version-valueMandatory.The MMS version number. According to this specification, the version is 1.0X-Mms -Report -AllowedReport -allowed-valueOptional. Default: Yes.Sending of delivery report allowed to the user.2.4 回执包括两种回执:提取回执和阅读回执,是可选的。2.4.1 MMS提取回执当接收者从MMS中心取得MMS后,MMS中心会向发送者发送提取回执。MMS提取回执消息只有消息头,没有正文。消息头格式如下:NameContentCommentsX-Mms -Message-TypeMessage-type-value = m- delivery -indMandatory.Identifies the PDU type.X-Mms -MMS-VersionMMS-version-valueMandatory.The MMS version number. According to this specification, the version is 1.0Message-IDMessage-ID-valueMandatory.Identifier of the message. From Send request, connects delivery report to sent message in MS.ToTo-valueMandatory.Needed for reporting in case of point-to-multipoint message.DateDate-valueMandatory.Date and time the message was handled (fetched, expired, etc.) by the recipient or MMSProxy -Relay.X-Mms -StatusStatus-valueMandatory.The status of the message.2.4.2 MMS阅读回执当接收者阅读完MMS后,MMS中心会向发送者发送提取回执。该回执是在发送者发送MMS时要求有阅读回执时才会产生,该消息格式不清楚,我们暂不做分析。2.5 字段说明以上消息头每一个字段都是KV结构,前面是字段名称,后面是字段值。字段名称是一个字节,对应编码如下:NameAssignedNumberValueBcc0x01用户地址,是以0结尾的字符串Cc0x02用户地址,是以0结尾的字符串Content-Location0x0 3Uri地址,是以0结尾的字符串Content-Type0x04与WSP的Content-Type一样Date0x054字节的长整形值,自1970 -01-01, 00:00:00 GMT到现在的秒数Delivery -Report0x06Yes:0x80,No:0x81Delivery -Time0x075字节,第一个字节代表时间类型,后4个字节是时间值,时间类型:绝对时间0x80,相对时间0x81Expiry0x085字节,第一个字节代表时间类型,后4个字节是时间值,时间类型:绝对时间0x80,相对时间0x81From0x09第一个字节代表地址类型,后面字符串代表地
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年初级招采人员考试(招标采购专业实务)试题库及答案(广东省)
- 护理冰袋小发明及小创造
- 腰椎病病人的护理
- 质量管理体系年终总结
- 远程会诊工作汇报
- 鞋子售后年终总结
- 广东省阳江市江城区2022-2023学年高三上学期期中考试思想政治考题及答案
- 2025普通住宅的买卖合同
- 2025防水材料购销合同(大象)
- 2025青岛市事业单位劳动合同
- 葫芦丝(初学教学)-课件
- 新员工入职安全培训ppt
- 房产证模板表格
- 小粒咖啡栽培技术措施课件
- 曲顶柱体的体积市公开课金奖市赛课一等奖课件
- 2022年东台市城市建设投资发展集团有限公司招聘笔试题库及答案解析
- 民法典侵权责任编课件
- 计量基础知识讲稿课件
- 领导班子及成员分析研判报告5篇
- 2022年初中化学新课标测试
- 四年级上册英语阅读理解练习20751
评论
0/150
提交评论