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

From: <[email-masked]>
Date: Fri, 28 Nov 2003 16:35:54 +0200

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 changed:

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.