Summary of the invention
The present invention provides a kind of couple of prepaid user method, system and correlation that online charging is carried out using patronage business
Equipment.
In a first aspect, the embodiment of the present invention provides a kind of charging method of patronage business comprising in strategy and charging rule
Then following steps are executed in function PCRF equipment:
The notification message that application function AF equipment is sent is received, the patronage of the patronage business is carried in the notification message
The mark of information and the user using the patronage business;
Request message is sent to online charging system OCS, carries the sponsored messages and the use in the request message
The mark at family.
With reference to first aspect, in the first possible implementation, described to send request message to online charging system
Include:
Consumption limitation request SLR message is sent to OCS by Sy interface, carries the sponsored messages in the SLR message
With the mark of the user.
The possible implementation of with reference to first aspect the first, it is in the second possible implementation, described to pass through
Sy interface sends SLR message to OCS
When establishing Sy session between PCRF and OCS, then SLR update message is sent to the OCS by Sy interface;
When not setting up Sy session between PCRF and OCS, then SLR initial message is sent to the OCS by Sy interface.
With reference to first aspect, the possible implementation of the first of first aspect, first aspect second of possible reality
Existing mode, in the third possible implementation, the method also includes:
The patronage service generation rate group is identified according to the sponsored messages;
The rate group mark is sent to PCEF.
With reference to first aspect, the possible implementation of the first of first aspect, first aspect second of possible reality
The third possible implementation of existing mode, first aspect, in the fourth possible implementation, the method is also wrapped
It includes:
According to the business usage amount for reporting Information Statistics patronage business of strategy and charge execution function PCEF equipment;
When the business usage amount is equal to the patronage portfolio in the sponsored messages, Xiang Suoshu AF equipment, which is sent, to be carried
The re-authentication requests RAR message of the business usage amount.
Second of possible implementation of the possible implementation of with reference to first aspect the first, first aspect,
In 5th kind of possible implementation, the sponsored messages, institute are carried in the newly-increased sponsorship data information field of the SLR message
State the mark and patronage portfolio that sponsored messages include patronage business.
Second aspect, the embodiment of the present invention provide a kind of charging method of patronage business comprising in online charging system
Following steps are executed in OCS:
The request message that strategy is sent with charging rule functions PCRF equipment is received, is praised described in carrying in the request message
Help the sponsored messages of business and the mark of the user using the patronage business;
Authorization charging is carried out to the patronage business use of the user according to the sponsored message and the mark of the user.
In conjunction with second aspect, in the first possible implementation, the mark according to sponsored message and the user
Know and includes: using authorization charging is carried out to the patronage business of the user
The first credit control request CCR message that reception strategy is sent with charge execution function PCEF equipment, described first
The pre- allowance of application of patronage business, the mark of rate group mark and the user are carried in credit control request information;
The mark for identifying corresponding rate and the user according to the pre- allowance of the application, the rate group is corresponding to praise
Supplementary information distributes business warrant quantity and withholding fee to the user;
The first diameter credit control is returned to the PCEF and responds CCA message, is carried in the first diameter credit control response message
The mark of the service authorization amount and user.
In conjunction with the first possible implementation, in the second possible implementation of second aspect, second aspect,
The reception strategy and the request message of charging rule functions PCRF equipment transmission include:
The consumption limitation request SLR message that PCRF equipment is sent by Sy interface is received, in the SLR message described in carrying
The mark of the sponsored messages of patronage business and the user using the patronage business.
In conjunction with second of possible implementation of second aspect, in the third possible implementation, the reception
The SLR message that PCRF equipment is sent by Sy interface includes:
When establishing Sy session between PCRF equipment and OCS, then more by the SLR of Sy interface PCRF equipment transmission
New information;
When not setting up Sy session between PCRF equipment and OCS, then by the beginning of the SLR of Sy interface PCRF equipment transmission
Beginningization message.
In conjunction with the first possible implementation of second aspect, second of possible implementation of second aspect,
The third possible implementation of two aspects, it is in the fourth possible implementation, described according to sponsored message and described
The mark of user carries out authorization charging to the patronage business use of the user further include:
Receive the second credit control request information that strategy is sent with charge execution function PCEF equipment, second credit
Control the mark of the business usage amount that patronage business is carried in request message, the rate group mark and the user;
The mark for identifying corresponding rate and the user according to the business usage amount, the rate group is corresponding to praise
Supplementary information distributes business warrant quantity to the user and deducts fees;
The second diameter credit control response message is returned to the PCEF equipment, is carried in the second diameter credit control response message
The mark of the service authorization amount and user.
The third aspect, the embodiment of the present invention provide a kind of for supporting the strategy of business to set with charging rule functions PCRF
It is standby comprising:
It notifies receiving module, for receiving the notification message of application function AF equipment transmission, is carried in the notification message
The mark of the sponsored messages of the patronage business and the user using the patronage business;
Message transmission module, for sending request message to online charging system OCS, in the request message described in carrying
The mark of sponsored messages and the user.
In conjunction with the third aspect, in the first possible implementation, the message transmission module is to online charging system
Sending request message includes:
The message transmission module, which is sent by Sy interface to OCS, consumes limitation request SLR message, in the SLR message
Carry the mark of the sponsored messages and the user.
In conjunction with the first possible implementation of the third aspect, the third aspect, in the second possible implementation
The PCRF equipment further include:
First control module, for being identified according to the sponsored messages to the patronage service generation rate group;
The message transmission module is also used to send the rate group mark to PCEF.
In conjunction with the first possible implementation of the third aspect, the third aspect, second of possible reality of the third aspect
Existing mode, in the third possible implementation, first control module in the PCRF equipment is also used to basis
The business usage amount for reporting Information Statistics patronage business of strategy and charge execution function PCEF equipment;
The message transmission module is also used to be equal to the patronage portfolio in the sponsored messages in the business usage amount
When, Xiang Suoshu AF sends the re-authentication requests RAR message for carrying the business usage amount.
Fourth aspect, the embodiment of the present invention provide a kind of for supporting the online charging system of business comprising:
Request receiving module, the request message sent for receiving strategy with charging rule functions PCRF equipment are described to ask
Seek the mark of the sponsored messages that the patronage business is carried in message and the user using the patronage business;
Accounting module is authorized, for the patronage business according to the sponsored message and the mark of the user to the user
Using carrying out authorization charging.
In conjunction with fourth aspect, in the first possible implementation, the authorization in the online charging system
Accounting module includes:
Message reception units, the first credit control request sent for receiving strategy with charge execution function PCEF equipment
CCR message carries the pre- allowance of application, rate group mark and the use of patronage business in first credit control request information
The mark at family;
Charging Detail Record unit is authorized, for identifying corresponding rate and described according to the pre- allowance of the application, the rate group
The corresponding sponsored messages of the mark of user distribute business warrant quantity and withholding fee to the user;
Message sending unit responds CCA message, the first credit control for returning to the first diameter credit control to the PCEF
The mark of the service authorization amount and user is carried in response message processed.
In conjunction with the first possible implementation, in the second possible implementation of fourth aspect, fourth aspect,
The request receiving module in the online charging system receives strategy and asks with what charging rule functions PCRF equipment was sent
The message is asked to include:
The request receiving module receives the consumption limitation request SLR message that PCRF equipment is sent by Sy interface, described
The sponsored messages of the patronage business are carried in SLR message.
In conjunction with the first possible implementation, in the third possible implementation of fourth aspect, it is described
Message reception units in line charge system are also used to receive the second credit that strategy is sent with charge execution function PCEF equipment
Request message is controlled, the business usage amount of carrying patronage business, the rate group mark in second credit control request information
Know the mark with the user;
The authorization Charging Detail Record unit be also used to be identified according to the business usage amount, the rate group corresponding rate and
The corresponding sponsored messages of the mark of the user distribute business warrant quantity to the user and deduct fees;
The message sending unit be also used to the PCEF equipment return the second diameter credit control response message, described second
The mark of the service authorization amount and user is carried in diameter credit control response message.
5th aspect, the embodiment of the present invention provide a kind of system for carrying out charging to patronage business comprising such as third party
PCRF equipment and the online charging system as described in fourth aspect described in face.
In the charging method of patronage business provided in an embodiment of the present invention, PCRF equipment is set receiving application function AF
After the notification message that preparation is sent, the request message for carrying sponsored messages is sent to OCS, so that OCS is according in request message
Sponsored messages to user carry out online charging.Compared with prior art, the embodiment of the present invention is adapted to need to combine to use
The prepaid account at family carries out the scene of real time billing, such as supports the expense of flow first to deduct and postpone return, non-sponsored industry again
Business consumption predetermined dollar value provides patronage business again, patronage portfolio is tariff discount information and needs the feelings to user's progress charging
Condition, better adaptability.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The present invention provides the charging methods and relevant device of a kind of patronage business.Charged party provided in an embodiment of the present invention
Method includes: the notification message that strategy receives the transmission of application function AF equipment with charging rule functions PCRF equipment, and the notice disappears
The sponsored messages of the patronage business and the mark of the user using the patronage business are carried in breath;To online charging system
OCS sends request message, and the mark of the sponsored messages and the user is carried in the request message.Corresponding, OCS is held side
Capable charging method includes: that OCS receives the request message that strategy is sent with charging rule functions PCRF equipment, the request message
The mark of the middle sponsored messages for carrying the patronage business and the user using the patronage business;According to the sponsored message and
The mark of the user carries out authorization charging to the user.
In the charging method of patronage business provided in an embodiment of the present invention, AF is determining that needing to configure or update patronage believes
To PCRF equipment dispatch order message when breath, PCRF equipment after the notification message for receiving the transmission of application function AF equipment, to
OCS sends the request message for carrying sponsored messages, so that OCS carries out user according to the sponsored messages in request message
Line charging.Compared with prior art, the embodiment of the present invention is adapted to that the prepaid account in conjunction with user is needed to carry out in real time
The scene of charging, such as patronage portfolio need the case where carrying out online charging to user, adaptability for tariff discount information
More preferably.
For a better understanding of the technical solution of the present invention, being carried out with reference to the accompanying drawing to embodiment provided by the invention detailed
Carefully describe.
It is the structural schematic diagram of the system suitable for charging method of the embodiment of the present invention referring to Fig. 1, Fig. 1.
Wherein, system include "Policy and Charging Rules Function (Policy and Charging Rules Function,
PCRF) equipment, application function (Application Function) equipment, online charging system (Online Charging
System, OCS), off-line accounting system (Offline Charging System, OCS), strategy and charge execution function
(Policy and Charging Enforcement Function, PCEF) equipment, signing specification library (Subscription
Profile Repository, SPR), flow detection function (Traffic Detection Function, TDF) equipment etc..Its
In, PCEF equipment is usually located at gateway (gateway), in, gateway be specifically as follows Gateway GPRS Support Node (GGSN,
Gateway GPRS support node).In the present embodiment, PCEF equipment is referred to as PCEF, and PCRF equipment is referred to as
PCRF, application function equipment AF are referred to as AF.
Limitation, carrier policy, user contracting data and the user that PCRF is used to access network according to user equipment set
Standby current ongoing business information etc. determines the strategy to be executed, and the policy distribution is executed to strategy and charging
Function device PCEF executes these strategies by PCEF.Whether strategy includes the detected rule of business data flow, is gated, industry
The corresponding quality of service Qos of data flow of being engaged in and charging regulation based on stream are (such as based on time, flow, event progress charging
Deng).
PCEF is used for the strategy issued by executing PCRF, and realization is to the detection of business data flow, the Qos of business data flow
Guarantee, the flow processing in user face and session management of triggering control plane etc..
User contracting data database SPR is used to provide user contracting data to PCRF.
Application function equipment AF is used to provide the session information of application layer to PCRF dynamic, and PCRF is raw according to information dynamic
At or the corresponding strategy of modification.
Off-line accounting system OFCS and online charging system OCS is mainly used for offline and online charging.
Interface between above each function device is described as follows:
Gx interface: the interface connects PCEF and PCRF, for realizing following functions: establishment of connection, maintenance and termination;
PCEF is regular to PCRF request PCC;PCRF issues PCC rule to PCEF;The establishment model of negotiating bearer.
Gy interface: connection PCEF and OCS mainly transmits the relevant letter of online charging by diameter (diameter) agreement
Breath.
Sy interface: connection PCRF and OCS, OCS and PCRF can transmit user by Sy interface and pay relevant state letter
Breath.
Rx interface: the interface connects AF and PCRF, issues application layer relevant information for AF, which includes for identification
Bandwidth information needed for the IP filter of business data flow, application or media etc..
Sp interface: the interface connects SPR and PCRF, requests user signing contract information to SPR for PCRF.The signing information is used
In determining transport layer strategy.Gz interface is then mainly used for offline charging.
Referring to fig. 2, Fig. 2 is the flow chart for the patronage business charging method that the embodiment of the present invention one provides.
The charging method of patronage business provided in an embodiment of the present invention includes:
Step 101, PCRF receive the notification message that application function AF equipment is sent, and praise described in carrying in the notification message
Help the sponsored messages of business and the mark of the user using the patronage business.
In embodiments of the present invention, when user equipment begins to use patronage business, AF equipment sends notice to PCRF and disappears
It ceases, patronage business is carried in the notification message in the session information of application layer, wherein session information includes using the patronage industry
The identification information of the user of business and the sponsored messages for supporting business.
Wherein, the notification message that AF is sent by Rx interface to PCRF can request (Authorization for authority checking
Authentication Request, abbreviation AA-request or AAR) message, PCRF receive application function AF equipment pass through Rx
The AAR message that interface is sent carries the sponsored messages of the patronage business in the AAR message and using the patronage business
The mark of user.It should be pointed out that the notification message that AF is sent to PCRF is not limited to AAR message (based on diameter Diameter
The business information of agreement), it can also be other basic messaes based on diameter Diameter, or based on simple right
As the request message of access protocol (Simple Object Access Protocol, SOAP), the request message of SOAP is usually adopted
With extensible markup language (Extensible Markup Language, XML) format.
In the present embodiment, sponsored messages may include the mark and patronage portfolio of patronage business, optionally may be used also
To include sponsor's mark.The mark of patronage business is specifically as follows service identification (such as wechat business), can also be business
The mark (Tencent, provider of wechat business) of provider.Mark using the user of patronage business may include user's
Communicating number, IP address of user equipment etc..
Step 102, PCRF send request message to online charging system OCS, carry the patronage in the request message
The mark of information and user.
Specifically, PCRF, which can be sent by existing Sy interface to OCS, carries the sponsored messages and user that receive
The request message of mark, the request message can be expenditure limitation request (Spending Limit Request, SLR) message.
The sponsorship data information field increased newly in SLR message can carry the sponsored messages.
It should be noted that those skilled in the art can send request message, such as OCS to OCS with self defined interface
When built-in PCRF, the concrete type of request message is not limited, as long as wherein carrying the mark of sponsored messages and user.
In the charging method for the patronage business that the embodiment of the present invention one provides, PCRF equipment is receiving application function AF
After the notification message that equipment is sent, is sent to OCS and carry sponsored messages and disappeared using the request of the mark of the user of patronage business
Breath, so that OCS obtains the mark of sponsored messages and the user using patronage business, then according to sponsored messages and user
Mark carries out online charging to user.Compared with prior art, the embodiment of the invention provides a kind of users to patronage business
The method for carrying out online charging is adapted to the scene for needing to carry out real time billing in conjunction with the prepaid account of user, such as
Patronage portfolio needs the case where carrying out online charging to user, better adaptability for tariff discount information.
Further, charging method provided in an embodiment of the present invention further include:
Step 103, PCRF identify the patronage service generation rate group according to the sponsored messages.
Specifically, PCRF also according to the sponsored messages received to patronage service generation rate group (Rating-Group,
RG it) identifies, rate group mark is corresponding with the patronage business data flow of business.In addition, rate group mark is also used to notify charging system
System carries out charging to user using which kind of rate.
Step 104, PCRF send the rate group mark to PCEF.
Specifically, PCRF can send rate group mark to PCEF by Gx interface, in order to which PCEF is asked subsequent to OCS
Rate group mark is carried when asking charging, and then OCS is identified according to the rate group and carried out charging to user.
It should be noted that PCRF can also carry above-mentioned rate group mark in the request message for being sent to OCS, it is convenient for
Subsequent OCS is identified according to the rate group and is carried out charging to user.In addition, the OCS in the embodiment of the present invention can be not only used for pair
Patronage business carries out charging, can also carry out online charging to patronage business is taken.
It is the flow chart of patronage business charging method provided by Embodiment 2 of the present invention referring to Fig. 3, Fig. 3.
The charging method of patronage business provided by Embodiment 2 of the present invention mainly comprises the steps that
Step 201, OCS receive the request message that strategy is sent with charging rule functions PCRF, take in the request message
The mark of sponsored messages with the patronage business and the user using the patronage business.
Specifically, OCS receives the request message that PCRF is sent, OCS parses the request message and obtains the patronage business
The mark of sponsored messages and the user using the patronage business.Optionally, OCS can pass through existing Sy interface PCRF
The request message for carrying sponsored messages and the mark of user of transmission.If PCRF sends patronage letter by other customized interfaces
The mark of breath and user, then OCS supports the sponsored messages of business and the mark of user by the customized interface.
Step 202, OCS according to the sponsored message and the mark of the user to the patronage business use of the user into
Row authorization charging.
Specifically, OCS is carried out user using patronage business according to the mark of the sponsored messages and the user that receive
Online authorization and charging.
In the charging method of patronage business provided by Embodiment 2 of the present invention, OCS, which passes through, receives the request that PCRF is sent
Message obtains the mark of sponsored messages and the user using patronage business, then according to the mark of sponsored messages and user to user
Carry out online charging.Compared with prior art, exist the embodiment of the invention provides a kind of to the user's progress for using patronage business
The method of line charging is adapted to the scene for needing to carry out real time billing in conjunction with the prepaid account of user, such as patronage industry
Business amount needs the case where carrying out online charging to user, better adaptability for tariff discount information.
Referring to fig. 4, Fig. 4 is the flow chart for the patronage business charging method that the embodiment of the present invention three provides.
In embodiments of the present invention, AF detects that user begins to use patronage business, such as wechat (wechat) business, uses
Family starts the application program wechat provided on a user device using the service provider, then AF sends a notification message to PCRF,
Patronage service conversation information is carried in the notification message, is included the sponsored messages of patronage business in session information and is praised using described
Help the mark of the user of business.
Charging method provided in an embodiment of the present invention mainly comprises the steps that
Step 301, PCRF receive the authority checking request message that AF is sent, and carry institute in the authority checking request message
State the sponsored messages of patronage business and the mark of the user using the patronage business.
In embodiments of the present invention, PCRF can receive the authority checking request message that AF is sent by Rx interface.This disappears
The sponsored messages of patronage business and the mark of the user using the patronage business are carried in breath, sponsored messages include patronage trade mark
Know, the mark of patronage business, support the information such as portfolio.Wherein, sponsor's mark provides the businessman of patronage for identifying, patronage
The mark of specific business of the mark of business for identifying sponsor's patronage.Such as sponsor is Tencent (Tencent
Inc), being identified as wechat (wechat), searching room net (Soufun) or Amazon shopping (amazon) for business is supported, business is supported
Measuring information can be the patronage duration of call, patronage flow, rate discount information or sponsorship amount.
The mark of user may include the international mobile subscriber identity of the communicating number of user, user
The mark of (International Mobile Subscriber Identification Number, IMSI) or privately owned user
Know the mobile device world of (IMS Private Identification, IMPI), the IP address of user equipment or user equipment
Other code (International Mobile Equipment Identification Number, IMEI) etc..
In the present embodiment, user uses wechat by user equipment, and service provider is wechat, Tencent, sponsor
The patronage portfolio of offer is the 20Mb flow of 5 folding rate.If the patronage portfolio that sponsor provides is that sponsorship amount is corresponding
Flow (such as 10 yuan flow), then PCRF obtains the rate of user from SPR, which is converted to patronage flow.
Wherein, the major parameter carried in AAR message can be such that
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 user equipment in the present embodiment,
The type of Rx-Request-Type field identification Rx request, is in the present embodiment initialization requests INITIAL_REQUEST.
Sponsored-Connectivity-Data is sponsorship data information field comprising three subfields, Sponsor-
Identity is sponsor's field, and for identifying sponsor, Application-Service-Provider-Identity is to praise
The identification field for helping business, for identifying the specific business of patronage, which is specifically as follows the offer of Business Name or business
Quotient: Granted-Service-Unit is patronage portfolio field, for identifying patronage portfolio, is provided in the present embodiment for 5 foldings
The 20Mb flow taken.
In embodiments of the present invention, if the IP address for being identified as user equipment of user, PCRF can be protected according to preparatory
Deposit the IP address of user equipment (before user equipment is using wechat business) and the correspondence between the communicating number of user
Relationship obtains the communicating number of the corresponding user of IP address.
Step 302, PCRF are according to the mark of above-mentioned sponsored messages and user to patronage service generation PCC rule, the PCC
The rate group mark and authorization portfolio of the patronage business are carried in rule.
Wherein, rate group mark is corresponding with the patronage business data flow of business.In addition, rate group mark is also used to notify to count
Charge system carries out charging to user using which kind of rate.In the present embodiment, PCRF is that the RG parameter of wechat service generation is
1234, PCRF according to the patronage portfolio in sponsored messages be user distribution authorization portfolio be 1M.
Step 303, PCRF send the PCC rule generated to PCEF.
PCRF sends the PCC rule generated, the wechat industry used according to the PCC rule user in order to PCEF to PCEF
Business carries out strategy and charging control.Above-mentioned PCC rule can be taken by authentication request again (Re-Auth-Request, RAR) message
Band, and issued by Gx interface, the authorization portfolio that PCRF is issued is carried in the message.
Wherein, the parameter carried 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, the portfolio 1Mb that Granted-Service-Unit field identification PCRF authorizes PCEF.
Corresponding, for PCEF after receiving PCC rule, then installation PCC rule returns to Authentication Response (Re- again to PCRF
Auth-Answer, RAA) message.
Step 304, PCRF send request message to online charging system, carry the sponsored messages and institute in request message
State the mark of user.
In the present embodiment, the mark of the user in the request message in addition to carrying sponsored messages and using sponsored messages,
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: purpose 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 is sent can be expenditure limitation request (Spending Limit
Request, SLR) message.Specifically, when not setting up Sy session between PCRF and OCS, PCRF then passes through Sy interface to described
OCS sends SLR initial message, establishes Sy session.If establishing Sy session between PCRF and OCS, PCRF passes through Sy interface
SLR update message is sent to the OCS;Wherein, sponsored messages and institute are carried in SLR update message and SLR initial message
State the mark of user.
Optionally, rate group mark is also carried in the sponsored messages carried in SLR update message and SLR initial message:
Rating-Group:1234.
It should be noted that step 304 in embodiments of the present invention can execute between step 301-302, at this time
PCRF sends SLR message to online charging system by Sy interface, the sponsored messages is carried in SLR message, without carrying
Rate group mark.
The charging method of the side PCRF is described above, describes OCS again below to the charging flow of patronage business.
OCS receives the request message that PCRF is sent, carry in the request message patronage business sponsored messages and
The mark of the user.In this embodiment, the request message that OCS is received can be SLR message.If being built between PCRF and OCS
Sy session is stood, then OCS passes through the SLR update message that Sy interface PCRF is sent, if not setting up Sy meeting between PCRF and OCS
Words, then OCS passes through the SLR initial message that Sy interface PCRF is sent.It is taken in SLR update message or SLR initial message
The mark of sponsored messages and the user with patronage business.
Step 305, OCS carry out authorization charging to user according to the sponsored message and the mark of the user.
In embodiments of the present invention, OCS can be after receiving SLR message, according to the sponsored messages carried in SLR message
Charging and authorization are carried out using patronage business to user with the mark of the user.In addition, OCS disappears also according to the SLR received
It ceases to PCRF and sends expenditure limitation response (Spending Limit Answer, SLA) message, SLA message is answering for SLR message
Message is answered, wherein carrying expenditure limitation reports relevant parameter.
As shown, the participation equipment that OCS carries out authorization charging is mainly PCEF equipment and OCS, in step 305 OCS into
The detailed process of row authorization and charging is described further below.
In embodiments of the present invention, authorization charging is carried out to user equipment according to the sponsored message in above-mentioned steps 305
Detailed process may include:
Step 3051, OCS receive the first CCR message that PCEF is sent.
Specifically, PCEF is directed to patronage business to the pre- allowance of OCS application.Wherein the first credit control request (Credit
Control Request, CCR) message is specially CCR update message, the mark for applying for pre- allowance, user is carried in the update message
Know and the rate group identifies.
Wherein, the parameter carried in the CCR update message can be such that
Subscription-Id:460030912121001
Rating-Group:1234
Requested-Service-Unit:1Mb.Wherein, Requested-Service-Unit is to apply for pre- allowance word
Section.Subscription-Id is the identification field of user, is in embodiments of the present invention IMSI.
Step 3052, OCS return to the first CCA message for carrying authorization portfolio to PCEF.
OCS is identified according to rate group and the mark of user judges that the business for patronage business, using patronage portfolio, is taken
The corresponding rate of rate group mark is authorized to the user and withholding fee, returns to the first diameter credit control and responds (Credit
Control Answer, CCA) for message to PCEF, the first diameter credit control response message is CCA update message in the present embodiment,
Wherein carry rate group mark, the mark of user and authorization portfolio.Before returning to CCA update message, OCS is according to authorization industry
Discount information (5 folding) in business amount (2Mb), the corresponding rate of rate group (such as Mb/0.2 member) and patronage portfolio is to user
Carry out withholding fee, such as 0.2 yuan of withholding fee.
Wherein, OCS is locally stored the corresponding relationship between rate group mark and specific rate, should in the present embodiment
The PCRF of authorization portfolio and front that rate can be returned according to OCS by CCA update message is awarded by what RAR message returned
Weighing portfolio can be equal.The parameter carried in the CCA update message that OCS is issued can be with are as follows:
Subscription-Id:460030912121001
Rating-Group:1234
Granted-Service-Unit:2Mb.Wherein, Granted-Service-Unit is authorization portfolio field.
Step 3053, PCEF send the 2nd CCR message to OCS after the warrant quantity use that OCS is issued finishes.
Wherein, PCEF allows user equipment to use patronage business after obtaining authorization portfolio.PCEF is monitored under OCS
Whether the authorization flow of hair is finished, and when the authorization flow for monitoring that OCS is issued is finished, sends the 2nd CCR message to OCS to go up
Journalism is make sure dosage, and the 2nd CCR message is CCR update message in the present embodiment.In embodiments of the present invention, CCR update disappears
Business usage amount, the mark of user and rate group mark are carried in breath.The parameter carried in the CCR update message may include:
Subscription-Id:460030912121001
Rating-Group:1234
Used-Service-Unit:2Mb.Wherein, Used-Service-Unit is to use portfolio field.
Step 3054, OCS are according to the patronage portfolio in the business usage amount and the sponsored messages to the patronage
Business deduct fees and authorizes again.
OCS receives the CCR update message that PCEF is sent, and carries business usage amount, the mark of user in the update message
It is identified with the rate group, OCS judges that the business belongs to patronage business according to the mark of rate group mark and user, determines to work as
Preceding remaining patronage portfolio, then according to the business usage amount, rate group identify corresponding rate and patronage portfolio to
Family equipment carries out charging (such as confirmation deduct fees 0.2 yuan), discovery user equipment there is also unspent authorization portfolio (18M),
New authorization portfolio (2Mb) is then determined to user equipment, and carries out withholding fee (0.2 yuan) again.
Step 3055, OCS return to the CCA update message for carrying warrant quantity, rate group mark to PCEF.
Wherein, the implementation procedure of step 3055 and above-mentioned steps 3052 are identical.In embodiments of the present invention, if user continues
Using wechat business, then PCEF reports the step of business usage amount and OCS are to user's progress charging, authorization (i.e. step to OCS
It can 3052-3055) be performed a plurality of times.
In embodiments of the present invention, while executing online charging, PCRF and PCEF also execute patronage business for the side OCS
Policy control process, following steps 306-308 are policy control process of the PCRF to patronage business.
Step 306, PCEF send reporting message to PCRF.
Wherein, whether the warrant quantity that PCEF monitors that PCRF is issued is finished, when the warrant quantity for monitoring that PCRF is issued is finished,
Reporting message is sent to PCRF to report business usage amount.In embodiments of the present invention, reporting message can ask for diameter credit control
(Credit Control Request, CCR) update message is sought, wherein carrying business usage amount.PCEF is sent by Gx interface
CCR-Update message may include 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 used to identify the business of this monitoring.Used-Service-Unit is to use
Portfolio field.
Step 307, PCRF according to PCEF report Information Statistics patronage business business usage amount.
Wherein, PCRF can identify the corresponding multiple reporting messages of patronage business according to Monitoring-Key field, so
It adds up afterwards to the business usage amount in reporting message, determining patronage portfolio, there is also (current surplus in remaining situation
Remaining 19M), new authorization portfolio is sent to PCEF by CCA-Update message.
The CCA-Update message that PCRF is sent by Gx interface may include 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 used to identify the business of this monitoring.Granted-Service-Unit is
Authorize portfolio field.
In embodiments of the present invention, if user persistently uses business, PCEF sends reporting message and PCRF to PCRF
The step of statistical service usage amount, (i.e. step 306-307) can be performed a plurality of times.
In addition, the step of PCEF sends reporting message and PCRF statistical service usage amount to PCRF in the present embodiment is (i.e.
Step 306-307) and PCEF to OCS report business usage amount and OCS to user carry out charging, authorization the step of (i.e. step
It can 3051-3055) make to be performed simultaneously.It should be noted that PCRF sends authorization portfolio and PCEF to PCRF to PCEF
The step of return business usage amount is the service condition in order to monitor and count patronage portfolio.PCEF is according to OCS always
The authorization portfolio issued carries out portfolio authorization to user.
Step 308, PCRF are when the business usage amount is equal to the patronage portfolio in the sponsored messages, Xiang Suoshu AF
Send the RAR message for carrying the business usage amount.
If PCRF cumulative business usage amount is equal to patronage portfolio, illustrate that the patronage portfolio of patronage business has made
With finishing, PCRF sends the RAR message for carrying the business usage amount to AF, and notice AF patronage portfolio use finishes.
The parameter carried in RAR message may include:
Specific-Action:USAGE_REPORT
Sponsored-Connectivity-Data
Sponsor-Identity:tencent
Application-Service-Provider-Identity:Wechat
Used-Service-Unit:20Mb
Used-Service-Unit is to use portfolio field.
Optionally, PCRF is when cumulative business usage amount is equal to the patronage portfolio in sponsored messages, also to offline meter
Charge system OFCS sends charging request message, and the sponsored messages are carried in the charging request message and the business uses
Amount carries out charging to sponsor in order to which OFCS carries out charging to patronage portfolio.
In the present embodiment, AF has found that the patronage portfolio use of patronage business finishes, and can update patronage portfolio and (praise
Help duration, flow or the amount of money), AF sends AAR message to PCRF again by Rx interface, carries update in the AAR message
Sponsored messages, such as the patronage portfolio that Granted-Service-Unit field carries is 30Mb, 50%discount.
PCRF re-executes above-mentioned steps 304 after receiving AAR message, and notice OCS updates sponsored messages, OCS according to
The sponsored messages of update carry out charging and authorization to user, until user equipment is offline.
It, can when AF needs to update patronage portfolio in the charging method of patronage business provided in an embodiment of the present invention
With to PCRF send carry update sponsored messages authority checking request message, PCRF receive the authority checking request disappear
After breath, the SLR message for carrying the sponsored messages is sent to OCS by Sy interface, and then OCS is according to the sponsored messages pair of update
The patronage business of user carries out charging and authorization, and the embodiment of the present invention can make OCS obtain the patronage portfolio updated, according to
The patronage portfolio of update carries out authorization and charging to user equipment, and then user equipment uses the patronage portfolio updated, spirit
It is active preferable.
Charging method provided in an embodiment of the present invention is described in detail above, is provided again below and the method for the present invention
The corresponding equipment of embodiment.
It is the strategy and charging rule functions PCRF for being used to support business that the embodiment of the present invention four provides referring to Fig. 5, Fig. 5
The schematic diagram of equipment.
The PCRF equipment that the embodiment of the present invention four provides specifically includes that notice receiving module 410 and message transmission module
420, in which:
Notice receiving module 410 is used to receive the notification message of application function AF equipment transmission, takes in the notification message
The mark of sponsored messages with the patronage business and the user using the patronage business;
Message transmission module 420 is used to send request message to online charging system OCS, carries institute in the request message
State the mark of sponsored messages and the user.
PCRF equipment provided in an embodiment of the present invention can be used in aforementioned corresponding embodiment of the method one, three, PCRF
Equipment executes charging process and beneficial effect referring to above-described embodiment, and details are not described herein.
In PCRF equipment provided in an embodiment of the present invention, message transmission module 420 sends to online charging system and requests
Message includes:
The message transmission module 420 sends consumption limitation request SLR message, the SLR message to OCS by Sy interface
The middle mark for carrying the sponsored messages and the user.
Wherein, sponsored messages may include sponsor's mark, the mark of patronage business and patronage portfolio, using described
The mark of the user of patronage business may include the communicating number of user, IP address of user equipment etc..
With continued reference to Fig. 5, PCRF equipment provided in an embodiment of the present invention can also include:
First control module 430, for being identified according to the sponsored messages to the patronage service generation rate group;
The message transmission module 420 is also used to send rate group mark to PCEF, in order to PCEF it is subsequent to
OCS requests to carry the rate group mark when charging, and then OCS is identified according to the rate group and carried out charging to user.
Optionally, first control module 430 is also used to be reported according to strategy with charge execution function PCEF equipment
The business usage amount of Information Statistics patronage business;
The message transmission module 420 is also used to be equal to the patronage business in the sponsored messages in the business usage amount
When amount, Xiang Suoshu AF sends the re-authentication requests RAR message for carrying the business usage amount.
Optionally, message transmission module 420 is also used to be equal to the patronage in the sponsored messages in the business usage amount
When portfolio, charging request message is sent to off-line accounting system OFCS, the patronage letter is carried in the charging request message
Breath and the business usage amount, in order to which OFCS carries out offline charging to the patronage portfolio that sponsor provides.
In PCRF equipment provided in an embodiment of the present invention, notice receiving module 410 is receiving application function AF equipment
After the notification message of transmission, message transmission module 420 sends the mark for carrying sponsored messages and the user using patronage business to OCS
Then the request message of knowledge is believed so that OCS obtains the mark of sponsored messages and the user using patronage business according to patronage
The mark of breath and user carry out online charging to user.Compared with prior art, PCRF equipment provided in an embodiment of the present invention can
To be adapted to need to carry out the scene of real time billing, such as patronage portfolio in conjunction with the prepaid account of user as tariff discount letter
It ceases and needs the case where online charging is carried out to user, better adaptability.
It is the signal for the online charging system OCS for supporting business that the embodiment of the present invention five provides referring to Fig. 6, Fig. 6
Figure.
It is provided in an embodiment of the present invention to be used to that the online charging system of business to be supported to specifically include that
Request receiving module 510, the request message sent for receiving strategy with charging rule functions PCRF equipment are described
The sponsored messages of the patronage business and the mark of the user using the patronage business are carried in request message;
Accounting module 520 is authorized, for the patronage according to the sponsored message and the mark of the user to the user
Business use carries out authorization charging.
OCS provided in an embodiment of the present invention can be used in aforementioned corresponding embodiment of the method two, three, and OCS executes meter
Take process and beneficial effect referring to above-described embodiment, details are not described herein.In addition, the OCS in the embodiment of the present invention not only may be used
Online charging can also be carried out to patronage business is taken for carrying out charging to patronage business.
With continued reference to Fig. 6, the authorization accounting module 520 in OCS provided in an embodiment of the present invention can also include:
Message reception units 521, the first diameter credit control sent for receiving strategy with charge execution function PCEF equipment
CCR message is requested, the pre- allowance of application, rate group mark and institute of patronage business are carried in first credit control request information
State the mark of user;
Charging Detail Record unit 522 is authorized, for identifying corresponding rate and institute according to the pre- allowance of the application, the rate group
The corresponding sponsored messages of mark for stating user distribute business warrant quantity and withholding fee to the user;
Message sending unit 523 responds CCA message, first letter for returning to the first diameter credit control to the PCEF
With the mark for carrying the service authorization amount and user in control response message.
Optionally, the request receiving module 510 in online charging system of the embodiment of the present invention receives strategy and charging regulation
Function PCRF equipment send request message include:
The request receiving module 510 receives the consumption limitation request SLR message that PCRF equipment is sent by Sy interface, institute
State the mark of the sponsored messages that the patronage business is carried in SLR message and the user using the patronage business.
Request receiving module 510 in the embodiment of the present invention has reused existing SLR message and has sent sponsored messages and user
Mark, save overhead, reduce upgrade cost.
Optionally, the message reception units 521 in online charging system of the embodiment of the present invention are also used to receive strategy and meter
Take and execute the second credit control request information that function PCEF equipment is sent, carries and praise in second credit control request information
Help the business usage amount of business, the mark of the rate group mark and the user;
The authorization Charging Detail Record unit 522 is also used to identify corresponding rate according to the business usage amount, the rate group
And the corresponding sponsored messages of mark of the user distribute business warrant quantity to the user and deduct fees;
The message sending unit 523 is also used to return to the second diameter credit control response message to the PCEF equipment, described
The mark of the service authorization amount and user is carried in second diameter credit control response message.
In OCS provided in an embodiment of the present invention, request receiving module 510 is obtained by receiving the request message that PCRF is sent
The mark for obtaining sponsored messages and the user using patronage business, then by authorization accounting module 520 according to sponsored messages and user
Mark to user carry out online charging.Compared with prior art, OCS provided in an embodiment of the present invention is adapted to need to tie
The prepaid account for sharing family carries out the scene of real time billing, such as patronage portfolio needs for tariff discount information to user
The case where carrying out online charging, compared with the existing technology better adaptability.
It is the schematic diagram for the system that charging is carried out to patronage business that the embodiment of the present invention six provides referring to Fig. 7, Fig. 7.
As shown, the system provided in an embodiment of the present invention for carrying out charging to patronage business includes:
PCRF equipment 610 and online charging system 620, wherein can between PCRF equipment 610 and online charging system 620
To be connected by Gx interface, can also be connected by other customized interfaces.It is mentioned in PCRF equipment 610 and above-described embodiment four
The PCRF equipment of confession is identical, and details are referring to the description of above-described embodiment four, and details are not described herein.OCS620 and above-described embodiment five
The OCS of middle offer is identical, and details are referring to the description of above-described embodiment five, and details are not described herein.It is provided in an embodiment of the present invention right
Patronage business carries out PCRF equipment and the respective beneficial effect of OCS in system protection above-described embodiment four and embodiment five of charging
Fruit.
It is the strategy and charging rule functions PCRF for being used to support business that the embodiment of the present invention seven provides referring to Fig. 8, Fig. 8
The schematic diagram of equipment.
As shown, PCRF equipment provided in an embodiment of the present invention include: first processor 701, first memory 702,
First bus 703, the first input equipment 704, the first output equipment 705 and first network interface 706.
Wherein, the first memory 702 is for storing computer executed instructions, the first processor 701 with it is described
First memory 702 is connected by first bus 703, and when PCRF equipment operation, the first processor 701 is held
The row computer executed instructions, so that the PCRF executes following method:
The notification message that application function AF equipment is sent is received, the patronage of the patronage business is carried in the notification message
The mark of information and the user using the patronage business;
Request message is sent to online charging system OCS, carries the sponsored messages and the use in the request message
The mark at family.
Wherein, PCRF executes the detailed process of the above method, beneficial effect and the execution in above-described embodiment one, three
Journey is identical with beneficial effect, and due to being based on same design with embodiment of the present invention method, particular content can be found in the method for the present invention
Narration in embodiment one, three.
First input equipment 704 can be used for inputting order and information to PCRF equipment, and the first input equipment 704 is such as
Keyboard or sensing equipment, as mouse, trace ball, touch tablet, microphone, control stick, game mat, circle 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 can be used for PCRF equipment output information, in addition to the monitor, the first output equipment
705 can also set respectively for other periphery outputs, and such as loudspeaker and/or printing device, these output equipments can also pass through first
Bus 703 is connected to first processor 701.
PCRF equipment can be connected in network by first network interface 706, such as be connected to local area network (Local
Area Network, LAN).Under networked environment, the computer executed instructions stored in first memory 702 be can store
In remote storage device, and it is not limited to be locally stored in PCRF equipment.
First memory 702 may include the computer storage media in the form of volatibility and or nonvolatile memory,
Such as read-only memory and/or random access memory.First memory 702 can also include operating system, application program, other
Program module and program data.
It is the schematic diagram for the online charging system for supporting business that the embodiment of the present invention eight provides referring to Fig. 9, Fig. 9.
As shown, online charging system OCS provided in an embodiment of the present invention includes: that second processor 801, second stores
Device 802, the second bus 803, the second input equipment 804, the second output equipment 805 and the second network interface 806.
Wherein, the second memory 802 is for storing computer executed instructions, the second processor 801 with it is described
Second memory 802 is connected by second bus 803, and when OCS operation, the second processor 801 executes institute
Computer executed instructions are stated, so that the OCS executes following method:
The request message that strategy is sent with charging rule functions PCRF equipment is received, is praised described in carrying in the request message
Help the sponsored messages of business and the mark of the user using the patronage business;
Authorization charging is carried out to the patronage business use of the user according to the sponsored message and the mark of the user.
Wherein, OCS executes the detailed process of the above method, beneficial effect and the execution in above-described embodiment two, three
Journey is identical with beneficial effect, and due to being based on same design with embodiment of the present invention method, particular content can be found in the method for the present invention
Narration in embodiment two, three.In addition, the OCS in the embodiment of the present invention can be not only used for carrying out patronage business charging, also
Online charging can be carried out to patronage business is taken.
Second input equipment 804 can be used for inputting order and information, the second input equipment 804 such as keyboard to OCS
Or sensing equipment, such as mouse, trace ball, touch tablet, microphone, control stick, game mat, circle benzvalene form satellite tv antenna, scanning
Instrument or similar devices.These input equipments can be connected to second processor 801 by the second bus 803.
Second output equipment 805 can be used for OCS output information, and in addition to the monitor, the second output equipment 805 may be used also
It is each to think that other periphery outputs are set, such as loudspeaker and/or printing device, these output equipments can also pass through the second bus 803
It is connected to second processor 801.
OCS can be connected in network by the second network interface 806, such as be connected to local area network (Local Area
Network, LAN).Under networked environment, the computer executed instructions stored in second memory 802, which can store, is remotely being deposited
It stores up in equipment, and is not limited to be locally stored in OCS.
Second memory 802 may include the computer storage media in the form of volatibility and or nonvolatile memory,
Such as read-only memory and/or random access memory.Second memory 802 can also include operating system, application program, other
Program module and program data.
It should be noted that the contents such as information exchange, implementation procedure in above equipment between each unit, module, due to
It is based on same design with embodiment of the present invention method, for details, please refer to the description in the embodiment of the method for the present invention, herein not
It repeats again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Instruct relevant hardware to complete by computer program, program can be stored in computer-readable storage medium, should
Program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Storage medium therein can for magnetic disk, CD, only
Read memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Institute's charging method of the present invention and relevant device are described in detail above, for the general technology of this field
Personnel, thought according to an embodiment of the present invention, there will be changes in the specific implementation manner and application range, this specification
Content should not be construed as limiting the invention.