CN1984119B - Method for controlling flow by time-division technology - Google Patents

Method for controlling flow by time-division technology Download PDF

Info

Publication number
CN1984119B
CN1984119B CN2005101206784A CN200510120678A CN1984119B CN 1984119 B CN1984119 B CN 1984119B CN 2005101206784 A CN2005101206784 A CN 2005101206784A CN 200510120678 A CN200510120678 A CN 200510120678A CN 1984119 B CN1984119 B CN 1984119B
Authority
CN
China
Prior art keywords
acquisition
data
cpu
actual
cycle
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
CN2005101206784A
Other languages
Chinese (zh)
Other versions
CN1984119A (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 CN2005101206784A priority Critical patent/CN1984119B/en
Publication of CN1984119A publication Critical patent/CN1984119A/en
Application granted granted Critical
Publication of CN1984119B publication Critical patent/CN1984119B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Of Solid Wastes (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a flow control method using time-division technology, comprising the following steps: calculate CPU collection and handling capacity in the system according to the system CPU handling capacity and upper limit of CPU data collection occupancy rate; according to the system period to collect maximum data size, the minimum data size is calculated that system period collected maximum data size divide the system CPU collection and handling capacity, the actual system collecting period is no less than minimum data size; calculate the number of the minimum time slice according to the actual system collecting period and the actual collected data size, and handling capacity of each time slice is not more than CPU collection and handling capabilities; start the collecting timer according to the actual system collecting cycle by the times not less than the minimum number of time slice. The method of the invention fully uses the CPU resources, reduce the impact of system stability, and effectively achieve the purpose of flow control by dividing the data processing into a number of sub-sections in one periodic time.

Description

A kind of method of utilizing time division technique to realize flow control
Technical field
The present invention relates to a kind of flow control methods, in particular a kind of method of utilizing time division technique to realize flow control.
Background technology
In such as the CDMA mobile communcations system, need to gather various types of system datas, for uses such as debugging, analysis, forms.Several key characters of this class data acquisition are: data volume greatly, periodically, real-time do not require strong etc.Common collecting method is to arrive the acquisition time point, system is the disposable data acquisition unit that reports of data that collects, or data acquisition unit disposable transmission acquisition when putting the time of advent, when if the data volume of system acquisition is bigger like this, the CPU occupation rate of system can present periodic crest, as shown in Figure 1, and crest is narrower, just in one-period, only taken a bit of time, but in this short time, the CPU treating capacity is very big, and from the whole time cycle, CPU is not fully used, and the stability of system has been caused very big impact.
Need the data of gathering a lot of in cdma system, under limited CPU disposal ability, keep the stability of system, effectively the flow control of realization system avoids system because of big data quantity occurring, causes CPU to handle overload.If can not effectively handle above-mentioned flow control problem well, will there be great hidden danger in the stability of system.
In other similar data acquisition systems, there is such problem too.Therefore, prior art exists needs to improve and the development part.
Summary of the invention
At the problem that exists in the above-mentioned data acquisition, the purpose of this invention is to provide a kind of method of utilizing time division technique to realize flow control, so that flow is realized control, guarantee the stability of system.
Technical scheme of the present invention is as follows:
A kind of method of utilizing time division technique to realize flow control, it may further comprise the steps:
A, according to the system CPU disposal ability and the CPU image data occupancy upper limit, the acquisition process ability of computing system CPU;
B, gather maximum amount of data according to system cycle, calculate the minimum data the acquisition granularity and equal system cycle and gather the acquisition process ability of maximum amount of data divided by system CPU, system's actual acquisition cycle is not less than the minimum data the acquisition granularity; Described account form is: the minimum timeslice number equals actual acquired data amount in system's actual acquisition cycle divided by CPU acquisition process ability;
C, according to described system actual acquisition cycle and actual acquired data amount, calculate the minimum timeslice number, and every timeslice disposal ability is not more than CPU acquisition process ability;
D, start to gather timer, carry out data acquisition by the umber of the minimum timeslice number that is not less than the actual acquisition cycle by system's actual acquisition cycle.
Described method, wherein, described flow control realizes in system equipment that specifically it comprises step:
A1, data acquisition unit are set up acquisition tasks, and system's actual acquisition cycle is set;
B1, described data acquisition unit send acquisition to system equipment;
C1, described system equipment are provided with system's actual acquisition cycle according to acquisition, carry out image data by the method for claim 1;
D1, when arriving image data and report time point, described system equipment is divided into some little timeslices to collection period, and data that collect are divided equally each timeslice reports;
E1, described data acquisition unit receive data.
Described method, wherein, described flow control realizes in data acquisition unit that specifically it comprises step:
A2, data acquisition unit are set up acquisition tasks, and system's actual acquisition cycle is set, the start-up period timer;
B2, when arriving acquisition time point, described data acquisition unit is divided into some little timeslices to system's actual acquisition cycle, and acquisition is divided on each timeslice equally the transmission acquisition to system equipment;
C2, described system equipment carry out image data by the method for claim 1, and return data is given described data acquisition unit.
A kind of method of utilizing time division technique to realize flow control provided by the present invention, by data processing is divided into the plurality of sub section in time one-period, made full use of cpu resource, make the use of whole C PU relatively more balanced, gently, periodic crest can not occur, eliminate the hidden danger of system, reduced impact, thereby effectively realized the purpose of flow control the stability of a system.
Description of drawings
Fig. 1 gathers CPU for the no flow control of prior art and takies schematic diagram;
Fig. 2 gathers CPU for the time-division flow control of the inventive method and takies schematic diagram;
Fig. 3 is that time division technique is realized the flow control flow chart in the cdma system of the inventive method;
Fig. 4 gathers CPU for the minimum timeslice flow control of the inventive method and takies schematic diagram.
Embodiment
Below in conjunction with accompanying drawing, will carry out comparatively detailed explanation to each preferred embodiment of the present invention.
The of the present invention utilization in the method that time division technique realizes flow control, as follows with flow control process description in cdma system:
The CDMA data acquisition equipment of the inventive method is made of data acquisition unit and system equipment two parts, and the data acquisition unit here is Operation ﹠ Maintenance System in CDMA, and system equipment is a communication network element.According to the difference of acquisition mode, flow control can realize control by data acquisition unit or system equipment, and it realizes that principle all is the same.Control method of the present invention comprises following dual mode:
Mode one: realize control by system equipment.
Its basic process is: data acquisition unit is set up acquisition tasks, and data collection cycle is set; Collector sends acquisition to system equipment; System equipment is provided with collection period according to acquisition tasks, image data; When the arrival image data reports time point, system equipment is divided into some little timeslices to collection period, then the data that collect are divided equally each timeslice and report, the granularity of timeslice can be calculated according to the normal process ability of CPU, as message bar number/unit interval; Data acquisition unit receives data.
Mode two: realize control by data acquisition unit.
Its basic process is: data acquisition unit is set up acquisition tasks, and data collection cycle is set, the start-up period timer; When arriving acquisition time point, data acquisition unit is divided into some little timeslices to collection period, acquisition is divided equally on each timeslice to send acquisition then; The system equipment image data, return data.
The flow control specific implementation process of the inventive method as shown in Figure 3, it comprises the steps:
A, according to the system CPU disposal ability and the CPU image data occupancy upper limit, computing system CPU acquisition process ability.As the system CPU disposal ability is 1000 message/seconds, and CPU gathers on the occupancy and is limited to 50%, and CPU acquisition process ability is 500/second so;
B, gather maximum amount of data, calculate the minimum data the acquisition granularity according to system cycle.For example the each image data amount of system is 10000, and minimum the acquisition granularity is 10000/500=20 second; Be that collection period can not be less than 20 seconds;
C, according to system's actual acquisition cycle (being not less than the minimum data the acquisition granularity) and actual acquired data amount, calculate the minimum timeslice number, and every timeslice disposal ability is not more than CPU acquisition process ability, CPU when being illustrated in figure 4 as the minimum timeslice collection takies diagram, as to set collection period be 1 minute (greater than 20 seconds), the cycle actual acquired data is 6000, is 500/second as CPU acquisition process ability, and then minimum timeslice is 6000/500=12; Every timeslice is handled 500, if timeslice less than 12, then the disposal ability of every timeslice will be above 500, will cause cpu busy percentage to rise and transship;
Timer is gathered in D, the actual acquisition cycle startup of pressing, and carries out data acquisition by being not less than the minimum timeslice number.
By the time-division processing method of the invention described above, can effectively realize flow control.Be the step of different data acquisition mode specific implementation flow control below:
Mode one: the step that is realized control by system equipment is:
1, described data acquisition unit is set up acquisition tasks, the setting data collection period;
2, data acquisition unit sends acquisition tasks to system equipment;
3, described system equipment is according to acquisition tasks, collection period, and the image data amount is calculated minimum timeslice, determines the timeslice number;
4, system equipment image data;
When 5, the arrival data reported time point, system equipment was divided the data that collect equally each timeslice and is reported;
6, described data acquisition unit receives data;
7, the described step 4 of circulation realizes flow control to 6, finishes data acquisition;
8, described data acquisition unit sends and stops acquisition tasks to system equipment, and system equipment stops data acquisition and reports.
Mode two: the step that realizes control by described data acquisition unit:
1. described data acquisition unit is set up acquisition tasks, the setting data collection period;
2. data acquisition unit is according to acquisition tasks, collection period, and the image data amount is calculated minimum timeslice, determines the timeslice number;
3. when arriving data acquisition time point, collector is divided acquisition equally each timeslice and is sent to system equipment;
4. system equipment image data and reporting;
5. collector receives data;
6. circulate described step 3 to 5, realize flow control, finish data acquisition;
7. data acquisition unit stops acquisition tasks.
The inventive method applies in the systems such as IS95, CDMA1X, CDMA2000, and reliable and stable in above each system, and has good transplantability.
The inventive method is by above-mentioned flow control process, data processing is divided into the plurality of sub section in time one-period, utilized cpu resource more fully, make the use of whole C PU relatively more balanced, mild, periodic crest can not occur, effect has as shown in Figure 2 been eliminated the hidden danger of system, reduced impact, thereby effectively realized the purpose of flow control the stability of a system.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those skilled in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (3)

1. method of utilizing time division technique to realize flow control, it may further comprise the steps:
A, according to the system CPU disposal ability and the CPU image data occupancy upper limit, the acquisition process ability of computing system CPU;
B, gather maximum amount of data according to system cycle, calculate the minimum data the acquisition granularity and equal system cycle and gather the acquisition process ability of maximum amount of data divided by system CPU, system's actual acquisition cycle is not less than the minimum data the acquisition granularity;
C, according to described system actual acquisition cycle and actual acquired data amount, calculate the minimum timeslice number, and every timeslice disposal ability is not more than CPU acquisition process ability; Described account form is: the minimum timeslice number equals actual acquired data amount in system's actual acquisition cycle divided by CPU acquisition process ability;
D, start to gather timer, carry out data acquisition by the umber of the minimum timeslice number that is not less than the actual acquisition cycle by system's actual acquisition cycle.
2. method according to claim 1 is characterized in that, described flow control realizes in system equipment that specifically it comprises step:
A1, data acquisition unit are set up acquisition tasks, and system's actual acquisition cycle is set;
B1, described data acquisition unit send acquisition to system equipment;
C1, described system equipment are provided with system's actual acquisition cycle according to acquisition, carry out image data by the method for claim 1;
D1, when arriving image data and report time point, described system equipment is divided into some little timeslices to collection period, and data that collect are divided equally each timeslice reports;
E1, described data acquisition unit receive data.
3. method according to claim 1 is characterized in that, described flow control realizes in data acquisition unit that specifically it comprises step:
A2, data acquisition unit are set up acquisition tasks, and system's actual acquisition cycle is set, the start-up period timer;
B2, when arriving acquisition time point, described data acquisition unit is divided into some little timeslices to system's actual acquisition cycle, and acquisition is divided on each timeslice equally the transmission acquisition to system equipment;
C2, described system equipment carry out image data by the method for claim 1, and return data is given described data acquisition unit.
CN2005101206784A 2005-12-13 2005-12-13 Method for controlling flow by time-division technology Expired - Fee Related CN1984119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005101206784A CN1984119B (en) 2005-12-13 2005-12-13 Method for controlling flow by time-division technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005101206784A CN1984119B (en) 2005-12-13 2005-12-13 Method for controlling flow by time-division technology

Publications (2)

Publication Number Publication Date
CN1984119A CN1984119A (en) 2007-06-20
CN1984119B true CN1984119B (en) 2010-06-23

Family

ID=38166352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005101206784A Expired - Fee Related CN1984119B (en) 2005-12-13 2005-12-13 Method for controlling flow by time-division technology

Country Status (1)

Country Link
CN (1) CN1984119B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109560858A (en) * 2018-12-06 2019-04-02 西南电子技术研究所(中国电子科技集团公司第十研究所) High-speed real data acquisition transmission module

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958813B (en) * 2010-09-14 2014-06-04 中兴通讯股份有限公司 Method for delaying data acquisition and device thereof
CN105791144A (en) * 2014-12-19 2016-07-20 中兴通讯股份有限公司 Method and apparatus for sharing link traffic
CN107993172B (en) * 2016-11-01 2021-08-10 北京师范大学 Urban ecological identification system
CN112583727B (en) * 2019-09-29 2023-03-31 成都鼎桥通信技术有限公司 Data acquisition method and equipment
CN112379983A (en) * 2020-11-13 2021-02-19 天合光能股份有限公司 Embedded real-time system load balancing task scheduling algorithm based on time slices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2179986Y (en) * 1993-12-11 1994-10-19 西安交通大学 High-speed simultaneous data-collecting card
CN1545259A (en) * 2003-11-13 2004-11-10 中兴通讯股份有限公司 A method for performance measurement data acquisition of embedded distributed system
CN1630250A (en) * 2003-12-16 2005-06-22 华为技术有限公司 Method of automatic analysis of communication network busy performance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2179986Y (en) * 1993-12-11 1994-10-19 西安交通大学 High-speed simultaneous data-collecting card
CN1545259A (en) * 2003-11-13 2004-11-10 中兴通讯股份有限公司 A method for performance measurement data acquisition of embedded distributed system
CN1630250A (en) * 2003-12-16 2005-06-22 华为技术有限公司 Method of automatic analysis of communication network busy performance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2003-273878A 2003.09.26
JP特开2004-199670A 2004.07.15

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109560858A (en) * 2018-12-06 2019-04-02 西南电子技术研究所(中国电子科技集团公司第十研究所) High-speed real data acquisition transmission module

Also Published As

Publication number Publication date
CN1984119A (en) 2007-06-20

Similar Documents

Publication Publication Date Title
CN1984119B (en) Method for controlling flow by time-division technology
US20060277295A1 (en) Monitoring system and monitoring method
CN101345652B (en) Data acquisition method and data acquisition equipment
CN101547150B (en) method and device for scheduling data communication input port
IL182824A0 (en) Method for managing resources in a platform for the telecommunication service and/or network management, corresponding platform and computer program product thereof
CN102970244A (en) Network message processing method of multi-CPU (Central Processing Unit) inter-core load balance
CN101321090A (en) Statistical method and device for performance data
CN102402459B (en) Method and device for summarizing performance data of network management system
CN108770017B (en) Dynamic equalization method and system for wireless resources
CN1878384A (en) Network element failure detecting method
CN102929773A (en) Information collection method and device
CN104158699A (en) Data acquisition method based on priority and segmentation
CN106357473B (en) Distributed multi-microcomputer, control method and control device
CN101883015A (en) Method and system for filtering construction alarms
CN109831316A (en) Massive logs real-time analyzer, real-time analysis method and readable storage medium storing program for executing
CN107479966B (en) Signaling acquisition method based on multi-core CPU
CN103729417B (en) A kind of method and device of data scanning
CN103607731A (en) Method and device for processing measurement reports
CN102256367A (en) Scheduling method and device for reducing inter-cell interference
CN101499935B (en) Alarm processing method for WiMAX base station
CN103179285B (en) A kind of acquisition method of CDR file and device
CN101631330B (en) Method and device for collecting and processing performance data
CN100373871C (en) A method of data observation applied to network management system
CN113676790B (en) Acquisition scheduling method and device for low-voltage centralized meter reading equipment, concentrator and medium
CN102655480B (en) Similar mail treatment system and method

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

Termination date: 20141213

EXPY Termination of patent right or utility model