ZTE in - Online Charging Interface-Diameter v1.0.7
ZTE in - Online Charging Interface-Diameter v1.0.7
Specification (Diameter)
Prepared by:
ZTESoft Technology Co., LTD, P.R
China
Document History
© 2003-2007 ZTEsoft
This document contains proprietary and confidential information of ZTEsoft and shall not be reproduced or
transferred to other documents, disclosed to others, or used for any purpose other than that for which it is furnished,
without the prior written consent of ZTEsoft. It shall be returned to the respective ZTEsoft companies upon
request.
The trademark and service marks of ZSmart, including the ZSmart mark and logo, are the exclusive property of
ZTEsfot, and may not be used without permission. All other marks mentioned in this material are the property of
their respective owners.
Document Information
Software Version: 7.0
Publication Date: December 2007
Catalog Number:
Page 2 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Content
1 Foreword................................................................................................................................................5
2 Scope .....................................................................................................................................................5
3 Architecture Considerations................................................................................................................6
6.1 Session-Id..................................................................................................................................50
6.2 Origin-Host................................................................................................................................50
6.3 Origin-Realm.............................................................................................................................51
6.4 Destination-Host........................................................................................................................51
6.5 Destination-Realm.....................................................................................................................51
Page 3 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6.8 CCR-Type..................................................................................................................................53
6.12 Subscription-Id-Type.................................................................................................................55
6.14 Call-Type...................................................................................................................................56
6.16 Service-Identifier.......................................................................................................................58
6.17 OA-Subscription-Id...................................................................................................................58
6.18 DA-Subscription-Id...................................................................................................................59
6.19 SMSC-Address..........................................................................................................................60
6.22 Result-Notification-Type...........................................................................................................61
7.3 Abbreviations...........................................................................................................................62
8 References ..........................................................................................................................................64
Page 4 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
1 Foreword
This Technical Specification has been produced by ZTE (ZTESoft System Department).It
is divided into six parts, first section describe the scope of document, in second section we
discussed ZTE OCS Architecture Consideration, third section describes ZTE OCS charging
application requirements. In fourth section we discussed detail regarding ZTE Online charging
interfaces. Fifth section contains Abbreviation, Symbols and definitions used in this document.
2 Scope
The present document is part of a series of documents that specify charging functionality
This document contains the most familiar scenarios of Online Charging and the definition of
Online Charging interface. Also we have discussed the detail OCS Architecture and it is
Page 5 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
3 Architecture Considerations
3.1 High level architecture
The Rf and Ro are reference points from the Charging Trigger Function (CTF) to the
Charging Data Function (CDF) and the Online Charging Function (OCF) respectively, and are
intended for the transport of charging events. Rf is used for offline charging whereas Ro is
used for online charging. The following figures show the position of the Rf and Ro reference
points within the overall ZTE online and offline charging architecture.
3GPP network
CN
Domain
Rf
C C C
Service Rf Ga Bx
T G Billing
nodes D
Domain
F
F F
Sub-
system Rf
BD: Billing Domain. This may also be a billing mediation device / post-processing system.
Page 6 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
3GPP network
CN
Domain
Ro
C O
Ga C Bo
Service Ro
T G Billing
nodes C
Domain
F
F F
Sub-
system Ro
BD: Billing Domain. This may also be a billing mediation device / post-processing system.
Different mappings of the ubiquitous offline charging functions, CTF, CDF and CGF, onto
physical implementations are possible. Further details of the configuration refer to 3GPP TS
32.240 [1]. Details of the implementation options per domain / subsystem / service are
Each CTF would have CDF and OCF address list to which it can send its charging events
and/or charging requests. The list will be organized in address priority order. If the primary
charging function is not available (e.g., out of service) then the CTF shall send the charging
Within the scope of this release, each network element that generates charging
information will send the information only to the charging entities of the same PLMN, and not
Page 7 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Each CDF in the PLMN may know of other CDFs' network addresses (e.g., for
redundancy reasons, to be able to recommend another CDF address with the Redirection
Request message). This is achieved by OAM&P configuration facilities that will enable each
Page 8 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
using the Ro reference point. The Ro reference point supports integrity protection and
authentication for the case that the CTF is outside the operator domain.
There are two sub-functions for online charging that affect online charging principles and
require a more detailed description: rating and unit determination. Both rating and unit
determination can be implemented centralized, i.e. on the OCF, or decentralized, that is, on
the CTF.
Unit determination refers to the calculation of the number of non-monetary units (service
units, data volume, time and events) that shall be assigned prior to starting service delivery.
non-monetary units that a certain service user can consume based on a service
With the Decentralized Unit Determination approach, the CTF determines itself
how many units are required to start service delivery, and requests these units
After checking the service user's account balance, the OCF returns the number of granted
units to the CTF. The CTF is then responsible for the supervision of service delivery.
Particularly, the CTF shall limit service delivery to the corresponding number of granted units.
Rating refers to the calculation of a price out of the non-monetary units calculated by the unit
determination function.
With the Centralized Rating approach, the CTF and the OCF exchange
information about non-monetary units. The OCF translates these units into
monetary units.
performed within the CTF. Consequently, CTF and OCF exchange information
Page 9 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
In order to perform event charging via Ro, the scenarios between the involved entities UE-A,
OCF and CTF need to be defined. The charging flows shown in this sub clause include
scenarios with immediate event charging and event charging with reservation. In particular,
Page 10 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
In the following scenario, CTF asks the OCF to assign a defined number of units.
UE-A OCF CTF
Credit Unit
Control 2. Units
Determination
4. Rating
Control
5. Account
Control
6. Debit Units Response (Non-monetary Units)
7. Content/Service Delivery
Figure 4.1.2.1.1: ZTE OCS Immediate Event Charging with Centralized Rating and
1. Request for Resource Usage: UE-A requests the desired resource from the network
element.
2. Units Determination: depending on the requested service the CTF determines the
3. Debit Units Request: the CTF requests the OCF to assign the defined number of units.
4. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
units that represents the price for the number of units determined in item 2.
Page 11 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
5. Account Control: Provided that the user's credit balance is sufficient, the OCF triggers the
6. Debit Units Response: The OCF informs the CTF of the number of granted units.
8. Credit Unit Control (cont.): This function block is optional and a replication of items 2 to 6.
Page 12 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
In the following scenario, CTF asks the OCF to assign units based on the service identifier
Credit Service
Control 2. Debit Units Request (Service Key)
3. Units
Determination
4. Rating
Control
5. Account
Control
6. Debit Units Response (Non-monetary Units)
7. Content/Service Delivery
Figure 4.1.2.1.2: ZTE OCS Immediate Event Charging with Centralized Rating and
1. Request for resource usage: The UE-A requests the desired resource or content from the
network element.
2. Debit Units Request: Depending on the service requested by the UE-A, the CTF selects the
service identifier and forwards the Debit Units Request to the OCF.
3. Units Determination: The OCF determines the number of non-monetary units needed for
4. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
Page 13 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
units that represent the price for the number of units determined in item 3.
5. Account Control: Provided that the user's credit balance is sufficient, the OCF triggers the
6. Debit Units Response: The OCF informs the CTF of the number of granted units. This
includes the case where the number of units granted indicates the permission to render the
8. Credit Service Control (cont.): This function block is optional and a replication of items 2to6.
In the following scenario, the CTF asks the OCF to assure the deduction of an amount of the
Page 14 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Credit Amount
Control 2. Units
Determination
3. Rating
Control
4. Debit Units Request(Monetary Units)
5. Account
Control
6. Debit Units Response(Monetary Units)
7. Content/Service Delivery
Figure 4.1.2.1.3: ZTE OCS Immediate Event Charging with Decentralized Rating and
1. Request for resource usage: The UE-A requests the desired content from the network
element.
2. Units Determination: Depending on the service requested by the UE-A, the CTF
3. Rating Control: The CTF calculates the number of monetary units that represent the price
4. Debit Units Request: The CTF requests the OCF to assure the deduction of an amount
corresponding to the calculated number of monetary units from the subscriber's account.
5. Account Control: Provided that the user's credit balance is sufficient, the OCF triggers the
6. Debit Units Response: The OCF indicates to the CTF the number of deducted monetary
Page 15 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
units.
and 3.
8. Credit Amount Control (cont.): This function block is optional and a replication of items 2
to 6.
In addition to the flows that are specified in the previous sub clauses, the Debit Unit operation
may alternatively be carried out concurrently with service delivery, or after completion of
service delivery.
In the following scenario, the CTF requests the reservation of units prior to service delivery. An
account debit operation is carried out following the conclusion of service delivery.
Page 16 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
2. Units
Determination
4. Rating
Control
5. Account
Control
6.Reservation
Control
7. Reserve Units Response (Non-monetary Units)
8. Reserved Units
Supervision
9. Content/Service Delivery
11. Rating
Control
12. Account
Control
Figure 4.1.2.2.1: ZTE OCS Event Charging with Reservation / Decentralized Unit
1. Request for resource usage: The UE-A requests the desired content/service from the NE.
2. Units Determination: Depending on the requested service the CTF determines the
3. Reserve Units Request: The CTF requests the OCF to reserve the number of units
determined in item 2.
4. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
units that represents the price for the number of units determined in item 2.
Page 17 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
5. Account Control: The OCF checks whether the user's account balance is sufficient for the
requested reservation.
6. Reservation Control: If the user's account balance is sufficient then the corresponding
reservation is made.
7. Reserve Units Response: The OCF informs the CTF of the reserved number of units.
8. Reserved Units Supervision: Simultaneously with the service delivery, the CTF monitors
10. Debit Units Request: The CTF requests the OCF to assure the deduction of an amount
corresponding to the consumed number of units from the subscriber's account. In the case
that no further units are required for this service, an appropriate indication triggering the
11. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
12. Account Control: The OCF triggers the deduction of the calculated amount from the
subscriber's account.
13. Debit Units Response: The OCF informs the CTF of the actually deducted units. Items 10
In the following scenario, the CTF requests the OCF to reserve units based on the service
identifier specified by the CTF. An account debit operation is carried out following the
Page 18 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
3. Units
Determination
4. Rating Control
5. Account
Control
6. Reservation
Control
7. Reserve Units Response (Non-monetary Units)
8. Granted Units
Supervision
9. Content/Service Delivery
11. Rating
Control
12. Account
Control
13. Debit Units Response (Non-monetary Units)
Figure 4.1.2.2.2: ZTE OCS Event Charging with Reservation / Centralized Unit
1. Request for resource usage: The UE-A requests the desired content from the CTF.
2. Reserve Units Request: Depending on the service requested by the UE-A, the CTF
selects the service identifier and forwards the Reserve Units Request to the OCF.
3. Units Determination: The OCF determines the number of non-monetary units needed for
4. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
units that represent the price for the number of units determined in item 3.
5. Account Control: The OCF checks whether the user's account balance is sufficient for the
Page 19 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
requested reservation.
6. Reservation Control: If the user's account balance is sufficient, then the corresponding
reservation is made.
7. Reserve Units Response: The OCF informs the CTF of the reserved number of units.
This includes the case where the number of units reserved indicates the permission to render
the service that was identified by the received service key. Items 2 to 7 may be repeated
several times.
8. Granted Units Supervision: Simultaneously with the service delivery, the CTF monitors
10. Debit Units Request: The CTF provides according to previous Reserve Units Response
either the request to deduct of an amount corresponding to the consumed number of units
from the subscriber's account, or solely the indication of whether the service was successfully
delivered or not. In the case that no further units are required for this service, an appropriate
11. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
12. Account Control: The OCF triggers the deduction of the calculated amount from the
subscriber's account.
13. Debit Units Response: The OCF informs the CTF of the actually deducted units. Items 10
In the following scenario, the CTF request the OCF to assure the reservation of an amount of
the specified number of monetary units from the subscriber's account. An account debit
operation that triggers the deduction the amount from the subscriber's account is carried out
Page 20 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
2. Units
Determination
3. Rating Control
5. Account
Control
6. Reservation
Control
7. Reserve Units Response (Monetary Units)
8. Budget
Control
9. Content/Service Delivery
11. Account
Control
Figure 4.1.2.2.3: ZTE OCS Event Charging with Reservation / Centralized Unit
1. Request for resource usage: The UE-A requests the desired content from the CTF.
2. Units Determination: Depending on the service requested by the UE-A, the CTF
3. Rating Control: The CTF calculates the number of monetary units that represent the price
4. Reserve Units Request: The CTF requests the OCF to assure the reservation of an
amount corresponding to the calculated number of monetary units from the subscriber's
account.
5. Account Control: The OCF checks whether the user's account balance is sufficient for the
requested reservation.
Page 21 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6. Reservation Control: If the user's credit balance is sufficient, then the corresponding
reservation is made.
7. Reserve Units Response: The OCF informs the CTF of the reserved number of monetary
8. Budget Control: Simultaneously with the service delivery, the CTF monitors the
10. Debit Units Request: The CTF requests the OCF to assure the deduction of an amount
corresponding to the consumed number of monetary units from the subscriber's account.
11. Account Control: The OCF triggers the deduction of the consumed amount from the
subscriber's account.
12. Debit Units Response: OCF indicates to the CTF the number of deducted monetary units.
In the following scenario, the CTF requests the reservation of units prior to session
supervision. An account debit operation is carried out following the conclusion of session
termination.
Page 22 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
2. Units
Determination
4. Rating
Control
5. Account
Control
6.Reservation
Control
7. Reserve Units Response (Non-monetary Units)
8. Reserved Units
Supervision
9. Session ongoing
12. Rating
Control
13. Account
Control
14. Debit Units Response (Non-monetary Units)
Figure 4.1.2.3.1: ZTE OCS Session Charging with Reservation / Decentralized Unit
1. Request for resource usage: The UE-A requests session establishment from the CTF.
2. Units Determination: Depending on the requested type of the session the CTF
3. Reserve Units Request: CTF requests the OCF to reserve the number of units
determined in item 2
4. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
units that represents the price for the number of units determined in item 2.
Page 23 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
5. Account Control: OCF checks whether the user's account balance is sufficient for the
requested reservation.
6. Reservation Control: If the user's account balance is sufficient then the corresponding
reservation is made.
7. Reserve Units Response: OCF informs the CTF of the reserved number of units.
8. Reserved Units Supervision: Simultaneously with the ongoing session, the CTF monitors
9. Session ongoing: CTF maintains the session. One or more debit and reserve operations
11. Debit Units Request: CTF requests the OCF to assure the deduction of an amount
12. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
13. Account Control: The OCF triggers the deduction of the calculated amount from the
subscriber's account.
14. Debit Units Response: The OCF informs the CTF of the actually deducted units.
In the following scenario, the CTF requests the OCF to reserve units based on the session
identifiers specified by the CTF. An account debit operation is carried out following the
conclusion of session.
Page 24 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
3. Units
Determination
4. Rating Control
5. Account
Control
6. Reservation
Control
7. Reserve Units Response (Non-monetary Units)
8. Granted Units
Supervision
9. Session ongoing
12. Rating
Control
13. Account
Control
Figure 4.1.2.3.2: ZTE OCS Session Charging with Reservation / Centralized Unit
1. Request for resource usage: The UE-A requests the session establishment from the CTF.
2. Reserve Units Request: Depending on the requested type of the session by the UE-A, the
CTF selects the service identifier and forwards the Reserve Units Request to the OCF.
3. Units Determination: OCF determines the number of non-monetary units needed for the
4. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
units that represent the price for the number of units determined in item 3.
Page 25 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
5. Account Control: OCF checks whether the user's account balance is sufficient for the
requested reservation.
6. Reservation Control: If the user's account balance is sufficient, then the corresponding
reservation is made.
7. Reserve Units Response: OCF informs the CTF of the reserved number of units. This
includes the case where the number of units reserved indicates the permission to render the
8. Granted Units Supervision: Simultaneously with the ongoing session, the CTF monitors
9. Session ongoing: CTF maintains the session. One or more debit and reserve operations
11. Debit Units Request: CTF requests the OCF to assure the deduction of an amount
12. Rating Control: Assisted by the rating entity the OCF calculates the number of monetary
13. Account Control: OCF triggers the deduction of the calculated amount from the
subscriber's account.
14. Debit Units Response: OCF informs the CTF of the actually deducted units.
In the following scenario, the CTF request the OCF to assure the reservation of an amount of
the specified number of monetary units from the subscriber's account. An account debit
operation that triggers the deduction the amount from the subscriber's account is carried out
Page 26 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
2. Units
Determination
3. Rating Control
5. Account
Control
6. Reservation
Control
7. Reserve Units Response (Monetary Units)
8. Budget
Control
9. Session ongoing
12. Account
Control
13. Debit Units Response (Monetary Units)
Figure 4.2.2.3.3: ZTE OCS Session Charging with Reservation / Decentralized Unit
1. Request for resource usage: The UE-A requests the session establishment from the CTF.
2. Units Determination: Depending on the requested type of the session by the UE-A, the
3. Rating Control: The CTF calculates the number of monetary units that represent the price
4. Reserve Units Request: The CTF requests the OCF to assure the reservation of an
amount corresponding to the calculated number of monetary units from the subscriber's
account.
5. Account Control: The OCF checks whether the user's account balance is sufficient for the
requested reservation.
Page 27 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6. Reservation Control: If the user's credit balance is sufficient, then the corresponding
reservation is made.
7. Reserve Units Response: The OCF informs the CTF of the reserved number of monetary
units.
8. Budget Control: Simultaneously with the ongoing session, the CTF monitors the
9. Session ongoing: The CTF maintains the session. One or more debit and reserve
11. Debit Units Request: The CTF requests the OCF to assure the deduction of an amount
corresponding to the consumed number of monetary units from the subscriber's account.
12. Account Control: The OCF triggers the deduction of the consumed amount from the
subscriber's account.
13. Debit Units Response: The OCF indicates to the CTF the number of deducted monetary
units.
Page 28 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
5.1.1.1 General
The corresponding Diameter credit control application messages for the Debit / Reserve Unit
Request operation is Credit-Control-Request (CCR) and for the Debit / Reserve Unit
series of "interrogations":
Initial interrogation.
Final interrogation.
In addition to a series of interrogations, also a one time event (interrogation) can be used e.g.
The Credit-Control-Request for the "interim interrogation" and "final interrogation" reports the
actual number of "units" that were used, from what was previously reserved. This determines
CER/CEA and DWR/DWA are mandatory Diameter capabilities for capabilities exchange and
Page 29 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
The following is the basic structure shared by all online charging messages. This is based
directly on the format of the messages defined in IETF RFC 4006 [402].
The CCR messages, indicated by the Command-Code field set to 272 is sent by the CTF
to the OCF in order to request credits for the request bearer / subsystem /service.
<Session-Id>
{Origin-Host}
{Origin-Realm}
{Destination-Realm}
{Auth-Application-Id}
{Service-Context-Id}
{CC-Request-Type}
{CC-Request-Number}
[Destination-Host]
[User-Name]
[Origin-State-Id]
[Event-Timestamp]
*[Subscription-Id]
[Termination-Cause]
*[Route-Record]
[Service-Identifier]
[Requested-Action]
Page 30 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
[Requested-Service-Unit]
*[Used-Service-Unit]
[Multiple-Services-Indicator]
*[Multiple-Services-Credit-Control]
[CC-Correlation-Id]
[User-Equipment-Info]
*[Proxy-Info]
[Service-Information]
[AoC-Information]
Table 5.1.2 illustrates the basic structure of a ZTE Diameter Credit Control Credit-Control-Request
[User-Name] 1 -- UTF8String OC
[Event-Timestamp] 55 -- Time OC
Page 31 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 32 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
447 -- Integer64 OC
{Value-Digits}
446 -- Grouped OC
*[Used-Service-Unit]
447 -- Integer64 OC
{Value-Digits}
Page 33 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 34 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 35 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
{SM-Id} 20402 81000 UTF8String OC
Page 36 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
450 -- Enumerated OC
{Subscription-Id-Type}
444 -- UTF8String OC
{Subscription-Id-Data}
450 -- Enumerated OC
{Subscription-Id-Type}
444 -- UTF8String OC
{Subscription-Id-Data}
450 -- Enumerated OC
{Subscription-Id-Type}
444 -- UTF8String OC
{Subscription-Id-Data}
Page 37 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 38 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 39 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Early Media Description 1272 10415 grouped OC
Page 40 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Message Bodies 889 10415 Grouped OC
to 272 is sent by the OCF to the CTF in order to reply to the CCR.
The CCA message format is defined according to IETF RFC 4006 [402] as follows:
<Session-Id>
{Result-Code}
{Origin-Host}
{Origin-Realm}
{Auth-Application-Id}
{CC-Request-Type}
{CC-Request-Number}
[CC-Session-Failover]
[Origin-State-Id]
[Service-Identifier]
[Granted-Service-Unit]
Page 41 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
[Cost-Information]
[Final-Unit-Indication]
[Credit-Control-Failure-Handling]
*[Trigger-Type]
[Direct-Debiting-Failure-Handling]
*[Proxy-Info]
*[Multiple-Services-Credit-Control]
*[Route-Record]
*[Failed-AVP]
[AoC-Information]
Credit-Control-Answer message as used for online charging. This message is always used by
the OCF as specified below, independent of the receiving CTF and the CCR record type that
Page 42 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
*[Filter-Id] 11 -- OctectString OC
Page 43 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
438 -- IPFilterRule OC
*[Restriction-Filter-Rule]
*[Filter-Id] 11 -- OctectString OC
433 -- Emumerated OC
{Redirect-Address-Type}
435 -- UTF8String OC
{Redirect-Server-Address}
{Proxy-State} 33 -- OctetString OM
Page 44 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 45 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Page 46 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
{ Origin-Host }
{ Origin-Realm }
1* { Host-IP-Address }
{ Vendor-Id }
{ Product-Name }
[ Origin-State-Id ]
* [ Supported-Vendor-Id ]
* [ Auth-Application-Id ]
* [ Inband-Security-Id ]
* [ Acct-Application-Id ]
* [ Vendor-Specific-Application-Id ]
[ Firmware-Revision ]
* [ AVP ]
{ Result-Code }
Page 47 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
{ Origin-Host }
{ Origin-Realm }
1* { Host-IP-Address }
{ Vendor-Id }
{ Product-Name }
[ Origin-State-Id ]
[ Error-Message ]
* [ Failed-AVP ]
* [ Supported-Vendor-Id ]
* [ Auth-Application-Id ]
* [ Inband-Security-Id ]
* [ Acct-Application-Id ]
* [ Vendor-Specific-Application-Id ]
[ Firmware-Revision ]
* [ AVP ]
{ Origin-Host }
{ Origin-Realm }
[ Origin-State-Id ]
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ Error-Message ]
* [ Failed-AVP ]
[ Original-State-Id ]
Page 48 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
{ Origin-Host }
{ Origin-Realm }
{ Disconnect-Cause }
{ Result-Code }
{ Origin-Host }
{ Origin-Realm }
[ Error-Message ]
* [ Failed-AVP ]
Page 49 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6 AVP Definition
6.1 Session-Id
AVP Name Session-Id
Quoted From
<high 32 bits>: the current time of the system, which is in accordance with the data format
defined in TIME;
<low 32 bits>: increase circularly. Its initial value is 0 and it is set to 0 when the system
restarts;
For example:
SMSC001.TKL.com;8876583210;588
6.2 Origin-Host
AVP Name Origin-Host
Page 50 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Quoted From
Directions: the service ID of the launcher. It is distributed by the entire network in a unified
way and the uniqueness of different Diameter peers must be guaranteed.
6.3 Origin-Realm
AVP Name Origin-Realm
6.4 Destination-Host
AVP Name Destination-Host
It must be carried in a message that initiated by the agent; it can be carried in the request
message; and it can not be carried in a reply message.
6.5 Destination-Realm
AVP Name Destination-Realm
Page 51 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6.6 Auth-Application-Id
AVP Name Auth-Application-Id
6.7 Service-Context-Id
AVP Name Service-Context-Id
Page 52 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
version3.P2PSMS.gsm@TKL.com
6.8 CCR-Type
AVP Name CC-Request-Type
Directions: the reason for sending a CCR message. It is a enumeration type and must be
INITIAL_REQUEST 1
The initial credit-control request. It is used to initiate a credit control session, which
UPDATE_REQUEST 2
established credit control session. The credit-control request can be used to initiate a
re-authorization.
Page 53 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
TERMINATION_REQUEST 3
EVENT_REQUEST 4
EVENT_REQUEST can be used when there is no need for the DDC server to maintain
the session state, which involves all of the information of the corresponding service.
And it is the unique request of this service. When CC-Request-Type in the CCR request
message.
The deduction request in the TKL short message center is an event deduction request, 4
6.9 CCR-Request-Number
AVP Name CC-Request-Number
Quoted From
Directions: the identifier of different requests in one session. Because of the global
uniqueness of the Session-Id, different requests and replies can be matched through the
UPDATE REQUEST and the second UPDATE REQUEST can be set to 0,1 and 2,
respectively. And all the rest can be set in the same way until the
TERMINATION_REQUEST is sent.
Page 54 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6.10 Event-Timestamp
AVP Name Event-Timestamp
AVP Code 55
Quoted From
Directions: timestamp; It is counted by seconds from 1900 00:00 UTC January the first.
6.11 Subscription-Id
AVP Name Subscription-ID
Quoted From
Directions: it is used to identify the information of the terminal user in the service
subscription side.
{ Subscription-Id-Type }
{ Subscription-Id-Data }
6.12 Subscription-Id-Type
AVP Name Subscription-Id-Type
Quoted From
Page 55 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
END_USER_E164 0
The format of the terminal identifier is the international E.164 format defined in
END_USER_IMSI 1
The format of the terminal identifier is the international IMSI format defined in
END_USER_SIP_URI 2
END_USER_NAI 3
END_USER_PRIVATE 4
For the SMSC of TKL, the END_USER_E164 should be used to send the subscriber
MSISDN.
6.13 Subscription-Id-Data
AVP Name Subscription-Id-Data
6.14 Call-Type
AVP Name Call-Type
Page 56 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Quoted From
Directions: 1-MO
2-MT
6.15 Requested-Action
AVP Name Requested-Action
Quoted From
DIRECT_DEBITING 0
service.
REFUND_ACCOUNT 1
service.
CHECK_BALANCE 2
Balance check. The request that this command initiates is to check the balance. In this
Page 57 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
reserved. The result of the balance check is returned through the Balance-Result AVP in
PRICE_ENQUIRY 3
Price enquiry. The request that this command initiates is to query the price. In this
reserved, too. Only the requested service price is returned through the Cost-Information in
the CCA.
For the TKL, if it is successful, the DIRECT_DEBITING should be filled in; if it is failing,
6.16 Service-Identifier
AVP Name Service-Identifier
Directions: service ID, which determines a service uniquely along with the
Service-Context-Id.
For the TKL projects, it is reserved temporarily. The sub –service in the P2PSMS can be
6.17 OA-Subscription-Id
AVP Name OA-Subscription-Id
AVPType Grouped
Page 58 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Quoted From
Directions: it is used to identify the information of terminal user in the initiative side
{ Subscription-Id-Type }
{ Subscription-Id-Data }
number: 0085212345678
6.18 DA-Subscription-Id
AVP Name DA-Subscription-Id
Quoted From
Directions: it is used to identify the information of the terminal user in the destination
side.
{ Subscription-Id-Type }
Page 59 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
{ Subscription-Id-Data }
number: 0085212345678
6.19 SMSC-Address
AVP Name SMSC-Address
Quoted From
Directions: the address of the short message center
6.20 SM-Id
AVP Name SM-Id
Quoted From
Directions: the short message identifier. It is used to relate the deduction request of the
IEC and the refund request of the Result Notification Request.
Page 60 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
6.21 SM-Length
AVP Name SM-Length
Quoted From
Directions: the short message length
6.22 Result-Notification-Type
AVP Name Result-Notification-Type
Quoted From
Directions:
0x00 – the billing notification will be sent whether the short message is sent successfully
or not.
0x01 – the billing notification will be sent only when the short message is not sent
successfully.
0x02 –the billing notification will be sent only when the short message is sent successfully.
0x03 –he billing notification will not be sent whether the short message is sent
successfully or not.
Page 61 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
Offline Charging: charging mechanism where charging information does not affect, in
Online Charging: charging mechanism where charging information can affect, in real-time, the
service rendered and therefore a direct interaction of the charging mechanism with
7.2 Symbols
For the purposes of the present document, the following symbols apply:
Rf Offline Charging Reference Point between a 3G network element and the CDF.
Ro Online Charging Reference Point between a 3G network element and the OCS.
7.3 Abbreviations
For the purposes of the present document, the following abbreviations apply:
AS Application Server
CI Cost-Information
Page 62 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
FUI Final-Unit-Indication
GSU Granted-Service-Unit
Page 63 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
8 References
[001] 3GPP TS 32.240: "Telecommunication management; Charging management;
[003] 3GPP TS 23.207: "End to end quality of service concept and architecture".
[005] 3GPP TS 24.229: "IP Multimedia Call Control Protocol based on SIP and SDP; Stage
3."
[007] 3GPP TS 29.229: "Cx and Dx Interfaces based on the Diameter protocol; Protocol
Details".
[009] 3GPP TS 29.061: "Interworking between the Public Land Mobile Network (PLMN)
[010] 3GPP TS 23.140: " Multimedia Messaging Service (MMS); Functional description;
Stage 2".
http://www.openmobilealliance.org/tech/omna/omna-wsp-content-type.htm
[014] 3GPP 29.234: "3GPP system to Wireless Local Area Network (WLAN) interworking;
Stage 3".
[015] 3GPP TS 29.140: "MM10 interface based on Diameter protocol; Stage 3".
[016] 3GPP TS 29.214: "Policy and Charging Control over Rx reference point; Stage 3".
[017] 3GPP TS 29.212: "Policy and Charging Control over Gx reference point".
Page 64 of 65
ZTE Online Charging Interface-Diameter v1.0_Kenya
work in progress
[022] IETF RFC 3455 , "Private Extensions to the Session Initiation Protocol (SIP) for the
Protocol".http://www.ietf.org/internet-drafts/draft-ietf-mmusic-sdp-new-24.txt
[026] IETF RFC 3264: An Offer/Answer Model with the Session Description Protocol
(SDP).
[027] 3GPP TS 32.299: The use of the Attribute Value Pairs (AVPs) that are defined in the
ZTE Online Charging Interface- Diameter document. Detailed specification of these AVPs can
Page 65 of 65