A middleware optimization method for collecting device performance information

By adding an intermediate buffer area between the network management system and the device and optimizing the connection strategy, the error problem caused by insufficient number of device connection sessions is solved, the system stability and reliability are improved, and the device load is reduced.

CN115866014BActive Publication Date: 2025-10-03CHINA UNITECHS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211318474.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-10-03
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

In existing network management systems, the number of device connection sessions is limited, which leads to failure errors when multiple functional modules request to collect performance data in a short period of time, and frequent connections lead to device load problems.

Method used

Add an intermediate buffer area between the network management system and the device, use optimization strategies to determine whether a connection login is required, reduce the number and frequency of connections, and use recently collected content to directly return it to the application to resolve the error problem caused by insufficient number of device login sessions.

Benefits of technology

It improves the functional stability and reliability of the network management system, reduces the frequency of connection requests on the device side, eliminates the load problem caused by frequent connections, and simplifies the maintenance workload between functional modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866014B_ABST
    Figure CN115866014B_ABST
Patent Text Reader

Abstract

The present invention discloses a middleware optimization method for collecting device performance information, comprising: S01, collecting device information DEVinfo by a network management collection program; S02, judging the traversal completion status of Itemsinfo; S03, judging whether Perfinfo contains the indicator in Itemsinfo; S04, judging that the collection time is within the cycle, that is, t1 is less than or equal to t-t0; S05, if the indicator in Itemsinfo is not being collected, then the method proceeds to S06; S06, judging whether there is a device connection session, and if so, then the method proceeds to S07; S07, judging whether the connection session is idle, and if so, then the method proceeds to S08; S08, using the command collection device value in the collection indicator Itemsinfo to record it as Vcur, updating the indicator value and time in Perfinfo to record them as t, and assigning Xv to Vcur, and then proceeding to S11; S09, creating a connection session with the device, and if the creation is unsuccessful, then the method proceeds to S10; S10, assigning Xv to Vp; and S11, ending. The present invention simplifies the complex maintenance workload between network management function modules, eliminates the hidden dangers of network management function failure, reduces the frequency of network management connection requests to the device side, and solves the load problem caused by frequent connection collection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network management systems, and in particular to a middleware optimization method for collecting device performance information. Background Art

[0002] With the rapid development of network information technology of telecom operators, telecom network management and maintenance personnel have increasingly complex functional requirements for network management systems, and they hope to provide more abundant means for effective and timely supervision of network equipment through network management. More and more personalized functional modules are attached to the network management system. Due to the long construction process of the network management system, the long time, the change of network management system demand designers and other factors, in fact, the exchange of information between each functional module is limited, and in practice, in order to quickly meet the functional requirements of different customers, each functional module of the network management makes simple and direct connection requests to the device, and does not consider the restrictions on the device side. Therefore, the problem is that individual functions are used everywhere without finding problems, and multiple functions are called in a short period of time and errors occur. Based on the above significant problems

[0003] As network management systems are built and upgraded, new application modules are added, each requiring direct collection of device performance data. This increase in application modules is compounded by the limited number of device login sessions and the operator's device management requirements, which often require more than one network management system to connect to devices, including other business systems. Consequently, the number of device-to-network management connection sessions is limited. Existing network management systems rely on simple device connection mechanisms, logging in to devices and executing commands to collect performance data, which can lead to data collection failures. Summary of the Invention

[0004] In order to solve the above problems existing in traditional testing, the present invention provides a middleware optimization method for collecting device performance information. By adding an intermediate buffer area between the network management system and the device connection, an optimization strategy is made for the connection collection request content from the network management. The optimization strategy is used to determine whether it is necessary to connect and log in to the device, thereby reducing the number and frequency of connections to the device. The content collected in the recent period can be directly and quickly returned to the application, solving the problem of failure and error caused by multiple application function requests in a short period of time due to insufficient number of device login sessions, thereby improving the functional stability and reliability of the network management system.

[0005] The present invention judges the request and content of the network management system application X to the login device. If data information that meets the request content exists in the intermediate cache and the time meets the requirements, the matching data information is directly returned to the application X. If it does not meet the requirements, the login device request is executed to execute the corresponding command to obtain result information, and the result information is stored in the intermediate cache and returned to the application X at the same time.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In one embodiment of the present invention, a middleware optimization method for collecting device performance information is proposed, the method comprising:

[0008] S01, the network management collection program collects device information DEVinfo, index information Iteminfo, performance data information Perfinfo, and the current system time is recorded as t;

[0009] S02, judging the traversal completion status of Itemsinfo. If Itemsinfo is not traversed completely, then record the period of the indicator in Itemsinfo as t0, and initialize the indicator value Xv=0;

[0010] S03. Determine whether Perfinfo contains an indicator in Itemsinfo. If so, record the acquisition time of the indicator as t1, and record the acquisition value of the indicator as Vp.

[0011] S04, judging that the acquisition time is within the cycle, that is, t1 is less than or equal to t-t0;

[0012] If the indicator in S05 and Itemsinfo is not being collected, then go to S06;

[0013] S06, determine whether there is a device connected to the session, if yes, proceed to S07;

[0014] S07, determine whether the connection session is idle. If yes, proceed to S08;

[0015] S08 , use the command collection device value in the collection indicator Itemsinfo to record it as Vcur, update the indicator value and time in Perfinfo to record it as t, assign Xv to Vcur, and go to S11 .

[0016] S09: Create a connection session with the device. If the creation is unsuccessful, proceed to S10.

[0017] S10, Xv are assigned the value Vp;

[0018] S11. End.

[0019] Furthermore, the S02 further includes: if the Itemsinfo has been traversed, then the process ends;

[0020] Furthermore, the S03 further includes: otherwise jumping to step S06.

[0021] Furthermore, the S04 further includes: if t1 is greater than t-t0, then jump to S10.

[0022] Furthermore, the S05 also includes: if the indicators in Itemsinfo are being collected, jump to S04 after waiting for 5 seconds.

[0023] Furthermore, the S06 further includes: otherwise jumping to S09.

[0024] Furthermore, the S07 further includes: otherwise, wait for 5 seconds and jump to S06.

[0025] Furthermore, the S09 further includes: creating a connection session with the device, and if the creation is successful, jumping to S08.

[0026] In one embodiment of the present invention, a computer device is also proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the middleware optimization method for collecting device performance information is implemented.

[0027] In one embodiment of the present invention, a computer-readable storage medium is further provided. The computer-readable storage medium stores a computer program for executing a middleware optimization method for collecting device performance information.

[0028] Beneficial effects:

[0029] The present invention simplifies the complex maintenance workload between network management function modules, eliminates the hidden danger of network management function failure caused by the limited number of device connections, reduces the frequency of network management connection requests to the device side, and solves the load problem caused by frequent connection collection on the device side. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a flow chart of a middleware optimization method for collecting device performance information according to the present invention;

[0031] Figure 2 This is a schematic diagram of a device port performance page in an embodiment of the present invention;

[0032] Figure 3 This is a schematic diagram of the device inspection function page in an embodiment of the present invention;

[0033] Figure 4 This is a screenshot of the background log page collected periodically in an embodiment of the present invention;

[0034] Figure 5 This is a screenshot of the page showing the real-time update of the device port in an embodiment of the present invention;

[0035] Figure 6 This is a screenshot of the page where the inspection module function clicks to collect and call this method in an embodiment of the present invention;

[0036] Figure 7 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided solely to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. Rather, these embodiments are provided to make this disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0038] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, apparatus, device, method, or computer program product. Therefore, the present disclosure may be implemented in the following forms: entirely in hardware, entirely in software (including firmware, resident software, microcode, etc.), or in a combination of hardware and software.

[0039] Tables and explanations appearing in this invention:

[0040] Python is a programming language;

[0041] Database related tables

[0042] Items, collection indicator information table, contains necessary information: indicator ID, device model, collection command, collection cycle and other information, as shown in Table 1 below:

[0043]

[0044] Table 1

[0045] Perfs, device performance collection result table, including device ID, indicator ID, collection value, collection time, and whether collection is in progress, as shown in Table 2 below:

[0046]

[0047] Table 2

[0048] Device, device table, contains necessary information such as device ID, device IP, device type, login method, login account, login password, etc., as shown in Table 3 below:

[0049]

[0050] Table 3

[0051] According to an embodiment of the present invention, a middleware optimization method for collecting device performance information is proposed. By adding an intermediate buffer area between the network management system and the device connection, an optimization strategy is made for the connection collection request content from the network management. The optimization strategy is used to determine whether it is necessary to connect and log in to the device, thereby reducing the number and frequency of connections to the device. The content collected in the recent period can be directly and quickly returned to the application, solving the problem of failure and error caused by multiple application function requests in a short period of time due to insufficient number of device login sessions, thereby improving the functional stability and reliability of the network management system.

[0052] The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.

[0053] Figure 1 FIG. 1 is a flow chart of a middleware optimization method for collecting device performance information according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0054] The middleware optimization method for collecting device performance information proposed in the present invention includes:

[0055] The network management collection program collects device information DEVinfo, index information Iteminfo, and performance data information Perfinfo. The current system time is recorded as t;

[0056] S02, judging the traversal completion status of Itemsinfo. If Itemsinfo is not traversed completely, then record the period of the indicator in Itemsinfo as t0, and initialize the indicator value Xv=0;

[0057] S03. Determine whether Perfinfo contains an indicator in Itemsinfo. If so, record the acquisition time of the indicator as t1, and record the acquisition value of the indicator as Vp.

[0058] S04, judging that the acquisition time is within the cycle, that is, t1 is less than or equal to t-t0;

[0059] If the indicator in S05 and Itemsinfo is not being collected, then go to S06;

[0060] S06, determine whether there is a device connected to the session, if yes, proceed to S07;

[0061] S07, determine whether the connection session is idle. If yes, proceed to S08;

[0062] S08 , use the command collection device value in the collection indicator Itemsinfo to record it as Vcur, update the indicator value and time in Perfinfo to record it as t, assign Xv to Vcur, and go to S11 .

[0063] S09: Create a connection session with the device. If the creation is unsuccessful, proceed to S10.

[0064] S10, Xv are assigned the value Vp;

[0065] S11. End.

[0066] The S02 further includes: if the Itemsinfo has been traversed, then the process ends;

[0067] The step S03 further includes: otherwise, skipping to step S06.

[0068] The S04 further includes: if t1 is greater than t-t0, then jump to S10.

[0069] The S05 further includes: the indicators in Itemsinfo are being collected, and the process jumps to S04 after waiting for 5 seconds.

[0070] The S06 further includes: otherwise, jump to S09.

[0071] The S07 further includes: otherwise, wait for 5 seconds and jump to S06.

[0072] The S09 further includes: creating a connection session with the device, and if the creation is successful, jumping to S08.

[0073] It should be noted that although the operations of the method of the present invention are described in a specific order in the above embodiments and drawings, this does not require or imply that these operations must be performed in this specific order, or that all illustrated operations must be performed to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0074] In order to more clearly explain the above-mentioned middleware optimization method for collecting device performance information, a specific embodiment is used for illustration below. However, it should be noted that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation to the present invention.

[0075] Taking the network management device 4.118.193.12 as an example, the data entry table is collected regularly, as shown in Table 4 below:

[0076]

[0077] The topology displays the optical power of port GigabitEthernet0 / 1 / 1. The topology update operation also collects the optical power of the port.

[0078] like Figure 2 As shown, the device port performance page displays, which enables real-time collection:

[0079] like Figure 3 As shown, the device inspection function also needs to collect and display the optical power of the device port;

[0080] like Figure 4 As shown, background logs are collected regularly;

[0081] like Figure 5 As shown, the device port updates the collection and calls this method immediately. If the current time falls within the collection period, the last collection value is used and login to the device is not allowed.

[0082] like Figure 6 As shown, the inspection module function clicks on the collection to call this method, first determine whether the current time falls within the most recent cycle, and do not wait for the login device to collect and store it, and at the same time update the port performance table perf_r_port.

[0083] The above example illustrates that a network management system may have multiple modules collecting indicators for a certain device, and each module has different requirements for the indicators. Using this method, the login collection of the network management system and the device is reduced, the most recent value is used, the module collection efficiency is improved, and the frequent connection and login to the device is reduced.

[0084] Based on the above invention concept, Figure 7 As shown, the present invention also proposes a computer device 300, including a memory 310, a processor 320 and a computer program 330 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 330, the middleware optimization method for collecting device performance information is implemented.

[0085] Based on the aforementioned inventive concept, the present invention further proposes a computer-readable storage medium, which stores a computer program for executing the aforementioned middleware optimization method for collecting device performance information.

[0086] The middleware optimization method for collecting device performance information proposed in the present invention adds an intermediate buffer area between the network management system and the device connection, and makes an optimization strategy for the connection collection request content from the network management. The optimization strategy is used to determine whether it is necessary to connect and log in to the device, thereby reducing the number and frequency of connections to the device. The recently collected content can be directly and quickly returned to the application, solving the problem of failure and error caused by multiple application function requests in a short period of time due to insufficient number of device login sessions, thereby improving the functional stability and reliability of the network management system.

[0087] Although the spirit and principles of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the specific embodiments disclosed, and the division into various aspects does not mean that the features of these aspects cannot be combined to benefit. Such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

[0088] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.

Claims

1. A middleware optimization method for collecting device performance information, characterized in that: The method includes: S01, the network management collection program collects device information DEVinfo, index information Itemsinfo, performance data information Perfinfo, and the current system time is recorded as t; S02, judging whether the traversal of the collection index information Itemsinfo is complete, if the traversal of the collection index information Itemsinfo is not complete, recording the period of the index in the collection index information Itemsinfo as t0, and initializing the index value Xv in the collection index information Itemsinfo to 0; S03, determine whether Perfinfo contains an indicator in the collection indicator information Itemsinfo, if so, record the collection time value of the indicator as t1, and record the collection value of the indicator as Vp; S04. Determine whether the index collection time value in the collection index information Itemsinfo is within the period t0, that is, whether t1 is less than or equal to t-t0; if t1 is greater than t-t0, jump to S10; S05. If t1 is less than or equal to t-t0, and the indicator in the collection indicator information Itemsinfo is not being collected, then go to S06; S06, determine whether there is a device connected to the session, if yes, go to S07; otherwise jump to S09; S07, determine whether the connection session is idle, if yes, proceed to S08; S08, using the command collection device value in the collection indicator information Itemsinfo to record it as Vcur, and updating the indicator value and time in Perfinfo to record it as t, and assigning Xv to Vcur, and then going to S11; S09, create a connection session with the device. If the creation fails, go to S10; if the creation succeeds, jump to S08; S10, Xv are assigned the value Vp; S11. End.

2. The middleware optimization method for collecting device performance information according to claim 1, characterized in that: The S02 further includes: if the collection indicator information Itemsinfo has been traversed completely, then the process ends.

3. The middleware optimization method for collecting device performance information according to claim 1, characterized in that: The step S03 further includes: otherwise, skipping to step S06.

4. The middleware optimization method for collecting device performance information according to claim 1, characterized in that: The S05 further includes: collecting the indicators in the indicator information Itemsinfo, and jumping to S04 after waiting for 5 seconds.

5. The middleware optimization method for collecting device performance information according to claim 1, characterized in that: The S07 further includes: otherwise, wait for 5 seconds and jump to S06.

6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for acquiring real-time performance data by network manager

    CN101808007A

  • Single-index parameter acquisition method and device based on application performance monitoring

    CN113407430A