Summary of the invention
The invention provides and a kind ofly use patronage business to carry out the method for online charging, system and relevant device to prepaid user.
First aspect, the embodiment of the present invention provides a kind of charging method of supporting business, and it is included in "Policy and Charging Rules Function PCRF equipment and performs following steps:
Receive the notification message that application function AF equipment sends, the mark of the sponsored messages carrying described patronage business in described notification message and the user using described patronage business;
Send a request message to Online Charging System OCS, in described request message, carry the mark of described sponsored messages and described user.
In conjunction with first aspect, in the implementation that the first is possible, described sending a request message to Online Charging System comprises:
Send consumption limit request SLR message by Sy interface to OCS, in described SLR message, carry the mark of described sponsored messages and described user.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, describedly send SLR message by Sy interface to OCS and comprise:
When establishing Sy session between PCRF and OCS, then send SLR updating message by Sy interface to described OCS;
When not setting up Sy session between PCRF and OCS, then send SLR initial message by Sy interface to described OCS.
In conjunction with the implementation that the second of the first possible implementation of first aspect, first aspect, first aspect is possible, in the implementation that the third is possible, described method also comprises:
According to described sponsored messages, described patronage service generation rate group is identified;
Described rate group mark is sent to PCEF.
In conjunction with the third possible implementation of the possible implementation of the second of the first possible implementation of first aspect, first aspect, first aspect, first aspect, in the 4th kind of possible implementation, described method also comprises:
The business use amount of patronage business is added up according to strategy and the reporting information of charge execution function PCEF equipment;
When equaling the patronage traffic carrying capacity in described sponsored messages in described business use amount, send the re-authentication requests RAR message of carrying described business use amount to described AF equipment.
In conjunction with the implementation that the second of the first possible implementation of first aspect, first aspect is possible, in the 5th kind of possible implementation, carry described sponsored messages in the patronage data information field that described SLR message is newly-increased, described sponsored messages comprises mark and the patronage traffic carrying capacity of patronage business.
Second aspect, the embodiment of the present invention provides a kind of charging method of supporting business, and it is included in Online Charging System OCS and performs following steps:
Receive the request message that strategy sends with charging rule functions PCRF equipment, the mark of the sponsored messages carrying described patronage business in described request message and the user using described patronage business;
Mandate charging is carried out in the patronage business use of mark to described user according to described sponsored message and described user.
In conjunction with second aspect, in the implementation that the first is possible, the described mark according to sponsored message and described user uses the patronage business of described user carries out mandate charging and comprises:
Receive the first credit control request CCR message that strategy sends with charge execution function PCEF equipment, in described first credit control request information, carry the pre-allowance of application of patronage business, rate group identifies and the mark of described user;
The sponsored messages of the rate corresponding according to the pre-allowance of described application, described rate group mark and the mark correspondence of described user is to described user's distribution service warrant quantity and withholding fee;
Return the first diameter credit control response CCA message to described PCEF, in described first diameter credit control response message, carry the mark of described service authorization amount and user.
In conjunction with the first possible implementation of second aspect, second aspect, in the implementation that the second is possible, the request message that described reception strategy and charging rule functions PCRF equipment send comprises:
Receive the consumption limit request SLR message that PCRF equipment is sent by Sy interface, the mark of the sponsored messages carrying described patronage business in described SLR message and the user using described patronage business.
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, the SLR message that described reception PCRF equipment is sent by Sy interface comprises:
When establishing Sy session between PCRF equipment and OCS, then by the SLR updating message of Sy interface PCRF equipment transmission;
When not setting up Sy session between PCRF equipment and OCS, then by the SLR initial message of Sy interface PCRF equipment transmission.
In conjunction with the third possible implementation of the possible implementation of the second of the first possible implementation of second aspect, second aspect, second aspect, in the 4th kind of possible implementation, the described mark according to sponsored message and described user uses the patronage business of described user carries out mandate charging and also comprises:
Receive the second credit control request information that strategy sends with charge execution function PCEF equipment, in described second credit control request information, carry the business use amount of patronage business, described rate group identifies and the mark of described user;
The sponsored messages of the rate corresponding according to described business use amount, described rate group mark and the mark correspondence of described user is to described user's distribution service warrant quantity and deduct fees;
Return the second diameter credit control response message to described PCEF equipment, in described second diameter credit control response message, carry the mark of described service authorization amount and user.
The third aspect, the embodiment of the present invention provides a kind of for supporting strategy and the charging rule functions PCRF equipment of business, and it comprises:
Notice receiver module, for receiving the notification message that application function AF equipment sends, the mark of the sponsored messages carrying described patronage business in described notification message and the user using described patronage business;
Message transmission module, for sending a request message to Online Charging System OCS, carries the mark of described sponsored messages and described user in described request message.
In conjunction with the third aspect, in the implementation that the first is possible, described message transmission module sends a request message to Online Charging System and comprises:
Described message transmission module sends consumption limit request SLR message by Sy interface to OCS, carries the mark of described sponsored messages and described user in described SLR message.
In conjunction with the first possible implementation of the third aspect, the third aspect, the PCRF equipment described in the implementation that the second is possible also comprises:
First control module, for identifying described patronage service generation rate group according to described sponsored messages;
Described message transmission module is also for sending described rate group mark to PCEF.
In conjunction with the implementation that the second of the first possible implementation of the third aspect, the third aspect, the third aspect is possible, in the implementation that the third is possible, described first control module in described PCRF equipment is also for adding up the business use amount of patronage business according to strategy and the reporting information of charge execution function PCEF equipment;
Described message transmission module is also for equaling the patronage traffic carrying capacity in described sponsored messages during in described business use amount, send the re-authentication requests RAR message of carrying described business use amount to described AF.
Fourth aspect, the embodiment of the present invention provides a kind of for supporting the Online Charging System of business, and it comprises:
Request receiving module, for receiving the request message that strategy and charging rule functions PCRF equipment send, the mark of the sponsored messages carrying described patronage business in described request message and the user using described patronage business;
Authorize accounting module, carry out mandate charging for the patronage business use of mark to described user according to described sponsored message and described user.
In conjunction with fourth aspect, in the implementation that the first is possible, the described mandate accounting module in described Online Charging System comprises:
Message reception units, for receiving the first credit control request CCR message that strategy sends with charge execution function PCEF equipment, carries the pre-allowance of application of patronage business, rate group identifies and the mark of described user in described first credit control request information;
Authorize Charging Detail Record unit, for the sponsored messages of the mark correspondence according to rate corresponding to the pre-allowance of described application, described rate group mark and described user to described user's distribution service warrant quantity and withholding fee;
Message sending unit, for returning the first diameter credit control response CCA message to described PCEF, carries the mark of described service authorization amount and user in described first diameter credit control response message.
In conjunction with the first possible implementation of fourth aspect, fourth aspect, in the implementation that the second is possible, the described request receiver module in described Online Charging System receives the tactful request message sent with charging rule functions PCRF equipment and comprises:
Described request receiver module receives the consumption limit request SLR message that PCRF equipment is sent by Sy interface, carries the sponsored messages of described patronage business in described SLR message.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the third is possible, message reception units in described Online Charging System also for receiving the second credit control request information that strategy and charge execution function PCEF equipment send, carries the business use amount of patronage business in described second credit control request information, described rate group identifies and the mark of described user;
Described mandate Charging Detail Record unit is also deducted fees to described user's distribution service warrant quantity for the sponsored messages of the mark correspondence according to rate corresponding to described business use amount, described rate group mark and described user;
Described message sending unit, also for returning the second diameter credit control response message to described PCEF equipment, carries the mark of described service authorization amount and user in described second diameter credit control response message.
5th aspect, the embodiment of the present invention provides a kind of system of patronage business being carried out to charging, and it comprises the PCRF equipment as described in the third aspect and the Online Charging System as described in fourth aspect.
In the charging method of the patronage business provided in the embodiment of the present invention, PCRF equipment is after the notification message receiving the transmission of application function AF equipment, send the request message carrying sponsored messages to OCS, and then make OCS carry out online charging according to the sponsored messages in request message to user.Compared with prior art, the embodiment of the present invention can be adapted to need the prepaid account in conjunction with user to carry out the scene of real time billing, such as support the expense of flow first to deduct to postpone again return, non-sponsored business consumption predetermined dollar value reoffers patronage business, patronage traffic carrying capacity is the situation that tariff discount information needs to carry out user charging, better adaptability.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention provides a kind of charging method and relevant device of supporting business.The charging method that the embodiment of the present invention provides comprises: strategy and charging rule functions PCRF equipment receive the notification message that application function AF equipment sends, the mark of the sponsored messages carrying described patronage business in described notification message and the user using described patronage business; Send a request message to Online Charging System OCS, in described request message, carry the mark of described sponsored messages and described user.Corresponding, the charging method that OCS side performs comprises: OCS receives the request message that strategy sends with charging rule functions PCRF equipment, the mark of the sponsored messages carrying described patronage business in described request message and the user using described patronage business; Mark according to described sponsored message and described user carries out mandate charging to described user.
In the charging method of the patronage business provided in the embodiment of the present invention, AF determine need configuration or upgrade sponsored messages time to PCRF equipment dispatch order message, PCRF equipment is after the notification message receiving the transmission of application function AF equipment, send the request message carrying sponsored messages to OCS, and then make OCS carry out online charging according to the sponsored messages in request message to user.Compared with prior art, the embodiment of the present invention can be adapted to need the prepaid account in conjunction with user to carry out the scene of real time billing, such as, support traffic carrying capacity to be the situation that tariff discount information needs to carry out user online charging, better adaptability.
Technical scheme for a better understanding of the present invention, is described in detail embodiment provided by the invention below in conjunction with accompanying drawing.
It is the structural representation of the system being applicable to embodiment of the present invention charging method see Fig. 1, Fig. 1.
Wherein, system comprises "Policy and Charging Rules Function (Policy and Charging Rules Function, PCRF) equipment, application function (Application Function) equipment, Online Charging System (OnlineCharging System, OCS), off-line accounting system (Offline Charging System, OCS), strategy and charge execution function (Policy and Charging Enforcement Function, PCEF) equipment, signing specification storehouse (Subscription Profile Repository, SPR), flow detection function (TrafficDetection Function, TDF) equipment etc.Wherein, PCEF equipment is usually located at gateway (gateway), in, gateway is specifically as follows Gateway GPRS Support Node (GGSN, Gateway GPRS supportnode).In the present embodiment, PCEF equipment is referred to as PCEF, PCRF equipment referred to as PCRF, and application function device A F is referred to as AF.
PCRF is for the restriction according to subscriber equipment access network, carrier policy, user contracting data, and the current ongoing business information of subscriber equipment etc., determine the strategy that will perform, and give strategy and charge execution function equipment PCEF by this policy distribution, perform these strategies by PCEF.Strategy comprise business data flow detected rule, whether carry out Qos corresponding to gate, business data flow and the charging regulation (as carried out charging etc. based on time, flow, event etc.) based on stream.
PCEF is used for by performing the strategy that issues of PCRF, realizes the detection to business data flow, the Qos of business data flow ensures, the flow process in user face and the session management etc. in trigging control face.
User contracting data database SPR is used for providing user contracting data to PCRF.
Application function device A F is used for the session information dynamically providing application layer to PCRF, and PCRF dynamically generates or revise corresponding strategy according to this information.
Off-line accounting system OFCS and Online Charging System OCS is mainly used in off-line and online charging.
Interface above between each function device is described below:
Gx interface: this interface connects PCEF and PCRF, for realizing following functions: establishment of connection, maintenance and termination; PCEF asks PCC rule to PCRF; PCRF issues PCC rule to PCEF; The establishment model of negotiating bearer.
Gy interface: connect PCEF and OCS, transmits the relevant information of online charging mainly through diameter (diameter) agreement.
Sy interface: connecting PCRF and OCS, OCS and PCRF can pay relevant state information by Sy interface transmission user.
Rx interface: this interface connects AF and PCRF, and issue application layer relevant information for AF, this information comprises the IP filter for identification services data flow, bandwidth information etc. needed for application or media.
Sp interface: this interface connects SPR and PCRF, asks user signing contract information for PCRF to SPR.This CAMEL-Subscription-Information is used for determining transport layer strategy.Gz interface is then mainly used in offline charging.
See the flow chart that Fig. 2, Fig. 2 are the patronage business charging methods that the embodiment of the present invention one provides.
The charging method of the patronage business that the embodiment of the present invention provides comprises:
Step 101, PCRF receive the notification message that application function AF equipment sends, the mark of the sponsored messages carrying described patronage business in described notification message and the user using described patronage business.
In embodiments of the present invention, when patronage business brought into use by subscriber equipment, AF equipment sends a notification message to PCRF, carry the session information of patronage business in application layer in this notification message, wherein session information comprises the identification information of the user using described patronage business and the sponsored messages of patronage business.
Wherein, the notification message that AF is sent to PCRF by Rx interface can be authority checking request (Authorization Authentication Request, be called for short AA-request or AAR) message, PCRF receives the AAR message that application function AF equipment is sent by Rx interface, the mark of the sponsored messages carrying described patronage business in described AAR message and the user using described patronage business.It is to be noted, AF sends to the notification message of PCRF to be not limited to AAR message (business information based on diameter Diameter), can also be other basic messaes based on diameter Diameter, also can be based on Simple Object Access Protocol (Simple Object Access Protocol, SOAP) request message, the request message of SOAP adopts extend markup language (Extensible Markup Language, XML) form usually.
In the present embodiment, sponsored messages can comprise mark and the patronage traffic carrying capacity of patronage business, optionally can also comprise sponsor's mark.The mark of patronage business is specifically as follows service identification (such as micro-communication service), can also be the mark (company of Tengxun of provider of micro-communication service) of service provider.Use the mark of the user of patronage business can comprise the communicating number of user, the IP address etc. of subscriber equipment.
Step 102, PCRF send a request message to Online Charging System OCS, carry the mark of described sponsored messages and user in described request message.
Concrete, PCRF can send by existing Sy interface the request message carrying the mark of sponsored messages and the user received to OCS, this request message can be expenditure limit request (Spending LimitRequest, SLR) message.Patronage data information field newly-increased in SLR message can carry described sponsored messages.
It should be noted that, those skilled in the art can also send a request message to OCS by self defined interface, and such as, during the built-in PCRF of OCS, the particular type of request message does not limit, as long as wherein carry the mark of sponsored messages and user.
In the charging method of the patronage business provided in the embodiment of the present invention one, PCRF equipment is after the notification message receiving the transmission of application function AF equipment, the request message of the mark of the user carrying sponsored messages and use patronage business is sent to OCS, and then make OCS obtain the mark of the user of sponsored messages and use patronage business, then according to the mark of sponsored messages and user, online charging is carried out to user.Compared with prior art, embodiments provide a kind of method that user to patronage business carries out online charging, can be adapted to need the prepaid account in conjunction with user to carry out the scene of real time billing, such as traffic carrying capacity is supported to be the situation that tariff discount information needs to carry out user online charging, better adaptability.
Further, the charging method that the embodiment of the present invention provides also comprises:
Step 103, PCRF identify described patronage service generation rate group according to described sponsored messages.
Concrete, PCRF also identifies patronage service generation rate group (Rating-Group, RG) according to the sponsored messages received, and rate group mark is corresponding with the business data flow of patronage business.In addition, rate group mark is also for notifying which kind of rate is charge system use carry out charging to user.
Step 104, PCRF send described rate group mark to PCEF.
Concrete, PCRF can send rate group mark by Gx interface to PCEF, so that PCEF asks to carry this rate group mark during charging to OCS follow-up, and then OCS carries out charging according to this rate group mark to user.
It should be noted that, PCRF can also carry above-mentioned rate group mark in the request message sending to OCS, is convenient to follow-up OCS and carries out charging according to this rate group mark to user.In addition, the OCS in the embodiment of the present invention not only may be used for carrying out charging to patronage business, can also carry out online charging to expense patronage business.
See the flow chart that Fig. 3, Fig. 3 are the patronage business charging methods that the embodiment of the present invention two provides.
The charging method of the patronage business that the embodiment of the present invention two provides mainly comprises the following steps:
Step 201, OCS receive the request message that strategy sends with charging rule functions PCRF, the mark of the sponsored messages carrying described patronage business in described request message and the user using described patronage business.
Concrete, OCS receives the request message that PCRF sends, and OCS resolves the mark that this request message obtains the sponsored messages of described patronage business and the user of the described patronage business of use.Optionally, OCS can by the request message carrying the mark of sponsored messages and user of existing Sy interface PCRF transmission.If PCRF sends the mark of sponsored messages and user by other self-defining interfaces, then OCS is by this self-defining interface patronage sponsored messages of business and the mark of user.
Step 202, OCS carry out mandate charging according to the patronage business use of mark to described user of described sponsored message and described user.
Concrete, OCS uses patronage business to authorize online and charging according to the mark of the sponsored messages received and described user to user.
In the charging method of the patronage business provided in the embodiment of the present invention two, OCS obtains sponsored messages by the request message receiving PCRF and send and uses the mark of user of patronage business, then carries out online charging according to the mark of sponsored messages and user to user.Compared with prior art, embodiments provide a kind of method to using the user of patronage business to carry out online charging, can be adapted to need the prepaid account in conjunction with user to carry out the scene of real time billing, such as traffic carrying capacity is supported to be the situation that tariff discount information needs to carry out user online charging, better adaptability.
See the flow chart that Fig. 4, Fig. 4 are the patronage business charging methods that the embodiment of the present invention three provides.
In embodiments of the present invention, AF detects that user brings into use patronage business, such as micro-letter (wechat) business, user starts the micro-letter of application program using this service provider to provide on a user device, then AF sends a notification message to PCRF, carry patronage service conversation information in this notification message, session information comprises the mark of the sponsored messages of patronage business and the user of the described patronage business of use.
The charging method that the embodiment of the present invention provides mainly comprises the following steps:
Step 301, PCRF receive the authority checking request message that AF sends, the mark of the sponsored messages carrying described patronage business in described authority checking request message and the user using described patronage business.
In embodiments of the present invention, PCRF can receive the authority checking request message of AF transmission by Rx interface.The mark of the sponsored messages carrying patronage business in this message and the user using described patronage business, sponsored messages comprises the information such as mark, patronage traffic carrying capacity of sponsor's mark, patronage business.Wherein, sponsor's mark is for identifying the businessman providing patronage, and the mark of patronage business is for identifying the mark of the concrete business of sponsor's patronage.Such as sponsor is company of Tengxun (Tencent Inc), patronage business be designated micro-letter (wechat), search room net (Soufun) or Amazon shopping (amazon), patronage traffic information can for patronage the duration of call, patronage flow, rate discount information or sponsorship amount.
The mark of user can comprise the communicating number of user, international mobile subscriber identity (the International Mobile Subscriber Identification Number of user, or the mark of privately owned user (IMS Private Identification IMSI), IMPI), the IP address of subscriber equipment or the international identification code (International Mobile Equipment Identification Number, IMEI) of mobile device etc. of subscriber equipment.
In the present embodiment, user uses micro-letter by subscriber equipment, and service provider is micro-letter, and the patronage traffic carrying capacity that company of Tengxun of sponsor provides is the 20Mb flow of 5 folding rate.If the patronage traffic carrying capacity that sponsor provides is the flow (such as the flow of 10 yuan) that sponsorship amount is corresponding, then PCRF obtains the rate of user from SPR, and this sponsorship amount is converted to patronage flow.
Wherein, the major parameter carried in AAR message can be as follows:
Framed-IP-Address:80.74.125.201
Rx-Request-Type:INITIAL_REQUEST
Specific-Action:USAGE_REPORT
Media-Component-Description:permit in ip from any to 12.34.56.7880
Sponsored-Connectivity-Data
Sponsor-Identity:Tencent
Application-Service-Provider-Identity:wechat
Granted-Service-Unit:20Mb,50%discount
Wherein, Framed-IP-Address field is the mark of user, is the IP address of subscriber equipment in the present embodiment, the type that Rx-Request-Type field identification Rx asks, and is initialization request INITIAL_REQUEST in the present embodiment.Sponsored-Connectivity-Data is patronage data information field, it comprises three son fields, Sponsor-Identity is sponsor's field, for identifying sponsor, Application-Service-Provider-Identity is the identification field of patronage business, for identifying the concrete business of patronage, this field is specifically as follows the provider of Business Name or business: Granted-Service-Unit is patronage traffic carrying capacity field, for identifying patronage traffic carrying capacity, be the 20Mb flow of 5 folding rate in the present embodiment.
In embodiments of the present invention, if the IP address being designated subscriber equipment of user, then PCRF according to the corresponding relation between the IP address of subscriber equipment of preservation (before subscriber equipment uses micro-communication service) in advance and the communicating number of user, can obtain the communicating number of user corresponding to IP address.
Step 302, PCRF are regular to patronage service generation PCC according to the mark of above-mentioned sponsored messages and user, carry the rate group mark of described patronage business and authorize traffic carrying capacity in described PCC rule.
Wherein, rate group mark is corresponding with the business data flow of patronage business.In addition, rate group mark is also for notifying which kind of rate is charge system use carry out charging to user.In the present embodiment, PCRF is the RG parameter that micro-communication service generates be 1234, PCRF be the mandate traffic carrying capacity that user distributes according to the patronage traffic carrying capacity in sponsored messages is 1M.
Step 303, PCRF send the PCC rule generated to PCEF.
PCRF sends the PCC rule generated to PCEF, so that PCEF carries out strategy according to micro-communication service of this PCC rule to user's use and charging controls.Above-mentioned PCC rule can be passed through authentication request (Re-Auth-Request, RAR) message again and carry, and is issued by Gx interface, carries the mandate traffic carrying capacity that PCRF issues in this message.
Wherein, the parameter of carrying in RAR message is as follows:
Charging-Rule-Install
Charging-Rule-Definition
Charging-Rule-Name:rule_tencent_wechat
Flow-Information:permit out ip from any to 12.34.56.7880
Rating-Group:1234
Monitoring-Key:mk-tencent-wechat
Usage-Monitoring-Information
Monitoring-Key:mk-tencent-wechat
Granted-Service-Unit:1Mb
Usage-Monitoring-Level:PCC_RULE_LEVEL
Wherein, Granted-Service-Unit field identification PCRF traffic carrying capacity 1Mb that PCEF is authorized.
Corresponding, PCEF, after receiving PCC rule, installs PCC rule, then returns Authentication Response (Re-Auth-Answer, RAA) message to PCRF again.
Step 304, PCRF send a request message to Online Charging System, carry the mark of described sponsored messages and described user in request message.
In the present embodiment, except carrying the mark of the user of sponsored messages and use sponsored messages in this request message, following parameter can also be carried:
Session-Id:Session-Id value
Origin-Host: local terminal host name
Origin-Realm: local terminal domain name
Destination-Realm: object domain name
Auth-Application-Id: applicable value
Destination-Host: destination host name
Origin-State-Id: source state value
Subscription-Id: the mark of user
[Proxy-Info]: Proxy information
[Route-Record]: route record
[AVP]
In the present embodiment, the request message that PCRF sends can be expenditure limit request (SpendingLimit Request, SLR) message.Concrete, when not setting up Sy session between PCRF and OCS, PCRF then sends SLR initial message by Sy interface to described OCS, sets up Sy session.If establish Sy session between PCRF and OCS, then PCRF sends SLR updating message by Sy interface to described OCS; Wherein, the mark of sponsored messages and described user is all carried in SLR updating message and SLR initial message.
Optionally, rate group mark is also carried in the sponsored messages carried in SLR updating message and SLR initial message: Rating-Group:1234.
It should be noted that, step 304 in embodiments of the present invention can perform between step 301-302, and now PCRF sends SLR message by Sy interface to Online Charging System, carries described sponsored messages in SLR message, and can not carry rate group mark.
Above the charging method of PCRF side is described, describes the charging flow of OCS to patronage business below again.
OCS receives the request message that PCRF sends, and carries the sponsored messages of described patronage business and the mark of described user in described request message.In this enforcement, the request message that OCS receives can be SLR message.If establish Sy session between PCRF and OCS, then OCS is by the SLR updating message of Sy interface PCRF transmission, if do not set up Sy session between PCRF and OCS, then OCS is by the SLR initial message of Sy interface PCRF transmission.The sponsored messages of patronage business and the mark of described user is carried in SLR updating message or SLR initial message.
Step 305, OCS carry out mandate charging according to the mark of described sponsored message and described user to user.
In embodiments of the present invention, OCS can after receiving SLR message, and the mark according to the sponsored messages carried in SLR message and described user uses patronage business to carry out charging and mandate to user.In addition, OCS also sends expenditure restriction response (Spending LimitAnswer, SLA) message according to the SLR message received to PCRF, and SLA message is the response message of SLR message, wherein carries the parameter that expenditure restriction report is relevant.
As shown in the figure, OCS carries out authorizing the participation device of charging to be mainly PCEF equipment and OCS, in step 305 OCS carry out authorizing and charging idiographic flow below further describe.
In embodiments of the present invention, carry out authorizing the detailed process of charging to comprise to subscriber equipment according to described sponsored message in above-mentioned steps 305:
Step 3051, OCS receive the CCR message that PCEF sends.
Concrete, PCEF applies for pre-allowance for patronage business to OCS.Wherein the first credit control request (Credit Control Request, CCR) message is specially CCR updating message, carries the pre-allowance of application, the mark of user and described rate group mark in this updating message.
Wherein, the parameter of carrying in this CCR updating message can be as follows:
Subscription-Id:460030912121001
Rating-Group:1234
Requested-Service-Unit:1Mb。Wherein, Requested-Service-Unit is the pre-allowance field of application.Subscription-Id is the identification field of user, is IMSI in embodiments of the present invention.
Step 3052, OCS return a CCA message of carrying and authorizing traffic carrying capacity to PCEF.
According to the mark of rate group mark and user, OCS judges that this business is patronage business, rate corresponding to patronage traffic carrying capacity, rate group mark is used to authorize and withholding fee this user, return the first diameter credit control response (Credit Control Answer, CCA) message is to PCEF, first diameter credit control response message is CCA updating message in the present embodiment, wherein carry rate group mark, user mark and authorize traffic carrying capacity.Before returning CCA updating message, OCS carries out withholding fee to user, such as withholding fee 0.2 yuan according to the discount information (5 folding) of authorizing in rate corresponding to traffic carrying capacity (2Mb), rate group (such as Mb/0.2 unit) and patronage traffic carrying capacity.
Wherein, OCS this locality stores the corresponding relation between rate group mark and concrete rate, in the present embodiment, the mandate traffic carrying capacity that this rate can be returned by CCA updating message according to OCS and PCRF above can be equal by the mandate traffic carrying capacity that RAR message returns.The parameter of carrying in the CCA updating message that OCS issues can be:
Subscription-Id:460030912121001
Rating-Group:1234
Granted-Service-Unit:2Mb。Wherein, Granted-Service-Unit is for authorizing traffic carrying capacity field.
Step 3053, PCEF send the 2nd CCR message to OCS after the warrant quantity that OCS issues is finished using.
Wherein, PCEF, after traffic carrying capacity of obtaining the authorization, allows subscriber equipment to use patronage business.Whether PCEF monitors the mandate flow that issues of OCS and is finished, and when monitoring mandate flow that OCS issues and being finished, send the 2nd CCR message to OCS and carry out reporting service use amount, the 2nd CCR message is CCR updating message in the present embodiment.In embodiments of the present invention, business use amount, the mark of user and rate group mark is carried in CCR updating message.The parameter of carrying in this CCR updating message can comprise:
Subscription-Id:460030912121001
Rating-Group:1234
Used-Service-Unit:2Mb。Wherein, Used-Service-Unit is for using traffic carrying capacity field.
Step 3054, OCS deduct fees according to the patronage traffic carrying capacity in described business use amount and described sponsored messages to described patronage business and again authorize.
OCS receives the CCR updating message that PCEF sends, business use amount is carried in described updating message, the mark of user and described rate group mark, according to the mark of rate group mark and user, OCS judges that this business belongs to patronage business, determine the patronage traffic carrying capacity of current residual, then according to described business use amount, the rate that rate group mark is corresponding and patronage traffic carrying capacity carry out charging (such as confirming to deduct fees 0.2 yuan) to subscriber equipment, find that subscriber equipment also exists unspent mandate traffic carrying capacity (18M), then new mandate traffic carrying capacity (2Mb) is determined to subscriber equipment, and again carry out withholding fee (0.2 yuan).
Step 3055, OCS return the CCA updating message of carrying warrant quantity, rate group mark to PCEF.
Wherein, the implementation of step 3055 is identical with above-mentioned steps 3052.In embodiments of the present invention, if user continues to use micro-communication service, then PCEF is to OCS reporting service use amount and OCS carries out charging to user, the step (i.e. step 3052-3055) of mandate can multiple exercise.
In embodiments of the present invention, OCS side is while execution online charging, PCRF and PCEF also performs the policy control flow process of patronage business, and following steps 306-308 is the policy control flow process of PCRF to patronage business.
Step 306, PCEF send reporting message to PCRF.
Wherein, whether PCEF monitors the warrant quantity that issues of PCRF and is finished, and when monitoring warrant quantity that PCRF issues and being finished, sends reporting message carry out reporting service use amount to PCRF.In embodiments of the present invention, reporting message can be credit control request (Credit Control Request, CCR) updating message, wherein carries business use amount.The CCR-Update message that PCEF is sent by Gx interface can comprise following parameter:
Usage-Monitoring-Information
Monitoring-Key:mk-tencent-wechat
Used-Service-Unit:1Mb
Usage-Monitoring-Level:PCC_RULE_LEVEL
Wherein, Monitoring-Key field is for identifying the business of this monitoring.Used-Service-Unit is for using traffic carrying capacity field.
Step 307, PCRF are according to the business use amount of the reporting information statistics patronage business of PCEF.
Wherein, multiple reporting messages that PCRF can support business corresponding according to the identification of Monitoring-Key field, then the business use amount in reporting message is added up, under determining to support traffic carrying capacity also to there is remaining situation (current residual 19M), send new mandate traffic carrying capacity by CCA-Update message to PCEF.
The CCA-Update message that PCRF is sent by Gx interface can comprise following parameter:
Usage-Monitoring-Information
Monitoring-Key:mk-tencent-wechat
Granted-Service-Unit:1Mb
Usage-Monitoring-Level:PCC_RULE_LEVEL
Wherein, Monitoring-Key field is for identifying the business of this monitoring.Granted-Service-Unit is for authorizing traffic carrying capacity field.
In embodiments of the present invention, if user continues use business, then PCEF can multiple exercise to the step (i.e. step 306-307) of PCRF transmission reporting message and PCRF statistical service use amount.
In addition, in the present embodiment, PCEF sends the step (i.e. step 306-307) of reporting message and PCRF statistical service use amount to PCRF and PCEF carries out charging to OCS reporting service use amount and OCS to user, the step (i.e. step 3051-3055) of mandate can make to perform simultaneously.It should be noted that, it is to monitor and add up the service condition of supporting traffic carrying capacity that PCRF sends the step of authorizing traffic carrying capacity and PCEF to return business use amount to PCRF to PCEF.PCEF carries out traffic carrying capacity mandate according to the mandate traffic carrying capacity issued of OCS to user.
Step 308, PCRF equal the patronage traffic carrying capacity in described sponsored messages during in described business use amount, send the RAR message of carrying described business use amount to described AF.
If the business use amount that PCRF adds up equals to support traffic carrying capacity, then illustrate that the patronage traffic carrying capacity of patronage business has been finished using, PCRF sends the RAR message of carrying described business use amount to AF, and notice AF patronage traffic carrying capacity is finished using.
The parameter of carrying in RAR message can comprise:
Specific-Action:USAGE_REPORT
Sponsored-Connectivity-Data
Sponsor-Identity:tencent
Application-Service-Provider-Identity:Wechat
Used-Service-Unit:20Mb
Used-Service-Unit is for using traffic carrying capacity field.
Optionally, PCRF is when cumulative business use amount equals the patronage traffic carrying capacity in sponsored messages, also send charging request message to off-line accounting system OFCS, described sponsored messages and described business use amount is carried in described charging request message, so that OFCS carries out charging to patronage traffic carrying capacity, namely charging is carried out to sponsor.
In the present embodiment, AF finds that the patronage traffic carrying capacity of patronage business is finished using, patronage traffic carrying capacity (patronage duration, flow or the amount of money) can be upgraded, AF sends AAR message by Rx interface to PCRF again, the sponsored messages of renewal is carried in described AAR message, the patronage traffic carrying capacity that such as Granted-Service-Unit field is carried is 30Mb, 50%discount.
PCRF, after receiving AAR message, re-executes above-mentioned steps 304, and notice OCS upgrades sponsored messages, and OCS carries out charging and mandate to user, until subscriber equipment rolls off the production line according to the sponsored messages upgraded.
In the charging method of the patronage business provided in the embodiment of the present invention, when AF needs to upgrade patronage traffic carrying capacity, the authority checking request message carrying the sponsored messages of renewal can be sent to PCRF, PCRF is after receiving this authority checking request message, sent the SLR message of carrying described sponsored messages to OCS by Sy interface, and then OCS carries out charging and mandate according to the patronage business of sponsored messages to user upgraded, the embodiment of the present invention can make OCS obtain the patronage traffic carrying capacity upgraded, patronage traffic carrying capacity according to upgrading is authorized and charging subscriber equipment, and then subscriber equipment uses the patronage traffic carrying capacity upgraded, flexibility is better.
Above the charging method that the embodiment of the present invention provides is described in detail, has provided the equipment corresponding with the inventive method embodiment below again.
The schematic diagram for the strategy and charging rule functions PCRF equipment of supporting business that the embodiment of the present invention four provides see Fig. 5, Fig. 5.
The PCRF equipment that the embodiment of the present invention four provides mainly comprises: notice receiver module 410 and message transmission module 420, wherein:
The notification message that notice receiver module 410 sends for receiving application function AF equipment, the mark of the sponsored messages carrying described patronage business in described notification message and the user using described patronage business;
Message transmission module 420, for sending a request message to Online Charging System OCS, carries the mark of described sponsored messages and described user in described request message.
The PCRF equipment that the embodiment of the present invention provides can be used in the embodiment of the method one, three of aforementioned correspondence, and PCRF equipment execution charging process and beneficial effect, see above-described embodiment, do not repeat them here.
In the PCRF equipment that the embodiment of the present invention provides, message transmission module 420 sends a request message to Online Charging System and comprises:
Described message transmission module 420 sends consumption limit request SLR message by Sy interface to OCS, carries the mark of described sponsored messages and described user in described SLR message.
Wherein, sponsored messages can comprise sponsor's mark, support the mark of business and patronage traffic carrying capacity, uses the mark of the user of described patronage business can comprise the communicating number of user, the IP address etc. of subscriber equipment.
Continue see Fig. 5, the PCRF equipment that the embodiment of the present invention provides can also comprise:
First control module 430, for identifying described patronage service generation rate group according to described sponsored messages;
Described message transmission module 420 is also for sending described rate group mark to PCEF, so that PCEF asks to carry this rate group mark during charging to OCS follow-up, and then OCS carries out charging according to this rate group mark to user.
Optionally, described first control module 430 is also for adding up the business use amount of patronage business according to strategy and the reporting information of charge execution function PCEF equipment;
Described message transmission module 420 is also for equaling the patronage traffic carrying capacity in described sponsored messages during in described business use amount, send the re-authentication requests RAR message of carrying described business use amount to described AF.
Optionally, message transmission module 420 is also for equaling the patronage traffic carrying capacity in described sponsored messages during in described business use amount, charging request message is sent to off-line accounting system OFCS, described sponsored messages and described business use amount is carried, so that OFCS carries out offline charging to the patronage traffic carrying capacity that sponsor provides in described charging request message.
In the PCRF equipment that the embodiment of the present invention provides, notice receiver module 410 is after the notification message receiving the transmission of application function AF equipment, message transmission module 420 sends the request message of the mark of the user carrying sponsored messages and use patronage business to OCS, and then make OCS obtain the mark of the user of sponsored messages and use patronage business, then according to the mark of sponsored messages and user, online charging is carried out to user.Compared with prior art, the PCRF equipment that the embodiment of the present invention provides can be adapted to need the prepaid account in conjunction with user to carry out the scene of real time billing, such as traffic carrying capacity is supported to be the situation that tariff discount information needs to carry out user online charging, better adaptability.
See the schematic diagram that Fig. 6, Fig. 6 are the Online Charging System OCS for supporting business that the embodiment of the present invention five provides.
The embodiment of the present invention provide for supporting the Online Charging System of business mainly to comprise:
Request receiving module 510, for receiving the request message that strategy and charging rule functions PCRF equipment send, the mark of the sponsored messages carrying described patronage business in described request message and the user using described patronage business;
Authorize accounting module 520, carry out mandate charging for the patronage business use of mark to described user according to described sponsored message and described user.
The OCS that the embodiment of the present invention provides can be used in the embodiment of the method two, three of aforementioned correspondence, and OCS execution charging process and beneficial effect, see above-described embodiment, do not repeat them here.In addition, the OCS in the embodiment of the present invention not only may be used for carrying out charging to patronage business, can also carry out online charging to expense patronage business.
Continue see Fig. 6, the mandate accounting module 520 in the OCS that the embodiment of the present invention provides can also comprise:
Message reception units 521, for receiving the first credit control request CCR message that strategy sends with charge execution function PCEF equipment, carrying the pre-allowance of application of patronage business in described first credit control request information, rate group identifies and the mark of described user;
Authorize Charging Detail Record unit 522, for the sponsored messages of the mark correspondence according to rate corresponding to the pre-allowance of described application, described rate group mark and described user to described user's distribution service warrant quantity and withholding fee;
Message sending unit 523, for returning the first diameter credit control response CCA message to described PCEF, carries the mark of described service authorization amount and user in described first diameter credit control response message.
Optionally, the request receiving module 510 in embodiment of the present invention Online Charging System receives the tactful request message sent with charging rule functions PCRF equipment and comprises:
Described request receiver module 510 receives the consumption limit request SLR message that PCRF equipment is sent by Sy interface, the mark of the sponsored messages carrying described patronage business in described SLR message and the user using described patronage business.
Request receiving module 510 in the embodiment of the present invention has reused the mark that existing SLR message sends sponsored messages and user, saves overhead, reduces upgrade cost.
Optionally, message reception units 521 in embodiment of the present invention Online Charging System also for receiving the second credit control request information that strategy and charge execution function PCEF equipment send, carries the business use amount of patronage business in described second credit control request information, described rate group identifies and the mark of described user;
Described mandate Charging Detail Record unit 522 is also deducted fees to described user's distribution service warrant quantity for the sponsored messages of the mark correspondence according to rate corresponding to described business use amount, described rate group mark and described user;
Described message sending unit 523, also for returning the second diameter credit control response message to described PCEF equipment, carries the mark of described service authorization amount and user in described second diameter credit control response message.
In the OCS that the embodiment of the present invention provides, the request message that request receiving module 510 passes through to receive PCRF transmission obtains sponsored messages and the mark of the user of use patronage business, then carries out online charging according to the mark of sponsored messages and user to user by mandate accounting module 520.Compared with prior art, the OCS that the embodiment of the present invention provides can be adapted to need the prepaid account in conjunction with user to carry out the scene of real time billing, such as traffic carrying capacity is supported to be the situation that tariff discount information needs to carry out user online charging, relative to prior art better adaptability.
Schematic diagram patronage business being carried out to the system of charging that the embodiment of the present invention six provides see Fig. 7, Fig. 7.
As shown in the figure, what the embodiment of the present invention provided comprises the system that patronage business carries out charging:
PCRF equipment 610 and Online Charging System 620, wherein, can be connected by Gx interface between PCRF equipment 610 and Online Charging System 620, also can be connected by other self-defining interfaces.PCRF equipment 610 is identical with the PCRF equipment provided in above-described embodiment four, and details, see the description of above-described embodiment four, do not repeat them here.OCS620 is identical with the OCS provided in above-described embodiment five, and details, see the description of above-described embodiment five, do not repeat them here.What the embodiment of the present invention provided carries out PCRF equipment in system protection above-described embodiment four of charging and embodiment five and OCS beneficial effect separately to patronage business.
The schematic diagram for the strategy and charging rule functions PCRF equipment of supporting business that the embodiment of the present invention seven provides see Fig. 8, Fig. 8.
As shown in the figure, the PCRF equipment that the embodiment of the present invention provides comprises: first processor 701, first memory 702, first bus 703, first input equipment 704, first output equipment 705 and first network interface 706.
Wherein, described first memory 702 is for storing computer executed instructions, described first processor 701 is connected by described first bus 703 with described first memory 702, when described PCRF equipment runs, described first processor 701 performs described computer executed instructions, performs following method to make described PCRF:
Receive the notification message that application function AF equipment sends, the mark of the sponsored messages carrying described patronage business in described notification message and the user using described patronage business;
Send a request message to Online Charging System OCS, in described request message, carry the mark of described sponsored messages and described user.
Wherein, detailed process, the beneficial effect of PCRF execution said method are all identical with beneficial effect with the implementation in above-described embodiment one, three, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment one, three describe.
Described first input equipment 704 may be used for PCRF equipment input command and information, first input equipment 704, as keyboard or sensing equipment, as mouse, trace ball, touch pad, microphone, joystick, game mat, justifies benzvalene form satellite tv antenna, scanner or similar devices.These input equipments can be connected to first processor 701 by the first bus 703.
First output equipment 705 may be used for PCRF equipment output information, in addition to the monitor, first output equipment 705 can also export for other are peripheral and establish respectively, and as loud speaker and/or printing device, these output equipments also can be connected to first processor 701 by the first bus 703.
PCRF equipment can be connected in network by first network interface 706, such as, be connected to local area network (LAN) (Local Area Network, LAN).Under networked environment, the computer executed instructions stored in first memory 702 can be stored in remote storage device, and is not limited to store in PCRF equipment this locality.
First memory 702 can comprise the computer storage media with volatibility and/or nonvolatile memory form, as read-only memory and/or random access memory.First memory 702 can also comprise operating system, application program, other program modules and routine data.
See the schematic diagram that Fig. 9, Fig. 9 are the Online Charging Systems for supporting business that the embodiment of the present invention eight provides.
As shown in the figure, the Online Charging System OCS that the embodiment of the present invention provides comprises: the second processor 801, second memory 802, second bus 803, second input equipment 804, second output equipment 805 and second network interface 806.
Wherein, described second memory 802 is for storing computer executed instructions, described second processor 801 is connected by described second bus 803 with described second memory 802, when described OCS runs, described second processor 801 performs described computer executed instructions, performs following method to make described OCS:
Receive the request message that strategy sends with charging rule functions PCRF equipment, the mark of the sponsored messages carrying described patronage business in described request message and the user using described patronage business;
Mandate charging is carried out in the patronage business use of mark to described user according to described sponsored message and described user.
Wherein, detailed process, the beneficial effect of OCS execution said method are all identical with beneficial effect with the implementation in above-described embodiment two, three, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment two, three describe.In addition, the OCS in the embodiment of the present invention not only may be used for carrying out charging to patronage business, can also carry out online charging to expense patronage business.
Described second input equipment 804 may be used for OCS input command and information, second input equipment 804, as keyboard or sensing equipment, as mouse, trace ball, touch pad, microphone, joystick, game mat, justifies benzvalene form satellite tv antenna, scanner or similar devices.These input equipments can be connected to the second processor 801 by the second bus 803.
Second output equipment 805 may be used for OCS output information, in addition to the monitor, second output equipment 805 can also export for other are peripheral and establish respectively, and as loud speaker and/or printing device, these output equipments also can be connected to the second processor 801 by the second bus 803.
OCS can be connected in network by second network interface 806, such as, be connected to local area network (LAN) (LocalArea Network, LAN).Under networked environment, the computer executed instructions stored in second memory 802 can be stored in remote storage device, and is not limited to store in OCS this locality.
Second memory 802 can comprise the computer storage media with volatibility and/or nonvolatile memory form, as read-only memory and/or random access memory.Second memory 802 can also comprise operating system, application program, other program modules and routine data.
It should be noted that, the contents such as the information interaction in the said equipment between each unit, module, implementation, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Storage medium wherein can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random asccess memory (Random Access Memory, RAM) etc.
Above institute's charging method of the present invention and relevant device are described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, this description should not be construed as limitation of the present invention.