CN105228187A - A kind of method of real-time statistics telephone traffic - Google Patents
A kind of method of real-time statistics telephone traffic Download PDFInfo
- Publication number
- CN105228187A CN105228187A CN201510584011.3A CN201510584011A CN105228187A CN 105228187 A CN105228187 A CN 105228187A CN 201510584011 A CN201510584011 A CN 201510584011A CN 105228187 A CN105228187 A CN 105228187A
- Authority
- CN
- China
- Prior art keywords
- traffic
- time
- real
- call
- statistics
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000005259 measurement Methods 0.000 claims abstract description 19
- 238000004364 calculation method Methods 0.000 claims abstract description 5
- 230000001186 cumulative effect Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of method of real-time statistics telephone traffic, comprise the steps: S1, the traffic meter of the call number in real-time statistics circuit is set; S2, the talking state in real-time listening circuit, when a call starts, traffic meter adds 1; When an end of conversation, traffic meter subtracts 1; S3, after arriving interval time, the value of run-down traffic meter, is added to the value of described traffic meter in the traffic statistics cycle rate counter of setting, and empties traffic meter; S4, repeats step S2 ~ S3, after the time in traffic measurement cycle arrives, according to the ratio calculation telephone traffic of the maximum duration of call total value existed in the duration of call total value of real-time statistics and system.The method just calculates telephone traffic index after need not waiting end of calling.Every interval time adds up number of once conversing.As long as interval time is enough short, then the accurate telephone traffic information of calculating current system that can be real-time.
Description
Technical field
The present invention relates to a kind of method of real-time statistics telephone traffic, particularly relate to a kind of implementation method of every line telephone traffic average statistics, belong to communication technical field.
Background technology
Telephone traffic is the abbreviation of telecommunication service flow, refers to the product of the number of calls and per call average holding time in a special time.Telephone traffic formula is: A=C*t.A is telephone traffic, and unit is erl (Ireland), and C is the number of calls, and unit is, and t is per call average occupied duration, and unit is hour.General telephone traffic is also known as hour call, and the time range of statistics is 1 hour.
1 Ireland (Erl) is exactly that a circuit can treatable maximum telephone traffic.If observe 1 hour, this circuit is continuously occupied 1 hour, and telephone traffic is exactly 1 Ireland, may also be referred to as " 1 hour call ".If one circuit occupied (statistics) duration is 0.5 hour, telephone traffic is 0.5 Ireland.
Traditional method realizing traffic measurement is: start timing when each call starts, and calculates the duration of call when end of conversation, and stores cumulative for the duration of call.When measurement period then (such as each hour statistics once), go out telephone traffic according to telephone traffic formulae discovery.
The shortcoming of this implementation method is, only the duration of call could be brought into after end of conversation in telephone traffic calculating.If calling spans two measurement periods, then in traffic cycle when telephone traffic can only calculate end of calling, the traffic measurement cycle at place then not this traffic information when call starts.This implementation can not embody the real-time accuracy of telephone traffic.
In order to solve the problem, be in the Chinese invention patent of ZL200910189768.7, provide a kind of statistical method of telephone traffic, system and server in the patent No..Method wherein comprises the following steps: after reset, starts the timer of Preset Time; Calculate I, the Q signal square value sum of input signal, wherein, described I is the in-phase component of complex signal, and described Q is the quadrature component of complex signal; Judge whether square value sum is greater than default threshold value, if be greater than threshold value, then the effective sample point that there is user is added up; After the timer of Preset Time overflows, utilize the value of the effective sample point cumulative sum obtained to be multiplied with the duration of effective sample point, obtain traffic statistic value.Above-mentioned statistical method is by calculating the number of users conversed within sometime, make the keeper at background net management center can be informed in sometime the number of users conversed, so as follow-uply to carry out making rational planning for, the preparation that gives a forecast such as charging work.
Summary of the invention
For the deficiencies in the prior art, technical problem to be solved by this invention is a kind of method providing real-time statistics telephone traffic.
For achieving the above object, the present invention adopts following technical scheme:
A method for real-time statistics telephone traffic, comprises the steps:
S1, arranges the traffic meter of the call number in real-time statistics circuit;
S2, the talking state in real-time listening circuit, according to the value of the call quantity real-time statistics traffic meter existed in circuit;
S3, after arriving interval time, the value of run-down traffic meter, is added to the value of described traffic meter in the traffic statistics cycle rate counter of setting, and empties traffic meter;
S4, repeats step S2 ~ S3, after the time in traffic measurement cycle arrives, according to the ratio calculation telephone traffic of the maximum duration of call total value existed in the duration of call total value of real-time statistics and system.
Wherein more preferably, in step s 4 which, the duration of call total value of described real-time statistics to be multiplied with the described time interval by the call quantity existed in circuit cumulative in described traffic statistics cycle rate counter and to obtain.
Wherein more preferably, in step s 4 which, according to the ratio calculation telephone traffic of the maximum duration of call total value existed in the duration of call total value of real-time statistics and system, following formula is adopted::
Wherein, Δ t is interval time, and (t2-t1) is the traffic measurement cycle, and m is the value of the traffic meter that every Δ t scans, and N is total available circuit number.
Wherein more preferably, step S2 comprises the steps:
Within the time interval, the talking state in real-time listening circuit;
When receiving calling and starting message, judge that a call starts, traffic meter adds 1;
When receiving end of calling message, judge an end of conversation, traffic meter subtracts 1.
Wherein more preferably, described calling starts the one that message is user's offhook message, subscriber dialing message, phone ringing message, user pick in message, and the user demand according to reality sets;
Described end of calling message is user's on-hook message.
The method of real-time statistics telephone traffic provided by the present invention, first arranges a traffic meter, for the call number in statistical circuit.Then, the talking state in real-time listening circuit, when a call starts, traffic meter adds 1; When an end of conversation, traffic meter subtracts 1.After arriving interval time, the value of run-down traffic meter, is added to this value in the traffic statistics cycle rate counter of setting, and empties traffic meter.Continue the value according to the call quantity real-time statistics traffic meter existed in circuit, and be added in the traffic statistics cycle rate counter of setting after the time interval arrives.Until after the time arrival in traffic measurement cycle, according to the telephone traffic of telephone traffic computing formula statistical system.As long as interval time is enough short, then the accurate telephone traffic information of embodiment current system that can be real-time, improves the accuracy of telephone traffic real-time statistics.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for real-time statistics telephone traffic provided by the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, detailed specific description is carried out to technology contents of the present invention.
As shown in Figure 1, the method of real-time statistics telephone traffic provided by the present invention, integration is adopted to become the method for summation, namely arrange a traffic meter, add 1 when call starts hour counter, counter subtracts 1 when the call ends, each interval time Δ t (such as 5 seconds) run-down traffic meter value, if the value of index counter is m (i.e. the call number of current existence), and think that in the Δ t time next time, this m calling exists always.If maximum circuit number is N, then every line telephone traffic is now m/N, and in embodiment provided by the present invention, the calculating of telephone traffic all refers to every line telephone traffic.The method of real-time statistics telephone traffic provided by the present invention, just calculates telephone traffic index after need not waiting end of calling.But add up every the Δ t time number of once conversing.As long as the time of Δ t is enough short, then the accurate telephone traffic information of embodiment current system that can be real-time.Specifically comprise the steps: first, a traffic meter is set, for the call number in real-time statistics circuit.Then, the talking state in real-time listening circuit, when a call starts, traffic meter adds 1; When an end of conversation, traffic meter subtracts 1.After interval time, Δ t arrived, the value of run-down traffic meter, is added to this value in the traffic statistics cycle rate counter of setting, and empties traffic meter.Repeat above-mentioned steps, after the time in traffic measurement cycle (the traffic measurement cycle of such as setting up is 1 hour) arrives, according to following formulae discovery telephone traffic:
Wherein, Δ t is interval time, and (t2-t1) is the traffic measurement cycle, and m is the value of the index counter that every Δ t scans, and N is total available circuit number.Detailed specific description is done to this process below.
S1, arranges a traffic meter, for the call number in real-time statistics circuit.
S2, the talking state in real-time listening circuit, according to the value of the call quantity real-time statistics traffic meter existed in circuit.
Talking state in real-time listening circuit, according to the value of the call quantity real-time statistics traffic meter existed in circuit, specifically comprises the steps:
Within the time interval, the talking state in real-time listening circuit, when receiving calling and starting message, judge that a call starts, when a call starts, traffic meter adds 1; When receiving end of calling message, judge an end of conversation, when an end of conversation, traffic meter subtracts 1.In embodiment provided by the present invention, calling starts the one that message can be user's offhook message, subscriber dialing message, phone ringing message, user pick in message, and the user demand according to reality sets.End of calling message is user's on-hook message.
S3, after interval time, Δ t arrived, the value of run-down traffic meter, is added to this value in the traffic statistics cycle rate counter of setting, and empties traffic meter.
After interval time, Δ t arrived, the value of run-down traffic meter, is added to this value in the traffic statistics cycle rate counter of setting, and empties traffic meter.In embodiment provided by the present invention, interval time, Δ t can according to the traffic statistic needs of reality, be set as random time, when the accuracy rate of traffic statistic requires higher, the time interval, Δ t was set to very short a period of time, or even a certain moment point, then the telephone traffic of embodiment current time that can be real-time, and then the accurate telephone traffic information of real-time embodiment current system, improve the accuracy of telephone traffic real-time statistics.
S4, repeats step S2 ~ S3, after the time in traffic measurement cycle arrives, according to following formulae discovery telephone traffic:
Wherein, Δ t is interval time, and (t2-t1) is the traffic measurement cycle, and m is the value of the index counter that every Δ t scans, and N is total available circuit number.
Within the traffic measurement cycle, repeat step S2 ~ S3, the call quantity in real-time listening circuit, according to the value of the call quantity real-time statistics traffic meter existed in circuit, and be added in the traffic statistics cycle rate counter of setting after the time interval arrives.As long as interval time is enough short, then can the accurate telephone traffic information of real-time statistics current system.After the time in traffic measurement cycle arrives, according to following formulae discovery telephone traffic:
Wherein, Δ t is interval time, and (t2-t1) is the traffic measurement cycle, and m is the value of the index counter that every Δ t scans, and N is total available circuit number.
In sum, the method for real-time statistics telephone traffic provided by the present invention, first arranges a traffic meter, for the call number in statistical circuit.Then, the talking state in real-time listening circuit, when a call starts, traffic meter adds 1; When an end of conversation, traffic meter subtracts 1.After interval time, Δ t arrived, the value of run-down traffic meter, is added to this value in the traffic statistics cycle rate counter of setting, and empties traffic meter.Continue the value changing traffic meter according to the call quantity existed in circuit in real time, and be added in the traffic statistics cycle rate counter of setting after the time interval arrives.Until after the time arrival in traffic measurement cycle, according to the telephone traffic of telephone traffic computing formula statistical system.As long as interval time is enough short, then the accurate telephone traffic information of embodiment current system that can be real-time, improves the accuracy of telephone traffic real-time statistics.
Above the method for real-time statistics telephone traffic provided by the present invention is described in detail.For one of ordinary skill in the art, to any apparent change that it does under the prerequisite not deviating from connotation of the present invention, all by formation to infringement of patent right of the present invention, corresponding legal liabilities will be born.
Claims (5)
1. a method for real-time statistics telephone traffic, is characterized in that comprising the steps:
S1, arranges the traffic meter of the call number in real-time statistics circuit;
S2, the talking state in real-time listening circuit, according to the value of the call quantity real-time statistics traffic meter existed in circuit;
S3, after arriving interval time, the value of run-down traffic meter, is added to the value of described traffic meter in the traffic statistics cycle rate counter of setting, and empties described traffic meter;
S4, repeats step S2 ~ S3, after the time in traffic measurement cycle arrives, according to the ratio calculation telephone traffic of the maximum duration of call total value existed in the duration of call total value of real-time statistics and system.
2. the method for real-time statistics telephone traffic as claimed in claim 1, is characterized in that:
In step s 4 which, the duration of call total value of described real-time statistics to be multiplied with the described time interval by the call quantity existed in circuit cumulative in described traffic statistics cycle rate counter and to obtain.
3. the method for real-time statistics telephone traffic as claimed in claim 1, is characterized in that:
In step s 4 which, according to the ratio calculation telephone traffic of the maximum duration of call total value existed in the duration of call total value of real-time statistics and system, following formula is adopted:
Wherein, Δ t is interval time, and (t2-t1) is the traffic measurement cycle, and m is the value of the traffic meter that every Δ t scans, and N is total available circuit number.
4. the method for real-time statistics telephone traffic as claimed in claim 1, is characterized in that step S2 comprises the steps:
Within the time interval, the talking state in real-time listening circuit;
When receiving calling and starting message, judge that a call starts, traffic meter adds 1;
When receiving end of calling message, judge an end of conversation, traffic meter subtracts 1.
5. the method for real-time statistics telephone traffic as claimed in claim 1, is characterized in that:
Described calling starts the one that message is user's offhook message, subscriber dialing message, phone ringing message, user pick in message, and the user demand according to reality sets;
Described end of calling message is user's on-hook message.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510584011.3A CN105228187A (en) | 2015-09-14 | 2015-09-14 | A kind of method of real-time statistics telephone traffic |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510584011.3A CN105228187A (en) | 2015-09-14 | 2015-09-14 | A kind of method of real-time statistics telephone traffic |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105228187A true CN105228187A (en) | 2016-01-06 |
Family
ID=54996799
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510584011.3A Pending CN105228187A (en) | 2015-09-14 | 2015-09-14 | A kind of method of real-time statistics telephone traffic |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105228187A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1304249A (en) * | 2000-03-11 | 2001-07-18 | 深圳市中兴通讯股份有限公司 | Method for implementing telephone traffic collection and traffic calculation |
| US6823051B1 (en) * | 2001-04-10 | 2004-11-23 | Cisco Technology, Inc. | Traffic distribution generator |
| CN1889602A (en) * | 2005-08-19 | 2007-01-03 | 华为技术有限公司 | Method for realizing real-time traffic statistics |
| CN1960403A (en) * | 2005-10-31 | 2007-05-09 | 中兴通讯股份有限公司 | Statistical method of real time telephone traffic |
-
2015
- 2015-09-14 CN CN201510584011.3A patent/CN105228187A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1304249A (en) * | 2000-03-11 | 2001-07-18 | 深圳市中兴通讯股份有限公司 | Method for implementing telephone traffic collection and traffic calculation |
| US6823051B1 (en) * | 2001-04-10 | 2004-11-23 | Cisco Technology, Inc. | Traffic distribution generator |
| CN1889602A (en) * | 2005-08-19 | 2007-01-03 | 华为技术有限公司 | Method for realizing real-time traffic statistics |
| CN1960403A (en) * | 2005-10-31 | 2007-05-09 | 中兴通讯股份有限公司 | Statistical method of real time telephone traffic |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| MY185180A (en) | Method for notification of a called subscriber in the absence of sufficient credit of the calling party | |
| NO985813D0 (en) | Counter step calculation in radio telephone network, especially for pay telephony with mobile phones | |
| WO2008056253A3 (en) | System, method, and device for crediting a user account for the receipt of incoming voip calls | |
| CN102611805A (en) | Communication information notifying method, information reporting method, server and communication terminals | |
| CN105025097A (en) | Cloud server-based missed call prompt method and system | |
| CN101257716A (en) | Method and system for prompting suspicious telephone | |
| US7499533B2 (en) | System and method for caller controlled time demarcation | |
| CN101969625A (en) | Short message transmitting method and system | |
| CN105228187A (en) | A kind of method of real-time statistics telephone traffic | |
| US6597774B1 (en) | System and method for providing an alert during communications | |
| CN102196085A (en) | Method and device for determining call duration of missed call | |
| CN101227527B (en) | System and method for initiating blind transfer call switching business | |
| CN105592094A (en) | Internet telephone link establishing method and system | |
| CN101588426B (en) | Method for displaying telephony expense on telephony terminal and telephony expense computing system | |
| CN101090378B (en) | Method and correlation device for identifying and setting call from IP network to PSTN | |
| WO2009055256A3 (en) | Method for determining a priority of a call in a communications network | |
| CN100562034C (en) | A method for traffic control and traffic dredging based on softswitch traffic volume | |
| CN105323784B (en) | Provider customer's Gather Number method and device, customer analysis method and system | |
| CN105208233A (en) | Network telephone system capable of prompting incoming call notification and realization method thereof | |
| CA2551187A1 (en) | Method of and system for conference calling | |
| US9560496B2 (en) | End-of-call short message implementation method and apparatus based on CTD | |
| CN106161817B (en) | Communication method and communication system based on VOIP platform | |
| CN105991850B (en) | The processing method and intelligent equipment of Voice Mail Service based on intelligent network | |
| CN101600180B (en) | Method for judging and distinguishing busy state of mobile user | |
| CN102457622B (en) | Method and system for processing voice calls, as well as switch and voice dialing server |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into 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: 20160106 |