Table Of Contents
Configuring Prepaid Support
Configuring a Prepaid Billing Plan
Prepaid Billing with Policies Configuration Example
Configuring Prepaid Support
This chapter contains the following information related to the CSG support for prepaid billing:
•
Configuring a Prepaid Billing Plan
•
Prepaid Billing with Policies Configuration Example
Configuring a Prepaid Billing Plan
A billing plan identifies one or more content billing services to be used for prepaid billing.
To define a billing plan, perform this task:
|
Command
|
Purpose
|
Step 1
|
Router (config-csg-module)# ip csg
billing billing-plan-name
|
Defines a billing plan to be used for prepaid billing, and enters CSG billing configuration mode.
|
Step 2
|
Router (config-csg-billing)# service
service-name
|
Associates a service with a CSG billing plan.
|
Step 3
|
Router # show module csg slot billing
[detail] {all | plan billing-plan-name}
|
Displays statistics and counters for the CSG billing.
|
The following example shows how to define a prepaid billing plan:
When a CSG prepaid user initiates a new IP session, a large amount of quota may be reserved for the IP session if the IP session maps to a service configured for basis byte ip or basis byte tcp. Often, the reservation greatly exceeds the amount of quota that the session actually uses. This does not result in incorrect charging; however, as a result of one or more large reservations for IP sessions, the CSG might make additional requests for quota from the quota server.
Prior to this enhancement, the CSG would limit the reservation size to the size of the intermediate byte count, which resulted in additional records sent to the BMA. Now, you can limit the size of the reservation per IP session to reduce the number of requests to the quota server.
To configure a maximum amount of quota reserved for a prepaid IP user session, configure the following in module CSG configuration mode:
Router (config-module-csg)# variable CSG_BASIS_BYTE_RESERVED_MAX quota
Prepaid Billing with Policies Configuration Example
The following example shows a CSG configuration for prepaid billing with policies:
report radius attribute type http
ip csg map AUCTION_HOUSE url
match url *.auction_house.com/*
ip csg policy AUCTION_HOUSE
accounting type http customer-string AUCTION_HOUSE
match url *.movies_(comedy|action|drama).com/*.mpeg
ip csg policy MOVIES_COMEDY
accounting type http customer-string MOVIES_COMEDY
ip csg policy MOVIES_ACTION
accounting type http customer-string MOVIES_ACTION
ip csg content MOVIES_COMEDY
ip 172.18.45.0/24 tcp 8080
ip csg content MOVIES_ACTION
ip csg content AUCTION_HOUSE
ip 216.32.120.0/24 tcp 8080
content MOVIES_COMEDY policy MOVIES_COMEDY
content MOVIES_ACTION policy MOVIES_ACTION weight DOUBLE
content AUCTION_HOUSE policy AUCTION_HOUSE
content WAKETECH policy TRAINING
ip csg billing FREE_BROWSING
quota server 10.1.4.5 888 1
quota server 10.1.6.7 999 2
radius key secretpassword
vlan 30 client AUCTION_HOUSE
ip address 123.44.50.6 255.255.255.0
ip address 123.46.50.6 255.255.255.0
alias 123.60.7.6 255.255.255.0
route 123.50.0.0 255.255.0.0 gateway 123.44.50.1