top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

LTE: How to add rule activation time and rule deactivation time AVP within Charging Rule Install AVP?

+3 votes
680 views
LTE: How to add rule activation time and rule deactivation time AVP within Charging Rule Install AVP?
posted Feb 9, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

Charging-Rule-Install AVP carries policy and charging rules along with the "rule activation" and "rule deactivation" sub AVPs. Only one instance of these two AVPs would be present within the Charing-Rule-Install AVP. Charging-Rule-Install is a grouped AVP which contains some other AVPs.
Charging-Rule-Install ::= < AVP Header: 1001 >
*[ Charging-Rule-Definition ]
*[ Charging-Rule-Name ]
*[ Charging-Rule-Base-Name ]
[ Bearer-Identifier ]
[ Rule-Activation-Time ]
[ Rule-Deactivation-Time ]

[ Resource-Allocation-Notification ]
[ Charging-Correlation-Indicator ]
*[ AVP ]

Rule-Activation-Time and Rule-Deactivation-Time both AVPs are of type Time and this is NTP time. Value of these two AVPs are applicable for all the PCC rules included in the Charging-Rule-Install AVP.

Charging-Rule-Install AVPs are included while building CCA and RAR messages. If there is a requirement to add Rule Activation and De-activation then include these two into the Charging-Rule-Install AVP.

answer Feb 17, 2017 by Harshita
Thank you. One more thing that i want to know is while implementing rule activation and rule deactivation time we add these with TIME_ADD function. So in that what is the value that we have to pass in place of UTC_secs field. Should we pass hexa-decimal value or decimal value of the time ?
Similar Questions
+3 votes

If PCRF sends Charging-Rule-Base AVP for activation/deactivation of all rules inside the given rulebase in CCA , then is it possible that PCEF was able to activate/deactivate some rules in the rulebase and other rules activation/deactivation failed ?

+3 votes

In the CCA message sent by the PCRF to PGW during the Initial Attach, may have "Charging-Rule-Base-Name" Or "Charging-rule-Name". I think "Charging-rule-Name" is sent as part of the Charging-Rule-Install , where the Rule is sent from the PCRF to PGW. "Charging-Rule-Base-Name" is sent as part of the preinstalled rules in the PGW.

Now the question is if the PCRF is getting integrated to thirdparty PGW. In this case how PCRF knows about the names installed in the PGW ?

thanks a lot for the responses and hints

+12 votes

Why do we require Gate Function ? I mean to say what is the need for this ? How Significant it is in Gx-Interface?

+3 votes

enter image description here

Hello,

For the CCR (Initial Request), the CCA is of the above format in my internal testsetup. This seems like Dynamic Rule configuration. I am not sure whether we need to send info like "Flow information" or TFT in CCA. This was answered earlier by Peeyush ( that it is not needed). But wanted to crosscheck the same ?

{ Imp Please Note: This is my initial basic implementation, so only basic necessary AVPs are handled. }

Thanks a lot for the comments and replies
~p

+1 vote

I am trying to understand the charging rules in case of default bearer without the TFT info. i.e with this bearer the UE is still able to browse the internet.
Lets say the Table in PGW is like this:

Servicetype=>Internet
Method=>VolumeBased
Tariff for GroupA £0.5/KB

In this case, what will the value of "service identifier" AVP ?

Because in case we have two services, WAP and Videostreaming, we can have two charging rules ( One service type for WAP and another for Video )..In this case, the CCA will have two charging rules (each with service Identifier, as WAP and streaming) and each will have different TFT. So the PGW can apply these two rules on the default bearer.
My another silly doubt is: how the PCRF, determines, it needs to send two charging rules on CCRequest message.
{ just to clarify based on which AVP in the CCRequest }

Just to clarify the above Query, I tried to read through the book regarding the GPRS charging in the "charging for mobile All IP Communication" by Yi-Bing and section 9.2 "Content based Service for Online TPF/GPRS". where there are two charging rules configures for WAP and Video streaming..There I am trying to figure out AVP in CCR, which triggers two Rules in CCA

Just adding some more queries: on Gy.
- In the "Multiple-Services-Credit-Control AVP" , how the "Requested-Service-Unit" is filled as part of CCR (Initial) Gy request. (is this needed)Because it looks like from the Message sequence in the book CCRequest Terminate is sent with the Used Bytes at PGW. Then OCS calculates the "total bytes" and calculates the charge based on this..{Refer fig 9.3 in the book}
thanks
Priya

...