[go: up one dir, main page]

CN1275429C - A method for performance measurement data acquisition of embedded distributed system - Google Patents

A method for performance measurement data acquisition of embedded distributed system Download PDF

Info

Publication number
CN1275429C
CN1275429C CN 200310113606 CN200310113606A CN1275429C CN 1275429 C CN1275429 C CN 1275429C CN 200310113606 CN200310113606 CN 200310113606 CN 200310113606 A CN200310113606 A CN 200310113606A CN 1275429 C CN1275429 C CN 1275429C
Authority
CN
China
Prior art keywords
processor
measurement
data
measurement data
main processor
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 - Lifetime
Application number
CN 200310113606
Other languages
Chinese (zh)
Other versions
CN1545259A (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 CN 200310113606 priority Critical patent/CN1275429C/en
Publication of CN1545259A publication Critical patent/CN1545259A/en
Application granted granted Critical
Publication of CN1275429C publication Critical patent/CN1275429C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • General Factory Administration (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

本发明公开了一种嵌入式分布系统的性能测量数据采集方法,包括以下处理步骤:第一步:主从处理机初始化;第二步:主处理机开始采集性能数据并分别向各从处理机发送采集命令;第三步:各从处理机采集性能数据并组包向主处理机发送;第四步:主处理机备份本周期的所有采样数据,并将统一缓冲区清零,开始下一周期的测量计数;第五步:若主处理机上的向后台上报定时器T3超时,则主处理机对T3周期内的所有采样数据进行统计计算后发送到后台,再转到第二步,否则直接转到第二步。采用本发明所述方法,与现有技术相比,提高了嵌入式分布系统的稳定性、数据传输的可靠性,降低了对其他业务模块的影响。

Figure 200310113606

The invention discloses a method for collecting performance measurement data of an embedded distributed system, which includes the following processing steps: the first step: master-slave processor initialization; second step: the master processor starts to collect performance data and sends data to each slave processor Send the collection command; Step 3: Each slave processor collects performance data and sends it to the master processor; Step 4: The master processor backs up all the sampling data in this cycle, clears the unified buffer, and starts the next step. Periodic measurement and counting; the fifth step: if the timer T3 on the main processor is overtime to the background report, then the main processor performs statistical calculations on all sampling data in the T3 period and sends them to the background, and then turns to the second step, otherwise Go directly to step two. By adopting the method of the invention, compared with the prior art, the stability of the embedded distribution system and the reliability of data transmission are improved, and the influence on other business modules is reduced.

Figure 200310113606

Description

一种嵌入式分布系统的性能测量数据采集方法A performance measurement data acquisition method for an embedded distributed system

技术领域technical field

本发明涉及一种嵌入式分布系统性能测量数据采集方法,属于通讯领域。The invention relates to a method for collecting performance measurement data of an embedded distributed system, which belongs to the field of communication.

背景技术Background technique

在通讯领域,特别是嵌入式分布系统,性能数据是反映系统业务量、业务流程成功率的依据,也是评价系统可靠性和稳定性的一个重要指标,同时定位系统中出现的故障也起着非常重要的作用,因而在系统中对各项性能指标进行测量统计就必不可少了。一种好的数据采集方法尤为重要,因为性能测量的采集会对整个业务系统造成一定的影响。由于性能指标来自各个业务模块,而业务模块可能分布在主处理机和从处理机上,因而性能测量包括主处理机和各从处理机业务模块的数据收集和上报。目前嵌入式分布系统的性能测量数据采集方法是这样的:In the field of communication, especially embedded distributed systems, performance data is the basis to reflect the system business volume and the success rate of business processes, and is also an important indicator for evaluating system reliability and stability. At the same time, faults in the positioning system also play a very important role Therefore, it is essential to measure and count various performance indicators in the system. A good data collection method is particularly important, because the collection of performance measurement will have a certain impact on the entire business system. Since the performance indicators come from various business modules, and the business modules may be distributed on the main processor and the slave processors, the performance measurement includes the data collection and reporting of the master processor and the slave processor business modules. The current performance measurement data collection method for embedded distributed systems is as follows:

1、主处理机上性能测量模块设置周期采集定时器T2,并开设统一性能测量缓冲区,主处理机上业务模块写统一的性能测量缓冲区;各从处理机从一开始就进行各计数器的计数。1. The performance measurement module on the main processor sets the periodic acquisition timer T2, and sets up a unified performance measurement buffer, and the business module on the main processor writes a unified performance measurement buffer; each slave processor counts each counter from the beginning.

2、当主处理机收到后台的性能测量命令后,设置向后台上报定时器T3(T3是T2的整数倍),并且在T2超时向各从处理机发送性能测量上报命令(包含被测列表),重设定时器T2。2. After the main processor receives the performance measurement command from the background, it sets the reporting timer T3 to the background (T3 is an integer multiple of T2), and sends a performance measurement reporting command (including the list to be tested) to each slave processor when T2 times out , reset timer T2.

3、各从处理机收到性能测量上报命令后,以被测对象为单位,根据测量列表向主处理机逐一回复所有被测对象测量结果,并对从处理机上的计数器清零,开始下一周期的计数器计数。3. After receiving the performance measurement reporting command, each slave processor will reply to the master processor one by one with the measurement results of all measured objects according to the measurement list, and reset the counter on the slave processor to start the next step. Period counter counts.

4、当主处理机收到各从处理机的应答后,记录结果,并在T2超时时再次发送测量命令到相应各从处理机,开始下一周期的数据采集。4. When the main processor receives the responses from the slave processors, record the results, and send the measurement command to the corresponding slave processors again when T2 times out, and start the next cycle of data collection.

5、当T3超时,主处理机上性能测量模块向后台上报T3时间内的采样结果。5. When T3 times out, the performance measurement module on the main processor reports the sampling results within T3 to the background.

6、当主处理机上性能测量模块收到后台的测量停止命令后,杀死定时器T3,并清除测量列表。6. When the performance measurement module on the main processor receives the background measurement stop command, it kills the timer T3 and clears the measurement list.

上述方法在大业务量的情况下存在以下缺点:The above method has the following disadvantages in the case of a large business volume:

1、大大降低了系统稳定性。这个主要体现在从处理机和主处理机的数据传输上(主从处理机通讯可通过T网或以太网),比如若测量对象为小区,每个从处理机最大能处理80个小区,共配有48个从处理机(最大业务情况),由于从处理机测量数据上报消息统一由主处理机同时发送,导致各从处理机几乎在同一时间上报数据,这样主处理机将每次连续接收到80×48=3840个消息(即测量数据)。对负荷要求很高的主处理机来说,短时间处理这么多数据势必是雪上加霜,导致系统崩溃。1. Greatly reduced system stability. This is mainly reflected in the data transmission between the slave processor and the master processor (the communication between the master and slave processors can be through T network or Ethernet). Equipped with 48 slave processors (maximum business conditions), since the measurement data reporting messages of the slave processors are uniformly sent by the master processor at the same time, each slave processor reports data almost at the same time, so that the master processor will receive data continuously each time Up to 80*48=3840 messages (ie measurement data). For the main processor with high load requirements, processing so much data in a short time is bound to make things worse and cause the system to crash.

2、降低业务处理速率。嵌入式环境下的一个重要特点是实时,而且速率是用户非常关心的问题,因而各从处理机的处理速率对整个分布式系统的速率起着决定性的作用。目前从处理机的性能测量上报工作是由从处理机上的业务处理模块完成的,当测量对象很多的时候,势必降低各从处理机业务处理能力,从而影响分布式系统的速率。2. Reduce the business processing rate. An important feature in the embedded environment is real-time, and the speed is a matter of great concern to users, so the processing speed of each slave processor plays a decisive role in the speed of the entire distributed system. At present, the performance measurement and reporting of slave processors is done by the business processing modules on the slave processors. When there are many measurement objects, the business processing capability of each slave processor is bound to be reduced, thereby affecting the speed of the distributed system.

3、传输可靠性差。在大业务的情况下,即使主处理机没有崩溃,频繁的发包也会使得传输过程中极易丢包,使得主处理机接收的数据(包括业务数据)不可靠。3. Poor transmission reliability. In the case of a large business, even if the main processor does not crash, frequent packet sending will make packet loss very easy during transmission, making the data (including business data) received by the main processor unreliable.

发明内容Contents of the invention

本发明提出了一种嵌入式分布系统的性能测量数据采集方法,克服了现有技术中影响系统稳定性的缺点,解决现有技术中存在的影响业务处理速率和测量数据不可靠的问题。The invention proposes a method for collecting performance measurement data of an embedded distributed system, which overcomes the shortcomings affecting system stability in the prior art, and solves the problems in the prior art that affect the business processing rate and unreliable measurement data.

本发明所述嵌入式分布系统的性能测量数据采集方法包括以下处理步骤:The performance measurement data acquisition method of the embedded distributed system of the present invention comprises the following processing steps:

第一步:主从处理机初始化;主处理机开设统一缓存区,并开始主处理机上的测量计数,直接写统一缓存;从处理机增加测量数据上报进程,并开始从处理机上的测量计数,该进程优先级低。Step 1: Master-slave processor initialization; the master processor opens a unified buffer area, and starts the measurement and counting on the master processor, and directly writes the unified cache; the slave processor increases the measurement data reporting process, and starts the measurement and counting on the slave processor, The process has low priority.

第二步:主处理机开始统计并向从处理机发送采集命令;Step 2: The master processor starts statistics and sends collection commands to the slave processor;

第三步:从处理机采集性能数据并组包发送;Step 3: Collect performance data from the processor and send it in a package;

第四步:主处理机备份本周期采集数据。当主处理机上的周期记录定时器T2超时,主处理机记录本周期数据采集结果(包括主处理机业务模块采集结果和从处理机上报结果),并将统一缓冲区清零,开始下一测量周期的计数;Step 4: The main processor backs up the data collected in this period. When the periodic recording timer T2 on the main processor expires, the main processor records the data collection results of this cycle (including the collection results of the main processor business module and the results reported by the slave processor), and clears the unified buffer to start the next measurement cycle count of

第五步:若主处理机上的向后台上报定时器T3超时,则主处理机对T3周期内的T3/T2次采样结果进行统计计算后发送到后台,再转到第二步,否则直接转到第二步(即重复第二、三、四步)。Step 5: If the timer T3 reporting to the background on the main processor is overtime, the main processor will perform statistical calculations on the T3/T2 sampling results within the T3 period and send them to the background, and then go to the second step, otherwise go directly to Go to the second step (that is, repeat the second, third, and fourth steps).

第六步:当主处理机收到后台停止测量命令时,清空相应测量列表,并清除周期采集定时器T1、周期记录定时器T2以及向后台上报周期T3,不再进行测量数据采集工作。Step 6: When the main processor receives the background stop measurement command, it clears the corresponding measurement list, clears the periodic collection timer T1, the periodic recording timer T2 and the reporting period T3 to the background, and no longer collects measurement data.

其中第二步包括下列步骤:Wherein the second step includes the following steps:

(1)开始主处理机上业务模块的测量计数。由于统计各计数器值时直接写统一缓冲区,不需专门的消息触发。(1) Start the measurement and counting of the service modules on the main processor. Since the unified buffer is directly written when counting the values of each counter, no special message trigger is required.

(2)主处理机设置周期采集定时器T1和周期记录定时器T2(T1<T2)。(2) The main processor sets a periodic acquisition timer T1 and a periodic recording timer T2 (T1<T2).

(3)主处理机上性能测量模块收到后台的测量命令(性能测量列表包含要收集的待测对象)后,开始设置向后台上报定时器T3(T3是T2整数倍)。(3) After the performance measurement module on the main processor receives the measurement command from the background (the performance measurement list contains the objects to be measured to be collected), it starts to set the reporting timer T3 to the background (T3 is an integer multiple of T2).

(4)当周期采集定时器T1超时,主处理机上性能测量模块根据测量列表向相应从处理机发送测量数据上报命令,多条命令之间有延时t1。(4) When the periodic acquisition timer T1 expires, the performance measurement module on the master processor sends a measurement data reporting command to the corresponding slave processor according to the measurement list, and there is a delay t1 between multiple commands.

其中第三步包括下列步骤:Wherein the third step includes the following steps:

(1)从处理机上业务进程统计各自计数器。(1) Count the respective counters from the business process on the processor.

(2)从处理机测量上报进程收集被测对象的测量数据。(2) Collect the measurement data of the measured object from the processor measurement reporting process.

(3)从处理机测量上报进程备份本周期数据,并开始下一周期的统计。(3) Backup the data of this period from the measurement and reporting process of the processor, and start the statistics of the next period.

(4)从处理机测量数据上报进程根据测量列表、每个被测对象数据的大小和所属主处理机以及网络通讯数据包大小的限制,对备份测量数据分类,将多个被测对象组成一包。(4) The measurement data reporting process of the slave processor classifies the backup measurement data according to the measurement list, the size of each measured object data and the size of the master processor and network communication data packet, and forms multiple measured objects into one Bag.

(5)从处理机测量数据上报进程发送各包数据到主处理机,包与包之间有一定延时t2。(5) The measurement data reporting process of the slave processor sends each packet of data to the main processor, and there is a certain delay t2 between packets.

(6)主处理机性能测量模块收到数据包后回一确认消息,从处理机根据确认消息置接收成功位图。(6) The performance measurement module of the master processor returns a confirmation message after receiving the data packet, and the slave processor sets the reception success bitmap according to the confirmation message.

(7)从处理机测量数据上报进程发送完所有组好的数据包后设一重发定时器T4。(7) Set a retransmission timer T4 after sending all the assembled data packets from the measurement data reporting process of the processor.

(8)重发定时器T4超时,则根据接收成功位图(即每包的确认消息)决定是否对相应包重发一次。(8) When the retransmission timer T4 expires, it is decided whether to retransmit the corresponding packet according to the received success bitmap (that is, the confirmation message of each packet).

T1、T2、T3为主处理机上的定时器,T4为从处理机上的定时器。上述第三步必须在(T2-T1-t1×n)秒内完成,其中n为从处理机的个数,因而要求(t2×最大可能包数)×2+T4+t1×n<(T2-T1)。另外,对一些无需后台测量命令的基本测量项,性能测量方法与上述方法类似,只是主处理机性能测量模块向所有有业务数据的从处理机发送测量命令,而不是根据测量任务列表。T1, T2, T3 are timers on the master processor, and T4 is a timer on the slave processor. The third step above must be completed within (T2-T1-t1×n) seconds, where n is the number of slave processors, thus requiring (t2×maximum possible number of packets)×2+T4+t1×n<(T2 -T1). In addition, for some basic measurement items that do not require background measurement commands, the performance measurement method is similar to the above method, except that the performance measurement module of the master processor sends measurement commands to all slave processors that have business data, instead of according to the measurement task list.

使用本发明的方法,有以下优点:Using the method of the present invention has the following advantages:

1、降低了从处理机上性能测量对其他业务模块的影响。从处理机上增加了一个进程,优先级较低,专门用于测量数据的上报,因而减少了从处理机业务处理模块的负担,提高了从处理机业务处理能力,有利于提高分布式系统的业务速率。1. Reduce the impact of performance measurement on the processor on other business modules. A process is added to the slave processor, which has a lower priority and is specially used for reporting measurement data, thus reducing the burden on the slave processor business processing module, improving the slave processor business processing capability, and helping to improve the business of the distributed system rate.

2、提高了系统的稳定性。使用本发明的方法,分包发送大大减少了从处理机与主处理机的消息数,各消息包之间延时发送减轻了从处理机与主处理机通讯的负担,(T2-T1-t1×n)的缓冲时间除降低了传输频率外,还大大减轻了主处理机的负担,这些非常有益于提高系统的稳定性。2. Improved the stability of the system. Using the method of the present invention, the packet sending greatly reduces the number of messages from the processor and the master processor, and the delayed transmission between each message packet reduces the burden on the communication between the processor and the master processor, (T2-T1-t1 ×n) The buffer time not only reduces the transmission frequency, but also greatly reduces the burden on the main processor, which is very beneficial to improve the stability of the system.

3、提高了数据传输的可靠性。通过消息确认的重发机制,大大减少了由于传输丢包而使测量数据不正确的概率,提高了测量数据的传输可靠性和真实性。3. Improve the reliability of data transmission. Through the retransmission mechanism of message confirmation, the probability of incorrect measurement data due to packet loss in transmission is greatly reduced, and the transmission reliability and authenticity of measurement data are improved.

4、采用本发明所述方法,与现有技术相比,提高了嵌入式分布系统的稳定性、数据传输的可靠性,降低了对其他业务模块的影响。4. By adopting the method of the present invention, compared with the prior art, the stability of the embedded distribution system and the reliability of data transmission are improved, and the influence on other business modules is reduced.

附图说明Description of drawings

图1是性能测量实现原理图。Figure 1 is a schematic diagram of performance measurement.

图2是性能测量数据实现流程图。Fig. 2 is a flowchart of performance measurement data realization.

图3是对图2中“主处理机开始统计并向从处理机发送采集命令”的分解。Fig. 3 is the decomposition of "the master processor starts counting and sends a collection command to the slave processor" in Fig. 2 .

图4是对图2中“从处理机采集数据并组包发送”的分解。Figure 4 is the decomposition of "collecting data from the processor and sending it in packets" in Figure 2.

具体实施方式Detailed ways

下面结合附图对技术方案的实施作进一步的详细描述:Below in conjunction with accompanying drawing, the implementation of technical scheme is described in further detail:

如图1,主处理机上包括性能测量模块和其他业务模块,主处理机上由性能测量模块统一开缓冲区,其他业务模块负责计数器计数,并直接写统一缓冲区。当主处理机性能测量模块收到后台的测量命令后,若主处理机上的周期采集定时器T1超时则根据测量列表发送测量命令到相应从处理机的性能测量上报进程,从处理机在(T2-T1-t1×n)时间内完成测量数据打包发送(包间有延时t2)并对从处理机上测量计数器的清零,然后根据主处理机的应答决定是否发第二次。从处理机上的性能计数器由其它业务模块进行累加统计,从处理机的性能测量上报进程只负责测量结果的打包、发送以及计数器的清零;主处理机上的周期记录定时器T2超时后,主处理机记录从从处理机返回的测量结果以及主处理机其他模块累加的计数结果,清零统一缓冲,并重设定时器T1和T2,开始下一周期的计数。当向后台上报定时器T3超时,主处理机性能测量模块对他T3/T2个采样周期内的测量结果加以简单的计算发送到后台,后台再根据上报结果生成某一时间段的报表。As shown in Figure 1, the main processor includes a performance measurement module and other business modules. On the main processor, the performance measurement module uniformly opens a buffer, and other business modules are responsible for counter counting and directly write to the unified buffer. After the performance measurement module of the main processor receives the measurement command from the background, if the periodic acquisition timer T1 on the main processor is overtime, the measurement command is sent to the performance measurement report process of the corresponding slave processor according to the measurement list, and the slave processor is in (T2- T1-t1×n) time to complete the packaged transmission of measurement data (there is a delay t2 between packets) and clear the measurement counter on the slave processor, and then decide whether to send it for the second time according to the response of the master processor. The performance counters on the slave processor are accumulated and counted by other business modules, and the performance measurement reporting process of the slave processor is only responsible for the packaging and sending of the measurement results and the clearing of the counter; after the periodic recording timer T2 on the master processor expires, the master The computer records the measurement results returned from the slave processor and the counting results accumulated by other modules of the main processor, clears the unified buffer, resets timers T1 and T2, and starts counting in the next cycle. When the reporting timer T3 times out to the background, the performance measurement module of the main processor performs simple calculations on the measurement results in T3/T2 sampling periods and sends them to the background, and the background generates a report for a certain period of time according to the reported results.

参考图2、3、4,首先系统上电初始化,主处理机性开设统一性能测量缓冲区,并开始需要主处理机统计的计数器的累加,从处理机上电后增加测量数据上报进程,同时各业务模块开始计数器累加;后台建测量任务后,发送性能测量列表到主处理机,并包含向后台上报周期T3的值(T3是T1的整数倍);主处理机性能测量模块收到后台的测量命令后,设置周期采集定时器T1、周期记录定时器T2以及向后台上报定时器T3;当T1超时,主处理机发送采集命令到相应从处理机的测量数据上报进程,多条命令之间有延时t1,以尽量错开不同从处理机上报数据的时间;各从处理机测量数据上报进程收到采集命令后,根据测量列表、每个被测对象数据的大小、所属主处理机以及网通讯数据包大小的限制,将多个被测对象的测量数据组成一包,同时将清零所有计数器,然后发送各包到主处理机,包与包之间间隔发送,间隔时间为t2;主处理机性能测量模块每接收一包数据后回一确认消息,通知从处理机该包数据接收是否成功;从处理机测量数据上报进程发完当次所有数据包后设一重发定时器T4;重发定时器T4超时,从处理机测量数据上报进程根据接收成功位图(即每包的确认消息)决定是否对相应包重发,从处理机从接收采集命令到重发结束,整个过程必须在(T2-T1-t1×n)时间内完成。当周期记录定时器T2超时,主处理机性能测量模块记录本周期数据采集结果,将所有计数器清零,并重设定时器T2和T1,开始下一测量周期的计数;当周期采集定时器T1再次超时,则再次发送测量命令到从处理机,重复上述过程;当向后台上报周期T3超时,主处理机则对T3周期内的T3/T2次采样结果进行简单计算发送到后台;若主处理机性能测量模块收到后台的性能测量结束命令,则清空相应测量列表,并清除向后台上报周期T3,性能测量上报过程结束。Refer to Figures 2, 3, and 4. First, the system is powered on and initialized. The main processor sets up a unified performance measurement buffer, and starts to accumulate the counters that need to be counted by the main processor. After the slave processor is powered on, the process of reporting measurement data is increased. The business module starts counter accumulation; after the measurement task is built in the background, the performance measurement list is sent to the main processor, and includes the value of reporting period T3 to the background (T3 is an integer multiple of T1); the performance measurement module of the main processor receives the measurement of the background After the command, set the periodic acquisition timer T1, the periodic recording timer T2, and the reporting timer T3 to the background; when T1 times out, the master processor sends the acquisition command to the measurement data reporting process of the corresponding slave processor, and there is a gap between multiple commands. Delay t1 to stagger the time of reporting data from different slave processors as much as possible; after receiving the acquisition command, the measurement data reporting process of each slave processor, according to the measurement list, the size of each measured object data, the main processor it belongs to, and the network communication Due to the limitation of data packet size, the measurement data of multiple measured objects will be combined into one packet, and all counters will be cleared at the same time, and then each packet will be sent to the main processor. The performance measurement module of the machine returns a confirmation message after receiving a packet of data every time, and informs the slave processor whether the packet data is received successfully; a retransmission timer T4 is set after the slave processor measurement data reporting process has sent all the data packets of the time; When the sending timer T4 times out, the process of reporting measurement data from the processor decides whether to resend the corresponding packet according to the bitmap of successful reception (that is, the confirmation message of each packet). (T2-T1-t1×n) time to complete. When the periodic recording timer T2 is overtime, the main processor performance measurement module records the data collection results of this cycle, clears all counters, resets timers T2 and T1, and starts the counting of the next measurement cycle; when the periodic collection timer T1 When timeout occurs again, the measurement command is sent to the slave processor again, and the above process is repeated; when the reporting cycle T3 times out to the background, the master processor performs a simple calculation on the T3/T2 sampling results in the T3 cycle and sends it to the background; if the master processor When the machine performance measurement module receives the performance measurement end command from the background, it clears the corresponding measurement list, and clears the reporting period T3 to the background, and the performance measurement reporting process ends.

举例:Example:

由于整个方法涉及到一些参数的取值,举例GPRS系统中性能测量数据采集方法在实现过程中的参数取值来加以说明。Since the whole method involves the value of some parameters, it will be explained by giving an example of the parameter value in the process of realizing the performance measurement data acquisition method in the GPRS system.

GPRS系统中性能测量数据采集方法:GPRS系统为嵌入式分布系统,主处理机为前台,从处理机为所有A类单板和B类单板,假设最多能配置48块A类单板和16块B类单板,一块A类单板可最多配置80个小区,被测对象为小区,A类单板上每个小区含80个计数器,每个计数器大小为4Byte,A类单板与前台通讯数据包大小限制为小于1400Byte,每个小区测量数据大小为80×4Byte=320Byte,这样根据我们的方法可以将4个小区组成一包发送,每包大小为4×320Byte=1280Byte<1400Byte。若一块A类单板配有80个小区,则需上报80/4=20个包。可设:Performance measurement data acquisition method in GPRS system: GPRS system is an embedded distributed system, the main processor is the front desk, and the slave processor is all A-type single boards and B-type single boards. It is assumed that a maximum of 48 A-type single boards and 16 One class B board and one class A board can be configured with up to 80 cells. The communication data packet size is limited to less than 1400Byte, and the measurement data size of each cell is 80×4Byte=320Byte, so according to our method, 4 cells can be sent in one packet, and the size of each packet is 4×320Byte=1280Byte<1400Byte. If a class A board is configured with 80 cells, 80/4=20 packets need to be reported. Can set:

前台周期采样定时器T1=270秒Foreground cycle sampling timer T1 = 270 seconds

前台周期记录定时器T2=300秒Foreground cycle recording timer T2 = 300 seconds

前后台同步定时器T3=900秒Foreground and background synchronization timer T3 = 900 seconds

主处理机发送至各从处理机的测量命令时间间隔t1=8毫秒The measurement command time interval t1=8 milliseconds sent by the master processor to each slave processor

从处理机(A类单板)重发定时器T4=4秒Slave processor (type A single board) retransmission timer T4 = 4 seconds

从处理机(A类单板)发包间隔时间t2=400毫秒Interval time t2 for sending packets from the processor (type A single board) = 400 milliseconds

其中:(400毫秒×20)×2+4秒+8毫秒×(48+16)=20.32秒<(T2-T1)=30秒,可保证A类单板在30秒内完成测量数据上报工作。前台在收到后台的性能测量采集命令后同时设置定时器T1(270秒)、T2(300秒)和T3(900秒),在定时器T1(270秒)超时时以t1的间隔向所有A类单板的测量数据上报进程发送测量采集命令;测量数据上报进程收到测量采集命令后,根据每个被测量对象数据包的大小(假如为320byte)、所属主处理机(假设属于同一主处理机)以及网通讯包大小的限制(小于1400byte),进行测量数据的组包(如上描述,可组20个包),并将A类单板上的计数器清零以便下一周期的统计,然后以t2(400毫秒)的间隔向前台发送所有组好的包,并设定时器T4(4秒);前台每收到一个包就回相应的应答(置成功位位图),A类单板的T4(4秒)超时,则根据成功位位图,对没有收到应答的包进行重发,重发后不再设定时器T4;前台收到A类单板的数据后直接写统一缓冲,并在T2(300秒)超时时,将统一缓冲中的数据备份,并清零统一缓冲区,重新设置定时器T1和T2;前台在T3超时时将3次(900秒/300秒=3)的记录结果进行简单计算发送到后台,并重设定时器T3。Among them: (400 milliseconds × 20) × 2+4 seconds + 8 milliseconds × (48+16) = 20.32 seconds < (T2-T1) = 30 seconds, which can ensure that the class A board can complete the reporting of measurement data within 30 seconds . After receiving the performance measurement collection command from the background, the foreground sets timers T1 (270 seconds), T2 (300 seconds) and T3 (900 seconds) at the same time, and when the timer T1 (270 seconds) times out, it sends a message to all A The measurement data reporting process of similar veneer sends the measurement collection command; after the measurement data reporting process receives the measurement collection command, according to the size of the data packet of each measured object (if it is 320byte), the main processor (assuming it belongs to the same main processing unit) Machine) and network communication packet size limit (less than 1400byte), group the measurement data (as described above, 20 packets can be grouped), and clear the counter on the A-type single board for the statistics of the next cycle, and then Send all assembled packets to the foreground at an interval of t2 (400 milliseconds), and set a timer T4 (4 seconds); the foreground will return a corresponding response (set the success bitmap) every time a packet is received. If T4 (4 seconds) of the board is overtime, according to the success bitmap, resend the packet that has not received a response. After resending, the timer T4 will not be set; the front desk will directly write Unified buffer, and when T2 (300 seconds) times out, back up the data in the unified buffer, and clear the unified buffer, reset timer T1 and T2; =3) the record results are simply calculated and sent to the background, and the timer T3 is reset.

Claims (5)

1.一种嵌入式分布系统的性能测量数据采集方法,其特征在于,所述方法包括以下处理步骤:1. a performance measurement data acquisition method of an embedded distributed system, characterized in that, the method comprises the following processing steps: 第一步:主从处理机初始化;主处理机开设统一缓存区,并开始主处理机上的测量计数,直接写统一缓存;从处理机增加测量数据上报进程,并开始从处理机上的测量计数,所述上报进程优先级低;Step 1: Master-slave processor initialization; the master processor opens a unified buffer area, and starts the measurement and counting on the master processor, and directly writes the unified cache; the slave processor increases the measurement data reporting process, and starts the measurement and counting on the slave processor, The reporting process has a low priority; 第二步:主处理机开始采集性能数据,将主处理机上业务模块的测量计数进行统计并写入统一缓冲区;主处理机上性能测量模块收到后台的测量命令后,定期根据测量列表向相应从处理机分别发送测量数据上报命令,各条命令之间设置发送延时;Step 2: The main processor starts to collect performance data, counts the measurement counts of the business modules on the main processor and writes them into the unified buffer; after receiving the measurement command from the background, the performance measurement module on the main processor regularly reports to the corresponding Send measurement data reporting commands from the processor separately, and set a sending delay between each command; 第三步:各从处理机上业务进程统计各自计数器,从处理机测量上报进程收集被测对象的测量数据,对备份测量数据分类,将多个被测对象组成一包,发送各包数据到主处理机,包与包之间有一定延时;Step 3: Count the counters of the business process on each slave processor, collect the measurement data of the measured object from the measurement reporting process of the processor, classify the backup measurement data, form multiple measured objects into a package, and send each package of data to the master Processor, there is a certain delay between packets; 第四步:主处理机备份本周期的所有采样数据,并将统一缓冲区清零,开始下一周期的测量计数;Step 4: The main processor backs up all the sampling data in this cycle, clears the unified buffer, and starts the measurement and counting of the next cycle; 第五步:若主处理机上的向后台上报定时器T3超时,则主处理机对T3周期内的所有采样数据进行统计计算后发送到后台,再转到第二步,否则直接转到第二步。Step 5: If the timer T3 reporting to the background on the main processor is overtime, the main processor will perform statistical calculations on all sampling data in the T3 period and send them to the background, and then go to the second step, otherwise go directly to the second step step. 2.根据权利要求1所述的嵌入式分布系统的性能测量数据采集方法,其特征在于,所述方法还包括以下处理步骤:2. the performance measurement data collection method of embedded distribution system according to claim 1, is characterized in that, described method also comprises following processing steps: 当主处理机收到后台停止测量命令时,清空相应性能测量列表,并清除所有周期定时器,不再进行测量数据采集工作。When the main processor receives the background stop measurement command, it clears the corresponding performance measurement list, clears all cycle timers, and no longer collects measurement data. 3.根据权利要求1或2所述的嵌入式分布系统的性能测量数据采集方法,其特征在于,所述第二步具体包括以下处理步骤:3. according to the performance measurement data collection method of embedded distribution system described in claim 1 or 2, it is characterized in that, described second step specifically comprises the following processing steps: (1)将第一步中主处理机上业务模块的测量计数进行统计并写入统一缓冲区;(1) counting the measurement counts of the business modules on the main processor in the first step and writing them into a unified buffer; (2)在主处理机上设置周期采集定时器T1和周期记录定时器T2,并使T1<T2;(2) Periodic acquisition timer T1 and periodic recording timer T2 are set on the main processor, and make T1<T2; (3)主处理机上性能测量模块收到后台的测量命令后,开始设置向后台上报定时器T3;(3) After the performance measurement module on the main processor receives the measurement command from the background, it starts to set and report the timer T3 to the background; (4)当周期采集定时器T1超时,主处理机上性能测量模块根据测量列表向相应从处理机分别发送测量数据上报命令,各条命令之间设置发送延时t1。(4) When the periodic acquisition timer T1 expires, the performance measurement module on the main processor sends measurement data reporting commands to the corresponding slave processors according to the measurement list, and a sending delay t1 is set between each command. 4.根据权利要求1或2所述的嵌入式分布系统的性能测量数据采集方法,其特征在于,所述第三步具体包括以下处理步骤:4. according to the performance measurement data collection method of embedded distribution system described in claim 1 or 2, it is characterized in that, described 3rd step specifically comprises the following processing steps: (1)从处理机上业务进程统计各自计数器;(1) Statistics of respective counters from the business process on the processor; (2)从处理机测量上报进程收集被测对象的测量数据;(2) Collect the measurement data of the measured object from the measurement reporting process of the processor; (3)从处理机测量上报进程备份本周期数据,并开始下一周期的统计;(3) Back up the current period data from the processor measurement reporting process, and start the statistics of the next period; (4)从处理机测量数据上报进程根据测量列表、每个被测对象数据的大小和所属主处理机以及网络通讯数据包大小的限制,对备份测量数据分类,将多个被测对象组成一包;(4) The measurement data reporting process of the slave processor classifies the backup measurement data according to the measurement list, the size of each measured object data and the size of the master processor and network communication data packet, and forms multiple measured objects into one Bag; (5)从处理机测量数据上报进程发送各包数据到主处理机,包与包之间有一定延时t2;(5) Send each packet of data to the main processor from the processor measurement data reporting process, and there is a certain delay t2 between packets; (6)主处理机性能测量模块收到数据包后回一确认消息,从处理机根据确认消息置接收成功位图;(6) the master processor performance measurement module returns a confirmation message after receiving the data packet, and the success bitmap is received from the processor according to the confirmation message setting; (7)从处理机测量数据上报进程发送完所有组好的数据包后设一重发定时器T4;(7) set up a retransmission timer T4 after sending all grouped data packets from the processor measurement data reporting process; (8)重发定时器T4超时,则根据接收成功位图决定是否对相应包重发一次。(8) When the retransmission timer T4 expires, it is determined whether to retransmit the corresponding packet according to the received success bitmap. 5.根据权利要求4所述的嵌入式分布系统的性能测量数据采集方法,其特征在于,所述第三步中各从处理机采集性能数据并组包向主处理机发送在(T2-T1-t1×n)秒内完成,其中n为从处理机的个数。5. the performance measurement data collection method of embedded distributed system according to claim 4, it is characterized in that, in the described 3rd step, each gathers performance data from processing machine and packs and sends to main processing machine in (T2-T1 -t1×n) seconds, where n is the number of slave processors.
CN 200310113606 2003-11-13 2003-11-13 A method for performance measurement data acquisition of embedded distributed system Expired - Lifetime CN1275429C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310113606 CN1275429C (en) 2003-11-13 2003-11-13 A method for performance measurement data acquisition of embedded distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310113606 CN1275429C (en) 2003-11-13 2003-11-13 A method for performance measurement data acquisition of embedded distributed system

Publications (2)

Publication Number Publication Date
CN1545259A CN1545259A (en) 2004-11-10
CN1275429C true CN1275429C (en) 2006-09-13

Family

ID=34336938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310113606 Expired - Lifetime CN1275429C (en) 2003-11-13 2003-11-13 A method for performance measurement data acquisition of embedded distributed system

Country Status (1)

Country Link
CN (1) CN1275429C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984119B (en) * 2005-12-13 2010-06-23 中兴通讯股份有限公司 A Method of Using Time Division Technology to Realize Flow Control
CN101459918B (en) * 2007-12-11 2011-10-26 中兴通讯股份有限公司 Distributed performance data management implementation method for base station controller
CN102448089A (en) * 2011-10-25 2012-05-09 华为技术有限公司 Service data statistics verification method and user equipment
US8886033B2 (en) * 2012-03-22 2014-11-11 Source Photonics, Inc. Enhanced status monitoring, storage and reporting for optical transceivers
CN103135944B (en) * 2013-03-12 2016-06-29 飞依诺科技(苏州)有限公司 Expand the method and system of maximum ultrasound image data amount of storage
CN104092586A (en) * 2014-07-21 2014-10-08 上海斐讯数据通信技术有限公司 Method and system for collecting running information of embedded system
CN106610905A (en) * 2015-12-04 2017-05-03 中视迪威激光显示技术有限公司 Assistant selection local area network interface system and communication method thereof
CN113207175A (en) * 2021-03-25 2021-08-03 厦门才茂通信科技有限公司 Intelligent data packet transmission method in communication process

Also Published As

Publication number Publication date
CN1545259A (en) 2004-11-10

Similar Documents

Publication Publication Date Title
CN1275429C (en) A method for performance measurement data acquisition of embedded distributed system
CN106533639A (en) Data retransmission method and device
Lu et al. Memory efficient loss recovery for hardware-based transport in datacenter
CN101192992B (en) Complementary collection system and method for performance data of telecom network management system
CN107645398A (en) A kind of method and apparatus of diagnostic network performance and failure
CN1560806A (en) Fire alarm application layer data transmission method based on CAN2.0B
CN101753584A (en) Method for improving rapid message processing speed of intelligent transformer substation under VxWorks system
CN102404760A (en) Method and device for real-time measurement of system performance
CN1601975A (en) Packet switching equipment traffic monitoring query method and line card collector
CN101459918B (en) Distributed performance data management implementation method for base station controller
CN101635659B (en) Method and device for alarm jitter prevention
WO2013185480A1 (en) Method and device for obtaining throughput rate
Véhel et al. A multiplicative multifractal model for TCP traffic
Yu et al. Efficient and scalable barrier over quadrics and myrinet with a new nic-based collective message passing protocol
CN111565132B (en) Overtime detection method and system for bidirectional forwarding detection message
Melliar-Smith et al. Trans: A reliable broadcast protocol
CN1665204A (en) Method for real-time measurement of local service quality of computer network
CN1256833C (en) Method for realizing centralized management of user&#39;s adaptive protocol state
CN1298143C (en) Measurable distributed network traffic generating system
CN118626344B (en) Android application ANR monitoring method, device, equipment and medium
CN114900805A (en) High-concurrency Beidou third-order short message receiving and sending method, system and device
CN1195269C (en) Method for accurately recording time marks of data packages on mainframe system at computer network terminal
CN114785658A (en) Data synchronization system, method and storage medium
CN1484158A (en) A Method for Realizing Interrupt Request Preprocessing
CN1081864C (en) Full electronic exchanger dual complex bus data receiving device 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
EE01 Entry into force of recordation of patent licensing contract

Assignee: SHENZHEN ZTE SOFTWARE Co.,Ltd.

Assignor: ZTE Corp.

Contract fulfillment period: 2007.4.1 to 2013.4.1

Contract record no.: 2008990000942

Denomination of invention: A method for performance measurement data acquisition of embedded distributed system

Granted publication date: 20060913

License type: Exclusive license

Record date: 20081027

LIC Patent licence contract for exploitation submitted for record

Free format text: EXCLUSIVE LICENSE; TIME LIMIT OF IMPLEMENTING CONTACT: 2007.4.1 TO 2013.4.1; CHANGE OF CONTRACT

Name of requester: SHENZHEN CITY ZHONGXING SOFTWARE CO.,LTD.

Effective date: 20081027

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20060913