- Diameter Credit-Control Application
Diameter Credit-Control Application, is a networking protocol for Diameter application used to implement real-time credit-control for a variety of end user services.
It is an IETF standard defined in RFC 4006.
The purpose of the diameter credit control application is to provide a framework for real-time charging, primarily meant for the communication between gateways/control-points and the back-end account/balance systems (typically an Online Charging System).
The application specifies methods for:
- Quota management (Reserve, Reauthorize, Abandon)
- Simple Debit/Credit
- Balance checks
- Price inquiries
The diameter credit control application does not specify which type units are bought/used and which items are charged. This is left to the service context that have to be specified separately, as is some of the semantics.
Examples of units used/bought:
- Upload/Download bytes
- SMS (Text Messages)
Examples of items charged:
- Units (eg. if the balance is kept in the same units as what is being used)
Diameter credit control also specifies how to handle the fairly complex issue of multiple unit types used/charged against a single user balance. For instance, a user may pay for both online time and download bytes but has only a single account balance.
A session-based credit control process uses several interrogations which may include first, intermediate and last interrogation. During interrogation money is reserved from the user account. Session-based charging is typically used for scenarios where the charged units are continuously consumed, e.g. charging for bytes upload/download.
An event-based credit control process uses events as charging mechanism. Event-based charging is typically used when units are not continuously consumed, e.g. a user sending an MMS.
In order to support Credit Control via Diameter, there are two Diameter messages, the CCR (Credit Control Request) and the CCA (Credit Control Answer). Command Code for CCR/CCA is 272, as defined in RFC 4006
For quota management the client sends CCR to the server requesting units and reporting consumption. The server grants units and charges the user. For simple debit/credit the client sends a CCR asking the server to credit/debit the user's account. For price inquiries the client ask the server what the price for a unit is, and the server responds with the price.
The message flows are in general driven by the control-point asking for units and the server granting them. The message may also be generated by other diameter applications, such as NASREQ (RFC4005) for sessions that are time/usage-limited.
The following diagram shows a simplified message flow for a session using quota grants.
The client starts by requesting 10 units from the server. The server verifies that the user/subscriber has enough balance for it. In this example the server grants the client all the units it requested. if the subscriber had had insufficient balance it could have granted less units or rejected it completely.
When or before the subscriber session has used the granted units the client sends an update to the server telling it how many units have been used and how many it would like granted this time. The client is allowed to request units before the previous grant is completely used, in order to avoid suspending the subscriber session while talking to the server. In this example the client sends the request when 7 units of the 10 previously granted units have been used; and ask for 10 more units, which the server grants. The server can use the used-units count for debiting the subscriber balance (granting units does not indicate that they will be used. The Used-Units AVP contains the actual usage). It is also possible for the server to tell the client how long the grant is valid, in which case the client is expected to send an update when the grant timer expires.
There can be many update messages during a session.
Finally, the subscriber has ended the session, and the client sends a termination message to the server containing the last Used-Units. The server can use the termination message to clear any related reservations made in the back-end balance management system. If the subscriber did not terminate the session himself but instead depleted his balance then the server would have responded earlier with reject to an update message, possibly telling the client/control-point to redirect traffic (this normally only makes sense for HTTP/WAP traffic).
AVPs for new command codes
The new Command codes, CCA and CCR, may require some AVPs as indicated below. Bold AVPs are new to DCCA.
Command Code Attribute Name CCR CCA Acct-Multi-Session-Id 0-1 0-1 Auth-Application-Id 1 1 CC-Correlation-Id 0-1 0 CC-Session-Failover 0 0-1 CC-Request-Number 1 1 CC-Request-Type 1 1 CC-Sub-Session-Id 0-1 0-1 Check-Balance-Result 0 0-1 Cost-Information 0 0-1 Credit-Control-Failure-Handling 0 0-1 Destination-Host 0-1 0 Destination-Realm 1 0 Direct-Debiting-Failure-Handling 0 0-1 Event-Timestamp 0-1 0-1 Failed-AVP 0 0+ Final-Unit-Indication 0 0-1 Granted-Service-Unit 0 0-1 Multiple-Services-Credit-Control 0+ 0+ Multiple-Services-Indicator 0-1 0 Origin-Host 1 1 Origin-Realm 1 1 Origin-State-Id 0-1 0-1 Proxy-Info 0+ 0+ Redirect-Host 0 0+ Redirect-Host-Usage 0 0-1 Redirect-Max-Cache-Time 0 0-1 Requested-Action 0-1 0 Requested-Service-Unit 0-1 0 Route-Record 0+ 0+ Result-Code 0 1 Service-Context-Id 1 0 Service-Identifier 0-1 0 Service-Parameter-Info 0+ 0 Session-Id 1 1 Subscription-Id 0+ 0 Termination-Cause 0-1 0 User-Equipment-Info 0-1 0 Used-Service-Unit 0+ 0 User-Name 0-1 0-1 Validity-Time 0 0-1
New AVPs for base protocol command codes
Command Code Attribute Name RAR RAA CC-Sub-Session-Id 0-1 0-1 G-S-U-Pool-Identifier 0-1 0-1 Service-Identifier 0-1 0-1 Rating-Group 0-1 0-1
The table uses the following symbols:
- 0 The AVP MUST NOT be present in the message
- 0+ Zero or more instances of the AVP MAY be present in the message
- 0-1 Zero or one instance of the AVP MAY be present in the message. It is considered an error if there is more than one instance of the AVP
- 1 One instance of the AVP MUST be present in the message
- 1+ At least one instance of the AVP MUST be present in the message
- 3GPP Telecommunication management - Charging management - Diameter charging applications.
- RFC 4005 - Diameter Network Access Server Application.
Wikimedia Foundation. 2010.
См. также в других словарях:
DIAMETER — DIAMETER сеансовый протокол, созданный, отчасти, для преодоления некоторых ограничений протокола RADIUS. Обеспечивает взаимодействие между клиентами в целях аутентификации, авторизации и учёта различных сервисов (AAA,… … Википедия
Diameter (protocol) — Internet protocol suite Application layer BGP DHCP DNS FTP HTTP … Wikipedia
Online charging system — (OCS) is a system allowing a Communications service provider to charge their customers, in real time, based on service usage Contents 1 Architecture 1.1 Functions within the OCS 1.1.1 Online Charging Functions … Wikipedia
Network Access Server — Ein Network Access Server (NAS) ist ein Server, der von einem Internet Service Provider betrieben wird und den Kunden den Zugang zum Internet ermöglicht oder im Intranet eines Unternehmens Netzwerks den berechtigten Nutzern den Zugang zu Daten… … Deutsch Wikipedia
DCCA — may refer to: Diameter Credit Control Application DCC Alliance, a now defunct Debian based industry consortium Delaware Center for the Contemporary Arts, a museum in Wilmington, Delaware. Dichloroisocyanuric acid This disambiguation page lists… … Wikipedia
IP Multimedia Subsystem — The IP Multimedia Subsystem or IP Multimedia Core Network Subsystem (IMS) is an architectural framework for delivering Internet Protocol (IP) multimedia services. It was originally designed by the wireless standards body 3rd Generation… … Wikipedia
Business and Industry Review — ▪ 1999 Introduction Overview Annual Average Rates of Growth of Manufacturing Output, 1980 97, Table Pattern of Output, 1994 97, Table Index Numbers of Production, Employment, and Productivity in Manufacturing Industries, Table (For Annual… … Universalium
Computers and Information Systems — ▪ 2009 Introduction Smartphone: The New Computer. The market for the smartphone in reality a handheld computer for Web browsing, e mail, music, and video that was integrated with a cellular telephone continued to grow in 2008. According to… … Universalium
computer — computerlike, adj. /keuhm pyooh teuhr/, n. 1. Also called processor. an electronic device designed to accept data, perform prescribed mathematical and logical operations at high speed, and display the results of these operations. Cf. analog… … Universalium
electronics — /i lek tron iks, ee lek /, n. (used with a sing. v.) the science dealing with the development and application of devices and systems involving the flow of electrons in a vacuum, in gaseous media, and in semiconductors. [1905 10; see ELECTRONIC,… … Universalium