CN1300728C - Segmented charging method - Google Patents

Segmented charging method Download PDF

Info

Publication number
CN1300728C
CN1300728C CNB031048234A CN03104823A CN1300728C CN 1300728 C CN1300728 C CN 1300728C CN B031048234 A CNB031048234 A CN B031048234A CN 03104823 A CN03104823 A CN 03104823A CN 1300728 C CN1300728 C CN 1300728C
Authority
CN
China
Prior art keywords
information
time
data base
base table
volatile data
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.)
Expired - Fee Related
Application number
CNB031048234A
Other languages
Chinese (zh)
Other versions
CN1523519A (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

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a segmented charging method which comprises the following steps: a temporary database table is created, and the temporary database table comprises time information and rate information; the rate information of each time interval in the temporary database table is updated at real time by executing JOB operation of a database according to charging tactic data of a system; after a user's charging request message is received by the system, the rate information of the corresponding time interval in the temporary database table is queried according to the time information, and the user's expense information is calculated out. The present invention not only can carry out real-time charging, but also has the advantages that overall operating amounts are small, and simultaneously the change of database information can be fed back into the charging process at 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.
The inventive 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, the storing process of periodically automatic runtime database, day part and corresponding rate information thereof in the described volatile data base table of real-time update;
Receiving the user when system charges behind the request message, according to this professional shared period of this user, inquire about the rate information of corresponding period in the described volatile data base table,, calculate this cost information of this user in conjunction with the duration/data on flows of this professional shared day part.
According to said method of the present invention, described temporal information comprises the in chronological sequence zero-time and the termination time of the corresponding different rates of order; 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.
According to said method of the present invention, reality is not carried out period of tariff discount, unifiedly carry out percent 0 concessionary rate calculating.
Described volatile data base table also comprises identifier information, gives different identifiers respectively corresponding to different charging type of offer.
The record that has identical identifier in the described volatile data base table, its corresponding time period is continuous.
When installing in system, creates by described volatile data base table.
The storing process of the automatic runtime database of described periodicity 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 type of offer 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 (7)

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, the storing process of periodically automatic runtime database, day part and corresponding rate information thereof in the described volatile data base table of real-time update;
Receiving the user when system charges behind the request message, according to this professional shared period of this user, inquire about the rate information of corresponding period in the described volatile data base table,, calculate this cost information of this user in conjunction with the duration/data on flows of this professional shared day part.
2, sectional type charging method as claimed in claim 1 is characterized in that: described temporal information comprises the in chronological sequence zero-time and the termination time of the corresponding different rates of order; 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: reality is not carried out period of tariff discount, unifiedly carry out percent 0 concessionary rate calculating.
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, gives different identifiers respectively corresponding to different charging type of offer.
5, sectional type charging method as claimed in claim 4 is characterized in that: the record that has identical identifier in the described volatile data base table, its corresponding time period is continuous.
6, 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.
7, as claim 1,2 or 3 described sectional type charging methods, it is characterized in that: the storing process of the automatic runtime database of described periodicity, 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 CN1523519A (en) 2004-08-25
CN1300728C true 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)

Families Citing this family (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
WO2011040844A1 (en) * 2009-09-30 2011-04-07 Telefonaktiebolaget Lm Ericsson (Publ) A method, device and computer program product for updating location numbers on an msc
CN103093542B (en) * 2011-10-31 2017-02-01 深圳光启高等理工研究院 Method, device and system for charging
CN104376457A (en) * 2014-09-26 2015-02-25 冯冀生 Discount billing terminal, discount billing system and discount billing method
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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2251232Y (en) * 1995-08-05 1997-04-02 安徽中电技术公司 Telephone charge terminal with long-distance communication function
US5793852A (en) * 1994-12-20 1998-08-11 Electronics And Telecommunications Research Institute Method of processing information charge discount rates for service subscribers in premium-rate service
CN1191662A (en) * 1995-07-21 1998-08-26 英国电讯有限公司 Mobile telephone system
WO1999005842A1 (en) * 1997-07-25 1999-02-04 Jw & Ll Enterprises Pty. Ltd. A security apparatus for a telephone line and a method for securing a telephone line
CN1255271A (en) * 1997-03-19 2000-05-31 艾利森公司 Multiple home zone areas within mobile telecommunications network
CN1339911A (en) * 2000-08-23 2002-03-13 深圳市中兴通讯股份有限公司上海第二研究所 Multiple time section discount charging method for telephone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793852A (en) * 1994-12-20 1998-08-11 Electronics And Telecommunications Research Institute Method of processing information charge discount rates for service subscribers in premium-rate service
CN1191662A (en) * 1995-07-21 1998-08-26 英国电讯有限公司 Mobile telephone system
CN2251232Y (en) * 1995-08-05 1997-04-02 安徽中电技术公司 Telephone charge terminal with long-distance communication function
CN1255271A (en) * 1997-03-19 2000-05-31 艾利森公司 Multiple home zone areas within mobile telecommunications network
WO1999005842A1 (en) * 1997-07-25 1999-02-04 Jw & Ll Enterprises Pty. Ltd. A security apparatus for a telephone line and a method for securing a telephone line
CN1339911A (en) * 2000-08-23 2002-03-13 深圳市中兴通讯股份有限公司上海第二研究所 Multiple time section discount charging method for telephone

Also Published As

Publication number Publication date
CN1523519A (en) 2004-08-25

Similar Documents

Publication Publication Date Title
Benjamin Information technology in the 1990s: a long range planning scenario
US5668993A (en) Multithreaded batch processing system
CN100465900C (en) information system, load control method, load control program, and recording medium
US6282519B1 (en) No-reset option in a batch billing system
Cheng et al. Optimal pricing policies of web-enabled application services
CN102404126A (en) Charging method of cloud computing during application process
CN107256497A (en) Advertisement delivery system
CN101968859A (en) Business process management method and system based on cloud computing environment
US20040128185A1 (en) System and method for analyzing sales performances
CN1300728C (en) Segmented charging method
CN106156040A (en) multi-dimensional data management method and device
CN101924638A (en) Real-time charging system
CN113937788B (en) Power load side resource scheduling method and system
CN105138656A (en) Method and device for processing data
KR20100006467A (en) Method, system and computer readable recording medium for charging for on-line advertisement
US6708226B2 (en) Multithreaded batch processing system
CN102136096A (en) Dynamic traffic control method and device for service and concurrency control system
CN102137449A (en) Business process method and system for business support system
WO2024026917A1 (en) Non-motor vehicle filing management method and system, and storage medium
CN110852859A (en) Intelligent electric power financial information management device
US20060155555A1 (en) Utility computing method and apparatus
US20080133406A1 (en) Mass billing systems and methods
CN111368179B (en) Method for realizing general operation prompt configuration and display control in cloud platform flow application business approval link
CN110275771A (en) A kind of method for processing business, Internet of Things billing infrastructure system and storage medium
Miller et al. Simulation of the call center environment for comparing competing call routing technologies for business case ROI projection (case study)

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