MAS接口协议:通道对接CMPP2.0网关协议

中国移动通信互联网短信网关接口协议 (China Mobile Peer to Peer, CMPP)

(V2.0)

中国移动通信集团公司

2002年4月

目 录

1. 编制说明 ......................................................................................... 错误!未定义书签。 2. 缩略语 ............................................................................................................................... 5 3.网络结构 ..................................................................................................................................... 6 4.CMPP功能概述 ......................................................................................................................... 6 5. 协议栈.......................................................................................................................................... 8 6. 通信方式 ...................................................................................................................................... 8

6.1 长连接 ....................................................................................................................... 9 6.2 短连接 ..................................................................................................................... 11 6.3 本协议中涉及的端口号 ......................................................................................... 12 6.4 交互过程中的应答方式 ................................................................................................ 12 7.消息定义 ................................................................................................................................... 12

7.1基本数据类型 ................................................................................................................... 12 7.2消息结构 ........................................................................................................................... 13 7.3 消息头格式(Message Header) ................................................................................... 13 7.4信息资源站实体(SP)与互联网短信网关(ISMG)间的消息定义 ................................... 13

7.4.1 SP请求连接到ISMG(CMPP_CONNECT)操作 ............................................ 13

7.4.1.1 CMPP_CONNECT消息定义(SP?ISMG) .......................................... 13 7.4.1.2 CMPP_CONNECT_RESP消息定义(ISMG ? SP) ............................. 14 7.4.2 SP或ISMG请求拆除连接(CMPP_TERMINATE)操作 ............................ 14

7.4.2.1 CMPP_TERMINATE消息定义(SP?ISMG或ISMG ? SP) ............ 14 7.4.2.2 CMPP_TERMINATE_RESP消息定义(SP?ISMG或ISMG ? SP) . 14 7.4.3 SP向ISMG提交短信(CMPP_SUBMIT)操作 ............................................ 15

7.4.3.1 CMPP_SUBMIT消息定义(SP?ISMG) .............................................. 15 7.4.3.2 CMPP_SUBMIT_RESP消息定义(ISMG ? SP) ................................ 16 7.4.4 SP向ISMG查询发送短信状态(CMPP_QUERY)操作 ............................. 17

7.4.4.1 CMPP_QUERY消息的定义(SP?ISMG) ........................................... 17 7.4.4.2 CMPP_QUERY_RESP消息的定义(ISMG ?SP) ............................... 17 7.4.5 ISMG向SP送交短信(CMPP_DELIVER)操作 .......................................... 18

7.4.5.1 CMPP_DELIVER消息定义(ISMG?SP) ............................................ 18 7.4.5.2 CMPP_DELIVER_RESP消息定义(SP ? ISMG) .............................. 20 7.4.6 SP向ISMG发起删除短信(CMPP_CANCEL)操作 ............................... 20

7.4.6.1 CMPP_CANCEL消息定义(SP ? ISMG) ........................................... 20 7.4.6.2 CMPP_CANCEL_RESP消息定义(ISMG ? SP)................................ 20 7.4.7 链路检测(CMPP_ACTIVE_TEST)操作 .................................................. 21

7.4.6.1 CMPP_ACTIVE_TEST定义(SP ? ISMG或ISMG?SP) ................. 21 7.4.6.2 CMPP_ACTIVE_TEST_RESP定义(SP ? ISMG或ISMG?SP) ..... 21

7.5互联网短信网关(ISMG)之间的消息定义 ...................................................................... 21

7.5.1 源ISMG请求连接到目的ISMG(CMPP_CONNECT)操作 ......................... 21 7.5.2 源ISMG请求拆除到目的ISMG的连接(CMPP_TERMINATE)操作 ........ 21 7.5.3链路检测(CMPP_ACTIVE_TEST)操作 ......................................................... 21

Page 2 of 34 Page 2 of 34

7.5.4 源ISMG向目的ISMG转发短信(CMPP_FWD)操作.................................. 21

7.5.4.1 CMPP_FWD定义(ISMG? ISMG) ..................................................... 21 7.5.4.2 CMPP_FWD_RESP定义(ISMG? ISMG) .......................................... 25

7.6互联网短信网关(ISMG)与汇接网关(GNS)之间的消息定义 ........................................ 25

7.6.1 ISMG请求连接到GNS或GNS请求连接到ISMG(CMPP_CONNECT)操作......................................................................................................................................... 25 7.6.2 ISMG请求拆除到GNS的连接或GNS请求拆除到ISMG的连接(CMPP_TERMINATE)操作 ..................................................................................... 26 7.6.3 ISMG向汇接网关查询MT路由(CMPP_MT_ROUTE)操作 ....................... 26

7.6.3.1 CMPP_MT_ROUTE消息定义(ISMG?GNS) .................................... 26 7.6.3.2 CMPP_MT_ROUTE_RESP消息定义(GNS ? ISMG) ....................... 26 7.6.4 ISMG向汇接网关查询MO路由(CMPP_MO_ROUTE)操作 ...................... 26

7.6.4.1 CMPP_MO_ROUTE消息定义(ISMG?GNS) .................................... 26 7.6.4.2 CMPP_MO_ROUTE_RESP消息定义(GNS ? ISMG) ...................... 27 7.6.5ISMG向汇接网关获取路由(CMPP_GET_ROUTE)操作 .............................. 27

7.6.5.1 CMPP_GET_ ROUTE消息定义(ISMG?GNS) ................................. 27 7.6.5.2 CMPP_GET_ ROUTE_RESP消息定义(GNS ? ISMG) .................... 27 7.6.6 ISMG向汇接网关更新MT路由(CMPP_MT_ROUTE_UPDATE)操作 ...... 28

7.6.6.1 CMPP_MT_ROUTE_UPDATE消息定义(ISMG?GNS) ................... 28 7.6.6.2 CMPP_MT_ROUTE_UPDATE_RESP消息定义(GNS ? ISMG) ..... 28 7.6.7 ISMG向汇接网关更新MO路由(CMPP_MO_ROUTE_UPDATE)操作 ..... 29

7.6.7.1 CMPP_MO_ROUTE_UPDATE消息定义(ISMG?GNS)................... 29 7.6.7.2CMPP_MO_ROUTE_UPDATE_RESP消息定义(GNS ? ISMG) ...... 29 7.6.8汇接网关向ISMG更新MT路由(CMPP_PUSH_MT_ROUTE_UPDATE)操作..................................................................................................................................... 29

7.6.8.1 CMPP_PUSH_MT_ROUTE_UPDATE消息定义(GNS?ISMG) .... 30 7.6.8.2 CMPP_PUSH_MT_ROUTE_UPDATE_RESP消息定义(ISMG ? GNS) ..................................................................................................................... 30 7.6.9汇接网关向ISMG更新MO路由(CMPP_PUSH_MO_ROUTE_UPDATE)操作..................................................................................................................................... 30

7.6.9.1 CMPP_PUSH_MO_ROUTE_UPDATE消息定义(GNS?ISMG) ... 30 7.6.9.2 CMPP_PUSH_MO_ROUTE_UPDATE_RESP消息定义(ISMG ? GNS) ..................................................................................................................... 31

7.7系统定义 ........................................................................................................................... 31

7.7.1 Command_Id定义 ................................................................................................. 31

附录1 MO状态报告的产生 ...................................................................................................... 32 修订历史......................................................................................................................................... 34

Page 3 of 34 Page 3 of 34

Page 4 of 34

Page 4 of 34

联系客服:779662525#qq.com(#替换为@)