Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Variables Used to Define the Usage Metric for Services

    A usage metric is a formula that calculates usage based on an accounting event for the specified service. The formula is specified in the form of a JavaScript program and it can specify variables. When you configure a service, you need to specify the interim interval and the usage metric.

    For the usage metric, you define a formula that determines the use of network resources for a service. Each service in the SRC VTA can use a different formula. You can configure the SRC VTA software to evaluate this formula for every accounting event it receives from the SAE for each quota service. The SRC VTA can then debit the result from the accounts.

    Use the variables described in this section to define the formula. See Sample Formulas for Usage Metrics for the SRC VTA for examples of usage metric formulas.

    downStreamBytes

    • Amount of data that the subscriber downloaded from the network since the last accounting event.
    • Value—Number of bytes in the range 0–9223372036854775807

    downStreamPackets

    • Number of data packets that the subscriber downloaded from the network since the last accounting event.
    • Value—Integer in the range 0–9223372036854775807
    • Guidelines—Do not use downStreamPackets in a usage formula and maxUsageRate in the interim interval formula for the same service at the same time.

    interimTime

    • Time since the last accounting event.
    • Value—Number of seconds in the range 0–2147483647
    • Guidelines—Generally, this value equals the interim accounting interval; however, it may exceed the interim accounting interval if an accounting event is lost. Similarly, the value may be less than the interim accounting interval if a stop event occurs in the middle of an accounting interval.

    upStreamBytes

    • Amount of data that the subscriber uploaded to the network since the last accounting event.
    • Value—Number of bytes in the range 0–9223372036854775807

    upStreamPackets

    • Number of data packets that the subscriber uploaded to the network since the last accounting event.
    • Value—Integer in the range 0–9223372036854775807
    • Guidelines—Do not use upStreamPackets in a usage formula and maxUsageRate in the interim interval formula for the same service at the same time.

    Modified: 2012-06-25