[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring the VTA to Manage Database Accounts

The VTA uses the database engine processor to update database accounts. The database engine processor works as a proxy to a database. It can calculate usage, update account balances, get account and active service session data, and set initial balances of subscriber accounts. You can also use it to dynamically adjust interim accounting intervals based on a service or based on a subscriber's remaining resources and use of the network for that service.

The database engine processor consists of account update scripts, subscriber accounts, service accounts, and actions.

To configure the database engine processor:

  1. In the VTA Configuration Manager navigation pane, select Edit.
  2. Under Current Configuration, select Processors.

A list of processors appears.

  1. Click Enable to enable the processor and display the configuration page for the database engine processor, or click Database Engine Processor.

The Database Engine Processor screen appears.

  1. You can enable or disable the processor and perform the following tasks:

Configuring Scripts That Update Accounts

You can set up scripts to update balances in the accounts from which the usage of a service is charged and update accounts by assigning values to variables for the account balances.

You can create or delete account update scripts:

Account Update Script Name

Account Update Script Content

Configuring the VTA to Manage Subscriber Accounts

A subscriber account is a record of credit and debit entries in the database that track a subscriber's use of a particular network resource.

You configure subscriber accounts in the Database Engine Account section of the Database Engine Processor configuration page. For example:

You can create, delete, or modify accounts:

If you create or modify an account, the account configuration screen appears.

Initial Balance

Initial Status

Configuring a Usage Metric for Service Accounts

You configure VTA service accounts in the Database Engine Service section of the Database Engine Processor configuration page. For example:

You can create, delete, or modify accounts:

If you create or modify an account, the account configuration screen appears.

New Database Engine Service

Usage Metric

Defining a Formula for Determining Network Resource Usage

In the Usage Metric box, you define a formula that determines the use of network resources for a service. Each service in a VTA can use a different formula. You can configure the VTA software to evaluate this formula for every accounting event it receives from the SAE for each quota service. It can then debit the result from the accounts. Use the variables described in this section to define the formula.

downStreamBytes

downStreamPackets

interimTime

upStreamBytes

upStreamPackets

Sample Formulas for Usage Metrics

Table 35 provides examples of usage formulas.




Table 35: Examples of Formulas That Calculate Use of Network Resources 
Formula
Description
Function

return <upStreamBytes> + <downStreamBytes>

Number of bytes sent and received by the subscriber.

Tracks volume of data that the subscriber transfers.

return 2*<upStreamBytes> + <downStreamBytes>

Twice the number of sent bytes plus the number of received bytes.

Allows higher charges for subscribers who are operating servers.

return <interimTime>

Time the subscriber is connected.

Tracks time that the subscriber connects rather than volume of data transfer.

return <downStreamBytes>/<interimTime>

Rate of downstream data transfer.

Allows higher charges for higher transfer rates.

QuotaInternet formula:

return <upStreamBytes> + <downStreamBytes>- (<upStreamPackets> + <downStreamPackets>)*20

QuotaLocal formula:

return (<upStreamBytes> + <downStreamBytes>- (<upStreamPackets> + <downStreamPackets>)*20)/2

Formulas for separate, complementary services in a single VTA.

The following expression returns the total number of bytes in the IP headers of packets uploaded and downloaded by the service, and as such is not subscriber data. It is not counted as usage.

(<upStreamPackets>+ <downStreamPackets>)*20

Provides support for two services: QuotaInternet for Internet service and QuotaLocal for local service.

Allows higher charges for Internet service than for local service. By allocating a fixed usage limit for both services to each subscriber, encourages subscribers to access local resources due to decreased cost.

Configuring an Interim Accounting Interval for Service Accounts

You configure VTA service accounts in the Database Engine Service section of the Database Engine Processor configuration page. For example:

You can create, delete, or modify accounts:

If you create or modify an account, the account configuration screen appears.

New Database Engine Service

Interim Interval

Adjusting the Interim Accounting Interval for a Service

In the Interim Interval box, you define a formula to dynamically adjust the interim accounting interval for each service based on the subscriber's remaining resources and use of the network for that service. Each service in the VTA can use a different formula. You can configure the VTA software to evaluate the formula to obtain the accounting intervals. Depending on the result, the VTA performs the following functions:

The variables are categorized as:

Current Service Variables

Use the variables described in this section to define a formula for the current service.

lastInterimTime

sessionLength

maxUsageRate

The maxUsageRate variable is calculated for a service by means of the following values for the variables in the corresponding usage formula:

If you use the parameters upStreamPackets (PA_IN_PACKETS) and downStreamPackets (PA_OUT_PACKETS) in the usage formula and at the same time maxUsageRate in the interim interval formula, the maxUsageRate is not accurate, because the values for maximum upStreamPackets and downStreamPackets are unknown.

averageUsageRate

For other events, the value is the usage formula divided by PA_SESSION_TIME. The usage formula is calculated from PA_IN_PACKETS, PA_OUT_PACKETS, PA_OUT_OCTETS, PA_IN_OCTETS, and PA_SESSION_TIME.

latestUsageRate

The value is calculated by using the result of the usage formula divided by the length of the service session since the previous usage report for the same service.

Other Service Variables

Use the variables described in this section to define a formula for another service.

System requirements to calculate service usage, in the form of the averageUsageRate and the sessionLength variables, can affect system performance. Using a longer interim interval means that there are fewer interim events to process, which requires fewer system resources.

averageUsageRate_<serviceName>

sessionLength_<serviceName>

Account Balance Variable

Balance information can be provided from each of the subscriber's accounts.

balance_<accountName>

Table 36 provides examples of formulas to dynamically adjust the interim accounting interval for a service.




Table 36: Examples of Interim Accounting Interval 
Formula
Description

return 900

Accounting interval is fixed at 900 seconds (15 minutes).

return (<balance_Periodic> + <balance_Bought>) /<maxUsageRate>

Minimum time required for the subscriber to empty the periodic and bought accounts.

return <sessionLength> >= 60*15 ? (<balance_Periodic> + <balance_Bought>) /<averageUsageRate>/2 : (<balance_Periodic> + <balance_Bought>) /<maxUsageRate>

Half the time required for the subscriber to empty the accounts at the current average rate, or the minimum time if the session is shorter than 15 minutes.

Because the average rate may not be representative early in the session, check when the account is half empty.

Configuring Actions for the Database Engine Processor

You can configure actions that the database engine processor performs on events. For example, you can set up an action to calculate usage in a service-tracking event by using the usage metric that you configured for a service.

To configure actions for the database engine processors:

  1. In the VTA Configuration Manager navigation pane, select Edit.
  2. Under Current Configuration, select Actions.

A list of actions appears. For example:

  1. To add an action, enter a name for the action in the New Quota VTA Actions field, and click Create.

The action configuration screen appears.

  1. Select DBEngine in the Processor field, and click Save. (If DBEngine does not appear in the drop-down list, enable the database engine processor.)

An expanded configuration screen for the action appears.

  1. Edit the action fields.

See Action Fields for the Database Engine Processor.

  1. If you are finished configuring the VTA, save the configuration to a directory or local file.

See Saving VTA Configurations to a Directory or Local File.

Action Fields for the Database Engine Processor

In VTA Configuration Manager, you can edit the following fields in the Quota VTA Actions screen.

Processor

Function

Parameter Name

Parameter Content

Abort On Error


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]