CN105722048A - Charging method and equipment for online charging system - Google Patents

Charging method and equipment for online charging system Download PDF

Info

Publication number
CN105722048A
CN105722048A CN201410391681.9A CN201410391681A CN105722048A CN 105722048 A CN105722048 A CN 105722048A CN 201410391681 A CN201410391681 A CN 201410391681A CN 105722048 A CN105722048 A CN 105722048A
Authority
CN
China
Prior art keywords
account information
charging
information
user
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410391681.9A
Other languages
Chinese (zh)
Inventor
李向阳
A·伍德
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.)
Alcatel Optical Networks Israel Ltd
Original Assignee
Alcatel Optical Networks Israel 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 Alcatel Optical Networks Israel Ltd filed Critical Alcatel Optical Networks Israel Ltd
Priority to CN201410391681.9A priority Critical patent/CN105722048A/en
Publication of CN105722048A publication Critical patent/CN105722048A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The aim of the invention is to provide a charging method and equipment. The method comprises the steps of judging, by an online charging system, whether the received charging request corresponding to a certain user includes a non-real-time charging identifier or not; if the judgment result is not including, charging the charging request using current rate information corresponding to the user, and updating current account information corresponding to the user; if the judgment result is including, determining account information and rate information corresponding to the charging moment of the user according to the charging moment included in the charging request; charging the charging request using the determined rate information, and updating the determined account information. By adopting the method and the equipment, the online charging system can support real-time and non-real-time charging requests, solve the problem of error charging of 'late' charging requests in the prior art and support processing of 'future' charging requests, thus facilitating test of data and software.

Description

A kind of method and apparatus being used for charging in Online Charging System
Technical field
The present invention relates to communication technical field, particularly relate to a kind of technology for charging.
Background technology
Online Charging System (OnlineChargingSystem, OCS) is one of most important ingredient in the 3GPP network architecture.The charging way of Online Charging System and working method and traditional off-line accounting system (OfflineChargingSystem, OFCS) are entirely different.
Off-line accounting system is mainly based upon the system of IT, the beginning of the month of every month, and off-line accounting system extracts the use information (ticket) of all business of last month, carries out charging calculating, and produces bill.
And Online Charging System is capable of real time billing, specifically, user is before using corresponding business, related network elements can send message to Online Charging System and authenticate, Online Charging System can distribute certain quota to this user after checked corresponding account information, deducting this quota from corresponding account information, related network elements allows user to use this business after obtaining this quota simultaneously.After this quota uses, said process can repeat, i.e. related network elements can send message to Online Charging System again to carry out authenticating to obtain new quota.When Online Charging System find user account information in available balance be zero or use amount reach time, user can be terminated and use corresponding business.
Comparing with off-line accounting system, Online Charging System has advantage clearly: for operator, the service condition of its energy monitor in real time business, thus avoiding possible loss of income;For a user, it is provided that real-time calling charge information and account information thus avoiding " bill shock (billshock) ".Therefore, most utilization commercial city using Online Charging System as the charging platform serviced for prepaid user and postpaid service user.
But, existing Online Charging System there is also some problems in use.It is exemplified below:
Example one: ownership place have subscribed the roaming set meal in a week (18-June 24 June) at the user A of A state.Then, user A visited to B state June 18 to June 24.Due to the defect of prevailing network framework, the network element MSC of roaming place does not have the interface that the Online Charging System with ownership place communicates, it is impossible to realize real time billing.In order to not affect the use of user, the operator of roaming place can't cut off the use of user A, but the business collecting user A off-line manner uses information, then, in some later time such as June 28 days, the business sending the user A collected to the network of ownership place uses information.And the roaming set meal of now user's subscription is out of date, existing Online Charging System will reset set meal expired in user account and the information of use, rate information only current in existing Online Charging System and account information, the information of not expired roaming set meal, therefore, the Online Charging System of ownership place can use information to carry out charging with the business of the current rate user A to receiving, and this is clearly irrational is also incorrect.
Example two: user B have subscribed the set meal with sky for metering period, the zero point of every day, the account information of user B can be reset by Online Charging System.Online Charging System, in overload on July 12 22, causes that related network elements cannot be sent to message.In order to be not responding to the use of user, related network elements may proceed to allow user B use business and collect corresponding business use information.Then, at point in 13 days 2 July, Online Charging System recovers normal, the user B collected business after July 12 22 is used information to be sent to Online Charging System by related network elements, owing to now Online Charging System only has the account information on July 13, there is no the account information on July 12, the user B that the collects business after July 12 22 can only be used the cost information meter of information to July 13 this metering period by Online Charging System, and this is obviously also irrational is also incorrect.
Visible, owing to a variety of causes (related network elements does not have to the interface of Online Charging System or Online Charging System overload etc.) causes that some accounting requests cannot occur the moment arrive Online Charging System in real time, then, Online Charging System receives these accounting requests sometime what be later than the above-mentioned generation moment, if adopting existing charging method, with current rate information and account information, the accounting request of these " being late " is processed the charging being certain to mistake occur.Therefore, how accounting request correctly charging to these " being late " is a urgent problem.
Summary of the invention
It is an object of the invention to provide a kind of method and apparatus for charging in Online Charging System.
According to the first aspect of the invention, provide a kind of method for charging in Online Charging System, in described Online Charging System, each use correspondence per family has an account, described account corresponding at least one with the account information of effect duration, described account corresponding at least one with the rate information of effect duration, the method comprises the following steps: judge the mark whether comprising non real-time charging in the accounting request corresponding to certain user received;If it is judged that for not comprise, described accounting request is carried out charging with the current rate information that described user is corresponding and updates the current account information that described user is corresponding;If it is judged that for comprising, according to the charging comprised in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information;Described accounting request is carried out charging with the described rate information determined and updates the described account information determined.
Preferably, wherein said charging occur the moment be early than current time sometime or be later than current time sometime.
Preferably, the described step according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information farther includes: determine its corresponding account according to the ID comprised in described accounting request;Judge that described charging occurs the moment to be in which account information of described account and in the effect duration of which rate information;Described account information is defined as with rate information the account information and the rate information that occur the moment corresponding with described charging.
Preferably, described method also includes: when trigger condition meets, current account information or rate information are backed-up, and the account information backed up or rate information identify the effect duration of its correspondence.
Preferably, described method also includes: when receiving the message updating rate, current rate information is backed-up, and the rate information backed up identifies the effect duration of its correspondence.
Preferably, described method also includes: when the remaining sum when periodically resetting the current account information of user and in current account information is not zero, and the current account information of described user is backed-up, and the account information backed up identifies the effect duration of its correspondence;When remaining sum when the product comprised in user's current account information or when servicing no longer valid and in current account information is not zero, the current account information of described user is backed-up, and the account information of backup is identified the effect duration of its correspondence.
Preferably, described include one of situations below when the product comprised in user's current account information or when servicing no longer valid: when the product comprised in user's current account information or when servicing expired, when the product comprised in user's current account information or service not out of date but user and have subscribed new product or when service causes the product or service failure that comprise in current account information.
Preferably, described method also includes: makes regular check on described account information or rate information and deletes account information out of date or rate information according to pre-defined rule.
According to the second aspect of the invention, provide a kind of device for charging in Online Charging System, in described Online Charging System, each use correspondence per family has an account, described account corresponding at least one with the account information of effect duration, described account corresponding at least one with the rate information of effect duration, this device includes: judgment means, for judging the mark whether comprising non real-time charging in the accounting request corresponding to certain user received;First message accounting, for carrying out charging to described accounting request with the current rate information that described user is corresponding when judged result is do not comprise and updating the current account information that described user is corresponding;Determine device, for when judged result is comprise according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information;Second message accounting, for carrying out charging to described accounting request with the described rate information determined and updating the described account information determined.
Preferably, wherein said charging occur the moment be early than current time sometime or be later than current time sometime.
Preferably, described determine that device is further used for: determine the account of its correspondence according to the ID comprised in described accounting request;Judge that described charging occurs the moment to be in which account information of described account and in the effect duration of which rate information;Described account information is defined as with rate information the account information and the rate information that occur the moment corresponding with described charging.
Preferably, described device also includes: back-up device, for current account information or rate information being backed-up when trigger condition meets, and the account information backed up or rate information identifies the effect duration of its correspondence.
Preferably, described back-up device is further used for: when receiving the message updating rate, current rate information is backed-up, and the rate information backed up identifies the effect duration of its correspondence.
Preferably, described back-up device is further used for: when the remaining sum when periodically resetting the current account information of user and in current account information is not zero, the current account information of described user is backed-up, and the account information backed up is identified the effect duration of its correspondence;When remaining sum when the product comprised in user's current account information or when servicing no longer valid and in current account information is not zero, the current account information of described user is backed-up, and the account information of backup is identified the effect duration of its correspondence.
Preferably, described include one of situations below when the product comprised in user's current account information or when servicing no longer valid: when the product comprised in user's current account information or when servicing expired, when the product comprised in user's current account information or service not out of date but user and have subscribed new product or when service causes the product or service failure that comprise in current account information.
Preferably, described device also includes: check device, for making regular check on described account information or rate information and deleting account information out of date or rate information according to pre-defined rule.
Compared with existing charging method, same user is safeguarded the rate information of the account information in multiple different charge cycle and different editions by the method support of the present invention in Online Charging System simultaneously.
Various accounting requests correctly can be carried out charging by the method for the present invention in Online Charging System simultaneously, not only support real-time accounting request, also support the accounting request of " being late " is carried out correct charging, the accounting request of " be late " is carried out charging by the rate information using the account information of history and history, eliminates in prior art the mistake of appearance in the charging of the accounting request to " being late ".The method of the present invention is perfect existing Online Charging System, for operator and user, it is to avoid the bill of mistake.
Following rate information can also be configured by the method for the present invention in advance, by the version rate in " future ", the accounting request in " future " is carried out charging, following rate information is tested and verified.
Real-time and non real-time accounting request is carried out correct charging by realizing in same charge system, The inventive method achieves convergent billing, operator is safeguarded, and same charge system is to support different accounting requests, saves operation and the maintenance cost of operator.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, the other features, objects and advantages of the present invention will become more apparent upon:
Fig. 1 illustrates application scenarios figure according to an embodiment of the invention;
Fig. 2 illustrates the schematic diagram of account information and rate information according to an embodiment of the invention;
Fig. 3 illustrates the schematic diagram of account information and rate information according to an embodiment of the invention;
Fig. 4 illustrate according to an embodiment of the invention in Online Charging System for the method flow diagram of charging;
Fig. 5 illustrate according to an embodiment of the invention in Online Charging System for the device schematic diagram of charging.
In accompanying drawing, same or analogous accompanying drawing labelling represents same or analogous parts.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 illustrates application scenarios figure according to an embodiment of the invention.Wherein, OCS101 is Online Charging System, and it receives ask from real time billing of some network element, real time billing, and the cost information of generation is sent to later stage process system 103 is further processed.As previously described, because a variety of causes, accounting request cannot be sent to OCS101 by some network element in real time, then, occurs sometime the moment being later than charging, and these network elements can report these non-real-time events to gateway 102.Here gateway 102 can be that CDR (CallDetailRecord) coordinates gateway (MediationGateWay).After gateway 102 receives these non-real-time events, these non-real-time events can be reported by non real-time accounting request to OCS101.
In OCS101, each user has an account corresponding with it.With existing Online Charging System the difference is that, each account at least one account information corresponding and each account information are all with an effect duration, and, each account at least one rate information corresponding and each rate information are all with an effect duration.Account information described here refers to the information relevant with the account of user, at least includes the remaining sum of account, it is also possible to include the duration of call, network traffics, package information etc..Rate information refers to the charging regulation for computational costs, cost of the phone call such as per minute, the expense etc. of every MB flow.Account information can also include the mark of rate information or rate information.In existing Online Charging System, each account family is generally only had to current account information and current rate information, without already with the currently no longer valid account information crossed and rate information.And in an embodiment of the present invention, for each account in OCS101, not only there are current account information and current rate information, and preserve already with the currently no longer valid account information crossed and rate information, even also there are in the future account information sometime and rate information, these identified each through the effect duration corresponding to each account information and rate information, and effect duration is used for identifying this account information or rate information effective period.
Those skilled in the art will be understood that the data structure for storing account information and rate information can be diversified, below illustrative examples illustrate, but these examples should not be construed as the restriction of the data structure realizing account information and rate information.
Fig. 2 illustrates the schematic diagram of account information and rate information according to an embodiment of the invention.Wherein, Fig. 2 (a) illustrates the data structure schematic diagram of account information.In this embodiment, account information contains the information such as account identification (account ID), rate mark (rate ID), account balance, effect duration.Corresponding effect duration indicates this account information effective period.Fig. 2 (b) illustrates the data structure schematic diagram of rate information, it comprises the information such as rate mark (rate ID), rate, effect duration.Corresponding effect duration indicates this rate information effective period.In this embodiment, do not have direct rate of storage information in account information, but store rate mark, according to the table shown in this rate mark and Fig. 2 (b), it is possible to inquire the rate of correspondence.It can be seen that identify for freight all kind rate, OCS101 can preserve the rate information of its multiple versions, the effect duration that different versions is corresponding different.
Those skilled in the art will be understood that the representation of the effect duration shown in Fig. 2 is only a kind of exemplary, it is also possible to takes other modes to represent, such as, record each account information or the moment of rate information renewal, then, corresponding effect duration is the period between twice renewable time.
Fig. 3 illustrates the schematic diagram of account information and rate information according to an embodiment of the invention.In this embodiment, account information contains the information such as account identification (account ID), set meal mark (set meal ID), account balance, effect duration.Corresponding effect duration indicates this account information effective period.Here, there is set meal mark in account information, can retrieve, by this set meal mark, the information that this set meal is concrete, such as rate information, discount information, the duration upper limit, flow rate upper limit etc..Therefore, it can identify, by the set meal in account information, the rate information obtaining correspondence.
Fig. 4 illustrate according to an embodiment of the invention in OCS101 for the method flow diagram of charging.The method starts from step S401.
In step S401, OCS101 judges the mark whether comprising non real-time charging in its accounting request corresponding to certain user received.
As it is shown in figure 1, a part of accounting request that OCS101 receives originates from the real time billing request of some network element, and another part accounting request received originates from the non real-time accounting request of gateway 102.Described real time billing request and non real-time accounting request can be same message, such as CCR (CreditControlRequest) message, in order to distinguish with CCR message of the prior art, it is non real-time in order to indicate this accounting request that gateway 102 can arrange mark in its CCR message being sent to OCS101, such as, the CC-Request-Type field of CCR message arranges non real-time mark.
With existing Online Charging System the difference is that, OCS101 receives corresponding to, after the accounting request of certain user, first judging the mark whether comprising non real-time charging in this accounting request.Because the accounting request that existing Online Charging System receives is all real-time, therefore, there is no need to do above-mentioned judgement.
If above-mentioned judged result is not for comprise, then illustrating that this accounting request is real-time, OCS101 can perform step S402.
In step S402, described accounting request is carried out charging with the current rate information that this user is corresponding and updates the current account information that this user is corresponding.
Such as, the accounting request that OCS101 receives is for user A, and does not have non real-time charging identifier in this accounting request, then, OCS101 judges that this accounting request is real-time.The account information adopted in OCS101 and the data structure of rate information are as shown in Figure 2, account corresponding for user A is A001, and current time is on July 30th, 2014, so, table according to Fig. 2, current rate information corresponding for user A is T1, and the remaining sum of the current account information that user A is corresponding is B1.Then, the current balance B1 of account A001 with rate T1 charging, is updated after charging by OCS101 by this accounting request.
It can be seen that when the OCS101 accounting request received is real-time, the same with the Online Charging System of prior art, it can perform real time billing.
If OCS101 judges the mark comprising non real-time charging in its accounting request corresponding to certain user received, then illustrating that this accounting request is non real-time, OCS101 can perform below step S403 and step S404.
In step S403, OCS101 is according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information.Owing to this accounting request is non real-time, namely the event that this accounting request is corresponding does not occur at current time, therefore, containing charging in this accounting request and the moment occurs, this charging occurs the moment to actually occur the moment for what indicate event in this accounting request.Such as, current time is on July 30th, 2014, gateway 102 have sent an accounting request CCR to OCS101, this accounting request CCR for reporting the charging event on April 1st, 2014 to OCS101, so, in this CCR message, CC-Request-Type field is set to non real-time mark, and Service-Delivery-Time field is set on April 1st, 2014 (namely the moment occurs in charging).
It should be noted that, the present invention not only supports the correct charging of the accounting request to " being late ", also the correct charging of accounting request to " future " is supported, this can occur the moment to realize by arranging charging in accounting request, charging occurs the moment can be configured to early than current time sometime, it is also possible to be configured to be later than current time sometime.
As it was previously stated, the data structure storing account information and rate information in OCS101 is diversified, therefore, the implementation of step S403 is also different according to the concrete data structure of account information and rate information.In one embodiment, step S403 farther includes sub-step S4031 (not shown), sub-step S4032 (not shown) and sub-step S4033 (not shown).In this embodiment, the charging in the accounting request corresponding to user A that OCS101 receives occurs the moment to be on April 1st, 2014, and current time is on July 30th, 2014, stores the data structure of account information and rate information as shown in Figure 2 in OCS101.
In step S4031, determine the account of its correspondence according to the ID comprised in described accounting request.Mark according to user A, that OCS101 determines its correspondence is account A001.
In step S4032, it is judged that described charging occurs the moment to be in which account information of described account and in the effect duration of which rate information.OCS101 judges that charging occurs in the effect duration of which account information that moment that is 2014 year sunset in April 1 enters account A001, by comparing, OCS101 judges that this charging occurs the moment to be in effect duration [2014/1/1-2014/6/30], therefore, it is judged that this charging generation moment was in the effect duration of the account information of the Article 2 record of table shown in Fig. 2 (a).The rate information that this account information is corresponding be designated TariffX, table according to Fig. 2 (b), the corresponding a plurality of rate information of TariffX, every rate information all has an effect duration, OCS101 judges that this charging occurs the moment to be in effect duration [2014/4/1 so far], therefore, it is judged that this charging generation moment was in the effect duration of the rate information of the Article 1 record of table shown in Fig. 2 (b).
In step S4033, described account information is defined as with rate information the account information and the rate information that occur the moment corresponding with described charging.Judgement according to step S4032, OCS101 determines the account information of the Article 2 record that account information is table shown in Fig. 2 (a) occurring the moment corresponding with above-mentioned charging, the remaining sum of its correspondence is B2, simultaneously, OCS101 determines the rate information of the Article 1 record that rate information is table shown in Fig. 2 (b) occurring the moment corresponding with above-mentioned charging, and the rate of its correspondence is T1.
Then, in step s 404, described accounting request is carried out charging with the described rate information determined and updates the described account information determined by OCS101.Such as, in the above-described embodiment, when OCS101 determines that with charging account information corresponding to generation April 1 2014 moment be the account information of the Article 2 record of table shown in Fig. 2 (a), it is the rate information of the Article 1 record of table shown in Fig. 2 (b) with charging rate information corresponding to generation April 1 2014 moment, so, with rate T1, described accounting request is carried out charging, and updating the account information of the Article 2 record of table shown in Fig. 2 (a), such as more new balance B2 is (expense that accounting request described in B2-produces).
It can be seen that, the OCS101 non real-time accounting request for receiving, the accounting request received is processed by current account information when current rate information when being not receive and reception, but the rate information actually occurring the moment and account information with the event of this accounting request processes, it is ensured that the correctness of charging and reasonability.And, there is the moment by arranging charging in accounting request, the problem being possible not only to solve the accounting request of " being late " of existing in prior art, but also the process of accounting request to " future " can be realized.By charging occurs that the moment be arranged in the future sometime, it is possible to achieve the data that future will be come into force and the test of software.
The method also includes: when trigger condition meets, current account information or rate information are backed-up by OCS101, and the account information backed up or rate information identify the effect duration of its correspondence.
In one embodiment, when receiving the message updating rate, current rate information is backed-up by OCS101, and the rate information backed up identifies the effect duration of its correspondence.Such as, operator sends instruction to OCS101, and the rate being designated TariffX is changed to T1 from current T2 by instruction, and this change is effective from 2014/4/1, and current rate T2 is effective from 2014/1/1.When the instruction is received, OCS101 can by rate T2 backup current for TariffX, and effect duration corresponding to the phase that identifies is [2014/1/1-2014/3/31], as shown in Fig. 2 (b) shown in the Article 2 record of table, and new current rate is T1, new current rate also can be identified its effect duration [2014/4/1 so far] by OCS101.It can be seen that, in the present invention, freight all kind rate mark can be preserved the rate information of multiple version by OCS101, and in existing Online Charging System, when it updates current rate information, current rate information can't be backed-up but directly current rate information is updated to new rate.
In yet another embodiment, when the remaining sum when periodically resetting the current account information of user and in current account information is not zero, the current account information of described user is backed-up by OCS101, and the account information backed up identifies the effect duration of its correspondence.Such as, the OCS101 account information needing replacement user for first day in every month, then, when resetting, whether the remaining sum that OCS101 checks in current account information is zero, if be not zero, then current account information being backed up and identified its effect duration is last month.And in existing Online Charging System, when periodically resetting the account information of user, current account information can't be backed-up but directly current account information be reset.
When remaining sum when the product comprised in user's current account information or when servicing no longer valid and in current account information is not zero, the current account information of described user is backed-up by OCS101, and the account information of backup identifies the effect duration of its correspondence.Product described here or service can be exist with the form of set meal.In one embodiment, described one of situations below is included when the product comprised in user's current account information or when servicing no longer valid:
A) when the product comprised in user's current account information or when servicing expired;
B) when the product comprised in user's current account information or service not out of date but user and have subscribed new product or when service causes the product or service failure that comprise in current account information.
And in existing Online Charging System, when the product comprised in user's current account information or when servicing no longer valid, current account information can't be backed-up but directly current account information be deleted.
In yet another embodiment, the method also includes: makes regular check on described account information or rate information and deletes account information out of date or rate information according to pre-defined rule.In order to avoid substantial amounts of account information or rate information occupy substantial amounts of memory space, OCS101 can make regular check on, and preset some rules for indicating which account information out of date or rate information of deletion, then delete these account information out of date satisfied condition or rate informations.
Fig. 5 illustrate according to an embodiment of the invention in OCS101 for the schematic diagram of the device 500 of charging.This device 500 includes: judgment means the 501, first message accounting 502, determine device 503 and the second message accounting 504.
The work process of this device 500 is described in detail below in conjunction with Fig. 1 to Fig. 4.
First, it is determined that device 501 judges the mark whether comprising non real-time charging in the OCS101 accounting request corresponding to certain user received.
As it is shown in figure 1, a part of accounting request that OCS101 receives originates from the real time billing request of some network element, and another part accounting request received originates from the non real-time accounting request of gateway 102.Described real time billing request and non real-time accounting request can be same message, such as CCR (CreditControlRequest) message, in order to distinguish with CCR message of the prior art, it is non real-time in order to indicate this accounting request that gateway 102 can arrange mark in its CCR message being sent to OCS101, such as, the CC-Request-Type field of CCR message arranges non real-time mark.
With existing Online Charging System the difference is that, OCS101 receives corresponding to after the accounting request of certain user, it is judged that device 501 can judge the mark whether comprising non real-time charging in this accounting request.Because the accounting request that existing Online Charging System receives is all real-time, therefore, there is no need to do above-mentioned judgement.
If above-mentioned judged result is not for comprise, then illustrating that this accounting request is real-time, described accounting request is carried out charging with the current rate information that this user is corresponding and updates the current account information that this user is corresponding by the first message accounting 502.
Such as, the accounting request that OCS101 receives is for user A, and does not have non real-time charging identifier in this accounting request, then, it is judged that device 501 judges that this accounting request is real-time.The account information adopted in OCS101 and the data structure of rate information are as shown in Figure 2, account corresponding for user A is A001, and current time is on July 30th, 2014, so, table according to Fig. 2, current rate information corresponding for user A is T1, and the remaining sum of the current account information that user A is corresponding is B1.Then, the current balance B1 of account A001 with rate T1 charging, is updated after charging by the first message accounting 502 by this accounting request.
It can be seen that when the OCS101 accounting request received is real-time, the same with the Online Charging System of prior art, it can perform real time billing.
If it is determined that device 501 judges the mark comprising non real-time charging in its accounting request corresponding to certain user received, then illustrate that this accounting request is non real-time, it is determined that device 503 can according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information.Owing to this accounting request is non real-time, namely the event that this accounting request is corresponding does not occur at current time, therefore, containing charging in this accounting request and the moment occurs, this charging occurs the moment to actually occur the moment for what indicate event in this accounting request.Such as, current time is on July 30th, 2014, gateway 102 have sent an accounting request CCR to OCS101, this accounting request CCR for reporting the charging event on April 1st, 2014 to OCS101, so, in this CCR message, CC-Request-Type field is set to non real-time mark, and Service-Delivery-Time field is set on April 1st, 2014 (namely the moment occurs in charging).
It should be noted that, the present invention not only supports the correct charging of the accounting request to " being late ", also the correct charging of accounting request to " future " is supported, this can occur the moment to realize by arranging charging in accounting request, charging occurs the moment can be configured to early than current time sometime, it is also possible to be configured to be later than current time sometime.
As it was previously stated, the data structure storing account information and rate information in OCS101 is diversified, accordingly, it is determined that the implementation of device 503 is also different according to the concrete data structure of account information and rate information.In one embodiment, the charging in the accounting request corresponding to user A that OCS101 receives occurs the moment to be on April 1st, 2014, and current time is on July 30th, 2014, and the account information stored in OCS101 and the data structure of rate information are as shown in Figure 2.In this embodiment, it is determined that device 503 is further used for:
-account of its correspondence is determined according to the ID comprised in described accounting request.Mark according to user A, it is determined that device 503 determines its correspondence is account A001.
-judge that described charging occurs the moment to be in which account information of described account and in the effect duration of which rate information.Determine that device 503 judges that charging occurs in the effect duration of which account information that moment that is 2014 year sunset in April 1 enters account A001, by comparing, determine that device 503 judges that this charging occurs the moment to be in effect duration [2014/1/1-2014/6/30], therefore, it is judged that this charging generation moment was in the effect duration of the account information of the Article 2 record of table shown in Fig. 2 (a).The rate information that this account information is corresponding be designated TariffX, table according to Fig. 2 (b), the corresponding a plurality of rate information of TariffX, every rate information all has an effect duration, determine that device 503 judges that this charging occurs the moment to be in effect duration [2014/4/1 so far], therefore, it is judged that this charging generation moment was in the effect duration of the rate information of the Article 1 record of table shown in Fig. 2 (b).
-described account information is defined as with rate information the account information and the rate information that occur the moment corresponding with described charging.According to judgement above, determine that device 503 determines the account information of the Article 2 record that account information is table shown in Fig. 2 (a) occurring the moment corresponding with above-mentioned charging, the remaining sum of its correspondence is B2, simultaneously, determining that device 503 determines the rate information of the Article 1 record that rate information is table shown in Fig. 2 (b) occurring the moment corresponding with above-mentioned charging, the rate of its correspondence is T1.
Then, described accounting request is carried out charging with the described rate information determined and updates the described account information determined by the second message accounting 504.Such as, in the above-described embodiment, when determining that device 503 determines that with charging account information corresponding to generation April 1 2014 moment be the account information of the Article 2 record of table shown in Fig. 2 (a), it is the rate information of the Article 1 record of table shown in Fig. 2 (b) with charging rate information corresponding to generation April 1 2014 moment, so, described accounting request is carried out charging by the second message accounting 504 rate T1, and update the account information of the Article 2 record of table shown in Fig. 2 (a), such as more new balance B2 is (expense that accounting request described in B2-produces).
It can be seen that, the OCS101 non real-time accounting request for receiving, the accounting request received is processed by current account information when current rate information when being not receive and reception, but the rate information actually occurring the moment and account information with the event of this accounting request processes, it is ensured that the correctness of charging and reasonability.And, there is the moment by arranging charging in accounting request, the problem being possible not only to solve the accounting request of " being late " of existing in prior art, but also the process of accounting request to " future " can be realized.By charging occurs that the moment be arranged in the future sometime, it is possible to achieve the data that future will be come into force and the test of software.
This device 500 also includes back-up device 505 (not shown).When trigger condition meets, current account information or rate information are backed-up by back-up device 505, and the account information backed up or rate information identify the effect duration of its correspondence.
In one embodiment, when OCS101 receives the message updating rate, current rate information is backed-up by back-up device 505, and the rate information backed up identifies the effect duration of its correspondence.Such as, operator sends instruction to OCS101, and the rate being designated TariffX is changed to T1 from current T2 by instruction, and this change is effective from 2014/4/1, and current rate T2 is effective from 2014/1/1.When the instruction is received, back-up device 505 can by rate T2 backup current for TariffX, and effect duration corresponding to the phase that identifies is [2014/1/1-2014/3/31], as shown in Fig. 2 (b) shown in the Article 2 record of table, and new current rate is T1, new current rate also can be identified its effect duration [2014/4/1 so far] by back-up device 505.It can be seen that, in the present invention, freight all kind rate mark can be preserved the rate information of multiple version by OCS101, and in existing Online Charging System, when it updates current rate information, current rate information can't be backed-up but directly current rate information is updated to new rate.
In yet another embodiment, when remaining sum when OCS101 periodically resets the current account information of user and in current account information is not zero, the current account information of described user is backed-up by back-up device 505, and the account information backed up identifies the effect duration of its correspondence.Such as, the OCS101 account information needing replacement user for first day in every month, then, when resetting, back-up device 505 checks whether the remaining sum in current account information is zero, if be not zero, then current account information being backed up and identified its effect duration is last month.And in existing Online Charging System, when periodically resetting the account information of user, current account information can't be backed-up but directly current account information be reset.
When remaining sum when the product comprised in user's current account information or when servicing no longer valid and in current account information is not zero, the current account information of described user is backed-up by back-up device 505, and the account information of backup identifies the effect duration of its correspondence.Product described here or service can be exist with the form of set meal.In one embodiment, described one of situations below is included when the product comprised in user's current account information or when servicing no longer valid:
B) when the product comprised in user's current account information or when servicing expired;
B) when the product comprised in user's current account information or service not out of date but user and have subscribed new product or when service causes the product or service failure that comprise in current account information.
And in existing Online Charging System, when the product comprised in user's current account information or when servicing no longer valid, current account information can't be backed-up but directly current account information be deleted.
In yet another embodiment, this device 500 also includes checking device 506 (not shown).Check that device 506 is made regular check on described account information or rate information and deletes account information out of date or rate information according to pre-defined rule.In order to avoid substantial amounts of account information or rate information occupy substantial amounts of memory space, check that device 506 can be made regular check on, and preset some rules for indicating which account information out of date or rate information of deletion, then delete these account information out of date satisfied condition or rate informations.
It should be noted that the present invention can be implemented in the assembly of software and/or software and hardware, for instance, special IC (ASIC), general purpose computer or any other similar hardware device can be adopted to realize.In one embodiment, the software program of the present invention can perform to realize steps described above or function by processor.Similarly, the software program of the present invention can be stored in computer readable recording medium storing program for performing (including the data structure being correlated with), for instance, RAM memory, magnetically or optically driver or floppy disc and similar devices.It addition, some steps of the present invention or function can employ hardware to realize, for instance, as coordinating with processor thus performing the circuit of each step or function.
It addition, the part of the present invention can be applied to computer program, for instance computer program instructions, when it is computer-executed, by the operation of this computer, it is possible to call or provide the method according to the invention and/or technical scheme.And call the programmed instruction of the method for the present invention, it is possibly stored in fixing or moveable record medium, and/or by broadcast or data stream in other signal bearing medias and be transmitted, and/or be stored in the working storage of the computer equipment run according to described programmed instruction.At this, include a device according to one embodiment of present invention, this device includes the memorizer for storing computer program instructions and for performing the processor of programmed instruction, wherein, when this computer program instructions is performed by this processor, trigger this plant running based on the method for aforementioned multiple embodiments according to the present invention and/or technical scheme.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when without departing substantially from the spirit of the present invention or basic feature, it is possible to realize the present invention in other specific forms.Therefore, no matter from which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the invention rather than described above limits, it is intended that all changes in the implication of the equivalency dropping on claim and scope be included in the present invention.Any accompanying drawing labelling in claim should be considered as the claim that restriction is involved.Furthermore, it is to be understood that " including " word is not excluded for other unit or step, odd number is not excluded for plural number.Multiple unit or the device stated in device claim can also be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and is not offered as any specific order.

Claims (16)

1. the method being used for charging in Online Charging System, in described Online Charging System, each use correspondence per family has an account, described account corresponding at least one with the account information of effect duration, described account corresponding at least one with the rate information of effect duration, the method comprises the following steps:
Judge the mark whether comprising non real-time charging in the accounting request corresponding to certain user received;
If it is judged that for not comprise, described accounting request is carried out charging with the current rate information that described user is corresponding and updates the current account information that described user is corresponding;
If it is judged that for comprising,
-according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information;
-described accounting request carried out charging with the described rate information determined and updates the described account information determined.
2. method according to claim 1, wherein said charging occur the moment be early than current time sometime or be later than current time sometime.
3. method according to claim 1 and 2, wherein, the described step according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information farther includes:
The account of its correspondence is determined according to the ID comprised in described accounting request;
Judge that described charging occurs the moment to be in which account information of described account and in the effect duration of which rate information;
Described account information is defined as with rate information the account information and the rate information that occur the moment corresponding with described charging.
4. method according to claim 1 and 2, wherein, described method also includes:
When trigger condition meets, current account information or rate information are backed-up, and the account information backed up or rate information are identified the effect duration of its correspondence.
5. method according to claim 4, wherein, described method also includes:
When receiving the message updating rate, current rate information is backed-up, the rate information backed up is identified the effect duration of its correspondence.
6. method according to claim 4, wherein, described method also includes:
When remaining sum when periodically resetting the current account information of user and in current account information is not zero, the current account information of described user is backed-up, and the account information backed up is identified the effect duration of its correspondence;
When remaining sum when the product comprised in user's current account information or when servicing no longer valid and in current account information is not zero, the current account information of described user is backed-up, and the account information of backup is identified the effect duration of its correspondence.
7. method according to claim 6, wherein, described includes one of situations below when the product comprised in user's current account information or when servicing no longer valid:
When the product comprised in user's current account information or when servicing expired,
When the product comprised in user's current account information or service not out of date but user and have subscribed new product or when service causes the product or service failure that comprise in current account information.
8. method according to claim 1, wherein, described method also includes:
Make regular check on described account information or rate information and delete account information out of date or rate information according to pre-defined rule.
9. the device being used for charging in Online Charging System, in described Online Charging System, each use correspondence per family has an account, described account corresponding at least one with the account information of effect duration, described account corresponding at least one with the rate information of effect duration, this device includes:
Judgment means, for judging the mark whether comprising non real-time charging in the accounting request corresponding to certain user received;
First message accounting, for carrying out charging to described accounting request with the current rate information that described user is corresponding when judged result is do not comprise and updating the current account information that described user is corresponding;
Determine device, for when judged result is comprise according to the charging that comprises in described accounting request occur the moment to determine account information that the described charging with described user occurs the moment corresponding and rate information;
Second message accounting, for carrying out charging to described accounting request with the described rate information determined and updating the described account information determined.
10. device according to claim 9, wherein said charging occur the moment be early than current time sometime or be later than current time sometime.
11. the device according to claim 9 or 10, wherein, described determine that device is further used for:
The account of its correspondence is determined according to the ID comprised in described accounting request;
Judge that described charging occurs the moment to be in which account information of described account and in the effect duration of which rate information;
Described account information is defined as with rate information the account information and the rate information that occur the moment corresponding with described charging.
12. the device according to claim 9 or 10, wherein, described device also includes:
Back-up device, for current account information or rate information being backed-up when trigger condition meets, and identifies the effect duration of its correspondence to the account information backed up or rate information.
13. device according to claim 12, wherein, described back-up device is further used for:
When receiving the message updating rate, current rate information is backed-up, the rate information backed up is identified the effect duration of its correspondence.
14. device according to claim 12, wherein, described back-up device is further used for:
When remaining sum when periodically resetting the current account information of user and in current account information is not zero, the current account information of described user is backed-up, and the account information backed up is identified the effect duration of its correspondence;
When remaining sum when the product comprised in user's current account information or when servicing no longer valid and in current account information is not zero, the current account information of described user is backed-up, and the account information of backup is identified the effect duration of its correspondence.
15. device according to claim 14, wherein, described include one of situations below when the product comprised in user's current account information or when servicing no longer valid:
When the product comprised in user's current account information or when servicing expired,
When the product comprised in user's current account information or service not out of date but user and have subscribed new product or when service causes the product or service failure that comprise in current account information.
16. device according to claim 9, wherein, described device also includes:
Check device, for making regular check on described account information or rate information and deleting account information out of date or rate information according to pre-defined rule.
CN201410391681.9A 2014-08-06 2014-08-06 Charging method and equipment for online charging system Pending CN105722048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410391681.9A CN105722048A (en) 2014-08-06 2014-08-06 Charging method and equipment for online charging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410391681.9A CN105722048A (en) 2014-08-06 2014-08-06 Charging method and equipment for online charging system

Publications (1)

Publication Number Publication Date
CN105722048A true CN105722048A (en) 2016-06-29

Family

ID=56145200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410391681.9A Pending CN105722048A (en) 2014-08-06 2014-08-06 Charging method and equipment for online charging system

Country Status (1)

Country Link
CN (1) CN105722048A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120417A (en) * 2018-10-29 2019-01-01 新华三技术有限公司 Charging message makes a copy for method, apparatus, accounting server and access device
WO2019095726A1 (en) * 2017-11-16 2019-05-23 华为技术有限公司 Convergent charging method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983940A (en) * 2006-06-09 2007-06-20 华为技术有限公司 System and method combined on-line charge with off-line charge
CN101277203A (en) * 2007-03-30 2008-10-01 朗迅科技公司 Implementation of rate timer control in beforehand bookkeeping unit to support on-line and off-line charge
CN102238515A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Method, device and system for complementarily deducting fee, and online charging system
CN102694660A (en) * 2011-03-24 2012-09-26 阿尔卡特朗讯 Method and device for re-charging for pre-payment user
CN103957517A (en) * 2014-04-25 2014-07-30 华为技术有限公司 OCS, leading end network element, pricing method and speed rate monitoring method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983940A (en) * 2006-06-09 2007-06-20 华为技术有限公司 System and method combined on-line charge with off-line charge
CN101277203A (en) * 2007-03-30 2008-10-01 朗迅科技公司 Implementation of rate timer control in beforehand bookkeeping unit to support on-line and off-line charge
CN102238515A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Method, device and system for complementarily deducting fee, and online charging system
CN102694660A (en) * 2011-03-24 2012-09-26 阿尔卡特朗讯 Method and device for re-charging for pre-payment user
CN103957517A (en) * 2014-04-25 2014-07-30 华为技术有限公司 OCS, leading end network element, pricing method and speed rate monitoring method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019095726A1 (en) * 2017-11-16 2019-05-23 华为技术有限公司 Convergent charging method and device
US11019470B2 (en) 2017-11-16 2021-05-25 Huawei Technologies Co., Ltd. Convergent charging method and device
US11272333B2 (en) 2017-11-16 2022-03-08 Huawei Technologies Co., Ltd. Convergent charging method and device
CN109120417A (en) * 2018-10-29 2019-01-01 新华三技术有限公司 Charging message makes a copy for method, apparatus, accounting server and access device
CN109120417B (en) * 2018-10-29 2021-11-02 新华三技术有限公司 Charging message copying method and device, charging server and access equipment

Similar Documents

Publication Publication Date Title
EP2297986B1 (en) Synchronizing real-time and off-line accounts for communications
CN106548402B (en) Resource transfer monitoring method and device
US20140068212A1 (en) Device backups and updates in view of data usage statistics
WO2019006654A1 (en) Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device
CN110493016B (en) Flow service charging method and device
CN108632047B (en) Method and device for determining tariff data
CN102982626B (en) A kind of method of POS terminal transfer alarm and device
CN101990208A (en) Automatic data checking method, system and equipment
CN111240983A (en) Method and device for realizing automatic test of telecommunication charging service
CN102388634A (en) Flow charging method, device and system
CN108880934B (en) Data flow statistical method and device based on block chain
CN102685709A (en) Method and device for auditing charging
EP2090089B1 (en) Method and system for monitoring traffic revenue flows for communications companies
CN102387486A (en) Method and device for charging general packet radio service (GPRS) partition bill
CN102761851B (en) Charging method and device based on divided detail records
CN101415168A (en) Method and apparatus for checking charging result and configuration data
CN105722048A (en) Charging method and equipment for online charging system
CN109474902A (en) Message message accounting, method, terminal and system
CN104104556A (en) Method and system for presenting recommendation information
CN101841800A (en) Prepayment service charging method and system
CN102694660B (en) A kind of method and apparatus for carrying out restatement expense to prepaid user
CN106802916B (en) Method, device and system for verifying transaction record data of electric vehicle
CN102137376A (en) Method, system and device for processing service request
EP3104550B1 (en) Mobile digital cellular telecommunication system with advanced functionality for rating correction
CN103279816A (en) Active window-based terminal work efficiency statistical method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160629