CN1770797A - Method for controlling traffic in simulation of large traffic test - Google Patents
Method for controlling traffic in simulation of large traffic test Download PDFInfo
- Publication number
- CN1770797A CN1770797A CN 200410065646 CN200410065646A CN1770797A CN 1770797 A CN1770797 A CN 1770797A CN 200410065646 CN200410065646 CN 200410065646 CN 200410065646 A CN200410065646 A CN 200410065646A CN 1770797 A CN1770797 A CN 1770797A
- Authority
- CN
- China
- Prior art keywords
- time
- telephone traffic
- calculate
- hundred
- send
- 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
Links
Images
Landscapes
- Monitoring And Testing Of Exchanges (AREA)
Abstract
This invention relates to analogue large telephone test control quantities method, which comprises the following steps: pre-setting each second phone calls; getting initial operation system time as first send time; setting timer trigger time gap; after timer triggered, getting system current time and computing the current send time; computing the call numbers generated by this time trigger according to pre-set call number and local send time length for sending; after sending according to real sending number to compute local sending call number occupancy time adding up send time as next time send initial time; waiting for next trigger and dividing the calls into hundred bit, ten bit and units for process.
Description
Technical field
The present invention relates to the method for simulation Bulk Call test in the communications field, be specifically related to how accurately control the technology of telephone traffic.
Background technology
At present, along with the continuous expansion of userbase, the telephone traffic that the application of the communications field faces constantly improves, and the zone intensive the user more may reach several thousand/seconds.Therefore, test is also had higher requirement to the Bulk Call in the test job of corresponding product.General test all is to utilize timer to trigger, and the trigger interval of timer does not wait to several seconds from several milliseconds, each certain telephone traffic of triggering for generating, thus simulate and actual similarly traffic scale.
The method of the control telephone traffic in the existing technology has two kinds:
First kind: calculate the transmitting time that every traffic takies according to the traffic meter of each second, with between this moment as the trigger interval of timer, each timer triggers and sends a traffic.
The shortcoming of this method is:
Because the restriction of computer hardware platforms and operating system software itself, general timer triggering precision is limited, also accurate inadequately, is example with windows operating system, and the trigger interval of timer on 10 milliseconds rank, can't reach higher precision mostly.Can't simulate the telephone traffic above 100/second like this, actual telephone traffic will be well below the value of setting.And along with the variation of computer hardware platforms and operating system software environment, the actual telephone traffic that obtains also can change, and is uncontrollable.
Second kind: set a fixing timer at interval, calculate the telephone traffic that each timer triggers needs transmission, timer once sends the telephone traffic that calculates when triggering.
The shortcoming of this method is:
Because each telephone traffic that sends must be an integer.So the result to division in general calculating rounds.Can bring certain " loss of time " like this, i.e. the actual telephone traffic of this transmission is less than the telephone traffic of accurate Calculation.So the result who obtains so also can be lower than default telephone traffic.Simultaneously, if timer is provided with at interval excessive (such as several seconds), can cause the telephone traffic skewness, this also is a defective of the method.
Summary of the invention
Technical problem to be solved by this invention overcomes in the prior art exactly controls accurate inadequately shortcoming to telephone traffic, proposes a kind of method that can accurately control telephone traffic.
Technical scheme of the present invention is:
1.1 the telephone traffic of default per second;
1.2 the time of operating system when obtaining beginning is as the time that sends for the first time;
1.3 the trigger interval of timer is set;
1.4 timer the current time of obtaining system, calculates the duration of this transmission after triggering;
1.5, calculate at this timer and trigger the telephone traffic that should produce, and send according to the default telephone traffic and the duration of this transmission;
1.6 send finish after, send the transmitting time that telephone traffic that the bar number calculates this transmission takies according to reality, be added on the accumulative total transmitting time as the time started that sends next time; Wait for next time and triggering.
Among the present invention, the telephone traffic that telephone traffic is resolved into hundred, ten and individual position is handled respectively.
In the present invention, it or not the telephone traffic that decides this triggering for generating according to default timer trigger interval, but write down " the beginning transmitting time " of this transmission by variable, telephone traffic according to definite this triggering for generating of time difference has overcome the negative effect that the timer triggering precision is brought inadequately.In each back of triggering the traffic carrying capacity time of being converted into of reality transmission is accumulated to " beginning transmitting time " the inside that next time sends simultaneously, can effectively avoids " loss of time " that produce because of computational accuracy like this.Simultaneously, this algorithm can be evenly distributed in each section transmitting time to telephone traffic as far as possible.
Description of drawings
Fig. 1 is the flow chart of first kind of telephone traffic control method of the prior art;
Fig. 2 is the flow chart of second kind of telephone traffic control method of the prior art;
Fig. 3 is the flow chart of a kind of embodiment of the present invention;
Fig. 4 is the flow chart of second kind of embodiment of the present invention.
Embodiment
Fig. 1 and Fig. 2 are methods of the prior art, and existing the introduction no longer repeated herein in background technology.
Consider the problem of computational accuracy, method of the present invention is primarily aimed at the situation of default telephone traffic between 100 and 1000.Be lower than 100 telephone traffic and just can reach effect preferably with usual way.Telephone traffic above 1000 can use the program of a plurality of employing this method to produce jointly, for example needs to produce 1600/second telephone traffic, can use two simulation programs, and each produces 800/second telephone traffic, and adding up just can meet the demands; Perhaps use 3 simulation programs, produce 500/second, 500/second and 600 s'/second telephone traffic respectively, adding up meets the demands.
In the telephone traffic of calculating this transmission, default telephone traffic is decomposed into hundred, handle for ten and individual.Such as default telephone traffic is 673/second, resolves into 600/second in the process of handling, and 70/second and 3/second are calculated respectively and send.
Below in conjunction with Fig. 3 and Fig. 4 the present invention is described in detail.Need to prove that the function settimer of flow chart the inside employing windows operating system and incident timer3event wait and represent to be provided with timer and timer trigger event, but this method is applicable to various operating systems.In the description to algorithm, the unit of time variable is a millisecond below, and the unit of telephone traffic variable is a bar, and all variablees all are integers.
Fig. 3 is the flow chart of a kind of embodiment of the present invention.Specifically may further comprise the steps:
1, the telephone traffic n that per second need send is set;
2, obtain current operation system time t
Old, the accumulative total transmitting time when sending as the first time.According to hundred, ten of n, the principle that handle respectively individual position makes t
Old1=t
Old2=t
Old3=t
OldT wherein
Old1Hundred of corresponding n, t
Old2Ten of corresponding n, t
Old3The position of corresponding n;
3, timer is set, timer trigger interval be desired value, such as 1 millisecond;
4, waiting timer triggers;
5, after timer triggers, obtain current time in system t
Now
6, calculate " the transmission duration " that this sends hundred correspondences of n: t
1=t
Now-t
Old1
7, calculate the telephone traffic m that this sends hundred correspondences of n
1=t
1/ (hundred * 100 of 1000/n);
8, initiate and finish m
1Inferior calling;
9, calculate hundred durations that expend that this sends n, and be accumulated to t
Old1,
t
Old1=t
Old1+ m
1* (hundred * 100 of 1000/n);
10, calculate " the transmission duration " that this sends ten correspondences of n: t
2=t
Now-t
Old2
11, calculate the telephone traffic m that this sends ten correspondences of n
2=t
2/ (ten * 10 of 1000/n);
12, initiate and finish m
2Inferior calling;
13, calculate ten durations that expend that this sends n, and be accumulated to t
Old2,
t
Old2=t
Old2+ m
2* (ten * 10 of 1000/n);
14, calculate corresponding " the transmission duration " in position: the t that this sends n
3=t
Now-t
Old3
15, calculate the corresponding telephone traffic m in position that this sends n
3=t
3/ (position of 1000/n);
16, initiate and finish m
3Inferior calling;
17, calculate the duration that the position is expended that this sends n, and be accumulated to t
Old3,
t
Old3=t
Old3+ m
3* (position of 1000/n);
18, returned for the 4th step.
Fig. 4 is the flow chart of another kind of embodiment of the present invention, is at improved basically embodiment embodiment illustrated in fig. 3.The improved precision control of being done that mainly is enhancing to the telephone traffic of the hundred bit digital representative of default telephone traffic.
In the embodiment shown in fig. 3, when calculating the telephone traffic that hundred bit digital should produce in this sends, at first calculating and sending time that a traffic takies is how many milliseconds (1000 milliseconds/(n hundred * 100)), send duration divided by the time that a traffic takies with this again, obtain the telephone traffic that hundred bit digital should produce in this sends.Because variable is an integer, just bringing a problem---the time that traffic of transmission of calculating takies is accurate inadequately.For example when n hundred=3 the time, calculate and send time=3 millisecond (actual is 3.33 milliseconds) that traffic takies, suppose that this sends duration=22 millisecond, the telephone traffic that calculates=7 (actual is 6---22/3.33 rounds again).So embodiment shown in Figure 3 goes back defectiveness on precision.
The way that solves is when the time that traffic of calculating transmission takies, and calculates with 10000 replacements 1000, is equivalent to the time that a traffic takies has been amplified 10 times, when so just requiring to calculate telephone traffic this is sent duration and also amplifies 10 times.For example when n hundred=3 the time, calculate and send time=33 millisecond (actual is 33.33 milliseconds) that traffic takies, suppose that this sends duration=22 millisecond, amplifying 10 times during calculating is exactly 220 milliseconds, and the telephone traffic that calculates=6 (reality also is 6---220/33.33 rounds again).So just avoided the defective of embodiment in precision control shown in Figure 3.
Sum up, in order to improve the precision control of the telephone traffic that hundred bit digital of default telephone traffic are represented, the improvement of taking when handling hundred bit digital embodiment illustrated in fig. 4 is exactly that all time variables are amplified 10 times.
Specifically may further comprise the steps:
1, the telephone traffic n that per second need send is set;
2, obtain current system time t
Old, the accumulative total transmitting time when sending as the first time.According to hundred, ten of n, the principle that handle respectively individual position makes t
Old1=10*t
Old, t
Old2=t
Old3=t
OldT wherein
Old1Hundred of corresponding n, t
Old2Ten of corresponding n, t
Old3The position of corresponding n; (, calculate t because when handling hundred bit digital, need amplify 10 times to all time variables
Old1Time standby t
OldMultiply by 10)
3, timer is set, the trigger interval of timer is a desired value, such as 1 millisecond;
4, waiting timer triggers;
5, after timer triggers, obtain current time in system t
Now
6, calculate " the transmission duration " that this sends hundred correspondences of n: t
1=10*t
Now-t
Old1(because t
Old1Ten times have been amplified, so t
NowAmplify 10 times again and t
Old1Subtract each other, the result is exactly " the transmission duration t of these hundred correspondences that send n
1" amplified 10 times)
7, calculate the telephone traffic m that this sends hundred correspondences of n
1=t
1/ (hundred * 100 of 10000/n); (replace 1000 of embodiment the inside shown in Figure 3 with 10000 here, reach time that a traffic takies amplify 10 times purpose)
8, initiate and finish m
1Inferior calling;
9, calculate hundred durations that expend that this sends n, and be accumulated to t
Old1
t
Old1=t
Old1+ m
1* (hundred * 100 of 10000/n); (replace 1000 of embodiment the inside shown in Figure 3 with 10000 here, reach time that a traffic takies amplify 10 times purpose)
10, calculate " the transmission duration " that this sends ten correspondences of n: t
2=t
Now-t
Old2
11, calculate the telephone traffic m that this sends ten correspondences of n
2=t
2/ (ten * 10 of 1000/n);
12, initiate and finish m
2Inferior calling;
13, calculate ten durations that expend that this sends n, and be accumulated to t
Old2
t
Old2=t
Old2+ m
2* (ten * 10 of 1000/n);
14, calculate corresponding " the transmission duration " in position: the t that this sends n
3=t
Now-t
Old3
15, calculate the corresponding telephone traffic m in position that this sends n
3=t
3/ (position of 1000/n);
16, initiate and finish m
3Inferior calling;
17, calculate the duration that the position is expended that this sends n, and be accumulated to t
Old3,
t
Old3=t
Old3+ m
3* (position of 1000/n);
18, returned for the 4th step.
Claims (6)
1, the method for control telephone traffic in the test of simulation Bulk Call may further comprise the steps:
1.1 the telephone traffic of default per second;
1.2 the time of operating system when obtaining beginning is as the time that sends for the first time;
1.3 the trigger interval of timer is set;
1.4 timer the current time of obtaining system, calculates the duration of this transmission after triggering;
1.5, calculate at this timer and trigger the telephone traffic that should produce, and send according to the default telephone traffic and the duration of this transmission;
1.6 send finish after, send the transmitting time that telephone traffic that the bar number calculates this transmission takies according to reality, be added on the accumulative total transmitting time as the time started that sends next time; Wait for next time and triggering.
2, claim 1 described in simulation Bulk Call test the method for control telephone traffic, it is characterized in that the telephone traffic that telephone traffic is resolved into hundred, ten and individual position is handled respectively.
3, the described method of in the test of simulation Bulk Call, controlling telephone traffic of claim 2, it is characterized in that, the method that hundred telephone traffic is handled is, calculate the duration of hundred correspondences of this transmission earlier, calculate the telephone traffic of hundred correspondences of this transmission again, make a call then, after calling finishes, calculate this and send hundred concluding times, and be added to hundred accumulative total transmitting times, as the time started that sends next time.
4, the described method of controlling telephone traffic in the test of simulation Bulk Call of claim 3 is characterized in that, when the telephone traffic of calculating hundred, the time that a traffic takies is amplified 10 times, simultaneously this is sent duration and also amplifies 10 times.
5, the described method of in the test of simulation Bulk Call, controlling telephone traffic of claim 2, it is characterized in that, the method that ten telephone traffic is handled is, calculate the duration of ten correspondences of this transmission earlier, calculate the telephone traffic of ten correspondences of this transmission again, make a call then, after calling finishes, calculate this and send ten concluding times, and be added to ten accumulative total transmitting times, as the time started that sends next time.
6, the described method of in the test of simulation Bulk Call, controlling telephone traffic of claim 2, it is characterized in that, the method that the telephone traffic of individual position is handled is, calculate a corresponding duration in position of this transmission earlier, calculate a corresponding telephone traffic in position of this transmission again, make a call then, after calling finishes, calculate this and send a position concluding time, and be added to a position accumulative total transmitting time, as the time started that sends next time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100656464A CN100486270C (en) | 2004-11-04 | 2004-11-04 | Method for controlling traffic in simulation of large traffic test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100656464A CN100486270C (en) | 2004-11-04 | 2004-11-04 | Method for controlling traffic in simulation of large traffic test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1770797A true CN1770797A (en) | 2006-05-10 |
CN100486270C CN100486270C (en) | 2009-05-06 |
Family
ID=36751774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100656464A Expired - Fee Related CN100486270C (en) | 2004-11-04 | 2004-11-04 | Method for controlling traffic in simulation of large traffic test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100486270C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101400003B (en) * | 2007-09-25 | 2010-09-29 | 中兴通讯股份有限公司 | Large traffic volume test system and method for intelligent network platform |
CN102395150A (en) * | 2011-06-28 | 2012-03-28 | 中兴通讯股份有限公司 | Packet data service paging telephone traffic testing method and device |
CN101389107B (en) * | 2007-09-10 | 2012-04-18 | 中兴通讯股份有限公司 | Large traffic simulation test system and method |
CN101056333B (en) * | 2007-06-01 | 2012-09-05 | 中兴通讯股份有限公司 | Large call traffic test device and test method used for the PHS cordless service platform |
-
2004
- 2004-11-04 CN CNB2004100656464A patent/CN100486270C/en not_active Expired - Fee Related
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056333B (en) * | 2007-06-01 | 2012-09-05 | 中兴通讯股份有限公司 | Large call traffic test device and test method used for the PHS cordless service platform |
CN101389107B (en) * | 2007-09-10 | 2012-04-18 | 中兴通讯股份有限公司 | Large traffic simulation test system and method |
CN101400003B (en) * | 2007-09-25 | 2010-09-29 | 中兴通讯股份有限公司 | Large traffic volume test system and method for intelligent network platform |
CN102395150A (en) * | 2011-06-28 | 2012-03-28 | 中兴通讯股份有限公司 | Packet data service paging telephone traffic testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN100486270C (en) | 2009-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1097412C (en) | Management method for extra expenses channel in mobile telecommunication system | |
CN1509094A (en) | Downstream data-pack dispatching system and method in mobile communication system | |
EP1074908A3 (en) | Disk time-sharing apparatus and method | |
CN101079884A (en) | A method, system and device for client login to service server | |
CN1169313C (en) | Mainframe for blue tooth communication and method for setting up beacon channel | |
CN1833422A (en) | Packet communication device | |
CN1770797A (en) | Method for controlling traffic in simulation of large traffic test | |
CN1728626A (en) | Method and device for detecting error code in wireless digital communication system | |
CN1816974A (en) | Method for providing state information of a mobile station in a mobile communication system | |
RU2020112245A (en) | TRANSMISSION DEVICE, TRANSMISSION METHOD AND PROGRAM | |
CN1835389A (en) | Method able to eliminate frequency error of digital controlled oscillator and phase accumulator | |
CN1802303A (en) | Group management control device of elevators | |
EP3934205B1 (en) | Ai training network and method | |
CN1607767A (en) | Flow-control method based on network processor | |
CN1855824A (en) | Method and apparatus for streaming data | |
RU2009122474A (en) | METHOD AND DEVICE FOR DATA CODING IN A COMMUNICATION NETWORK | |
CN1556654A (en) | Timing and control method of software timer | |
US11782752B1 (en) | System and method for assigning tasks | |
CN101039216A (en) | Distributed system timing method, apparatus and system | |
CN1394002A (en) | Wireless communication system, wireless communication method, wireless relay apparatus and wireless terminal | |
CN1859268A (en) | Method and system for backward-forward analytic message at background | |
CN101064615A (en) | Role based charging method and system in push-to-talk service | |
CN1787654A (en) | Method for controlling time regulating frame flow | |
CN1838064A (en) | Structuring a staggered job termination pattern | |
CN1223226C (en) | Control and processing method for access probing |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090506 Termination date: 20131104 |