CN103607707A - Resource distribution method and apparatus based on inverse computation charging - Google Patents
Resource distribution method and apparatus based on inverse computation charging Download PDFInfo
- Publication number
- CN103607707A CN103607707A CN201310589350.1A CN201310589350A CN103607707A CN 103607707 A CN103607707 A CN 103607707A CN 201310589350 A CN201310589350 A CN 201310589350A CN 103607707 A CN103607707 A CN 103607707A
- Authority
- CN
- China
- Prior art keywords
- user
- historical consumption
- service
- request
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000013468 resource allocation Methods 0.000 claims description 23
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a resource distribution method and apparatus based on inverse computation charging. The method comprises: according to a charging request of a user, obtaining a current balance of the user; if the current balance of the user is not greater than a preset first threshold, obtaining a user's historical consumption total of various services within a preset time scope and a historical consumption total of request services according to a currently counted historical consumption record; according to prestored charge quotas per unit of the request services and an inverse computation formula, calculating a charge amount; and updating the current balance of the user, and distributing resources corresponding to the request services of resource amounts to the user. By using the resource distribution method and apparatus based on inverse computation charging, the resource distribution reliability can be effectively improved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a resource allocation method and apparatus based on back-calculation charging.
Background
Currently, with the mass emergence of various value-added services, operators need to reasonably allocate resources to users according to their current balances. Specifically, a general resource allocation scheme is to allocate a resource corresponding to a request service of a preset resource amount to a user according to the request service of the user, and deduct a corresponding amount from a current balance of the user; further, when the current balance of the user is lower than a certain threshold, for example, the resource of the preset resource amount is not allocated to the user, the allocation of the resource to the user is rejected. Therefore, based on the above scheme, if the current balance of the user is low, even if the current balance of the user is not zero, the user cannot perform any service.
In order to solve the above problems, a reverse charging scheme is adopted in the existing resource allocation scheme, that is, a resource allocation method based on reverse charging specifically includes that when the account balance of a subscriber is lower than a certain threshold, the account balance of the subscriber is divided by the unit resource amount of the request service according to the request service of the subscriber and the corresponding tariff condition, so as to calculate the resource amount of the resource corresponding to the request service to be allocated to the subscriber.
Although the above scheme enables the user with a low current balance to perform the service requested this time, based on the above scheme, because the balance of the user is already completely used for allocating the resource corresponding to the service requested this time to the user, after the charging request this time, the user will not have an account balance for performing other services, which reduces the reliability of the resource allocation scheme based on back-calculation charging.
Disclosure of Invention
The invention provides a resource allocation method and a resource allocation device based on back calculation charging, which are used for solving the problem that other services cannot be carried out after a user requests back calculation charging for a current service request in the existing resource allocation scheme.
The first aspect of the present invention provides a resource allocation method based on back-calculation charging, including:
inquiring currently stored account balance of each user according to a charging request of the user to obtain the current balance alpha of the user, wherein the charging request comprises an identifier of the user and an identifier of a request service;
if the current balance of the user is not greater than a preset first threshold value, obtaining the historical consumption sum beta of each service of the user in a preset time range and the historical consumption sum beta of the requested service according to the historical consumption record of the user counted currentlyi;
According to the prestored unit charge amount gamma of the request serviceiAnd a back calculation formula for calculating the resource quantity delta, wherein the back calculation formula is as follows: δ = α × (β)i/β)/γiWherein γ isiThe amount of money required to be consumed by the resource corresponding to the request service of each unit resource amount allocated to the user is expressed;
storing alpha 'as the current balance of the user, and allocating the resource corresponding to the request service to the user, wherein the allocated resource amount is delta, and alpha' = alpha-alpha x (beta)i/β)。
Another aspect of the present invention is to provide a resource allocation apparatus based on back-calculation charging, including:
the query module is used for querying the account balance of each user stored currently according to a charging request of the user to obtain the current balance alpha of the user, wherein the charging request comprises an identifier of the user and an identifier of a request service;
an obtaining module, configured to, if the current balance of the user is not greater than a preset first threshold, obtain, according to a current statistical historical consumption record of the user, a historical consumption total β of each service of the user within a preset time range and a historical consumption total β of the requested servicei;
A calculation module for calculating a unit charge amount gamma according to the pre-stored request serviceiAnd a back calculation formula for calculating the resource quantity delta, wherein the back calculation formula is as follows: δ = α × (β)i/β)/γiWherein γ isiThe amount of money required to be consumed by the resource corresponding to the request service of each unit resource amount allocated to the user is expressed;
a processing module, configured to store α 'as the current balance of the user, and allocate a resource corresponding to the request service to the user, where the allocated resource amount is δ, where α' = α - α × (β)i/β)。
According to the resource allocation method and device based on back calculation charging, provided by the invention, the corresponding resource amount is calculated based on the historical consumption record of the user, the unit cost amount of the requested service, the current balance of the user and a back calculation formula which are counted currently according to the charging request of the user, and the corresponding resource corresponding to the requested service is allocated to the user, so that the user can still perform other services after the back calculation charging is finished, and the reliability of resource allocation is effectively improved.
Drawings
Fig. 1 is a schematic flowchart of a resource allocation method based on back-calculation charging according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a resource allocation apparatus based on back-calculation charging according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
Fig. 1 is a schematic flowchart of a resource allocation method based on back-calculation charging according to an embodiment of the present invention, as shown in fig. 1, the method includes:
101. inquiring the account balance of each user stored currently according to the charging request of the user to obtain the current balance alpha of the user, wherein the charging request comprises the identification of the user and the identification of the request service.
102. If the current balance of the user is not greater than a preset first threshold value, obtaining the historical consumption sum beta of each service of the user in a preset time range and the historical consumption sum beta of the requested service according to the historical consumption record of the user counted currentlyi。
The time range may be set according to a specific calculation policy, for example, if the time range is set to 2 months so far, the historical consumption total of each service and the historical consumption total of the requested service within 2 months so far of the user are correspondingly obtained according to the historical consumption record of the user.
In the above example, it is assumed that in the first month, the consumption amounts of the services used by the user A, B and C are respectively a1, B1 and C1 in sequence, in the second month, the consumption amounts of the services used by the user B, C and D are respectively B2, C2 and D2 in sequence, and the current requested service of the user is B, the historical consumption total amount of each service of the user in the time range is a1+ B1+ C1+ B2+ C2+ D2, and the historical consumption total amount of the requested service is B1+ B2. It should be understood that the foregoing examples are only for the purpose of more intuitively understanding the technical solutions of the present embodiment, and do not limit other specific embodiments of the present embodiment.
Specifically, in practical applications, the historical consumption records of each user may be stored and maintained by the historical consumption record center, and accordingly, before 102, the method may further include: sending a query request to a historical consumption record center, wherein the query request comprises the identification of the user; and receiving the historical consumption records of the user of the current statistics returned by the historical consumption record center.
103. According to the prestored unit charge amount gamma of the request serviceiAnd a back calculation formula for calculating the resource quantity delta, wherein the back calculation formula is as follows: δ = α × (β)i/β)/γiWherein γ isiAnd the amount of money required to be consumed by the resource corresponding to the request service allocated to each unit resource amount for the user is expressed.
In practical application, the unit charge amount may be obtained from pre-stored charge information of each service, for example, if the requested service is a data service, the unit charge amount of the data service represents a consumption amount required by allocating each megabyte of data traffic to the user, for example, 0.3 yuan/megabyte, that is, 0.3 yuan is required to be deducted from a user balance for providing each megabyte of data traffic for the user; if the request service is a short message service, the unit charge amount of the short message service is represented as the consumption amount required by the user for processing each short message, for example, 0.1 yuan/piece, namely, 0.1 yuan is deducted from the balance of the user for allocating resources to each short message of the user; by analogy, the request service may also be a voice service, and the like, which is not illustrated here. The foregoing examples are only for the purpose of more intuitively understanding the technical solutions of the present embodiment, and do not limit other specific embodiments of the present embodiment.
104. Storing alpha' as the current balance of the user and assigning the request to the userObtaining resources corresponding to the service, wherein the allocated resource amount is delta, wherein, alpha' = alpha-alpha x (beta)i/β)。
Wherein, the α 'is stored as the current balance of the user, that is, the current balance of the user is updated to α'. In addition, in practical application, the current balance of each user may be uniformly stored and maintained by the account management center, and accordingly, α 'is stored as the current balance of the user, that is, the current balance of the user stored in the account management center is updated to α'.
Specifically, when the balance of the user is too low, resources are not allocated to the user, and accordingly, after 101, the method may further include:
and if the current balance of the user is smaller than a preset second threshold value, returning a balance shortage message to the user, wherein the second threshold value is smaller than the first threshold value.
According to the resource allocation method based on back calculation charging provided by the embodiment, the corresponding resource amount is calculated based on the current statistical historical consumption record of the user, the unit resource amount of the requested service, the current balance of the user and a back calculation formula according to the charging request of the user, and the corresponding resource corresponding to the requested service is allocated to the user, so that the user can still perform other services after the back calculation charging is performed, and the reliability of resource allocation is effectively improved.
Fig. 2 is a schematic structural diagram of a resource allocation apparatus based on back-calculation charging according to a second embodiment of the present invention, as shown in fig. 2, the apparatus includes: the system comprises a query module 21, an acquisition module 22, a calculation module 23 and a processing module 24; wherein,
the query module 21 is configured to query currently stored account balances of the users according to a charging request of the user, to obtain a current balance α of the user, where the charging request includes an identifier of the user and an identifier of a requested service;
an obtaining module 22, configured to obtain, according to a current statistical historical consumption record of the user, a historical consumption total β of each service of the user within a preset time range and a historical consumption total β i of the requested service if the current balance of the user is not greater than a preset first threshold;
a calculation module 23, configured to calculate a unit charge amount γ according to the pre-stored request serviceiAnd a back calculation formula for calculating the resource quantity delta, wherein the back calculation formula is as follows: δ = α × (β)i/β)/γiWherein γ isiThe amount of money required to be consumed by the resource corresponding to the request service of each unit resource amount allocated to the user is expressed;
a processing module 24, configured to store α 'as the current balance of the user, and allocate a resource corresponding to the request service to the user, where the amount of the allocated resource is δ, where α' = α - α × (β)i/β)。
Specifically, in practical applications, the historical consumption records of each user may be stored and maintained by a historical consumption record center, and accordingly, the apparatus may further include:
a sending module, configured to, at the obtaining module 22, obtain, according to the current counted historical consumption record of the user, a historical consumption total β of each service of the user within a preset time range and a historical consumption total β of the requested serviceiPreviously, sending a query request to a historical consumption record center, wherein the query request comprises the identification of the user;
and the receiving module is used for receiving the historical consumption record of the user of the current statistics returned by the historical consumption record center.
Specifically, when the balance of the user is too low, resources are not allocated to the user, and correspondingly, the processing module is further configured to, after the query module obtains the current balance α of the user, return a message of insufficient balance to the user if the current balance of the user is smaller than a preset second threshold, where the second threshold is smaller than the first threshold.
According to the resource allocation device based on the back calculation charging provided by the embodiment, the corresponding resource amount is calculated based on the currently counted historical consumption record of the user, the unit resource amount of the requested service, the current balance of the user and the back calculation formula according to the charging request of the user, and the corresponding resource corresponding to the requested service is allocated to the user, so that the user can still perform other services after the back calculation charging is performed, and the reliability of resource allocation is effectively improved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (6)
1. A resource allocation method based on back calculation charging is characterized by comprising the following steps:
inquiring currently stored account balance of each user according to a charging request of the user to obtain the current balance alpha of the user, wherein the charging request comprises an identifier of the user and an identifier of a request service;
if the current balance of the user is not greater than a preset first threshold value, obtaining the total historical consumption amount beta and the total historical consumption amount of each service of the user in a preset time range according to the current statistical historical consumption record of the userThe total historical consumption of the request service is betai;
According to the prestored unit charge amount gamma of the request serviceiAnd a back calculation formula for calculating the resource quantity delta, wherein the back calculation formula is as follows: δ = α × (β)i/β)/γiWherein γ isiThe amount of money required to be consumed by the resource corresponding to the request service of each unit resource amount allocated to the user is expressed;
storing alpha 'as the current balance of the user, and allocating the resource corresponding to the request service to the user, wherein the allocated resource amount is delta, and alpha' = alpha-alpha x (beta)i/β)。
2. The method according to claim 1, wherein the historical consumption sum β of each service of the user in a preset time range and the historical consumption sum β of the requested service are obtained according to the historical consumption record of the user of the current statisticsiBefore, still include:
sending a query request to a historical consumption record center, wherein the query request comprises the identification of the user;
and receiving the historical consumption records of the user of the current statistics returned by the historical consumption record center.
3. The method according to claim 1 or 2, wherein after obtaining the current balance α of the user, the method further comprises:
and if the current balance of the user is smaller than a preset second threshold value, returning a balance shortage message to the user, wherein the second threshold value is smaller than the first threshold value.
4. A resource allocation apparatus based on back-calculation charging, comprising:
the query module is used for querying the account balance of each user stored currently according to a charging request of the user to obtain the current balance alpha of the user, wherein the charging request comprises an identifier of the user and an identifier of a request service;
an obtaining module, configured to, if the current balance of the user is not greater than a preset first threshold, obtain, according to a current statistical historical consumption record of the user, a historical consumption total β of each service of the user within a preset time range and a historical consumption total β of the requested servicei;
A calculation module for calculating a unit charge amount gamma according to the pre-stored request serviceiAnd a back calculation formula for calculating the resource quantity delta, wherein the back calculation formula is as follows: δ = α × (β)i/β)/γiWherein γ isiThe amount of money required to be consumed by the resource corresponding to the request service of each unit resource amount allocated to the user is expressed;
a processing module, configured to store α 'as the current balance of the user, and allocate a resource corresponding to the request service to the user, where the allocated resource amount is δ, where α' = α - α × (β)i/β)。
5. The apparatus of claim 4, further comprising:
a sending module, configured to obtain, at the obtaining module, a total historical consumption amount β of each service of the user within a preset time range and a total historical consumption amount β of the requested service according to the historical consumption record of the user counted currentlyiPreviously, sending a query request to a historical consumption record center, wherein the query request comprises the identification of the user;
and the receiving module is used for receiving the historical consumption record of the user of the current statistics returned by the historical consumption record center.
6. The apparatus according to claim 4 or 5,
the processing module is further configured to, after the query module obtains the current balance α of the user, return a balance insufficiency message to the user if the current balance of the user is smaller than a preset second threshold, where the second threshold is smaller than the first threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310589350.1A CN103607707A (en) | 2013-11-20 | 2013-11-20 | Resource distribution method and apparatus based on inverse computation charging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310589350.1A CN103607707A (en) | 2013-11-20 | 2013-11-20 | Resource distribution method and apparatus based on inverse computation charging |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103607707A true CN103607707A (en) | 2014-02-26 |
Family
ID=50125903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310589350.1A Pending CN103607707A (en) | 2013-11-20 | 2013-11-20 | Resource distribution method and apparatus based on inverse computation charging |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103607707A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270579A (en) * | 2016-12-31 | 2018-07-10 | 中国移动通信集团吉林有限公司 | A kind of method and device of determining remaining sum desired value |
CN108600970A (en) * | 2018-03-30 | 2018-09-28 | 深圳春沐源控股有限公司 | A kind of information prompting method, device and computer readable storage medium |
CN112669025A (en) * | 2020-12-24 | 2021-04-16 | 广西中科曙光云计算有限公司 | Data resource supply charging method, device, medium and terminal equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859534A (en) * | 2006-03-21 | 2006-11-08 | 华为技术有限公司 | Charging method and system for traffic service |
CN101075887A (en) * | 2007-07-19 | 2007-11-21 | 中国电信股份有限公司 | Charge future mechanism |
CN101395898A (en) * | 2005-12-30 | 2009-03-25 | 艾利森电话股份有限公司 | Optimised reservation of charges for multiple communication services and/or service types |
CN101645782A (en) * | 2009-02-10 | 2010-02-10 | 中国科学院声学研究所 | Online billing method and system based on user traffic volume |
CN102111276A (en) * | 2009-12-29 | 2011-06-29 | 北京四达时代软件技术股份有限公司 | Real-time charging method and system |
-
2013
- 2013-11-20 CN CN201310589350.1A patent/CN103607707A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101395898A (en) * | 2005-12-30 | 2009-03-25 | 艾利森电话股份有限公司 | Optimised reservation of charges for multiple communication services and/or service types |
CN1859534A (en) * | 2006-03-21 | 2006-11-08 | 华为技术有限公司 | Charging method and system for traffic service |
CN101075887A (en) * | 2007-07-19 | 2007-11-21 | 中国电信股份有限公司 | Charge future mechanism |
CN101645782A (en) * | 2009-02-10 | 2010-02-10 | 中国科学院声学研究所 | Online billing method and system based on user traffic volume |
CN102111276A (en) * | 2009-12-29 | 2011-06-29 | 北京四达时代软件技术股份有限公司 | Real-time charging method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108270579A (en) * | 2016-12-31 | 2018-07-10 | 中国移动通信集团吉林有限公司 | A kind of method and device of determining remaining sum desired value |
CN108600970A (en) * | 2018-03-30 | 2018-09-28 | 深圳春沐源控股有限公司 | A kind of information prompting method, device and computer readable storage medium |
CN112669025A (en) * | 2020-12-24 | 2021-04-16 | 广西中科曙光云计算有限公司 | Data resource supply charging method, device, medium and terminal equipment |
CN112669025B (en) * | 2020-12-24 | 2021-07-16 | 广西中科曙光云计算有限公司 | Data resource supply charging method, device, medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11044664B2 (en) | Enhanced interfaces for network slice selection based on charging rules | |
RU2518948C1 (en) | Method, apparatus and system for quality of service control based on charging system | |
EP3011710B1 (en) | Controlling bandwidth across multiple users for interactive services | |
EP2944060B1 (en) | Communication quota allocation method and corresponding online charging system | |
EP2798865B1 (en) | Method and apparatus for controlling charging in a communication network | |
US11470202B2 (en) | Charging method, apparatus, and system | |
WO2019005067A1 (en) | Network slice selection based on charging rules | |
US11689669B2 (en) | Quota allocation to subscribers based on consumption speed, location, allowance, or combinations of the same | |
CN106301805B (en) | Policy and charging execution function device, online charging device and online charging method | |
US20150271342A1 (en) | Network resource allocation in communication networks | |
EP2193472A2 (en) | System and method for managing license capacity in a telecommunication network | |
SG173513A1 (en) | An online charging method and system based on user's traffic | |
WO2018001181A1 (en) | Charging method and charging system | |
CN110381455B (en) | Flow monitoring processing method and related device and system | |
US20160117658A1 (en) | Credit Control Method, Policy and Charging Enforcement Function Entity, and Online Charging System | |
CN101431745B (en) | Account resource reservation and distribution method used for IMS multi-service on-line charging | |
CN103607707A (en) | Resource distribution method and apparatus based on inverse computation charging | |
CN108076443B (en) | Flow distribution method in online charging system and online charging system | |
US10547497B1 (en) | Methods and systems for providing predictive rating using a buffer | |
CN111512594A (en) | Virtual network function management | |
CN105515795A (en) | Method and system for controlling service capability of offline charging user | |
CN103338439B (en) | A kind of method, gateway device and counting equipment of charging | |
US20200127864A1 (en) | Method and Apparatus for Providing Service Authorization to a Charging Client Function | |
CN111818471B (en) | Resource charging method, MEC management system and MEC host | |
CN112738743A (en) | Business service, real-time charging method, device, edge server and charging system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140226 |
|
RJ01 | Rejection of invention patent application after publication |