WO2013097437A1 - Device performance reporting and counting method, distributed device, general control device and system - Google Patents

Device performance reporting and counting method, distributed device, general control device and system Download PDF

Info

Publication number
WO2013097437A1
WO2013097437A1 PCT/CN2012/077838 CN2012077838W WO2013097437A1 WO 2013097437 A1 WO2013097437 A1 WO 2013097437A1 CN 2012077838 W CN2012077838 W CN 2012077838W WO 2013097437 A1 WO2013097437 A1 WO 2013097437A1
Authority
WO
WIPO (PCT)
Prior art keywords
maximum value
value
counter
control device
global maximum
Prior art date
Application number
PCT/CN2012/077838
Other languages
French (fr)
Chinese (zh)
Inventor
闫露
杨采坚
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013097437A1 publication Critical patent/WO2013097437A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of mobile communications, and specifically relates to a device performance data reporting method, a device performance statistics method, a distributed device, a total control device, and a device performance statistics system.
  • Performance statistics are generally collected through periodic collection of network metadata and then aggregated into the network management system. Due to the large amount of performance data, how to perform effective and accurate data management and data reporting is a key issue in performance management.
  • network elements are mostly distributed implementation architectures, such as a wireless network controller (RNC) that uses different CPUs to complete the collaborative process of wireless services.
  • RNC wireless network controller
  • the long-term distributed long-term summary method is used to collect the performance indicators.
  • the traditional device performance statistics system structure is shown in Figure 1. Shown. As shown in Figure 2, the long-term distributed sample long-term summary method steps are as follows:
  • the performance statistics module on the total control device and the distributed device opens a performance data buffer area, and the number of measurement types supported by the device according to the device, the maximum number of each measurement type counter, and the maximum measurement object of the device
  • the memory space is allocated by the number and the length of the counter under this measurement type.
  • S102 Define an operation code and a summary code for each counter.
  • the operation performed when saving a counter to the performance data buffer on a distributed device is defined as an opcode
  • the operation performed when the master device saves the counter to the performance data buffer is defined as a summary code.
  • the counter can be divided into summation statistics type, mean value statistics type, and maximum value statistics type according to its processing mode. For example, the summation statistic type is to calculate the increment of the data at the end of a period relative to the start, the summation counter opcode is set to sum, and the counter summary code is set to sum; the statistic type is to obtain more than one cycle.
  • the type is to obtain the maximum or minimum value of the raw data of multiple sample points in one cycle, the highest value counter operation code is set to the maximum value, and the summary code is set to the sum.
  • the specific processing method of the counter, the operation code and the summary code can also be set to other operation modes, and some other counter-specific types are defined.
  • S103 During the running of the system, when the data source on each distributed device needs to be counted, the data source reports the value of the counter to the performance statistics module on each distributed device, and the statistics period starts, and the performance statistics module is pre-defined.
  • the counter operation code is used to save the value reported by the counter in the performance data buffer of the distributed device.
  • the distributed device may also sample the data source, and the statistical period starts, and the sample value is used as the value reported by the counter. Assume that the counter is the most valued statistical type, set the highest value counter opcode to the highest value, and the summary code to the summation.
  • the performance statistics module saves the value reported by the counter to the highest value and saves it in the performance data buffer of the distributed device. .
  • the performance statistics module on each distributed device reports the value of the counter to the performance statistics module on the master control device; the performance statistics module on each distributed device obtains multiple sample points in a cycle. The maximum or minimum value of the data is reported.
  • the statistics module on the master control device operates the value of the counter reported on each distributed device according to the preset counter summary code, and saves the value of the counter in the performance data buffer area of the master control device; The code is summed, and the value reported by the most value counter is summed and saved.
  • the total control device saves the values of all the counters in the statistical period as performance files and reports them to the network management system for presentation to the user.
  • the method is as follows: In the long-term statistical period T seconds, the statistical result of the maximum traffic of device A is maxl; in the long-term statistical period T seconds, the statistical result of the maximum traffic of device B In the long-term statistical period T seconds, the statistical result of the current system maximum traffic is sum ( maxl , max2 ), and the distributed device reports the statistical result to the master control device.
  • the technical problem to be solved by the present invention is to provide a device performance data reporting method, a device performance statistics method, a distributed device, a total control device, and a system, which solve the maximum value of the prior art statistical distribution on each distributed device.
  • the problem that the value reported by the counter is inaccurate, so as to improve the accuracy of the system to count the global maximum value counter, and more accurately reflect the running status of the equipment in the system.
  • the present invention provides a method for reporting device performance data, which is applied to a distributed device side, and includes: the distributed device directly saves a value of a global maximum value counter obtained from a data source in a first In the performance data buffer, or in the first performance data buffer, the maximum value of the global maximum value counter is obtained according to a predefined global maximum value counter operation code; the distributed device is in a statistical period, The value of the global maximum value counter stored in the first performance data buffer is reported to the master device multiple times in a cycle of the set time period of the short-term reporting timer.
  • the timing time of the short-term reporting timer is a second level.
  • the distributed device includes a plurality of global maximum value counters, and the distributed device allocates a continuous storage space for the plurality of global highest value counters in the first performance data buffer.
  • the present invention provides a device performance statistics method, which is applied to the main control device side, and includes: The total control device summarizes the values of the global maximum value counter reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; The values of the plurality of global maximum value counters summarized in the statistical period are obtained as the maximum value, and the result of the highest value is saved in the second performance data buffer.
  • the total control device summarizes the value of the global maximum value counter reported by each distributed device
  • the method includes: the total control device searching for the value of the global maximum value counter according to a preset maximum value counter summary code And after, it is saved in the summary buffer of the master device.
  • the total control device obtains a maximum value of the plurality of global maximum value counters that are summarized in the statistical period, and saves the result of the highest value to the second performance data buffer, including: And storing, by the device according to the preset maximum value counter summary comparison code, the value of the global maximum value counter in the summary buffer area, and storing the value in the comparison update buffer area of the total control device; or, for the summary buffer area And storing the value of the global maximum value counter in the comparison update buffer area, and storing the value in the comparison update buffer area of the master control device; after the statistics period ends, the master control device buffers the comparison update buffer The value of the global maximum value counter in the zone is saved to the second performance data buffer.
  • the most value counter summary comparison code is defined to compare values of counters stored in the summary buffer area and the comparison update buffer area on the master control device to obtain a maximum value.
  • the present invention provides a device performance reporting and statistical method, which is applied to a system including a distributed device and a total control device, the method comprising: the distributed device as described above, device performance data
  • the reporting method reports the value of the global maximum value counter; the master control device performs statistics on the value of the global highest value counter according to the device performance statistics method as described above.
  • the present invention further provides a distributed device, including: a first performance statistics module, configured to: a value of a global maximum value counter obtained from a data source Or directly stored in the first performance data buffer, or the highest value of the global maximum value counter according to the predefined global maximum value counter operation code is saved in the first performance data buffer; and in a statistical period
  • the value of the global maximum value counter stored in the first performance data buffer is reported to the master control device multiple times in a period of time of the short-term reporting timer; the short-term connection with the first performance statistics module
  • the reporting timer is set to: Set the periodic reporting time of the global maximum counter value.
  • the timing time of the short-term reporting timer is a second level.
  • the distributed device includes a plurality of global maximum value counters
  • the first performance statistics module is configured to: allocate consecutive storages for the plurality of global highest value counters in the first performance data buffer space.
  • the present invention further provides a total control device, including: a second performance statistics module, configured to: in a statistical period, according to a timing time of a short-time reporting timer set on a distributed device, The values of the global maximum value counters reported by the distributed devices are summarized; the maximum value of the plurality of global maximum value counters summarized in the statistical period is obtained, and the result of the highest value is saved to the second performance data cache.
  • the second performance statistics module further includes a summary buffer area. The second performance statistics module is configured to: summarize the values of the global maximum value counters reported by each distributed device, including:
  • the second performance statistics module sums the values of the global maximum counter according to a predefined maximum value counter summary code and stores them in the summary buffer.
  • the second performance statistics module further sets a comparison update buffer area; the second performance statistics module is configured to: obtain a maximum value of the plurality of global maximum value counters summarized in the statistical period, and The most valuable result is saved to the second performance data buffer, including:
  • the second performance statistic module is stored in the comparison update buffer area after the value of the global maximum value counter in the summary buffer area is calculated according to the preset maximum value counter summary comparison code; or, for the summary After the buffer area and the value of the global maximum value counter in the comparison update buffer are operated, they are saved in the comparison update buffer area;
  • the second performance statistics module is further configured to: save the value of the global maximum value counter in the comparison update buffer to the second performance data buffer after the statistics period ends.
  • the highest value counter summary comparison code is defined to compare the values of the highest value counters stored in the summary buffer area and the comparison update buffer area on the master control device to obtain a maximum value.
  • the present invention also provides a device performance statistics system, including the above distributed device and the total control device.
  • FIG. 2 is a flow chart of a conventional long-term distributed sample long-term summary method
  • FIG. 3 is a structural diagram of a device performance statistical system in the embodiment
  • FIG. 4 is a flow chart of a device performance statistical method in the embodiment
  • FIG. 6 is a flow chart of the device performance statistics method in an application example.
  • this embodiment provides a device performance statistics system, including a plurality of distributed devices and a total control device, where: the distributed device includes: a service module, a first performance statistics module, and a timer. Module, where:
  • the service module reports data to the first performance statistics module; the first performance statistics module is configured to directly use the value of the global maximum value counter obtained from the data source Stored in the first performance data buffer, or the highest value of the global maximum counter according to the predefined global maximum counter code, and stored in the first performance data buffer; and in a statistical period
  • the value of the global maximum value counter stored in the first performance data buffer is reported to the master control device multiple times in a period of time of the short-term reporting timer; wherein the distributed device includes multiple global a value counter, the first performance statistics module allocates a continuous storage space for the plurality of global highest value counters in the first performance data buffer, which can improve addressing efficiency.
  • the timer module includes a long-term statistical period timer and a short-term reporting timer, and the long-term statistical period timer is configured to set the first performance statistics module to report the first performance data buffer to the second performance statistics module.
  • the reporting time, the short-time reporting timer is used to set the periodic reporting time of the global maximum counter value; the timing of the short-time reporting timer is the second level. As a preferred way, it can be set to be divisible by the statistical period.
  • the master control device includes a second performance statistics module, and the second performance statistics module opens a second performance data buffer region, where:
  • the second performance statistic module is configured to summarize the values of the global maximum value counters reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; The values of the plurality of global maximum value counters summarized in the statistical period are obtained as the maximum value, and the result of the highest value is saved in the second performance data buffer.
  • the second performance statistics module further includes a summary buffer area and a comparison update buffer area, where:
  • the second performance statistics module summarizes the values of the global maximum value counters reported by each distributed device, including:
  • the second performance statistic module sums the values of the global maximum value counter according to a preset maximum value counter summary code, and saves in the summary buffer area.
  • the second performance statistics module obtains a maximum value of the plurality of global maximum value counters that are summarized in the statistical period, and saves the result of the highest value to the second performance data buffer, including:
  • the second performance statistic module is stored in the comparison update buffer area after the value of the global maximum value counter in the summary buffer area is calculated according to the preset maximum value counter summary comparison code; or, for the summary And storing, in the comparison update buffer area, the buffer value and the value of the global maximum value counter in the comparison update buffer area; wherein the highest value counter summary comparison code is defined as being on the total control device
  • the summary buffer area is compared with the value of the highest value counter held in the comparison update buffer area to find the highest value.
  • the second performance statistics module saves the value of the global maximum value counter in the comparison update buffer to the second performance data buffer.
  • the first and second performance data buffers in the above generally refer to all buffers for buffering the value of the highest value counter.
  • the device performance statistics system and the device performance data reporting method in the embodiment are further described in detail in conjunction with FIG. As shown in Figure 4, the specific process of reporting device performance data includes the following steps:
  • each distributed device directly saves the value of the global maximum value counter obtained from the data source in the first performance data buffer, or searches for the value of the global maximum value counter according to the predefined global maximum value counter operation code. The value is saved in the first performance data buffer;
  • the distributed device reports the value of the global maximum value counter stored in the first performance data buffer to the total control multiple times in a statistical period, with a set time period of the short-term reporting timer.
  • Equipment Next, the specific process of equipment performance statistics includes the following steps:
  • S203 The total control device summarizes the value of the global maximum value counter reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period;
  • S204 the total control device The value of the plurality of global maximum value counters summarized in the statistical period is obtained, and the result of the highest value is saved in the second performance data buffer.
  • the device performance statistics system completes the reporting and statistics of the performance data.
  • the statistics period ends, the following steps are also included:
  • S205 The first performance statistics module on each distributed device also reports the values of the other non-global maximum value counters to the master control device;
  • S206 the second performance statistics module on the master control device is based on other predefined counter summary codes. And operating the values of other non-global maximum counters reported by the distributed devices, and storing the values of the other non-global maximum counters in the performance data buffer of the master device;
  • the master control device saves the values of all the counters in the statistical period as performance files and reports them to the network management system for presentation to the user.
  • the device performance statistics system structure is as shown in FIG. 5, on the distributed device: the counters that need to be counted on the distributed device 1 and the distributed device n include: a current value counter A, a maximum value counter B, a minimum counter C, wherein the values of the counters A, B, and C are stored in a performance data buffer on each distributed device.
  • a preferred storage method is to store the value of the global maximum counter in a continuous buffer. In this way, it is convenient to address the most value counter, as long as the start position and the end position are found.
  • the performance statistics module on the master control device opens up the performance data buffer area, and also sets the summary buffer area and the comparison update buffer area; wherein the summary buffer area is used to save the distributed device 1 and the distributed device.
  • the summary value of the value reported by the maximum value counter of n; the comparison update buffer is used to save the maximum value of the summary value, that is, the summary value of the last short-time sampling period and the summary value of the sampling period are larger or smaller The value; the performance data cache holds the final result that needs to be presented to the user.
  • the performance data buffer is named DataBuffer—n, then the buffers of the current counter A, the maximum counter B, and the minimum counter C are DataBuffer—n[a], DataBuffer—n[b], and DataBuffer— n[c];
  • the summary buffer is named H, then the summary buffer of maximum counter B is H(b), and the summary buffer of minimum counter C is H(c), compare
  • the update buffer is named G, then the comparison update buffer of the maximum counter B is G(b), and the comparison update buffer of the minimum counter C is G(c); below, the device performance statistics system in FIG. 5 above.
  • the present embodiment will be described with reference to FIG. 6 .
  • the method for reporting and counting device performance data is further described in detail below. As shown in FIG. 6, the method includes the following steps:
  • S301 Set a short-time reporting timer on each distributed device (1 ⁇ n), set t seconds to a short-time reporting period (for example, 6 seconds); set a long-term statistical period timer, set T minutes as statistics Cycle (for example, 15 minutes in the prior art);
  • the master control device can save according to the buffer area of the highest value counter.
  • the current buffer area and the counter short-time buffer area are allocated on the distributed device, and correspondingly, the current buffer area and the counter are also allocated for a short time.
  • the buffer area and the comparison area are saved in the corresponding buffer area allocated by the distributed control device.
  • the performance statistics module on the distributed device n sends all global maximum value counter values to the master control device; that is, the buffer area DataBuffem[b] and the minimum value counter C of the maximum value counter B are The values in the buffer area DataBuffem[c] are all reported; if the amount of data is relatively large, it can be sent in multiple message packets.
  • the performance statistics module on the master control device opens a summary buffer area, and summarizes the sample values of the highest value counters reported by each distributed device;
  • the performance statistics module calculates the value of the most value counter reported by each distributed device ( l ⁇ n ) and the value saved in the local summary buffer (summary code is "summation"):
  • summary buffer H(b) DataBuffer— l [b]+ DataBuffer— 2[b] + ... + DataBuffer— n[b];
  • Summary buffer H(c) DataBuffer— l [c]+ DataBuffer— 2 [c] + .. . +
  • step S306 The performance statistics module on the master control device compares the value in the summary buffer with the value in the comparison update buffer according to the highest value counter summary comparison code, and searches for the maximum value and stores it in the comparison update buffer area;
  • the summary comparison code of the value counter B is "maximum value”
  • the summary comparison code of the minimum value counter C is "minimum value”.
  • the performance statistics module receives the value of the highest value counter and summarizes it. After that, there is a delay. In this embodiment, assuming that the delay is a delay of t/2 seconds (0.3 seconds), step S306 specifically includes the following steps:
  • step S307 The performance statistics module on each distributed device determines whether the long-term statistical period timer expires, if not, proceeds to step S302, otherwise proceeds to step S308;
  • step S308 When the long-term statistical period T is up, the performance statistics module on each distributed device reports all the maximum value counter values to the master control device; at the same time, the values of the other non-global maximum value counters are also reported to the master control device; In actual implementation, there is a case where t cannot be divisible. Although the short-term reporting period t has not yet expired, since the long-term statistical period T has expired, it is necessary to buffer the data area DataBuffem that has been buffered in the maximum value counter B. b] and the value of the minimum value counter C in the buffer DataBuffem[c] are all reported.
  • the performance statistics module on the master control device saves the sample values of the most value counters reported by each distributed device to the summary buffer area; and, according to the summary codes of other non-global maximum value counters defined in advance, each distribution The values of other non-global maximum counters reported by the device are calculated, and the values of other non-global maximum counters are saved in the performance data buffer of the master device; similar to S305, except that this is a long-term statistical period T to after All remaining maximum value counter values reported by each distributed device last time.
  • S310 The performance statistics module on the master control device compares the value in the summary buffer with the value in the comparison update buffer according to the highest value counter summary comparison code, and searches for the highest value and stores it in the comparison update buffer; similar to S306 However, this is the value of all remaining maximum value counters reported by each distributed device last time after the long-term statistical period T.
  • S311 saving the value in the comparison update buffer area as the value of the most value counter in the long-term statistical period T to the performance data buffer area on the master control device;
  • S312 Save the values of all the counters (including the global maximum value counter and other non-global maximum value counters) in the performance data buffer area of the total control device in the long-term statistical period T as performance files and report them to the network management system for presentation to the user;
  • S313 Clear the value of the performance data buffer area on the distributed device, the summary buffer area on the master control device, the comparison update buffer area, and the performance data buffer area, and wait for the data reporting process of the next period.
  • the device performance data reporting method, the device performance statistics method, the distributed device, the total control device, and the system in the foregoing embodiments are Based on the original long-term performance statistics, the distributed device adds a short-time reporting timer to report the value of the global maximum counter in the short period to the master control device.
  • the master control device acquires the short-term period.
  • the value of the global maximum value counter is summed to compare and calculate the highest value operation, thereby obtaining the correct statistics of the performance indicators in the whole network long period, improving the accuracy of the system statistics global maximum value counter, and more accurately reflecting the operation of the equipment in the system. situation.
  • a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk.
  • all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
  • the method for reporting device performance data, the device performance statistics method, the distributed device, the total control device, and the system provided by the embodiments of the present invention are based on the original long-term performance statistics of the global maximum value counter.
  • the short-term reporting timer is added, and the value of the global maximum value counter in the short period is reported to the total control device, and the total control device summarizes the value of the obtained global maximum value counter in a short period to obtain the maximum value operation, thereby obtaining
  • the correct statistics of the performance indicators in the long period of the whole network improve the accuracy of the system statistics global maximum value counter, and more accurately reflect the operating status of the equipment in the system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A device performance reporting and counting method, a distributed device, a general control device and system. The method includes: a distributed device saving the value of a global maxima and minima counter obtained from a data source in a first performance data cache area directly or after solving the maxima and minima of the value of the global maxima and minima counter according to a predefined global maxima and minima counter operation code; within a first counting period, taking the timing time of a short-time reporting timer as a period to report the saved value of the global maxima and minima counter to a general control device; and the general control device summarizing the value of the global maxima and minima counter reported on each distributed device within one counting period, then solving the maxima and minima, and storing the result of maxima and minima solving in a second performance data cache area. The abovementioned method and device can acquire correct counting of the performance indices of the entire network over a long period, improving the precision of the system in counting the global maxima and minima counter and more accurately reflecting the running conditions of the device in the system.

Description

设备性能上报和统计方法、 分布式设备、 总控设备及系统  Equipment performance reporting and statistical methods, distributed equipment, total control equipment and systems
技术领域 Technical field
本发明涉及移动通信领域, 具体涉及一种设备性能数据的上报方法和设 备性能统计方法、 分布式设备、 总控设备及设备性能统计系统。  The present invention relates to the field of mobile communications, and specifically relates to a device performance data reporting method, a device performance statistics method, a distributed device, a total control device, and a device performance statistics system.
背景技术 在移动通信系统中, 由于全网的性能数据反映了整个网络的运行质量, 因此对于运营者来说, 是必不可少的; 此外, 精确的性能统计对于大规模商 用网络的网络优化、 故障排查等方面也起着重要的作用。 性能统计一般通过周期性的釆集网元数据, 然后汇总到网管系统中。 由 于性能数据量非常大, 如何进行有效的精确的数据管理和数据上报, 是性能 管理的关键问题。 现实中的移动通信系统, 网元多为分布式的实现架构, 如 无线网络控制器( RNC )使用不同的 CPU来完成无线业务的协作流程。 由于 性能统计的数据量很大, 为了平滑数据上报给系统带来的负荷, 一般釆用长 时分布式釆样长时汇总的方法对性能指标进行统计, 传统的设备性能统计系 统结构如图 1所示。 如图 2所示, 长时分布式釆样长时汇总的方法步骤如下: BACKGROUND In a mobile communication system, since the performance data of the entire network reflects the operation quality of the entire network, it is indispensable for the operator; in addition, accurate performance statistics for network optimization of a large-scale commercial network, Trouble shooting and other aspects also play an important role. Performance statistics are generally collected through periodic collection of network metadata and then aggregated into the network management system. Due to the large amount of performance data, how to perform effective and accurate data management and data reporting is a key issue in performance management. In a mobile communication system in reality, network elements are mostly distributed implementation architectures, such as a wireless network controller (RNC) that uses different CPUs to complete the collaborative process of wireless services. Due to the large amount of data in the performance statistics, in order to smooth the load that the data reports to the system, the long-term distributed long-term summary method is used to collect the performance indicators. The traditional device performance statistics system structure is shown in Figure 1. Shown. As shown in Figure 2, the long-term distributed sample long-term summary method steps are as follows:
S101 :在总控设备和分布式设备上的性能统计模块开辟性能数据緩存区, 为该緩存区按照本设备支持的测量类型个数,每个测量类型计数器最大个数、 本设备最大测量对象个数、以及该测量类型下计数器的长度来分配内存空间。 S101: The performance statistics module on the total control device and the distributed device opens a performance data buffer area, and the number of measurement types supported by the device according to the device, the maximum number of each measurement type counter, and the maximum measurement object of the device The memory space is allocated by the number and the length of the counter under this measurement type.
S102: 为每个计数器定义操作码和汇总码。 在分布式设备上将计数器保 存到性能数据緩存区时进行的操作定义为操作码, 在总控设备将计数器保存 到性能数据緩存区时进行的操作定义为汇总码。 通常, 通过设定操作码和汇总码, 可以将计数器按照其处理方式分为求 和统计类型, 均值统计类型, 最值统计类型。 例如, 求和统计类型是计算一 个周期结束时相对于开始时数据的增量, 将求和计数器操作码设为求和, 将 计数器汇总码设为求和; 均值统计类型是获得一个周期中多个釆样点原始数 据的平均值; 将均值计数器操作码设为求和, 汇总码设为求平均; 最值统计 类型是获得一个周期中多个釆样点原始数据的最大值或者最小值, 将最值计 数器操作码设为求最值, 汇总码设为求和。 另外, 根据具体设备的监控需要, 计数器的具体处理方式, 还可以将操作码和汇总码设置其他操作方式, 定义 一些其他的计数器专用类型。 S103: 在系统运行的过程中, 当各个分布式设备上的数据源需要计数时, 数据源会向各个分布式设备上的性能统计模块上报计数器的值, 统计周期开 始, 性能统计模块根据预先定义的计数器操作码, 将计数器上报的值通过运 算后保存在分布式设备的性能数据緩存区中。 其中, 也可以是分布式设备对数据源进行釆样, 统计周期开始, 将釆样 值作为计数器上报的值。 假设计数器为最值统计类型, 将最值计数器操作码设为求最值, 汇总码 设为求和, 性能统计模块将计数器上报的值求最值后保存在分布式设备的性 能数据緩存区中。 S102: Define an operation code and a summary code for each counter. The operation performed when saving a counter to the performance data buffer on a distributed device is defined as an opcode, and the operation performed when the master device saves the counter to the performance data buffer is defined as a summary code. Generally, by setting the opcode and summary code, the counter can be divided into summation statistics type, mean value statistics type, and maximum value statistics type according to its processing mode. For example, the summation statistic type is to calculate the increment of the data at the end of a period relative to the start, the summation counter opcode is set to sum, and the counter summary code is set to sum; the statistic type is to obtain more than one cycle. The average of the raw data of the sample points; the average counter operation code is set to sum, the summary code is set to average; the highest value statistics The type is to obtain the maximum or minimum value of the raw data of multiple sample points in one cycle, the highest value counter operation code is set to the maximum value, and the summary code is set to the sum. In addition, according to the monitoring needs of specific equipment, the specific processing method of the counter, the operation code and the summary code can also be set to other operation modes, and some other counter-specific types are defined. S103: During the running of the system, when the data source on each distributed device needs to be counted, the data source reports the value of the counter to the performance statistics module on each distributed device, and the statistics period starts, and the performance statistics module is pre-defined. The counter operation code is used to save the value reported by the counter in the performance data buffer of the distributed device. In addition, the distributed device may also sample the data source, and the statistical period starts, and the sample value is used as the value reported by the counter. Assume that the counter is the most valued statistical type, set the highest value counter opcode to the highest value, and the summary code to the summation. The performance statistics module saves the value reported by the counter to the highest value and saves it in the performance data buffer of the distributed device. .
S104: 在统计周期结束后各分布式设备上的性能统计模块将计数器的值 上报到总控设备上的性能统计模块; 各分布式设备上的性能统计模块获得一个周期中多个釆样点原始数据的 最大值或者最小值, 并上报。 S104: After the statistics period ends, the performance statistics module on each distributed device reports the value of the counter to the performance statistics module on the master control device; the performance statistics module on each distributed device obtains multiple sample points in a cycle. The maximum or minimum value of the data is reported.
S105: 总控设备上的统计模块根据预先定义的计数器汇总码, 对各个分 布式设备上上报的计数器的值进行操作, 将计数器的值保存在总控设备的性 能数据緩存区中; 其中, 汇总码为求和, 即将最值计数器上报的值求和后保存。 S105: The statistics module on the master control device operates the value of the counter reported on each distributed device according to the preset counter summary code, and saves the value of the counter in the performance data buffer area of the master control device; The code is summed, and the value reported by the most value counter is summed and saved.
S106: 总控设备将统计周期内所有计数器的值保存为性能文件上报到网 管系统中给用户呈现。 有一些特殊的全局最值计数器, 如用户数最大值 /最小值计数器和流量最 大值 /最小值计数器, 这些全局最值计数器会在多个分布式设备上同时统计, 如果按照传统的长时统计方式, 假设在长时统计周期 T秒内, 设备 A最大流 量的统计结果为 maxl ; 在长时统计周期 T秒内,设备 B最大流量的统计结果 为 max2; 则在长时统计周期 T秒内, 当前系统最大流量的统计结果为 sum ( maxl , max2 ) , 分布式设备将该统计结果上报给总控设备。 但实际的情况 是, 如果 maxl出现在长时统计周期的前半个周期, max2出现在长时统计周 期的后半个周期, 将 sum ( maxl , max2 )作为最终的统计结果上报给总控设 备是不正确的。 根据传统的长时统计的方法, 各个分布式设备的统计周期比 较长, 通常为 15分钟, 要间隔这么长的时间才能将计数器的值上报到总控设 备进行汇总, 不但会出现统计结果不准确的问题, 而且不能实时获取到某个 计数器全局总和, 无法是用户清楚地了解系统中设备的运行状况。 发明内容 本发明需要解决的技术问题是提供一种设备性能数据的上报方法、 设备 性能统计方法、 分布式设备、 总控设备及系统, 解决现有技术统计分布在各 个分布式设备上的最值计数器上报的值不准确的问题, 以提高系统统计全局 最值计数器的精度, 更加准确的反映系统中设备的运行状况。 为了解决上述技术问题, 本发明提供了一种设备性能数据的上报方法, 应用于分布式设备侧, 包括: 所述分布式设备将从数据源得到的全局最值计数器的值直接保存在第一 性能数据緩存区中, 或者, 根据预先定义的全局最值计数器操作码对全局最 值计数器的值求最值后保存在第一性能数据緩存区中; 所述分布式设备在一个统计周期内, 以设置的短时上报定时器的定时时 间为周期, 将保存在第一性能数据緩存区中的全局最值计数器的值多次上报 到总控设备。 优选地, 所述短时上报定时器的定时时间是秒级。 优选地, 所述分布式设备包括多个全局最值计数器, 所述分布式设备在 所述第一性能数据緩冲区中为所述多个全局最值计数器分配连续的存储空 间。 为了解决上述技术问题, 本发明提供了一种设备性能统计方法, 应用于 总控设备侧, 包括: 所述总控设备在一个统计周期内, 按照分布式设备上设置的短时上报定 时器的定时时间, 对各个分布式设备上报的全局最值计数器的值进行汇总; 所述总控设备对该统计周期内汇总得到的多个全局最值计数器的值求最 值, 将求最值的结果保存到第二性能数据緩存区中。 优选地, 所述总控设备对各个分布式设备上报的全局最值计数器的值进 行汇总, 包括: 所述总控设备根据预先定义的最值计数器汇总码对所述全局最值计数器 的值求和后, 保存在所述总控设备的汇总緩存区中。 优选地, 所述总控设备对该统计周期内汇总得到的多个全局最值计数器 的值求最值, 将求最值的结果保存到第二性能数据緩存区中, 包括: 所述总控设备根据预先定义的最值计数器汇总比较码对所述汇总緩存区 中的全局最值计数器的值运算后 ,保存在所述总控设备的比较更新緩存区中; 或者, 对所述汇总緩存区和所述比较更新緩存区中的全局最值计数器的值运 算后, 保存在所述总控设备的比较更新緩存区中; 在该统计周期结束后, 所述总控设备将所述比较更新緩存区中的全局最 值计数器的值保存到第二性能数据緩存区中。 优选地, 所述最值计数器汇总比较码定义为在所述总控设备上对所述汇 总緩存区和所述比较更新緩存区中保存的计数器的值进行比较, 求最值。 为了解决上述技术问题,本发明提供了一种设备性能的上报和统计方法, 应用于包括分布式设备和总控设备的系统, 该方法包括: 所述分布式设备如上所述的设备性能数据的上报方法对全局最值计数器 的值进行上报; 所述总控设备按照如上所述的设备性能统计方法对全局最值计数器的值 进行统计。 为了解决上述技术问题, 本发明还提供了一种分布式设备, 包括: 第一性能统计模块, 其设置为: 将从数据源得到的全局最值计数器的值 直接保存在第一性能数据緩存区中, 或者, 根据预先定义的全局最值计数器 操作码对全局最值计数器的值求最值后保存在第一性能数据緩存区中; 并在 一个统计周期内, 以短时上报定时器的定时时间为周期, 将保存在第一性能 数据緩存区中的全局最值计数器的值多次上报到总控设备; 与所述第一性能统计模块相连的短时上报定时器, 其设置为: 设定全局 最值计数器值的周期上报时间。 优选地, 所述短时上报定时器的定时时间是秒级。 优选地, 所述分布式设备包括多个全局最值计数器, 所述第一性能统计 模块设置为: 在所述第一性能数据緩冲区中为所述多个全局最值计数器分配 连续的存储空间。 为了解决上述技术问题, 本发明还提供了一种总控设备, 包括: 第二性能统计模块, 设置为: 在一个统计周期内, 按照分布式设备上设 置的短时上报定时器的定时时间, 对各个分布式设备上报的全局最值计数器 的值进行汇总; 并对该统计周期内汇总得到的多个全局最值计数器的值求最 值, 将求最值的结果保存到第二性能数据緩存区中。 优选地, 所述第二性能统计模块还设置了汇总緩存区; 所述第二性能统 计模块设置为: 对各个分布式设备上报的全局最值计数器的值进行汇总, 包 括: S106: The total control device saves the values of all the counters in the statistical period as performance files and reports them to the network management system for presentation to the user. There are some special global maximum counters, such as user maximum/minimum counter and flow max/min counter, which are counted simultaneously on multiple distributed devices, if traditional long-term statistics are used. The method is as follows: In the long-term statistical period T seconds, the statistical result of the maximum traffic of device A is maxl; in the long-term statistical period T seconds, the statistical result of the maximum traffic of device B In the long-term statistical period T seconds, the statistical result of the current system maximum traffic is sum ( maxl , max2 ), and the distributed device reports the statistical result to the master control device. However, the actual situation is that if maxl appears in the first half of the long-term statistical period, max2 appears in the second half of the long-term statistical period, and sum (maxl, max2) is reported to the master control device as the final statistical result. incorrect. According to the traditional method of long-term statistics, the statistical period of each distributed device is relatively long, usually 15 minutes. It takes such a long time to report the value of the counter to the master control device for aggregation. Not only will the statistical result be inaccurate. The problem, and can not get the global sum of a counter in real time, can not be the user clearly understand the health of the equipment in the system. SUMMARY OF THE INVENTION The technical problem to be solved by the present invention is to provide a device performance data reporting method, a device performance statistics method, a distributed device, a total control device, and a system, which solve the maximum value of the prior art statistical distribution on each distributed device. The problem that the value reported by the counter is inaccurate, so as to improve the accuracy of the system to count the global maximum value counter, and more accurately reflect the running status of the equipment in the system. In order to solve the above technical problem, the present invention provides a method for reporting device performance data, which is applied to a distributed device side, and includes: the distributed device directly saves a value of a global maximum value counter obtained from a data source in a first In the performance data buffer, or in the first performance data buffer, the maximum value of the global maximum value counter is obtained according to a predefined global maximum value counter operation code; the distributed device is in a statistical period, The value of the global maximum value counter stored in the first performance data buffer is reported to the master device multiple times in a cycle of the set time period of the short-term reporting timer. Preferably, the timing time of the short-term reporting timer is a second level. Preferably, the distributed device includes a plurality of global maximum value counters, and the distributed device allocates a continuous storage space for the plurality of global highest value counters in the first performance data buffer. In order to solve the above technical problem, the present invention provides a device performance statistics method, which is applied to the main control device side, and includes: The total control device summarizes the values of the global maximum value counter reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; The values of the plurality of global maximum value counters summarized in the statistical period are obtained as the maximum value, and the result of the highest value is saved in the second performance data buffer. Preferably, the total control device summarizes the value of the global maximum value counter reported by each distributed device, and the method includes: the total control device searching for the value of the global maximum value counter according to a preset maximum value counter summary code And after, it is saved in the summary buffer of the master device. Preferably, the total control device obtains a maximum value of the plurality of global maximum value counters that are summarized in the statistical period, and saves the result of the highest value to the second performance data buffer, including: And storing, by the device according to the preset maximum value counter summary comparison code, the value of the global maximum value counter in the summary buffer area, and storing the value in the comparison update buffer area of the total control device; or, for the summary buffer area And storing the value of the global maximum value counter in the comparison update buffer area, and storing the value in the comparison update buffer area of the master control device; after the statistics period ends, the master control device buffers the comparison update buffer The value of the global maximum value counter in the zone is saved to the second performance data buffer. Preferably, the most value counter summary comparison code is defined to compare values of counters stored in the summary buffer area and the comparison update buffer area on the master control device to obtain a maximum value. In order to solve the above technical problem, the present invention provides a device performance reporting and statistical method, which is applied to a system including a distributed device and a total control device, the method comprising: the distributed device as described above, device performance data The reporting method reports the value of the global maximum value counter; the master control device performs statistics on the value of the global highest value counter according to the device performance statistics method as described above. In order to solve the above technical problem, the present invention further provides a distributed device, including: a first performance statistics module, configured to: a value of a global maximum value counter obtained from a data source Or directly stored in the first performance data buffer, or the highest value of the global maximum value counter according to the predefined global maximum value counter operation code is saved in the first performance data buffer; and in a statistical period The value of the global maximum value counter stored in the first performance data buffer is reported to the master control device multiple times in a period of time of the short-term reporting timer; the short-term connection with the first performance statistics module The reporting timer is set to: Set the periodic reporting time of the global maximum counter value. Preferably, the timing time of the short-term reporting timer is a second level. Preferably, the distributed device includes a plurality of global maximum value counters, and the first performance statistics module is configured to: allocate consecutive storages for the plurality of global highest value counters in the first performance data buffer space. In order to solve the above technical problem, the present invention further provides a total control device, including: a second performance statistics module, configured to: in a statistical period, according to a timing time of a short-time reporting timer set on a distributed device, The values of the global maximum value counters reported by the distributed devices are summarized; the maximum value of the plurality of global maximum value counters summarized in the statistical period is obtained, and the result of the highest value is saved to the second performance data cache. In the district. Preferably, the second performance statistics module further includes a summary buffer area. The second performance statistics module is configured to: summarize the values of the global maximum value counters reported by each distributed device, including:
所述第二性能统计模块根据预先定义的最值计数器汇总码对所述全局最 值计数器的值求和后, 保存在所述汇总緩存区中。 优选地, 所述第二性能统计模块还设置了比较更新緩存区; 所述第二性 能统计模块设置为: 对该统计周期内汇总得到的多个全局最值计数器的值求 最值, 将求最值的结果保存到第二性能数据緩存区中, 包括:  The second performance statistics module sums the values of the global maximum counter according to a predefined maximum value counter summary code and stores them in the summary buffer. Preferably, the second performance statistics module further sets a comparison update buffer area; the second performance statistics module is configured to: obtain a maximum value of the plurality of global maximum value counters summarized in the statistical period, and The most valuable result is saved to the second performance data buffer, including:
所述第二性能统计模块根据预先定义的最值计数器汇总比较码对所述汇 总緩存区中的全局最值计数器的值运算后, 保存在所述比较更新緩存区中; 或者, 对所述汇总緩存区和所述比较更新緩存区中的全局最值计数器的值运 算后, 保存在所述比较更新緩存区中; 所述第二性能统计模块还设置为: 在该统计周期结束后, 将所述比较更 新緩存区中的全局最值计数器的值保存到所述第二性能数据緩存区中。 And the second performance statistic module is stored in the comparison update buffer area after the value of the global maximum value counter in the summary buffer area is calculated according to the preset maximum value counter summary comparison code; or, for the summary After the buffer area and the value of the global maximum value counter in the comparison update buffer are operated, they are saved in the comparison update buffer area; The second performance statistics module is further configured to: save the value of the global maximum value counter in the comparison update buffer to the second performance data buffer after the statistics period ends.
优选地, 所述最值计数器汇总比较码定义为在所述总控设备上对所述汇 总緩存区和所述比较更新緩存区中保存的最值计数器的值进行比较,求最值。 为了解决上述技术问题, 本发明还提供了一种设备性能统计系统, 包括 上述分布式设备和总控设备。 附图概述 图 1 是传统的设备性能统计系统结构图;  Preferably, the highest value counter summary comparison code is defined to compare the values of the highest value counters stored in the summary buffer area and the comparison update buffer area on the master control device to obtain a maximum value. In order to solve the above technical problem, the present invention also provides a device performance statistics system, including the above distributed device and the total control device. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a structural diagram of a conventional equipment performance statistics system;
图 2 是传统的长时分布式釆样长时汇总的方法流程图; 图 3是实施例中设备性能统计系统结构图; 图 4是实施例中设备性能统计方法流程图; 图 5是一个应用示例中设备性能统计系统结构图; 图 6是一个应用示例中设备性能统计方法流程图。 本发明的较佳实施方式  2 is a flow chart of a conventional long-term distributed sample long-term summary method; FIG. 3 is a structural diagram of a device performance statistical system in the embodiment; FIG. 4 is a flow chart of a device performance statistical method in the embodiment; The device performance statistics system structure diagram in the example; FIG. 6 is a flow chart of the device performance statistics method in an application example. Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例:  Example:
如图 3所示, 本实施例提供了一种设备性能统计系统, 包括多个分布式 设备和一个总控设备, 其中: 所述分布式设备包括: 业务模块, 第一性能统计模块以及定时器模块, 其中:  As shown in FIG. 3, this embodiment provides a device performance statistics system, including a plurality of distributed devices and a total control device, where: the distributed device includes: a service module, a first performance statistics module, and a timer. Module, where:
所述业务模块上报数据到第一性能统计模块; 所述第一性能统计模块, 用于将从数据源得到的全局最值计数器的值直 接保存在第一性能数据緩存区中, 或者, 根据预先定义的全局最值计数器操 作码对全局最值计数器的值求最值后保存在第一性能数据緩存区中; 并在一 个统计周期内, 以短时上报定时器的定时时间为周期, 将保存在第一性能数 据緩存区中的全局最值计数器的值多次上报到总控设备; 其中, 所述分布式设备包括多个全局最值计数器, 所述第一性能统计模 块在所述第一性能数据緩冲区中为所述多个全局最值计数器分配连续的存储 空间, 这样可以提高寻址效率。 由于全局最值计数器的个数可能会很多, 如果数据量比较大, 将多个全 局最值计数器的值分多个消息包发送给所述总控设备。 所述定时器模块包含了长时统计周期定时器和短时上报定时器, 长时统 计周期定时器用于设定第一性能统计模块将第一性能数据緩冲区上报到第二 性能统计模块的上报时间, 短时上报定时器用于设定全局最值计数器值的周 期上报时间; 所述短时上报定时器的定时时间是秒级。 作为一种优选的方式, 可以设 置为能够被统计周期整除。 所述总控设备包括第二性能统计模块, 所述第二性能统计模块开辟了第 二性能数据緩存区, 其中: The service module reports data to the first performance statistics module; the first performance statistics module is configured to directly use the value of the global maximum value counter obtained from the data source Stored in the first performance data buffer, or the highest value of the global maximum counter according to the predefined global maximum counter code, and stored in the first performance data buffer; and in a statistical period The value of the global maximum value counter stored in the first performance data buffer is reported to the master control device multiple times in a period of time of the short-term reporting timer; wherein the distributed device includes multiple global a value counter, the first performance statistics module allocates a continuous storage space for the plurality of global highest value counters in the first performance data buffer, which can improve addressing efficiency. Since the number of global maximum value counters may be many, if the amount of data is relatively large, the values of the plurality of global maximum value counters are sent to the total control device in multiple message packets. The timer module includes a long-term statistical period timer and a short-term reporting timer, and the long-term statistical period timer is configured to set the first performance statistics module to report the first performance data buffer to the second performance statistics module. The reporting time, the short-time reporting timer is used to set the periodic reporting time of the global maximum counter value; the timing of the short-time reporting timer is the second level. As a preferred way, it can be set to be divisible by the statistical period. The master control device includes a second performance statistics module, and the second performance statistics module opens a second performance data buffer region, where:
所述第二性能统计模块, 用于在一个统计周期内, 按照分布式设备上设 置的短时上报定时器的定时时间, 对各个分布式设备上报的全局最值计数器 的值进行汇总; 并对该统计周期内汇总得到的多个全局最值计数器的值求最 值, 将求最值的结果保存到第二性能数据緩存区中。 另外, 所述第二性能统计模块还设置了汇总緩存区和比较更新緩存区, 其中:  The second performance statistic module is configured to summarize the values of the global maximum value counters reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; The values of the plurality of global maximum value counters summarized in the statistical period are obtained as the maximum value, and the result of the highest value is saved in the second performance data buffer. In addition, the second performance statistics module further includes a summary buffer area and a comparison update buffer area, where:
所述第二性能统计模块对各个分布式设备上报的全局最值计数器的值进 行汇总, 包括:  The second performance statistics module summarizes the values of the global maximum value counters reported by each distributed device, including:
所述第二性能统计模块根据预先定义的最值计数器汇总码对所述全局最 值计数器的值求和后, 保存在所述汇总緩存区中。 所述第二性能统计模块对该统计周期内汇总得到的多个全局最值计数器 的值求最值, 将求最值的结果保存到第二性能数据緩存区中, 包括: The second performance statistic module sums the values of the global maximum value counter according to a preset maximum value counter summary code, and saves in the summary buffer area. The second performance statistics module obtains a maximum value of the plurality of global maximum value counters that are summarized in the statistical period, and saves the result of the highest value to the second performance data buffer, including:
所述第二性能统计模块根据预先定义的最值计数器汇总比较码对所述汇 总緩存区中的全局最值计数器的值运算后, 保存在所述比较更新緩存区中; 或者, 对所述汇总緩存区和所述比较更新緩存区中的全局最值计数器的值运 算后, 保存在所述比较更新緩存区中; 其中, 所述最值计数器汇总比较码定义为在所述总控设备上对所述汇总 緩存区和所述比较更新緩存区中保存的最值计数器的值进行比较, 求最值。 在该统计周期结束后, 所述第二性能统计模块将所述比较更新緩存区中 的全局最值计数器的值保存到所述第二性能数据緩存区中。 需要说明的是, 在上文中的第一和第二性能数据緩存区泛指所有用于緩 存最值计数器的值的緩存区。 在本实施例中, 釆用上述设备性能统计系统, 结合附图 4对本实施例中 的设备性能数据的上报方法和设备性能统计方法进一步进行详细描述。 如图 4所示, 设备性能数据上报的具体流程包括以下步骤:  And the second performance statistic module is stored in the comparison update buffer area after the value of the global maximum value counter in the summary buffer area is calculated according to the preset maximum value counter summary comparison code; or, for the summary And storing, in the comparison update buffer area, the buffer value and the value of the global maximum value counter in the comparison update buffer area; wherein the highest value counter summary comparison code is defined as being on the total control device The summary buffer area is compared with the value of the highest value counter held in the comparison update buffer area to find the highest value. After the end of the statistical period, the second performance statistics module saves the value of the global maximum value counter in the comparison update buffer to the second performance data buffer. It should be noted that the first and second performance data buffers in the above generally refer to all buffers for buffering the value of the highest value counter. In this embodiment, the device performance statistics system and the device performance data reporting method in the embodiment are further described in detail in conjunction with FIG. As shown in Figure 4, the specific process of reporting device performance data includes the following steps:
S201: 各个分布式设备将从数据源得到的全局最值计数器的值直接保存 在第一性能数据緩存区中, 或者, 根据预先定义的全局最值计数器操作码对 全局最值计数器的值求最值后保存在第一性能数据緩存区中; S201: each distributed device directly saves the value of the global maximum value counter obtained from the data source in the first performance data buffer, or searches for the value of the global maximum value counter according to the predefined global maximum value counter operation code. The value is saved in the first performance data buffer;
S202: 所述分布式设备在一个统计周期内, 以设置的短时上报定时器的 定时时间为周期, 将保存在第一性能数据緩存区中的全局最值计数器的值多 次上报到总控设备; 接下来, 设备性能统计的具体流程包括以下步骤: S202: The distributed device reports the value of the global maximum value counter stored in the first performance data buffer to the total control multiple times in a statistical period, with a set time period of the short-term reporting timer. Equipment; Next, the specific process of equipment performance statistics includes the following steps:
S203 : 总控设备在一个统计周期内, 按照分布式设备上设置的短时上报 定时器的定时时间,对各个分布式设备上报的全局最值计数器的值进行汇总; S204: 所述总控设备对该统计周期内汇总得到的多个全局最值计数器的 值求最值, 将求最值的结果保存到第二性能数据緩存区中。 至此, 该设备性能统计系统完成了性能数据的上报和统计, 另外, 在统 计周期结束后, 还包括以下步骤: S203: The total control device summarizes the value of the global maximum value counter reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; S204: the total control device The value of the plurality of global maximum value counters summarized in the statistical period is obtained, and the result of the highest value is saved in the second performance data buffer. At this point, the device performance statistics system completes the reporting and statistics of the performance data. In addition, after the statistics period ends, the following steps are also included:
S205: 各分布式设备上的第一性能统计模块还将其他非全局最值计数器 的值也上报到总控设备; S206: 总控设备上的第二性能统计模块根据预先定义的其他计数器汇总 码, 对各个分布式设备上报的其他非全局最值计数器的值进行操作, 将其他 非全局最值计数器的值保存在总控设备的性能数据緩存区中; S205: The first performance statistics module on each distributed device also reports the values of the other non-global maximum value counters to the master control device; S206: the second performance statistics module on the master control device is based on other predefined counter summary codes. And operating the values of other non-global maximum counters reported by the distributed devices, and storing the values of the other non-global maximum counters in the performance data buffer of the master device;
S207: 总控设备将统计周期内所有计数器的值保存为性能文件上报到网 管系统中给用户呈现。 S207: The master control device saves the values of all the counters in the statistical period as performance files and reports them to the network management system for presentation to the user.
上述步骤 S205~ S206与现有技术相同, 此处不再赘述。 在一个应用示例中, 设备性能统计系统结构如图 5中所示, 在分布式设 备上: 分布式设备 1和分布式设备 n上需要统计的计数器包括: 当前值计数 器 A, 最大值计数器 B, 最小值计数器 C, 其中计数器 A、 B和 C的值保存 在各个分布式设备上的性能数据緩存区中, 一种优选的存储方式是, 将全局 最值计数器的值存储在连续的緩存区内, 这样, 可以方便最值计数器的寻址, 只要找到起始位置和终止位置即可。 在总控设备上: 总控设备上的性能统计模块开辟了性能数据緩存区, 另 外还设置了汇总緩存区和比较更新緩存区; 其中, 汇总緩存区用来保存分布 式设备 1和分布式设备 n的最值计数器上报的值的汇总值; 比较更新緩存区 用来保存汇总值的最值, 即, 上个短时釆样周期的汇总值和本釆样周期汇总 值中较大或较小的值;性能数据緩存区保存的是需要呈现给用户的最终结果。 在分布式设备 n上,性能数据緩存区命名为 DataBuffer— n,则当前计数器 A、 最大值计数器 B、 最小值计数器 C 的緩存区分别为 DataBuffer— n[a]、 DataBuffer— n[b]和 DataBuffer— n[c]; 在总控设备上, 汇总緩存区命名为 H, 则 最大值计数器 B的汇总緩存区为 H(b), 最小值计数器 C的汇总緩存区为 H(c), 比较更新緩存区命名为 G, 则最大值计数器 B的比较更新緩存区为 G(b), 最 小值计数器 C的比较更新緩存区为 G(c); 下面, 以上述图 5中的设备性能统计系统为例, 结合附图 6对本实施例 中设备性能数据上报和统计的方法进一步详细说明如下, 如图 6中所示, 本 方法包括以下步骤: The above steps S205 to S206 are the same as the prior art, and are not described herein again. In an application example, the device performance statistics system structure is as shown in FIG. 5, on the distributed device: the counters that need to be counted on the distributed device 1 and the distributed device n include: a current value counter A, a maximum value counter B, a minimum counter C, wherein the values of the counters A, B, and C are stored in a performance data buffer on each distributed device. A preferred storage method is to store the value of the global maximum counter in a continuous buffer. In this way, it is convenient to address the most value counter, as long as the start position and the end position are found. On the master control device: The performance statistics module on the master control device opens up the performance data buffer area, and also sets the summary buffer area and the comparison update buffer area; wherein the summary buffer area is used to save the distributed device 1 and the distributed device. The summary value of the value reported by the maximum value counter of n; the comparison update buffer is used to save the maximum value of the summary value, that is, the summary value of the last short-time sampling period and the summary value of the sampling period are larger or smaller The value; the performance data cache holds the final result that needs to be presented to the user. On the distributed device n, the performance data buffer is named DataBuffer—n, then the buffers of the current counter A, the maximum counter B, and the minimum counter C are DataBuffer—n[a], DataBuffer—n[b], and DataBuffer— n[c]; On the master control device, the summary buffer is named H, then the summary buffer of maximum counter B is H(b), and the summary buffer of minimum counter C is H(c), compare The update buffer is named G, then the comparison update buffer of the maximum counter B is G(b), and the comparison update buffer of the minimum counter C is G(c); below, the device performance statistics system in FIG. 5 above. For example, the present embodiment will be described with reference to FIG. 6 . The method for reporting and counting device performance data is further described in detail below. As shown in FIG. 6, the method includes the following steps:
S301 : 在各个分布式设备(l~n )上设置短时上报定时器, 设定 t秒为短 时上报周期 (例如, 6秒) ; 设置长时统计周期定时器, 设定 T分钟为统计 周期 (例如, 现有技术中通常为 15分钟) ; S301: Set a short-time reporting timer on each distributed device (1~n), set t seconds to a short-time reporting period (for example, 6 seconds); set a long-term statistical period timer, set T minutes as statistics Cycle (for example, 15 minutes in the prior art);
S302 : 开启上述定时器, 各个分布式设备上的性能统计模块开始对数据 源进行釆样, 以分布式设备 n为例, 分布式设备 n将当前釆样值 X保存在当 前计数器 A的緩存区 DataBuffer— n[a]中; S302: The timer is started, and the performance statistics module on each distributed device starts to sample the data source. Taking the distributed device n as an example, the distributed device n saves the current sample value X in the buffer area of the current counter A. DataBuffer—n[a];
S303: 将当前计数器 A的緩存区中的值 DataBuffer— n[a]=x作为釆样值保 存在最大值计数器 B的緩存区 DataBuffem[b]中, 同时将 DataBuffem[a] =x的 值作为釆样值保存在最小值计数器 C 的緩存区 DataBuffem[c]中; 即, 将当前釆样值放入分布式设备 n上最值计数器对应的性能数据緩存 区内, 为了不改变传统的总控设备和分布式设备上的性能统计模块开辟的性 能数据緩存区的划分, 将分布式设备上当前计数器的值还是分别保存于最值 计数器的緩存区中, 因为, 相应的, 总控设备上也划分了相应的最值计数器 的緩存区, 在收到分布式设备上报的值时, 总控设备可以按照最值计数器的 緩存区进行保存。 当然, 也可以重新为性能数据緩存分配内存空间, 例如, 分布式设备上分配当前緩存区和计数器短时釆样緩存区, 对应的, 总控设备 上也分配当前緩存区和计数器短时釆样緩存区、 比较区, 将分布式设备上报 的釆样值保存在总控设备上分配的对应緩存区中。 S303: The value DataBuffer_n[a]=x in the buffer area of the current counter A is stored as a sample value in the buffer area DataBuffem[b] of the maximum value counter B, and the value of DataBuffem[a]=x is taken as The sample value is stored in the buffer area DataBuffem[c] of the minimum counter C; that is, the current sample value is placed in the performance data buffer corresponding to the highest value counter on the distributed device n, in order not to change the traditional master control The performance data buffer partitioned by the performance statistics module on the device and the distributed device, and the value of the current counter on the distributed device is also saved in the buffer of the highest value counter respectively, because, correspondingly, the total control device also The buffer area of the corresponding maximum value counter is divided. When receiving the value reported by the distributed device, the master control device can save according to the buffer area of the highest value counter. Of course, it is also possible to re-allocate the memory space for the performance data cache. For example, the current buffer area and the counter short-time buffer area are allocated on the distributed device, and correspondingly, the current buffer area and the counter are also allocated for a short time. The buffer area and the comparison area are saved in the corresponding buffer area allocated by the distributed control device.
S304: t秒到后, 分布式设备 n上的性能统计模块将所有的全局最值计数 器值发送到总控设备上; 即, 将最大值计数器 B的緩存区 DataBuffem[b]和最小值计数器 C 的緩 存区 DataBuffem[c]中的值全部上报; 如果数据量比较大, 可以分多个消息包 发送。 S304: After t seconds, the performance statistics module on the distributed device n sends all global maximum value counter values to the master control device; that is, the buffer area DataBuffem[b] and the minimum value counter C of the maximum value counter B are The values in the buffer area DataBuffem[c] are all reported; if the amount of data is relatively large, it can be sent in multiple message packets.
S305 : 总控设备上的性能统计模块开辟汇总緩存区, 汇总保存各个分布 式设备上报的最值计数器的釆样值; 性能统计模块将各个分布式设备 ( l~n )上报的最值计数器的釆样值与本 地汇总緩存区里保存的值进行计算(汇总码为 "求和" ) : 汇 总緩存 区 H(b) = DataBuffer— l [b]+ DataBuffer— 2[b] + ... + DataBuffer— n[b]; 汇 总 緩存 区 H(c) = DataBuffer— l [c]+ DataBuffer— 2 [c] + ... +S305: The performance statistics module on the master control device opens a summary buffer area, and summarizes the sample values of the highest value counters reported by each distributed device; The performance statistics module calculates the value of the most value counter reported by each distributed device ( l~n ) and the value saved in the local summary buffer (summary code is "summation"): summary buffer H(b) = DataBuffer— l [b]+ DataBuffer— 2[b] + ... + DataBuffer— n[b]; Summary buffer H(c) = DataBuffer— l [c]+ DataBuffer— 2 [c] + .. . +
DataBuffer— n[c]; DataBuffer— n[c];
S306: 总控设备上的性能统计模块根据最值计数器汇总比较码将汇总緩 存区里的值和比较更新緩存区里的值进行比较, 求最值后保存在比较更新緩 存区里; 其中, 最大值计数器 B的汇总比较码为 "求最大值" , 最小值计数器 C 的汇总比较码为 "求最小值" , 另外, 在实际实施时, 性能统计模块接收到 最值计数器的值对其进行汇总后, 会有一个延时, 在本实施例中, 假设这个 延时为延迟 t/2秒(0.3秒) , 步骤 S306具体包括以下步骤: S306: The performance statistics module on the master control device compares the value in the summary buffer with the value in the comparison update buffer according to the highest value counter summary comparison code, and searches for the maximum value and stores it in the comparison update buffer area; The summary comparison code of the value counter B is "maximum value", and the summary comparison code of the minimum value counter C is "minimum value". In addition, in actual implementation, the performance statistics module receives the value of the highest value counter and summarizes it. After that, there is a delay. In this embodiment, assuming that the delay is a delay of t/2 seconds (0.3 seconds), step S306 specifically includes the following steps:
1 )如果当前是数据统计周期 T内的第一个短时上>¾周期 t, 在 t秒短时 上报周期延长 t/2的时间点,将汇总緩存区内的值直接作为比较更新緩存区值 保存起来: 比较更新緩存区 G(b) = H(b); 比较更新緩存区 G(c) = H(c); 1) If it is the first short time >3⁄4 period t in the data statistics period T, the time in the summary buffer area is directly used as the comparison update buffer area at the time point when the reporting period is extended by t/2 in t seconds. The value is saved: Compare update buffer G(b) = H(b); Compare update buffer G(c) = H(c);
从第二个短时上报周期 t开始, 在 t秒短时上报周期延长 t/2的时间点, 需要将汇总緩存区里的值与比较緩存区里的值进行比较, 取两者间最大 /最小 值保存到比较更新緩存区: 比较更新緩存区 G, (b) = Max(H(b), G(b)); 比较更新緩存区 G, (c) = Min(H(c), G(c));  Starting from the second short-term reporting period t, the time period in which the reporting period is extended by t/2 in t seconds is short, and the value in the summary buffer area needs to be compared with the value in the comparison buffer area, which is the largest between the two. The minimum value is saved to the compare update buffer: Compare update buffer G, (b) = Max(H(b), G(b)); Compare update buffer G, (c) = Min(H(c), G (c));
2) 汇总緩存区里的值清零; S307: 各个分布式设备上的性能统计模块判断长时统计周期定时器是否 到时, 如果没有, 转至步骤 S302, 否则转至步骤 S308; S308: 长时统计周期 T到时, 各个分布式设备上的性能统计模块将所有 的最值计数器值上报给总控设备; 同时, 将其他非全局最值计数器的值也上 报到总控设备; 实际实施时,存在 t不能被 Τ整除的情况, 虽然短时上报周期 t还没有到 时, 但由于长时统计周期 T已经到时, 所以需要将已经緩存在最大值计数器 B的緩存区 DataBuffem[b]和最小值计数器 C 的緩存区 DataBuffem[c]中的釆 样值全部上报。 2) The value in the summary buffer is cleared; S307: The performance statistics module on each distributed device determines whether the long-term statistical period timer expires, if not, proceeds to step S302, otherwise proceeds to step S308; S308: When the long-term statistical period T is up, the performance statistics module on each distributed device reports all the maximum value counter values to the master control device; at the same time, the values of the other non-global maximum value counters are also reported to the master control device; In actual implementation, there is a case where t cannot be divisible. Although the short-term reporting period t has not yet expired, since the long-term statistical period T has expired, it is necessary to buffer the data area DataBuffem that has been buffered in the maximum value counter B. b] and the value of the minimum value counter C in the buffer DataBuffem[c] are all reported.
S309: 总控设备上的性能统计模块将各个分布式设备上报的最值计数器 的釆样值汇总保存到汇总緩存区; 同时, 根据预先定义的其他非全局最值计 数器的汇总码, 对各个分布式设备上报的其他非全局最值计数器的值进行运 算, 将其他非全局最值计数器的值保存在总控设备的性能数据緩存区中; 与 S305类似,只是这是长时统计周期 T到后,各个分布式设备最后一次 上报的剩余的全部最值计数器值。 S309: The performance statistics module on the master control device saves the sample values of the most value counters reported by each distributed device to the summary buffer area; and, according to the summary codes of other non-global maximum value counters defined in advance, each distribution The values of other non-global maximum counters reported by the device are calculated, and the values of other non-global maximum counters are saved in the performance data buffer of the master device; similar to S305, except that this is a long-term statistical period T to after All remaining maximum value counter values reported by each distributed device last time.
S310: 总控设备上的性能统计模块根据最值计数器汇总比较码将汇总緩 存区里的值和比较更新緩存区里的值进行比较, 求最值后保存在比较更新緩 存区里; 与 S306类似,只是这是长时统计周期 T到后,各个分布式设备最后一次 上报的剩余的全部最值计数器的值。 S310: The performance statistics module on the master control device compares the value in the summary buffer with the value in the comparison update buffer according to the highest value counter summary comparison code, and searches for the highest value and stores it in the comparison update buffer; similar to S306 However, this is the value of all remaining maximum value counters reported by each distributed device last time after the long-term statistical period T.
S311 : 将比较更新緩存区里的值作为本次长时统计周期 T内最值计数器 的值保存到总控设备上的性能数据緩存区; S311: saving the value in the comparison update buffer area as the value of the most value counter in the long-term statistical period T to the performance data buffer area on the master control device;
S312: 将长时统计周期 T内总控设备上的性能数据緩存区中所有计数器 (包括全局最值计数器和其他非全局最值计数器) 的值保存为性能文件上报 到网管系统中给用户呈现; S312: Save the values of all the counters (including the global maximum value counter and other non-global maximum value counters) in the performance data buffer area of the total control device in the long-term statistical period T as performance files and report them to the network management system for presentation to the user;
S313: 将各分布式设备上的性能数据緩存区、 总控设备上的汇总緩存区、 比较更新緩存区、 性能数据緩存区的值清零, 等待下个周期的数据上报处理。 从上述实施例可以看出, 相对于现有技术, 上述实施例中的设备性能数 据的上报方法、 设备性能统计方法、 分布式设备、 总控设备及系统, 针对全 局最值计数器, 分布式设备在原有长时性能统计的基础上, 增加短时上报定 时器, 将短周期内全局最值计数器的值上报给总控设备, 总控设备在短周期 内对获取到的全局最值计数器的值进行汇总比较求最值的操作, 从而获取到 全网长周期内性能指标的正确统计, 提高系统统计全局最值计数器的精度, 更加准确的反映系统中设备的运行状况。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 S313: Clear the value of the performance data buffer area on the distributed device, the summary buffer area on the master control device, the comparison update buffer area, and the performance data buffer area, and wait for the data reporting process of the next period. It can be seen from the foregoing embodiments that, in comparison with the prior art, the device performance data reporting method, the device performance statistics method, the distributed device, the total control device, and the system in the foregoing embodiments are Based on the original long-term performance statistics, the distributed device adds a short-time reporting timer to report the value of the global maximum counter in the short period to the master control device. The master control device acquires the short-term period. The value of the global maximum value counter is summed to compare and calculate the highest value operation, thereby obtaining the correct statistics of the performance indicators in the whole network long period, improving the accuracy of the system statistics global maximum value counter, and more accurately reflecting the operation of the equipment in the system. situation. One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并非用于限定本发明的保护范 围。 根据本发明的发明内容, 还可有其他多种实施例, 在不背离本发明精神 改变和变形, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. In view of the present invention, various other modifications, equivalents, improvements, etc., should be made without departing from the spirit and scope of the invention. It is included in the scope of protection of the present invention.
工业实用性 本发明实施例提供的设备性能数据的上报方法、 设备性能统计方法、 分 布式设备、 总控设备及系统, 针对全局最值计数器, 分布式设备在原有长时 性能统计的基础上, 增加短时上报定时器, 将短周期内全局最值计数器的值 上报给总控设备, 总控设备在短周期内对获取到的全局最值计数器的值进行 汇总求最值操作, 从而获取到全网长周期内性能指标的正确统计, 提高系统 统计全局最值计数器的精度, 更加准确的反映系统中设备的运行状况。 Industrial Applicability The method for reporting device performance data, the device performance statistics method, the distributed device, the total control device, and the system provided by the embodiments of the present invention are based on the original long-term performance statistics of the global maximum value counter. The short-term reporting timer is added, and the value of the global maximum value counter in the short period is reported to the total control device, and the total control device summarizes the value of the obtained global maximum value counter in a short period to obtain the maximum value operation, thereby obtaining The correct statistics of the performance indicators in the long period of the whole network, improve the accuracy of the system statistics global maximum value counter, and more accurately reflect the operating status of the equipment in the system.

Claims

权 利 要 求 书 Claim
1、 一种设备性能数据的上报方法, 应用于分布式设备侧, 包括: 所述分布式设备将从数据源得到的全局最值计数器的值直接保存在第一 性能数据緩存区中, 或者, 根据预先定义的全局最值计数器操作码对全局最 值计数器的值求最值后保存在第一性能数据緩存区中; A method for reporting device performance data, which is applied to a distributed device side, includes: the distributed device directly saves a value of a global maximum value counter obtained from a data source in a first performance data buffer area, or The maximum value of the global maximum value counter is obtained according to a predefined global maximum value counter operation code and stored in the first performance data buffer area;
所述分布式设备在一个统计周期内, 以设置的短时上报定时器的定时时 间为周期, 将保存在第一性能数据緩存区中的全局最值计数器的值多次上报 到总控设备。  The distributed device reports the value of the global maximum value counter stored in the first performance data buffer to the master control device multiple times in a statistical period with the set timing of the short-term reporting timer as a period.
2、 如权利要求 1所述的方法, 其中,  2. The method of claim 1 wherein
所述短时上报定时器的定时时间是秒级。  The timing of the short-term reporting timer is in the order of seconds.
3、 如权利要求 2所述的方法, 其中,  3. The method of claim 2, wherein
所述分布式设备包括多个全局最值计数器, 所述分布式设备在所述第一 性能数据緩冲区中为所述多个全局最值计数器分配连续的存储空间。  The distributed device includes a plurality of global highest value counters, and the distributed device allocates a continuous storage space for the plurality of global highest value counters in the first performance data buffer.
4、 一种设备性能统计方法, 应用于总控设备侧, 包括:  4. A statistical method for device performance, applied to the side of the total control device, including:
所述总控设备在一个统计周期内, 按照分布式设备上设置的短时上报定 时器的定时时间, 对各个分布式设备上报的全局最值计数器的值进行汇总; 所述总控设备对该统计周期内汇总得到的多个全局最值计数器的值求最 值, 将求最值的结果保存到第二性能数据緩存区中。  The total control device summarizes the values of the global maximum value counter reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; The values of the plurality of global maximum value counters summarized in the statistical period are obtained as the maximum value, and the result of the highest value is saved in the second performance data buffer.
5、 如权利要求 4所述的方法, 其中,  5. The method of claim 4, wherein
所述总控设备对各个分布式设备上报的全局最值计数器的值进行汇总, 包括: 所述总控设备根据预先定义的最值计数器汇总码对所述全局最值计数 器的值求和后, 保存在所述总控设备的汇总緩存区中。  And summarizing, by the total control device, the value of the global maximum value counter reported by each distributed device, where: the total control device sums the value of the global maximum value counter according to a preset maximum value counter summary code, It is saved in the summary buffer of the master device.
6、 如权利要求 5所述的方法, 其中,  6. The method of claim 5, wherein
所述总控设备对该统计周期内汇总得到的多个全局最值计数器的值求最 值, 将求最值的结果保存到第二性能数据緩存区中, 包括:  The total control device obtains a maximum value of the plurality of global maximum value counters that are summarized in the statistical period, and saves the result of the highest value to the second performance data buffer, including:
所述总控设备根据预先定义的最值计数器汇总比较码对所述汇总緩存区 中的全局最值计数器的值运算后,保存在所述总控设备的比较更新緩存区中; 或者, 对所述汇总緩存区和所述比较更新緩存区中的全局最值计数器的值运 算后, 保存在所述总控设备的比较更新緩存区中; The master control device summarizes the comparison code according to a preset maximum value counter to the summary buffer area After the value of the global maximum value counter is calculated, it is saved in the comparison update buffer area of the master control device; or, after the value of the global maximum value counter in the summary buffer area and the comparison update buffer area is calculated And being saved in a comparison update buffer area of the master control device;
在该统计周期结束后, 所述总控设备将所述比较更新緩存区中的全局最 值计数器的值保存到第二性能数据緩存区中。  After the end of the statistical period, the master control device saves the value of the global highest value counter in the comparison update buffer to the second performance data buffer.
7、 如权利要求 6所述的方法, 其中,  7. The method of claim 6, wherein
所述最值计数器汇总比较码定义为在所述总控设备上对所述汇总緩存区 和所述比较更新緩存区中保存的计数器的值进行比较, 求最值。  The highest value counter summary comparison code is defined to compare values of counters stored in the summary buffer area and the comparison update buffer area on the master control device to obtain a maximum value.
8、一种设备性能的上报和统计方法, 应用于包括分布式设备和总控设备 的系统, 该方法包括:  8. A device performance reporting and statistical method for a system including a distributed device and a master control device, the method comprising:
所述分布式设备按照如权利要求 1或 2或 3所述的设备性能数据的上报 方法对全局最值计数器的值进行上报;  The distributed device reports the value of the global maximum value counter according to the reporting method of the device performance data according to claim 1 or 2 or 3;
所述总控设备按照如权利要求 4或 5或 6或 7所述的设备性能统计方法 对全局最值计数器的值进行统计。  The master control device counts the value of the global highest value counter according to the device performance statistical method according to claim 4 or 5 or 6 or 7.
9、 一种分布式设备, 包括:  9. A distributed device, comprising:
第一性能统计模块, 其设置为: 将从数据源得到的全局最值计数器的值 直接保存在第一性能数据緩存区中, 或者, 根据预先定义的全局最值计数器 操作码对全局最值计数器的值求最值后保存在第一性能数据緩存区中; 并在 一个统计周期内, 以短时上报定时器的定时时间为周期, 将保存在第一性能 数据緩存区中的全局最值计数器的值多次上报到总控设备;  The first performance statistics module is configured to: save the value of the global maximum value counter obtained from the data source directly in the first performance data buffer, or according to a predefined global maximum value counter operation code to the global maximum value counter The value of the value is saved in the first performance data buffer; and in a statistical period, the global maximum value counter stored in the first performance data buffer is cycled by the timing of the short-time reporting timer. The value is reported to the master control device multiple times;
与所述第一性能统计模块相连的短时上报定时器, 其设置为: 设定全局 最值计数器值的周期上报时间。  A short-time reporting timer connected to the first performance statistics module is configured to: set a periodic reporting time of the global maximum counter value.
10、 如权利要求 9所述的分布式设备, 其中,  10. The distributed device of claim 9, wherein
所述短时上报定时器的定时时间是秒级。  The timing of the short-term reporting timer is in the order of seconds.
11、 如权利要求 10所述的分布式设备, 其中,  11. The distributed device of claim 10, wherein
所述分布式设备包括多个全局最值计数器, 所述第一性能统计模块设置 为: 在所述第一性能数据緩冲区中为所述多个全局最值计数器分配连续的存 储空间。 The distributed device includes a plurality of global maximum value counters, and the first performance statistics module is configured to: allocate consecutive storages for the plurality of global maximum value counters in the first performance data buffer Storage space.
12、 一种总控设备, 包括:  12. A master control device, including:
第二性能统计模块, 其设置为: 在一个统计周期内, 按照分布式设备上 设置的短时上报定时器的定时时间, 对各个分布式设备上报的全局最值计数 器的值进行汇总; 并对该统计周期内汇总得到的多个全局最值计数器的值求 最值, 将求最值的结果保存到第二性能数据緩存区中。  The second performance statistics module is configured to: summarize the values of the global maximum value counters reported by each distributed device according to the timing of the short-time reporting timer set on the distributed device in a statistical period; The values of the plurality of global maximum value counters summarized in the statistical period are obtained as the maximum value, and the result of the highest value is saved in the second performance data buffer.
13、 如权利要求 12所述的总控设备, 其中,  13. The overall control device according to claim 12, wherein
所述第二性能统计模块还设置了汇总緩存区; 所述第二性能统计模块设 置为: 对各个分布式设备上报的全局最值计数器的值进行汇总, 包括:  The second performance statistics module further includes a summary buffer area. The second performance statistics module is configured to: summarize the values of the global maximum value counters reported by each distributed device, including:
所述第二性能统计模块根据预先定义的最值计数器汇总码对所述全局最 值计数器的值求和后, 保存在所述汇总緩存区中。  The second performance statistics module sums the values of the global maximum counter according to a predefined maximum value counter summary code and stores them in the summary buffer.
14、 如权利要求 13所述的总控设备, 其中,  14. The overall control device according to claim 13, wherein
所述第二性能统计模块还设置了比较更新緩存区; 所述第二性能统计模 块设置为: 对该统计周期内汇总得到的多个全局最值计数器的值求最值, 将 求最值的结果保存到第二性能数据緩存区中, 包括:  The second performance statistics module further sets a comparison update buffer area; the second performance statistics module is configured to: obtain a maximum value of the plurality of global maximum value counters summarized in the statistical period, and obtain a maximum value The result is saved to the second performance data buffer, including:
所述第二性能统计模块根据预先定义的最值计数器汇总比较码对所述汇 总緩存区中的全局最值计数器的值运算后, 保存在所述比较更新緩存区中; 或者, 对所述汇总緩存区和所述比较更新緩存区中的全局最值计数器的值运 算后, 保存在所述比较更新緩存区中;  And the second performance statistic module is stored in the comparison update buffer area after the value of the global maximum value counter in the summary buffer area is calculated according to the preset maximum value counter summary comparison code; or, for the summary After the buffer area and the value of the global maximum value counter in the comparison update buffer are operated, they are saved in the comparison update buffer area;
所述第二性能统计模块还设置为: 在该统计周期结束后, 将所述比较更 新緩存区中的全局最值计数器的值保存到所述第二性能数据緩存区中。  The second performance statistics module is further configured to: save the value of the global maximum value counter in the comparison update buffer area to the second performance data buffer area after the statistical period ends.
15、 如权利要求 14所述的总控设备, 其中,  15. The overall control device according to claim 14, wherein
所述最值计数器汇总比较码定义为在所述总控设备上对所述汇总緩存区 和所述比较更新緩存区中保存的最值计数器的值进行比较, 求最值。  The highest value counter summary comparison code is defined to compare the values of the highest value counters stored in the summary buffer area and the comparison update buffer area on the master control device to find the highest value.
16、 一种设备性能统计系统, 包括: 如权利要去 9~11任一所述的分布式 设备和如权利要求 12~15任一所述的总控设备。  A device performance statistics system, comprising: the distributed device according to any one of claims 9 to 11 and the master control device according to any one of claims 12 to 15.
PCT/CN2012/077838 2011-12-29 2012-06-29 Device performance reporting and counting method, distributed device, general control device and system WO2013097437A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110451530.4A CN103188702B (en) 2011-12-29 2011-12-29 Equipment performance reports and statistical method, distributed apparatus, total control equipment and system
CN201110451530.4 2011-12-29

Publications (1)

Publication Number Publication Date
WO2013097437A1 true WO2013097437A1 (en) 2013-07-04

Family

ID=48679589

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077838 WO2013097437A1 (en) 2011-12-29 2012-06-29 Device performance reporting and counting method, distributed device, general control device and system

Country Status (2)

Country Link
CN (1) CN103188702B (en)
WO (1) WO2013097437A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790987A (en) * 2014-12-23 2016-07-20 中兴通讯股份有限公司 Performance data acquisition method, device and system
CN111221698A (en) * 2018-11-26 2020-06-02 北京京东金融科技控股有限公司 Task data acquisition method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770702A (en) * 2004-11-02 2006-05-10 华为技术有限公司 Performance index maximum value realizing method in distribution environment
CN101321354A (en) * 2007-06-07 2008-12-10 中兴通讯股份有限公司 Method for reporting performance data in mobile communication system
US20090312983A1 (en) * 2008-06-17 2009-12-17 Microsoft Corporation Using metric to evaluate performance impact
CN101631401A (en) * 2009-06-04 2010-01-20 中兴通讯股份有限公司 Method and device for managing data of multiple base stations
CN102104885A (en) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 Network element performance counting method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383722B (en) * 2007-09-05 2011-04-06 大唐移动通信设备有限公司 Time variant performance data collecting method and device
CN101340388B (en) * 2008-08-13 2010-12-08 华为技术有限公司 Method, apparatus and system for network flow control
US8170491B2 (en) * 2009-05-04 2012-05-01 Qualcomm Incorporated System and method for real-time performance and load statistics of a communications system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770702A (en) * 2004-11-02 2006-05-10 华为技术有限公司 Performance index maximum value realizing method in distribution environment
CN101321354A (en) * 2007-06-07 2008-12-10 中兴通讯股份有限公司 Method for reporting performance data in mobile communication system
US20090312983A1 (en) * 2008-06-17 2009-12-17 Microsoft Corporation Using metric to evaluate performance impact
CN101631401A (en) * 2009-06-04 2010-01-20 中兴通讯股份有限公司 Method and device for managing data of multiple base stations
CN102104885A (en) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 Network element performance counting method and system

Also Published As

Publication number Publication date
CN103188702B (en) 2019-03-12
CN103188702A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
JP6731201B2 (en) Time-based node selection method and apparatus
WO2018049872A1 (en) Microservice configuration apparatus and method
CN111181798B (en) Network delay measuring method, device, electronic equipment and storage medium
CN103561354B (en) Method and device for calculating and processing video smoothness
US9641405B2 (en) System and method for sequencing per-hop data in performance-monitored network environments
WO2013037230A1 (en) Wcdma network expansion planning method and device
US9350669B2 (en) Network apparatus, performance control method, and network system
WO2017161997A1 (en) Packet channel detection method and apparatus
US7804775B2 (en) Apparatus and computer program for identifying selected applications utilizing a single existing available bit in frame headers
AU2011258151B2 (en) Streaming media delivery composite
US11050649B2 (en) Delay measurement method of network node device, apparatus, and network node device
WO2014177023A1 (en) Method and device for determining service type
US10075520B2 (en) Distributed aggregation of real-time metrics for large scale distributed systems
CN107491458B (en) Method, device and system for storing time series data
WO2012034388A1 (en) Method and apparatus for user behaviors statistics based on user events
WO2023123956A1 (en) Io full-lifecycle latency monitoring method and related apparatus
WO2013097437A1 (en) Device performance reporting and counting method, distributed device, general control device and system
US20160261523A1 (en) Dynamically tuning system components for improved overall system performance
JP7444247B2 (en) Burst traffic detection device, burst traffic detection method, and burst traffic detection program
CN111953567B (en) Method, system, equipment and medium for configuring multi-cluster management software parameters
JP2015508254A (en) Low latency WIFI display with intelligent aggregation
US10263864B2 (en) Apparatus and method for collecting adaptive flow statistics data in carrier network
JP2002152266A (en) Packet loss measurement system
CN105515842A (en) General query system and general query method based on network data
US20170127356A1 (en) Method and apparatus for prolonging lasting time of inactive mode

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12861224

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12861224

Country of ref document: EP

Kind code of ref document: A1