[go: up one dir, main page]

CN103607707A - Resource distribution method and apparatus based on inverse computation charging - Google Patents

Resource distribution method and apparatus based on inverse computation charging Download PDF

Info

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
amount
requested service
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310589350.1A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310589350.1A priority Critical patent/CN103607707A/en
Publication of CN103607707A publication Critical patent/CN103607707A/en
Pending legal-status Critical Current

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

基于反算计费的资源分配方法及装置Resource allocation method and device based on back-calculation billing

技术领域technical field

本发明涉及通信领域,尤其涉及一种基于反算计费的资源分配方法及装置。The present invention relates to the communication field, in particular to a resource allocation method and device based on inverse calculation and charging.

背景技术Background technique

当前,随着各种增值业务的大量涌现,运营商需要根据用户的当前余额合理地为其分配资源。具体的,通常的资源分配方案为,根据用户的请求业务,为其分配预设的资源量的所述请求业务对应的资源,并从用户的当前余额中扣除相应的金额;进一步的,当用户的当前余额低于某阈值时,例如,不足以为用户分配所述预设资源量的资源,则拒绝向该用户分配资源。可见,基于上述方案,若用户的当前余额较低,则即使该用户的当前余额不为零,其也无法进行任何业务。Currently, with the emergence of a large number of various value-added services, operators need to reasonably allocate resources to users according to their current balances. Specifically, the usual resource allocation scheme is, according to the user's requested service, allocate the resource corresponding to the requested service with a preset amount of resources, and deduct the corresponding amount from the user's current balance; further, when the user When the current balance of the user is lower than a certain threshold, for example, the user is not enough to allocate the preset amount of resources to the user, then the allocation of resources to the user is refused. It can be seen that based on the above solution, if the current balance of the user is low, even if the current balance of the user is not zero, it cannot conduct any business.

为解决上述问题,现有的资源分配方案中采用了反算计费的方案,即基于反算计费的资源分配方法,具体包括当签约用户的账户余额低于某阈值时,则根据用户的请求业务和对应的资费情况,将该用户的账户余额除以该请求业务的单位资费额,从而计算出将为用户分配的所述请求业务对应的资源的资源量。In order to solve the above problems, the existing resource allocation scheme adopts the scheme of reverse calculation charging, that is, the resource allocation method based on reverse calculation calculation, which specifically includes that when the account balance of the contracted user is lower than a certain threshold, according to the user's For the requested service and the corresponding tariff, divide the user's account balance by the unit tariff of the requested service, so as to calculate the resource amount of resources corresponding to the requested service allocated to the user.

尽管上述方案能够使当前余额较低的用户进行其本次请求的业务,但是,基于上述方案,由于用户的余额已完全用于为用户分配其本次请求的业务对应的资源,因此,在本次计费请求之后,用户将没有账户余额用于进行其它业务,这就降低了基于反算计费的资源分配方案的可靠性。Although the above scheme can enable users with low current balances to carry out their requested business this time, based on the above scheme, since the user's balance has been completely used to allocate resources corresponding to the business requested by the user this time, therefore, in this After the first charging request, the user will have no account balance for other services, which reduces the reliability of the resource allocation scheme based on inverse charging.

发明内容Contents of the invention

本发明提供一种基于反算计费的资源分配方法及装置,用于解决现有的资源分配方案中,用户在对当前的请求业务请求反算计费后,则无法进行其它业务的问题。The present invention provides a resource allocation method and device based on reverse calculation and charging, which is used to solve the problem that in the existing resource allocation scheme, the user cannot perform other services after requesting reverse calculation and charging for the current requested service.

本发明的第一个方面是提供一种基于反算计费的资源分配方法,包括:The first aspect of the present invention is to provide a resource allocation method based on back-calculation charging, including:

根据用户的计费请求,查询当前存储的各用户的账户余额,获得所述用户的当前余额α,所述计费请求包括所述用户的标识和请求业务的标识;According to the charging request of the user, query the account balance of each user currently stored, and obtain the current balance α of the user, and the charging request includes the identification of the user and the identification of the requested service;

若所述用户的当前余额不大于预设的第一阈值,则根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βiIf the current balance of the user is not greater than the preset first threshold, then according to the current statistics of the historical consumption records of the user, obtain the total historical consumption β of each service of the user within the preset time range and the request The total historical consumption of the business β i ;

根据预存的所述请求业务的单位资费额γi和反算公式,计算资源量δ,其中,所述反算公式为:δ=α×(βi/β)/γi,其中γi表示为用户分配每单位资源量的所述请求业务对应的资源所需消费的金额;Calculate the resource amount δ according to the pre-stored unit tariff amount γ i of the requested service and the inverse formula, wherein the inverse formula is: δ=α×(β i /β)/γ i , where γ i represents Allocating the amount of resources that the user needs to consume per unit amount of resources corresponding to the requested service;

将α’作为所述用户的当前余额进行存储,并为所述用户分配所述请求业务对应的资源,且分配的资源量为δ,其中,α’=α-α×(βi/β)。Store α' as the current balance of the user, and allocate resources corresponding to the requested service to the user, and the allocated resource amount is δ, where α'=α-α×(β i /β) .

本发明的另一个方面是提供一种基于反算计费的资源分配装置,包括:Another aspect of the present invention is to provide a resource allocation device based on reverse calculation charging, including:

查询模块,用于根据用户的计费请求,查询当前存储的各用户的账户余额,获得所述用户的当前余额α,所述计费请求包括所述用户的标识和请求业务的标识;The query module is used to query the currently stored account balance of each user according to the charging request of the user, and obtain the current balance α of the user, and the charging request includes the identification of the user and the identification of the requested service;

获取模块,用于若所述用户的当前余额不大于预设的第一阈值,则根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βiAn acquisition module, configured to obtain the total historical consumption of each business of the user within a preset time range according to the current statistical historical consumption records of the user if the current balance of the user is not greater than the preset first threshold β and the historical consumption total amount β i of the requested business;

计算模块,用于根据预存的所述请求业务的单位资费额γi和反算公式,计算资源量δ,其中,所述反算公式为:δ=α×(βi/β)/γi,其中γi表示为用户分配每单位资源量的所述请求业务对应的资源所需消费的金额;A calculation module, configured to calculate the resource amount δ according to the pre-stored unit tariff amount γ i of the requested service and an inverse formula, wherein the inverse formula is: δ=α×(β i /β)/γ i , where γ i represents the amount of consumption required to allocate resources corresponding to the requested service per unit amount of resources allocated to the user;

处理模块,用于将α’作为所述用户的当前余额进行存储,并为所述用户分配所述请求业务对应的资源,且分配的资源量为δ,其中,α’=α-α×(βi/β)。A processing module, configured to store α' as the current balance of the user, and allocate resources corresponding to the requested service to the user, and the amount of allocated resources is δ, where α'=α-α×( β i /β).

本发明提供的基于反算计费的资源分配方法及装置,通过根据用户的计费请求,基于当前统计的所述用户的历史消费记录、所述请求业务的单位资费额、所述用户的当前余额及反算公式,计算出相应的资源量,并为用户分配相应的所述请求业务对应的资源的技术方案,使用户在本次反算计费过后,仍可进行其它业务,有效提高了资源分配的可靠性。The resource allocation method and device based on inverse charging provided by the present invention, based on the user's charging request, based on the current statistics of the user's historical consumption records, the unit fee amount of the requested service, and the user's current Balance and inverse calculation formula, calculate the corresponding resource amount, and allocate the corresponding resource corresponding to the requested service to the user, so that the user can still carry out other services after this inverse calculation and billing, which effectively improves the Reliability of resource allocation.

附图说明Description of drawings

图1为本发明实施例一提供的一种基于反算计费的资源分配方法的流程示意图;FIG. 1 is a schematic flowchart of a resource allocation method based on inverse calculation and charging provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种基于反算计费的资源分配装置的结构示意图。FIG. 2 is a schematic structural diagram of a resource allocation device based on inverse calculation and charging provided by Embodiment 2 of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

图1为本发明实施例一提供的一种基于反算计费的资源分配方法的流程示意图,如图1所示,所述方法包括:Fig. 1 is a schematic flowchart of a resource allocation method based on inverse calculation and charging provided by Embodiment 1 of the present invention. As shown in Fig. 1 , the method includes:

101、根据用户的计费请求,查询当前存储的各用户的账户余额,获得所述用户的当前余额α,所述计费请求包括所述用户的标识和请求业务的标识。101. According to the charging request of the user, query the currently stored account balance of each user to obtain the current balance α of the user, and the charging request includes the identification of the user and the identification of the requested service.

102、若所述用户的当前余额不大于预设的第一阈值,则根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βi102. If the user's current balance is not greater than the preset first threshold, then according to the current statistical historical consumption records of the user, obtain the total historical consumption β and the total amount of the user's various businesses within the preset time range. The historical consumption total amount β i of the above request service.

其中,所述时间范围可以根据具体的计算策略设定,例如,将所述时间范围设为至今2个月,则相应的,根据所述用户的历史消费记录,获得所述用户在至今2个月以内,各业务的历史消费总额和所述请求业务的历史消费总额。Wherein, the time range can be set according to a specific calculation strategy. For example, if the time range is set to 2 months to the present, then correspondingly, according to the user's historical consumption records, the user's 2 months to date are obtained. Within a month, the total historical consumption of each business and the total historical consumption of the requested business.

在上述举例中,假设用户在第一个月内,使用业务A、B和C的消费额依次分别为A1,B1和C1,在第二个月内,使用业务B、C和D的消费额依次分别为B2、C2和D2,且所述用户当前的请求业务为B,则所述用户在所述时间范围内各业务的历史消费总额为A1+B1+C1+B2+C2+D2,所述请求业务的历史消费总额为B1+B2。可以理解,上述举例只是为了能够更加直观地理解本实施例的技术方案,而并未对本实施例的其它具体实施方式进行限制。In the above example, it is assumed that in the first month, the consumption amount of the user using service A, B and C is respectively A1, B1 and C1, and in the second month, the consumption amount of using service B, C and D B2, C2, and D2 in turn, and the user's current request service is B, then the total historical consumption of each service by the user within the time range is A1+B1+C1+B2+C2+D2, so The total historical consumption of the above request service is B1+B2. It can be understood that the above examples are only for a more intuitive understanding of the technical solution of this embodiment, and do not limit other specific implementation manners of this embodiment.

具体的,在实际应用中,各用户的历史消费记录可以由历史消费记录中心进行存储和维护,则相应的,在102之前,所述方法还可以包括:向历史消费记录中心发送查询请求,所述查询请求包括所述用户的标识;接收所述历史消费记录中心返回的当前统计的所述用户的历史消费记录。Specifically, in practical applications, the historical consumption records of each user may be stored and maintained by the historical consumption record center, and correspondingly, before step 102, the method may further include: sending a query request to the historical consumption record center, so The query request includes the identification of the user; and the historical consumption record of the user currently counted back by the historical consumption record center is received.

103、根据预存的所述请求业务的单位资费额γi和反算公式,计算资源量δ,其中,所述反算公式为:δ=α×(βi/β)/γi,其中γi表示为用户分配每单位资源量的所述请求业务对应的资源所需消费的金额。103. Calculate the resource amount δ according to the pre-stored unit tariff amount γ i of the requested service and the inverse formula, wherein the inverse formula is: δ=α×(β i /β)/γ i , where γ i represents the amount that needs to be consumed by allocating resources corresponding to the requested service per unit amount of resources for the user.

在实际应用中,所述单位资费额可以从预存的各业务的资费信息中获取,依次举例来说,若所述请求业务为数据业务,则所述数据业务的单位资费额表示为用户分配每兆数据流量所需的消费金额,例如,0.3元/兆,即为用户提供每兆数据流量需要从用户余额中扣除0.3元;若所述请求业务为短信业务,则所述短信业务的单位资费额表示为用户处理每条短信所需的消费金额,例如,0.1元/条,即为用户的每条短信分配资源需要从用户余额中扣除0.1元;以此类推,所述请求业务还可以为语音业务等,在此不再一一举例。上述举例只是为了能够更加直观地理解本实施例的技术方案,而并未对本实施例的其它具体实施方式进行限制。In practical applications, the unit tariff amount can be obtained from the pre-stored tariff information of each service. For example, if the requested service is a data service, the unit tariff amount of the data service is expressed as The consumption amount required for megabytes of data flow, for example, 0.3 yuan/megabyte, that is, 0.3 yuan needs to be deducted from the user’s balance for each megabyte of data traffic provided to the user; if the requested service is a short message service, the unit tariff of the short message service The amount represents the consumption amount required for the user to process each text message, for example, 0.1 yuan per text message, that is, 0.1 yuan needs to be deducted from the user's balance to allocate resources for each text message of the user; and so on, the request service can also be Voice services, etc., will not be cited one by one here. The above examples are only for a more intuitive understanding of the technical solution of this embodiment, and do not limit other specific implementation manners of this embodiment.

104、将α’作为所述用户的当前余额进行存储,并为所述用户分配所述请求业务对应的资源,且分配的资源量为δ,其中,α’=α-α×(βi/β)。104. Store α' as the current balance of the user, and allocate resources corresponding to the requested service to the user, and the amount of allocated resources is δ, where α'=α-α×(β i / β).

其中,所述将α’作为所述用户的当前余额进行存储,即将所述用户的当前余额更新为α’。另外,在实际应用中,各用户的当前余额可以由账户管理中心统一存储和维护,则相应的,所述将α’作为所述用户的当前余额进行存储,即将所述账户管理中心中存储的所述用户的当前余额更新为α’。Wherein, storing α' as the user's current balance means updating the user's current balance to α'. In addition, in practical applications, the current balance of each user can be uniformly stored and maintained by the account management center, and correspondingly, the α' is stored as the current balance of the user, that is, the α' stored in the account management center The current balance of the user is updated to α'.

具体的,当用户余额过低时,将不再为其分配资源,则相应的,在101之后,所述方法还可以包括:Specifically, when the balance of the user is too low, no resources will be allocated to it, and correspondingly, after step 101, the method may further include:

若所述用户的当前余额小于预设的第二阈值,则向所述用户返回余额不足消息,所述第二阈值小于所述第一阈值。If the current balance of the user is less than a preset second threshold, an insufficient balance message is returned to the user, and the second threshold is less than the first threshold.

本实施例提供的基于反算计费的资源分配方法,通过根据用户的计费请求,基于当前统计的所述用户的历史消费记录、所述请求业务的单位资费额、所述用户的当前余额及反算公式,计算出相应的资源量,并为用户分配相应的所述请求业务对应的资源的技术方案,使用户在本次反算计费过后,仍可进行其它业务,有效提高了资源分配的可靠性。The resource allocation method based on inverse charging provided by this embodiment is based on the user's charging request, based on the current statistics of the user's historical consumption records, the unit fee amount of the requested service, and the user's current balance And the inverse calculation formula, calculate the corresponding amount of resources, and allocate the corresponding technical solutions for the resources corresponding to the requested service for the user, so that the user can still carry out other services after this inverse calculation and billing, effectively improving the resources. Assignment reliability.

图2为本发明实施例二提供的一种基于反算计费的资源分配装置的结构示意图,如图2所示,所述装置包括:查询模块21、获取模块22、计算模块23和处理模块24;其中,Fig. 2 is a schematic structural diagram of a resource allocation device based on inverse calculation and charging provided by Embodiment 2 of the present invention. As shown in Fig. 2, the device includes: a query module 21, an acquisition module 22, a calculation module 23 and a processing module 24; where,

查询模块21,用于根据用户的计费请求,查询当前存储的各用户的账户余额,获得所述用户的当前余额α,所述计费请求包括所述用户的标识和请求业务的标识;The query module 21 is configured to query the currently stored account balance of each user according to the charging request of the user, and obtain the current balance α of the user, and the charging request includes the identification of the user and the identification of the requested service;

获取模块22,用于若所述用户的当前余额不大于预设的第一阈值,则根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βi;The obtaining module 22 is configured to obtain the historical consumption of each service of the user within the preset time range according to the current statistics of the historical consumption records of the user if the current balance of the user is not greater than the preset first threshold The total amount β and the total historical consumption amount βi of the requested service;

计算模块23,用于根据预存的所述请求业务的单位资费额γi和反算公式,计算资源量δ,其中,所述反算公式为:δ=α×(βi/β)/γi,其中γi表示为用户分配每单位资源量的所述请求业务对应的资源所需消费的金额;The calculation module 23 is configured to calculate the resource amount δ according to the pre-stored unit tariff amount γ i of the requested service and an inverse formula, wherein the inverse formula is: δ=α×(β i /β)/γ i , where γ i represents the amount of consumption required to allocate resources corresponding to the requested service per unit amount of resources allocated to the user;

处理模块24,用于将α’作为所述用户的当前余额进行存储,并为所述用户分配所述请求业务对应的资源,且分配的资源量为δ,其中,α’=α-α×(βi/β)。The processing module 24 is configured to store α' as the current balance of the user, and allocate resources corresponding to the requested service to the user, and the allocated resource amount is δ, where α'=α-α× ( βi /β).

具体的,在实际应用中,各用户的历史消费记录可以由历史消费记录中心进行存储和维护,则相应的,所述装置还可以包括:Specifically, in practical applications, the historical consumption records of each user can be stored and maintained by the historical consumption record center, and correspondingly, the device can also include:

发送模块,用于在获取模块22根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βi之前,向历史消费记录中心发送查询请求,所述查询请求包括所述用户的标识;The sending module is used to obtain the total historical consumption β of each service of the user within the preset time range and the total historical consumption β i of the requested service before the obtaining module 22 obtains the historical consumption records of the user according to the current statistics. , sending a query request to the historical consumption record center, where the query request includes the identification of the user;

接收模块,用于接收所述历史消费记录中心返回的当前统计的所述用户的历史消费记录。The receiving module is configured to receive the current statistics of the user's historical consumption records returned by the historical consumption record center.

具体的,当用户余额过低时,将不再为其分配资源,则相应的,所述处理模块,还用于在所述查询模块获得所述用户的当前余额α之后,若所述用户的当前余额小于预设的第二阈值,则向所述用户返回余额不足消息,所述第二阈值小于所述第一阈值。Specifically, when the user's balance is too low, no resources will be allocated to it. Correspondingly, the processing module is further configured to, after the query module obtains the user's current balance α, if the user's If the current balance is less than a preset second threshold, an insufficient balance message is returned to the user, and the second threshold is less than the first threshold.

本实施例提供的基于反算计费的资源分配装置,通过根据用户的计费请求,基于当前统计的所述用户的历史消费记录、所述请求业务的单位资费额、所述用户的当前余额及反算公式,计算出相应的资源量,并为用户分配相应的所述请求业务对应的资源的技术方案,使用户在本次反算计费过后,仍可进行其它业务,有效提高了资源分配的可靠性。The resource allocation device based on inverse charging provided by this embodiment is based on the user's charging request, based on the current statistics of the user's historical consumption records, the unit fee amount of the requested service, and the user's current balance And the inverse calculation formula, calculate the corresponding amount of resources, and allocate the corresponding technical solutions for the resources corresponding to the requested service for the user, so that the user can still carry out other services after this inverse calculation and billing, effectively improving the resources. Assignment reliability.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the device described above can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (6)

1.一种基于反算计费的资源分配方法,其特征在于,包括:1. A resource allocation method based on reverse calculation charging, characterized in that, comprising: 根据用户的计费请求,查询当前存储的各用户的账户余额,获得所述用户的当前余额α,所述计费请求包括所述用户的标识和请求业务的标识;According to the charging request of the user, query the account balance of each user currently stored, and obtain the current balance α of the user, and the charging request includes the identification of the user and the identification of the requested service; 若所述用户的当前余额不大于预设的第一阈值,则根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βiIf the current balance of the user is not greater than the preset first threshold, then according to the current statistics of the historical consumption records of the user, obtain the total historical consumption β of each service of the user within the preset time range and the request The total historical consumption of the business β i ; 根据预存的所述请求业务的单位资费额γi和反算公式,计算资源量δ,其中,所述反算公式为:δ=α×(βi/β)/γi,其中γi表示为用户分配每单位资源量的所述请求业务对应的资源所需消费的金额;Calculate the resource amount δ according to the pre-stored unit tariff amount γ i of the requested service and the inverse formula, wherein the inverse formula is: δ=α×(β i /β)/γ i , where γ i represents Allocating the amount of resources that the user needs to consume per unit amount of resources corresponding to the requested service; 将α’作为所述用户的当前余额进行存储,并为所述用户分配所述请求业务对应的资源,且分配的资源量为δ,其中,α’=α-α×(βi/β)。Store α' as the current balance of the user, and allocate resources corresponding to the requested service to the user, and the allocated resource amount is δ, where α'=α-α×(β i /β) . 2.根据权利要求1所述的方法,其特征在于,所述根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βi之前,还包括:2. The method according to claim 1, characterized in that, according to the historical consumption record of the user according to the current statistics, the total historical consumption β of each service of the user within the preset time range and the request Before the total historical consumption of the business β i , it also includes: 向历史消费记录中心发送查询请求,所述查询请求包括所述用户的标识;Send a query request to the historical consumption record center, where the query request includes the user's identifier; 接收所述历史消费记录中心返回的当前统计的所述用户的历史消费记录。receiving the current statistics of the user's historical consumption records returned by the historical consumption records center. 3.根据权利要求1或2所述的方法,其特征在于,所述获取所述用户的当前余额α之后,还包括:3. The method according to claim 1 or 2, characterized in that after acquiring the current balance α of the user, further comprising: 若所述用户的当前余额小于预设的第二阈值,则向所述用户返回余额不足消息,所述第二阈值小于所述第一阈值。If the current balance of the user is less than a preset second threshold, an insufficient balance message is returned to the user, and the second threshold is less than the first threshold. 4.一种基于反算计费的资源分配装置,其特征在于,包括:4. A resource allocation device based on reverse calculation charging, characterized in that it comprises: 查询模块,用于根据用户的计费请求,查询当前存储的各用户的账户余额,获得所述用户的当前余额α,所述计费请求包括所述用户的标识和请求业务的标识;The query module is used to query the currently stored account balance of each user according to the charging request of the user, and obtain the current balance α of the user, and the charging request includes the identification of the user and the identification of the requested service; 获取模块,用于若所述用户的当前余额不大于预设的第一阈值,则根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βiAn acquisition module, configured to obtain the total historical consumption of each business of the user within a preset time range according to the current statistical historical consumption records of the user if the current balance of the user is not greater than the preset first threshold β and the historical consumption total amount β i of the requested service; 计算模块,用于根据预存的所述请求业务的单位资费额γi和反算公式,计算资源量δ,其中,所述反算公式为:δ=α×(βi/β)/γi,其中γi表示为用户分配每单位资源量的所述请求业务对应的资源所需消费的金额;A calculation module, configured to calculate the resource amount δ according to the pre-stored unit tariff amount γ i of the requested service and an inverse formula, wherein the inverse formula is: δ=α×(β i /β)/γ i , where γ i represents the amount of consumption required to allocate resources corresponding to the requested service per unit amount of resources allocated to the user; 处理模块,用于将α’作为所述用户的当前余额进行存储,并为所述用户分配所述请求业务对应的资源,且分配的资源量为δ,其中,α’=α-α×(βi/β)。A processing module, configured to store α' as the current balance of the user, and allocate resources corresponding to the requested service to the user, and the amount of allocated resources is δ, where α'=α-α×( β i /β). 5.根据权利要求4所述的装置,其特征在于,所述装置还包括:5. The device according to claim 4, further comprising: 发送模块,用于在所述获取模块根据当前统计的所述用户的历史消费记录,获得所述用户在预设时间范围内各业务的历史消费总额β和所述请求业务的历史消费总额βi之前,向历史消费记录中心发送查询请求,所述查询请求包括所述用户的标识;The sending module is used to obtain the total historical consumption β of each service of the user within the preset time range and the total historical consumption β of the requested service according to the current statistical historical consumption records of the user in the acquisition module Before, sending a query request to the historical consumption record center, the query request including the user's identification; 接收模块,用于接收所述历史消费记录中心返回的当前统计的所述用户的历史消费记录。The receiving module is configured to receive the current statistics of the user's historical consumption records returned by the historical consumption record center. 6.根据权利要求4或5所述的装置,其特征在于,6. The device according to claim 4 or 5, characterized in that, 所述处理模块,还用于在所述查询模块获得所述用户的当前余额α之后,若所述用户的当前余额小于预设的第二阈值,则向所述用户返回余额不足消息,所述第二阈值小于所述第一阈值。The processing module is further configured to return an insufficient balance message to the user if the user's current balance is less than a preset second threshold after the query module obtains the user's current balance α, and the The second threshold is less than the first threshold.
CN201310589350.1A 2013-11-20 2013-11-20 Resource distribution method and apparatus based on inverse computation charging Pending CN103607707A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
RU2518948C1 (en) Method, apparatus and system for quality of service control based on charging system
US20140379910A1 (en) Controlling bandwidth across multiple users for interactive services
US10630848B2 (en) Policy and charging enforcement function apparatus, online charging apparatus, and online charging method
CN110612779A (en) Enhanced interface for network slice selection based on charging rules
SG173513A1 (en) An online charging method and system based on user's traffic
US11689669B2 (en) Quota allocation to subscribers based on consumption speed, location, allowance, or combinations of the same
US20190364153A1 (en) Charging Method, Apparatus, And System
CN101827398B (en) Radio bearer state transmitting method and device
US20150271342A1 (en) Network resource allocation in communication networks
US20160150396A1 (en) System and method for tracking communications network resources and utilizing non-reusable, obligated network resources to support the communications network resources
US10846671B2 (en) Credit control method, policy and charging enforcement function entity, and online charging system
CN104574051A (en) Charging method and device
CN102142990A (en) Traffic monitoring method and device
CN103841126B (en) The concocting method and device of a kind of shared resource
WO2018001181A1 (en) Charging method and charging system
CN103414657A (en) Cross-data-center resource scheduling method, super scheduling center and system
CN103607707A (en) Resource distribution method and apparatus based on inverse computation charging
US20150004928A1 (en) Group data plan quota allocation for mobile devices
WO2021022916A1 (en) Charging method, device, and system
CN112738743A (en) Business service, real-time charging method, device, edge server and charging system
CN108076443A (en) The distribution method and online charging system of flow in a kind of online charging system
CN101183957B (en) Online charging method, system and equipment
CN115915043A (en) Charging method and device
CN103338439B (en) A kind of method, gateway device and counting equipment of charging

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140226