中国电信企业标准
中国电信在线计费系统(OCS) OCP 接口规范
版本号:V1.04
中国电信集团公司
2008-6
前 言
中国电信移动业务在线计费协议是在充分研究和分析国内外在线计费协议基础上,基于中国电信移动业务在线计费的需求,参考3GPP、IETF等国际标准组织的在线计费接口协议规范编制的。
本方案是中国电信移动业务在线计费协议OCP规范,为中国电信移动业务在线计费系统总体技术方案的组成部分,是在线计费协议实施的标准规范文件。整个在线计费系统技术方案主要包括:
? 《《中国电信在线计费系统(OCS)总体技术方案》 ? 《中国电信在线计费系统(OCS)业务需求》 ? 《中国电信在线计费系统(OCS)技术要求》 ? 《中国电信在线计费系统OCP接口规范》 ? 《中国电信在线计费系统SCP设备改造要求》 ? 《中国电信在线计费系统ISMP设备改造要求》 ? 《中国电信在线计费系统CCG设备技术要求》
本标准附录A、附录B是规范性附录。 本标准附录C是资料性附录。
本技术方案由中国电信股份有限公司提出并归口。 本方案起草单位: 中国电信股份有限公司上海研究院 本方案主要起草人:刘晓亮 董斌 周峰 李洁 本方案解释单位:中国电信股份有限公司上海研究院
目 录
第1章 范围 ....................................................................................................................................10 第2章 规范性引用文件 ................................................................................................................ 11 第3章 定义和符号及缩写 ............................................................................................................12
3.1 定义 .................................................................................................................................. 12 3.2 符号和缩写 ...................................................................................................................... 15 第4章 协议概述 ............................................................................................................................16
4.1 协议结构 .......................................................................................................................... 17 4.2 协议格式 .......................................................................................................................... 17
4.2.1 消息头格式 ........................................................................................................... 17 4.2.2 消息列表 ............................................................................................................... 19 4.2.3 AVP头格式 ........................................................................................................... 20 4.2.4 AVP数据格式 ....................................................................................................... 21
第5章 接口描述 ............................................................................................................................24
5.1 外部接口逻辑结构 .......................................................................................................... 24 5.2 与ISMP的接口关系 ....................................................................................................... 24 5.3 与SCP的接口关系 ......................................................................................................... 24 5.4 与CCG的接口关系 ........................................................................................................ 24 第6章 接口定义 ............................................................................................................................26
6.1 消息定义 .......................................................................................................................... 26
6.1.1 Credit-Control-Request (CCR) .............................................................................. 26 6.1.2 Credit-Control-Answer (CCA) .............................................................................. 31 6.1.3 Re-Auth-Request(RAR) ........................................................................................ 33 6.1.4 Re-Auth-Answer(RAA) ........................................................................................ 34 6.1.5 Abort-Session-Request(ASR) ................................................................................ 34 6.1.6 Abort-Session-Answer(ASA) ................................................................................ 35 6.1.7 Device-Watchdog-Request(DWR) ........................................................................ 36 6.1.8 Device-Watchdog-Answer(DWA) ......................................................................... 36 6.1.9 Disconnect-Peer-Request(DPR) ............................................................................ 36 6.1.10 Disconnect-Peer-Answer(DPA) ........................................................................... 37 6.1.11 Capabilities-Exchange-Request (CER) ............................................................... 37 6.1.12 Capabilities-Exchange-Answer (CEA)................................................................ 38 6.2 AVP定义 .......................................................................................................................... 39
6.2.1 Session-Id .............................................................................................................. 39 6.2.2 Origin-Host ............................................................................................................ 39 6.2.3 Origin-Realm ......................................................................................................... 39 6.2.4 Destination-Realm ................................................................................................. 40 6.2.5 Auth-Application-Id .............................................................................................. 40 6.2.6 Service-Context-Id ................................................................................................ 40 6.2.7 CC-Request-Type .................................................................................................. 41 6.2.8 CC-Request-Number ............................................................................................. 42 6.2.9 Destination-Host .................................................................................................... 42 6.2.10 User-Name ........................................................................................................... 42
6.2.11 Origin-State-Id ..................................................................................................... 43 6.2.12 Event-Timestamp ................................................................................................ 43 6.2.13 Subscription-ID ................................................................................................... 43 6.2.14 Subscription-Id-Type ........................................................................................... 43 6.2.15 Subscription-Id-Data ........................................................................................... 44 6.2.16 Termination-Cause .............................................................................................. 44 6.2.17 Route-Record ...................................................................................................... 44 6.2.18 Requested-Action ................................................................................................ 45 6.2.19 Requested-Service-Unit ....................................................................................... 45 6.2.20 CC-Time .............................................................................................................. 46 6.2.21 CC-Money ........................................................................................................... 46 6.2.22 Unit-Value ........................................................................................................... 46 6.2.23 Value-Digits ......................................................................................................... 46 6.2.24 Exponent .............................................................................................................. 46 6.2.25 Currency-Code .................................................................................................... 47 6.2.26 CC-Total-Octets ................................................................................................. 47 6.2.27 CC-Input-Octets .................................................................................................. 47 6.2.28 CC-Output-Octets ................................................................................................ 47 6.2.29 CC-Service-Specific-Units .................................................................................. 47 6.2.30 Used-Service-Unit ............................................................................................... 48 6.2.31 Tariff-Change-Usage .......................................................................................... 48 6.2.32 Multiple-Services-Indicator ................................................................................. 48 6.2.33 Multiple-Services-Credit-Control ........................................................................ 49 6.2.34 Reporting-Reason ................................................................................................ 50 6.2.35 Trigger-Type ........................................................................................................ 51 6.2.36 Rating-Group ....................................................................................................... 51 6.2.37 CC-Correlation-Id ............................................................................................... 51 6.2.38 Proxy-Info ........................................................................................................... 51 6.2.39 Proxy-Host .......................................................................................................... 52 6.2.40 Proxy-State .......................................................................................................... 52 6.2.41 User-Equipment-Info ........................................................................................... 52 6.2.42 User-Equipment-Info-Type ................................................................................. 52 6.2.43 User-Equipment-Info-Value ................................................................................ 53 6.2.44 Service-Information ............................................................................................. 53 6.2.45 PS-Information .................................................................................................... 53 6.2.46 IN-Information .................................................................................................... 54 6.2.47 P2PSMS-Information .......................................................................................... 55 6.2.48 ISMP-Information ............................................................................................... 55 6.2.49 Result-Code ......................................................................................................... 56 6.2.50 CC-Session-Failover .......................................................................................... 56 6.2.51 Granted-Service-Unit .......................................................................................... 57 6.2.52 Tariff-Time-Change ............................................................................................ 57 6.2.53 Time-Quota-Threshold ........................................................................................ 58 6.2.54 Volume-Quota-Threshold .................................................................................... 58 6.2.55 Cost-Information ................................................................................................ 58
6.2.56 Cost-Unit ............................................................................................................. 59 6.2.57 Final-Unit-Indication ........................................................................................... 59 6.2.58 Final-Unit-Action ................................................................................................ 60 6.2.59 Restriction-Filter-Rule ......................................................................................... 60 6.2.60 Filter-Id ................................................................................................................ 60 6.2.61 Redirect-Server .................................................................................................... 60 6.2.62 Redirect-Address-Type ........................................................................................ 61 6.2.63 Redirect-server-Address ...................................................................................... 61 6.2.64 Credit-Control-Failure-Handling ......................................................................... 61 6.2.65 Validity-Time ....................................................................................................... 62 6.2.66 Direct-Debiting-Failure-Handling ....................................................................... 62 6.2.67 Quota-Holding-Time ........................................................................................... 62 6.2.68 Quota-Consumption-Time ................................................................................... 63 6.2.69 3GPP-Charging-Id ............................................................................................... 64 6.2.70 3GPP-PDP-Type .................................................................................................. 64 6.2.71 PDP-Address ....................................................................................................... 64 6.2.72 3GPP-GPRS-Negotiated-Qos-Profile .................................................................. 64 6.2.73 SGSN-Address .................................................................................................... 65 6.2.74 GGSN-Address .................................................................................................... 65 6.2.75 CG-Address ......................................................................................................... 65 6.2.76 3GPP-IMSI-MCC-MNC ..................................................................................... 65 6.2.77 3GPP-GGSN-MCC-MNC .................................................................................. 65 6.2.78 3GPP-NSAPI ....................................................................................................... 65 6.2.79 Called-Station-Id ................................................................................................. 66 6.2.80 3GPP-Session-Stop-Indicator .............................................................................. 66 6.2.81 3GPP-Selection-Mode ......................................................................................... 66 6.2.82 3GPP-Charging-Characteristics........................................................................... 66 6.2.83 3GPP-SGSN-MCC-MNC.................................................................................... 66 6.2.84 3GPP-MS-TimeZone ........................................................................................... 67 6.2.85 3GPP-CAMEL-Charging-Info ............................................................................ 67 6.2.86 Charging-Rule-Based-Name ............................................................................... 67 6.2.87 3GPP-User-Location-Info ................................................................................... 67 6.2.88 3GPP-RAT-Type .................................................................................................. 67 6.2.89 Calling-Partys-Category ...................................................................................... 68 6.2.90 Calling-Vlr-Number ............................................................................................ 68 6.2.91 Calling-CellID-Or-SAI ........................................................................................ 68 6.2.92 Calling-LAI ......................................................................................................... 68 6.2.93 Called-Vlr-Number.............................................................................................. 68 6.2.94 Called-CellID-Or-SAI ......................................................................................... 68 6.2.95 Called-LAI .......................................................................................................... 69 6.2.96 Called-IMEI ........................................................................................................ 69 6.2.97 Calling-IMEI ....................................................................................................... 69 6.2.98 Oiginal-Called-Party-Id ....................................................................................... 69 6.2.99 High-Layer-Compatibility ................................................................................... 69 6.2.100 Additional-Calling-Party-Number ..................................................................... 70