CN103067903A - Charging method and device and system - Google Patents

Charging method and device and system Download PDF

Info

Publication number
CN103067903A
CN103067903A CN201210591722XA CN201210591722A CN103067903A CN 103067903 A CN103067903 A CN 103067903A CN 201210591722X A CN201210591722X A CN 201210591722XA CN 201210591722 A CN201210591722 A CN 201210591722A CN 103067903 A CN103067903 A CN 103067903A
Authority
CN
China
Prior art keywords
rate group
unit
ocs
business
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210591722XA
Other languages
Chinese (zh)
Inventor
王晓燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210591722XA priority Critical patent/CN103067903A/en
Publication of CN103067903A publication Critical patent/CN103067903A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provided a charging method, a device and a system. The charging method comprises that an online charging system (OCS) receives a reserved credit line request of a TDF entity. The reserved credit line request consists of a first rate set and a second rate set, the first rate set is a rate set of data flow, and the second rate set is an applied rate set; association is established between the first rate set and the second rate set; sent stopping credit control request information is received after the TDF entity detects application completion, and a business use unit and the first rate set carried and applied are stopped in the credit control request information; the OCS takes a product of corresponding rate of the app, an applied business use unit and the second rate set, difference of the corresponding business use unit of the data flow and the applied business unit, and sum of products of corresponding rate of the first rate set as a use amount of a user, and deduces use amount of the user from a user account. Therefore, the problem of repeated charging is solved.

Description

Charging method, device and system
Technical field
The embodiment of the invention relates to the communication technology, relates in particular to a kind of charging method, device and system.
Background technology
Along with enriching constantly of data service on the communication network, the charge on traffic of data business is become telecom operators carry out charging control to the data business major way gradually.At current 3G (Third Generation) Moblie technology (3rd-generation; Be designated hereinafter simply as 3G) policy control and charging (the PolicyControl and Charging of network, be designated hereinafter simply as PCC) in the framework, mainly the charging policy by data flow-based carries out charging, but along with the multifarious development of current data service, charging policy is also more and more flexible, and the charging policy that only is based on data flow more and more can not satisfy the demands.
In the prior art, main passing through strategy and charging rule functions (Policy and ChargingRules Function; Be designated hereinafter simply as PCRF) entity and flow detection function (Traffic DetectionFunction; Being designated hereinafter simply as TDF) Sd interface between the entity expands, issues to the TDF entity based on the charging policy of using supporting; Extremely tactful and charge execution function (the Policy and Charging Enforcement Function when data stream transmitting; Be designated hereinafter simply as PCEF) during entity, the PCEF entity is carried out the charging policy of data flow-based; Data stream transmitting is during to the TDF entity, the application of this data flow coupling of TDF entity detection, and report the application start event to the PCRF entity; The PCRF entity carries out the decision-making based on the charging policy of using, and will be somebody's turn to do based on the charging policy of using and be handed down to the TDF entity, is carried out based on the charging policy of application by the TDF entity and finishes charging.
In realizing process of the present invention, the inventor finds, both mated the charging policy of the data flow-based on the PCEF entity when data flow, when mating again on the TDF entity based on the charging policy used, can duplicate the problem of charging.
Summary of the invention
The invention provides a kind of charging method, device and system, be used for solving the problem that repeats charging.
First aspect, the embodiment of the invention provide a kind of charging method, comprising:
Online Charging System OCS receives the reservation credit line request that flow detection function TDF entity sends, comprise the first rate group and the second rate group in the request of described reservation credit line, described the first rate group is the corresponding rate group of data flow that described TDF entity receives, and described the second rate group is the corresponding rate group of application of described data flow coupling;
Described OCS sets up the incidence relation of described the first rate group and described the second rate group;
Described OCS receives the termination credit control request information that described TDF entity sends after detecting the application end, carry the business of described application in the described termination credit control request information and use unit and described the second rate group;
Described OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
Second aspect, the embodiment of the invention also provide a kind of charging method, comprising:
Flow detection function TDF entity receives strategy and the data flow that charge execution function PCEF entity sends, and detects the application that obtains with described data flow coupling;
Described TDF entity sends application start message to strategy and charging rule functions PCRF entity, carries the information of the application of mating with described data flow in the described application start message, and the Internet Protocol IP five-tuple of described data flow; So that described PCRF entity mates the first rate group corresponding to described data flow according to described IP five-tuple, according to described the second rate group of using correspondence of the information matches of described application;
Described TDF entity receives the application detection control law that described PCRF entity sends, and described application detects control law and carries described the first rate group and described the second rate group;
Described TDF entity sends to Online Charging System OCS and reserves the credit line request, comprises described the first rate group and described the second rate group in the request of described reservation credit line; So that described OCS sets up the incidence relation of described the first rate group and described the second rate group;
After detecting the application end, described TDF entity sends to described OCS and stops credit control request information, and carry the business of described application in the described termination credit control request information and use unit and described the second rate group, so that
Described OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
The third aspect, the embodiment of the invention provide a kind of OCS, comprising:
Receiver module, be used for receiving the reservation credit line request that flow detection function TDF entity sends, comprise the first rate group and the second rate group in the request of described reservation credit line, described the first rate group is the corresponding rate group of data flow that described TDF entity receives, and described the second rate group is the corresponding rate group of application of described data flow coupling; And receive the termination credit control request information that described TDF entity sends after detecting the application end, carry the business of described application in the described termination credit control request information and use unit and described the second rate group;
Set up module, be used for after described receiver module receives the request of reservation credit line, setting up the incidence relation of described the first rate group and described the second rate group;
Processing module, be used for the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
Fourth aspect, the embodiment of the invention provide a kind of TDF entity, comprising:
Receiver module is used for receiving the tactful data flow that sends with charge execution function PCEF entity; And at sending module after strategy and charging rule functions PCRF entity send application start message, receive the application detection control law that described PCRF entity sends, described application detects control law and carries the first rate group corresponding to described data flow and the second rate group corresponding with the application of described data flow coupling;
Detection module is for detection of the application of the data flow coupling that obtains to receive with described receiver module;
Described sending module, be used for sending application start message to described PCRF entity, carry information described detection module acquisition and application described data flow coupling in the described application start message, and the Internet Protocol IP five-tuple of described data flow, so that described PCRF entity mates the first rate group corresponding to described data flow according to described IP five-tuple, according to described the second rate group of using correspondence of the information matches of described application; And after described receiver module receives application detection control law, send the request of reservation credit line to Online Charging System OCS, comprise described the first rate group and described the second rate group in the request of described reservation credit line; So that described OCS sets up the incidence relation of described the first rate group and described the second rate group; And after described detection module detects the application end, send the termination credit control request information to described OCS, carry the business of described application in the described termination credit control request information and use unit and described the second rate group, so that
Described OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
The 5th aspect, the embodiment of the invention provide a kind of charge system, comprising: flow detection function TDF entity, strategy and charging rule functions PCRF entity and line charge system OCS;
Described TDF entity is used for receiving strategy and the data flow that charge execution function PCEF entity sends, and detects the application that obtains with described data flow coupling; Send application start message to described PCRF entity, carry the information of the application of mating with described data flow in the described application start message, and the Internet Protocol IP five-tuple of described data flow; Receive the application detection control law that described PCRF entity sends, described application detects control law and carries described the first rate group and described the second rate group; And to the request of described OCS transmission reservation credit line, comprise described the first rate group and described the second rate group in the request of described reservation credit line; After detecting the application end, send the termination credit control request information to described OCS, carry the business of described application in the described termination credit control request information and use unit and described the second rate group;
Described PCRF entity is used for receiving the application start message that described TDF entity sends, and determines the first rate group that described data flow is corresponding according to described IP five-tuple, and determines described the second corresponding rate group of using according to the information of described application; Send application to described TDF entity and detect control law, described application detects control law and carries described the first rate group and described the second rate group;
Described OCS is used for receiving the reservation credit line request that described TDF entity sends, and sets up the incidence relation of described the first rate group and described the second rate group; Receive the termination credit control request information that described TDF entity sends after detecting the application end, the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
Charging method provided by the invention, device and system, receive the reservation credit line request that the TDF entity sends by OCS, reserve in the credit line request and comprise the first rate group and the second rate group, the first rate group is the corresponding rate group of data flow that the TDF entity receives, and the second rate group is the corresponding rate group of application of data flow coupling; Set up the incidence relation of the first rate group and the second rate group; Receive the termination credit control request information that the TDF entity sends after detecting the application end, carry the business of application in the termination credit control request information and use unit and the second rate group; The business of using is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account.Thereby solved the problem that repeats charging.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do one to the accompanying drawing of required use in embodiment or the description of the Prior Art and introduce simply, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of charging method embodiment one of the present invention;
Fig. 2 is the flow chart of charging method embodiment two of the present invention;
Fig. 3 is the flow chart of charging method embodiment three of the present invention;
Fig. 4 is the flow chart of charging method embodiment four of the present invention;
Fig. 5 is the flow chart of charging method embodiment five of the present invention;
Fig. 6 is the flow chart of charging method embodiment six of the present invention;
Fig. 7 is the structural representation of TDF physical embodiment one of the present invention;
Fig. 8 is the structural representation of PCRF physical embodiment one of the present invention;
Fig. 9 is the structural representation of OCS embodiment one of the present invention;
Figure 10 is the structural representation of OCS embodiment two of the present invention;
Figure 11 is the structural representation of OCS embodiment four of the present invention;
Figure 12 is the structural representation of charge system embodiment one of the present invention;
Figure 13 is the structural representation of TDF physical embodiment three of the present invention;
Figure 14 is the structural representation of OCS embodiment five of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is charging method embodiment one flow chart of the present invention, and as shown in Figure 1, the method for present embodiment can comprise:
Step 101, TDF entity receive the data flow that the PCEF entity sends, and detect the application that obtains with this data flow coupling.
In the present embodiment, the TDF entity receives after the data flow that the PCEF entity sends, and detects rule this data flow is detected according to using, and namely detects this data flow correspondence and which concrete application, thereby can determine application with this data flow coupling.
Step 102, TDF entity send application start message to the PCRF entity, carry the information of the application of mating with this data flow in the application start message, and the IP five-tuple of this data flow, so that the PCRF entity is used the second corresponding rate group according to the first rate group corresponding to IP five-tuple matched data stream according to the information matches of using; Wherein, the first rate group is the corresponding rate group of data flow that the TDF entity receives, and the second rate group is the corresponding rate group of application of data flow coupling.
In the present embodiment, after the TDF entity obtains the application of this data flow coupling, need the event of this application start is informed the PCRF entity, therefore, the TDF entity sends application start message to the PCRF entity, carry the information of the application of mating with this data flow in this application start message, and the Internet Protocol of this data flow (Internet Protocol; Be designated hereinafter simply as IP) five-tuple, so that the PCRF entity according to application start match messages charging policy, namely makes the PCRF entity according to the first rate group corresponding to IP five-tuple matched data stream, use the second corresponding rate group according to the information matches of using.
Step 103, TDF entity receive the application detection control law that the PCRF entity sends, and use the detection control law and carry the first rate group and the second rate group.
In the present embodiment, receive the application start message of TDF entity transmission when the PCRF entity after, IP five-tuple according to this data flow in the application start message, obtain the charging policy with this data flow coupling, from this charging policy, determine the first rate group corresponding to this data flow, the PCRF entity also according to the information of application in the application start message and this data flow coupling, obtains the charging policy that mates with this application, determines the second rate group that this application is corresponding from this charging policy; Then the PCRF entity sends to use to the TDF entity and detects control law, and this application detects in the control law and carries the first rate group and the second rate group.Correspondingly, the TDF entity receives the application detection rule that the PCRF entity sends.
Step 104, TDF entity send the credit line request of reserving to OCS, reserve in the credit line request to comprise the first rate group and the second rate group; So that OCS sets up the incidence relation of the first rate group and the second rate group.
In the present embodiment, the application that the TDF entity receives the transmission of PCRF entity detects after the rule, to Online Charging System (Online Charging System; Be designated hereinafter simply as OCS) send and reserve the credit line request, comprise the first rate group and the second rate group in this reservation credit line request; OCS receives the reservation credit line request that TDF sends, and obtains the first rate group and the second rate group reserved in the credit line request, so that OCS sets up the incidence relation of the first rate group and the second rate group.
Step 105, detect use to finish after, the TDF entity sends to OCS and stops credit control request information, stop carrying in the credit control request information business use unit and the second rate group of this application, so that the business that OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account.
For example, if the business of using uses the unit to be A, rate corresponding to the second rate group is X, business corresponding to data flow uses the unit to be B, rate corresponding to the first rate group is Y, then above-mentioned OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the sum of products that the business corresponding with described data flow used rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group can obtain in the following way as user's use volume: A*X+(B-A) * Y also can be A*X+B*Y-A*X.
In the present embodiment, after the TDF entity detection is used end to this, obtain the business of the data flow of this application of carrying and use unit (business of namely using is used the unit), the TDF entity sends to OCS and stops credit control request information, carries the business of this application in this termination credit control request and uses unit and the second rate group.After OCS receives this termination credit control request information, obtain the business that stops this application in the credit control request information and use unit and the second rate group, incidence relation according to the first rate group and the second rate group, obtain the business of data flow corresponding to the first rate group to the PCEF entity and use the unit, then OCS uses unit and the second rate group according to the business of this application, the business of the data flow that obtains from PCEF is used unit and the first rate group to carry out charging and is processed, particularly, be combined with the second rate group and carry out the charging processing in the business use unit that OCS will use, because the business of this data flow use unit has comprised the business of this application and has used the unit, carried out the charging processing so OCS uses the business of unit and this application to use the difference of unit to be combined with the first rate group the business of this data flow again.Namely, the business of using is used the product of the unit rate corresponding with the second rate group, the sum of products that the business of the data flow corresponding with the first rate group is used rate corresponding to difference that the business of unit and this application uses the unit and the first rate group is as this use volume of user, then from user account, deduct this use volume of user, wherein, the business of data flow uses the business of unit and this application to use the difference of unit also can be zero.
The charging method that the embodiment of the invention one provides by TDF entity receiving data stream, detects the application that obtains with this data flow coupling; Send application start message to the PCRF entity; Receive the application detection control law that the PCRF entity sends; Send the credit line request of reserving to OCS; So that OCS sets up the incidence relation of the first rate group and the second rate group; After detecting the application end, send the termination credit control request information so that OCS uses the product of the unit rate corresponding with the second rate group according to the business of this application to OCS, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account; Thereby solved the problem that repeats charging.
Fig. 2 is the flow chart of charging method embodiment two of the present invention, and as shown in Figure 2, the method for present embodiment can comprise:
Step 201, PCRF entity receive the application start message that the TDF entity sends, and application start message is carried the information of the application of the data flow coupling that receives with the TDF entity, and the IP five-tuple of this data flow.
In the present embodiment, receive the data flow that the PCEF entity sends at the TDF entity, and detect and obtain after the application of mating with this data flow, then send application start message to the PCEF entity, correspondingly, the PCEF entity receives the application start message that the TDF entity sends, and this application start message is carried the information of the application of this data flow coupling that receives with the TDF entity, and the IP five-tuple of this data flow.
Step 202, PCRF entity are according to the first rate group corresponding to IP five-tuple specified data stream, and the second rate group of determining this application correspondence according to the information of this application.
In the present embodiment, after the PCEF entity obtains this application start message that receives, IP five-tuple according to this data flow in the application start message, obtain the charging policy with this data flow coupling, from this charging policy, determine the first rate group corresponding to this data flow, the PCRF entity also according to the information of application in the application start message and this data flow coupling, obtains the charging policy that mates with this application, determines the second rate group that this application is corresponding from this charging policy.
Step 203, the PCRF entity sends to use to the TDF entity and detects control law, use the detection control law and carry the first rate group and the second rate group, so that the TDF entity sends to OCS with the first rate group and the second rate group, make OCS set up the incidence relation of the first rate group and the second rate group, so that the business that OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account.
In the present embodiment, the PCRF entity is determined the first rate group that this data flow is corresponding according to this IP five-tuple, and determine according to the information of this application after the second rate group of this application correspondence, send application to the TDF entity and detect control law, this application detects control law and carries the first rate group and the second rate group; After the TDF entity receives this application detection control law, the first rate group and the second rate group are sent to OCS by reserving the credit line request; OCS sets up the incidence relation of the first rate group and the second rate group according to reserving credit line acquisition request the first rate group and the second rate group.
After the TDF entity detection is used end to this, obtain the business of the data flow of this application of carrying and use unit (business of namely using is used the unit), the TDF entity sends to OCS and stops credit control request information, carries the business of this application in this termination credit control request and uses unit and the second rate group.After OCS receives this termination credit control request information, obtain the business that stops this application in the credit control request information and use unit and the second rate group, incidence relation according to the first rate group and the second rate group, obtain the business of data flow corresponding to the first rate group to the PCEF entity and use the unit, then OCS uses unit and the second rate group according to the business of this application, the business of the data flow that obtains from the PCEF entity is used unit and the first rate group to carry out charging and is processed, particularly, be combined with the second rate group and carry out the charging processing in the business use unit that OCS will use, because the business of this data flow use unit has comprised the business of this application and has used the unit, carried out the charging processing so OCS uses the business of unit and this application to use the difference of unit to be combined with the first rate group the business of this data flow again.Namely, the business of using is used the product of the unit rate corresponding with the second rate group, the sum of products that the business of the data flow corresponding with the first rate group is used rate corresponding to difference that the business of unit and this application uses the unit and the first rate group is as this use volume of user, then from user account, deduct this use volume of user, wherein, business corresponding to data flow uses the business of unit and this application to use the difference of unit also can be zero.
The charging method that the embodiment of the invention two provides receives the application start message that the TDF entity sends by the PCRF entity; According to the first rate group corresponding to IP five-tuple specified data stream, and the second rate group of determining this application correspondence according to the information of this application; Send application to the TDF entity and detect control law, use the detection control law and carry the first rate group and the second rate group, so that the TDF entity sends to OCS with the first rate group and the second rate group, make OCS set up the incidence relation of the first rate group and the second rate group, so that the business that OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses rate sum corresponding to difference that the business of unit and application uses the unit and the product of the first rate group as user's use volume, deducts user's use volume from user account.Thereby solved the problem that repeats charging.
Fig. 3 is the flow chart of charging method embodiment three of the present invention, and as shown in Figure 3, the method for present embodiment can comprise:
Step 301, OCS receive the reservation credit line request that the TDF entity sends, reserve in the credit line request and comprise the first rate group and the second rate group, the first rate group is the corresponding rate group of data flow that the TDF entity receives, and the second rate group is the corresponding rate group of application of this data flow coupling.
In the present embodiment, the TDF entity receives the data flow that the PCEF entity sends, and detects after the application that obtains to mate with this data flow, sends application start message to the PCRF entity, carry the information of the application of mating with this data flow in this application start message, and the IP five-tuple of this data flow; The PCRF entity receives this application start message that the TDF entity sends, according to the first rate group corresponding to IP five-tuple specified data stream, and the second rate group of determining this application correspondence according to the information of this application, and to TDF entity transmission application detection control law, this application detects control law and carries the first rate group and the second rate group; After the TDF entity receives this application detection control law, then send the credit line request of reserving to OCS, comprise this first rate group and the second rate group in this reservation credit line request, wherein, the first rate group is that the TDF entity receives the corresponding rate group of this data flow, and the second rate group is the corresponding rate group of application of this data flow coupling.Correspondingly, OCS receives the reservation credit line request that the TDF entity sends.
Step 302, OCS set up the incidence relation of the first rate group and the second rate group.
In the present embodiment, after OCS receives the reservation credit line request of TDF entity transmission, can acquire the first rate group and the second rate group reserved in the credit line request, OCS sets up the incidence relation of the first rate group and the second rate group.
Step 303, OCS receive the termination credit control request information that the TDF entity sends after detecting the application end, carry the business of this application in the termination credit control request information and use unit and the second rate group.
In the present embodiment, after the TDF entity detection is used end to this, obtain the business of the data flow of this application of carrying and use unit (business of namely using is used the unit), the TDF entity sends to OCS and stops credit control request information, carries the business of this application in this termination credit control request and uses unit and the second rate group.Correspondingly, OCS receives this termination credit control request information.
The business that step 304, OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account.
In the present embodiment, after OCS receives this termination credit control request information, obtain the business that stops this application in the credit control request information and use unit and the second rate group, incidence relation according to the first rate group and the second rate group, obtain the business of data flow corresponding to the first rate group to the PCEF entity and use the unit, then the business that will use of OCS is used the product of the unit rate corresponding with the second rate group, the sum of products that the business corresponding with data flow used rate corresponding to difference that the business of unit and this application uses the unit and the first rate group is as this use volume of user, then from user account, deduct this use volume of user, wherein, business corresponding to data flow uses the business of unit and this application to use the difference of unit also can be zero.
The charging method that the embodiment of the invention three provides receives the reservation credit line request that the TDF entity sends by OCS; Set up the incidence relation of the first rate group and the second rate group; Receive the termination credit control request information that the TDF entity sends after detecting the application end, carry the business of this application in the termination credit control request information and use unit and the second rate group; The business that OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account.Thereby solved the problem that repeats charging.
Fig. 4 is the flow chart of charging method embodiment four of the present invention, and as shown in Figure 4, the method for present embodiment can comprise:
Step 401, IP connected reference network (IP-Connectivity Access Network; Be designated hereinafter simply as IP-CAN) session establishment.
In the present embodiment, user terminal initiation packet data protocol (Packet Date Protocol; Be designated hereinafter simply as PDP) when context connects, need to carry out IP-CAN session establishment process, one of ordinary skill in the art will appreciate that consistent in the process of setting up of IP-CAN session and the prior art, the present invention is not described in detail at this.Wherein, PCEF is behind the IP-CAN session establishment, and receiving data stream, PCEF entity and PCRF entity carry out alternately, and the PCEF entity can obtain all charging policy relevant with all data flow from the PCRF entity, and comprises corresponding rate group in each charging policy.
Step 402, PCEF entity receiving data stream are carried out the charging policy relevant with data flow.
In the present embodiment, PCEF entity receiving data stream, obtain the IP five-tuple of this data flow, according to this IP five-tuple, this data flow and accessed all charging policy from the PCRF entity are mated, can obtain charging policy corresponding to this data flow, comprise the first rate group in charging policy corresponding to this data flow, the PCEF entity obtains the first rate group from this charging policy, can also comprise the service identification that this data flow is corresponding in this charging policy.After the PCEF entity gets access to the first rate group, need to obtain mandate business unit corresponding to this data flow to OCS, then the PCEF entity sends to OCS with the first rate group, then OCS calculates the mandate business unit and sends to the PCEF entity according to the first rate group and user account remaining sum, and for example: rate corresponding to the first rate group is 1 yuan/megabit (Mbit; Be designated hereinafter simply as M), the user account remaining sum is 300 yuan, then the mandate business unit that calculates of OCS be 300 yuan/(1 yuan/M)=300M, mandate business unit corresponding to this data flow that the PCEF entity receives is 300M, then the PCEF entity can authorize business unit to use the unit to add up to the business of this data flow according to this, authorizes business unit in order to avoid the business of this data flow uses the unit to surpass.
Step 403, PCEF entity send data flow to the TDF entity.
Step 404, TDF entity detection obtain the application with the data flow coupling.
In the present embodiment, the TDF entity receives after this data flow that the PCEF entity sends, and detects rule this data flow is detected according to using, namely detect this data flow corresponding be which concrete application, thereby can obtain the application with this data flow coupling.
Step 405, TDF entity send application start message to the PCRF entity.
In the present embodiment, after the TDF entity obtains the application of this data flow coupling, need the event of this application start is informed the PCRF entity, therefore, the TDF entity sends application start message to the PCRF entity, carry the information of the application of mating with this data flow in this application start message, and the IP five-tuple of this data flow, so that the PCRF entity is according to application start match messages charging policy.
Step 406, PCRF entity are determined the first rate group and the second rate group.
In the present embodiment, the PCEF entity receives this application start message that the TDF entity sends, the information of the application of this data flow coupling that receives with the TDF entity of obtaining that this application start message carries, and the IP five-tuple of this data flow.Then the PCEF entity obtains the charging policy that mates with this data flow according to this IP five-tuple, determines the first rate group corresponding to this data flow can also obtain service identification corresponding to this data flow from this charging policy from this charging policy; The PCRF entity obtains the charging policy that mates with this application also according to the information of this application, determines the second rate group that this application is corresponding from this charging policy.
Step 407, PCRF entity send to use to the TDF entity and detect control law.
In the present embodiment, the PCRF entity is determined the first rate group that this data flow is corresponding according to this IP five-tuple, and determine according to the information of this application after the second rate group of this application correspondence, send application to the TDF entity and detect control law, this application detects control law and carries the first rate group and the second rate group.
Step 408, TDF entity send the credit line request of reserving to OCS.
In the present embodiment, this application that the TDF entity receives the transmission of PCRF entity detects after rule, sends to OCS and reserves the credit line request, comprises this first rate group and this second rate group in this reservation credit line request.
Step 409, OCS set up the incidence relation of the first rate group and the second rate group, and calculate and authorize business unit.
In the present embodiment, after OCS receives the reservation credit line request of TDF entity transmission, can acquire this first rate group and this second rate group of reserving in the credit line request, then OCS can set up the incidence relation of the first rate group and the second rate group.
OCS also calculates the mandate business unit, and namely OCS also calculates the first mandate business unit corresponding to the first rate group according to this first rate batch total, and calculates the second mandate business unit corresponding to the second rate group according to this second rate batch total.Particularly, OCS can calculate the first mandate business unit according to the first rate group and user account remaining sum, and can calculate the second mandate business unit according to the second rate group and user account remaining sum.For example: rate corresponding to the first rate group is 1 yuan/M and rate corresponding to the second rate group is 2 yuan/M, user account remaining sum is 300 yuan, then the first rate group of calculating of OCS corresponding first authorize business unit be 300 yuan/(1 yuan/M)=300M, OCS calculate the second rate group corresponding second authorize business unit be 300 yuan/(2 yuan/M)=150M.Then OCS execution in step 409 and more above-mentioned the first mandate business unit and second that calculates are authorized the size of business unit, if first authorizes business unit to authorize business unit greater than second, then also need execution in step 411 after the OCS execution in step 410, authorize business unit if first authorizes business unit to be not more than second, then OCS does not need execution in step 411, i.e. execution in step 412 after the execution in step 410.
Step 410, OCS send to the TDF entity and reserve the credit line response.
In the present embodiment, after OCS calculates the second mandate business unit corresponding to this second rate group, then OCS sends to the TDF entity and reserves the credit line response, carries mandate business unit corresponding to this second rate group (being 150M) in this reservation credit line response.
Step 411, OCS send to the PCEF entity and reserve the credit line updating message.
In the present embodiment, when first authorizes business unit to authorize business unit greater than second, need this moment the PCEF entity to upgrade mandate business unit corresponding to the first rate group of reserving, if do not upgrade, can exist the business of the data flow of PCEF entity place carrying application to use the unit to surpass the phenomenon of mandate business unit corresponding to this application, thereby cause the user to exceed the quata to use; Therefore, OCS sends to the PCEF entity and reserves the credit line updating message, carries second in this reservation credit line updating message and authorizes business unit (being 150M), is updated to second with the mandate business unit that will reserve on the PCEF entity and authorizes business unit.After the PCEF entity received this reservation credit line updating message, the mandate business unit 300M that the first rate group of obtaining in the step 402 is corresponding was updated to 150M, exceeded the quata to use to avoid the user.
Step 412, TDF entity send data flow to the server of using.
The TDF entity receives this reservation credit line response that OCS sends, after getting access to mandate business unit corresponding to the second rate group, then the TDF entity can authorize business unit to use the unit to add up to the business of the data flow of carrying this application according to this, uses the unit to surpass this mandate business unit in order to avoid carry the business of the data flow of this application.Then the TDF entity sends to the server of application corresponding to this application with data flow, need to prove that the server of this application is not shown in Figure 4.
Step 413, TDF entity detection are used and are finished.
In the present embodiment, the TDF entity detection one of ordinary skill in the art will appreciate that to use finishing, and the TDF entity detection is used in the process that finishes and the prior art consistent, and the present invention is not described in detail at this.
Step 414, TDF entity send to OCS and stop credit control request information.
In the present embodiment, after the TDF entity detection was used end to this, the TDF entity can be added up the business of the data flow that obtains this application of carrying and use unit (the business use unit of namely using).The TDF entity sends to OCS and stops credit control request information, carries the business of this application in this termination credit control request information and uses unit and this second rate group.
Step 415, OCS send the re-authorization request message to the PCEF entity.
In the present embodiment, OCS receives this termination credit control request information that the TDF entity sends after detecting the application end, obtain the business of this application that this termination credit control request information carries and use unit and the second rate group, then OCS obtains the first rate group of this second rate group association according to the first rate group of setting up in the step 409 and the incidence relation of the second rate group.Then OCS sends the re-authorization request message to the PCEF entity, carries the first rate group in this re-authorization request message.
Step 416, PCEF entity send to OCS and upgrade credit control request information.
In the present embodiment, the PCEF entity receives the re-authorization request message that OCS sends, get access to the first rate group of carrying in this re-authorization request message, use the unit according to the business that this first rate group statistics obtains data flow corresponding to the first rate group, then the PCEF entity sends to OCS and upgrades credit control request information, carries business corresponding to this first rate group in this renewal credit control request information and uses the unit.
Step 417, OCS reduce user account, recomputate the mandate business unit.
In the present embodiment, be combined with the second rate group and carry out the charging processing in the business use unit that OCS will use, because business corresponding to this first rate group uses the unit to comprise the business use unit of this application, so OCS also business that this first rate group is corresponding uses the business of unit and this application to use difference and the first rate group of unit, thus the reducing of realization user account.Namely, the business of using is used the product of the unit rate corresponding with the second rate group, the sum of products that the business corresponding with data flow used rate corresponding to difference that the business of unit and this application uses the unit and the first rate group is as this use volume of user, then from user account, deduct this use volume of user, wherein, the business of data flow uses the business of unit and this application to use the difference of unit also can be zero.For example: OCS receives the business of the application of TDF entity transmission and uses the unit to be 70M, business corresponding to the first rate group that receives the transmission of PCEF entity uses the unit to be 90M, then use the volume that uses of unit to be 70M * 2 yuan/M=140 unit for the business of this application, and use use volume that the business corresponding to data flow of not carrying this application in the unit use the unit to be (90M-70M) * 1 yuan/M=20 unit for business corresponding to the first rate group, thereby OCS is 140 yuan+20 yuan=160 yuan to the capable concrete volume of reducing of user account.
Because 300 yuan of the remaining sums of user account before using beginning, use finish after OCS user account has been carried out 160 yuan reducing, then use and finish afterwards that the remaining sum of user account is 140 yuan.Because the remaining sum of user account is upgraded, so mandate business unit corresponding to the first rate group of storing in the PCEF entity also should upgrade, exceed the quata to use to avoid the user.So OCS recomputates the mandate business unit according to remaining sum and the first rate group of user account after upgrading, and the mandate business unit that will recomputate sends to the PCEF entity.Particularly, OCS recomputates and authorizes business unit to be: 140 yuan/(1 yuan/M)=140M.
Alternatively, OCS deletes the incidence relation of the first rate group and the second rate group.In the present embodiment, OCS receives in the renewal credit control request information of PCEF entity transmission, and after getting access to business corresponding to the first rate group of upgrading in the credit control request information and using the unit, finish owing to use, then OCS deletes the incidence relation of the first rate group and the second rate group, in order to avoid the foundation of the incidence relation in the next charging process of using of impact.
Step 418, OCS send to the PCEF entity and upgrade Credit Control Answer message.
In the present embodiment, OCS sends renewal Credit Control Answer message to the PCEF entity after obtaining the mandate business unit that recomputates, and carries this mandate business unit that recomputates (being 140M) in this renewal control response message.
The charging method that the embodiment of the invention four provides, application by TDF entity detection data flow coupling, and the PCRF entity sends application start message, the PCRF entity is determined the first rate group and the second rate group according to this application start message, and send to the TDF entity by use detecting control law, the TDF entity sends the credit line request of reserving to OCS, OCS sets up the incidence relation of the first rate group and the second rate group, and calculate the first rate group corresponding first authorize business unit and the second rate group corresponding second authorize business unit, send mandate business unit corresponding to the second rate group by reserving the credit line response to the TDF entity, when first authorizes business unit to authorize business unit greater than second, the second mandate business unit is sent to the PCEF entity by reserving the credit line updating message, authorize business unit so that the mandate business unit of reserving on the PCEF entity is updated to second; When the TDF entity detection finishes to application, use the unit to send to OCS by stopping credit control request information the business of the second rate group and application to OCS, OCS obtains the first rate group of the second rate group association, and the first rate group sent to the PCEF entity by the re-authorization request message, then receive the business use unit corresponding with this first rate group that the PCEF entity sends, and the business that will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, user account is reduced, remaining sum and the first rate group according to user account recomputates the mandate business unit at last, and this mandate business unit that recomputates is sent to the PCEF entity.Thereby solved the problem that repeats charging, further, the phenomenon of also having avoided the user to exceed the quata to use.
Optionally, in the embodiment shown in fig. 4, be a kind of as example take the TDF entity detection to the application with the data flow coupling.Optionally, the TDF entity detection also can be two or more to the application with the data flow coupling.If the TDF entity detection has two or more to the application with the data flow coupling in the step 404, in the so follow-up step, when processing application related information, then need to process two or more application message.Here repeat no more.
Fig. 5 is the flow chart of charging method embodiment five of the present invention, and present embodiment is to before the present invention's step 413 embodiment illustrated in fig. 4, and the PCEF entity knows that the processing procedure when the mandate business unit of reservation is finished using is introduced.
As shown in Figure 5, this charging method can comprise:
Step 501, PCEF entity know that the mandate business unit of reservation finishes using.
In the present embodiment, when data stream transmitting during to the PCEF entity, the PCEF entity can be added up business corresponding to the first rate group and use the unit, when business corresponding to this first rate group uses the unit to equal mandate business unit corresponding to the first rate group that the PCEF entity obtains from OCS, then the mandate business unit of explanation reservation is finished using, for example: rate corresponding to the first rate group is 1 yuan/M, the mandate business unit of reserving is 150M, and then mandate business unit corresponding to the first rate group this moment is 150M.
Step 502, PCEF entity send to OCS and upgrade credit control request information.
In the present embodiment, after the PCEF entity knows that the mandate business unit of reservation is finished using, send the renewal credit control request information to OCS, business corresponding to the first rate group and the first rate group that carry in this renewal credit control request information used unit (being 150M).
Step 503, OCS send the re-authorization request message to the TDF entity.
In the present embodiment, OCS receives the renewal credit control request information that the PCEF entity sends after the mandate business unit that the PCEF entity is reserved is finished using, obtain the first rate group and business corresponding to the first rate group upgraded in the credit control request information and use the unit.According to the incidence relation of this first rate group and the second rate group, obtain the second rate group of the first rate group association, then OCS sends the re-authorization request message to the TDF entity, carries the second rate group in this re-authorization request message.
Step 504, TDF entity send to OCS and upgrade credit control request information.
In the present embodiment, the TDF entity receives the re-authorization request message that OCS sends, get access to the second rate group of carrying in this re-authorization request message, obtain the employed professional unit that uses of application corresponding to the second rate group according to this second rate group statistics, for example: use employed business and use the unit to be 50M, then the TDF entity sends to OCS and upgrades credit control request information, carries the employed professional unit (being 50M) that uses of application corresponding to this second rate group in this renewal credit control request information.
Step 505, OCS reduce user account, recomputate the mandate business unit.
In the present embodiment, OCS uses unit and business corresponding to this first rate group to use the unit according to the business of this application, and user account is reduced.Particularly, be combined with the second rate group and carry out the charging processing in the business use unit that OCS will use, because business corresponding to this first rate group uses the unit to comprise the business use unit of this application, so OCS also business that this first rate group is corresponding uses the business of unit and this application to use the difference of unit be combined with the first rate group to carry out the charging processing, thus the reducing of realization user account.Namely, the business of using is used the product of the unit rate corresponding with the second rate group, the sum of products that the business corresponding with data flow used rate corresponding to difference that the business of unit and this application uses the unit and the first rate group is as this use volume of user, then from user account, deduct this use volume of user, wherein, the business of data flow uses the business of unit and this application to use the difference of unit also can be zero.For example: OCS receives the business of the application of TDF entity transmission and uses the unit to be 50M, business corresponding to the first rate group that receives the transmission of PCEF entity uses the unit to be 150M, then use the volume that uses of unit to be 50M * 2 yuan/M=100 unit for the business of this application, and use use volume that the business corresponding to data flow of not carrying this application in the unit use the unit to be (150M-50M) * 1 yuan/M=100 unit for business corresponding to the first rate group, thereby OCS is 100 yuan+100 yuan=200 yuan to the capable concrete volume of reducing of user account.
Because 300 yuan of the remaining sums of user account before using beginning, know that at PCEF OCS has carried out 200 yuan reducing to user account after the mandate business unit of reservation is finished using, then the remaining sum of user account is 100 yuan at this moment.Because the remaining sum of user account is upgraded, so mandate business unit corresponding to the second rate group of reserving in the mandate business unit that the first rate group of reserving in the PCEF entity is corresponding and the TDF entity also should upgrade, so that the user can continue to use this application to avoid simultaneously the user to exceed the quata to use.So OCS recomputates the first mandate business unit according to remaining sum and the first rate group of the rear user account of renewal, and recomputate the second mandate business unit according to remaining sum and the second rate group of user account after upgrading.For example: rate corresponding to the first rate group is that 1 yuan/M, rate corresponding to the second rate group are 2 yuan/M, the new balance of user account is 100 yuan, then OCS recomputates first and authorizes business unit to be: 100 yuan/(1 yuan/M)=and 100M, OCS recomputates second and authorizes business unit to be: 100 yuan/(2 yuan/M)=50M.
Step 506, OCS send to the TDF entity and upgrade Credit Control Answer message.
In the present embodiment, OCS is after obtaining the second mandate business unit that recomputates corresponding to the second rate group, send renewal Credit Control Answer message to the TDF entity, carry the second mandate business unit (being 50M) that this recomputates in this renewal control response message.Correspondingly, the TDF entity receives this renewal Credit Control Answer message, obtain the second rate group of carrying in this renewal Credit Control Answer message corresponding recomputate second authorize business unit, and the mandate business unit that will reserve be updated to recomputate second authorize business unit, for example: the TDF entity is updated to 50M with 150M.
Step 507, OCS send to the PCEF entity and upgrade Credit Control Answer message.
In the present embodiment, OCS is after obtaining the first mandate business unit that recomputates corresponding to the first rate group, the the first mandate business unit that relatively recomputates first and the size of the second mandate business unit that recomputates, with recomputate first authorize business unit and recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity, carry the second mandate business unit (being 50M) that this recomputates in this renewal control response message, correspondingly, the PCEF entity receives this renewal Credit Control Answer message, the the second mandate business unit that recomputates that obtains to carry in this renewal Credit Control Answer message, and the mandate business unit that will reserve is updated to the second mandate business unit that recomputates, for example: the PCEF entity is updated to 50M with 150M, exceeds the quata to use to avoid the user.
Further, after execution of step 507, the PCEF entity uses the unit to add up to the business of data flow again, the TDF entity uses the unit to add up to the business of this application again, until using to this, the TDF entity detection finishes, the TDF entity obtains the business of the again application of statistics and uses the unit, and the TDF entity sends to OCS and stops credit control request information, carries the business of again this application of statistics in this termination credit control request and uses unit and the second rate group.After OCS receives this termination credit control request information, obtain the business that stops this application in the credit control request information and use unit and the second rate group, incidence relation according to the first rate group and the second rate group, obtain again the business of data flow corresponding to the first rate group of statistics to the PCEF entity and use the unit, then the business that will use of OCS is used the unit to be combined with the second rate group to carry out the charging processing, because the business of this data flow use unit has comprised the business of this application and has used the unit, carried out the charging processing so OCS uses the business of unit and this application to use the difference of unit to be combined with the first rate group the business of this data flow again.Detailed process sees also the description of the present invention's middle step 413 embodiment illustrated in fig. 4 ~ step 418, does not repeat them here.
The charging method that the embodiment of the invention five provides further, receives the renewal credit control request information that the PCEF entity sends by OCS, and sends the re-authorization request message to the TDF entity after the mandate business unit that the PCEF entity is reserved is finished using; The TDF entity receives the re-authorization request message that OCS sends, and sends the renewal credit control request information to OCS; OCS receives the renewal credit control request information that the TDF entity sends, and according to the employed professional unit that uses of application corresponding to the second rate group user account is reduced, then remaining sum and the first rate group according to user account recomputates the first mandate business unit, and recomputate second according to the remaining sum of user account and the second rate group and authorize business unit, what OCS will recomputate second authorizes business unit to be carried to upgrade in the Credit Control Answer message and sends to the TDF entity, and will recomputate first authorize business unit and recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity.Thereby solved the problem that repeats charging, further, the phenomenon of also having avoided the user to exceed the quata to use.
Fig. 6 is the flow chart of charging method embodiment six of the present invention, and present embodiment is to before the present invention's step 413 embodiment illustrated in fig. 4, and the processing procedure when the PCEF entity detection changes to charge information is introduced.
As shown in Figure 6, this charging method can comprise:
Step 601, PCEF entity detection change to charge information.
In the present embodiment, when the PCEF entity will detect charge information and changes, charge information can affect rate corresponding to rate group, and wherein, this charge information can be position, APN (the Access Point Name at user place; Be designated hereinafter simply as APN) etc., one of ordinary skill in the art will appreciate that charge information affects in rate corresponding to rate group and the prior art consistent, the present invention is not described in detail at this.Then need OCS elder generation to carry out the charging processing according to the charge information before changing and rate group, and then carry out the charging processing according to the charge information after changing and rate group.
Business corresponding to the first rate group that the PCEF entity can be added up before charge information changes used the unit, and for example: rate corresponding to the first rate group before charge information changes is 1 yuan/M, and business corresponding to the first rate group uses the unit to be 90M.
Step 602, PCEF entity send to OCS and upgrade credit control request information.
In the present embodiment, after the PCEF entity detection changes to charge information, send to upgrade credit control request information to OCS, carry business use unit (being 90M) corresponding to charge information, the first rate group and the first rate group after the variation in this renewals credit control request information.
Step 603, OCS send the re-authorization request message to the TDF entity.
In the present embodiment, OCS receives the renewal credit control request information that the PCEF entity sends after the PCEF entity detection changes to charge information, obtain business use unit corresponding to charge information, the first rate group and the first rate group after the variation in the renewal credit control request information.According to the incidence relation of this first rate group and the second rate group, obtain the second rate group of the first rate group association, then OCS sends the re-authorization request message to the TDF entity, carries the second rate group in this re-authorization request message.
Step 604, TDF entity send to OCS and upgrade credit control request information.
In the present embodiment, the TDF entity receives the re-authorization request message that OCS sends, get access to the second rate group of carrying in this re-authorization request message, obtain the employed professional unit that uses of application corresponding to the second rate group according to this second rate group statistics, for example: use employed business and use the unit to be 70M, then the TDF entity sends to OCS and upgrades credit control request information, carries the employed professional unit (being 70M) that uses of application corresponding to this second rate group in this renewal credit control request information.
Step 605, OCS reduce user account, recomputate the mandate business unit.
In the present embodiment, OCS uses unit and business corresponding to this first rate group to use the unit according to the business of this application, and user account is reduced.Particularly, be combined with the second rate group and carry out the charging processing in the business use unit that OCS will use, because business corresponding to this first rate group uses the unit to comprise the business use unit of this application, so OCS also business that this first rate group is corresponding uses the business of unit and this application to use the difference of unit be combined with the first rate group to carry out the charging processing, thus the reducing of realization user account.Namely, the business of using is used the product of the unit rate corresponding with the second rate group, the sum of products that the business corresponding with data flow used rate corresponding to difference that the business of unit and this application uses the unit and the first rate group is as this use volume of user, then from user account, deduct this use volume of user, wherein, the business of data flow uses the business of unit and this application to use the difference of unit also can be zero.For example: OCS receives the business of the application of TDF entity transmission and uses the unit to be 70M, business corresponding to the first rate group that receives the transmission of PCEF entity uses the unit to be 90M, then use the volume that uses of unit to be 70M * 2 yuan/M=140 unit for the business of this application, and use use volume that the business corresponding to data flow of not carrying this application in the unit use the unit to be (90M-70M) * 1 yuan/M=20 unit for business corresponding to the first rate group, thereby OCS is 140 yuan+20 yuan=160 yuan to the capable concrete volume of reducing of user account.
Because 300 yuan of the remaining sums of user account before using beginning, PCEF detect charge information change after OCS user account has been carried out 160 yuan reducing, then the remaining sum of user account is 140 yuan at this moment.Because the remaining sum of user account is upgraded, and variation has also occured in charge information, so mandate business unit corresponding to the second rate group of reserving in the mandate business unit that the first rate group of reserving in the PCEF entity is corresponding and the TDF entity also should upgrade, so that the user can continue to use this application to avoid simultaneously the user to exceed the quata to use.So charge information and the first rate group of OCS according to the remaining sum of user account after upgrading, after changing recomputates first and authorize business unit, and the charge information according to the remaining sum of user account after upgrading, after changing and the second rate group recomputate second and authorize business unit.For example: rate corresponding to the first rate group was that rate corresponding to the second rate group was 4 yuan/M after 2 yuan/M, charge information changed after charge information changed, the remaining sum of user account is 140 yuan after upgrading, then OCS recomputates first and authorizes business unit to be: 140 yuan/(2 yuan/M)=and 70M, OCS recomputates second and authorizes business unit to be: 140 yuan/(4 yuan/M)=35M.
Step 606, OCS send to the TDF entity and upgrade Credit Control Answer message.
In the present embodiment, OCS is after obtaining the second mandate business unit that recomputates corresponding to rear the second rate group of charge information variation, send renewal Credit Control Answer message to the TDF entity, carry the second mandate business unit (being 35M) that this recomputates in this renewal control response message.Correspondingly, the TDF entity receives this renewal Credit Control Answer message, obtain the second rate group of carrying in this renewal Credit Control Answer message corresponding recomputate second authorize business unit, and the mandate business unit that will reserve be updated to recomputate second authorize business unit, for example: the TDF entity is updated to 35M with 150M.
Step 607, OCS send to the PCEF entity and upgrade Credit Control Answer message.
In the present embodiment, OCS is after obtaining the first mandate business unit that recomputates corresponding to rear the first rate group of charge information variation, the the first mandate business unit that relatively recomputates first and the size of the second mandate business unit that recomputates, with recomputate first authorize business unit and recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity, carry the second mandate business unit that this recomputates in this renewal control response message, be 35M, correspondingly, the PCEF entity receives this renewal Credit Control Answer message, the the second mandate business unit that recomputates that obtains to carry in this renewal Credit Control Answer message, and the mandate business unit that will reserve is updated to the second mandate business unit that recomputates, for example: the PCEF entity is updated to 35M with 150M, exceeds the quata to use to avoid the user.
Further, after execution of step 607, the PCEF entity uses the unit to add up to the business of data flow again, the TDF entity uses the unit to add up to the business of this application again, until using to this, the TDF entity detection finishes, the TDF entity obtains the business of the data flow of this application of carrying and uses unit (business of namely using is used the unit), the TDF entity sends to OCS and stops credit control request information, carries the business of again this application of statistics in this termination credit control request and uses unit and the second rate group.After OCS receives this termination credit control request information, obtain the business that stops this application in the credit control request information and use unit and the second rate group, incidence relation according to the first rate group and the second rate group, obtain again the business of data flow corresponding to the first rate group of statistics to the PCEF entity and use the unit, then OCS uses unit and the second rate group according to the business of this application, the business of the data flow that obtains from PCEF is used unit and the first rate group and new charge information to carry out charging and is processed, particularly, business that OCS will use is used unit and the second rate group and new charge information to be combined to carry out the charging processing, because the business of this data flow uses the unit to comprise that the business of this applications uses the unit, so using the business of this data flow difference and the first rate group of business use unit of unit and this application and new charge information to be combined, OCS carries out again the charging processing.Detailed process sees also the description of the present invention's middle step 413 embodiment illustrated in fig. 4 ~ step 418, does not repeat them here.
The charging method that the embodiment of the invention six provides further, receives the renewal credit control request information that the PCEF entity sends by OCS, and sends the re-authorization request message to the TDF entity after the PCEF entity detection changes to charge information; The TDF entity receives the re-authorization request message that OCS sends, and sends the renewal credit control request information to OCS; OCS receives the renewal credit control request information that the TDF entity sends, and use the unit that user account is reduced according to employed professional unit and business corresponding to the first rate group used of application corresponding to the second rate group, then according to the remaining sum of user account, charge information after the variation and the first rate group recomputate first and authorize business unit, and according to the remaining sum of user account, charge information after the variation and the second rate group recomputate second and authorize business unit, what OCS will recomputate second authorizes business unit to be carried to upgrade in the Credit Control Answer message and sends to the TDF entity, and will recomputate first authorize business unit and recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity.Thereby solved the problem that repeats charging, further, the phenomenon of also having avoided the user to exceed the quata to use.
Need to prove, the business of rate corresponding to corresponding rate, the second rate group of cited the first rate group, user account remaining sum, application uses unit and business corresponding to the first rate group to use each numerical value of unit in the various embodiments described above of the present invention, all be in order to be illustrated, the present invention is not as limit.
Fig. 7 is the structural representation of TDF physical embodiment one of the present invention, and as shown in Figure 7, the TDF entity of present embodiment can comprise: receiver module 11, detection module 12 and sending module 13, and wherein, receiver module 11 is used for receiving the data flow that the PCEF entity sends; And after sending module 13 sends application start message to the PCRF entity, receive the application detection control law that the PCRF entity sends, use the detection control law and carry the first rate group corresponding to data flow and the second rate group corresponding with the application of data flow coupling.Detection module 12 is for detection of the application of the data flow coupling that obtains to receive with receiver module 11.Sending module 13 is used for sending application start message to the PCRF entity, carry information detection module 12 acquisitions and the application data flow coupling in the application start message, and the IP five-tuple of data flow, so that the PCRF entity is used the second corresponding rate group according to the first rate group corresponding to IP five-tuple matched data stream according to the information matches of using; And after the detection control law is used in receiver module 11 receptions, send the credit line request of reserving to OCS, comprise the first rate group and the second rate group in the request of reservation credit line; So that OCS sets up the incidence relation of the first rate group and the second rate group; And after detection module 12 detects the application end, send the termination credit control request information to OCS, stop carrying in the credit control request information business use unit and the second rate group of application, so that OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The TDF entity of present embodiment can be for the technical scheme of carrying out embodiment of the method shown in Figure 1, and it realizes that principle is similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
The TDF entity that the embodiment of the invention one provides receives the data flow that the PCEF entity sends by receiver module, and detection module detects the application that obtains with this data flow coupling; Sending module sends application start message to the PCRF entity; Receiver module receives the application detection control law that the PCRF entity sends; Sending module sends the credit line request of reserving to OCS; So that OCS sets up the incidence relation of the first rate group and the second rate group; Detection module detects to be used after the end, sending module sends to OCS and stops credit control request information so that the business that OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and the first rate group as user's use volume, deducts user's use volume from user account; Thereby solved the problem that repeats charging.
In TDF physical embodiment two of the present invention, on the basis of TDF entity structure shown in Figure 7, above-mentioned receiver module 11 also is used for sending module 13 sends the request of reservation credit line to OCS after, receive the reservation credit line response that OCS sends, comprise the mandate business unit that OCS calculates according to the second rate batch total in the response of reservation credit line.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The TDF entity of present embodiment can be used for the performed technical scheme of embodiment of the method TDF entity shown in the execution graph 4, and its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
In the TDF of the embodiment of the invention three entity, on the basis of TDF entity structure shown in Figure 7, above-mentioned receiver module 11 also is used for receiving the re-authorization request message that OCS sends, and the re-authorization request message carries the second rate group; The re-authorization request message is to send to the TDF entity after OCS receives the PCEF entity after the mandate business unit of reserving is finished using or detecting charge information the renewal credit control request information that sends after changing; And after sending module 13 sends the renewal credit control request information, receiving the renewal Credit Control Answer message that OCS sends, it is the mandate business unit that the TDF entity recomputates according to the second rate group that renewal Credit Control Answer message is carried OCS.Above-mentioned sending module 13 also is used for after receiver module 11 receives the re-authorization request message, send the renewal credit control request information to OCS, upgrade and carry the employed professional unit that uses of application corresponding to the second rate group in the credit control request information, so that OCS uses the unit that user account is reduced according to the employed business of application corresponding to the second rate group, and recomputate the mandate business unit according to remaining sum and the first rate group of user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The TDF entity of present embodiment can be used for the performed technical scheme of embodiment of the method TDF entity shown in execution graph 5 or Fig. 6, and its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
Fig. 8 is the structural representation of PCRF physical embodiment one of the present invention, as shown in Figure 8, the PCRF entity of present embodiment can comprise: receiver module 21, determination module 22 and sending module 23, wherein, receiver module 21 is used for receiving the application start message that the TDF entity sends, application start message is carried the information of the application of the data flow coupling that receives with the TDF entity, and the IP five-tuple of data flow.Determination module 22 is used for the first rate group corresponding to IP five-tuple specified data stream that receive according to receiver module 21, and the information of the application that receives according to receiver module 21 determines to use the second corresponding rate group.Sending module 23 is used for sending application to the TDF entity and detects control law, use to detect control law and carry the second rate group that the first rate group that determination module 22 determines and determination module 22 are determined, so that the TDF entity sends to OCS with the first rate group and the second rate group, make OCS set up the incidence relation of the first rate group and the second rate group; So that OCS after the termination credit control request information that receives the transmission of TDF entity, uses the unit, uses unit, the second rate group and the first rate group to carry out the charging processing from the business of data flow corresponding to the first rate group of PCEF entity acquisition according to the business of the application that stops carrying in the credit control request information.That is: the business that will use of described OCS is used the product of the unit rate corresponding with the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The PCRF entity of present embodiment can be for the technical scheme of carrying out embodiment of the method shown in Figure 2, and it realizes that principle is similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
The PCRF entity that the embodiment of the invention one provides receives the application start message that the TDF entity sends by receiver module; Determination module is according to the first rate group corresponding to IP five-tuple specified data stream, and the second rate group of determining this application correspondence according to the information of this application; Sending module sends to use to the TDF entity and detects control law, use the detection control law and carry the first rate group and the second rate group, so that the TDF entity sends to OCS with the first rate group and the second rate group, make OCS set up the incidence relation of the first rate group and the second rate group; So that OCS after the termination credit control request information that receives the transmission of TDF entity, uses the unit, uses unit, the second rate group and the first rate group to carry out the charging processing from the business of data flow corresponding to the first rate group of PCEF entity acquisition according to the business of this application that stops carrying in the credit control request information.Thereby solved the problem that repeats charging.
In the PCRF of the embodiment of the invention two entity, on the basis of PCRF entity structure shown in Figure 8, above-mentioned sending module 23 also was used for before receiver module 21 receives application start message, carry out alternately with the PCEF entity, the charging policy that data flow is corresponding sends to the PCEF entity, and charging policy corresponding to data flow comprises the first rate group.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The PCRF entity of present embodiment can be used for the performed technical scheme of embodiment of the method PCRF entity shown in the execution graph 4, and its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
Fig. 9 is the structural representation of OCS embodiment one of the present invention, as shown in Figure 9, the OCS of present embodiment can comprise: receiver module 31, set up module 32 and processing module 33, wherein, receiver module 31 is used for receiving the reservation credit line request that the TDF entity sends, comprise the first rate group and the second rate group in the request of reservation credit line, the first rate group is the corresponding rate group of data flow that the TDF entity receives, and the second rate group is the corresponding rate group of application of data flow coupling; And receive the termination credit control request information that the TDF entity sends after detecting the application end, carry the business of application in the termination credit control request information and use unit and the second rate group.Setting up module 32 is used for setting up the first rate group of receiver module 31 receptions and the incidence relation of the second rate group after receiver module 31 receives the request of reservation credit line.Processing module 33 is used for the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The OCS of present embodiment can be for the technical scheme of carrying out embodiment of the method shown in Figure 3, and it realizes that principle is similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
The OCS that the embodiment of the invention one provides receives the reservation credit line request that the TDF entity sends by receiver module; Set up module and set up the incidence relation of the first rate group and the second rate group; Receiver module receives the termination credit control request information that the TDF entity sends after detecting the application end, carry the business of this application in the termination credit control request information and use unit and the second rate group; Processing module is used for the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.Thereby solved the problem that repeats charging.
Figure 10 is the structural representation of OCS embodiment two of the present invention, as shown in figure 10, the OCS that the embodiment of the invention provides is on the basis of OCS structure shown in Figure 9, above-mentioned processing module 33 can comprise: obtain submodule 331, send submodule 332 and receive submodule 333, wherein, obtain the first rate group that submodule 331 is used for obtaining the second rate group association; Send submodule 332 and be used for sending the re-authorization request message to the PCEF entity, carry in the re-authorization request message and obtain the first rate group that submodule 331 obtains; Receive submodule 333 and be used for after sending submodule 332 transmission re-authorization request messages, the business corresponding with the first rate group that reception PCEF entity sends used the unit.
Further, the OCS of present embodiment can also comprise: the first computing module 34 and the first sending module 35, wherein, the first computing module 34 is used for processing module deducts user's use volume from user account after, recomputates the mandate business unit according to remaining sum and the first rate group of user account; The mandate business unit that the first sending module 35 is used for the first computing module 34 is recomputated sends to the PCEF entity.
Further, the OCS of present embodiment also comprises: the second computing module 36 and the second sending module 37; Wherein, the second computing module 36 is used for after receiver module 31 receives the reservation credit line request of TDF entity transmission, calculate the first mandate business unit corresponding to the first rate group according to the first rate batch total, and the second mandate business unit corresponding according to the second rate group the second rate group; The second sending module 37 is used for sending the response of reservation credit line to the TDF entity, reserves and carries mandate business unit corresponding to the second rate group that the second computing module 36 calculates in the credit line response.
Further, when the first mandate business unit that the second sending module 37 also is used for calculating when the second computing module 36 is authorized business unit greater than second of the second computing module 36 calculating, send reservation credit line updating message to the PCEF entity, reserve and carry the second mandate business unit in the credit line updating message, be updated to second with the mandate business unit that will reserve on the PCEF entity and authorize business unit.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The OCS of present embodiment can be used for the performed technical scheme of embodiment of the method OCS shown in the execution graph 4, and its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
In the OCS of the embodiment of the invention three, on the basis of OCS structure shown in Figure 10, above-mentioned receiver module 31 also is used for receiving the renewal credit control request information that the PCEF entity sends after the mandate business unit that the PCEF entity is reserved is finished using before reception TDF entity is detecting the termination credit control request information that sends after the application end; And after the second sending module 37 sends the re-authorization request message to the TDF entity, receive the renewal credit control request information that the TDF entity sends, carry the employed professional unit that uses of application corresponding to the second rate group in the renewal credit control request information that the TDF entity sends.The second above-mentioned sending module 37 also is used for sending the re-authorization request message to the TDF entity, and the re-authorization request message carries the second rate group; And recomputate first at the second computing module 36 and authorize after business unit and second authorizes business unit, second authorize business unit to be carried to upgrade in the Credit Control Answer message and send to the TDF entity what the second computing module 36 recomputated; And with the second computing module 36 recomputate first authorize that business unit and the second computing module 36 recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity.Reduce user account the employed professional unit that uses of application corresponding to the second rate group that above-mentioned processing module 33 also is used for receiving according to receiver module 31.The second above-mentioned computing module 36 also is used for after 33 pairs of user accounts of processing module are reduced, remaining sum and the first rate group according to user account recomputate the first mandate business unit, and recomputate the second mandate business unit according to remaining sum and the second rate group of user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The OCS of present embodiment can be used for the performed technical scheme of embodiment of the method OCS shown in the execution graph 5, and its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
Figure 11 is the structural representation of OCS embodiment four of the present invention, and as shown in figure 11, the OCS that present embodiment provides also comprises on the basis of OCS embodiment three structures of the present invention: the 3rd sending module 38 and the 3rd computing module 39; Wherein, above-mentioned receiver module 31 also was used for before reception TDF entity is detecting the termination credit control request information that sends after the application end, receive the renewal credit control request information that the PCEF entity sends after the PCEF entity detection changes to charge information, the renewal credit control request information that the PCEF entity sends carries the first rate group and business corresponding to the first rate group used the unit; And after the 3rd sending module 38 sends the re-authorization request message to the TDF entity, receive the renewal credit control request information that the TDF entity sends, carry the employed professional unit that uses of application corresponding to the second rate group in the renewal credit control request information that the TDF entity sends.Reduce user account the employed professional unit that uses of application corresponding to the second rate group that business corresponding to the first rate group that above-mentioned processing module 33 also is used for receiving according to receiver module 31 uses unit and receiver module 31 to receive.The 3rd sending module 38 is used for sending the re-authorization request message to the TDF entity, and the re-authorization request message carries the second rate group corresponding to the first rate group; And recomputate first at the 3rd computing module 39 and authorize after business unit and second authorizes business unit, second authorize business unit to be carried to upgrade in the Credit Control Answer message and send to the TDF entity what the 3rd computing module 39 recomputated; And with the 3rd computing module 39 recomputate first authorize that business unit and the 3rd computing module 39 recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity.The 3rd computing module 39 is used for after 33 pairs of user accounts of processing module are reduced, remaining sum and the first rate group according to user account recomputate the first mandate business unit, and recomputate the second mandate business unit according to remaining sum and the second rate group of user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
The OCS of present embodiment can be used for the performed technical scheme of embodiment of the method OCS shown in the execution graph 6, and its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
Figure 12 is the structural representation of charge system embodiment one of the present invention, as shown in figure 12, the charge system of present embodiment can comprise: TDF entity 10, PCRF entity 20 and OCS30, wherein, TDF entity 10 is used for receiving the data flow that the PCEF entity sends, and detects the application that obtains with the data flow coupling; Send application start message to PCRF entity 20, carry the information of the application of mating with data flow in the application start message, and the IP five-tuple of data flow; Receive the application detection control law that PCRF entity 20 sends, use the detection control law and carry the first rate group and the second rate group; And to the request of OCS30 transmission reservation credit line, comprise the first rate group and the second rate group in the request of reservation credit line; After detecting the application end, send the termination credit control request information to OCS30, stop carrying in the credit control request information business use unit and the second rate group of application.TDF entity 10 can adopt the present invention's structure that provides embodiment illustrated in fig. 7 to realize, it accordingly, can carry out the performed technical scheme of TDF entity among the either method embodiment shown in Fig. 1 of the present invention or Fig. 4 ~ Fig. 6, its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
PCRF entity 20 is used for receiving the application start message that TDF entity 10 sends, and flows the first corresponding rate group according to IP five-tuple specified data, and the second rate group of determining to use correspondence according to the information of using; Send application to TDF entity 10 and detect control law, use the detection control law and carry the first rate group and the second rate group.PCRF entity 20 can adopt the present invention's structure that provides embodiment illustrated in fig. 8 to realize, it accordingly, can carry out the performed technical scheme of PCRF entity in Fig. 2 of the present invention or the embodiment of the method shown in Figure 4, its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
OCS30 is used for receiving the reservation credit line request that TDF entity 10 sends, and sets up the incidence relation of the first rate group and the second rate group; Receive the termination credit control request information that TDF entity 10 sends after detecting the application end, the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.The structure that OCS30 can adopt the arbitrary illustrated embodiment of Fig. 9 ~ Figure 11 of the present invention to provide realizes, it accordingly, can carry out the performed technical scheme of the OCS among the either method embodiment shown in Fig. 3 ~ Fig. 6 of the present invention, its realization principle and technique effect are similar, can referring to the record in above-described embodiment, repeat no more in detail herein.
Figure 13 is the structural representation of TDF physical embodiment three of the present invention, and as shown in figure 13, the structure chart of the another kind of TDF entity that provides for the embodiment of the invention adopts the general-purpose computing system structure, computer system can be specifically based on the computer of processor.This TDF entity comprises at least one processor 41, communication bus 42, memory 43 and at least one communication interface 44.
Processor 41 can be a general central processing unit (Central Processing Unit; Be designated hereinafter simply as CPU), microprocessor, ASIC(Application Specific Integrated Circuit) (application-specific integratedcircuit; Be designated hereinafter simply as ASIC), or one or more integrated circuit for the execution of control the present invention program program.
Wherein, communication bus 42 can comprise a path, transmission information between said modules.Communication interface 44 is used the device of any transceiver one class, be used for in case with other equipment or communication, such as Ethernet, wireless access network (Radio Access Network; Be designated hereinafter simply as RAN), WLAN (wireless local area network) (Wireless Local Area Networks; Be designated hereinafter simply as WLAN) etc.
Computer system also comprises one or more memories, can be read-only memory (read-onlymemory; Be designated hereinafter simply as ROM) maybe can store the static storage device of the other types of static information and instruction, random access memory (random access memory; Be designated hereinafter simply as RAM) or can store the dynamic memory of the other types of information and instruction, also can be EEPROM (Electrically Erasable Programmable Read Only Memo) (Electrically Erasable Programmable Read-Only Memory; Be designated hereinafter simply as EEPROM), read-only optical disc (Compact Disc Read-Only Memory; Be designated hereinafter simply as CD-ROM) or other optical disc storage, laser disc storage (comprising compression laser disc, laser dish, laser disc, digital universal laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in the program code that carries or store the expectation with instruction or data structure form and can be by any other medium of computer access, but be not limited to this.These memories are connected with processor by bus.
Wherein, memory 43 is used for the program code that the present invention program is carried out in storage, and the program code of carrying out the present invention program is kept in the memory 43, and controls execution by processor 41.These program codes specifically can comprise: receiver module 431, detection module 432 and sending module 433; Processor 41 is used for the module of execute store 43 storages, when above-mentioned module is carried out by processor 41, is achieved as follows function:
Receiver module 431 is used for receiving the data flow that the PCEF entity sends; And after sending module 433 sends application start message to the PCRF entity, receive the application detection control law that the PCRF entity sends, use the detection control law and carry the first rate group corresponding to data flow and the second rate group corresponding with the application of data flow coupling.
Detection module 432 is for detection of the application of the data flow coupling that obtains to receive with receiver module 431.
Sending module 433, be used for sending application start message to the PCRF entity, carry information detection module 432 acquisitions and the application data flow coupling in the application start message, and the IP five-tuple of data flow, so that the PCRF entity is used the second corresponding rate group according to the first rate group corresponding to IP five-tuple matched data stream according to the information matches of using; And after the detection control law is used in receiver module 431 receptions, send the credit line request of reserving to OCS, comprise the first rate group and the second rate group in the request of reservation credit line; So that the incidence relation of OCS the first rate group and the second rate group; And after detection module 432 detects the application end, send the termination credit control request information to OCS, stop carrying in the credit control request information business use unit and the second rate group of application, so that the business that OCS will use is used the product of the unit rate corresponding with the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
Optionally, receiver module 431 also is used at sending module 433 receiving the reservation credit line response that OCS sends after the credit line request is reserved in the OCS transmission, comprises the mandate business unit that OCS calculates according to the second rate batch total in the response of reservation credit line.
Optionally, receiver module 431 also is used for receiving the re-authorization request message that OCS sends, and the re-authorization request message carries the second rate group; The re-authorization request message is to send to the TDF entity after OCS receives the PCEF entity after the mandate business unit of reserving is finished using or detecting charge information the renewal credit control request information that sends after changing; And after sending module 433 sends the renewal credit control request information, receiving the renewal Credit Control Answer message that OCS sends, it is the mandate business unit that the TDF entity recomputates according to the second rate group that renewal Credit Control Answer message is carried OCS.Sending module 433 also is used for after receiver module 431 receives the re-authorization request message, send the renewal credit control request information to OCS, upgrade and carry the employed professional unit that uses of application corresponding to the second rate group in the credit control request information, so that OCS uses the unit that user account is reduced according to the employed business of application corresponding to the second rate group, and recomputate the mandate business unit according to remaining sum and the first rate group of user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
TDF entity device by present embodiment provides can solve the problem of repetition charging.
Figure 14 is the structural representation of OCS embodiment five of the present invention, and as shown in figure 14, the structure chart of the another kind of OCS that provides for the embodiment of the invention adopts the general-purpose computing system structure, computer system can be specifically based on the computer of processor.This OCS comprises at least one processor 51, communication bus 52, memory 53 and at least one communication interface 54.
Processor 51 can be a universal cpu, microprocessor, ASIC, or one or more integrated circuit for the execution of control the present invention program program.
Wherein, communication bus 52 can comprise a path, transmission information between said modules.Communication interface 54 is used the device of any transceiver one class, be used for in case with other equipment or communication, such as Ethernet, RAN, WLAN etc.
Computer system also comprises one or more memories, it can be the static storage device that ROM maybe can store the other types of static information and instruction, RAM or can store the dynamic memory of the other types of information and instruction, also can be EEPROM, CD-ROM or other optical disc storage, the laser disc storage (comprises the compression laser disc, the laser dish, laser disc, the digital universal laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus, perhaps can be used in the program code that carries or store the expectation with instruction or data structure form and can be by any other medium of computer access, but be not limited to this.These memories are connected with processor by bus.
Wherein, memory 53 is used for the program code that the present invention program is carried out in storage, and the program code of carrying out the present invention program is kept in the memory 53, and controls execution by processor 51.These program codes specifically can comprise: receiver module 531, set up module 532 and processing module 533; Processor 51 is used for the module of execute store 53 storages, when above-mentioned module is carried out by processor 51, is achieved as follows function:
Receiver module 531, be used for receiving the reservation credit line request that the TDF entity sends, reserve in the credit line request and comprise the first rate group and the second rate group, the first rate group is the corresponding rate group of data flow that the TDF entity receives, and the second rate group is the corresponding rate group of application of data flow coupling; And receive the termination credit control request information that the TDF entity sends after detecting the application end, carry the business of application in the termination credit control request information and use unit and the second rate group.
Set up module 532, be used for after receiver module 531 receives the request of reservation credit line, setting up the first rate group of receiver module 531 receptions and the incidence relation of the second rate group.
Processing module 533, be used for the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
Alternatively, processing module 533 can comprise: obtain submodule, send submodule and receive submodule, wherein, obtain the first rate group that submodule is used for obtaining the second rate group association; Send submodule and be used for sending the re-authorization request message to the PCEF entity, carry in the re-authorization request message and obtain the first rate group that submodule obtains; Receive submodule and be used for after sending submodule transmission re-authorization request message, the business corresponding with the first rate group that reception PCEF entity sends used the unit.Further, this program code can also comprise the first computing module and the first sending module, wherein, the first computing module is used for processing module deducts user's use volume from user account after, recomputates the mandate business unit according to remaining sum and the first rate group of user account; The mandate business unit that the first sending module is used for the first computing module is recomputated sends to the PCEF entity.Further, this program code can also comprise the second computing module and the second sending module; Wherein, the second computing module is used for after receiver module 531 receives the reservation credit line request of TDF entity transmission, calculate the first mandate business unit corresponding to the first rate group according to the first rate batch total, and the second mandate business unit corresponding according to the second rate group the second rate group; The second sending module is used for sending the response of reservation credit line to the TDF entity, reserves in the credit line response and carries mandate business unit corresponding to the second rate group that the second computing module calculates.Optionally, the second sending module also is used for when the first mandate business unit that the second computing module calculates is authorized business unit greater than second of the second computing module calculating, send reservation credit line updating message to the PCEF entity, reserve and carry the second mandate business unit in the credit line updating message, be updated to second with the mandate business unit that will reserve on the PCEF entity and authorize business unit.
Optionally, above-mentioned receiver module 531 also is used for receiving the renewal credit control request information that the PCEF entity sends after the mandate business unit that the PCEF entity is reserved is finished using before reception TDF entity is detecting the termination credit control request information that sends after the application end; And after the second sending module sends the re-authorization request message to the TDF entity, receive the renewal credit control request information that the TDF entity sends, carry the employed professional unit that uses of application corresponding to the second rate group in the renewal credit control request information that the TDF entity sends.The second sending module also is used for sending the re-authorization request message to the TDF entity, and the re-authorization request message carries the second rate group; And recomputate first at the second computing module and authorize after business unit and second authorizes business unit, second authorize business unit to be carried to upgrade in the Credit Control Answer message and send to the TDF entity what the second computing module recomputated; And with the second computing module recomputate first authorize that business unit and the second computing module recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity.Reduce user account the employed professional unit that uses of application corresponding to the second rate group that processing module 533 also is used for receiving according to receiver module 531.The second computing module also is used for after processing module is reduced user account, remaining sum and the first rate group according to user account recomputate the first mandate business unit, and recomputate the second mandate business unit according to remaining sum and the second rate group of user account.
Further, this program code can also comprise the 3rd sending module and the 3rd computing module; Wherein, receiver module 531 also was used for before reception TDF entity is detecting the termination credit control request information that sends after the application end, receive the renewal credit control request information that the PCEF entity sends after the PCEF entity detection changes to charge information, the renewal credit control request information that the PCEF entity sends carries the first rate group and business corresponding to the first rate group used the unit; And after the 3rd sending module sends the re-authorization request message to the TDF entity, receive the renewal credit control request information that the TDF entity sends, carry the employed professional unit that uses of application corresponding to the second rate group in the renewal credit control request information that the TDF entity sends.Reduce user account the employed professional unit that uses of application corresponding to the second rate group that business corresponding to the first rate group that above-mentioned processing module 533 also is used for receiving according to receiver module 531 uses unit and receiver module 531 to receive.The 3rd sending module is used for sending the re-authorization request message to the TDF entity, and the re-authorization request message carries the second rate group corresponding to the first rate group; And recomputate first at the 3rd computing module and authorize after business unit and second authorizes business unit, second authorize business unit to be carried to upgrade in the Credit Control Answer message and send to the TDF entity what the 3rd computing module recomputated; And with the 3rd computing module recomputate first authorize that business unit and the 3rd computing module recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to the PCEF entity.The 3rd computing module is used for after 533 pairs of user accounts of processing module are reduced, remaining sum and the first rate group according to user account recomputate the first mandate business unit, and recomputate the second mandate business unit according to remaining sum and the second rate group of user account.
The description of interaction flow between above-mentioned each module in specifically can reference method embodiment repeats no more here.
OCS equipment by present embodiment provides can solve the problem of repetition charging.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can be finished by the relevant hardware of program command.Aforesaid program can be stored in the computer read/write memory medium.This program is carried out the step that comprises above-mentioned each embodiment of the method when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
Need to prove that each embodiment in this specification all adopts the mode of going forward one by one to describe, identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses is difference with other embodiment.Especially, for apparatus embodiments, because its basic simlarity is in embodiment of the method, so describe fairly simplely, the implementation of each module concrete function gets final product referring to the part explanation of embodiment of the method.Apparatus embodiments described above only is schematic, wherein the module as the separating component explanation can or can not be physically to separate also, the parts that show as module can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation of not paying creative work.

Claims (22)

1. a charging method is characterized in that, comprising:
Online Charging System OCS receives the reservation credit line request that flow detection function TDF entity sends, comprise the first rate group and the second rate group in the request of described reservation credit line, described the first rate group is the corresponding rate group of data flow that described TDF entity receives, and described the second rate group is the corresponding rate group of application of described data flow coupling;
Described OCS sets up the incidence relation of described the first rate group and described the second rate group;
Described OCS receives the termination credit control request information that described TDF entity sends after detecting the application end, carry the business of described application in the described termination credit control request information and use unit and described the second rate group;
Described OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
2. method according to claim 1 is characterized in that, described OCS receives after the termination credit control request information of described TDF entity transmission after detecting the application end, also comprises:
Described OCS obtains the first rate group of described the second rate group association;
Described OCS sends the re-authorization request message to described PCEF entity, carries described the first rate group in the described re-authorization request message;
Described OCS receives the business of the described data flow corresponding with described the first rate group of described PCEF entity transmission and uses the unit.
3. method according to claim 1 is characterized in that, after the described use volume that deducts described user from user account, also comprises:
Described OCS recomputates the mandate business unit according to remaining sum and the described first rate group of described user account, and the mandate business unit that recomputates is sent to described PCEF entity.
4. method according to claim 1 is characterized in that, described Online Charging System OCS receives after the reservation credit line request of flow detection function TDF entity transmission, also comprises:
Described OCS calculates the first mandate business unit corresponding to described the first rate group according to described the first rate batch total, and calculates the second mandate business unit corresponding to described the second rate group according to described the second rate batch total;
Described OCS sends to described TDF entity and reserves the credit line response, carries mandate business unit corresponding to described the second rate group in the described reservation credit line response.
5. method according to claim 4 is characterized in that, also comprises:
If described first authorizes business unit to authorize business unit greater than described second, then described OCS sends to described PCEF entity and reserves the credit line updating message, carry described second in the described reservation credit line updating message and authorize business unit, be updated to described second with the mandate business unit that will reserve on the described PCEF entity and authorize business unit.
6. the described method of any one is characterized in that according to claim 1-5, and described OCS receives before the termination credit control request information of described TDF entity transmission after detecting the application end, also comprises:
Described OCS receives the renewal credit control request information that described PCEF entity sends after the mandate business unit that described PCEF entity is reserved is finished using;
Described OCS sends the re-authorization request message to described TDF entity, and described re-authorization request message carries described the second rate group;
Described OCS receives the renewal credit control request information that described TDF entity sends, and carries the employed professional unit that uses of application corresponding to described the second rate group in the renewal credit control request information that described TDF entity sends;
Described OCS reduces described user account according to the employed professional unit that uses of application corresponding to described the second rate group;
Described OCS recomputates the first mandate business unit according to remaining sum and the first rate group of described user account, and recomputates the second mandate business unit according to remaining sum and the second rate group of described user account;
The second mandate business unit that described OCS will recomputate is carried to upgrade in the Credit Control Answer message and sends to described TDF entity; And will recomputate first authorize business unit and recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to described PCEF entity.
7. the described method of any one is characterized in that according to claim 1-5, and described OCS receives before the termination credit control request information of described TDF entity transmission after detecting the application end, also comprises:
Described OCS receives the renewal credit control request information that described PCEF entity sends after described PCEF entity detection changes to charge information, the renewal credit control request information that described PCEF entity sends carries described the first rate group and business corresponding to described the first rate group used the unit;
Described OCS sends the re-authorization request message to described TDF entity, and described re-authorization request message carries the second rate group corresponding with described the first rate group;
Described OCS receives the renewal credit control request information that described TDF entity sends, and carries the employed professional unit that uses of application corresponding to described the second rate group in the renewal credit control request information that described TDF entity sends;
Described OCS uses unit and the employed professional unit that uses of application corresponding to described the second rate group that described user account is reduced according to business corresponding to described the first rate group;
Described OCS recomputates the first mandate business unit according to remaining sum and the first rate group of described user account, and recomputates the second mandate business unit according to remaining sum and the second rate group of described user account;
The second mandate business unit that described OCS will recomputate is carried to upgrade in the Credit Control Answer message and sends to described TDF entity; And will recomputate first authorize business unit and recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to described PCEF entity.
8. a charging method is characterized in that, comprising:
Flow detection function TDF entity receives strategy and the data flow that charge execution function PCEF entity sends, and detects the application that obtains with described data flow coupling;
Described TDF entity sends application start message to strategy and charging rule functions PCRF entity, carries the information of the application of mating with described data flow in the described application start message, and the Internet Protocol IP five-tuple of described data flow; So that described PCRF entity mates the first rate group corresponding to described data flow according to described IP five-tuple, according to described the second rate group of using correspondence of the information matches of described application;
Described TDF entity receives the application detection control law that described PCRF entity sends, and described application detects control law and carries described the first rate group and described the second rate group;
Described TDF entity sends to Online Charging System OCS and reserves the credit line request, comprises described the first rate group and described the second rate group in the request of described reservation credit line; So that described OCS sets up the incidence relation of described the first rate group and described the second rate group;
After detecting the application end, described TDF entity sends to described OCS and stops credit control request information, and carry the business of described application in the described termination credit control request information and use unit and described the second rate group, so that
Described OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
9. method according to claim 8 is characterized in that, described TDF entity is after described OCS sends the termination credit control request information, and described carrying out also comprises before the charging processing:
Described OCS obtains the first rate group of described the second rate group association;
Described OCS sends the re-authorization request message to described PCEF entity, carries described the first rate group in the described re-authorization request message;
Described OCS receives the business of the described data flow corresponding with described the first rate group of described PCEF entity transmission and uses the unit.
10. method according to claim 8 is characterized in that, described TDF entity also comprises after Online Charging System OCS sends the request of reservation credit line:
Described TDF entity receives the reservation credit line response that described OCS sends, and comprises the mandate business unit that described OCS calculates according to described the second rate batch total in the described reservation credit line response.
11. the described method of any one is characterized in that according to claim 8-10, also comprises:
Described TDF entity receives the re-authorization request message that described OCS sends, and described re-authorization request message carries described the second rate group; Described re-authorization request message is to send to described TDF entity after described OCS receives described PCEF entity after the mandate business unit of reserving is finished using or detecting charge information the renewal credit control request information that sends after changing;
Described TDF entity sends to described OCS and upgrades credit control request information, carries the employed professional unit that uses of application corresponding to described the second rate group in the described renewal credit control request information; So that described OCS uses the unit that user account is reduced according to the employed business of application corresponding to described the second rate group, and recomputate the mandate business unit according to remaining sum and the first rate group of described user account;
Described TDF entity receives the renewal Credit Control Answer message that described OCS sends, and it is the mandate business unit that described TDF entity recomputates according to described the second rate group that described renewal Credit Control Answer message is carried described OCS.
12. an Online Charging System OCS is characterized in that, comprising:
Receiver module, be used for receiving the reservation credit line request that flow detection function TDF entity sends, comprise the first rate group and the second rate group in the request of described reservation credit line, described the first rate group is the corresponding rate group of data flow that described TDF entity receives, and described the second rate group is the corresponding rate group of application of described data flow coupling; And receive the termination credit control request information that described TDF entity sends after detecting the application end, carry the business of described application in the described termination credit control request information and use unit and described the second rate group;
Set up module, be used for after described receiver module receives the request of reservation credit line, setting up the described first rate group of described receiver module reception and the incidence relation of described the second rate group;
Processing module, be used for the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
13. OCS according to claim 12 is characterized in that, described processing module also comprises:
Obtain submodule, be used for obtaining the first rate group of described the second rate group association;
Send submodule, be used for sending the re-authorization request message to described PCEF entity, carry the first rate group that described acquisition submodule obtains in the described re-authorization request message;
Receive submodule, be used for after described transmission submodule sends described re-authorization request message, the business that receives the described data flow corresponding with described the first rate group of described PCEF entity transmission is used the unit.
14. OCS according to claim 12 is characterized in that, also comprises: the first computing module and the first sending module;
Described the first computing module is used for described processing module deducts described user's use volume from user account after, recomputates the mandate business unit according to remaining sum and the described first rate group of described user account;
Described the first sending module, the mandate business unit that is used for described the first computing module is recomputated sends to described PCEF entity.
15. OCS according to claim 12 is characterized in that, also comprises: the second computing module and the second sending module;
Described the second computing module, be used for after described receiver module receives the reservation credit line request of TDF entity transmission, calculate the first mandate business unit corresponding to described the first rate group according to described the first rate batch total, and calculate the second mandate business unit corresponding to described the second rate group according to described the second rate batch total;
Described the second sending module is used for sending the response of reservation credit line to described TDF entity, carries mandate business unit corresponding to described the second rate group that described the second computing module calculates in the described reservation credit line response.
16. OCS according to claim 15 is characterized in that,
Described the second sending module, also be used for when the first mandate business unit that described the second computing module calculates is authorized business unit greater than second of described the second computing module calculating, send reservation credit line updating message to described PCEF entity, carry described second in the described reservation credit line updating message and authorize business unit, be updated to described second with the mandate business unit that will reserve on the described PCEF entity and authorize business unit.
17. the described OCS of any one is characterized in that according to claim 12-16,
Described receiver module, also be used for before the described TDF entity of reception is detecting the termination credit control request information that sends after the application end, receiving the renewal credit control request information that described PCEF entity sends after the mandate business unit that described PCEF entity is reserved is finished using; And at described the second sending module after described TDF entity sends the re-authorization request message, receive the renewal credit control request information that described TDF entity sends, carry the employed professional unit that uses of application corresponding to described the second rate group in the renewal credit control request information that described TDF entity sends;
Described the second sending module also is used for sending the re-authorization request message to described TDF entity, and described re-authorization request message carries described the second rate group; And recomputate first at described the second computing module and authorize after business unit and second authorizes business unit, second authorize business unit to be carried to upgrade in the Credit Control Answer message and send to described TDF entity what described the second computing module recomputated; And with described the second computing module recomputate first authorize that business unit and described the second computing module recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to described PCEF entity;
Described processing module, reduce described user account the employed professional unit that uses of application corresponding to described the second rate group that also is used for receiving according to described receiver module;
Described the second computing module, also be used for after described processing module is reduced described user account, remaining sum and the first rate group according to described user account recomputate the first mandate business unit, and recomputate the second mandate business unit according to remaining sum and the second rate group of described user account.
18. the described OCS of any one is characterized in that according to claim 12-16, also comprises: the 3rd sending module and the 3rd computing module;
Described receiver module, also be used for before the described TDF entity of reception is detecting the termination credit control request information that sends after the application end, receive the renewal credit control request information that described PCEF entity sends after described PCEF entity detection changes to charge information, the renewal credit control request information that described PCEF entity sends carries described the first rate group and business corresponding to described the first rate group used the unit; And at described the 3rd sending module after described TDF entity sends the re-authorization request message, receive the renewal credit control request information that described TDF entity sends, carry the employed professional unit that uses of application corresponding to described the second rate group in the renewal credit control request information that described TDF entity sends;
Described processing module, reduce described user account the employed professional unit that uses of application corresponding to described the second rate group that business corresponding to described the first rate group that also is used for receiving according to described receiver module uses unit and described receiver module to receive;
Described the 3rd sending module is used for sending the re-authorization request message to described TDF entity, and described re-authorization request message carries the second rate group corresponding to the first rate group; And recomputate first at described the 3rd computing module and authorize after business unit and second authorizes business unit, second authorize business unit to be carried to upgrade in the Credit Control Answer message and send to described TDF entity what described the 3rd computing module recomputated; And with described the 3rd computing module recomputate first authorize that business unit and described the 3rd computing module recomputate second authorize smaller value in the business unit to be carried to upgrade in the Credit Control Answer message to send to described PCEF entity;
Described the 3rd computing module, be used for after described processing module is reduced described user account, remaining sum and the first rate group according to described user account recomputate the first mandate business unit, and recomputate the second mandate business unit according to remaining sum and the second rate group of described user account.
19. a flow detection function TDF entity is characterized in that, comprising:
Receiver module is used for receiving the tactful data flow that sends with charge execution function PCEF entity; And at sending module after strategy and charging rule functions PCRF entity send application start message, receive the application detection control law that described PCRF entity sends, described application detects control law and carries the first rate group corresponding to described data flow and the second rate group corresponding with the application of described data flow coupling;
Detection module is for detection of the application of the data flow coupling that obtains to receive with described receiver module;
Described sending module, be used for sending application start message to described PCRF entity, carry information described detection module acquisition and application described data flow coupling in the described application start message, and the Internet Protocol IP five-tuple of described data flow, so that described PCRF entity mates the first rate group corresponding to described data flow according to described IP five-tuple, according to described the second rate group of using correspondence of the information matches of described application; And after described receiver module receives application detection control law, send the request of reservation credit line to Online Charging System OCS, comprise described the first rate group and described the second rate group in the request of described reservation credit line; So that described OCS sets up the incidence relation of described the first rate group and described the second rate group; And after described detection module detects the application end, send the termination credit control request information to described OCS, carry the business of described application in the described termination credit control request information and use unit and described the second rate group, so that described OCS uses the business of described application the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
20. TDF entity according to claim 19 is characterized in that,
Described receiver module, also be used for described sending module sends the request of reservation credit line to OCS after, receive the reservation credit line response that described OCS sends, comprise the mandate business unit that described OCS calculates according to described the second rate batch total in the described reservation credit line response.
21. TDF entity according to claim 19 is characterized in that,
Described receiver module also is used for receiving the re-authorization request message that described OCS sends, and described re-authorization request message carries described the second rate group; Described re-authorization request message is to send to described TDF entity after described OCS receives described PCEF entity after the mandate business unit of reserving is finished using or detecting charge information the renewal credit control request information that sends after changing; And after described sending module sends the renewal credit control request information, receive the renewal Credit Control Answer message that described OCS sends, it is the mandate business unit that described TDF entity recomputates according to described the second rate group that described renewal Credit Control Answer message is carried described OCS;
Described sending module, also be used for after described receiver module receives described re-authorization request message, send the renewal credit control request information to described OCS, carry the employed professional unit that uses of application corresponding to described the second rate group in the described renewal credit control request information, so that described OCS uses the unit that user account is reduced according to the employed business of application corresponding to described the second rate group, and recomputate the mandate business unit according to remaining sum and the first rate group of described user account.
22. a charge system is characterized in that, comprising: flow detection function TDF entity, strategy and charging rule functions PCRF entity and line charge system OCS;
Described TDF entity is used for receiving strategy and the data flow that charge execution function PCEF entity sends, and detects the application that obtains with described data flow coupling; Send application start message to described PCRF entity, carry the information of the application of mating with described data flow in the described application start message, and the Internet Protocol IP five-tuple of described data flow; Receive the application detection control law that described PCRF entity sends, described application detects control law and carries described the first rate group and described the second rate group; And to the request of described OCS transmission reservation credit line, comprise described the first rate group and described the second rate group in the request of described reservation credit line; After detecting the application end, send the termination credit control request information to described OCS, carry the business of described application in the described termination credit control request information and use unit and described the second rate group;
Described PCRF entity is used for receiving the application start message that described TDF entity sends, and determines the first rate group that described data flow is corresponding according to described IP five-tuple, and determines described the second corresponding rate group of using according to the information of described application; Send application to described TDF entity and detect control law, described application detects control law and carries described the first rate group and described the second rate group;
Described OCS is used for receiving the reservation credit line request that described TDF entity sends, and sets up the incidence relation of described the first rate group and described the second rate group; Receive the termination credit control request information that described TDF entity sends after detecting the application end, the business of described application is used the product of the unit rate corresponding with described the second rate group, the business corresponding with described data flow uses the sum of products of rate corresponding to difference that the business of unit and described application uses the unit and described the first rate group as user's use volume, deducts described user's use volume from user account.
CN201210591722XA 2012-12-31 2012-12-31 Charging method and device and system Pending CN103067903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210591722XA CN103067903A (en) 2012-12-31 2012-12-31 Charging method and device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210591722XA CN103067903A (en) 2012-12-31 2012-12-31 Charging method and device and system

Publications (1)

Publication Number Publication Date
CN103067903A true CN103067903A (en) 2013-04-24

Family

ID=48110331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210591722XA Pending CN103067903A (en) 2012-12-31 2012-12-31 Charging method and device and system

Country Status (1)

Country Link
CN (1) CN103067903A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812272A (en) * 2014-06-10 2016-07-27 华为技术有限公司 Processing method of service chain, device and system
WO2017161522A1 (en) * 2016-03-23 2017-09-28 华为技术有限公司 Method, apparatus and system for collecting statistics of amount of flow usage
CN108696363A (en) * 2017-02-25 2018-10-23 华为技术有限公司 A kind of charging method and device
CN109327634A (en) * 2017-07-31 2019-02-12 贵州白山云科技股份有限公司 A kind of method and device solving repetition charging
CN110324801A (en) * 2018-03-30 2019-10-11 华为技术有限公司 The method and apparatus of charging

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232386A (en) * 2008-02-20 2008-07-30 中兴通讯股份有限公司 Method for counting MMS flow quantity
WO2009036645A1 (en) * 2007-09-19 2009-03-26 Zte Corporation Method and system for ims network element charging information and method and system for charging
WO2009100669A1 (en) * 2008-02-01 2009-08-20 Huawei Technologies Co., Ltd. Charging method, control device, charging device and charging system
WO2011120462A2 (en) * 2011-05-06 2011-10-06 华为技术有限公司 Method for rating group processing, method for data service charging, and related device and system
CN102238515A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Method, device and system for complementarily deducting fee, and online charging system
US20120081557A1 (en) * 2010-10-05 2012-04-05 Kupinsky Stuart H Methods, systems, and computer readable media for user activated policy enhancement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036645A1 (en) * 2007-09-19 2009-03-26 Zte Corporation Method and system for ims network element charging information and method and system for charging
WO2009100669A1 (en) * 2008-02-01 2009-08-20 Huawei Technologies Co., Ltd. Charging method, control device, charging device and charging system
CN101232386A (en) * 2008-02-20 2008-07-30 中兴通讯股份有限公司 Method for counting MMS flow quantity
CN102238515A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Method, device and system for complementarily deducting fee, and online charging system
US20120081557A1 (en) * 2010-10-05 2012-04-05 Kupinsky Stuart H Methods, systems, and computer readable media for user activated policy enhancement
WO2011120462A2 (en) * 2011-05-06 2011-10-06 华为技术有限公司 Method for rating group processing, method for data service charging, and related device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3GPP: "《3GPP TS 23.203 V11.8.0》", 13 December 2012, article "3GPP TS 23.203 V11.8.0 Policy and charging control architecture" *
ERICSSON, ST-ERICSSON, ALLOT COMMUNICATIONS: "S2-121987 Usage monitoring congestion handling clarification", 《 S2-121987》, 25 May 2012 (2012-05-25) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812272A (en) * 2014-06-10 2016-07-27 华为技术有限公司 Processing method of service chain, device and system
CN105812272B (en) * 2014-06-10 2018-11-30 华为技术有限公司 Processing method, device and the system of business chain
WO2017161522A1 (en) * 2016-03-23 2017-09-28 华为技术有限公司 Method, apparatus and system for collecting statistics of amount of flow usage
CN108696363A (en) * 2017-02-25 2018-10-23 华为技术有限公司 A kind of charging method and device
CN108696363B (en) * 2017-02-25 2022-03-08 华为技术有限公司 Charging method and device
CN109327634A (en) * 2017-07-31 2019-02-12 贵州白山云科技股份有限公司 A kind of method and device solving repetition charging
CN110324801A (en) * 2018-03-30 2019-10-11 华为技术有限公司 The method and apparatus of charging

Similar Documents

Publication Publication Date Title
CN101808307B (en) Method and device for controlling strategy
CN102884757B (en) The selection of the server data stream charging method based on requested data, services
US10320991B2 (en) Policy and charging enforcement function apparatus, online charging apparatus, and online charging method
US10182161B2 (en) Modifying a quality of a connection between a terminal and an application server
CN103067903A (en) Charging method and device and system
CN102984768A (en) Method and device of real-time adjustment of on-line user bandwidth under shared charge rule
CN105101136B (en) A kind of charging method of data service, apparatus and system
CN103220651A (en) Method and equipment for carrying out charging control on application layer data
CN105577722A (en) Credit exchange method and apparatus thereof
CN104869552A (en) Method for reporting flow and device
CN104955013A (en) Usage monitoring method, apparatus and system
CN103957517A (en) OCS, leading end network element, pricing method and speed rate monitoring method
CN104735635A (en) Strategy control method and device
CN108401231A (en) A kind of charging method, device and system
CN1996858A (en) A method, system and server for charging the pre-paid account
CN102802146B (en) A kind of charging method and tactful and charge execution function equipment
CN105812149A (en) Data business charging method, system and associated device
CN104796876A (en) OCS (Online Charging System), PCEF (Policy and Charging Enforcement Function), PCRF (Policy and Charging Rules Function) and terminal bandwidth control method
US11223492B2 (en) Wireless communication method and device
CN104469728A (en) Charging method, device and system
CN109963260B (en) Method and device for determining service termination
CN107809551B (en) Method for controlling processing load of telecommunication service and related device and system
CN102131174B (en) Method, device and system for charging prepayment
CN101729266B (en) Charging method and device for link building messages
CN112383405B (en) Data service charging method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130424