ArticleslgStudy

science

Diameter Credit-Control Application

Diameter Credit-Control Application is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Diameter Credit-Control Application rather than just read about it. In short: 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 first defined in RFC 4006, and updated in RFC 8506.

Diameter Credit-Control Application — main illustration
Diameter Credit-Control Application — illustration

Key takeaways

  • Diameter Credit-Control Application belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Diameter Credit-Control Application to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Diameter Credit-Control Application from memory before moving on to harder problems.

Reference excerpt

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 first defined in RFC 4006, and updated in RFC 8506.

Purpose 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 has to be specified separately, as is some of the semantics. Examples of units used/bought:

Time Upload/Download bytes SMS (Text Messages) Examples of items charged:

Money Points Units (e.g. 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.

Session-based charging 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.

Event-based charging 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.

Command Codes 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.

Message flows 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 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).

AVP matrix

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.

New AVPs for base protocol command codes

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

Related standards RFC 4005 - Diameter Network Access Server Application. RFC 4006 - Diameter Credit-Control Application (obsolete) RFC 8506 - Diameter Credit-Control Application. 3GPP 32.299 - 3GPP Telecommunication management - Charging management - Diameter charging applications.

Worked examples

Example 1 — a first encounter with Diameter Credit-Control Application

Start with the simplest possible case. Write down what Diameter Credit-Control Application claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Diameter Credit-Control Application before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Diameter Credit-Control Application ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Diameter Credit-Control Application

In research
Diameter Credit-Control Application appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Diameter Credit-Control Application in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Diameter Credit-Control Application is common in secondary-school and first-year university syllabi. It links to neighbouring topics Internet Standards, Internet protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Diameter Credit-Control Application outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Diameter Credit-Control Application” →

How to study Diameter Credit-Control Application in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Diameter Credit-Control Application means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Diameter Credit-Control Application out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Diameter Credit-Control Application in simple terms?

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 first defined in RFC 4006, and updated in RFC 8506.

Why does Diameter Credit-Control Application matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Diameter Credit-Control Application?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Diameter Credit-Control Application.

Tags

  • Internet Standards
  • Internet protocols

Keep exploring