CN1323513C - Method of timed user charging information output for charging server - Google Patents

Method of timed user charging information output for charging server Download PDF

Info

Publication number
CN1323513C
CN1323513C CNB031317804A CN03131780A CN1323513C CN 1323513 C CN1323513 C CN 1323513C CN B031317804 A CNB031317804 A CN B031317804A CN 03131780 A CN03131780 A CN 03131780A CN 1323513 C CN1323513 C CN 1323513C
Authority
CN
China
Prior art keywords
user
value
formation
pos
roundtrip
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
CNB031317804A
Other languages
Chinese (zh)
Other versions
CN1571339A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB031317804A priority Critical patent/CN1323513C/en
Publication of CN1571339A publication Critical patent/CN1571339A/en
Application granted granted Critical
Publication of CN1323513C publication Critical patent/CN1323513C/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 discloses a method that a charging server outputs user charging information by timing. A method that a charging server outputs user charging information by timing can avoid a system operation peak generated when the charging server outputs charging information. The user amount of the charging server is designed as N. All users on the charging server is arranged in T user queues, and each queue can accommodate maximum user number as M. The relation among the N, the T and M: M*T>N. A user queue index P that the charging server points at the current second is regenerated at intervals of one second. When the user enters a state which waits for the next output of charging information, a nearest nonfull queue is found. Needed detected times ROUNDTRIP of the user is calculated. If the ROUNDTRIP is larger than zero, the ROUNDTRIP=ROUNDTRIP-1 is set. The detection for the user is ended. Vice versa, the charging information of the user is output and a state which waits for the next output of charging information is entered.

Description

Accounting server is regularly exported the method for customer charging information
Technical field
The present invention relates to the telecom charging server, relate in particular to the method that the accounting server charge information is regularly exported.
Background technology
The output of customer charging information is a part very crucial in the network charge system.Especially in the telecommunications service of large user's amount, all the accounting server of bearing customer charging information output there is very strict requirement.Because number of users is huge, the performance that how to improve accounting server just becomes a very important problem.
In the accounting server of routine, mainly adopt following three kinds of schemes output customer charging information:
1. regularly export all users' charge information.
2. regularly export the user's who began to charge at same second charge information.
3. by other system's control accounting server output customer charging information.
The shortcoming of scheme 1 is, because the telecommunication service customer volume is very big, can causes in the output customer charging information and produce the system works peak, is unfavorable for the stable operation of accounting server.
Though scheme 2 improves to some extent, still can't solve the problem that produces the system works peak under the situation that begins simultaneously to charge at a large number of users on the basis of scheme 1.
Though scheme 3 can solve the problem of preceding two schemes, shortcoming is excessively to be coupled with other system.
Summary of the invention
The present invention is in order to overcome weak point of the prior art, provides a kind of accounting server that produces the system works peak can avoid accounting server output charge information the time regularly to export the method for customer charging information.
The present invention is achieved through the following technical solutions:
A kind of accounting server is regularly exported the method for customer charging information, comprises the steps:
(1) initialization operation: the total user capacity of design charges server is N, and all user's fees are placed in T the Subscriber Queue on the accounting server, and the open ended user's maximum quantity of each formation is M, and the pass between the three is: M*T>N; The Subscriber Queue index that design charges server this second pointed to is P, and the every mistake of the value of described P regenerated after one second, and newly-generated value is got remainder for (P+1) to T, is that loop cycle is used to realize formation with T second;
(2) establishing a customer charging information output unit time is X second, when this user enters wait output charge information state, carries out following steps:
A. calculate the relative value OFFSET=P+X that the user places the formation index;
B. calculating the value that the user places the actual value POS of formation index is that OFFSET gets remainder to T;
C. check whether the number of users among the formation POS has reached maximum;
D. if number of users does not reach maximum among the formation POS, continue following step f;
E. if the number of users among the formation POS has reached maximum, POS is changed to next formation, gets the value of POS and T is got remainder for (POS+1), repeating step c, until finding nearest not full queue, establishing the number of times that finds nearest not full queue is n;
F. calculate the user and also need detected number of times, the value ROUNDTRIP of the number of times that described user is detected is that X is divided exactly the value that T obtains;
(3) accounting server detects all unique users among the Subscriber Queue P of this second sensing each second, and the detection of described unique user comprises the steps:
A. judge that user property ROUNDTRIP whether greater than zero, if greater than zero, ROUNDTRIP=ROUNDTRIP-1 is set then, finishes the detection to this user; If be not more than zero, then execution in step b;
B. export customer charging information;
C. the user enters wait and exports the charge information state next time.
The present invention has following beneficial effect:
Accounting server of the present invention is regularly exported the method for customer charging information and can be concentrated in a large number when beginning to charge the user, to export being distributed in each time period of charge information equably, thereby avoid the appearance on system works peak, improve the user capacity of accounting server and the stability of system's operation effectively.
Description of drawings
Fig. 1 waits for the flow chart of output charge information state for the user enters;
Fig. 2 is the detection step of unique user.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
The total user capacity of design charges server is N, and all user's fees are placed in T the Subscriber Queue on the accounting server, and the open ended user's maximum quantity of each formation is M.Pass between the three is: M*T>N.The Subscriber Queue index of accounting server this second sensing is P.The every mistake of the value of P regenerated after one second, and newly-generated value is got remainder to T for (P+1), and the method has realized that formation is that loop cycle is used with T second.
If a customer charging information output unit time is X second.When this user enters wait when exporting the charge information state next time, must be placed into according to step shown in Figure 1 in the middle of the corresponding Subscriber Queue.Step is as follows:
A. calculate the relative value OFFSET=P+X that the user places the formation index.See Fig. 1 step 11.
B. calculating the value that the user places the actual value POS of formation index is that OFFSET gets remainder to T.See Fig. 1 step 12.
C. check that whether the number of users among the formation POS has reached maximum, sees Fig. 1 step 13.If number of users does not reach maximum among the formation POS, the steps d below continuing.If the number of users among the formation POS has reached maximum, POS is changed to next formation, get the value of POS and T is got remainder for (POS+1), see Fig. 1 step 14.Repeat Fig. 1 step 13, until finding nearest not full queue, establishing step 14 execution number of times is n.
D. calculating the user also needs to produce the charge information outgoing event behind the detected number of times, and the value ROUNDTRIP of number of times is that X is divided exactly the value that T obtains.See Fig. 1 step 15.
After above step operation, the user will produce the charge information outgoing event at X+n after second.
The detection step of unique user as shown in Figure 2, all users among the Subscriber Queue P that accounting server each second this second is pointed to detect, and when detecting incident that the user exports charge information and take place, export this user's charge information.Detection step to unique user is as follows:
A. if user property ROUNDTRIP greater than zero, is provided with ROUNDTRIP=ROUNDTRIP-1, finish detection to this user.Otherwise continuation following steps.
B. export customer charging information.
C. the user enters wait and exports the charge information state next time.
Illustrate accounting server of the present invention below and regularly export the method for customer charging information.
For example, one is 200 for the dial-up access user provides the maximum user capacity of the charge server system of the service of charging, 000 user, the charge information that each second, system can export at most is 200, the cycle that all dial-up access users produce charge information all is 600 seconds.According to technical scheme of the present invention, 1500 Subscriber Queue are set in system, the maximum open ended number of users of each formation is 200.
At first, we analyze the flow process that unique user experiences.If current have user A dial-up access successful, enter and wait for output charge information state, it is 1500 that Subscriber Queue is counted T, and current Subscriber Queue index P is 1400, and the cycle X that the user produces charge information is 600.According to Fig. 1 flow process, carry out following steps:
A. step 11 is calculated the relative value OFFSET=P+X=2000 that the user places the formation index;
B. step 12 is calculated value that the user places the actual value POS of formation index and is OFFSET and T is got remainder is 500;
C. step 13 checks whether the number of users among the formation POS (500) has reached maximum;
D. if number of users does not reach maximum among the formation POS (500), continue following step f;
E. step 14 if the number of users among the formation POS (500) has reached maximum, is changed to next formation with POS, get the value of POS and T is got remainder for (POS+1), repeating step c is n until finding nearest not full queue, establish the number of times that finds nearest not full queue;
F. step 15 is calculated the user and is also needed detected number of times, and the value ROUNDTRIP of the number of times that described user is detected is that X is divided exactly the value that T obtains and is 0;
Check out among the POS (500) that with step c it is example that number of users does not reach maximum, POS=500 then, n=0, after 600 seconds, the user among the formation POS (500) will be detected one by one so.
The flow process of the detection step execution graph 2 of unique user when user A is detected, finds that the ROUNDTRIP property value of user A is 0, and the output customer charging information makes the user enter the state of next time waiting for the output charge information.
Below, difference and advantage that we compare with other existing program this programme describe.
When dial-up access on daytime number of users hour, promptly the user who begins to charge simultaneously in each second is not more than in 200, the present invention is identical with the effect of scheme 2, all users were the cycle to export charge information with 600 seconds.
When dial-up access in evening number of users is big, promptly each second begin simultaneously the user that charges greater than 200 in, the present invention and the effect of scheme 2 will produce following different:
A. be located at all to have 300 users to open simultaneously continuous 3 seconds to be and charge and do not have the user the system before this from the beginning of current this second.For scheme 2, in continuous 3 seconds after 600 seconds, per second all needs to export 300 customer charging informations, has surpassed the maximum that system can bear, and is unfavorable for very much the stable operation of system.And according to design of the present invention, 300 users in first second have 200 to export charge information after the unit interval of setting.100 meetings postpone one second output charge information than the unit interval of setting.300 users in second second have 100 to export charge information after the unit interval of setting, and 200 meetings postpone one second output charge information than the unit interval of setting.300 users in the 3rd second have 200 than unit interval delay output in the one second charge information of setting, and 100 meetings postpone two seconds output charge informations than the unit interval of setting.On the time accuracy of output customer charging information, the solution of the present invention is error slightly, but it can be effectively with the work peak of the system of elimination.
B. in above analysis, can deeply see scheme 2 per system works peaks that all can produce continuous 3 seconds in 600 seconds.The solution of the present invention just can be avoided same problem.
C. can see deeply in above analysis that the user that NEW BEGINNING charges in 3 seconds work peaks that scheme 2 produced in per 600 seconds can continue to be added to this 3 second, still can't effectively evade knowing perfectly well under the situation that runs into the work peak.And for the solution of the present invention, these users can evenly distribute by the method for a spot of delay output charge information, thereby eliminate the system works peak.

Claims (1)

1. an accounting server is regularly exported the method for customer charging information, it is characterized in that, comprises the steps:
(1) initialization operation: the total user capacity of design charges server is N, and all user's fees are placed in T the Subscriber Queue on the accounting server, and the open ended user's maximum quantity of each formation is M, and the pass between the three is: M*T>N; The Subscriber Queue index that design charges server this second pointed to is P, and the every mistake of the value of described P regenerated after one second, and newly-generated value is got remainder for (P+1) to T, is that loop cycle is used to realize formation with T second;
(2) establishing a customer charging information output unit time is X second, when this user enters wait output charge information state, carries out following steps:
A. calculate the relative value OFFSET=P+X that the user places the formation index;
B. calculating the value that the user places the actual value POS of formation index is that OFFSET gets remainder to T;
C. check whether the number of users among the formation POS has reached maximum;
D. if number of users does not reach maximum among the formation POS, continue following step f;
E. if the number of users among the formation POS has reached maximum, get the value of POS and for (POS+1) T is got remainder, the substep c in the repeating step (2) is until finding nearest not full queue;
F. calculate the user and also need detected number of times, it is that X is divided exactly the value that T obtains that described user needs the value ROUNDTRIP of detected number of times, execution in step (3);
(3) accounting server detects all unique users among the Subscriber Queue P of this second sensing each second, and the detection of described unique user comprises the steps:
A. judge that user property ROUNDTRIP whether greater than zero, if greater than zero, ROUNDTRIP=ROUNDTRIP-1 is set then, finishes the detection to this user; If be not more than zero, then carry out the substep b in this step (3);
B. export customer charging information;
C. the user enters wait and exports the charge information state next time.
CNB031317804A 2003-07-22 2003-07-22 Method of timed user charging information output for charging server Expired - Fee Related CN1323513C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031317804A CN1323513C (en) 2003-07-22 2003-07-22 Method of timed user charging information output for charging server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031317804A CN1323513C (en) 2003-07-22 2003-07-22 Method of timed user charging information output for charging server

Publications (2)

Publication Number Publication Date
CN1571339A CN1571339A (en) 2005-01-26
CN1323513C true CN1323513C (en) 2007-06-27

Family

ID=34469784

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031317804A Expired - Fee Related CN1323513C (en) 2003-07-22 2003-07-22 Method of timed user charging information output for charging server

Country Status (1)

Country Link
CN (1) CN1323513C (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2366124A (en) * 2000-03-13 2002-02-27 Nec Corp Special call-fee charging method
CN1419360A (en) * 2001-11-13 2003-05-21 阿尔卡塔尔公司 Method for supporting business fee counting
GB2382899A (en) * 2000-12-29 2003-06-11 Zarlink Semiconductor Ltd Data queue system
CN1423454A (en) * 2001-12-04 2003-06-11 深圳市中兴通讯股份有限公司上海第二研究所 Charged data transmission method for programme-controlled telephone switching system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2366124A (en) * 2000-03-13 2002-02-27 Nec Corp Special call-fee charging method
GB2382899A (en) * 2000-12-29 2003-06-11 Zarlink Semiconductor Ltd Data queue system
CN1419360A (en) * 2001-11-13 2003-05-21 阿尔卡塔尔公司 Method for supporting business fee counting
CN1423454A (en) * 2001-12-04 2003-06-11 深圳市中兴通讯股份有限公司上海第二研究所 Charged data transmission method for programme-controlled telephone switching system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
清华大学出版社 郑人杰,软件工程 1999 *

Also Published As

Publication number Publication date
CN1571339A (en) 2005-01-26

Similar Documents

Publication Publication Date Title
CN101132289B (en) Integrated billing method, billing system, application server and integrated billing system
EP2026551B1 (en) A method and system of charging and an account period switching module
CN102394719A (en) Multichannel HDLC data processing method based on FPGA
CN102045222A (en) Real-time overall test method of network system
CN104253892B (en) The method of testing of the performance of application program and system in Intelligent mobile equipment
CN108880934B (en) Data flow statistical method and device based on block chain
CN105050068A (en) Billing bill recording, detection, and correction method, apparatus, and bill processing system
CN101222559A (en) Service charging method and system
CN108632047A (en) A kind of determination method and device of tariff data
CN109086149A (en) A kind of method that micro services interface calls analysis of central issue
CN111768607A (en) Multi-table counting data acquisition method, device, equipment and medium
CN1323513C (en) Method of timed user charging information output for charging server
CN102238267A (en) Mobile terminal and communication service condition conversion control method thereof
CN107181601A (en) A kind of flow based reminding method and device
CN1447579A (en) Method for switching in intelligence net by using prepaid cards
CN101212363B (en) Data communication network billing accuracy tester
CN1316784C (en) Method for realizing batched communication business valuation
CN113676790B (en) Acquisition scheduling method and device for low-voltage centralized meter reading equipment, concentrator and medium
JPH1091556A (en) Method for acquiring application information on software, data base and computer
CN1322706C (en) Method of realizing real time segmental charging
CN101494695B (en) Method and apparatus for preventing month lease call ticket from repeating
CN100536519C (en) Telecommunication charging system and method for controlling number of resource capable of being used by users
CN1476207A (en) IP special line charging method and system
CN100495980C (en) A method for collecting performance statistics data
CN101448235B (en) Method and system for achieving charging in interactive voice response service

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: 20070627

Termination date: 20140722

EXPY Termination of patent right or utility model