CN102238012B - Charging method and system - Google Patents

Charging method and system Download PDF

Info

Publication number
CN102238012B
CN102238012B CN201010154203.8A CN201010154203A CN102238012B CN 102238012 B CN102238012 B CN 102238012B CN 201010154203 A CN201010154203 A CN 201010154203A CN 102238012 B CN102238012 B CN 102238012B
Authority
CN
China
Prior art keywords
data
user
counting equipment
static data
static
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.)
Expired - Fee Related
Application number
CN201010154203.8A
Other languages
Chinese (zh)
Other versions
CN102238012A (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 CN201010154203.8A priority Critical patent/CN102238012B/en
Publication of CN102238012A publication Critical patent/CN102238012A/en
Application granted granted Critical
Publication of CN102238012B publication Critical patent/CN102238012B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a charging method and system, which relate to the technical field of communication and are invented to support large-volume data storage, enhance the performance of the system and lower the cost. The charging method comprises the following steps of: receiving a charging request which comprises user information; sending a data calling request to storage equipment according to the user information in the charging request and calling dynamic data of a user from internal storage equipment in storage equipment; when locally-stored static data consistent with static data of the user stored in physical storage equipment of the storage equipment do not exist, calling the static data of the user from the physical storage equipment; and performing charging operation according to the charging request and user data, wherein the user data comprise called dynamic data, the called static data or original locally-stored static data. The embodiment of the invention can be applied to the field of communication charging.

Description

Charging method and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of charging method and system.
Background technology
Along with the development of the communication technology, the charge system in communication system is also thereupon fast-developing and be tending towards centralization construction, and operator is more and more higher to the capacity requirement of charge system, and the charge system of traditional a set of two-shipper can not meet the demands.Simultaneously, be accompanied by Advanced Telecommunications Application Environment (ATAE, being widely used Advanced Telecom Application Environment), and universal the landing gradually of " cloud " concept, originally concentrated charging ability needs can be distributed on a plurality for the treatment of facilities to complete, add in addition low cost, the advantage of high reliability, the charge system of clustering receives an acclaim day by day.
In prior art, cluster charge system generally includes a plurality of counting equipments and memory device, operator is generally all stored in system data in the memory storage device in storage facilities, and by regularly the data in memory storage device being synchronized on the physical storage device in memory device, carry out data backup.Counting equipment receives after accounting request, by remote access memory storage device, calls and upgrades the corresponding content in memory storage device, and according to the accounting request of receiving and the data called, according to charging logic, carrying out charging.In primary charging process, counting equipment may need repeatedly to access, upgrade the data in memory database, and by the fast reading and writing of internal storage data, guarantees the performance of data access.
State in realization in the process of charging, inventor finds that in prior art, at least there are the following problems: in order to guarantee the performance of charge system, all data need to be stored in memory storage device, thereby to memory size require high, but because memory size is limited, jumbo data storage be can not support, the number of users of cluster charge system support and the performance of system directly limited.And, when counting equipment is processed charging, need frequent accessing storage device, to obtain accounts information, user profile, product subscription information etc., high to storage device performance and bandwidth requirement, storage device performance has directly restricted the performance of system.
Summary of the invention
Embodiments of the invention provide the transmission of a kind of charging method, data to send out method, counting equipment, memory device and system, can support jumbo data storage, improve the performance of system.
For achieving the above object, embodiments of the invention adopt following technical scheme:
, comprising:
Receive accounting request, this accounting request comprises user profile;
According to the described user profile in described accounting request, to memory device, send data and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user; When not having this locality to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user;
According to described accounting request and user data, carry out charging computing; The static data of the dynamic data that wherein, described user data is transferred described in comprising, the static data of transferring or former local storage.
Meanwhile, the embodiment of the present invention also provides a kind of sending method of metering data, comprising:
The data that receive counting equipment transmission are transferred request;
According to described data, transfer request, to described counting equipment, send the dynamic data that the described data of transferring are transferred user corresponding to request from memory storage equipment, when described counting equipment does not have this locality to store the consistent static data of static data with the described user who stores in physical storage device, to described counting equipment, send and from described physical storage device, transfer described user's static data.
Meanwhile, the embodiment of the present invention also provides a kind of counting equipment, comprising:
Receiving element, for receiving accounting request, described accounting request comprises user profile;
Addressed location, be used for according to the user profile of described accounting request, to memory device, send data and transfer request, in memory storage device in memory device, the dynamic data of calling and obtaining user, when not having this locality to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user;
Charging Detail Record unit, for according to described accounting request and user data, carries out charging computing; The static data of the dynamic data that wherein, described user data is transferred described in comprising, the static data of transferring or former local storage.
Meanwhile, the embodiment of the present invention also provides a kind of memory device, comprising:
Memory storage device, for storing dynamic data;
Physical storage device, for storing the total data that comprises static data and described dynamic data;
Data access service end unit, for receiving the data of counting equipment transmission, transfer request, according to described data, transfer request, to described counting equipment, send the dynamic data of transferring user corresponding to request from memory storage equipment from the described data of transferring, when described counting equipment does not have this locality to store the consistent static data of static data with this user who stores in described physical storage device, to described counting equipment, send and from described physical storage device, transfer described user's static data.
Meanwhile, the embodiment of the present invention also provides a kind of cluster charge system, comprises counting equipment and memory device, wherein
Described counting equipment is used for receiving accounting request, this accounting request comprises user profile, according to the described user profile in described accounting request, to memory device, send data and transfer request, in memory storage device in memory device, the dynamic data of calling and obtaining user, when not having this locality to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user, according to described accounting request and user data, carry out charging computing, wherein, the dynamic data of transferring described in described user data comprises, the static data of the static data of transferring or former local storage,
Described memory device is used for storing user's metering data, the data that receive counting equipment transmission are transferred request, according to described data, transfer request, to described counting equipment, send the dynamic data that the described data of transferring are transferred user corresponding to request from memory storage equipment, when described counting equipment does not have this locality to store the consistent static data of static data with the described user who stores in physical storage device, described in the described user's who transfers from static data from described physical storage device to described counting equipment transmission, user's metering data comprises static data and dynamic data.
Adopt after technique scheme, the charging method that the embodiment of the present invention provides, method is sent out in the transmission of data, counting equipment, memory device and system, can be by dynamic data and separately storage of static data, in memory storage device, only need to store dynamic data rather than the total data that often needs change in charging process, thereby avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, a set of charge system can support more users, improved the performance of system and reduced cost.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the charging method that Fig. 1 provides for the embodiment of the present invention;
A kind of detail flowchart of the charging method that Fig. 2 provides for the embodiment of the present invention;
The flow chart of the sending method of the metering data that Fig. 3 provides for the embodiment of the present invention;
A kind of detail flowchart of the sending method of the metering data that Fig. 4 provides for the embodiment of the present invention;
The structured flowchart of the counting equipment that Fig. 5 provides for the embodiment of the present invention;
The another kind of structured flowchart of the counting equipment that Fig. 6 provides for the embodiment of the present invention;
The structured flowchart of the memory device that Fig. 7 provides for the embodiment of the present invention;
The structured flowchart of the data access service end unit of the memory device that Fig. 8 provides for the embodiment of the present invention;
The structured flowchart of the charge system that Fig. 9 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The charging method that the embodiment of the present invention provides, flow chart as shown in Figure 1, comprises the following steps:
S11, receives accounting request, and this accounting request comprises user profile;
S12, according to the described user profile in described accounting request, sends data to memory device and transfers request, in the memory storage device in memory device, and the dynamic data of calling and obtaining user; When not having this locality to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user;
S13, according to described accounting request and user data, carries out charging computing; The static data of the dynamic data that wherein, described user data is transferred described in comprising, the static data of transferring or former local storage.
It is to be noted, static data described in the embodiment of the present invention and dynamic data refer to the user data that charging process need to be used, wherein: described static data refers to that charging logic can not revise, revise data less or that only have bookkeeping just can revise, described dynamic data refers to the data that charging logic can frequent change.
Like this, the charging method that adopts the embodiment of the present invention to provide, memory storage device in memory device only need to be stored dynamic data rather than the total data that often needs change in charging process, thereby avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, a set of charge system can support more users, has improved the performance of system and has reduced cost.
Illustrate the charging method that the embodiment of the present invention provides below, as shown in Figure 2, comprising:
S21, counting equipment receives the accounting request that access device sends, and this accounting request comprises user profile;
S22, counting equipment, according to the described user profile in described accounting request, sends data to memory device and transfers request, in the memory storage device in memory device, the dynamic data of disposable calling and obtaining user;
S23, when counting equipment does not have this locality to store the consistent static data of static data with the user who stores in physical storage device in described memory device, counting equipment is the disposable static data of transferring this user in described physical storage device;
Pass through above-mentioned steps, making dynamic data and static data in memory device can be to divide storage, dynamic data storage is on memory storage device, static data and other total data are stored on physical storage device, memory storage device is only stored dynamic data, thereby avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, a set of charge system can support more users, has improved the performance of system and has reduced cost.
Each charging process, counting equipment can be according to actual conditions calling and obtaining user data from memory device.When initial, counting equipment does not have local storage and described user-dependent static data, counting equipment need to be transferred this user's static data, when counting equipment carried out described user's charging computing, because static data generally can not change, this user's static data can be carried out to this locality storage, when again carrying out this user's charging computing and this user's static data while not changing, just do not need to transfer this user's static data, directly adopt the static data of local storage.And because dynamic data is real-time update, need again to transfer in each charging process.Therefore, counting equipment is not need all to transfer static data and the dynamic data that charging process needs at every turn, when counting equipment local store with on described physical storage device, store, with the corresponding static data of this user during consistent static data, do not need to transfer this user's static data, only transfer the dynamic data in memory storage device, improved the speed of service and the performance of system.
Each user's static data, the specific release label information all with its version information of sign, if counting equipment this locality stores this user's static data, it is the static data that counting equipment had been transferred this user, release label information comes from the return information of transferring after static data, in counting equipment, also stores the release label information of this user's static data.If counting equipment does not have local this user's of storage static data, release label information is empty or a specific symbol.Based on this, in S22 step, describedly to memory device, send data and transfer request and specifically can adopt following manner: the data of release label information that send the described user's who comprises local storage static data to memory device are transferred request.Like this, memory device just can be transferred the release label information in request by contrasting release label information and the described data of this user's who stores on memory device static data, when two release label information are identical, confirm that counting equipment this locality stores described user's static data, counting equipment does not need to transfer described user's static data, and when two release label information differences, confirm that counting equipment does not have this locality to store described user's static data, counting equipment need to be transferred described user's static data.
S24, counting equipment in this locality, refreshes the data of local storage by the data buffer storage of transferring, and according to user's dynamic data and the static data of described accounting request and local storage, carries out charging computing in this locality.
In S22 and S23 step, disposable dynamic data or static data and the dynamic data of having transferred these charging calculating process needs of counting equipment, in this step, counting equipment is all buffered in this locality by the data of transferring, and refreshes the data of local storage.Like this, the dynamic data needing in whole charging process and static data are all stored in this locality, and counting equipment can carry out charging computing in this locality, constantly call and upgrade the data in local storage in charging process.Like this, the charging computing such as the follow-up wholesale price of this charging, fee deduction treatment all completes by access local cache.Charging is carried out in this locality, counting equipment is without frequent accessing storage device in charging process on the one hand, improve the handling property of charging and the stability of operation, guaranteed that on the other hand the process of counting equipment charging processing is substantially constant, simplified the evolution of unit to cluster.
S25, after charging completes, counting equipment, by the disposable memory device that sends to of charging result, makes memory device upgrade this user's who stores on described memory storage device dynamic data.
Dynamic data after charging completes in disposable renewal memory device, has avoided frequent access and the renewal of the counting equipment in charging process to memory device equally, has improved the performance of system and the stability of operation.It is pointed out that generally, the dynamic data in physical store is to realize by regularly the data in memory storage device being synchronized to the mode of physical storage device, so only needs to upgrade the dynamic data in memory storage device in this step.
S26, counting equipment discharges the dynamic data that local this charging process of storing is transferred;
In this step, counting equipment is release dynamics data only, and static data is still stored in counting equipment this locality, like this, just do not need each charging all from memory device, to obtain static data, reduced the data interaction between counting equipment and memory device, improved systematic function.
S27, counting equipment regularly scans the static data of local storage, according to the data that need to remove in the static data of the local storage of aging condition removing.
Certainly, static data can not indefinitely be stored in counting equipment this locality, need to regularly scan, and according to certain aging condition and removing algorithm, removes the data that need removing, guarantees the performance of system.For example, when certain user's accounting request is transferred to another counting equipment and carries out charging and process, this user's who preserves on originally corresponding with this user counting equipment static data just needs to remove.
In sum, the charging method that the present embodiment provides, can make only needs storage charging computing to need the dynamic data of frequent change on memory storage device, therefore the memory storage device of same capability is when having guaranteed the data access performance of system, can support more metering data, thereby greatly reduce cost.And, in this locality of counting equipment, carry out charging processing, do not need frequent accessing storage device on the one hand, improved the handling property of charge system, guaranteed that on the other hand the process of counting equipment charging processing is substantially constant, simplified the evolution of unit to cluster.
Also can by static data long preservation in counting equipment, not need each charging all from memory device, to obtain, reduced the data interaction between counting equipment and memory device, improved systematic function.In a word, the charging method that the present embodiment provides, makes charge system that larger capacity can be provided, high-performance more, thus reduced whole equipment cost.
Accordingly, embodiments of the invention also provide a kind of sending method of metering data, as shown in Figure 3, comprise the following steps:
S31, the data that receive counting equipment transmission are transferred request;
S32, according to described data, transfer request, to described counting equipment, send the dynamic data that the described data of transferring are transferred user corresponding to request from memory storage equipment, when described counting equipment does not have this locality to store the consistent static data of static data with the described user who stores in physical storage device, to described counting equipment, send the described user's who transfers static data from described physical storage device.
The memory device of the metering data sending method that the employing embodiment of the present invention provides, dynamic data and static data can be to divide storage, and dynamic data storage is on memory storage device, and static data and other total data are stored on physical storage device.Like this, memory storage device is only stored dynamic data, thereby avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, a set of charge system can support more users, has improved the performance of system and has reduced cost.
Wherein, in S31 step, the data that receive are transferred the release label information that request comprises the local described user's who stores of counting equipment static data, like this, memory device just can be transferred after the step of request in the data that receive counting equipment transmission, the release label information and the described data that contrast the described user's who stores in described physical storage device static data are transferred the release label information in request, when two release label information are identical, confirm that counting equipment this locality stores the static data consistent with the described user's who stores in described physical storage device static data, when two release label information are different, confirming does not have this locality to store the static data consistent with the described user's who stores in described physical storage device static data on counting equipment.
The sending method that illustrates the metering data that the embodiment of the present invention provides below, as shown in Figure 4, comprising:
S41, memory device receives the data of counting equipment transmission and transfers request, and described data are transferred the release label information that request comprises the static data of the local user's fee of storing of counting equipment;
S42, memory device is transferred request according to described data, to described counting equipment send from memory storage equipment, transfer, described data transfer user corresponding to request dynamic data;
In memory device, dynamic data and static data are to divide storage, and dynamic data storage is on memory storage device, and static data and other total data are stored on physical storage device.In this step, the dynamic data that memory device is transferred user's fee in memory storage device sends to counting equipment.In memory storage device, only store dynamic data, the restriction of memory storage device capacity to systematic function can be avoided, under the prerequisite of hoist capacity not, more jumbo data storage can be supported, a set of charge system can support more users, has improved the performance of system and has reduced cost.
S43, memory device contrasts release label information and the described data of the described user's who stores in described physical storage device static data and transfers the release label information in request, confirms whether this locality stores the static data consistent with the described user's who stores in described physical storage device static data to counting equipment;
When two release label information are identical, confirm that counting equipment this locality stores described user's static data, counting equipment does not need to transfer described user's static data, and when two release label information differences, confirm that counting equipment does not have this locality to store described user's static data, counting equipment need to be transferred described user's static data.
S44, when described counting equipment does not have this locality to store the consistent static data of static data with the described user who stores in physical storage device, memory device sends the described user's who transfers from described physical storage device static data to counting equipment.
Meanwhile, embodiments of the invention also provide a kind of counting equipment 1, as shown in Figure 5, comprising:
Receiving element 10, for receiving accounting request, described accounting request comprises user profile;
Addressed location 11, be used for according to the user profile of described accounting request, to memory device, send data and transfer request, in memory storage device in memory device, the dynamic data of calling and obtaining user, when not having this locality to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user;
Charging Detail Record unit 12, for according to described accounting request and user data, carries out charging computing; The static data of the dynamic data that wherein, described user data is transferred described in comprising, the static data of transferring or former local storage.
The counting equipment 1 that the embodiment of the present invention provides, can from memory storage device, call respectively dynamic data, from physical storage device, transfer static data, dynamic data and static data that charging is needed can separately be stored in memory device, in memory storage device, only need to store dynamic data rather than the total data that often needs change in charging process, thereby avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, a set of charge system can support more users, improved the performance of system and reduced cost.
Further, as shown in Figure 6, counting equipment 1 also comprises:
Local memory cell 13, the data that need for storing charging process, described data comprise described user's static data and dynamic data, are convenient to Charging Detail Record unit 12 and in this locality, carry out charging computing according to the user's of this locality storage dynamic data and static data.
Like this, addressed location 11 is kept at the data of transferring in local memory cell 13, the dynamic data needing in whole charging process and static data are all stored in local memory cell 13, Charging Detail Record unit 12 can constantly call and upgrade the data in local memory cell 13 in charging process, in counting equipment 1 this locality, carries out charging computing.Like this, the charging computing such as the follow-up wholesale price in charging process, fee deduction treatment all completes by accessing local memory cell 13.Charging is carried out in this locality, counting equipment 1 is without frequent accessing storage device in charging process on the one hand, improve the handling property of charging and the stability of equipment operation, guaranteed that on the other hand the process of counting equipment charging processing is substantially constant, simplified the evolution of unit to cluster.Also can by local memory cell 13 by static data long preservation in counting equipment, do not need each charging all from memory device, to obtain, reduced interaction data between counting equipment and memory device, improved systematic function.
Further, described addressed location 11 comprises that data transfer request generation module 110 and access modules 111, wherein,
Transfer request generation module 110 and transfer request for generating the data of the release label information of the static data that comprises the counting equipment 1 local described user who stores;
Access modules 111 is transferred request for sending data to memory device, in memory storage device in memory device, transfer described user's dynamic data, when not having this locality to store the consistent static data of static data with the described user who stores in physical storage device in memory device, in described physical storage device, transfer described user's static data.
Like this, can make memory device transfer the release label information in request according to data, by contrasting release label information and the described data of the described user's who stores in described physical storage device static data, transfer the release label information in request, when two release label information are identical, confirm that counting equipment 1 this locality stores the static data consistent with the described user's who stores in described physical storage device static data, counting equipment 1 does not need to transfer described user's static data, when two release label information are different, confirm that counting equipment 1 does not have this locality to store the static data consistent with the described user's who stores in described physical storage device static data, counting equipment 1 need to be transferred described user's static data.Like this, counting equipment 1 does not need all to transfer static data and the dynamic data of charging process needs at every turn, when counting equipment 1 local while storing the consistent static data of static data with the described user who stores on described physical storage device, do not need to transfer this user's static data, only transfer the dynamic data in memory storage device, improved the speed of service and the performance of system.
Further, after access modules 111 also completes for charging, by the disposable memory device that sends to of charging result, make described memory device upgrade the described user's who stores in described memory storage device dynamic data.
Dynamic data after charging completes in disposable renewal memory device, has avoided frequent access and the renewal of the counting equipment in charging process to memory device equally, has improved the performance of system and the stability of operation.
Further, counting equipment 1 also can comprise data scrubbing unit 14, after completing for charging, discharge the dynamic data that this charging process of local memory cell 13 storages is transferred, and the static data of local memory cell 13 storages of periodic scanning, according to the data that need to remove in the static data of the local storage of aging condition removing.
Counting equipment 1 by static data long preservation in local memory cell 13, for guaranteed performance, must within the regular hour, to data, scan, according to specific aging algorithm, remove the data that need removing, rationally take storage resources, further guarantee the performance of counting equipment 1.
Correspondingly, embodiments of the invention also provide a kind of memory device 2, as shown in Figure 7, comprising:
Memory storage device 20, for storing dynamic data;
Physical storage device 21, for storing the total data that comprises static data and described dynamic data;
Data access service end unit 22, for receiving the data of counting equipment transmission, transfer request, according to described data, transfer request, to described counting equipment, send the dynamic data of transferring user corresponding to request from memory storage equipment from the described data of transferring, when described counting equipment does not have this locality to store the consistent static data of static data with the described user who stores in described physical storage device, to described counting equipment, send the described user's who transfers static data from described physical storage device.
The memory device 2 that the embodiment of the present invention provides, dynamic data and static data that charging needs can separately be stored, in memory storage device 20, only need to store dynamic data rather than the total data that often needs change in charging process, account balance information for example, account accumulative total information etc., in physical storage device 21, storage comprises static data and all data of dynamic data, comprise user data, product data, subscription data, the perdurable data of memory storage device 20 is dynamic data, the data that also have system configuration class etc.Therefore, the memory storage device 20 of same capability is when having guaranteed the data access performance of system, avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, make to adopt the charge system of memory device 2 can support more users, improved the performance of system and reduced cost.
Wherein, as shown in Figure 8, data access service end unit 22 comprises:
Receiver module 220, transfers request for receiving the data of counting equipment transmission;
Confirm module 221, for contrasting the described user's of physical storage device 21 storage release label information and the described data of static data, transfer the release label information in request, when two release label information are identical, confirm that counting equipment this locality stores the static data consistent with the described user's who stores in described physical storage device static data, when two release label information are different, confirming does not have this locality to store the static data consistent with the described user's who stores in described physical storage device static data on counting equipment;
Sending module 222, for sending to described counting equipment the dynamic data that the described data of transferring from memory storage equipment 20 are transferred user corresponding to request, when described counting equipment does not have this locality to store the consistent static data of described user's static data with storage in physical storage device 21, to described counting equipment, send the described user's who transfers static data from physical storage device 21.
On the memory storage device 20 of the present embodiment, can store in addition the release label information of the static information of storage on physical storage device 21, like this, confirmation module 221 is transferred the release label information on memory storage device 20, the release label information contrast comprising with the data call request of the counting equipment receiving, determine whether transfer the static data in physical storage device 21, release label information is identical, does not transfer static data, release label is identical, transfers static data.Certainly confirm that module 221 also can transfer the release label information on physical storage device 21, can be according to actual conditions setting, but the read or write speed of invoke memory memory device 20 is very fast.
Further, data access service end unit 22 also upgrades the dynamic data of memory storage device 20 for the charging result sending according to counting equipment.Here be noted that the dynamic data persistence of memory storage device 20 is in physical storage device 21, the dynamic data in physical storage device 21 is to realize by regularly the data in memory storage device being synchronized to the mode of physical storage device.Therefore, in renewal process, 22 of data access service end units need to upgrade the dynamic data on memory storage device 20, and physical storage device 21 is by synchronizeing with the regular of memory storage device 20, and the perdurable data that just can tackle mutually the memory storage device 20 of storage upgrades.Certainly also can there be other update modes, do not limit here.
Accordingly, embodiments of the invention also provide a kind of charge system, as shown in Figure 9, comprise at least one counting equipment 3 and memory device 4,
Wherein, counting equipment 3 is for receiving accounting request, and this accounting request comprises user profile, according to the user profile in described accounting request, to memory device 4, send data and transfer request, in the memory storage device 40 in memory device 4, transfer described user's dynamic data; When not having this locality to store the consistent static data of static data with the described user of storage in physical storage device 41 in memory device 4, in physical storage device 41, transfer described user's static data, and according to described accounting request and user data, carry out charging computing, the static data of the dynamic data that wherein, described user data is transferred described in comprising, the static data of transferring or former local storage;
Memory device 4 is for storing user's metering data, the data that receive counting equipment 3 transmissions are transferred request, according to described data, transfer request, to counting equipment 3, send the dynamic data that the described data of transferring are transferred user corresponding to request from memory storage equipment 40, when counting equipment 3 does not have this locality to store the consistent static data of described user's static data with storage in physical storage device 41, to counting equipment 3, send the described user's who transfers static data from described physical storage device 41.
The charge system that the embodiment of the present invention provides, 40 of memory storage devices need to be stored dynamic data rather than the total data that often needs change in charging process, thereby avoided the restriction of memory storage device capacity to systematic function, under the prerequisite of hoist capacity not, can support more jumbo data storage, a set of charge system can support more users, has improved the performance of system and has reduced cost.
Further, the counting equipment that counting equipment 3 can adopt the embodiment of the present invention to provide, the memory device that memory device 4 can adopt the embodiment of the present invention to provide, is described in detail above, repeats no more here.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (11)

1. a charging method, is characterized in that, comprising:
Receive accounting request, this accounting request comprises user profile;
According to the described user profile in described accounting request, to memory device, send data and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user; When counting equipment is local while there is no to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user;
According to described accounting request and user data, carry out charging computing; Wherein, described user data comprises the dynamic data of transferring and the static data of transferring, or the static data of the dynamic data of transferring and the local storage of former counting equipment;
Described according to described accounting request and user data, carry out charging computing and be specially:
The data buffer storage of transferring is local at counting equipment, refresh the data of the local storage of counting equipment, according to the described user's of described accounting request and the local storage of counting equipment dynamic data and static data, in counting equipment this locality, carry out charging computing;
Described static data and dynamic data are the user data that charging process need to be used, wherein: described static data refers to that charging logic can not revise, revise data less or that only have bookkeeping just can revise, described dynamic data refers to the data that charging logic can frequent change.
2. method according to claim 1, it is characterized in that, describedly to memory device, send data and transfer request and be specially: the data of release label information that send the described user's who comprises the local storage of described counting equipment static data to memory device are transferred request.
3. method according to claim 1, is characterized in that, described according to described accounting request and user data, carries out, after the step of charging computing, also comprising:
After charging completes, by the disposable memory device that sends to of charging result, make described memory device upgrade the described user's who stores in described memory storage device dynamic data.
4. method according to claim 3, is characterized in that, after described charging completes, by the disposable memory device that sends to of charging result, described memory device is upgraded after described user's the step of dynamic data of described memory storage device, also comprises:
Discharge the dynamic data that local this charging process stored of described counting equipment is transferred;
The static data of the local storage of counting equipment described in periodic scanning, removes the data that need removing in the local static data of storing of described counting equipment according to aging condition.
5. a sending method for metering data, is characterized in that, comprising:
Memory device receives the data of counting equipment transmission and transfers request;
Memory device is transferred request according to described data, to described counting equipment, send the dynamic data that the described data of transferring are transferred user corresponding to request from memory storage device, when the consistent static data of the local not storage of described counting equipment and the described user's who stores in physical storage device static data, the described user's who transfers from static data from described physical storage device to described counting equipment transmission;
Described counting equipment is local at described counting equipment by the data buffer storage of transferring, and refresh the data of the local storage of described counting equipment, according to user's dynamic data and the static data of described accounting request and the local storage of described counting equipment, in described counting equipment this locality, carry out charging computing;
Described static data and dynamic data are the user data that charging process need to be used, wherein: described static data refers to that charging logic can not revise, revise data less or that only have bookkeeping just can revise, described dynamic data refers to the data that charging logic can frequent change.
6. method according to claim 5, is characterized in that, the data that described reception counting equipment sends are transferred request and are specially:
The data that receive counting equipment transmission are transferred request, and described data are transferred the release label information that request comprises the local described user's who stores of counting equipment static data;
The data that described reception counting equipment sends are transferred after the step of request, also comprise:
The release label information and the described data that contrast the described user's who stores in described physical storage device static data are transferred the release label information in request, when two release label information are identical, confirm the local storage of the counting equipment static data consistent with the described user's who stores in described physical storage device static data, when two release label information are different, confirm the local not storage of the counting equipment static data consistent with the described user's who stores in described physical storage device static data.
7. a counting equipment, is characterized in that, comprising:
Receiving element, for receiving accounting request, described accounting request comprises user profile;
Addressed location, be used for according to the user profile of described accounting request, to memory device, send data and transfer request, in memory storage device in memory device, the dynamic data of calling and obtaining user, when counting equipment is local while there is no to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user;
Charging Detail Record unit, for according to described accounting request and user data, carries out charging computing; Wherein, described user data comprises the dynamic data of transferring and the static data of transferring, or the static data of the dynamic data of transferring and the local storage of former counting equipment;
The local memory cell of counting equipment, the data that need for storing charging process, described data comprise described user's static data and dynamic data;
Described Charging Detail Record unit, specifically for carrying out charging computing according to the user's of the local storage of counting equipment dynamic data and static data in counting equipment this locality;
Described static data and dynamic data are the user data that charging process need to be used, wherein: described static data refers to that charging logic can not revise, revise data less or that only have bookkeeping just can revise, described dynamic data refers to the data that charging logic can frequent change.
8. counting equipment according to claim 7, is characterized in that, described addressed location comprises that data transfer request generation module and access modules, wherein,
The described request generation module of transferring is transferred request for generating the data of the release label information of the static data that comprises the local described user who stores of described counting equipment;
Described access modules is transferred request for sending data to memory device, in memory storage device in memory device, transfer described user's dynamic data, when described counting equipment is local while there is no to store the consistent static data of static data with the described user who stores in physical storage device in memory device, in described physical storage device, transfer described user's static data.
9. counting equipment according to claim 8, it is characterized in that, after described access modules also completes for charging, by the disposable memory device that sends to of charging result, make described memory device upgrade the described user's who stores in described memory storage device dynamic data.
10. counting equipment according to claim 7, it is characterized in that, also comprise data scrubbing unit, after completing for charging, discharge the dynamic data that this charging process of the local cell stores of described counting equipment is transferred, and the static data of the local cell stores of counting equipment described in periodic scanning, according to aging condition, remove and in the static data of the local storage of counting equipment, need the data removed.
11. 1 kinds of cluster charge systems, is characterized in that, comprise counting equipment and memory device, wherein:
Described counting equipment is used for receiving accounting request, this accounting request comprises user profile, according to the described user profile in described accounting request, to memory device, send data and transfer request, in memory storage device in memory device, the dynamic data of calling and obtaining user, when counting equipment is local while there is no to store the consistent static data of static data with the user who stores in physical storage device in memory device, in described physical storage device, the static data of calling and obtaining user, according to described accounting request and user data, carry out charging computing, wherein, described user data comprises the dynamic data of transferring and the static data of transferring, or the static data of the local storage of the dynamic data of transferring and former counting equipment, described according to described accounting request and user data, carrying out charging computing is specially: the data buffer storage of transferring is local at counting equipment, refresh the data of the local storage of counting equipment, according to the described user's of described accounting request and the local storage of counting equipment dynamic data and static data, in counting equipment this locality, carry out charging computing,
Described memory device is used for storing user's metering data, the data that receive counting equipment transmission are transferred request, according to described data, transfer request, to described counting equipment, send the dynamic data that the described data of transferring are transferred user corresponding to request from memory storage device, when the consistent static data of the local not storage of described counting equipment and the described user's who stores in physical storage device static data, the described user's who transfers from static data from described physical storage device to described counting equipment transmission; Described user's metering data comprises static data and dynamic data;
Described static data and dynamic data are the user data that charging process need to be used, wherein: described static data refers to that charging logic can not revise, revise data less or that only have bookkeeping just can revise, described dynamic data refers to the data that charging logic can frequent change.
CN201010154203.8A 2010-04-23 2010-04-23 Charging method and system Expired - Fee Related CN102238012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010154203.8A CN102238012B (en) 2010-04-23 2010-04-23 Charging method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010154203.8A CN102238012B (en) 2010-04-23 2010-04-23 Charging method and system

Publications (2)

Publication Number Publication Date
CN102238012A CN102238012A (en) 2011-11-09
CN102238012B true CN102238012B (en) 2014-01-22

Family

ID=44888264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010154203.8A Expired - Fee Related CN102238012B (en) 2010-04-23 2010-04-23 Charging method and system

Country Status (1)

Country Link
CN (1) CN102238012B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095471A (en) * 2013-01-25 2013-05-08 浪潮电子信息产业股份有限公司 Charging method based on usage amount in cloud operating system (OS)
CN104735103B (en) * 2013-12-19 2018-08-28 中国移动通信集团湖南有限公司 A kind of management of distributed data and method of reseptance, device
CN104156442B (en) * 2014-08-13 2018-12-25 中国银行股份有限公司 Cumulative data application method
CN110662188B (en) * 2018-06-28 2021-09-07 中国电信股份有限公司 Charging method and system
CN112448823B (en) * 2019-08-30 2023-06-27 天翼云科技有限公司 Charging method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620017A (en) * 2003-11-18 2005-05-25 华为技术有限公司 Charging buffer storage system of broad band network cut-in service device and its method
EP1638307A1 (en) * 1997-06-02 2006-03-22 Telefonaktiebolaget LM Ericsson (publ) Method and system for handling parallel transactions on telephone pre-paid accounts
CN101217690A (en) * 2007-12-27 2008-07-09 华为技术有限公司 A system and method for realizing distributed storage of data operation and data information
CN101281542A (en) * 2008-05-09 2008-10-08 华为技术有限公司 Method and device for storing file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1638307A1 (en) * 1997-06-02 2006-03-22 Telefonaktiebolaget LM Ericsson (publ) Method and system for handling parallel transactions on telephone pre-paid accounts
CN1620017A (en) * 2003-11-18 2005-05-25 华为技术有限公司 Charging buffer storage system of broad band network cut-in service device and its method
CN101217690A (en) * 2007-12-27 2008-07-09 华为技术有限公司 A system and method for realizing distributed storage of data operation and data information
CN101281542A (en) * 2008-05-09 2008-10-08 华为技术有限公司 Method and device for storing file

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
一种内存数据库与大型数据库的连接方案;徐书华;《微型机与应用》;20010925(第9期);全文 *
一种流媒体在线计费系统研究和性能优化;匡振国 等;《计算机工程与应用》;20081011;第44卷(第29期);全文 *
匡振国 等.一种流媒体在线计费系统研究和性能优化.《计算机工程与应用》.2008,第44卷(第29期),115-118.
徐书华.一种内存数据库与大型数据库的连接方案.《微型机与应用》.2001,(第9期),7-9.

Also Published As

Publication number Publication date
CN102238012A (en) 2011-11-09

Similar Documents

Publication Publication Date Title
CN102238012B (en) Charging method and system
CN101488928B (en) Internet enterprise group communication device and internet enterprise group communication method
US7975120B2 (en) Dynamic allocation of message buffers
CN101854388B (en) Method and system concurrently accessing a large amount of small documents in cluster storage
CN103607428A (en) Method of accessing shared memory and apparatus thereof
CN104102693A (en) Object processing method and device
CN103064795B (en) A kind of control method of memory device and relevant apparatus
CN103761141A (en) Method and device for realizing message queue
CN103401909A (en) Data interaction method and system based on BS (browser/server), client end and server
US8886741B2 (en) Receive queue models to reduce I/O cache consumption
CN102253810B (en) Method, apparatus and system used for reading data
CN103036916A (en) Method, device and system thereof for calling remote hardware resources
CN113535395A (en) Descriptor queue and memory optimization method, system and application of network storage service
CN110109868A (en) Method, apparatus and computer program product for index file
CN102012899A (en) Method, system and equipment for updating data
CN102982182A (en) Data storage planning method and device
CN102388583A (en) Series rate allocation method, relative device and system
CN102103530B (en) Snapshot methods, snapshot device and snapshot system
CN103577469A (en) Database connection multiplexing method and device
CN111782425A (en) Inter-task communication method and device based on index queue and computer equipment
CN106302625A (en) Data-updating method, device and related system
CN102043741B (en) Circuit and method for pipe arbitration
CN101887456A (en) System and method for migrating data
CN110704091A (en) Firmware upgrading method and device
CN102571935A (en) Data transmission method, client, server 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140122

CF01 Termination of patent right due to non-payment of annual fee