CN103957517B - A kind of OCS, front end network element, wholesale price method and rate monitoring method - Google Patents

A kind of OCS, front end network element, wholesale price method and rate monitoring method Download PDF

Info

Publication number
CN103957517B
CN103957517B CN201410172514.5A CN201410172514A CN103957517B CN 103957517 B CN103957517 B CN 103957517B CN 201410172514 A CN201410172514 A CN 201410172514A CN 103957517 B CN103957517 B CN 103957517B
Authority
CN
China
Prior art keywords
rate
flow
ocs
target user
term
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.)
Active
Application number
CN201410172514.5A
Other languages
Chinese (zh)
Other versions
CN103957517A (en
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 CN201410172514.5A priority Critical patent/CN103957517B/en
Publication of CN103957517A publication Critical patent/CN103957517A/en
Application granted granted Critical
Publication of CN103957517B publication Critical patent/CN103957517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the present invention provides a kind of online charging system OCS, including:Authorization module for the credit control request that receiving front-end network element is sent, and replys Credit Control Answer to the front end network element;Receiving module, for receiving a plurality of rate record of the target user within the term of validity time at the front end network element;Rate module, for according to all tariff switch point in the term of validity time, to be divided into multiple accounting regimes, and determine the rate of each accounting regime the term of validity time;Wholesale price module, for being recorded according to a plurality of rate, the rate with each accounting regime calculates the expense of flow that the target user uses within the term of validity time.OCS provided in an embodiment of the present invention can reduce the information exchange time between OCS and front end network element, save the performance cost and network overhead of OCS and front end network element.The embodiment of the present invention additionally provides relevant front end network element, wholesale price method, rate monitoring method and wholesale price system.

Description

A kind of OCS, front end network element, wholesale price method and rate monitoring method
Technical field
The present invention relates to the communications field more particularly to a kind of OCS, front end network element, charging method and rate monitoring methods.
Background technology
With the development of science and technology, the application of data service is also more extensive.Therefore, data service is accurately counted Take also into operator there is an urgent need to.Usually, operator for data service according to duration or charge on traffic, wherein, fortune Battalion quotient more tends to by the way of charging by flow.When charging by flow, front end network element is to OCS (Online Charge System, online charging system) CCR (Credit Control Request, credit control request) is initiated, which includes The flow RSU (Requested-Service-Unit, request amount) that front end network element is asked to OCS.The reply of OCS forward ends network element/ CCA (Credit Control Answer, Credit Control Answer), which includes the flow GSU that OCS licenses to front end network element (Granted-Service-Unit, warrant quantity) and VT (Validity-Time, term of validity time).Wherein, the effect of VT For:The GSU that OCS is issued only is only effectively within the VT times, and front end network element must be sent to OCS again within the VT times CCR message, the flow that please be look for novelty.OCS controls the time interval of front end network element transmission CCR message with the value of VT.
In charging process, rate in different time periods is likely to difference.This just needs OCS (Online Charge System, online charging system) tariff switch point is identified in advance, then the data service before and after tariff switch point is carried out respectively Charging.CCR (Credit Control Request, credit control request)/CCA defined in the Gy interfaces of 3GPP specifications Only there are one TTC, (Tariff-Time-Change, rate are cut for (Credit Control Answer, Credit Control Answer) interaction Change a little) information, therefore, each VT can only support a tariff switch point.
But with the development of data service, content included in data service also becomes increasingly abundant, and influences rate switching Factor also increase therewith.Wherein, discount by time, account book come into force or account book failure, product subscription come into force or product subscription loses It imitates, pay out condition etc. and can all influence rate switching, it, may there are multiple tariff switch point so in a data service. Since a VT can only support a tariff switch point, the OCS has to the smaller of the value setting of VT.Due to VT value compared with It is small so that the time interval that front end network element sends CCR message is shorter, this results in the information exchange between OCS and front end network element Number is excessive, seriously consumes the performance cost and network overhead of OCS and front end network element.
Invention content
An embodiment of the present invention provides a kind of OCS, front end network element, wholesale price method, rate monitoring method and wholesale price system, The performance cost and network overhead of OCS and front end network element can be saved.
The first aspect of the embodiment of the present invention provides a kind of OCS, including:
Authorization module for the credit control request that receiving front-end network element is sent, and replys credit to the front end network element Control response, flow mandate of the credit control request for the front end network element to OCS requests to target user, institute It states Credit Control Answer and includes warrant quantity and effective time, the warrant quantity is used to represent that the OCS awards the target user The flow of power, the effective time are used to represent the time that the OCS authorizes the target user to use the warrant quantity;
Receiving module, it is a plurality of within the term of validity time for receiving the target user at the front end network element Rate records, and the rate record includes the target user and records the corresponding flow use monitored in the period in this rate Rate;
Rate module, for according to all tariff switch point in the term of validity time, the term of validity time to be drawn It is divided into multiple accounting regimes, and determines the rate of each accounting regime;
Wholesale price module, for being recorded according to a plurality of rate, the rate with each accounting regime calculates the mesh The expense of flow that mark user uses within the term of validity time.
With reference to the embodiment of the present invention in a first aspect, in the first realization method of the first aspect of the embodiment of the present invention, The rate is used to represent the expense that the target user uses specific discharge;
The rate record further includes:When this rate records the monitoring initial time of corresponding monitoring period with monitoring It is long;
The wholesale price module includes:
Flow rate calculation unit records the corresponding monitoring period for described rate in being recorded according to the rate It monitors initial time, monitor duration and the flow in the monitoring period and uses rate, calculate the target user described each The flow used in accounting regime;
Expense computing unit, for the flow used in each accounting regime according to the target user, with institute The rate of each accounting regime is stated, calculates the expense of flow that the target user uses in each accounting regime;
Expense summing elements, for the target user in the term of validity time of adding up in each accounting regime The expense of the flow used obtains the expense of flow that the target user uses within the term of validity time.
With reference to the first aspect of the embodiment of the present invention or the first realization method of first aspect, the of the embodiment of the present invention In second of realization method of one side, the OCS is further included:
Setting module, for setting correspondence of the flow using rate and rate;
The rate module includes:
Switching point determination unit for being recorded according to a plurality of rate, determines the target in the term of validity time The flow of user uses the changed moment point of rate, and the determining flow is institute using the changed moment point of rate State the tariff switch point in the term of validity time;
Time segments division unit, for according to all tariff switch point in the term of validity time, during by the term of validity Between be divided into multiple accounting regimes;
Rate determination unit, for determining the flow of the user in each accounting regime according to a plurality of rate record Using rate, and according to the flow rate of each accounting regime is determined using the correspondence of rate and rate.
With reference to the first aspect of the embodiment of the present invention or the first realization method of first aspect, the of the embodiment of the present invention In the third realization method of one side, the OCS is further included:
Preserving module, for a plurality of rate record to be stored in ticket, in order to which the OCS uses the target The expense for the flow that family uses within the term of validity time carries out regranting.
With reference to the first aspect of the embodiment of the present invention or the first realization method of first aspect, the of the embodiment of the present invention In 4th kind of realization method of one side, the OCS is further included:
First judgment module, for judging whether current scene meets the first prerequisite;
Information module, for when current scene meets the first prerequisite, generating rate monitoring information, the rate Monitoring information is used to inform that the flow of the front end network element execution monitoring objective user to use the operation of rate;
Sending module, for the rate monitoring information to be sent to the front end network element so that network element triggering in front end is held The flow of row monitoring objective user uses the operation of rate.
The second aspect of the embodiment of the present invention provides a kind of front end network element, including:
Request module for sending credit control request to OCS, and receives Credit Control Answer at the OCS, described Credit control request is used for the flow mandate to target user, the Credit Control Answer to OCS requests and includes warrant quantity With effective time, for representing the flow that the OCS authorizes the target user, the effective time is used for the warrant quantity Represent the time that the OCS authorizes the target user to use the warrant quantity;
Monitoring module within the term of validity time, monitoring the flow of the target user using rate, obtains more Rate record, a plurality of rate record is for representing that flow of the target user within the different monitoring periods uses speed Rate, the rate record include:The target user records the flow in the corresponding monitoring period in this rate and uses rate;
Output module, for a plurality of rate record to be sent to online charging system OCS so that the OCS according to The a plurality of rate record calculates the expense of flow that the target user uses within the term of validity time.
With reference to the second aspect of the embodiment of the present invention, in the first realization method of the second aspect of the embodiment of the present invention, The front end network element further includes:
Second judgment module for judging whether current scene meets the second prerequisite, meets in current scene During the second prerequisite, the flow for triggering the monitoring module monitoring objective user uses the operation of rate.
With reference to the second aspect of the embodiment of the present invention, in second of realization method of the second aspect of the embodiment of the present invention, The front end network element further includes:
Acquisition module, for obtaining the rate monitoring information that the OCS is sent, before the rate monitoring information is for informing The flow that network element performs monitoring objective user is held to use the operation of rate;
Trigger module, for triggering the operation that the flow of monitoring objective user uses rate.
The third aspect of the embodiment of the present invention provides a kind of wholesale price method, including:
The credit control request that online charging system OCS receiving front-ends network element is sent, and reply and believe to the front end network element With control response, the credit control request is used for flow mandate of the front end network element to OCS requests to target user, The Credit Control Answer includes warrant quantity and effective time, and the warrant quantity is used to represent the OCS to the target user The flow of mandate, the effective time are used to represent the time that the OCS authorizes the target user to use the warrant quantity;
The OCS receives a plurality of rate note of the target user within the term of validity time at the front end network element Record, rate record include the target user and record the flow in the corresponding monitoring period in this rate using rate;
The term of validity time is divided into more by the OCS according to all tariff switch point in the term of validity time A accounting regime, and determine the rate of each accounting regime;
The OCS is recorded according to a plurality of rate, and the rate with each accounting regime calculates the target user The expense of flow used within the term of validity time.
With reference to the third aspect of the embodiment of the present invention, in the first realization method of the third aspect of the embodiment of the present invention, The rate is used to represent the expense that the target user uses specific discharge;
The rate record further includes monitoring initial time and monitor duration that this rate records the corresponding monitoring period;
The OCS is recorded according to a plurality of rate, and the rate with each accounting regime calculates the target user The expense of flow used within the term of validity time includes:
When the monitoring that described rates of the OCS in rate record records the corresponding monitoring period originates Quarter, monitor duration and the flow in the monitoring period use rate, calculate the target user in each accounting regime The flow used;
The flow that the OCS is used according to the target user in each accounting regime, with each charging The rate of period calculates the expense of flow that the target user uses in each accounting regime;
The OCS adds up the flow that the target user in the term of validity time uses in each accounting regime Expense, obtain the expense of flow that the target user uses within the term of validity time.
With reference to the third aspect of the embodiment of the present invention or the first realization method of the third aspect, the of the embodiment of the present invention In second of realization method of three aspects, the method further includes:
The OCS settings flow uses the correspondence of rate and rate;
The term of validity time is divided into more by the OCS according to all tariff switch point in the term of validity time A accounting regime, and determine that the rate of each accounting regime includes:
The OCS is recorded according to a plurality of rate, and determining the flow of the target user in the term of validity time makes With the changed moment point of rate, and determine that the flow using the changed moment point of rate is the term of validity time Interior tariff switch point;
The term of validity time is divided into more by the OCS according to all tariff switch point in the term of validity time A accounting regime;
The OCS determines that the flow of the user in each accounting regime uses rate according to a plurality of rate record, And the rate of each accounting regime is determined using the correspondence of rate and rate according to the flow.
With reference to the third aspect of the embodiment of the present invention or the first realization method of the third aspect, the of the embodiment of the present invention In the third realization method of three aspects, the method further includes:
The a plurality of rate record is stored in ticket by the OCS, in order to the OCS to the target user in institute The expense for stating the flow used in the term of validity time carries out regranting.
With reference to the third aspect of the embodiment of the present invention or the first realization method of the third aspect, the of the embodiment of the present invention In 4th kind of realization method of three aspects, the method further includes:
The OCS judges whether current scene meets the first prerequisite;
If current scene meets the first prerequisite, the OCS generating rates monitoring information, the rate monitoring letter It ceases to inform that the flow of the front end network element execution monitoring objective user uses the operation of rate:
The rate monitoring information is sent to the front end network element by the OCS so that network element triggering in front end performs monitoring The flow of target user uses the operation of rate.
The fourth aspect of the embodiment of the present invention provides a kind of rate monitoring method, including:
Front end network element sends credit control request to online charging system OCS, and receives diameter credit control at the OCS and answer It answers, flow mandate of the credit control request for the front end network element to OCS requests to target user, the credit Response is controlled to include warrant quantity and effective time, the warrant quantity is used to represent the stream that the OCS authorizes the target user Amount, the effective time are used to represent the time that the OCS authorizes the target user to use the warrant quantity;
Within the term of validity time, the flow of target user described in the front end network element monitoring uses rate, obtains more Rate record, a plurality of rate record is for representing that flow of the target user within the different monitoring periods uses speed Rate, the rate record include:The target user records the flow in the corresponding monitoring period in this rate and uses rate;
The a plurality of rate record is sent to online charging system OCS by the front end network element so that the OCS is according to institute It states a plurality of rate record and calculates the expense of flow that the target user uses within the term of validity time.
With reference to the fourth aspect of the embodiment of the present invention, in the first realization method of the fourth aspect of the embodiment of the present invention, The flow of the front end network element monitoring target user is further included before using rate:
The front end network element judges whether current scene meets the second prerequisite;
If current scene meets the second prerequisite, the flow of the front end network element triggering monitoring objective user uses The operation of rate.
With reference to the fourth aspect of the embodiment of the present invention, in second of realization method of the fourth aspect of the embodiment of the present invention, The flow of the front end network element monitoring target user is further included before using rate:
The front end network element obtains the rate monitoring information that the OCS is sent, before the rate monitoring information is for informing The flow that network element performs monitoring objective user is held to use the operation of rate;
The flow of the front end network element triggering monitoring objective user uses the operation of rate.
5th aspect of the embodiment of the present invention provides a kind of wholesale price system, the first aspect including the embodiment of the present invention, The first realization method of the first aspect of the embodiment of the present invention to first aspect of the embodiment of the present invention the 4th kind of realization method Any one of the second aspect of the OCS that is provided and the embodiment of the present invention, the second aspect of the embodiment of the present invention the first The front end network element that any one of realization method and second of realization method of second aspect of the embodiment of the present invention are provided.
As can be seen from the above technical solutions, for the embodiment of the present invention in charging process, OCS receives mesh at the network element of front end Mark a plurality of rate record of user;According to all tariff switch point in the term of validity time, the term of validity time is drawn It is divided into multiple accounting regimes, and determines the rate of each accounting regime;It is recorded according to a plurality of rate, with each charging The rate of period calculates the expense of flow that the target user uses within the term of validity time.By such method, OCS is allowd to know flow of the target user within the VT times using rate, even if taking in the VT times there may be multiple Rate switching point, OCS can also be done directly with rate using rate according to flow and target user in the secondary term of validity time spent The calculating for the expense taken.OCS caused by can only supporting a tariff switch point this improves a VT and front end network element it Between information interaction times it is excessive the problem of so that a VT can support multiple tariff switch point, reduce OCS and front end net Information exchange time between member, has saved the performance cost and network overhead of OCS and front end network element.
Description of the drawings
Fig. 1 is OCS one embodiment structure charts in the embodiment of the present invention;
Fig. 2 is OCS or front end network element another example structure figure in the embodiment of the present invention;
Fig. 3 is front end network element one embodiment structure chart in the embodiment of the present invention;
Fig. 4 is wholesale price method one embodiment flow chart in the embodiment of the present invention;
Fig. 5 is medium-rate monitoring method one embodiment flow chart of the embodiment of the present invention.
Specific embodiment
An embodiment of the present invention provides a kind of OCS, front end network element, wholesale price method, rate monitoring method and wholesale price system, The information exchange time between OCS and front end network element can be reduced, saves the performance cost and network overhead of OCS and front end network element.
The basic structure of OCS provided in an embodiment of the present invention refers to Fig. 1, mainly includes:
Authorization module 101, for the credit control request that receiving front-end network element is sent, and forward end network element replys credit control Response processed.
Front end network element sends credit control request to the authorization module 101 of OCS, which is used for please to OCS Ask the flow mandate to target user.After authorization module 101 receives credit control request, forward end network element replys diameter credit control Response.Wherein, Credit Control Answer includes warrant quantity and effective time, and warrant quantity is used to represent what OCS authorized target user Flow, term of validity time are used to represent the time that OCS authorizes target user to use the warrant quantity, i.e.,:The warrant quantity that OCS is issued It is only only within the term of validity time effectively, and front end network element must send credit control to OCS again within the term of validity time System request, with the flow that please be look for novelty.It should be understood that OCS controls the front end network element to send credit control with the value of term of validity time Make the time interval of request.
Receiving module 102, for receiving a plurality of rate record of the target user within the term of validity time at the network element of front end;
Within the term of validity time, target user needs to complete data services related using flow.Front end network element can incite somebody to action The cutting of term of validity time is multiple monitoring periods, and the flow for monitoring target user in each monitoring period uses rate, then A plurality of rate is generated according to the flow of target user in each monitoring period using rate to record.Wherein, each rate records Including:Target user records the flow in the corresponding monitoring period in this rate and uses rate.
In the present embodiment, receiving module 102 receives a plurality of rate record of target user at the network element of front end.
Wherein, which can be a variety of forms, if rate changes detail list, not limited in the present embodiment It is fixed.Wherein, the front end network element network elements such as including GGSN.
Rate module 103, for according to all tariff switch point in the term of validity time, the term of validity time being divided into more A accounting regime, and determine the rate of each accounting regime;
Within the term of validity time, due to discount by time, account book come into force or account book failure, product subscription comes into force or product is ordered Purchase failure, the influence for paying out the factors such as condition, target user also can be different using the rate of flow in different moments.Wherein, take The as tariff switch point of term of validity time at the time of rate changes.
In the present embodiment, rate module 103 draws the term of validity time according to all tariff switch point in the term of validity time It is divided into multiple accounting regimes, and determines the rate of each accounting regime.Preferably, rate module 103 can be by each two rate Period between switching point is determined as an accounting regime, it is possible to understand that, target user uses in an accounting regime The rate of flow is constant.
Wherein, it is not limited in meaning the present embodiment represented by rate, rate can be used to indicate that target user uses The expense of specific discharge can be used for representing the expense that target user uses flow within the unit interval, can also represent it His meaning.
Wholesale price module 104, for being recorded according to a plurality of rate, the rate with each accounting regime calculates target user and exists The expense of the flow used in the term of validity time.
In the present embodiment, receiving module 102 receives a plurality of rate record of target user at the network element of front end;Rate module The term of validity time according to all tariff switch point in the term of validity time, is divided into multiple accounting regimes, and determine each by 103 The rate of accounting regime;Final wholesale price module 104 calculates the price expense of flow that target user uses within the term of validity time. By such method so that OCS can know flow of the target user within the term of validity time using rate, even if this is effectively There may be multiple tariff switch point, OCS in time phase to be done directly according to flow using rate and rate to this time The calculating for the expense that target user spends in the term of validity time.This improves a term of validity times can only support an expense The problem of information interaction times caused by rate switching point between OCS and front end network element are excessive a so that term of validity time can To support multiple tariff switch point, reduce the information exchange time between OCS and front end network element, saved OCS and front end network element Performance cost and network overhead.
Although in the present embodiment, rate can be used to indicate that target user using specific discharge expense, can be used for Represent that target user uses the expense of flow within the unit interval, but operator at this stage is often more likely to according to target User carrys out charging using the number of flow.It is advantageous to, the rate in the present embodiment can be used to indicate that target user uses The expense of specific discharge.
In the present embodiment, each rate record includes target user and is recorded in the corresponding monitoring period in this rate Flow uses rate.In order to determine the monitoring period, it is preferred that can specifically include in each rate record:Monitoring starting The flow of the target user uses rate in moment, monitor duration and the monitor duration.It should be understood that the monitoring Since the period be exactly monitoring initial time, and duration is the period of monitor duration.
In the present embodiment, wholesale price module 104 makes there is no how restriction specifically calculates target user within the term of validity time The expense of flow.Wherein, wholesale price module 104 realizes the expense of flow that target user uses within the term of validity time that calculates Method have very much, for example, wholesale price module 104 can be refined as:Flow rate calculation unit 1041, for being recorded according to the rate In described rate record it is corresponding monitoring the period monitoring initial time, monitor duration and monitoring the period in flow Using rate, the flow that the target user uses in each accounting regime is calculated;Expense computing unit 1042, is used for According to the flow that the target user uses in each accounting regime, the rate with each accounting regime calculates The expense of flow that the target user uses in each accounting regime;Expense summing elements 1043, for adding up The expense of flow that the target user uses in each accounting regime in the term of validity time is stated, the target is obtained and uses The expense of flow that family uses within the term of validity time.
Particularly, operator can provide different bandwidth and corresponding price policy to user, for example, when user enjoys height Rate are with regard to somewhat expensive during bandwidth, and rate are with regard to relatively cheap when the bandwidth on the contrary enjoyed as user lowers.But sometimes, high bandwidth It is theoretic high broadband, the bandwidth of promise may not necessarily be provided to during the use of user, at this time such as according further to high band The price policy charge of width charge, can lead to the reduction of user satisfaction with the service.And in embodiments of the present invention, due to OCS The flow of target user can be obtained using rate, so OCS easily can carry out charging according to flow using rate.For It realizes and charging is carried out using rate according to flow, in the present embodiment, OCS further includes setting module 105, for setting flow Using the correspondence of rate and rate, such as when flow is higher using rate, corresponding rate is also higher;When flow uses When rate is relatively low, corresponding rate is relatively low, or the correspondence of other forms does not limit herein.Due to setting Rate uses the relationship of rate with flow, so tariff switch point using the change point of rate also has correspondence with flow, Preferably, rate module can be refined as:Switching point determination unit 1031 for being recorded according to a plurality of rate, determines the term of validity The flow of the target user uses the changed moment point of rate in time, and determines that flow is changed using rate Moment point is the tariff switch point in the term of validity time;Time segments division unit 1032, for according in the term of validity time The term of validity time is divided into multiple accounting regimes by all tariff switch point;Rate determination unit 1033, for according to a plurality of speed Rate record determines the flow of user in each accounting regime using rate, and corresponding with rate using rate according to the flow Relationship determines the rate of each accounting regime.In this way, operator can realize that rate uses being associated with for rate with flow, batch Valency module 104 can be realized carries out charging according to flow using rate.
Preferably, OCS further includes preserving module 106, for a plurality of rate record to be stored in ticket, in order to OCS Regranting is carried out to the expense of flow that the target user uses within the term of validity time.Carry out valency is needed when encountering in this way During the scene of lattice expense regranting, OCS can be recorded according to a plurality of rate, restore target user well within the term of validity time Using the process of flow, the price expense for the flow that target user uses within the term of validity time is accurately calculated.
The performance cost and network overhead of front end network element can be increased by carrying out rate policer operation, and in practical applications, and Not all scene is required for the accurate rate done to monitor.Therefore, OCS can control front end network element only in the embodiment of the present invention Rate monitoring is carried out to the scene for meeting prerequisite, so as to reduce equipment cost and network bandwidth cost.To realize this function, OCS also needs to include:First judgment module 107, for judging whether current scene meets the first prerequisite;Information module 108, for when current scene meets the first prerequisite, generating rate monitoring information, the rate monitoring information to be used to accuse Know that the flow of front end network element execution monitoring objective user uses the operation of rate;Sending module 109, for the rate to be monitored Information is sent to the front end network element so that the flow that network element triggering in front end performs monitoring objective user uses the operation of rate. Wherein, the first prerequisite can be the spontaneous settings of OCS, or operator sets, and the first prerequisite includes:Target is used Family is prepaid user, 3G/4G user, specific number section user, particular brand or orders certain product/set meal user;Present period For preferential period or other specified times section etc..
The OCS in the embodiment of the present invention is described from the angle of blocking functional entity above, below from hardware The OCS in the embodiment of the present invention is described in the angle of processing, referring to Fig. 2, the OCS200 in the embodiment of the present invention is another Embodiment includes:
Input unit 201, output device 202, processor 203 and the (processor 203 in wherein OCS200 of memory 204 Quantity can be one or more, in Fig. 2 by taking a processor 203 as an example).In some embodiments of the invention, input dress Put 201, output device 202, processor 203 and memory 204 can by bus or other means connection, wherein, with logical in Fig. 2 It crosses for bus connection.
Wherein, by the operational order that memory 204 is called to store, processor 203 is used to perform following steps:Before reception The credit control request that network element is held to send, and reply Credit Control Answer to the front end network element;It is connect at the front end network element Receive a plurality of rate record of the target user within the term of validity time;According to all rates in the term of validity time The term of validity time is divided into multiple accounting regimes, and determine the rate of each accounting regime by switching point;According to described more Rate record, the rate with each accounting regime calculate what the target user used within the term of validity time The expense of flow.
The embodiment of the present invention additionally provides a kind of front end network element, and basic structure refers to Fig. 3, mainly includes:
Request module 301 for sending credit control request to OCS, and receives Credit Control Answer at the OCS;
Front end network element sends credit control request to OCS, which is used to ask to target user's to OCS Flow mandate.After front end network element receives credit control request, forward end network element replys Credit Control Answer.Wherein, credit control Response processed includes warrant quantity and effective time, and warrant quantity for representing the flow that OCS authorizes target user, use by the term of validity time In representing time of the OCS mandate target users using the warrant quantity, i.e.,:The warrant quantity that OCS is issued is only in the term of validity time It is inside only effectively, and front end network element must send credit control request to OCS again within the term of validity time, with what please be look for novelty Flow.It should be understood that OCS controls the time interval of front end network element transmission credit control request with the value of term of validity time.
Monitoring module 302 within the term of validity time, monitoring the flow of the target user using rate, obtains It is recorded to a plurality of rate;
Within the term of validity time, the flow of target user can be changed using rate with the time.In the embodiment of the present invention, The flow of front end network element monitoring target user uses rate, obtains a plurality of rate record.Wherein, the front end network element nets such as including GGSN Member.
In the embodiment of the present invention, the flow of front end network element monitoring target user refers to front end network element monitoring using rate Target user uses the rate of flow within the entire term of validity time.
The term of validity time can be split as multiple monitoring periods by front end network element, by target user within each monitoring period Flow rate record is denoted as using rate, can be obtained by a plurality of rate record in this way.Wherein, a plurality of rate note It employs in representing flow of the target user within the different monitoring periods using rate, each rate record includes target user The flow in the corresponding monitoring period, which is recorded, in this rate uses rate.
Output module 303, for a plurality of rate record to be sent to online charging system OCS so that the OCS roots The expense of flow used within the term of validity time according to a plurality of rate record calculating target user.
In the present embodiment, the flow of 302 monitoring objective user of monitoring module is raw according to flow using rate using rate It is recorded into a plurality of rate;The a plurality of rate record is sent to OCS by final output module 303 so that OCS is according to a plurality of rate Record calculates the expense of flow that the target user uses within the term of validity time.OCS is allowd to know that target is used in this way Flow of the family within the VT times uses rate, even if there may be multiple tariff switch point in the VT times, OCS can also basis Flow is done directly the calculating of the expense spent to target user in the secondary term of validity time using rate and rate.Thus change Being apt to a VT can only support the information interaction times caused by a tariff switch point between OCS and front end network element are excessive to ask Topic a so that VT can support multiple tariff switch point, reduce the information exchange time between OCS and front end network element, save The performance cost and network overhead of OCS and front end network element.
302 monitoring objective user of monitoring module is had much within the entire term of validity time using the method for the rate of flow, Including:The term of validity time is split as multiple monitoring periods by monitoring module 302, and for each monitoring period, monitoring module 302 is supervised The flow that control target user uses within the monitoring period, and the flow that target user is used within the monitoring period and the prison The ratio of the duration of period is controlled, i.e. average flow rate of the target user within the monitoring period uses rate as target user at this The flow monitored in the period uses rate;
Or, the term of validity time is split as multiple monitoring periods by monitoring module 302, for each monitoring period, monitors mould Block 302 chooses a moment point within the monitoring period, using the momentary rate of target user at the moment point as target user Flow within the monitoring period uses rate.Wherein, the method for the momentary rate of 302 monitoring objective user of monitoring module can be with For:The flow that 302 monitoring objective user of monitoring module uses in shorter duration, and by target user in the shorter duration The ratio of the flow inside used and shorter duration, the momentary rate as target user.
It should be understood that each the duration of monitoring period is smaller, the flow of each monitoring period being calculated uses speed Rate is just closer to instantaneous value.But it is excessive using rate in order to avoid the flow of record, excessively consume front end network element and the place of OCS Rationality energy and network bandwidth, monitor the duration of period should not take it is too small.
Monitoring module 302 has the method that the term of validity time is split as multiple monitoring periods very much, including monitoring module 302 The term of validity time is split as by the term of validity by multiple monitoring periods or monitoring module 302 according to the difference standard that operator sets Time is split as duration equal multiple monitoring periods, or other method for splitting do not limit herein.Monitoring module 302 monitoring objective users may be other methods using the rate of flow within the entire term of validity time, not limit herein.
Flow of the 302 monitoring objective user of monitoring module within each monitoring period is using rate may there are errors. Preferably, each the error of monitoring period can stay in amendment in next monitoring period, and final error is supervised at the last one It controls in the period and corrects.
Preferably, the monitoring initial time of each monitoring period can be also recorded in by monitoring module 302 with monitor duration In rate record, in this way, do not comprise only target user in every rate record records the corresponding monitoring period in this rate Interior flow uses rate, further includes monitoring initial time and monitor duration that this rate records the corresponding monitoring period. In this way, OCS can easily obtain each accounting regime according to the monitoring initial time and monitor duration of each monitoring period Corresponding rate record, the flow so as to be used within the term of validity time target user carry out wholesale price.
When OCS breaks down or when the network communication exception of front end network element and OCS, front end network element may be switched to ByPass scenes, and export ByPass tickets.Preferably, which is stored in ByPass words by output module 303 Dan Zhong.
The performance cost and network overhead of front end network element can be increased by carrying out rate policer operation, and in practical applications, and Not all scene is required for the accurate rate done to monitor.Therefore, in the embodiment of the present invention, front end network element can be only to meeting The scene of prerequisite carries out rate monitoring, so as to reduce equipment cost and network bandwidth cost.Wherein, front end network element can be certainly Hair judges whether to current scene progress rate monitoring.In order to realize this function, front end network element also needs to include second to sentence Disconnected module 304 for judging whether current scene meets the second prerequisite, meets the second prerequisite in current scene When, the flow for triggering the monitoring module monitoring objective user uses the operation of rate.Wherein, before the second prerequisite can be Hold the spontaneous setting of network element, or operator sets, and the second prerequisite includes:Target user is prepaid user, 3G/4G User, specific number section user, particular brand order certain product/set meal user;Current scene for ByPass put logical scene or its His given scenario;Present period is preferential period or other specified times section etc..Front end network element can also be controlled by OCS to working as Preceding scene carries out rate monitoring, and in order to realize this function, front end network element also needs to include acquisition module 305, for obtaining OCS The rate monitoring information of transmission, the rate monitoring information are used to inform that the flow of front end network element execution monitoring objective user uses speed The operation of rate;Trigger module 306, for triggering the operation that the flow of monitoring objective user uses rate.
The front end network element in the embodiment of the present invention is described from the angle of blocking functional entity above, below from The front end network element in the embodiment of the present invention is described in the angle of hardware handles, please referring still to Fig. 2, in the embodiment of the present invention Network element 200 another embodiment in front end includes:
Input unit 201, output device 202, processor 203 and the (processing wherein in front end network element 200 of memory 204 The quantity of device 203 can be one or more, in Fig. 2 by taking a processor 203 as an example).In some embodiments of the invention, it is defeated Enter device 201, output device 202, processor 203 and memory 204 can by bus or other means connection, wherein, in Fig. 2 For being connected by bus.
Wherein, by the operational order that memory 204 is called to store, processor 203 is used to perform following steps:To OCS Credit control request is sent, and Credit Control Answer is received at the OCS;Within the term of validity time, monitor the target and use The flow at family uses rate, obtains a plurality of rate record;The a plurality of rate record is sent to online charging system OCS, is made Obtain the expense of flow that the OCS is used according to a plurality of rate record calculating target user within the term of validity time With.
The embodiment of the present invention additionally provides a kind of charging method, and basic procedure refers to Fig. 4, mainly includes:
401st, the credit control request that OCS receiving front-ends network element is sent, and forward end network element replys Credit Control Answer;
Front end network element sends credit control request to OCS, which is used to ask to target user's to OCS Flow mandate.After OCS receives credit control request, forward end network element replys Credit Control Answer.Wherein, Credit Control Answer Including warrant quantity and effective time, for representing the flow that OCS authorizes target user, the term of validity time is used to represent warrant quantity OCS authorizes time of the target user using the warrant quantity, i.e.,:The warrant quantity that OCS is issued only is only within the term of validity time Effectively, and front end network element must send credit control request to OCS again within the term of validity time, with the flow that please be looked for novelty. It should be understood that OCS controls the time interval of front end network element transmission credit control request with the value of term of validity time.
402nd, OCS receives a plurality of rate record of the target user within the term of validity time at the network element of front end;
Within the term of validity time, target user needs to complete data services related using flow.Front end network element can incite somebody to action The cutting of term of validity time is multiple monitoring periods, and the flow for monitoring target user in each monitoring period uses rate, then A plurality of rate is generated according to the flow of target user in each monitoring period using rate to record.Wherein, each rate records Including:Target user records the flow in the corresponding monitoring period in this rate and uses rate.
In the present embodiment, OCS receives a plurality of rate record of target user at the network element of front end.
Wherein, which can be a variety of forms, if rate changes detail list, not limited in the present embodiment It is fixed.Wherein, the front end network element network elements such as including GGSN.
403rd, OCS is according to all tariff switch point in the term of validity time, when the term of validity time is divided into multiple chargings Section, and determine the rate of each accounting regime;
Within the term of validity time, due to discount by time, account book come into force or account book failure, product subscription comes into force or product is ordered Purchase failure, the influence for paying out the factors such as condition, target user also can be different using the rate of flow in different moments.Wherein, take The as tariff switch point of term of validity time at the time of rate changes.
In the present embodiment, the term of validity time is divided into multiple by OCS according to all tariff switch point in the term of validity time Accounting regime, and determine the rate of each accounting regime.Preferably, OCS can be by the time between each two tariff switch point Section is determined as an accounting regime, it is possible to understand that, target user is constant using the rate of flow in an accounting regime 's.
Wherein, it is not limited in meaning the present embodiment represented by rate, rate can be used to indicate that target user uses The expense of specific discharge can be used for representing the expense that target user uses flow within the unit interval, can also represent it His meaning.
404th, OCS is recorded according to a plurality of rate, the rate with each accounting regime, calculates target user in the term of validity The expense of the flow used in time.
OCS obtains a plurality of rate record, after the rate of each accounting regime, it is possible to be calculated according to these parameters The expense of flow that target user uses within the term of validity time.Specific computational methods have very much, do not limit herein.
In the present embodiment, OCS receives a plurality of rate record of target user at the network element of front end;According in the term of validity time All tariff switch point, the term of validity time is divided into multiple accounting regimes, and determine the rate of each accounting regime;Finally Calculate the expense of flow that target user uses within the term of validity time.By such method so that OCS can know target Flow of the user within the term of validity time uses rate, even if there may be multiple tariff switch point, OCS in the term of validity time The meter of the expense spent to target user in the secondary term of validity time can also be done directly using rate and rate according to flow It calculates.This improves a term of validity times can only support caused by a tariff switch point between OCS and front end network element The problem of information interaction times are excessive a so that term of validity time can support multiple tariff switch point, reduce OCS with before The information exchange time between network element is held, has saved the performance cost and network overhead of OCS and front end network element.
Although in the present embodiment, rate can be used to indicate that target user using specific discharge expense, can be used for Represent that target user uses the expense of flow within the unit interval, but operator at this stage is often more likely to according to target User carrys out charging using the number of flow.It is advantageous to, the rate in the present embodiment can be used to indicate that target user uses The expense of specific discharge.
In the present embodiment, each rate record includes target user and is recorded in the corresponding monitoring period in this rate Flow uses rate.In order to determine the monitoring period, it is preferred that can specifically include in each rate record:Monitoring starting The flow of the target user uses rate in moment, monitor duration and the monitor duration.It should be understood that the monitoring Since the period be exactly monitoring initial time, and duration is the period of monitor duration.
In the present embodiment, there is no the streams that restriction OCS calculating target users use within the term of validity time for step 404 The method of the expense of amount.Wherein, calculating the method for the expense of flow that target user uses within the term of validity time has very It is more, such as:Monitoring initial time, monitor duration and this rate that OCS is recorded according to each rate record corresponding prison The flow in the period is controlled using rate, calculates the flow that the target user uses in each accounting regime;OCS according to The flow used in each accounting regime with target user, the rate with each accounting regime calculate target user and exist The expense of flow used in each accounting regime;OCS adds up in the term of validity time target user in each accounting regime The expense of the flow used obtains the expense of flow that target user uses within the term of validity time.For example, the term of validity time The first accounting regime be 8:00 to 8:30, and front end network element performs target user rate monitoring, obtained a plurality of rate note In record, there are three relevant rate records:The monitoring initial time of first record is 8:00, monitor duration is 10 minutes, the speed Rate record it is corresponding monitoring the period be 8:00-8:10, flow in the monitoring period is 300K/s using rate.Second record It is 8 to monitor initial time:10, monitor duration be 10 minutes, the rate record it is corresponding monitoring the period be 8:10-8:20, the prison It is 400K/s that the flow in the period, which is controlled, using rate.The monitoring initial time of third record is 8:20, monitor duration is 10 minutes, The rate record it is corresponding monitoring the period be 8:20-8:30, flow in the monitoring period is 100K/s using rate.So, For target user in the first accounting regime, the first flow used should be (300K//s*10*60s+400K//s*10*60s+ 100K//s*10*60s).OCS is determined 8:00 to 8:The first rate in 30 periods, and by first flow and the first rate The expense for the flow that product is used as target user in the first accounting regime.OCS obtains the term of validity with same method The expense of flow that the second accounting regime, third accounting regime ... target user use in time, and by target user every The expense of flow used in one accounting regime adds up, and obtains the flow that target user uses within the term of validity time Expense.
Particularly, operator can provide different bandwidth and corresponding price policy to user, for example, when user enjoys height Rate are with regard to somewhat expensive during bandwidth, and rate are with regard to relatively cheap when the bandwidth on the contrary enjoyed as user lowers.But sometimes, high bandwidth It is theoretic high broadband, the bandwidth of promise may not necessarily be provided to during the use of user, at this time such as according further to high band The price policy charge of width charge, can lead to the reduction of user satisfaction with the service.And in embodiments of the present invention, due to OCS The flow of target user can be obtained using rate, so OCS easily can carry out charging according to flow using rate.For It realizes and charging is carried out using rate according to flow, in the present embodiment, OCS first has to setting flow and uses rate and rate Correspondence, such as when flow is higher using rate, corresponding rate is also higher;It is corresponding when flow is relatively low using rate Rate it is relatively low, or the correspondence of other forms does not limit herein.It is used due to being provided with rate with flow The relationship of rate, so tariff switch point also has correspondence with flow using the change point of rate, it is preferred that the OCS roots It is recorded according to a plurality of rate, determines the flow of target user in the term of validity time using the changed moment point of rate, and determine Flow is the tariff switch point in the term of validity time using the changed moment point of rate.Tariff switch point is determined Afterwards, the term of validity time can be divided into multiple accounting regimes by OCS, and according to the stream of the user in each accounting regime Amount, with flow using the correspondence of rate and rate, determines the rate of each accounting regime using rate.In this way, operator It can realize that rate uses being associated with for rate with flow, after step 403 is performed, OCS can be realized and be used according to flow Rate carries out charging.
Preferably, a plurality of rate can be recorded and is stored in ticket by OCS.Carry out expense regranting is needed when encountering in this way During scene, OCS can be recorded according to a plurality of rate, restore the mistake that target user uses flow within the term of validity time well Journey accurately calculates the expense of flow that target user uses within the term of validity time.
The performance cost and network overhead of front end network element can be increased by carrying out rate policer operation, and in practical applications, and Not all scene is required for the accurate rate done to monitor.Therefore, OCS can control front end network element only in the embodiment of the present invention Rate monitoring is carried out to the scene for meeting prerequisite, so as to reduce equipment cost and network bandwidth cost.Its specific method Can be:OCS judges whether current scene meets the first prerequisite;If current scene meets the first prerequisite, OCS generating rate monitoring informations, the rate monitoring information are used to inform the flow use that front end network element performs monitoring objective user The operation of rate:Rate monitoring information is sent to front end network element by OCS so that network element triggering in front end performs monitoring objective user's Flow uses the operation of rate.Wherein, the first prerequisite can be the spontaneous settings of OCS, or operator sets, and first Prerequisite includes:Target user is prepaid user, 3G/4G user, specific number section user, particular brand or orders certain production Product/set meal user;Present period is preferential period or other specified times section etc..
The embodiment of the present invention additionally provides a kind of rate monitoring method, refers to Fig. 5, and basic procedure includes:
501st, front end network element sends credit control request to OCS, and Credit Control Answer is received at OCS;
Front end network element sends credit control request to OCS, which is used to ask to target user's to OCS Flow mandate.After front end network element receives credit control request, forward end network element replys Credit Control Answer.Wherein, credit control Response processed includes warrant quantity and effective time, and warrant quantity for representing the flow that OCS authorizes target user, use by the term of validity time In representing time of the OCS mandate target users using the warrant quantity, i.e.,:The warrant quantity that OCS is issued is only in the term of validity time It is inside only effectively, and front end network element must send credit control request to OCS again within the term of validity time, with what please be look for novelty Flow.It should be understood that OCS controls the time interval of front end network element transmission credit control request with the value of term of validity time.
502nd, the flow of front end network element monitoring target user uses rate, obtains a plurality of rate record;
Within the term of validity time, the flow of target user can be changed using rate with the time.In the embodiment of the present invention, The flow of front end network element monitoring target user uses rate, obtains a plurality of rate record.Wherein, the front end network element nets such as including GGSN Member.
In the embodiment of the present invention, the flow of front end network element monitoring target user refers to front end network element monitoring using rate Target user uses the rate of flow within the entire term of validity time.
The term of validity time can be split as multiple monitoring periods by front end network element, by target user within each monitoring period Flow rate record is denoted as using rate, can be obtained by a plurality of rate record in this way.Wherein, a plurality of rate note It employs in representing flow of the target user within the different monitoring periods using rate, each rate record includes target user The flow in the corresponding monitoring period, which is recorded, in this rate uses rate.
503rd, a plurality of rate record is sent to online charging system OCS by front end network element.
A plurality of rate record is sent to online charging system OCS by front end network element so that OCS is recorded according to a plurality of rate Calculate the expense for the flow that the target user uses within the term of validity time.
In the present embodiment, the flow of front end network element monitoring target user uses rate;According to flow using rate, generate more Rate record;Most a plurality of rate record is sent to OCS at last so that OCS calculates the mesh according to a plurality of rate record The expense of flow that mark user uses within the term of validity time.By such method so that OCS can know that target user exists Flow in the VT times is using rate, even if there may be multiple tariff switch point in the VT times, OCS can also be according to flow The calculating of the expense spent to target user in the secondary term of validity time is done directly using rate and rate.This improves The problem of one VT can only support the information interaction times caused by a tariff switch point between OCS and front end network element excessive, A VT is allowd to support multiple tariff switch point, reduces the information exchange time between OCS and front end network element, saves The performance cost and network overhead of OCS and front end network element.
Front end network element monitoring target user is had much within the entire term of validity time using the method for the rate of flow, packet It includes:The term of validity time is split as multiple monitoring periods by front end network element, and for each monitoring period, front end network element monitoring target is used The flow that family uses within the monitoring period, and the flow that target user is used within the monitoring period and the monitoring period The average flow rate of the ratio of duration, i.e. target user within the monitoring period uses rate as target user in the monitoring period Interior flow uses rate;
Or, the term of validity time is split as multiple monitoring periods by front end network element, for each monitoring period, front end network element exists A moment point is chosen in the monitoring period, using the momentary rate of target user at the moment point as target user in the monitoring Flow in period uses rate.Wherein, the method for the momentary rate of front end network element monitoring target user can be:Front end network element The flow that monitoring objective user uses in shorter duration, and the flow that target user is used in the shorter duration with The ratio of shorter duration, the momentary rate as target user.
It should be understood that each the duration of monitoring period is smaller, the flow of each monitoring period being calculated uses speed Rate is just closer to instantaneous value.But it is excessive using rate in order to avoid the flow of record, excessively consume front end network element and the place of OCS Rationality energy and network bandwidth, monitor the duration of period should not take it is too small.
Front end network element has the method that the term of validity time is split as multiple monitoring periods very much, including front end network element according to fortune The term of validity time is split as the difference standard of battalion's quotient's setting multiple monitoring periods or the term of validity time is split as by front end network element Duration equal multiple monitoring periods, or other method for splitting do not limit herein.Front end network element monitoring target user The rate that flow is used within the entire term of validity time may be other methods, not limit herein.
Flow of the front end network element monitoring target user within each monitoring period is using rate may there are errors.It is preferred that , each error for monitoring the period can be stayed in next monitoring period and be corrected, and final error is when the last one is monitored It is corrected in section.
Preferably, the monitoring initial time of each monitoring period can be also recorded in rate by front end network element with monitor duration In record, recorded in the corresponding monitoring period in this rate in this way, not comprising only target user in every rate record Flow uses rate, further includes monitoring initial time and monitor duration that this rate records the corresponding monitoring period.In this way, OCS can easily obtain each accounting regime and correspond to according to the monitoring initial time and monitor duration of each monitoring period Rate record, the flow so as to be used within the term of validity time to target user carries out wholesale price.
When OCS breaks down or when the network communication exception of front end network element and OCS, front end network element may be switched to ByPass scenes, and export ByPass tickets.Preferably, which is stored in ByPass tickets by front end network element In.
The performance cost and network overhead of front end network element can be increased by carrying out rate policer operation, and in practical applications, and Not all scene is required for the accurate rate done to monitor.Therefore, in the embodiment of the present invention, front end network element can be only to meeting The scene of prerequisite carries out rate monitoring, so as to reduce equipment cost and network bandwidth cost.Wherein, front end network element can be certainly Hair judges whether that, to current scene progress rate monitoring, specific method can be:Front end network element judges current scene Whether second prerequisite is met;If current scene meets the second prerequisite, front end network element triggering monitoring objective user Flow use rate operation.Wherein, the second prerequisite can be the spontaneous setting of front end network element, or operator sets Fixed, the second prerequisite includes:Target user is prepaid user, 3G/4G user, specific number section user, particular brand or orders Purchase certain product/set meal user;Current scene puts logical scene or other given scenarios for ByPass;Present period for the preferential period or Other specified times section etc..Front end network element can also carry out rate monitoring, specific method to control by OCS to current scene Can be:Front end network element obtains the rate monitoring information that OCS is sent, which is used to inform that front end network element performs prison The flow for controlling target user uses the operation of rate;The flow of front end network element triggering monitoring objective user uses the operation of rate.
For the ease of understanding above-described embodiment, will be said by taking above-described embodiment concrete application scene as an example below It is bright:
Target user's online is charged by flow, and the variation frequency of tariff switch point is higher.08:00:00 target user surfs the Internet Using data service, 08:03:00、08:05:00、08:07:00 uses the tariff switch point of flow for the target user.
08:00:00, target user initiates online request, and GGSN sends credit control request CCR message to OCS, to OCS Ask the flow of 5000K.The operation can be performed by request module 301.
OCS determines that the remaining sum of target user is sufficient, then returns to Credit Control Answer CCA to GGSN, is authorized to GGSN The flow of 5000K, and the term of validity time of the flow of the mandate is 9000sec.The operation can be completed by authorization module 101.
OCS determines target user as 4G user, and then determines that current scene meets prerequisite.Then OCS generations speed Rate monitoring information is simultaneously sent to GGSN, informs that GGSN performs rate policer operation.Wherein it is determined that current scene meets prerequisite It can be performed by the first judgment module 107, generating rate monitoring information can be performed by information module 108, and rate is monitored and is believed Breath, which is sent to GGSN, to be performed by sending module 109.
GGSN provides service on net for target user, and sets the collection period t for measuring rate;
GGSN monitoring is originated from time T, the flow U1 that target user uses in time t, calculates target user in [T, T+ T] this period flow using rate be v1=U1/t, be recorded as<v1,T,t>.Wherein, T is moment point 08:00:00.
GGSN continues to measure next collection period, i.e., is originated from time T+t, the flow that target user uses in time t U2, it is v2=U2/t to calculate flow of the target user in [T+t, T+2t] this period using rate, is recorded as<v2,T+t,t>.
GGSN compares v1 and v2, if v1=v2 (or the difference of v1 and v2 is in error range), then GGSN just will V1 records corresponding with v2 are merged into<v1,T,2t>, and so on, until cannot finally be merged again, obtain a rate note Record<v1,T,i*t>.Wherein, this rate record it is corresponding monitoring the period be [T, T+i*t], T be the monitoring period monitoring rise Begin the moment, the meaning of i*t is the monitor duration of i collection period t, i*t for the monitoring period, and v1 is target user in this speed The flow that rate was recorded in the corresponding monitoring period uses rate.
GGSN is originated from time T+i*t, is repeated the above steps, and obtains a plurality of rate record, and a plurality of rate is recorded Save as rate variation detail list.
All monitoring flows of GGSN can be performed using the operation of rate by monitoring module 302.
08:15:00, since the term of validity time of the flow of mandate arrives, GGSN exports rate variation detail list to OCS. The operation can be performed by output module 303.
OCS determines target user in the term of validity time [08:00:00,08:15:00] the rate change point in has 08:03: 00、08:05:00、08:07:00, and the term of validity time is divided into [08:00:00,08:03:00]、[08:03:00,08:05: 00]、[08:05:00,08:07:00]、[08:07:00,08:15:00] this 4 accounting regimes, and determine each accounting regime Rate.OCS changes detail list according to rate, calculates the flow that target user uses in each accounting regime.Wherein it is determined that take The operation of rate switching point can be performed by switching point determination unit 1031, and the operation for dividing accounting regime can be by Time segments division list Member 1032 performs, and determining the operation of the rate of each accounting regime can be performed by rate determination unit 1033.Calculate each meter The operation of time-consuming section of flow can be performed by flow rate calculation unit 1041.
OCS calculates the expense that each accounting regime target user uses flow, and will according to the rate of each accounting regime Target user is added up using the expense of flow in 4 accounting regimes, realizes and target user is used within the term of validity time Flow wholesale price.Wherein, each accounting regime target user is calculated to be calculated by expense using the operation of the expense of flow Unit 1042 performs, and target user in 4 accounting regimes is carried out accumulative operation using the expense of flow can be by expense Summing elements 1043 perform.
OCS changes detailed list when writing single, by rate and is also stored in ticket, which can be by preserving module 106 To perform.
The embodiment of the present invention additionally provides relevant wholesale price system, including OCS shown in fig. 1 or fig. 2 and Fig. 2 or Fig. 3 Shown front end network element.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or carry out equivalent replacement to which part technical characteristic;And these Modification is replaced, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (11)

1. a kind of online charging system OCS, which is characterized in that including:
Authorization module for the credit control request that receiving front-end network element is sent, and replys diameter credit control to the front end network element Response, flow mandate of the credit control request for the front end network element to OCS requests to target user, the letter Include warrant quantity and effective time with control response, the warrant quantity is used to represent what the OCS authorized the target user Flow, the effective time are used to represent the time that the OCS authorizes the target user to use the warrant quantity;
Receiving module, for receiving a plurality of rate of the target user within the term of validity time at the front end network element Record, rate record include the target user used in the flow that this rate was recorded in the corresponding monitoring period it is fast Rate;
Rate module, for according to all tariff switch point in the term of validity time, the term of validity time to be divided into Multiple accounting regimes, and determine the rate of each accounting regime;
Wholesale price module, for being recorded according to a plurality of rate, the rate with each accounting regime calculates the target and uses The expense of flow that family uses within the term of validity time;
Setting module, for setting correspondence of the flow using rate and rate;
The rate module includes:
Switching point determination unit for being recorded according to a plurality of rate, determines the target user in the term of validity time Flow using the changed moment point of rate, and determine that the flow is had using the changed moment point of rate to be described Tariff switch point in time effect phase;
Time segments division unit, for according to all tariff switch point in the term of validity time, the term of validity time to be drawn It is divided into multiple accounting regimes;
Rate determination unit, for determining that the flow of the user in each accounting regime uses according to a plurality of rate record Rate, and the rate of each accounting regime is determined using the correspondence of rate and rate according to the flow.
2. OCS according to claim 1, which is characterized in that the rate is used to represent that the target user uses unit The expense of flow;
The rate record further includes:This rate records the monitoring initial time and monitor duration of corresponding monitoring period;
The wholesale price module includes:
Flow rate calculation unit records the corresponding monitoring for monitoring the period for described rate in being recorded according to the rate Initial time, monitor duration and the flow in the monitoring period use rate, calculate the target user in each charging The flow used in period;
Expense computing unit, it is and described every for the flow used in each accounting regime according to the target user The rate of a accounting regime calculates the expense of flow that the target user uses in each accounting regime;
Expense summing elements use for the target user in the term of validity time of adding up in each accounting regime Flow expense, obtain the expense of flow that the target user uses within the term of validity time.
3. OCS according to claim 1 or 2, which is characterized in that the OCS is further included:
Preserving module, for a plurality of rate record to be stored in ticket, in order to which the OCS exists to the target user The expense of the flow used in the term of validity time carries out regranting.
4. OCS according to claim 1 or 2, which is characterized in that the OCS is further included:
First judgment module, for judging whether current scene meets the first prerequisite;
Information module, for when current scene meets the first prerequisite, generating rate monitoring information, the rate to monitor Information is used to inform that the flow of the front end network element execution monitoring objective user to use the operation of rate;
Sending module, for the rate monitoring information to be sent to the front end network element so that network element triggering in front end performs prison The flow for controlling target user uses the operation of rate.
A kind of 5. wholesale price method, which is characterized in that including:
The credit control request that online charging system OCS receiving front-ends network element is sent, and reply credit control to the front end network element Response processed, flow mandate of the credit control request for the front end network element to OCS requests to target user are described Credit Control Answer includes warrant quantity and effective time, and the warrant quantity is used to represent that the OCS authorizes the target user Flow, the effective time is used to represent the time that the OCS authorizes the target user to use the warrant quantity;
The OCS receives a plurality of rate record of the target user within the term of validity time at the front end network element, Rate record includes the target user and records the flow in the corresponding monitoring period in this rate using rate;
The term of validity time is divided into multiple meters by the OCS according to all tariff switch point in the term of validity time Time-consuming section, and determine the rate of each accounting regime;
The OCS is recorded according to a plurality of rate, and the rate with each accounting regime calculates the target user in institute State the expense of the flow used in the term of validity time;
The method further includes:
The OCS settings flow uses the correspondence of rate and rate;
The term of validity time is divided into multiple meters by the OCS according to all tariff switch point in the term of validity time Time-consuming section, and determine that the rate of each accounting regime includes:
The OCS is recorded according to a plurality of rate, determines that the flow of the target user in the term of validity time uses speed The changed moment point of rate, and determine the flow using the changed moment point of rate in the term of validity time Tariff switch point;
The term of validity time is divided into multiple meters by the OCS according to all tariff switch point in the term of validity time Time-consuming section;
The OCS determines that the flow of the user in each accounting regime uses rate, and root according to a plurality of rate record According to the flow using the correspondence of rate and rate, the rate of each accounting regime is determined.
6. wholesale price method according to claim 5, which is characterized in that the rate is used to represent that the target user uses The expense of specific discharge;
The rate record further includes monitoring initial time and monitor duration that this rate records the corresponding monitoring period;
The OCS is recorded according to a plurality of rate, and the rate with each accounting regime calculates the target user in institute The expense for stating the flow used in the term of validity time includes:
The OCS according to the rate record in described rate record it is corresponding monitoring the period monitoring initial time, Monitor duration and the flow in the monitoring period use rate, calculate the target user and are used in each accounting regime Flow;
The flow that the OCS is used according to the target user in each accounting regime, with each accounting regime Rate, calculate the expense of flow that the target user uses in each accounting regime;
The OCS adds up the expense of flow that the target user in the term of validity time uses in each accounting regime With obtaining the expense of flow that the target user uses within the term of validity time.
7. wholesale price method according to claim 5 or 6, which is characterized in that the method further includes:
The a plurality of rate record is stored in ticket by the OCS, in order to which the OCS has the target user described The expense of the flow used in time effect phase carries out regranting.
8. wholesale price method according to claim 5 or 6, which is characterized in that the method further includes:
The OCS judges whether current scene meets the first prerequisite;
If current scene meets the first prerequisite, the OCS generating rates monitoring information, the rate monitoring information is used The operation of rate is used in the flow for informing the front end network element execution monitoring objective user:
The rate monitoring information is sent to the front end network element by the OCS so that network element triggering in front end performs monitoring objective The flow of user uses the operation of rate.
9. a kind of wholesale price system, which is characterized in that including:
OCS any one of Claims 1-4, and front end network element, wherein, the front end network element includes:
Request module for sending credit control request to OCS, and receives Credit Control Answer, the credit at the OCS Control data is used for the flow mandate to target user to OCS requests, and the Credit Control Answer includes warrant quantity with having It imitates the time, for representing the flow that the OCS authorizes the target user, the effective time is used to represent the warrant quantity The OCS authorizes time of the target user using the warrant quantity;
Monitoring module within the term of validity time, monitoring the flow of the target user using rate, obtains a plurality of speed Rate records, and a plurality of rate is recorded for representing that flow of the target user within the different monitoring periods uses rate, The rate record includes:The target user records the flow in the corresponding monitoring period in this rate and uses rate;
Output module, for a plurality of rate record to be sent to online charging system OCS so that the OCS is according to A plurality of rate record calculates the expense of flow that the target user uses within the term of validity time.
10. wholesale price system according to claim 9, which is characterized in that the front end network element further includes:
Second judgment module for judging whether current scene meets the second prerequisite, meets second in current scene During prerequisite, the flow for triggering the monitoring module monitoring objective user uses the operation of rate.
11. wholesale price system according to claim 9, which is characterized in that the front end network element further includes:
Acquisition module, for obtaining the rate monitoring information that the OCS is sent, the rate monitoring information is used to inform front end net The flow that member performs monitoring objective user uses the operation of rate;
Trigger module, for triggering the operation that the flow of monitoring objective user uses rate.
CN201410172514.5A 2014-04-25 2014-04-25 A kind of OCS, front end network element, wholesale price method and rate monitoring method Active CN103957517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410172514.5A CN103957517B (en) 2014-04-25 2014-04-25 A kind of OCS, front end network element, wholesale price method and rate monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410172514.5A CN103957517B (en) 2014-04-25 2014-04-25 A kind of OCS, front end network element, wholesale price method and rate monitoring method

Publications (2)

Publication Number Publication Date
CN103957517A CN103957517A (en) 2014-07-30
CN103957517B true CN103957517B (en) 2018-06-15

Family

ID=51334720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410172514.5A Active CN103957517B (en) 2014-04-25 2014-04-25 A kind of OCS, front end network element, wholesale price method and rate monitoring method

Country Status (1)

Country Link
CN (1) CN103957517B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105722048A (en) * 2014-08-06 2016-06-29 阿尔卡特朗讯 Charging method and equipment for online charging system
CN104168607A (en) * 2014-08-11 2014-11-26 无锡高联信息技术有限公司 Resource management method based on LTE system
CN104469728A (en) * 2014-11-17 2015-03-25 华为技术有限公司 Charging method, device and system
CN106470431B (en) * 2015-08-14 2019-08-02 中国联合网络通信集团有限公司 A kind of method and device for obtaining user and perceiving rate
CN109981911B (en) * 2017-12-27 2021-07-02 中国移动通信集团山东有限公司 Calculation method and device for optimizing call service ticket charging fee
CN111756590B (en) * 2019-03-27 2022-04-26 北京沃东天骏信息技术有限公司 Small flow test method and device for information display flow control

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075335A (en) * 2011-02-15 2011-05-25 中国联合网络通信集团有限公司 Dynamic bandwidth broadband service charging method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1199487C (en) * 2002-04-27 2005-04-27 华为技术有限公司 Radio communication system charge method
CN103109514B (en) * 2010-07-20 2015-12-16 弗里班德技术股份有限公司 Application program activity system
CN102860051B (en) * 2011-05-09 2016-01-27 华为技术有限公司 A kind of service billing control method and relevant device
CN103686652A (en) * 2012-08-31 2014-03-26 阿尔卡特朗讯 Independent roaming charging method and equipment for roaming user equipment in VPLMN (Visited Public Land Mobile Network)
CN103024715B (en) * 2012-11-30 2015-09-09 大唐移动通信设备有限公司 A kind of method that business datum flow based on tariff period is added up and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075335A (en) * 2011-02-15 2011-05-25 中国联合网络通信集团有限公司 Dynamic bandwidth broadband service charging method and system

Also Published As

Publication number Publication date
CN103957517A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103957517B (en) A kind of OCS, front end network element, wholesale price method and rate monitoring method
CN105933889B (en) The method and apparatus of communication service dilatation
US6965667B2 (en) Method of accounting prepaid online internet service credit values
US10182161B2 (en) Modifying a quality of a connection between a terminal and an application server
CN106775936A (en) The management method and device of a kind of virtual machine
CN105868973B (en) Event resource processing method and device
CN109284864A (en) Behavior sequence acquisition methods and device, user&#39;s conversion ratio prediction technique and device
CN104869552A (en) Method for reporting flow and device
WO2016137752A1 (en) Adaptive quota management system
CN104796876B (en) OCS, PCEF, PCRF and terminal bandwidth control method
CN105101136A (en) Data service charging method, device and system
JP6455183B2 (en) Billing processing apparatus, billing processing method, and billing processing program
CN1512429B (en) Mobile service
CN101299670A (en) Charging method, charging system and charging device
CN103067903A (en) Charging method and device and system
CN111988749B (en) Dynamic tariff generation method and device
EP2472775B1 (en) A method, device and computer program product for controlling use of electronic communication services
CN113483445A (en) Air conditioner charging method and device
CN110866742B (en) Bill generation method, device, server and storage medium
WO2019184632A1 (en) Rating method and apparatus
US11252243B2 (en) Systems and methods for dynamically managing capabilities on network monitoring devices
CN107431629A (en) For the method beneficial to the supply that Related product is serviced in communication network
CN107809551B (en) Method for controlling processing load of telecommunication service and related device and system
CN107294735B (en) Order supplementing method and online charging system
CN101175128A (en) Charging method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant