CN1523519A - Segmented charging method - Google Patents

Segmented charging method Download PDF

Info

Publication number
CN1523519A
CN1523519A CNA031048234A CN03104823A CN1523519A CN 1523519 A CN1523519 A CN 1523519A CN A031048234 A CNA031048234 A CN A031048234A CN 03104823 A CN03104823 A CN 03104823A CN 1523519 A CN1523519 A CN 1523519A
Authority
CN
China
Prior art keywords
information
time
sectional type
type charging
rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA031048234A
Other languages
Chinese (zh)
Other versions
CN1300728C (en
Inventor
云 马
马云
王友军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031048234A priority Critical patent/CN1300728C/en
Publication of CN1523519A publication Critical patent/CN1523519A/en
Application granted granted Critical
Publication of CN1300728C publication Critical patent/CN1300728C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

The invention provides a sectional form charging method, it includes: creating a temporary databank table, the table includes time information and rate information; it updates the rate information of each time segment in the databank table through executing the JOB operation of databank according to the charging tactic data of system; when the system receives the user charging application report, inquires the correspondent rate information in the temporary databank table according to time information, and calculates this time charging information of the user. The invention not only can realize real-time charging, and the whole calculation quantity is small, and it can feedback the change of databank information to charging process in real-time.

Description

The sectional type charging method
Technical field
The present invention relates to the charging method of communication field, refer to a kind of sectional type charging method especially.
Background technology
AAA (AAA is the abbreviation of authorizing (Authorization), authentication (Authentication) and charge (Accounting)) server is as access device (NAS, LAN Switch etc.) authentication, accounting server, the effect in the Internet networking plan is more and more important.Aaa server normally operational relation to the user whether can normally insert, charge information whether normal recordings etc. and user, the closely-related problem of supplier's interests, simultaneously, the calculated relationship of the functional expenses that the user uses is to supplier's vital interests, therefore, the accuracy of charging and rapidity are vital.
At present mainly be to use information in the reading database in internal memory to the billing operation of aaa server, the processing that using system multithreading, multi-process are chargeed, but the information that needs frequent reading database like this, and the changed information with database that can not be real-time feeds back in the internal memory.Therefore, can cause the performance of system significantly to descend, real-time than higher system on, can be a bottleneck.Simultaneously for the charging policy of complexity, as multiple preferential influencing each other, the intersection of multiple charging way all can have influence on the performance and the processing power of system.As in the prior art to charging event each time, accounting processing is by the rate information in the reading database, and preferential mode is carried out accounting processing, in computation process, need carry out the calculating of tariff discount, again the rate after the discount is carried out accounting processing, because middle result of calculation can't preserve, therefore for charging event each time, all need to carry out above-mentioned processing, like this, the calculated amount of system is quite big, and operation efficiency is very low.
Summary of the invention
In view of above-mentioned shortcoming of the prior art, the invention provides a kind of brand-new sectional type charging method.By the JOB that uses database to provide, the function of storing process, according to the charging policy of system change, the corresponding rate of real-time update day part can be accomplished computational costs real-time, quickly and accurately.
A kind of sectional type charging method comprises:
Create a volatile data base table, described database table includes temporal information and rate information;
According to the charging policy data of system, by carrying out the JOB operation of database, the rate information of day part in the described volatile data base table of real-time update;
Receive the user when system and charge behind the request message, inquire about the rate information of corresponding period in the described volatile data base table, calculate this cost information of this user according to temporal information.
Described temporal information comprises preferential zero-time and preferential termination time; Described rate information is the actual rate of the day part carrying out different different concessionary rates of period according to the charging policy of system and calculate.
Described sectional type charging method to not carrying out the period of tariff discount, unifies to carry out 0 percent concessionary rate calculating.
Described volatile data base table also comprises identifier information.
Described identifier gives different identifiers corresponding to different chargings is preferential.
Described customer charge information is that the rate information by day part uses the data computation of duration or flow to draw in conjunction with the user.
When installing in system, creates by described volatile data base table.
Described JOB operation is for carrying out once at least every day.
The present invention not only can carry out real time billing, and compare, it is little to have an overall operand, simultaneously the little advantage of calculated amount each time, in the feedback charging process that simultaneously can the modification of database information is real-time, the server of charging is well utilized.
Description of drawings
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
The present invention adopts a kind of brand-new sectional type charging method, and the JOB function that active bank provides realizes.Described JOB function is the function that oracle database provides, and other database also has identical functions, and title may be different, and JOB is meant that database supports storing process operation and need not user's intervention periodically automatically under the management of system; JOB among the Oracle can designated program at the appointed time move, and what support this timing operation function is the job sequence that bag DBMS_JOB provides; The operation of operation is to realize by the common submit job sequence of parameter with this operation and this job run mode of explanation among the Oracle.The present invention stores temporal information and rate information in this volatile data base table, in system's operational process in advance by creating a volatile data base table, carry out the JOB operation, according to the charging policy data, the rate information in this volatile data base table of real-time update is as preferential period rate etc.; As shown in Figure 1, receive the user when system and charge behind the request message, by inquiring about this volatile data base table, obtain the preferential rate of day part, read tariff data and charge, thereby need recomputate the calculated amount of discount rate when reducing each real time billing, increase the efficient of computing.The present invention can use dynamic load to handle, be that the user uses few time of portfolio in one day by detecting in system, carry out the JOB operation of database, in the not high period of cpu busy percentage, carry out the evaluation work of big data quantity, as carry out rate, preferential evaluation work, thereby the performance and the processing power of performance server can not occur peak value simultaneously and handle phenomenon.
For example: with common once conversation is example, data message that operator is provided with such as table one, table two:
Table one:
Destination address Number head Rate
Beijing 10 0.4 unit/minute
The U.S., Canada 1 2.5 unit/minute
Abroad 0 4 yuan/minute
Table two:
Title Sign Type of offer Zero-time Termination time Discount
No. 9 12 half prices in every month are preferential 1 Month 12:00:00 on the 9th 24:00:00 on the 9th ?0.5
Every month No. 10 7 folding is preferential 1 Month 00:00:00 on the 10th 24:00:00 on the 10th ?0.7
Data message after the calculating such as following table three:
Sequence number Sign Preferential zero-time The preferential termination time Discount
?1 ?1 ?2002-10-09 ?2002-10-09 ?12:00:00 ?1
?2 ?1 ?2002-10-09 ?12:00:00 ?2002-10-10 ?0.5
?3 ?1 ?2002-10-10 ?2002-10-11 ?0.7
?4 ?1 ?2002-10-11 ?2002-10-12 ?1
For example: the user uses the making call U.S., zero-time is 2002-10-09 10:00:00, concluding time is 2002-10-11 1:00:00, all listed in the table three sections have promptly been used, therefore, at first calculate the expense of The initial segment, it is the item of sequence number 1 expression, time period is 2002-10-09 10:00:00~2002-10-0912:00:00, calculate the expense of concluding time section again, promptly sequence number 4 is represented item, and the time period is 2002-10-1100:00:00~2002-10-11 1:00:00, calculate the center section time period at last, promptly sequence number 2, the time period cost data of sequence number 3.The expense of each time period is the actual rate (rate when the actual rate of each preferential period equals without privileges multiply by the discount rate of each preferential period) of this time period correspondence and the product of duration; The expense summation of these three time periods is the total expenses of this time calling user.
Block meter rate method of the present invention is adapted to charge on traffic equally.As above example as long as multiply by the actual flow rate of day part with the data on flows of day part, can obtain the traffic fee usefulness of day part, and the expense summation of these three time periods is the total expenses of this time calling user.
Shown in the table three, be volatile data base table of the present invention, preserved the data such as rate information that calculate through after the JOB execution in this volatile data base table.This volatile data base table is created when system installs, corresponding identifier is different preferential sign in the table, in the process of real time billing, because the preferential evaluation work of corresponding rate is complete, only need the tariff data information of the correspondence in the question blank to get final product, need all not carry out the preferential operation of primary charging, significantly reduce calculated amount for accounting processing each time.
In the system for the ease of handling, for any rate, be provided with preferential, for in fact unpreferential part, also unified be treated to 0% preferential so that unified processing, above JOB operation, but carry out once every day, and the data of the corresponding like-identified of Sheng Chenging are continuous on the time period simultaneously.

Claims (8)

1, a kind of sectional type charging method comprises:
Create a volatile data base table, described volatile data base table includes temporal information and rate information;
According to the charging policy data of system, by carrying out the JOB operation of database, the rate information of day part in the described volatile data base table of real-time update;
Receive the user when system and charge behind the request message, inquire about the rate information of corresponding period in the described volatile data base table, calculate this cost information of this user according to temporal information.
2, sectional type charging method as claimed in claim 1 is characterized in that: described temporal information comprises preferential zero-time and preferential termination time; Described rate information is the actual rate of the day part carrying out different different concessionary rates of period according to the charging policy of system and calculate.
3, sectional type charging method as claimed in claim 2 is characterized in that unifying to carry out 0 percent concessionary rate calculating to not carrying out the period of tariff discount.
4, as claim 1,2 or 3 described sectional type charging methods, it is characterized in that: described volatile data base table also comprises identifier information.
5, sectional type charging method as claimed in claim 4 is characterized in that: give different identifiers corresponding to different chargings is preferential.
6, as claim 1,2 or 3 described sectional type charging methods, it is characterized in that: described customer charge information is that the rate information by day part uses the data computation of duration or flow to draw in conjunction with the user.
7, as claim 1,2 or 3 described sectional type charging methods, it is characterized in that: create when described volatile data base table is installed in system.
8, as claim 1,2 or 3 described sectional type charging methods, it is characterized in that: described JOB operation, for carrying out once at least every day.
CNB031048234A 2003-02-20 2003-02-20 Segmented charging method Expired - Fee Related CN1300728C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031048234A CN1300728C (en) 2003-02-20 2003-02-20 Segmented charging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031048234A CN1300728C (en) 2003-02-20 2003-02-20 Segmented charging method

Publications (2)

Publication Number Publication Date
CN1523519A true CN1523519A (en) 2004-08-25
CN1300728C CN1300728C (en) 2007-02-14

Family

ID=34282383

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031048234A Expired - Fee Related CN1300728C (en) 2003-02-20 2003-02-20 Segmented charging method

Country Status (1)

Country Link
CN (1) CN1300728C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621589A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 Method and device for realizing audio communication service
CN103093542A (en) * 2011-10-31 2013-05-08 深圳光启高等理工研究院 Method, device and system for charging
CN102577466B (en) * 2009-09-30 2015-01-21 瑞典爱立信有限公司 A method and device for updating location numbers on an msc
CN104376457A (en) * 2014-09-26 2015-02-25 冯冀生 Discount billing terminal, discount billing system and discount billing method
CN109784900A (en) * 2018-12-28 2019-05-21 金卡智能集团股份有限公司 A kind of charging method at times based on calendar watch
CN110971640A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 CDN acceleration service distribution method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0173052B1 (en) * 1994-12-20 1999-03-30 양승택 Discount ration processing method of information fee
JPH11510325A (en) * 1995-07-21 1999-09-07 ブリティッシュ・テレコミュニケーションズ・パブリック・リミテッド・カンパニー Mobile phone system
CN2251232Y (en) * 1995-08-05 1997-04-02 安徽中电技术公司 Telephone charge terminal with long-distance communication function
US6044261A (en) * 1997-03-19 2000-03-28 Ericsson, Inc. Multiple home zone areas within a mobile telecommunications network
AUPO824497A0 (en) * 1997-07-25 1997-08-21 Jw & Ll Enterprises Pty Ltd A security apparatus for a telephone line
CN1235388C (en) * 2000-08-23 2006-01-04 中兴通讯股份有限公司 Multiple time section discount charging method for telephone

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621589A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 Method and device for realizing audio communication service
CN102577466B (en) * 2009-09-30 2015-01-21 瑞典爱立信有限公司 A method and device for updating location numbers on an msc
CN103093542A (en) * 2011-10-31 2013-05-08 深圳光启高等理工研究院 Method, device and system for charging
CN104376457A (en) * 2014-09-26 2015-02-25 冯冀生 Discount billing terminal, discount billing system and discount billing method
CN110971640A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 CDN acceleration service distribution method and device
CN110971640B (en) * 2018-09-30 2022-10-11 北京国双科技有限公司 CDN acceleration service distribution method and device
CN109784900A (en) * 2018-12-28 2019-05-21 金卡智能集团股份有限公司 A kind of charging method at times based on calendar watch

Also Published As

Publication number Publication date
CN1300728C (en) 2007-02-14

Similar Documents

Publication Publication Date Title
Benjamin Information technology in the 1990s: a long range planning scenario
US6282519B1 (en) No-reset option in a batch billing system
US9710830B1 (en) Method and system for dynamic web services utilization
Cheng et al. Optimal pricing policies of web-enabled application services
US20110119312A1 (en) System and method for automated scalability of n-tier computer applications
CN102609875B (en) A kind of method and system of dynamic parallel process bank data
CN103067185B (en) Charging method in cloud computing system
Tang et al. A framework for amazon ec2 bidding strategy under sla constraints
CN102404126A (en) Charging method of cloud computing during application process
US20040128185A1 (en) System and method for analyzing sales performances
CN1300728C (en) Segmented charging method
US20120136869A1 (en) System and Method of Processing Information Stored in Databases
CN109636036A (en) A kind of method, system and the equipment of the prediction of enterprise's invoiced amount
CN111639121A (en) Big data platform and method for constructing customer portrait
CN113643113A (en) Automatic electric charge auditing method, system, medium and electronic equipment
US20040210496A1 (en) Method and system for technology consumption management
Al-Ayyoub et al. Resilient service provisioning in cloud based data centers
CN113937788B (en) Power load side resource scheduling method and system
CN103854205A (en) Electronic commerce marketing service managing system
US6708226B2 (en) Multithreaded batch processing system
CN102136096B (en) Dynamic traffic control method and device for service and concurrency control system
CN102137449A (en) Business process method and system for business support system
CN110852859A (en) Intelligent electric power financial information management device
WO2001006467A1 (en) A real-time charge calculation system
CN104715421A (en) Method and device for processing electric charge data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070214

Termination date: 20150220

EXPY Termination of patent right or utility model