Subject: RE: [AAA-WG]: Issue: DCC Tariff time change support

From: "Leena Mattila (TU/LMF)" <[email-masked]>
Date: Mon, 1 Dec 2003 15:14:16 +0100

Hi Marco,

since the service rates are different before and after
the tariff switch it might not be clear from the below
text that the CC server should allocate the quota after
the worst case, that is, the highest cost, in order to
guarantee that the CC client never allows the end user
to consume more units that are reserved from the user's
account (before the tariff change). 

Could you add a sentence like "The granted units should be allocated
based on the worst case scenario in case of fortcoming
tariff change so that the reported used units after a
tariff change will never exceed the credit reservation."
to the proposed new text in Section 5?

Thanks,
Leena

> -----Original Message-----
> From: [email-masked] 
> [mailto:[email-masked]]On Behalf Of
> [email-masked]
> Sent: 28. marraskuuta 2003 16:36
> To: [email-masked]
> Cc: [email-masked]; [email-masked];
> [email-masked]; Patrik Teppo (KA/EAB);
> [email-masked]; Harri Hakala (TU/LMF); Leena Mattila 
> (TU/LMF);
> [email-masked]
> Subject: [AAA-WG]: Issue: DCC Tariff time change support
> 
> 
> Tariff Time change support
> Submitter name: Marco Stura
> Submitter email address: [email-masked]
> Date first submitted: 28.11.2003
> Reference: 
> Document: Diameter CCA-01
> Comment type: T
> Priority: 2
> Section: 
> Rationale/Explanation of issue:
> 
> As discussed on the mailing list:
> http://www.merit.edu/mail.archives/aaa-wg/2003-11/msg00008.html
> The tariff change support shall be added to the cca.
> 
> Proposed change:
> 
> Section 5 Session Based Credit Control
> ADD (at the end of the section):
> The Diameter credit-control server and client may optionally 
> support a 
> tariff change mechanism. The Diameter credit-control server 
> may include
> a Tariff-Time-Change AVP in the answer message. When the 
> Diameter credit-
> control client reports the used units and a tariff change has occurred
> during the reporting period then the Diameter credit-control client
> SHOULD itemize the units used before and after the tariff change.
> 
> Section 8.16 Granted-Service-Unit
> CHANGE:
> FROM:
> Granted-Service-Unit ::= < AVP Header: 431 > 
>                                   [ CC-Time ] 
>                                   [ CC-Money ] 
>                                   [ CC-Total-Octets ] 
>                                   [ CC-Input-Octets ] 
>                                   [ CC-Output-Octets ] 
>                                   [ CC-Service-Specific-Units ] 
>                                  *[ Service-Identifier ] 
>                                   [ Rating-Group ] 
> TO:
> Granted-Service-Unit ::= < AVP Header: 431 > 
>                                   [ Tariff-Time-Change ]
>                                   [ CC-Time ] 
>                                   [ CC-Money ] 
>                                   [ CC-Total-Octets ] 
>                                   [ CC-Input-Octets ] 
>                                   [ CC-Output-Octets ] 
>                                   [ CC-Service-Specific-Units ] 
>                                  *[ Service-Identifier ] 
>                                   [ Rating-Group ] 
> 
> Section 8.30 Used-Service-Unit AVP
> CHANGE:
> FROM:
> Used-Service-Unit ::= < AVP Header: 446 > 
>                                   [ CC-Time ] 
>                                   [ CC-Money ] 
>                                   [ CC-Total-Octets ] 
>                                   [ CC-Input-Octets ] 
>                                   [ CC-Output-Octets ] 
>                                   [ CC-Service-Specific-Units ] 
>                                  *[ Service-Identifier ] 
>                                   [ Rating-Group ]
> 
> TO:
> Used-Service-Unit ::= < AVP Header: 446 > 
>                                   [ Tariff-Time-Usage ]
>                                   [ CC-Time ] 
>                                   [ CC-Money ] 
>                                   [ CC-Total-Octets ] 
>                                   [ CC-Input-Octets ] 
>                                   [ CC-Output-Octets ] 
>                                   [ CC-Service-Specific-Units ] 
>                                  *[ Service-Identifier ] 
>                                   [ Rating-Group ]
> 
> ADD:
> Section 8.xx Tariff-Time-Change AVP
> The Tariff-Time-Change AVP (AVP code TBD) is of type Time, and 
> includes the time in seconds since January 1, 1900 00:00 UTC when
> the tariff of the service will be changed.
> The tariff change mechanism is optional for client and server and
> it is not used for unit type time, since the server has full
> control of the time. 
> If a client does not support the tariff time change mechanism it
> must treat Tariff-Time-Change AVP in the answer message as an 
> incorrect
> CCA answer. In that case the client shall terminate credit control 
> session and indicate in the Termination-Cause AVP reason 
> DIAMETER_BAD_ANSWER. 
> 
> ADD:
> Section 8.xx Tariff-Time-Usage AVP
> The Tariff-Time-Usage AVP (AVP code TBD) is of type 
> Enumerated and defines whether
> units are used before or after tariff change when a tariff 
> change has occurred 
> during the reporting period. Omission of this AVP means that 
> no tariff change 
> has been occurred.
> 
> Tariff-Time-Usage can be one of the following.
> 
> UNIT_BEFORE_TARIFF_CHANGE                    0
> The used units contains the amount of the units before 
> tariff change, that is units measured from the point when
> the previous measurement ended to the point when tariff change
> occurred.
> 
> UNIT_AFTER_TARIFF_CHANGE                     1
> The used units contains the amount of the units after
> tariff change has been occurred.
>