本帖最后由 爱卫生 于 2012-8-21 22:42 编辑
Multiple-Services-Credit-Control AVP和Granted-Service-Unit AVP有着千丝万缕的联系。因此放在一起介绍。这两个AVP都是用于Credit Control目的,即额度控制。额度如果不足,需要重新申请。申请到的额度通过这两个AVP下发,Granted-Service-Unit AVP不会单独存在,是包含在MSCC AVP里面的。按控制方式不同,有按时间或按流量来控制的。Granted-Service-Unit AVP中包含了允许用户所使用的时间长度或流量字节数。GGSN进行实时监控,如果发现额度不足,将发送CCR消息到PCRF重新申请额度。 以下是RFC 4006中关于这两个AVP介绍的原文,如下:“ ”Granted-Service-Unit AVP (AVP Code 431) is of type Grouped and contains the amount of units that the Diameter credit-control client can provide to the end user until the service must be released or the new Credit-Control-Request must be sent. A client is not required to implement all the unit types, and it must treat unknown or unsupported unit types in the answer message as an incorrect CCA answer. In this case, the client MUST terminate the credit-control session and indicate in the Termination-Cause AVP reason DIAMETER_BAD_ANSWER。 The Granted-Service-Unit AVP is defined as follows (per the grouped-avp-def of RFC 3588prop [DIAMBASE]): 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]
*[AVP]“ “Multiple-Services-Credit-Control AVP (AVP Code 456) is of type Grouped and contains the AVPs related to the independent credit-control of multiple services feature. Note that each instance of this AVP carries units related to one or more services or related to a single rating group.” 以下给出了一个这两个AVP的实例截图。 在本例中可以看到,PCRF通知GGSN,关于该PDP上下文用户可以使用的流量为410255724字节或者300秒的时间。
|