![]() |
Table Of Contents
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:
The following example shows how to define a prepaid billing plan:
ip csg billing REGULARservice MOVIESservice BROWSINGWhen 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 quotaPrepaid Billing with Policies Configuration Example
The following example shows a CSG configuration for prepaid billing with policies:
ip csg map TRAINING urlmatch url *.edu/*!ip csg policy TRAININGreport radius attribute type httpurl-map TRAINING!ip csg map AUCTION_HOUSE urlmatch url *.auction_house.com/*!ip csg policy AUCTION_HOUSEaccounting type http customer-string AUCTION_HOUSEurl-map AUCTION_HOUSE!ip csg map MOVIES urlmatch url *.movies_(comedy|action|drama).com/*.mpeg!ip csg policy MOVIES_COMEDYaccounting type http customer-string MOVIES_COMEDYurl-map MOVIES!ip csg policy MOVIES_ACTIONaccounting type http customer-string MOVIES_ACTIONurl-map MOVIES!ip csg content MOVIES_COMEDYip 172.18.45.0/24 tcp 8080policy MOVIES_COMEDYinservice!ip csg content MOVIES_ACTIONip 66.33.78.0/24 tcp 80policy MOVIES_ACTIONinservice!ip csg content AUCTION_HOUSEip 216.32.120.0/24 tcp 8080policy AUCTION_HOUSEvlan AUCTION_HOUSEinservice!ip csg content WAKETECHip 48.33.0.0/16 tcp 80policy TRAININGinservice!ip csg ruleset R1content MOVIES_COMEDYcontent MOVIES_ACTIONcontent AUCTION_HOUSEcontent WAKETECH!ip csg weight DOUBLE 2!ip csg service MOVIEScontent MOVIES_COMEDY policy MOVIES_COMEDYcontent MOVIES_ACTION policy MOVIES_ACTION weight DOUBLE!ip csg service BROWSINGbasis fixedcontent AUCTION_HOUSE policy AUCTION_HOUSEcontent WAKETECH policy TRAINING!ip csg billing FREE_BROWSINGservice MOVIES!ip csg billing REGULARservice MOVIESservice BROWSING!ip csg user-group G1entries max 100000database 10.1.2.3 11111quota server 10.1.4.5 888 1quota server 10.1.6.7 999 2radius key secretpasswordredirect nat 10.33.33.3!ip csg accounting A1user-group G1agent local-port 3775agent 10.1.2.4 11112 1agent 10.1.2.5 11113 2records max 250inservice!mod csg 5vlan 30 client AUCTION_HOUSEip address 123.44.50.6 255.255.255.0gateway 123.44.50.1vlan 40 serverip address 123.46.50.6 255.255.255.0alias 123.60.7.6 255.255.255.0route 123.50.0.0 255.255.0.0 gateway 123.44.50.1ruleset R1accounting A1