Gy Interface Support

This chapter provides an overview of the Gy interface and describes how to configure the Gy interface.

Gy interface support is available on the Cisco system running StarOS 9.0 or later releases for the following products:

  • GGSN
  • HA
  • IPSG
  • PDSN
  • P-GW

It is recommended that before using the procedures in this chapter you select the configuration example that best meets your service model, and configure the required elements for that model as described in the administration guide for the product that you are deploying.

This chapter describes the following topics:

Introduction

The Gy interface is the online charging interface between the PCEF/GW (Charging Trigger Function (CTF)) and the Online Charging System (Charging-Data-Function (CDF)).

The Gy interface makes use of the Active Charging Service (ACS) / Enhanced Charging Service (ECS) for real-time content-based charging of data services. It is based on the 3GPP standards and relies on quota allocation. The Online Charging System (OCS) is the Diameter Credit Control server, which provides the online charging data to the PCEF/GW. With Gy, customer traffic can be gated and billed in an online or prepaid style. Both time- and volume-based charging models are supported. In these models differentiated rates can be applied to different services based on ECS shallow- or deep-packet inspection.

In the simplest possible installation, the system will exchange Gy Diameter messages over Diameter TCP links between itself and one prepay server. For a more robust installation, multiple servers would be used. These servers may optionally share or mirror a single quota database so as to support Gy session failover from one server to the other. For a more scalable installation, a layer of proxies or other Diameter agents can be introduced to provide features such as multi-path message routing or message and session redirection features.

The following figure shows the Gy reference point in the policy and charging architecture.


Figure 1. PCC Logical Architecture

The following figure shows the Gy interface between CTF/Gateway/PCEF/Client running ECS and OCS (CDF/Server). Within the PCEF/GW, the Gy protocol functionality is handled in the DCCA module (at the ECS).


Figure 2. Gy Architecture

License Requirements

The Gy interface support is a licensed Cisco feature. A separate feature license may be required. Contact your Cisco account representative for detailed information on specific licensing requirements. For information on installing and verifying licenses, refer to the Managing License Keys section of the Software Management Operations chapter in the System Administration Guide.

Supported Standards

Gy interface support is based on the following standards:

  • IETF RFC 4006: Diameter Credit Control Application; August 2005
  • 3GPP TS 32.299 V9.6.0 (2010-12) 3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Telecommunication management; Charging management; Diameter charging applications (Release 9)

Features and Terminology

This section describes features and terminology pertaining to Gy functionality.

Charging Scenarios

IMPORTANT:

Online charging for events (“Immediate Event Charging” and “Event Charging with Reservation”) is not supported. Only “Session Charging with Reservation” is supported.

Session Charging with Reservation

Session Charging with Unit Reservation is used for credit control of sessions.

Decentralized Unit Determination and Centralized Rating

In this 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.

Centralized Unit Determination and Centralized Rating

In this scenario, the CTF requests the OCS to reserve units based on the session identifiers specified by the CTF. An account debit operation is carried out following the conclusion of session.

Decentralized Unit Determination and Decentralized Rating

IMPORTANT:

Decentralized Rating is not supported in this release. Decentralized Unit determination is done using CLI configuration.

In this scenario, the CTF requests the OCS 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 of the amount from the subscriber's account is carried out following the conclusion of session establishment.

Basic Operations

IMPORTANT:

Immediate Event Charging is not supported in this release. “Reserve Units Request” and “Reserve Units Response” are done for Session Charging and not for Event Charging.

Online credit control uses the basic logical operations “Debit Units” and “Reserve Units”.

  • Debit Units Request; sent from CTF to OCS: After receiving a service request from the subscriber, the CTF sends a Debit Units Request to the OCS. The CTF may either specify a service identifier (centralised unit determination) or the number of units requested (decentralised unit determination). For refund purpose, the CTF sends a Debit Units Request to the OCS as well.
  • Debit Units Response; sent from OCS to CTF: The OCS replies with a Debit Units Response, which informs the CTF of the number of units granted as a result of the Debit Units Request. This includes the case where the number of units granted indicates the permission to render the requested service. For refund purpose, the OCS replies with a Debit Units Response.
  • Reserve Units Request; sent from CTF to OCS: Request to reserve a number of units for the service to be provided by an CTF. In case of centralised unit determination, the CTF specifies a service identifier in the Reserve Unit Request, and the OCS determines the number of units requested. In case of decentralised unit determination, the number of units requested is specified by the CTF.
  • Reserve Units Response; sent from OCS to CTF: Response from the OCS which informs the CTF of the number of units that were reserved as a result of the “Reserve Units Request”.

Session Charging with Unit Reservation (SCUR) use both the “Debit Units” and “Reserve Units” operations. SCUR uses the Session Based Credit Control procedure specified in RFC 4006. In session charging with unit reservation, when the “Debit Units” and “Reserve Units” operations are both needed, they are combined in one message.

IMPORTANT:

Cost-Information, Remaining-Balance, and Low-Balance-Indication AVPs are not supported.

The consumed units are deducted from the subscriber's account after service delivery. Thus, the reserved and consumed units are not necessarily the same. Using this operation, it is also possible for the CTF to modify the current reservation, including the return of previously reserved units.

Re-authorization

The server may specify an idle timeout associated with a granted quota. Alternatively, the client may have a configurable default value. The expiry of that timer triggers a re-authorization request.

Mid-session service events (re-authorisation triggers) may affect the rating of the current service usage. The server may instruct the credit control client to re-authorize the quota upon a number of different session related triggers that can affect the rating conditions.

When a re-authorization is trigger, the client reports quota usage. The reason for the quota being reported is notified to the server.

Threshold based Re-authorization Triggers

The server may optionally include an indication to the client of the remaining quota threshold that triggers a quota re-authorization.

Termination Action

The server may specify to the client the behavior on consumption of the final granted units; this is known as termination action.

Diameter Base Protocol

The Diameter Base Protocol maintains the underlying connection between the Diameter Client and the Diameter Server. The connection between the client and server is TCP based. There are a series of message exchanges to check the status of the connection and the capabilities.

  • Capabilities Exchange Messages: Capabilities Exchange Messages are exchanged between the diameter peers to know the capabilities of each other and identity of each other.
    • Capabilities Exchange Request (CER): This message is sent from the client to the server to know the capabilities of the server.
    • Capabilities Exchange Answer (CEA): This message is sent from the server to the client in response to the CER message.

    IMPORTANT:

    Acct-Application-Id is not parsed and if sent will be ignored by the PCEF/GW. In case the Result-Code is not DIAMETER_SUCCESS, the connection to the peer is closed.

  • Device Watchdog Request (DWR): After the CER/CEA messages are exchanged, if there is no more traffic between peers for a while, to monitor the health of the connection, DWR message is sent from the client. The Device Watchdog timer (Tw) is configurable in PCEF/GW and can vary from 6 through 30 seconds. A very low value will result in duplication of messages. The default value is 30 seconds. On two consecutive expiries of Tw without a DWA, the peer is taken to be down.

    IMPORTANT:

    DWR is sent only after Tw expiry after the last message that came from the server. Say if there is continuous exchange of messages between the peers, DWR might not be sent if (Current Time - Last message received time from server) is less than Tw.

  • Device Watchdog Answer (DWA): This is the response to the DWR message from the server. This is used to monitor the connection state.
  • Disconnect Peer Request (DPR): This message is sent to the peer to inform to shutdown the connection. PCEF/GW only receives this message. There is no capability currently to send the message to the diameter server.
  • Disconnect Peer Answer (DPA): This message is the response to the DPR request from the peer. On receiving the DPR, the peer sends DPA and puts the connection state to “DO NOT WANT TO TALK TO YOU” state and there is no way to get the connection back except for reconfiguring the peer again.A timeout value for retrying the disconnected peer must be provided.
  • Tw Timer Expiry Behavior: The connection between the client and the server is taken care by the DIABASE application. When two consecutive Tw timers are expired, the peer state is set to idle and the connection is retried to be established. All the active sessions on the connection are then transferred to the secondary connection if one is configured. All new session activations are also tried on the secondary connection.There is a connection timeout interval, which is also equivalent to Tw timer, wherein after a CER has been sent to the server, if there is no response received while trying to reestablish connection, the connection is closed and the state set to idle.

Diameter Credit Control Application

The Diameter Credit Control Application (DCCA) is a part of the ECS subsystem. For every prepaid customer with Diameter Credit Control enabled, whenever a session comes up, the Diameter server is contacted and quota for the subscriber is fetched.

Quota Behavior

Various forms of quotas are present that can be used to charge the subscriber in an efficient way. Various quota mechanisms provide the end user with a variety of options to choose from and better handling of quotas for the service provider.

Time Quotas

The Credit-Control server can send the CC-Time quota for the subscriber during any of the interrogation of client with it. There are also various mechanisms as discussed below which can be used in conjunction with time quota to derive variety of methods for customer satisfaction.

  • Quota Consumption Time: The server can optionally indicate to the client that the quota consumption must be stopped after a period equal to the “Quota Consumption Time” in which no packets are received or at session termination, whichever is sooner. The idle period equal to the Quota Consumption Time is included in the reported usage. The quota is consumed normally during gaps in traffic of duration less than or equal to the Quota-Consumption-Time. Quota consumption resumes on receipt of a further packet belonging to the service data flow.If packets are allowed to flow during a CCR (Update)/CCA exchange, and the Quota-Consumption-Time AVP value in the provided quota is the same as in the previously provided quota, then the Quota-Consumption-Time runs normally through this procedure. For example, if 5 seconds of a 10 second QCT timer have passed when a CCR(U) is triggered, and the CCA(U) returns 2 seconds later, then the QCT timer will expire 3 seconds after the receipt of the CCA and the remaining unaccounted 5 seconds of usage will be recorded against the new quota even though no packets were transmitted with the new quota.A locally configurable default value in the client can be used if the server doesn't send the QCT in the CCA.
  • Combinational Quota: Discrete-Time-Period (DTP) and Continuous-Time-Period (CTP) defines mechanisms that extends and generalize the Quota-Consumption-Time for consuming time-quota.
    • Both DTP and CTP uses a “base-time-interval” that is used to create time-envelopes of quota used.
    • Instead of consuming the quota linearly, DTP and CTP consumes the granted quota discretely in chunks of base-time-interval at the start of the each base-time-interval.
    • Selection of one of this algorithm is based on the “Time-Quota-Mechanism” AVP sent by the server in CCA.
    • Reporting usage can also be controlled by Envelope-Reporting AVP sent by the server in CCA during the quota grant. Based on the value of this AVP, the usage can be reported either as the usage per envelope or as usual cumulative usage for that grant.
  • Discrete-Time-Period: The base-time-interval defines the length of the Discrete-Time-Period. So each time-envelope corresponds to exactly one Discrete-Time-Period. So when a traffic is detected, an envelope of size equal to Base-Time-Interval is created. The traffic is allowed to pass through the time-envelope. Once the traffic exceeds the base-time-interval another new envelope equal to the base-time-interval is created. This continues till the quota used exceeds the quota grant or reaches the threshold limit for that quota.
  • Continuous-Time-Period: Continuous time period mechanism constructs time envelope out of consecutive base-time intervals in which the traffic occurred up to and including a base time interval which contains no traffic. Therefore the quota consumption continues within the time envelope, if there was traffic in the previous base time interval. After an envelope has closed, then the quota consumption resumes only on the first traffic following the closure of the envelope. The envelope for CTP includes the last base time interval which contains no traffic.The size of the envelope is not constant as it was in Parking meter. The end of the envelope can only be determined retrospectively.
  • Quota Hold Time: The server can specify an idle timeout associated with a granted quota using the Quota-Holding-Time AVP. If no traffic associated with the quota is observed for this time, the client understands that the traffic has stopped and the quota is returned to the server. The client starts the quota holding timer when quota consumption ceases. This is always when traffic ceases, i.e. the timer is re-started at the end of each packet. It applies equally to the granted time quota and to the granted volume quota. The timer is stopped on sending a CCR and re-initialized on receiving a CCA with the previous used value or a new value of Quota-Holding-Time if received.Alternatively, if this AVP is not present, a locally configurable default value in the client is used. A Quota-Holding-Time value of zero indicates that this mechanism is not used.
  • Quota Validity Time: The server can optionally send the validity time for the quota during the interrogation with the client. The Validity-Time AVP is present at the MSCC level and applies equally to the entire quota that is present in that category. The quota gets invalidated at the end of the validity time and a CCR-Update is sent to the server with the Used-Service-Units AVP and the reporting reason as VALIDITY_TIME. The entire quota present in that category will be invalidated upon Quota-Validity-Time expiry and traffic in that category will be passed or dropped depending on the configuration, till a CCA-Update is received with quota for that category.Validity-Time of zero is invalid. Validity-Time is relative and not absolute.

Volume Quota

The server sends the CC-Total-Octets AVP to provide volume quota to the subscriber. DCCA currently supports only CC-Total-Octets AVP, which applies equally to uplink and downlink packets. If the total of uplink and downlink packets exceeds the CC-Total-Octets granted, the quota is assumed to be exhausted.

If CC-Input-Octets and/or CC-Output-Octets is provided, the quota is counted against CC-Input-Octets and/or CC-Output-Octets respectively.

IMPORTANT:

Restricting usages based on CC-Input-Octets and CC_Output-Octets is not supported in this release.

Units Quota

The server can also send a CC-Service-Specific-Units quota which is used to have packets counted as units. The number of units per packet is a configurable option.

Granting Quota

Gy implementation assumes that whenever the CC-Total-Octets AVP is present, volume quota has been granted for both uplink and downlink.

If the Granted-Service-Unit contains no data, Gy treats it as an invalid CCA.

If the values are zero, it is assumed that no quota was granted.

If the AVP contains the sub AVPs without any data, it is assumed to be infinite quota.

Additional parameters relating to a category like QHT, QCT is set for the category after receiving a valid volume or time grant.

If a default quota is configured for the subscriber, and subscriber traffic is received it is counted against the default quota. The default quota is applicable only to the initial request and is not regranted during the course of the session. If subscriber disconnects and reconnects, the default quota will be applied again for the initial request.

Requesting Quota

Quotas for a particular category type can be requested using the Requested-Service-Unit AVP in the CCR. The MSCC is filled with the Rating-Group AVP which corresponds to the category of the traffic and Requested-Service-Unit AVP without any data.

The Requested-Service-Unit can contain the CC AVPs used for requesting specific quantity of time or volume grant. Gy CLI can be used to request quota for a category type.

Alternatively quota can also be requested from the server preemptively for a particular category in CCR- I. When the server grants preemptive quota through the Credit control answer response, the quota will be used only when traffic is hit for that category. Quota can be preemptively requested from the Credit Control server from the CLI.

Reporting Quota

Quotas are reported to the server for number of reasons including:

  • Threshold
  • QHT Expiry
  • Quota Exhaustion
  • Rating Condition Change
  • Forced Reauthorization
  • Validity Time Expiry
  • Final during Termination of Category Instance from Server

For the above cases except for QHT and Final, the Requested-Service-Unit AVP is present in the CCR.

Reporting Reason is present in CCR to let the server know the reason for the reporting of Quota. The Reporting-Reason AVP can be present either in MSCC level or at Used Service Unit (USU) level depending on whether the reason applies to all quotas or to single quota.

When one of these conditions is met, a CCR Update is sent to the server containing a Multiple-Services-Credit-Control AVP(s) indicating the reason for reporting usage in the Reporting-Reason and the appropriate value(s) for Trigger, where appropriate. Where a threshold was reached, the DCCA still has the amount of quota available to it defined by the threshold.

For all other reporting reasons the client discards any remaining quota and either discards future user traffic matching this category or allows user traffic to pass, or buffers traffic according to configuration.

For Reporting-Reason of Rating Condition Change, Gy requires the Trigger Type AVP to be present as part of the CCR to indicate which trigger event caused the reporting and re-authorization request.

For Reporting-Reason of end user service denied, this happens when a category is blacklisted by the credit control server, in this case a CCR-U is sent with used service unit even if the values as zero. When more quota is received from the server for that particular category, the blacklisting is removed.

If a default quota has been set for the subscriber then the usage from the default quota is deducted from the initial GSU received for the subscriber for the Rating Group or Rating Group and Service ID combination.

Default Quota Handling

  • If default quota is set to 0, no data is passed/reported.
  • If default quota is configured and default quota is not exhausted before OCS responds with quota, trafic is passed. Initial default quota used is counted against initial quota allocated. If quota allocated is less than the actual usage then actual usage is reported and additional quota requested. If no additional quota is available then traffic is denied.
  • If default quota is not exhausted before OCS responds with denial of quota, gateway blocks traffic after OCS response. Gateway will report usage on default quota even in this case in CCR-U (FINAL) or CCR-T.
  • if default quota is consumed before OCS responds, if OCS is not declared dead (see definition in use case 1 above) then traffic is blocked until OCS responds.

Thresholds

The Gy client supports the following threshold types:

  • Volume-Quota-Threshold
  • Time-Quota-Threshold
  • Units-Quota-Threshold

A threshold is always associated with a particular quota and a particular quota type. in the Multiple-Services-Credit-Control AVP, the Time-Quota-Threshold, Volume-Quota-Threshold, and Unit-Quota-Threshold are optional AVPs.

They are expressed as unsigned numbers and the units are seconds for time quota, octets for volume quota and units for service specific quota. Once the quota has reached its threshold, a request for more quotas is triggered toward the server. User traffic is still allowed to flow. There is no disruption of traffic as the user still has valid quota.

The Gy sends a CCR Update with a Multiple-Services-Credit-Control AVP containing usage reported in one or more User-Service-Unit AVPs, the Reporting-Reason set to THRESHOLD and the Requested-Service-Unit AVP without data.

When quota of more than one type has been assigned to a category, each with its own threshold, then the threshold is considered to be reached once one of the unit types has reached its threshold even if the other unit type has not been consumed.

When reporting volume quota, the DCCA always reports uplink and downlink separately using the CC-Input-Octets AVP and the CC-Output-Octets AVP, respectively.

On receipt of more quotas in the CCA the Gy discard any quota not yet consumed since sending the CCR. Thus the amount of quota now available for consumption is the new amount received less any quota that may have been consumed since last sending the CCR.

Conditions for Reauthorization of Quota

Quota is re-authorized/requested from the server in case of the following scenarios:

  • Threshold is hit
  • Quota is exhausted
  • Validity time expiry
  • Rating condition change:
    • Cellid change: Applicable only to GGSN and P-GW implementations.
    • LAC change: Applicable only to GGSN and P-GW implementations.
    • QoS change
    • RAT change
    • SGSN/Serving-Node change: Applicable only to GGSN and P-GW implementations.

Discarding or Allowing or Buffering Traffic to Flow

Whenever Gy is waiting for CCA from the server, there is a possibility of traffic for that particular traffic type to be encountered in the Gy. The behavior of what needs to be done to the packet is determined by the configuration. Based on the configuration, the traffic is either allowed to pass or discarded or buffered while waiting for CCA from the server.

This behavior applies to all interrogation of client with server in the following cases:

  • No quota present for that particular category
  • Validity timer expiry for that category
  • Quota exhausted for that category
  • Forced Reauthorization from the server

In addition to allowing or discarding user traffic, there is an option available in case of quota exhausted or no quota circumstances to buffer the traffic. This typically happens when the server has been requested for more quota, but a valid quota response has not been received from the server, in this case the user traffic is buffered and on reception of valid quota response from the server the buffered traffic is allowed to pass through.

Procedures for Consumption of Time Quota

  • QCT is zero: When QCT is deactivated, the consumption is on a wall-clock basis. The consumption is continuous even if there is no packet flow.
  • QCT is active: When QCT is present in the CCA or locally configured for the session, then the consumption of quota is started only at the time of first packet arrival. The quota is consumed normally till last packet arrival plus QCT time and is passed till the next packet arrival.If the QCT value is changed during intermediate interrogations, then the new QCT comes into effect from the time the CCA is received. For instance, if the QCT is deactivated in the CCA, then quota consumptions resume normally even without any packet flow. Or if the QCT is activated from deactivation, then the quota consumption resume only after receiving the first packet after CCA.
  • QHT is zero: When QHT is deactivated, the user holds the quota indefinitely in case there is no further usage (for volume quota and with QCT for time quota). QHT is active between the CCA and the next CCR.
  • QHT is non-zero: When QHT is present in CCA or locally configured for the session, then after a idle time of QHT, the quota is returned to the server by sending a CCR-Update and reporting usage of the quota. On receipt of CCR-U, the server does not grant quota. QHT timer is stopped on sending the CCR and is restarted only if QHT is present in the CCA.QHT timer is reset every time a packet arrives.

Envelope Reporting

The server may determine the need for additional detailed reports identifying start time and end times of specific activity in addition to the standard quota management. The server controls this by sending a CCA with Envelope-Reporting AVP with the appropriate values. The DCCA client, on receiving the command, will monitor for traffic for a period of time controlled by the Quota-Consumption-Time AVP and report each period as a single envelope for each Quota-Consumption-Time expiry where there was traffic. The server may request envelope reports for just time or time and volume. Reporting the quota back to the server, is controlled by Envelope AVP with Envelope-Start-Time and Envelope-End-Time along with usage information.

Credit Control Request

Credit Control Request (CCR) is the message that is sent from the client to the server to request quota and authorization. CCR is sent before the establishment of MIP session, and at the termination of the MIP session. It can be sent during service delivery to request more quotas.

  • Credit Control Request - Initial (CCR-I)
  • Credit Control Request - Update (CCR-U)
  • Credit Control Request - Terminate (CCR-T)
  • Credit Control Answer (CCA)
  • Credit Control Answer - Initial (CCA-I)
  • Credit Control Answer - Update (CCA-U)If the MSCC AVP is missing in CCA-Update it is treated as invalid CCA and the session is terminated.
  • Credit Control Answer - Terminate (CCA-T)

The following figure depicts the call flow for a simple call request in the GGSN / P-GW /IPSG Gy implementation.


Figure 3. Gy Call Flow for Simple Call Request

The following figure depicts the call flow for a simple call request in the HA Gy implementation.


Figure 4. Gy Call Flow for Simple Call Request

Tx Timer Expiry Behavior

A timer is started each time a CCR is sent out from the system, and the response has to arrive within Tx time. The timeout value is configurable in the Diameter Credit Control Configuration mode.

In case there is no response from the Diameter server for a particular CCR, within Tx time period, and if there is an alternate server configured, the CCR is sent to the alternate server after Tw expiry as described in “Tw Timer expiry behavior” section.

It also depends on the Credit-Control-Session-Failover AVP value for the earlier requests. If this AVP is present and is coded to FAILOVER_SUPPORTED then the credit-control message stream is moved to the secondary server, in case it is configured. If the AVP value is FAILOVER_NOT SUPPORTED, then the call is dropped in case of failures, even if a secondary server is configured.

Redirection

In the Final-Unit-Indication AVP, if the Final-Action is REDIRECT or Redirect-Server AVP is present at command level, redirection is performed.

The redirection takes place at the end of consumption of quota of the specified category. The GY sends a CCR-Update without any RSU or Rating-Group AVP so that the server does not give any more quotas.

If the Final-Action AVP is RESTRICT_ACCESS, then according to the settings in Restriction-Filter-Rule AVP or Filter-Id AVP. GY sends CCR-Update to the server with used quota.

Triggers

The Diameter server can provide with the triggers for which the client should reauthorize a particular category. The triggers can be configured locally as well but whatever trigger is present in the CCA from the server will have precedence.

IMPORTANT:

In this release, Gy triggers are not supported for HA.

The trigger types that are supported are:

  • SGSN/Serving-Node Change
  • QoS Change - Any
  • RAT Change
  • LAC Change
  • CellID Change

On any event as described in the Trigger type happens, the client reauthorizes quota with the server. The reporting reason is set as RATING_CONDITION_CHANGE.

Tariff Time Change

The tariff change mechanism applies to each category instance active at the time of the tariff change whenever the server indicated it should apply for this category.

The concept of dual coupon is supported. Here the server grants two quotas, which is accompanied by a Tariff-Time-Change, in this case the first granted service unit is used until the tariff change time, once the tariff change time is reached the usage is reported up to the point and any additional usage is not accumulated, and then the second granted service unit is used.

If the server expects a tariff change to occur within the validity time of the quota it is granting, then it includes the Tariff-Time-Change AVP in the CCA. The DCCA report usage, which straddles the change time by sending two instances of the Used-Service-Unit AVP, one with Tariff-Change-Usage set to UNIT_BEFORE_TARIFF_CHANGE, and one with Tariff-Change-Usage set to UNIT_AFTER_TARIFF_CHANGE, and this independently of the type of units used by application. Both Volume and Time quota are reported in this way.

The Tariff time change functionality can as well be done using Validity-Time AVP, where in the Validity-Time is set to Tariff Time change and the client will reauthorize and get quota at Validity-Time expiry. This will trigger a lot of reauthorize request to the server at a particular time and hence is not advised.

Tariff-Time-Usage AVP along with the Tariff-Time-Change AVP in the answer message to the client indicates that the quotas defined in Multiple-Services-Credit-Control are to be used before or after the Tariff Time change. Two separate quotas are allocated one for before Tariff-Time-Change and one for after Tariff-Time-Change. This gives the flexibility to the operators to allocate different quotas to the users for different periods of time. In this case, the DCCA should not send the Before-Usage and After-Usage counts in the update messages to the server. When Tariff-Time-Change AVP is present without Tariff-Time-Usage AVP in the answer message, then the quota is used as in single quota mechanism and the client has to send before usage and after usage quotas in the updates to the server.

IMPORTANT:

In this release, Gy does not support UNIT_INDETERMINATE value.

Final Unit Indication

The Final-Unit-Indication AVP can be present in the CCA from the server to indicate that the given quota is the final quota from the server and the corresponding action as specified in the AVP needs to be taken.

Final Unit Indication at Command Level

Gy currently does not support FUI AVP at command level. If this AVP is present at command level it is ignored. If the FUI AVP is present at command level and the Final-Unit-Action AVP set to TERMINATE, Gy sends a CCR-Terminate at the expiry of the quota, with all quotas in the USU AVP.

IMPORTANT:

FUI AVP at command level is only supported for Terminate action.

Final Unit Indication at MSCC Level

If the Final-Unit-Indication AVP is present at MSCC level, and if the Final-Unit-Action AVP is set to TERMINATE, a CCR-Update is sent at the expiry of the allotted quota and report the usage of the category that is terminated.

For information on redirection cases refer to Redirection section.

Credit Control Failure Handling

CCFH AVP defines what needs to be done in case of failure of any type between the client and the server. The CCFH functionality can be defined in configuration but if the CCFH AVP is present in the CCA, it takes precedence. CCFH AVP gives flexibility to have different failure handling.

Gy supports the following Failure Handling options:

  • TERMINATE
  • CONTINUE
  • RETRY AND TERMINATE

CCFH with Failover Supported

In case there is a secondary server is configured and if the CC-Session-Failover AVP is set to FAILOVER_SUPPORTED, the following behavior takes place:

  • Terminate: On any Tx expiry for the CCR-I the message is discarded and the session is torn down. In case of CCR-Updates and Terminates the message is sent to the secondary server after response timeout and the session is proceeded with the secondary server. In case there is a failure with the secondary server too, the session is torn down.
  • Continue: On any Tx expiry, the message is sent to the secondary server after response timeout and the session is proceeded with the secondary server. In case there is a failure with the secondary server too, the session is still established, but without quota management.
  • Retry and Terminate: On any Tx expiry, the message is sent to the secondary server after the response timeout. In case there is a failure with secondary server too, the session is taken down.

CCFH with Failover Not Supported

In case there is a secondary server configured and if the CC-Session-Failover AVP is set to FAILOVER_NOT_SUPPORTED, the following behavior takes place as listed below. Same is the case if there is no secondary server configured on the system.

  • Terminate: On any Tx expiry, the session is taken down.
  • Continue: On any Tx expiry, the session is still established, but without quota management.
  • Retry and Terminate: On any Tx expiry, the session is taken down.

Failover Support

The CC-Session-Failover AVP and the Credit-Control-Failure-Handling (CCFH) AVP may be returned by the CC server in the CCA-I, and are used by the DCCA to manage the failover procedure. If they are present in the CCA they override the default values that are locally configured in the system.

If the CC-Session-Failover is set to FAILOVER_NOT_SUPPORTED, a CC session will never be moved to an alternative Diameter Server.

If the value of CC-Session-Failover is set to FAILOVER_SUPPORTED, then the Gy attempts to move the CC session to the alternative server when it considers a request to have failed, i.e:

  • On receipt of result code “DIAMETER_UNABLE_TO_DELIVER”, “DIAMETER_TOO_BUSY”, or “DIAMETER_LOOP_DETECTED”.
  • On expiry of the request timeout.
  • On expiry of Tw without receipt of DWA, if the server is connected directly to the client.

The CCFH determines the behavior of the client in fault situations. If the Tx timer expires then based on the CCFH value the following actions are taken:

  • CONTINUE: Allow the MIP session and user traffic for the relevant category or categories to continue, regardless of the interruption (delayed answer). Note that quota management of other categories is not affected.
  • TERMINATE: Terminate the MIP session, which affects all categories.
  • RETRY_AND_TERMINATE: Allow the MIP session and user traffic for the relevant category or categories to continue, regardless of the interruption (delayed answer). The client retries to send the CCR when it determines a failure-to-send condition and if this also fails, the MIP session is then terminated.

After the failover action has been attempted, and if there is still a failure to send or temporary error, depending on the CCFH action, the following action is taken:

  • CONTINUE: Allow the MIP session to continue.
  • TERMINATE: Terminate the MIP session.
  • RETRY_AND_TERMINATE: Terminate the MIP session.

Recovery Mechanisms

DCCA supports a recovery mechanism that is used to recover sessions without much loss of data in case of Session Manager failures. There is a constant check pointing of Gy data at regular intervals and at important events like update, etc.

For more information on recovery mechanisms, please refer to the System Administration Guide.

Error Mechanisms

Unsupported AVPs

All unsupported AVPs from the server with “M” bit set are ignored.

Invalid Answer from Server

If there is an invalid answer from the server, Gy action is dependent on the CCFH setting:

  • In case of continue, the MIP session context is continued without further control from Gy.
  • In case of terminate and retry-and-terminate, the MIP session is terminated and a CCR-T is sent to the diameter server.

Result Code Behavior

  • DIAMETER_RATING_FAILED: On reception of this code, Gy discards all traffic for that category and does not request any more quota from the server. This is supported at the MSCC level and not at the command level.
  • DIAMETER_END_USER_SERVICE_DENIED: On reception of this code, Gy temporarily blacklists the category and further traffic results in requesting new quota from the server. This is supported at the MSCC level and not at the command level.
  • DIAMETER_CREDIT_LIMIT_REACHED: On reception of this code, Gy discards all traffic for that category and waits for a configured time, after which if there is traffic for the same category requests quota from the server. This is supported at the MSCC level and not at the command level.
  • DIAMETER_CREDIT_CONTROL_NOT_APPLICABLE: On reception of this code, Gy allows the session to establish, but without quota management. This is supported only at the command level and not at the MSCC level.
  • DIAMETER_USER_UNKNOWN: On reception of this code, DCCA does not allow the credit control session to get established, the session is terminated. This result code is supported only at the command level and not at the MSCC level.

For all other permanent/transient failures, Gy action is dependent on the CCFH setting.

Supported AVPs

The Gy functionality supports the following AVPs:

  • Supported Diameter Credit Control AVPs specified in RFC 4006:
    • CC-Input-Octets (AVP Code: 412):Gy supports this AVP only in USU.
    • CC-Output-Octets (AVP Code: 414):Gy supports this AVP only in USU.
    • CC-Request-Number (AVP Code: 415)
    • CC-Request-Type (AVP Code: 416):Gy currently does not support EVENT_REQUEST value.
    • CC-Service-Specific-Units (AVP Code: 417)
    • CC-Session-Failover (AVP Code: 418)
    • CC-Time (AVP Code: 420):Gy does not support this AVP in RSU.
    • CC-Total-Octets (AVP Code: 421):Gy does not support this AVP in RSU.
    • Credit-Control-Failure-Handling (AVP Code: 427)
    • Final-Unit-Action (AVP Code: 449):Supported at Multiple-Services-Credit-Control grouped AVP level and not at command level.
    • Final-Unit-Indication (AVP Code: 430):Fully supported at Multiple-Services-Credit-Control grouped AVP level and partially supported (TERMINATE) at command level.
    • Granted-Service-Unit (AVP Code: 431)
    • Multiple-Services-Credit-Control (AVP Code: 456)
    • Multiple-Services-Indicator (AVP Code: 455)
    • Rating-Group (AVP Code: 432)
    • Redirect-Address-Type (AVP Code: 433):Gy currently supports only URL (2) value.
    • Redirect-Server (AVP Code: 434)
    • Redirect-Server-Address (AVP Code: 435)
    • Requested-Service-Unit (AVP Code: 437)
    • Result-Code (AVP Code: 268)
    • Service-Context-Id (AVP Code: 461)
    • Service-Identifier (AVP Code: 439)
    • Subscription-Id (AVP Code: 443)
    • Subscription-Id-Data (AVP Code: 444)
    • Subscription-Id-Type (AVP Code: 450)
    • Tariff-Change-Usage (AVP Code: 452):Gy does NOT support UNIT_INDETERMINATE (2) value.
    • Tariff-Time-Change (AVP Code: 451)
    • Used-Service-Unit (AVP Code: 446):Gy sends only incremental counts for all the AVPs from the last CCA-U.
    • User-Equipment-Info (AVP Code: 458)
    • User-Equipment-Info-Type (AVP Code: 459):Gy currently supports only IMEISV value.Cisco GGSN and P-GW support IMEISV by default.
    • User-Equipment-Info-Value (AVP Code: 460)
    • Validity-Time (AVP Code: 448)
  • Supported 3GPP specific AVPs specified in 3GPP TS 32.299:
    • 3GPP-Charging-Characteristics (AVP Code: 13)
    • 3GPP-Charging-Id (AVP Code: 2)
    • 3GPP-GGSN-MCC-MNC (AVP Code: 9)
    • 3GPP-GPRS-QoS-Negotiated-Profile (AVP Code: 5)
    • 3GPP-IMSI-MCC-MNC (AVP Code: 8)
    • 3GPP-NSAPI (AVP Code: 10)
    • 3GPP-PDP-Type (AVP Code: 3)
    • 3GPP-RAT-Type (AVP Code: 21)
    • 3GPP-Selection-Mode (AVP Code: 12)
    • 3GPP-Session-Stop-Indicator (AVP Code: 11)
    • 3GPP-SGSN-MCC-MNC (AVP Code: 18)
    • 3GPP-User-Location-Info (AVP Code: 22)
    • Base-Time-Interval (AVP Code: 1265)
    • Charging-Rule-Base-Name (AVP Code: 1004)
    • Envelope (AVP Code: 1266)
    • Envelope-End-Time (AVP Code: 1267)
    • Envelope-Reporting (AVP Code: 1268)
    • Envelope-Start-Time (AVP Code: 1269)
    • GGSN-Address (AVP Code: 847)
    • Offline-Charging (AVP Code: 1278)
    • PDP-Address (AVP Code: 1227)
    • PDP-Context-Type (AVP Code: 1247)This AVP is present only in CCR-I.
    • PS-Information (AVP Code: 874)
    • Quota-Consumption-Time (AVP Code: 881):This optional AVP is present only in CCA.
    • Quota-Holding-Time (AVP Code: 871):This optional AVP is present only in the CCA command. It is contained in the Multiple-Services-Credit-Control AVP. It applies equally to the granted time quota and to the granted volume quota.
    • Reporting-Reason (AVP Code: 872):Gy currently does not support the POOL_EXHAUSTED (8) value. It is used in case of credit-pooling which is currently not supported.
    • Service-Information (AVP Code: 873):Only PS-Information is supported.
    • SGSN-Address (AVP Code: 1228)
    • Time-Quota-Mechanism (AVP Code: 1270):The Gy server may include this AVP in an Multiple-Services-Credit-Control AVP when granting time quota.
    • Time-Quota-Threshold (AVP Code: 868)
    • Time-Quota-Type (AVP Code: 1271)
    • Trigger (AVP Code: 1264)
    • Trigger-Type (AVP Code: 870)
    • Unit-Quota-Threshold (AVP Code: 1226)
    • Volume-Quota-Threshold (AVP Code: 869)
  • Supported Diameter AVPs specified in 3GPP TS 32.299 V8.1.0:
    • Auth-Application-Id (AVP Code: 258)
    • Destination-Host (AVP Code: 293)
    • Destination-Realm (AVP Code: 283)
    • Disconnect-Cause (AVP Code: 273)
    • Error-Message (AVP Code: 281)
    • Event-Timestamp (AVP Code: 55)
    • Failed-AVP (AVP Code: 279)
    • Multiple-Services-Credit-Control (AVP Code: 456)
    • Origin-Host (AVP Code: 264)
    • Origin-Realm (AVP Code: 296)
    • Origin-State-Id (AVP Code: 278)
    • Redirect-Host (AVP Code: 292)
    • Redirect-Host-Usage (AVP Code: 261)
    • Redirect-Max-Cache-Time (AVP Code: 262)
    • Rating-Group (AVP Code: 432)
    • Result-Code (AVP Code: 268)
    • Route-Record (AVP Code: 282)
    • Session-Id (AVP Code: 263)
    • Service-Context-Id (AVP Code: 461)
    • Service-Identifier (AVP Code: 439)
    • Supported-Vendor-Id (AVP Code: 265)
    • Termination-Cause (AVP Code: 295)
    • Used-Service-Unit (AVP Code: 446)
    • User-Name (AVP Code: 1)

Unsupported AVPs

This section lists the AVPs that are NOT supported.

  • NOT Supported Credit Control AVPs specified in RFC 4006:
    • CC-Correlation-Id
    • CC-Money
    • CC-Sub-Session-Id
    • CC-Unit-Type (AVP Code: 454)
    • Check-Balance-Result
    • Cost-Information (AVP Code: 423)
    • Cost-Unit (AVP Code: 445)
    • Credit-Control
    • Currency-Code (AVP Code: 425)
    • Direct-Debiting-Failure-Handling (AVP Code: 428)
    • Exponent (AVP Code: 429)
    • G-S-U-Pool-Identifier (AVP Code: 453)
    • G-S-U-Pool-Reference (AVP Code: 457)
    • Requested-Action (AVP Code: 436)
    • Service-Parameter-Info (AVP Code: 440)
    • Service-Parameter-Type (AVP Code: 441)
    • Service-Parameter-Value (AVP Code: 442)
    • Unit-Value (AVP Code: 424)
    • Value-Digits (AVP Code: 447)
  • NOT supported Diameter AVPs specified in 3GPP TS 32.299 V8.1.0:
    • Acct-Application-Id (AVP Code: 259)
    • Error-Reporting-Host (AVP Code: 294)
    • Experimental-Result (AVP Code: 297)
    • Experimental-Result-Code (AVP Code: 298)
    • Proxy-Host
    • Proxy-Info
    • Proxy-State
  • NOT supported 3GPP-specific AVPs specified in 3GPP TS 32.299 V8.1.0:
    • 3GPP-CAMEL-Charging-Info (AVP Code: 24)
    • 3GPP-MS-TimeZone (AVP Code: 23)
    • 3GPP-PDSN-MCC-MNC
    • Authorised-QoS
    • Access-Network-Information
    • Adaptations
    • Additional-Content-Information
    • Additional-Type-Information
    • Address-Data
    • Address-Domain
    • Addressee-Type
    • Address-Type
    • AF-Correlation-Information
    • Alternate-Charged-Party-Address
    • Application-provided-Called-Party-Address
    • Application-Server
    • Application-Server-Information
    • Applic-ID
    • Associated-URI
    • Aux-Applic-Info
    • Bearer-Service
    • Called-Asserted-Identity
    • Called-Party-Address
    • Calling-Party-Address
    • Cause-Code
    • Charged-Party
    • Class-Identifier
    • Content-Class
    • Content-Disposition
    • Content-Length
    • Content-Size
    • Content-Type
    • Data-Coding-Scheme
    • Deferred-Location-Event-Type
    • Delivery-Report-Requested
    • Destination-Interface
    • Domain-Name
    • DRM-Content
    • Early-Media-Description
    • Event
    • Event-Type
    • Expires
    • File-Repair-Supported
    • IM-Information
    • IMS-Charging-Identifier (ICID)
    • IMS-Communication-Service-Identifier
    • IMS-Information
    • Incoming-Trunk-Group-ID
    • Interface-Id
    • Interface-Port
    • Interface-Text
    • Interface-Type
    • Inter-Operator-Identifier
    • LCS-APN
    • LCS-Client-Dialed-By-MS
    • LCS-Client-External-ID
    • LCS-Client-ID
    • LCS-Client-Name
    • LCS-Client-Type
    • LCS-Data-Coding-Scheme
    • LCS-Format-Indicator
    • LCS-Information
    • LCS-Name-String
    • LCS-Requestor-ID
    • LCS-Requestor-ID-String
    • Location-Estimate
    • Location-Estimate-Type
    • Location-Type
    • Low-Balance-Indication
    • MBMS-Information
    • MBMS-User-Service-Type
    • Media-Initiator-Flag
    • Media-Initiator-Party
    • Message-Body
    • Message-Class
    • Message-ID
    • Message-Size
    • Message-Type
    • MMBox-Storage-Requested
    • MM-Content-Type
    • MMS-Information
    • Node-Functionality
    • Number-Of-Participants
    • Number-Of-Received-Talk-Bursts
    • Number-Of-Talk-Bursts
    • Originating-IOI
    • Originator
    • Originator-Address
    • Originator-Interface
    • Originator-SCCP-Address
    • Outgoing-Trunk-Group-ID
    • Participant-Access-Priority
    • Participants-Group
    • Participants-Involved
    • PDG-Address
    • PDG-Charging-Id
    • PoC-Change-Condition
    • PoC-Change-Time
    • PoC-Controlling-Address
    • PoC-Group-Name
    • PoC-Information
    • PoC-Server-Role
    • PoC-Session-Id
    • PoC-Session-Initialtion-Type
    • PoC-Session-Type
    • PoC-User-Role
    • PoC-User-Role-IDs
    • PoC-User-Role-info-Units
    • Positioning-Data
    • Priority
    • PS-Append-Free-Format-Data (AVP Code: 867):The PCEF/GW ignores this AVP if no PS free format data is stored for the online charging session.
    • PS-Free-Format-Data (AVP Code: 866)
    • PS-Furnish-Charging-Information (AVP Code: 865)
    • RAI (AVP Code: 909)
    • Read-Reply-Report-Requested
    • Received-Talk-Burst-Time
    • Received-Talk-Burst-Volume
    • Recipient-Address
    • Recipient-SCCP-Address
    • Refund-Information
    • Remaining-Balance
    • Reply-Applic-ID
    • Reply-Path-Requested
    • Requested-Party-Address
    • Role-of-node
    • SDP-Answer-Timestamp
    • SDP-Media-Component
    • SDP-Media-Description
    • SDP-Media-Name
    • SDP-Offer-Timestamp
    • SDP-Session-Description
    • SDP-TimeStamp
    • Served-Party-IP-Address
    • Service-Generic-Information
    • Service-ID
    • Service-Specific-Data
    • Service-Specific-Info
    • Service-Specific-Type
    • SIP-Method
    • SIP-Request-Timestamp
    • SIP-Response-Timestamp
    • SM-Discharge-Time
    • SM-Message-Type
    • SM-Protocol-Id
    • SMSC-Address
    • SMS-Information
    • SMS-Node
    • SM-Status
    • SM-User-Data-Header
    • Submission-Time
    • Talk-Burst-Exchange
    • Talk-Burst-Time
    • Talk-Burst-Volume
    • Terminating-IOI
    • Time-Stamps
    • Token-Text
    • Trunk-Group-ID
    • Type-Number
    • User-Participating-Type
    • User-Session-ID
    • WAG-Address
    • WAG-PLMN-Id
    • WLAN-Information
    • WLAN-Radio-Container
    • WLAN-Session-Id
    • WLAN-Technology
    • WLAN-UE-Local-IPAddress

Configuring Gy Interface Support

To configure Gy interface support:

  1. Configure the core network service as described in this Administration Guide.
  2. Configure Gy interface support as described in the relevant section:
  3. Save your configuration to flash memory, an external memory device, and/or a network location using the Exec mode command save configuration. For additional information on how to verify and save configuration files, refer to the System Administration Guide and the Command Line Interface Reference.

IMPORTANT:

Commands used in the configuration examples in this section provide base functionality to the extent that the most common or likely commands and/or keyword options are presented. In many cases, other optional commands and/or keyword options are available. Refer to the Command Line Interface Reference for complete information regarding all commands.

Configuring GGSN / P-GW / IPSG Gy Interface Support

To configure the standard Gy interface support for GGSN/P-GW/IPSG, use the following configuration:

configure
   context <context_name>
      diameter
endpoint <endpoint_name>
         origin
realm <realm>
         origin
host <diameter_host> address <ip_address>
         peer <peer> realm <realm> address <ip_address>
         exit
      exit
   active-charging
service <ecs_service_name>
      credit-control [ group <cc_group_name> ]
         diameter
origin endpoint <endpoint_name>
         diameter
peer-select peer <peer> realm <realm>
         diameter
pending-timeout <timeout_period>
         diameter
session failover
         diameter
dictionary <dictionary>
         failure-handling
initial-request continue
         failure-handling
update-request continue
         failure-handling
terminate-request continue
         exit
      exit
   context <context_name>
       apn <apn_name>
         selection-mode
sent-by-ms
         ims-auth-service <service>
         ip
access-group <access_list_name> in
         ip
access-group <access_list_name> out
         ip
context-name <context_name>
         active-charging
rulebase <rulebase_name>
         credit-control-group <cc_group_name>
         end

Notes:

  • For information on configuring IP access lists, refer to the Access Control Lists chapter in the System Administration Guide.
  • For more information on configuring ECS ruledefs, refer to the ACS Ruledef Configuration Mode Commands chapter in the Command Line Interface Reference.
  • For more information on configuring ECS charging actions, refer to the ACS Charging Action Configuration Mode Commands chapter in the Command Line Interface Reference.
  • For more information on configuring ECS rulebases, refer to the ACS Rulebase Configuration Mode Commands chapter in the Command Line Interface Reference.

Configuring HA / PDSN Gy Interface Support

To configure HA / PDSN Gy interface support, use the following configuration:

configure
   context <context_name>
      diameter
endpoint <endpoint_name>
         origin
realm <realm>
         origin
host <diameter_host> address <ip_address>
         peer <peer> realm <realm> address <ip_address>
         exit
      exit
   active-charging
service <ecs_service_name>
      ruledef <ruledef_name>
         ip
any-match = TRUE
         exit
      charging-action <charging_action_name>
         content-id <content_id>
         cca
charging credit rating-group <rating_group>
         exit
      rulebase <rulebase_name>
         action
priority <action_priority> ruledef <ruledef_name> charging-action <charging_action_name>
         exit
      credit-control [ group <cc_group_name> ]
         diameter
origin endpoint <endpoint_name>
         diameter
peer-select peer <peer> realm <realm>
         diameter
pending-timeout <timeout>
         diameter
session failover
         diameter
dictionary <dictionary>
         failure-handling
initial-request continue
         failure-handling
update-request continue
         failure-handling
terminate-request continue
         pending-traffic-treatment
noquota buffer
         pending-traffic-treatment
quota-exhausted buffer
         exit
      exit
   context <context_name>
      subscriber default
         ip
access-group <acl_name> in
         ip
access-group <acl_name> out
         ip
context-name <context_name>
         active-charging
rulebase <rulebase_name>
         credit-control-group <cc_group_name>
         end

Notes:

  • For information on configuring IP access lists, refer to the Access Control Lists chapter in the Systems Administration Guide.
  • For more information on configuring ECS ruledefs, refer to the ACS Ruledef Configuration Mode Commands chapter in the Command Line Interface Reference.
  • For more information on configuring ECS charging actions, refer to the ACS Charging Action Configuration Mode Commands chapter in the Command Line Interface Reference.
  • For more information on configuring ECS rulebases, refer to the ACS Rulebase Configuration Mode Commands chapter in the Command Line Interface Reference.

Gathering Statistics

This section explains how to gather Gy and related statistics and configuration information.

In the following table, the first column lists what statistics to gather, and the second column lists the action to perform.

Statistics/Information Action to perform

Complete statistics for ECS sessions.

show active-charging sessions full

Information on all rule definitions configured in the service.

show active-charging ruledef all

Information on all charging actions configured in the service.

show active-charging charging-action all

Information on all rulebases configured in the service.

show active-charging rulebase all

Statistics of the Credit Control application, DCCA.

show active-charging credit-control statistics

States of the Credit Control application's sessions, DCCA.

show active-charging credit-control session-states [ rulebase <rulebase_name> ] [ content-id <content_id> ]