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
- described user
- business
- historical consume
- request
- 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
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 communications field, relate in particular to a kind of resource allocation methods and device based on inverse charging.
Background technology
Current, along with emerging in multitude of various value-added services, operator need to be reasonably its Resources allocation according to user's current remaining sum.Concrete, common Resource Allocation Formula is, according to user's requested service, for it distributes the resource corresponding to described request business of default stock number, and to deduct the corresponding amount of money from user's current remaining sum; Further, when user's current remaining sum is during lower than certain threshold value, for example, deficiency is thought the resource of default stock number described in user assignment, refuses to this user resource allocation.Visible, based on such scheme, if user's current remaining sum is lower, even if this user's current remaining sum is non-vanishing, it also cannot carry out any business.
For addressing the above problem, in existing Resource Allocation Formula, adopted the scheme of inverse charging, the i.e. resource allocation methods based on inverse charging, while specifically comprising that account balance as contracted user is lower than certain threshold value, according to user's requested service and corresponding rate situation, unit rate volume by this user's account balance divided by this requested service, thus calculate the stock number for resource corresponding to the described request business of user assignment.
Although the business that such scheme can make user that current remaining sum is lower carry out its this request, but, based on such scheme, because user's remaining sum is used to the resource corresponding to business of its this request of user assignment completely, therefore, after this charging request, user will not have account balance for carrying out other business, and this has just reduced the reliability of the Resource Allocation Formula based on inverse charging.
Summary of the invention
The invention provides a kind of resource allocation methods and device based on inverse charging, for solving existing Resource Allocation Formula, user, after the requested service request inverse charging to current, cannot carry out the problem of other business.
First aspect of the present invention is to provide a kind of resource allocation methods based on inverse charging, comprising:
According to user's charging request, inquire about each user's of current storage account balance, obtain described user's current remaining sum α, described charging request comprises described user's sign and the sign of requested service;
If described user's current remaining sum is not more than default first threshold,, according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
i;
According to the rate volume γ of unit of the described request business prestoring
iand inversion formula, amount of computational resources δ, wherein, described inversion formula is: δ=α * (β
i/ β)/γ
i, γ wherein
ibe expressed as the amount of money of the required consumption of resource corresponding to the described request business of user assignment per unit stock number;
Current remaining sum using α ' as described user is stored, and is resource corresponding to described user assignment described request business, and the stock number of distributing is δ, wherein, and α '=α-α * (β
i/ β).
Another aspect of the present invention is to provide a kind of resource allocation device based on inverse charging, comprising:
Enquiry module, for according to user's charging request, inquires about each user's of current storage account balance, obtains described user's current remaining sum α, and described charging request comprises described user's sign and the sign of requested service;
Acquisition module, if the current remaining sum for described user is not more than default first threshold,, according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
i;
Computing module, the rate volume γ of unit of the described request business prestoring for basis
iand inversion formula, amount of computational resources δ, wherein, described inversion formula is: δ=α * (β
i/ β)/γ
i, γ wherein
ibe expressed as the amount of money of the required consumption of resource corresponding to the described request business of user assignment per unit stock number;
Processing module, stores for the current remaining sum using α ' as described user, and is resource corresponding to described user assignment described request business, and the stock number of distributing is δ, wherein, and α '=α-α * (β
i/ β).
Resource allocation methods and device based on inverse charging provided by the invention, by according to user's charging request, the historical consume record of described user based on current statistics, the unit rate volume of described request business, described user's current remaining sum and inversion formula, calculate corresponding stock number, and be the technical scheme of resource corresponding to the corresponding described request business of user assignment, make user after this inverse charging, still can carry out other business, effectively improve the reliability that resource is distributed.
Accompanying drawing explanation
The schematic flow sheet of a kind of resource allocation methods based on inverse charging that Fig. 1 provides for the embodiment of the present invention one;
The structural representation of a kind of resource allocation device based on inverse charging that Fig. 2 provides for the embodiment of the present invention two.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
The schematic flow sheet of a kind of resource allocation methods based on inverse charging that Fig. 1 provides for the embodiment of the present invention one, as shown in Figure 1, described method comprises:
101, according to user's charging request, inquire about each user's of current storage account balance, obtain described user's current remaining sum α, described charging request comprises described user's sign and the sign of requested service.
If 102 described users' current remaining sum is not more than default first threshold,, according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
i.
Wherein, described time range can be set according to concrete calculative strategy, for example, described time range is made as to 2 months so far, corresponding, according to described user's historical consume record, obtain described user in 2 months so far, the historical consume total value of each business and the historical consume total value of described request business.
In above-mentioned giving an example, suppose that user is in first month, the amount of consumption of use business A, B and C respectively is A1, B1 and C1, in second month, use the amount of consumption of business B, C and D respectively to be B2, C2 and D2, and the current requested service of described user is B, described user historical consume total value of each business in described time range is A1+B1+C1+B2+C2+D2, and the historical consume total value of described request business is B1+B2.Being appreciated that above-mentioned is in order to understand more intuitively the technical scheme of the present embodiment for example, and other embodiment of the present embodiment is not limited.
Concrete, in actual applications, each user's historical consume record can carry out storage and maintenance by historical consume records center, corresponding, before 102, described method can also comprise: to historical consume records center, send inquiry request, described inquiry request comprises described user's sign; Receive the described user's of the current statistics that described historical consume records center returns historical consume record.
103, according to the rate volume γ of unit of the described request business prestoring
iand inversion formula, amount of computational resources δ, wherein, described inversion formula is: δ=α * (β
i/ β)/γ
i, γ wherein
ibe expressed as the amount of money of the required consumption of resource corresponding to the described request business of user assignment per unit stock number.
In actual applications, described unit rate volume can obtain from the tariff information of each business of prestoring, successively for instance, if described request business is data service, the unit rate volume of described data service is expressed as the required consumption amount of money of every million data traffics of user assignment, for example, 0.3 yuan/million, being user provides every million data traffics need to from user balance, deduct 0.3 yuan; If described request business is short message service, the unit rate volume of described short message service is expressed as user and processes every consumption amount of money that note is required, and for example, 0.1 yuan/bar, every the note Resources allocation that is user need to be deducted 0.1 yuan from user balance; By that analogy, described request business can also, for speech business etc., be given an example at this no longer one by one.Above-mentioned for example just in order to understand more intuitively the technical scheme of the present embodiment, and other embodiment of the present embodiment is not limited.
104, the current remaining sum using α ' as described user is stored, and is resource corresponding to described user assignment described request business, and the stock number of distributing is δ, wherein, and α '=α-α * (β
i/ β).
Wherein, the described current remaining sum using α ' as described user is stored, and the current balance updates that is about to described user is α '.In addition, in actual applications, each user's current remaining sum can be unified storage and maintenance by account management center, corresponding, the described current remaining sum using α ' as described user is stored, and being about in described account management the described user's of storage current balance updates is in the heart α '.
Concrete, when user balance is too low, will be no longer its Resources allocation, corresponding, after 101, described method can also comprise:
If described user's current remaining sum is less than default Second Threshold,, to the described user message of returning to that Sorry, your ticket has not enough value, described Second Threshold is less than described first threshold.
The resource allocation methods based on inverse charging that the present embodiment provides, by according to user's charging request, the historical consume record of described user based on current statistics, the unit rate volume of described request business, described user's current remaining sum and inversion formula, calculate corresponding stock number, and be the technical scheme of resource corresponding to the corresponding described request business of user assignment, make user after this inverse charging, still can carry out other business, effectively improved the reliability that resource is distributed.
The structural representation of a kind of resource allocation device based on inverse charging that Fig. 2 provides for the embodiment of the present invention two, as shown in Figure 2, described device comprises: enquiry module 21, acquisition module 22, computing module 23 and processing module 24; Wherein,
Concrete, in actual applications, each user's historical consume record can carry out storage and maintenance by historical consume records center, and corresponding, described device can also comprise:
Sending module, at acquisition module 22 according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
ibefore, to historical consume records center, send inquiry request, described inquiry request comprises described user's sign;
Receiver module, for receiving the described user's of the current statistics that described historical consume records center returns historical consume record.
Concrete, when user balance is too low, to be no longer its Resources allocation, corresponding, described processing module, also for after obtaining described user's current remaining sum α at described enquiry module, if described user's current remaining sum is less than default Second Threshold,, to the described user message of returning to that Sorry, your ticket has not enough value, described Second Threshold is less than described first threshold.
The resource allocation device based on inverse charging that the present embodiment provides, by according to user's charging request, the historical consume record of described user based on current statistics, the unit rate volume of described request business, described user's current remaining sum and inversion formula, calculate corresponding stock number, and be the technical scheme of resource corresponding to the corresponding described request business of user assignment, make user after this inverse charging, still can carry out other business, effectively improved the reliability that resource is distributed.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the device of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (6)
1. the resource allocation methods based on inverse charging, is characterized in that, comprising:
According to user's charging request, inquire about each user's of current storage account balance, obtain described user's current remaining sum α, described charging request comprises described user's sign and the sign of requested service;
If described user's current remaining sum is not more than default first threshold,, according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
i;
According to the rate volume γ of unit of the described request business prestoring
iand inversion formula, amount of computational resources δ, wherein, described inversion formula is: δ=α * (β
i/ β)/γ
i, γ wherein
ibe expressed as the amount of money of the required consumption of resource corresponding to the described request business of user assignment per unit stock number;
Current remaining sum using α ' as described user is stored, and is resource corresponding to described user assignment described request business, and the stock number of distributing is δ, wherein, and α '=α-α * (β
i/ β).
2. method according to claim 1, is characterized in that, described according to the described user's of current statistics historical consume record, obtains the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
ibefore, also comprise:
To historical consume records center, send inquiry request, described inquiry request comprises described user's sign;
Receive the described user's of the current statistics that described historical consume records center returns historical consume record.
3. method according to claim 1 and 2, is characterized in that, described in obtain described user's current remaining sum α after, also comprise:
If described user's current remaining sum is less than default Second Threshold,, to the described user message of returning to that Sorry, your ticket has not enough value, described Second Threshold is less than described first threshold.
4. the resource allocation device based on inverse charging, is characterized in that, comprising:
Enquiry module, for according to user's charging request, inquires about each user's of current storage account balance, obtains described user's current remaining sum α, and described charging request comprises described user's sign and the sign of requested service;
Acquisition module, if the current remaining sum for described user is not more than default first threshold,, according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
i;
Computing module, the rate volume γ of unit of the described request business prestoring for basis
iand inversion formula, amount of computational resources δ, wherein, described inversion formula is: δ=α * (β
i/ β)/γ
i, γ wherein
ibe expressed as the amount of money of the required consumption of resource corresponding to the described request business of user assignment per unit stock number;
Processing module, stores for the current remaining sum using α ' as described user, and is resource corresponding to described user assignment described request business, and the stock number of distributing is δ, wherein, and α '=α-α * (β
i/ β).
5. device according to claim 4, is characterized in that, described device also comprises:
Sending module, at described acquisition module according to the described user's of current statistics historical consume record, obtain the historical consume total value β of described user each business within the scope of Preset Time and the historical consume total value β of described request business
ibefore, to historical consume records center, send inquiry request, described inquiry request comprises described user's sign;
Receiver module, for receiving the described user's of the current statistics that described historical consume records center returns historical consume record.
6. according to the device described in claim 4 or 5, it is characterized in that,
Described processing module, also for after obtaining described user's current remaining sum α at described enquiry module, if described user's current remaining sum is less than default Second Threshold,, to the described user message of returning to that Sorry, your ticket has not enough value, described Second Threshold is less than described 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 |
---|---|---|
WO2019205791A1 (en) | Method and device for adjusting data plan for a plurlaity of user identifications | |
CN106843755B (en) | Data balancing method and device for server cluster | |
US8392928B1 (en) | Automated workload placement recommendations for a data center | |
CN104574051A (en) | Charging method and device | |
CN103401938A (en) | Resource distribution system based on service features under distributed cloud architecture and method thereof | |
Sen et al. | Smart data pricing (SDP): Economic solutions to network congestion | |
CN103049309A (en) | Device, method and system for resource management of virtual machine | |
CN108335071A (en) | Dispense method for allocating tasks, device, electronic equipment and computer storage media | |
CN104243405A (en) | Request processing method, device and system | |
US10009416B2 (en) | Perfect application capacity analysis for elastic capacity management of cloud-based applications | |
CN110928685B (en) | Intelligent collaborative computing system and method | |
US9137649B2 (en) | Short code management for messaging campaigns | |
CN102264109A (en) | Method of distributing bandwidth for service and for terminal service execution, and equipment thereof | |
CN108401231B (en) | Charging method, device and system | |
CN100571316C (en) | Quick constant expense computing system based on memory file and real-time synchronization technique | |
CN108881043A (en) | Distribution method, device, equipment and the storage medium of portfolio in shared set meal | |
CN110233741A (en) | Service charging method, device, equipment and storage medium | |
CN106021512A (en) | Page refresh method and apparatus | |
CN103607707A (en) | Resource distribution method and apparatus based on inverse computation charging | |
CN102802145B (en) | Network service billing method, device and system | |
CN103379168A (en) | Data center resource distribution management method and system | |
CN102308604B (en) | Cluster on-line charge mode and device | |
CN106034148A (en) | Fast information interaction method, local server, remote server and system | |
CN110992011A (en) | Data splitting method and device, electronic equipment and storage medium | |
CN104052778A (en) | Distributed phone bill statistical method, device thereof and system thereof |
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 |