CN102238012A - Charging method and system - Google Patents

Charging method and system Download PDF

Info

Publication number
CN102238012A
CN102238012A CN2010101542038A CN201010154203A CN102238012A CN 102238012 A CN102238012 A CN 102238012A CN 2010101542038 A CN2010101542038 A CN 2010101542038A CN 201010154203 A CN201010154203 A CN 201010154203A CN 102238012 A CN102238012 A CN 102238012A
Authority
CN
China
Prior art keywords
data
user
static data
request
storage device
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.)
Granted
Application number
CN2010101542038A
Other languages
Chinese (zh)
Other versions
CN102238012B (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 development of Communication Technique, the charge system in the communication system is also fast-developing thereupon and be tending towards the centralization construction, and operator is more and more higher to the capacity requirement of charge system, and the charge system of a traditional cover two-shipper can not meet the demands.Simultaneously, be accompanied by Advanced Telecommunications Application Environment (ATAE, being extensive use of Advanced Telecom Application Environment), and popularizing gradually of " cloud " notion landed, originally the charging ability of concentrating needs can be distributed on a plurality of treatment facilities to finish, add low cost in addition, the advantage of high reliability, the charge system of clusterization receives an acclaim day by day.
In the prior art, the cluster charge system generally includes a plurality of counting equipments and memory device, operator generally all is stored in system data in the memory storage device in the storage facilities, and by regularly with on the physical storage device of the data sync in the memory storage device in the memory device, carry out data backup.After counting equipment is received the request of chargeing, with the remote access memory storage device, call with the updating memory memory device in the content of correspondence, and, charge according to the charging logic according to charging request of receiving and the data of calling.In the primary charging process, counting equipment may need repeatedly to visit, the data in the updating memory database, and guarantees the performance of data access by the fast reading and writing of internal storage data.
State in realization in the process of charging, the inventor finds that there are the following problems at least in the prior art: in order to guarantee the performance of charge system, all data need be stored in the memory storage device, thereby to memory size require high, but because memory size is limited, the large-capacity data storage be can not support, the number of users of cluster charge system support and the performance of system directly limited.And counting equipment is handled when chargeing, and needs the frequent access memory device, and 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 the large-capacity data storage, improve the performance of system.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of charging method comprises:
Receive the request of charging, comprise user profile in this charging request;
According to the described user profile in the described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user; When do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user;
According to described charging request and user data, the computing of chargeing; Wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage.
Simultaneously, the embodiment of the invention also provides a kind of sending method of metering data, comprising:
The data that receive the counting equipment transmission are transferred request;
Transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to described counting equipment from memory storage equipment, when described counting equipment does not have this locality to store the static data consistent with the described user's that stores static data in the physical storage device, send the static data of from described physical storage device, transferring described user to described counting equipment.
Simultaneously, the embodiment of the invention also provides a kind of counting equipment, comprising:
Receiving element is used for receiving the request of charging, comprises user profile in the described charging request;
Addressed location, be used for user profile according to described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user, when do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user;
Charging Detail Record unit is used for according to described charging request and user data, the computing of chargeing; Wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage.
Simultaneously, the embodiment of the invention also provides a kind of memory device, comprising:
Memory storage device is used to store dynamic data;
Physical storage device is used to store the total data that comprises static data and described dynamic data;
The data access service end unit, be used to receive the data that counting equipment sends and transfer request, transfer request according to described data, send the dynamic data of transferring the corresponding user of request from the described data of from memory storage equipment, transferring to described counting equipment, when described counting equipment does not have this locality to store the static data consistent with this user's of storing static data in the described physical storage device, send the static data of from described physical storage device, transferring described user to described counting equipment.
Simultaneously, the embodiment of the invention also provides a kind of cluster charge system, comprises counting equipment and memory device, wherein
Described counting equipment is used for receiving the request of charging, comprise user profile in this charging request, according to the described user profile in the described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user, when do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user, according to described charging request and user data, the computing of chargeing, wherein, described user data comprises the described dynamic data of transferring, the static data of static data of transferring or former local storage;
Described memory device is used to store user's metering data, the data that receive the counting equipment transmission are transferred request, transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to described counting equipment from memory storage equipment, when described counting equipment did not have this locality to store the static data consistent with the described user's that stores static data in the physical storage device, the described user's metering data of static data that sends the described user who transfers to described counting equipment from described physical storage device comprised static data and dynamic data.
After adopting technique scheme, the charging method that the embodiment of the invention provides, method is sent out in the transmission of data, counting equipment, memory device and system, can be with dynamic data and static data separate storage, only need frequent dynamic data rather than the total data that need change in the storage charging process in the memory storage device, thereby avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, one cover charge system can support more users, has improved the performance of system and has reduced cost.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the charging method that Fig. 1 provides for the embodiment of the invention;
A kind of detail flowchart of the charging method that Fig. 2 provides for the embodiment of the invention;
The flow chart of the sending method of the metering data that Fig. 3 provides for the embodiment of the invention;
A kind of detail flowchart of the sending method of the metering data that Fig. 4 provides for the embodiment of the invention;
The structured flowchart of the counting equipment that Fig. 5 provides for the embodiment of the invention;
The another kind of structured flowchart of the counting equipment that Fig. 6 provides for the embodiment of the invention;
The structured flowchart of the memory device that Fig. 7 provides for the embodiment of the invention;
The structured flowchart of the data access service end unit of the memory device that Fig. 8 provides for the embodiment of the invention;
The structured flowchart of the charge system that Fig. 9 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The charging method that the embodiment of the invention provides, flow chart as shown in Figure 1 comprises the following steps:
S11 receives the request of charging, comprises user profile in this charging request;
S12 according to the described user profile in the described charging 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 do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user;
S13 is according to described charging request and user data, the computing of chargeing; Wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage.
It is to be noted, static data described in the embodiment of the invention and dynamic data are meant the user data that charging process need use, wherein: described static data is meant that the charging logic can not revise, revise data less or that have only bookkeeping just can revise, and described dynamic data is meant the data that the charging logic can frequent change.
Like this, the charging method that adopts the embodiment of the invention to provide, memory storage device in the memory device only need be stored dynamic data rather than the total data that often needs change in the charging process, thereby avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, a cover charge system can support more users, has improved the performance of system and has reduced cost.
Specify the charging method that the embodiment of the invention provides below, as shown in Figure 2, comprising:
S21, counting equipment receives the charging request that access device sends, and comprises user profile in this charging request;
S22, counting equipment send data to memory device and transfer request according to the described user profile in the described charging request, in the memory storage device in memory device, and the dynamic data of disposable calling and obtaining user;
S23, when counting equipment do not have this locality store with described memory device in physical storage device in during the consistent static data of the user's that stores static data, 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 the memory device can be to divide storage, dynamic data storage is on memory storage device, static data and other total data are stored on the physical storage device, memory storage device is only stored dynamic data, thereby avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, one cover 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 be transferred this user's static data, carried out described user's charging computing when counting equipment, because static data generally can not change, this user's static data can be carried out this locality storage, when the charging computing of carrying out this user once more and this user's static data does not change, just do not need to transfer this user's static data, directly adopt the static data of local storage to get final product.And because dynamic data is a real-time update, then need to transfer again 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 is local store with described physical storage device on store, with the corresponding static data of this user during consistent static data, then do not need to transfer this user's static data, the dynamic data of only transferring in the memory storage device gets final product, and has improved the speed of service and the performance of system.
Each user's static data, the specific release label information that all has 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 behind the static data, then also stores the release label information of this user's static data in the counting equipment.If counting equipment does not have local this user's of storage static data, then release label information is empty or a specific symbol.Based on this, in the S22 step, describedly send data to memory device 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, the release label information of this user's that memory device just can be stored on the memory device by contrast static data and described data are transferred the release label information in the request, 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 be transferred described user's static data.
S24, counting equipment in this locality, refresh the data of local storage with the metadata cache transferred, according to the computing of chargeing in this locality of user's dynamic data of described charging request and local storage and static data.
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 all is buffered in this locality with the data of transferring, and refreshes the data of local storage.Like this, dynamic data that needs in the whole charging process and static data all are stored in this locality, and the counting equipment computing of can chargeing in this locality is constantly called in charging process and upgraded data in the local storage.Like this, charging computings such as the follow-up wholesale price of this charging, fee deduction treatment are all finished by the visit local cache.Charging is carried out in this locality, counting equipment need not frequent accessing storage device in charging process on the one hand, improved the handling property of charging and the stability of operation, guaranteed that on the other hand the process of counting equipment charging processing is constant substantially, simplified the evolution of unit to cluster.
S25, after charging was finished, counting equipment made memory device upgrade this user's who stores on the described memory storage device dynamic data the disposable memory device that sends to of charging result.
Dynamic data after charging is finished in the disposable updated stored equipment has been avoided frequent access and the renewal of the counting equipment in the 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 the physical store is by regularly the mode of the data sync in the memory storage device to physical storage device being realized, so only need the dynamic data in the updating memory memory device to get final product in this step.
S26, counting equipment discharge the dynamic data that local this charging process of storing is transferred;
In this step, counting equipment only discharges dynamic data, and static data still is stored in counting equipment this locality, like this, just do not need each the 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 scan the static data of local storage, remove the data that needs are removed in the local static data of storing according to aging condition.
Certainly, static data can not indefinitely be stored in counting equipment this locality, need regularly scan, and removes the data that needs are removed according to certain aging condition and removing algorithm, guarantees the performance of system.For example, charge when handling when certain user's charging request is transferred to another counting equipment, 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 present embodiment provides, can make the dynamic data that only needs storage charging computing to need frequent change on the memory storage device, therefore the memory storage device of same capability is in the data access performance that has guaranteed system, can support more metering data, thereby greatly reduce cost.And the processing of chargeing in this locality of counting equipment does not need the frequent access memory device on the one hand, has improved the handling property of charge system, has guaranteed that on the other hand the process of counting equipment charging processing is constant substantially, has simplified the evolution of unit to cluster.
Also can with the static data long preservation in counting equipment, not need each the 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 present embodiment provides makes charge system that bigger 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 the counting equipment transmission are transferred request;
S32, transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to described counting equipment from memory storage equipment, when described counting equipment does not have this locality to store the static data consistent with the described user's that stores static data in the physical storage device, send the described user's who from described physical storage device, transfers static data to described counting equipment.
The memory device of the metering data sending method that the employing embodiment of the 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 the physical storage device.Like this, memory storage device is only stored dynamic data, thereby avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, one cover charge system can support more users, has improved the performance of system and has reduced cost.
Wherein, in the S31 step, the data that received 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 after the data that receive the counting equipment transmission be transferred the step of request, contrast the described user's who stores in the described physical storage device the release label information of static data and described data and transfer release label information in the request, when two release label information are identical, confirm counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data, when two release label information not simultaneously, confirm not have on the counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data.
Specify the sending method of the metering data that the embodiment of the invention provides below, as shown in Figure 4, comprising:
S41, memory device receive the data of counting equipment transmission and transfer 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 the corresponding user's of request dynamic data;
In the 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 the physical storage device.In this step, memory device is transferred user's fee in memory storage device dynamic data sends to counting equipment.Only store dynamic data in the memory storage device, of the restriction of memory storage device capacity can be avoided, under the prerequisite that does not promote capacity, more large-capacity data storage can be supported systematic function, one cover charge system can support more users, has improved the performance of system and has reduced cost.
S43, memory device contrasts the described user's who stores in the described physical storage device the release label information of static data and described data and transfers release label information in the request, confirm counting equipment whether local store with described physical storage device in the described user's that stores the consistent static data of 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 be transferred described user's static data.
S44, when described counting equipment did not have this locality to store the static data consistent with the described user's that stores static data in the physical storage device, memory device sent the described user's who transfers static data to counting equipment from described physical storage device.
Simultaneously, embodiments of the invention also provide a kind of counting equipment 1, as shown in Figure 5, comprising:
Receiving element 10 is used for receiving the request of charging, comprises user profile in the described charging request;
Addressed location 11, be used for user profile according to described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user, when do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user;
Charging Detail Record unit 12 is used for according to described charging request and user data, the computing of chargeing; Wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage.
The counting equipment 1 that the embodiment of the invention provides, can from memory storage device, call dynamic data respectively, from physical storage device, transfer static data, make dynamic data that charging needs and the static data can separate storage in memory device, only need frequent dynamic data rather than the total data that need change in the storage charging process in the memory storage device, thereby avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, one cover charge system can support more users, has improved the performance of system and has reduced cost.
Further, as shown in Figure 6, counting equipment 1 also comprises:
Local memory cell 13, the data that are used to store charging process needs, described data comprise described user's static data and dynamic data, are convenient to the computing of chargeing in this locality of the user's that Charging Detail Record unit 12 stores according to this locality dynamic data and static data.
Like this, addressed location 11 is kept at the data of transferring in the local memory cell 13, dynamic data that needs in the whole charging process and static data all are stored in the local memory cell 13, Charging Detail Record unit 12 can constantly call and upgrade the data in the local memory cell 13 in charging process, the computing of chargeing in counting equipment 1 this locality.Like this, charging computings such as the follow-up wholesale price in the charging process, fee deduction treatment are all finished by visiting local memory cell 13.Charging is carried out in this locality, counting equipment 1 need not frequent accessing storage device in charging process on the one hand, improved the handling property and the operation stability of equipment of chargeing, guaranteed that on the other hand the process of counting equipment charging processing is constant substantially, simplified the evolution of unit to cluster.Also can by local memory cell 13 with the static data long preservation in counting equipment, not needing each the 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 the data of release label information that request generation module 110 is used to generate the described user's who comprises the local storage of counting equipment 1 static data and transfer request;
Access modules 111 is used for sending data to memory device and transfers request, in the memory storage device in memory device, transfer described user's dynamic data, when do not have this locality store with memory device in physical storage device in during the consistent static data of the described user's that stores static data, in described physical storage device, transfer described user's static data.
Like this, can make memory device transfer release label information in the request according to data, the release label information of the static data by contrasting the described user who stores in the described physical storage device and described data are transferred the release label information in the request, when two release label information are identical, confirm counting equipment 1 this locality store with described physical storage device in the described user's that stores the consistent static data of static data, counting equipment 1 need not transferred described user's static data, when two release label information not simultaneously, confirm counting equipment 1 do not have this locality store with described physical storage device in the described user's that stores the consistent static data of static data, counting equipment 1 need be transferred described user's static data.Like this, counting equipment 1 does not need all to transfer the static data and the dynamic data of charging process needs at every turn, when counting equipment 1 is local when storing the static data consistent with the described user's that stores static data on the described physical storage device, then do not need to transfer this user's static data, the dynamic data of only transferring in the memory storage device gets final product, and has improved the speed of service and the performance of system.
Further, access modules 111 also be used for chargeing finish after, with the disposable memory device that sends to of charging result, make described memory device upgrade the described user's who stores in the described memory storage device dynamic data.
Dynamic data after charging is finished in the disposable updated stored equipment has been avoided frequent access and the renewal of the counting equipment in the 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, be used for chargeing finish after, 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, remove the data that needs are removed in the local static data of storing according to aging condition.
Counting equipment 1 with the static data long preservation in local memory cell 13, for guaranteed performance, must in the regular hour, scan data, remove the data that needs are removed according to specific aging algorithm, 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 is used to store dynamic data;
Physical storage device 21 is used to store the total data that comprises static data and described dynamic data;
Data access service end unit 22, be used to receive the data that counting equipment sends and transfer request, transfer request according to described data, send the dynamic data of transferring the corresponding user of request from the described data of from memory storage equipment, transferring to described counting equipment, when described counting equipment does not have this locality to store the static data consistent with the described user's that stores static data in the described physical storage device, send the described user's who from described physical storage device, transfers static data to described counting equipment.
The memory device 2 that the embodiment of the invention provides, dynamic data that charge to need and static data can separate storage, only need frequent dynamic data rather than the total data that need change in the storage charging process in the memory storage device 20, account balance information for example, account accumulative total information etc., storage comprises static data and all data of dynamic data in the physical storage device 21, comprise user data, product data, subscription data, the perdurable data of memory storage device 20 is dynamic data, the data that also have the system configuration class etc.Therefore, the memory storage device 20 of same capability is in the data access performance that has guaranteed system, avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, make and 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 is used to receive the data that counting equipment sends and transfers request;
Confirm module 221, be used for contrasting described user's the release label information of static data of physical storage device 21 storages and described data and transfer release label information in the request, when two release label information are identical, confirm counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data, when two release label information not simultaneously, confirm not have on the counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data;
Sending module 222, be used for transferring the corresponding user's of request dynamic data to the described data that described counting equipment transmission is transferred from memory storage equipment 20, when described counting equipment does not have this locality to store the static data consistent with described user's the static data of storage in the physical storage device 21, send the described user's who from physical storage device 21, transfers static data to described counting equipment.
Can store the release label information of the static information of storage on the physical storage device 21 on the memory storage device 20 of present embodiment in addition, like this, affirmation module 221 is transferred the release label information on the memory storage device 20, with the release label information contrast that comprises in the data call request of the counting equipment that receives, whether decision transfers the static data in the physical storage device 21, and 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 the physical storage device 21, can be according to the 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 is used for the dynamic data according to the charging result updating memory memory device 20 of counting equipment transmission.Here the dynamic data persistence that is noted that memory storage device 20 is in physical storage device 21, and the dynamic data in the physical storage device 21 is by regularly the mode of the data sync in the memory storage device to physical storage device being realized.Therefore, in renewal process, 22 of data access service end units need the dynamic datas on the updating memory memory device 20, physical storage device 21 by with memory storage device 20 synchronously regularly, the perdurable data that just can tackle the memory storage device 20 of storage mutually upgrades.Certainly also other update modes can be arranged, not do qualification 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 used for receiving the request of charging, comprises user profile in this charging request, according to the user profile in the described charging request, send data to memory device 4 and transfer request, in the memory storage device 40 in memory device 4, transfer described user's dynamic data; When do not have this locality store with memory device 4 in physical storage device 41 in during the consistent static data of described user's the static data of storage, in physical storage device 41, transfer described user's static data, and according to described charging request and user data, the computing of chargeing, wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage;
Memory device 4 is used to store user's metering data, the data that receive counting equipment 3 transmissions are transferred request, transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to counting equipment 3 from memory storage equipment 40, when counting equipment 3 does not have this locality to store the static data consistent with described user's the static data of storage in the physical storage device 41, send the described user's who from described physical storage device 41, transfers static data to counting equipment 3.
The charge system that the embodiment of the invention provides, 40 of memory storage devices often need in the storage charging process to need the dynamic data rather than the total data of change, thereby avoided of the restriction of memory storage device capacity to systematic function, under the prerequisite that does not promote capacity, can support more large-capacity data storage, one cover 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 invention to provide, the memory device that memory device 4 can adopt the embodiment of the invention to provide, preamble is described in detail, and repeats no more here.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within 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 (15)

1. a charging method is characterized in that, comprising:
Receive the request of charging, comprise user profile in this charging request;
According to the described user profile in the described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user; When do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user;
According to described charging request and user data, the computing of chargeing; Wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage.
2. method according to claim 1 is characterized in that, described transferring to memory device transmission data asks to be specially: the data that send the release label information of the static data that comprises the local described user who stores to memory device are transferred request.
3. method according to claim 1 is characterized in that, described according to described charging request and user data, the computing of chargeing is specially:
The metadata cache transferred in this locality, is refreshed the data of local storage, according to the computing of chargeing in this locality of the described user's of described charging request and local storage dynamic data and static data.
4. method according to claim 1 is characterized in that, and is described according to described charging request and user data, after the step of the computing of chargeing, also comprises:
After charging is finished,, make described memory device upgrade the described user's who stores in the described memory storage device dynamic data with the disposable memory device that sends to of charging result.
5. method according to claim 4 is characterized in that, after described charging is finished, with the disposable memory device that sends to of charging result, make described memory device upgrade described user's the step of dynamic data of described memory storage device after, also comprise:
Discharge the dynamic data that local this charging process of storing is transferred;
The static data of the local storage of periodic scanning is removed the data that needs are removed in the local static data of storing according to aging condition.
6. the sending method of a metering data is characterized in that, comprising:
The data that receive the counting equipment transmission are transferred request;
Transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to described counting equipment from memory storage equipment, when described counting equipment does not have this locality to store the static data consistent with the described user's that stores static data in the physical storage device, send the described user's who from described physical storage device, transfers static data to described counting equipment.
7. method according to claim 6 is characterized in that, the data that described reception counting equipment sends are transferred request and are specially:
The data that receive the 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;
After the data that described reception counting equipment sends are transferred the step of request, also comprise:
Contrast the described user's who stores in the described physical storage device the release label information of static data and described data and transfer release label information in the request, when two release label information are identical, confirm counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data, when two release label information not simultaneously, confirm not have on the counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data.
8. a counting equipment is characterized in that, comprising:
Receiving element is used for receiving the request of charging, comprises user profile in the described charging request;
Addressed location, be used for user profile according to described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user, when do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user;
Charging Detail Record unit is used for according to described charging request and user data, the computing of chargeing; Wherein, described user data comprises the static data of the described dynamic data of transferring, the static data of transferring or former local storage.
9. counting equipment according to claim 8 is characterized in that, also comprises:
Local memory cell, the data that are used to store charging process needs, described data comprise described user's static data and dynamic data, are convenient to the computing of chargeing in this locality of the user's that described Charging Detail Record unit stores according to this locality dynamic data and static data.
10. counting equipment according to claim 8 is characterized in that, described addressed location comprises that data transfer request generation module and access modules, wherein,
Describedly transfer the data of release label information that the request generation module is used to generate the described user's who comprises the local storage of described counting equipment static data and transfer request;
Described access modules is used for sending data to memory device and transfers request, in the memory storage device in memory device, transfer described user's dynamic data, when do not have this locality store with memory device in physical storage device in during the consistent static data of the described user's that stores static data, in described physical storage device, transfer described user's static data.
11. counting equipment according to claim 10, it is characterized in that, described access modules also be used for chargeing finish after, with the disposable memory device that sends to of charging result, make described memory device upgrade the described user's who stores in the described memory storage device dynamic data.
12. counting equipment according to claim 9, it is characterized in that, also comprise the data scrubbing unit, be used for chargeing finish after, discharge the dynamic data that this charging process of described local cell stores is transferred, and the static data of the described local cell stores of periodic scanning, remove the data that needs are removed in the local static data of storing according to aging condition.
13. a memory device comprises:
Memory storage device is used to store dynamic data;
Physical storage device is used to store the total data that comprises static data and described dynamic data;
The data access service end unit, be used to receive the data that counting equipment sends and transfer request, transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to described counting equipment from memory storage equipment, when described counting equipment does not have this locality to store the static data consistent with the described user's that stores static data in the described physical storage device, send the described user's who from described physical storage device, transfers static data to described counting equipment.
14. memory device according to claim 13 is characterized in that, described data access service end unit comprises:
Receiver module is used to receive the data that counting equipment sends and transfers request;
Confirm module, be used for contrasting the described user's that described physical storage device stores the release label information of static data and described data and transfer release label information in the request, when two release label information are identical, confirm counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data, when two release label information not simultaneously, confirm not have on the counting equipment this locality store with described physical storage device in the described user's that stores the consistent static data of static data;
Sending module, be used for transferring the corresponding user's of request dynamic data to the described data that described counting equipment transmission is transferred from memory storage equipment, when described counting equipment does not have this locality to store the static data consistent with the described user's that stores static data in the described physical storage device, send the static data of from described physical storage device, transferring described user to described counting equipment.
15. a cluster charge system is characterized in that, comprises counting equipment and memory device,
Wherein:
Described counting equipment is used for receiving the request of charging, comprise user profile in this charging request, according to the described user profile in the described charging request, send data to memory device and transfer request, in the memory storage device in memory device, the dynamic data of calling and obtaining user, when do not have this locality store with memory device in physical storage device in during the consistent static data of the user's that stores static data, in described physical storage device, the static data of calling and obtaining user, according to described charging request and user data, the computing of chargeing, wherein, described user data comprises the described dynamic data of transferring, the static data of static data of transferring or former local storage;
Described memory device is used to store user's metering data, the data that receive the counting equipment transmission are transferred request, transfer request according to described data, send the dynamic data that the described data of transferring are transferred the corresponding user of request to described counting equipment from memory storage equipment, when described counting equipment did not have this locality to store the static data consistent with the described user's that stores static data in the physical storage device, the described user's metering data of static data that sends the described user who transfers to described counting equipment from described physical storage device comprised static data and dynamic data.
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 true CN102238012A (en) 2011-11-09
CN102238012B 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)

Cited By (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)
CN104156442A (en) * 2014-08-13 2014-11-19 中国银行股份有限公司 Method and system for multi-dimension accumulation on basis of dynamic data and static data and accumulated data application method
CN104735103A (en) * 2013-12-19 2015-06-24 中国移动通信集团湖南有限公司 Method and device for managing distributed data and method and device for receiving distributed data
CN110662188A (en) * 2018-06-28 2020-01-07 中国电信股份有限公司 Charging method and system
CN112448823A (en) * 2019-08-30 2021-03-05 中国电信股份有限公司 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 (2)

* Cited by examiner, † Cited by third party
Title
匡振国 等: "一种流媒体在线计费系统研究和性能优化", 《计算机工程与应用》 *
徐书华: "一种内存数据库与大型数据库的连接方案", 《微型机与应用》 *

Cited By (7)

* 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)
CN104735103A (en) * 2013-12-19 2015-06-24 中国移动通信集团湖南有限公司 Method and device for managing distributed data and method and device for receiving distributed data
CN104735103B (en) * 2013-12-19 2018-08-28 中国移动通信集团湖南有限公司 A kind of management of distributed data and method of reseptance, device
CN104156442A (en) * 2014-08-13 2014-11-19 中国银行股份有限公司 Method and system for multi-dimension accumulation on basis of dynamic data and static data and accumulated data application method
CN110662188A (en) * 2018-06-28 2020-01-07 中国电信股份有限公司 Charging method and system
CN110662188B (en) * 2018-06-28 2021-09-07 中国电信股份有限公司 Charging method and system
CN112448823A (en) * 2019-08-30 2021-03-05 中国电信股份有限公司 Charging method, system and storage medium

Also Published As

Publication number Publication date
CN102238012B (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN101854388B (en) Method and system concurrently accessing a large amount of small documents in cluster storage
CN103246616B (en) A kind of globally shared buffer replacing method of access frequency within long and short cycle
CN102238012B (en) Charging method and system
CN102654827B (en) First-in first-out buffer and data caching method
CN104317736B (en) A kind of distributed file system multi-level buffer implementation method
CN104102693A (en) Object processing method and device
US11314689B2 (en) Method, apparatus, and computer program product for indexing a file
CN103620549A (en) Storage media abstraction for uniform data storage
CN103383660A (en) Method and device for realizing functions of cache partition of Android system as well as terminal equipment
CN111625182B (en) Universal flash memory module, controller, electronic device and operation method
CN103139300A (en) Virtual machine image management optimization method based on data de-duplication
CN102402622A (en) Memory page managing and scheduling method for embedded memory database
CN102982182A (en) Data storage planning method and device
CN101000580A (en) NAND flash information extraction method and NAND flash automatic identification method
CN103677674A (en) Data processing method and device
CN103365972A (en) Intelligent processing system for mass data
CN103778120A (en) Global file identification generation method, generation device and corresponding distributed file system
CN103136215A (en) Data read-write method and device of storage system
CN103577469A (en) Database connection multiplexing method and device
CN102650932A (en) Method, equipment and system for accessing data
CN112596949A (en) High-efficiency SSD (solid State disk) deleted data recovery method and system
CN103823634A (en) Data processing method and system supporting non-random write mode
CN111782425A (en) Inter-task communication method and device based on index queue and computer equipment
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140122