Alarm reporting method, electronic equipment and computer readable storage medium

By using direct access memory methods (such as DMA) in OTN networks to collect and store performance alarm data at one time, the problem of long-term performance alarm management in large-scale business scenarios in the prior art is solved, and more efficient fault location and system operation are achieved.

CN120034760APending Publication Date: 2025-05-23ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311575083.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The performance alarm management solution of the existing OTN network takes a long time in large business scenarios, resulting in low fault positioning efficiency and long-term CPU usage, affecting system operation efficiency.

Method used

By directly accessing memory methods (such as DMA) to operate the hardware at one time, obtain the performance alarm data of all preset hardware on the board and store it in the preset first database, reducing the number of API interface calls and shortening the performance alarm collection time.

Benefits of technology

It greatly shortens the time required for performance alarm collection, improves system operation efficiency, is suitable for large business scenarios, improves fault positioning efficiency, and avoids board abnormalities caused by long-term CPU occupation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034760A_ABST
    Figure CN120034760A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an alarm reporting method, electronic equipment and a computer readable storage medium, and the alarm reporting method comprises the steps: accessing a memory through a preset memory direct access method, obtaining the performance alarm data of preset hardware, and reading a performance alarm message about the preset hardware in an uploading channel of the memory direct access method; the performance alarm message comprises performance alarm data; determining an offset address of performance alarm data contained in the performance alarm message in a preset first database according to the first message information of the performance alarm message; and storing the performance alarm data in the first database according to the offset address, so as to call the required performance alarm data from the first database and report the performance alarm data to a webmaster. According to the scheme of the embodiment, the duration required by performance alarm acquisition is greatly shortened, the CPU does not need to be occupied all the time, the system operation efficiency is improved, the requirement of performance alarm management during large business volume is met, and the fault positioning efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of optical transmission network communications, and in particular to an alarm reporting method, an electronic device, and a computer-readable storage medium. Background Art

[0002] The most important way to implement fault management technology in OTN (Optical Transport Network) networks is alarm management. Alarm management centrally monitors the operation status of the entire system and collects abnormal information such as links, data, and services in real time. When a fault occurs or an indicator exceeds a preset threshold, the alarm management system generates an alarm message. Alarm information is a prompt message of various faults or abnormalities that occur during system operation. Maintenance personnel can use alarm information to locate and troubleshoot faults to ensure stable operation of the system. After the problem or fault corresponding to the alarm is resolved, the system automatically returns an alarm recovery message.

[0003] A common function of performance management technology is performance monitoring. The performance monitoring function includes the continuous collection of performance data of relevant network elements. Although serious problems are monitored by alarm methods, minor or intermittent problems can generally only be discovered through continuous comprehensive monitoring. The performance monitoring function comprehensively evaluates the performance quality based on the measured parameters that cause performance degradation, so it can specify the performance monitoring mode before the performance drops to an acceptable level. Summary of the invention

[0004] The embodiments of the present disclosure provide an alarm reporting method, an electronic device, and a computer-readable storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides an alarm reporting method, which may include:

[0006] Access the memory through a preset direct memory access method to obtain performance alarm data of preset hardware;

[0007] Reading a performance warning message about the preset hardware in the uplink channel of the direct memory access method; the performance warning message includes the performance warning data;

[0008] Determine, according to the first message information of the performance warning message, an offset address of the performance warning data contained in the performance warning message in a preset first database;

[0009] The performance alarm data is stored in the first database according to the offset address, so as to call the required performance alarm data from the first database and report it to the network management.

[0010] In a second aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising:

[0011] one or more processors;

[0012] A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the alarm reporting method;

[0013] One or more input / output I / O interfaces are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.

[0014] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the alarm reporting method is implemented.

[0015] The disclosed embodiment directly operates the memory through a preset direct memory access method, and sends the performance alarm data of all preset hardware (such as ports) of the single board to the first database at one time according to the corresponding offset address, so as to call the required performance alarm data from the first database and report it to the network management. Compared with the solution in the related art that requires cyclic calling of the API (Application Program Interface) interface, the time required for performance alarm collection is greatly shortened, the demand for performance alarm management under large business volume is met, and the CPU does not need to be occupied all the time, which improves the system operation efficiency. By reporting the current performance alarm data of the preset hardware to the user, it helps the user to monitor the current business, and in the scenario of large business volume, the efficiency of fault location can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In the accompanying drawings of the embodiments of the present disclosure:

[0017] Figure 1 A flowchart of the alarm reporting method provided in the embodiment of the present disclosure;

[0018] Figure 2 A schematic diagram showing the difference between the alarm reporting solution provided in the embodiment of the present disclosure and the alarm reporting solution in the related art;

[0019] Figure 3 A block diagram of the electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the communication perception data processing method and computer-readable storage medium provided by the embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.

[0021] The present disclosure will be described more fully below with reference to the accompanying drawings, but the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as being limited to the embodiments set forth below. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete, and will enable those skilled in the art to fully understand the scope of the present disclosure.

[0022] The accompanying drawings of the embodiments of the present disclosure are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the detailed embodiments to explain the present disclosure, and do not constitute a limitation of the present disclosure. By describing the detailed embodiments with reference to the accompanying drawings, the above and other features and advantages will become more apparent to those skilled in the art.

[0023] The present disclosure may be described with reference to plan views and / or cross-sectional views by means of ideal schematic views of the present disclosure. Therefore, the exemplary illustrations may be modified according to manufacturing techniques and / or tolerances.

[0024] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0025] The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the present disclosure. The term "and / or" as used in the present disclosure includes any and all combinations of one or more related enumerated items. The singular forms "one" and "the" as used in the present disclosure are also intended to include plural forms, unless the context clearly indicates otherwise. The terms "including", "made of..." as used in the present disclosure specify the presence of the features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.

[0026] Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this disclosure.

[0027] The present disclosure is not limited to the embodiments shown in the drawings, but includes modifications of the configurations formed based on the manufacturing process. Therefore, the regions illustrated in the drawings have schematic properties, and the shapes of the regions shown in the drawings illustrate the specific shapes of the regions of the elements, but are not intended to be limiting.

[0028] The most important implementation method of fault management technology of OTN (Optical Transport Network) network (which has the functions of fault detection, rapid location, fault point isolation and repair, and involves all network elements at the local and remote ends, and can promptly notify relevant users of maintenance messages) is alarm management. Alarm management centrally monitors the operation status of the entire system and collects abnormal information such as links, data, and services in real time. When a fault occurs or an indicator exceeds a preset threshold, the alarm management system generates an alarm message. Alarm information is a prompt message of various faults or abnormalities that occur during the operation of the system. Maintenance personnel can use alarm information to locate and eliminate faults to ensure the stable operation of the system. After the problem or fault corresponding to the alarm is resolved, the system automatically returns an alarm recovery message.

[0029] Performance management technology (used to evaluate the performance of communication networks and various network elements. By statistically analyzing the collected performance data of the entire network, users can timely grasp the operating status of the equipment and provide data support for daily maintenance and network optimization) is a common function of performance monitoring. The performance monitoring function includes the continuous collection of performance data of relevant network elements. Although serious problems are monitored by alarm methods, minor or intermittent problems generally require continuous and comprehensive monitoring to be discovered. The performance monitoring function comprehensively evaluates the performance quality based on the measured parameters that cause performance degradation, so it can specify the performance monitoring mode before the performance drops to an acceptable level.

[0030] The performance alarm management of current OTN products has the following characteristics:

[0031] 1. Each port service has multiple performance alarms that need to be detected, and each product contains multiple ports.

[0032] 2. The OTN service volume is large, and the OSU (Optical Service Unit) service can be configured with thousands of services, which is a great test for the efficiency and accuracy of performance alarm management.

[0033] The performance alarm management solution in the related technology is to access the hardware in the form of PCIE (Peripheral Component Interconnect Express, peripheral device high-speed connection standard) by calling the API (Application Program Interface) interface. Performance alarm management needs to traverse the combination of the port number and performance alarm code of the single board, and each combination requires calling the API interface once to operate the hardware. Each traversal requires multiple accesses to the hardware, which is a very time-consuming process, and the data is directly reported to the network management after the call. There is no data storage process, and the CPU needs to be occupied all the time. When there are a large number of businesses on the single board, the combination of the port number and performance alarm code of the single board increases sharply, and each traversal requires a long time to occupy the CPU, and even fails to meet product requirements.

[0034] In view of the shortcoming of the current performance alarm management scheme being time-consuming, the embodiment of the present disclosure proposes to directly operate a large piece of memory through DMA (Direct Memory Access, which is a function of some computer bus architectures that enables data to be sent directly from an attached device to the memory of the computer motherboard) access method, so as to complete the collection of performance alarm data of all ports by operating the hardware at one time, and send the performance alarm data of all ports of the single board to a preset first database at one time, so as to call the required performance alarm message from the first database and report it to the network management. Compared with the scheme in the related art that requires cyclically calling the API interface, the time required for performance alarm collection is greatly shortened, and the demand for performance alarm management under high business volume is met. By reporting the current performance alarm to the user, it helps the user to monitor the current business, and improves the efficiency of fault location in high business volume scenarios.

[0035] The alarm reporting method of the embodiment of the present disclosure can be implemented by any electronic device that needs to report an alarm, such as a terminal device or a server. The terminal device may include but is not limited to: vehicle-mounted equipment, user equipment (User Equipment, UE), mobile devices, computing devices, wearable devices, etc., for example, including but not limited to cellular phones, cordless phones, personal digital assistants (Personal Digital Assistant, PDA), portable computers, etc.

[0036] The alarm reporting method of the embodiment of the present disclosure may be implemented by a processor calling computer-readable program instructions stored in a memory, or may be implemented by a server.

[0037] The following is a detailed introduction to the embodiments of the present disclosure.

[0038] The present disclosure provides a method for reporting an alarm. Figure 1 As shown, the method may include steps S11-S14:

[0039] S11. Access the memory through a preset direct memory access method to obtain performance alarm data of preset hardware.

[0040] In the disclosed embodiment, after the user sends the service configuration through the upper layer, the single board needs to report performance alarms by port and detection point. If the performance alarm collection and reporting of each port of the single board needs to be completed quickly, it is necessary to avoid the conventional technology that requires looping all performance alarm codes by port and directly operating the hardware through the API interface. The hardware operation is very time-consuming. In the case of a large business volume of thousands of businesses, the performance alarm collection and operation hardware will consume a lot of time, which seriously slows down the operation efficiency of the system. In the disclosed embodiment, the direct access memory method may include but is not limited to DMA (direct access memory) access technology. The hardware is operated once through DMA access technology to export the preset hardware (for example, all ports) performance alarm data of the single board, which greatly saves the time of operating the hardware and improves the system operation efficiency.

[0041] In the disclosed embodiment, the DMA can distinguish different sending channels according to different service types, and send the actual performance alarm data to the single board through a fixed message format.

[0042] S12, reading a performance warning message about preset hardware in an upstream channel of the direct access memory method; the performance warning message includes performance warning data.

[0043] In an embodiment of the present disclosure, when the direct memory access method includes: a DMA access method, and the uplink channel of the direct memory access method includes: a DMA uplink channel; before reading the performance warning message about the preset hardware in the uplink channel of the direct memory access method, the method further includes:

[0044] Get the preset DMA data upload status flag;

[0045] When the DMA data uploading status flag indicates that the data uploading is completed, a process of reading the performance warning message about the preset hardware in the DMA uploading channel is entered;

[0046] When the DMA data sending status flag indicates that the data sending is not completed, check whether the data sending time has timed out;

[0047] If the data uploading time is not overtime, the DMA uploading data status flag is acquired again;

[0048] When the time for sending data exceeds the time limit, DMA is reset.

[0049] In the disclosed embodiment, after operating the hardware once through the DMA access technology, the preset DMA data upload status flag can be periodically detected. If the DMA data upload status flag is in the first state (for example, a first value), it can indicate that the DMA data upload is completed. If the DMA data upload status flag is in the second state (for example, a second value), it can indicate that the DMA data upload is not completed.

[0050] In the disclosed embodiment, the DMA control module of the single board can periodically detect the status of DMA data upload. If it is detected that the DMA data upload is completed, a notification of the acquired DMA message (such as a performance alarm message) is sent to the preset alarm information collection task.

[0051] In the disclosed embodiment, the alarm information collection task can read the performance alarm message about the preset hardware in the DMA upload channel, for example, the performance alarm message of all ports of the single board. The DMA control module continues to periodically detect the status of the DMA upload data.

[0052] In the embodiment of the present disclosure, if the DMA control module detects that the data transmission time has timed out, but the DMA data transmission status flag indicating the DMA data transmission completion status has not been obtained, the DMA is reset and the timeout counter restarts the timing.

[0053] In the embodiment of the present disclosure, after reading the performance warning message about the preset hardware in the uplink channel of the direct access memory method, the method may further include:

[0054] Determining the validity of the performance warning message according to the second message information of the performance warning message;

[0055] If it is determined that the performance warning message is valid, a process of determining an offset address of the performance warning data in a preset first database according to the message information of the performance warning message is entered;

[0056] If it is determined that the performance warning message is invalid, an error log regarding the performance warning message is recorded.

[0057] In the embodiment of the present disclosure, the preset hardware may include but is not limited to a port; judging the validity of the performance warning message according to the message content may include:

[0058] Obtaining second message information: The second message information may include, but is not limited to, any one or more of the following: service type, port number, and performance alarm identifier;

[0059] When each item of content in the second message information matches the monitored port, it is determined that the performance alarm message is valid;

[0060] When any one or more contents in the second message information do not match the monitored port, it is determined that the performance alarm message is invalid.

[0061] In an embodiment of the present disclosure, for example, when the second message information includes a service type, a port number, and a performance alarm identifier, if all three items of the service type, port number, and performance alarm identifier in the message information match the detected port, the performance alarm message is determined to be valid; when any one or more of the service type, port number, and performance alarm identifier do not match the detected port, the performance alarm message is determined to be invalid.

[0062] S13: Determine the offset address of the performance alarm data in the preset first database according to the first message information of the performance alarm message.

[0063] In an embodiment of the present disclosure, when it is determined that the obtained performance warning message is valid, the performance warning message can be stored in a preset first database. When the performance alarm data of a certain port is needed, it can be directly retrieved from the first database, which greatly reduces the time for obtaining the performance alarm data.

[0064] In an embodiment of the present disclosure, when the preset hardware includes a port, determining the offset address of the performance alarm data included in the performance alarm message in the preset first database according to the first message information of the performance alarm message includes:

[0065] Obtaining first message information: the first message information may include but is not limited to: a port number and a performance alarm identifier;

[0066] The offset address is determined according to the port number and the performance alarm identifier.

[0067] In the embodiment of the present disclosure, determining the offset address according to the port number and the performance alarm identifier may include:

[0068] The offset address corresponding to the port number and the performance alarm identifier is searched in a preset second database.

[0069] In the embodiment of the present disclosure, before acquiring the offset address corresponding to the port number and the performance alarm identifier in the preset second database, the method may further include:

[0070] Pre-dividing the offset addresses in the first database for different port numbers and the performance alarm identifiers corresponding to the port numbers;

[0071] The port number, the performance alarm identifier corresponding to the port number, and the divided offset address are correspondingly stored in the second database.

[0072] In the embodiments of the present disclosure, through the setting of the first database and the second database, the performance alarm data of the single-board hardware can be conveniently and systematically managed. Each port number corresponds to a performance alarm identifier and an offset address. Through the port number and the performance alarm identifier, a storage space can be allocated in the first database for the performance alarm data of each port. The storage space can be represented by the offset address, and the performance alarm data of each port can be stored in the corresponding storage space in the first database according to the offset address.

[0073] In an embodiment of the present disclosure, when storing in or reading from a first database, in order to quickly and conveniently store and read, the port number of each hardware port and the offset address corresponding to the performance alarm identifier can be calculated in advance, and the offset address can be stored in a second database, so that when the first database needs to be stored or read, the corresponding offset address can be directly obtained from the second database based on the port number and the performance alarm identifier, and the performance alarm message can be stored or read in the first database based on the offset address.

[0074] In the embodiment of the present disclosure, a performance alarm storage database of a single board (i.e., a first database) and a second database on the single board for storing the offset addresses of various performance alarm data in the first database can be maintained on a daily basis, so as to realize the first database where the performance alarm data is stored, by calculating the offset address through the port number of the service and the performance alarm identifier.

[0075] S14. Storing the performance alarm data in the first database according to the offset address, so as to call the required performance alarm data from the first database and report it to the network management.

[0076] In the disclosed embodiment, when the single-board software is initialized, the first database and the second database required to store DMA performance alarm data are initialized according to the service types supported by the single-board. During the operation of the single-board software, the performance alarm message containing the performance alarm data is first stored in the first database according to the service type, the port number corresponding to the service and the performance alarm identifier in the performance alarm message sent by DMA. When it is necessary to collect performance alarm data, the offset address is calculated according to the same algorithm, and the first database is searched according to the offset address to obtain the corresponding performance alarm data. The scheme for collecting performance alarm data from the first database and reporting it is introduced below.

[0077] In the embodiment of the present disclosure, the method may further include:

[0078] Generate collection point information according to the port number and performance alarm identifier corresponding to the target port to be monitored;

[0079] Searching the second database for a target offset address corresponding to the port number and the performance alarm identifier of the target port according to the collection point information;

[0080] The performance warning message corresponding to the target port is retrieved from the first database according to the target offset address and reported to the network management.

[0081] In the disclosed embodiment, through the above scheme, it is realized that the user can query the offset address corresponding to the port from the second database according to the demand, and directly retrieve the corresponding performance information from the first database according to the offset address.

[0082] In the embodiment of the present disclosure, based on storing the performance alarm message in the first database according to the offset address, when the user needs the performance alarm data of any hardware port, it can be directly retrieved from the first database according to the offset address and reported to the network management, which greatly reduces the time to obtain the performance alarm data and improves work efficiency. It is especially suitable for working scenarios with large business volume. For example, when configuring 2000 services, the performance alarm reporting scheme of the embodiment of the present disclosure is used. The processing time required is 1 / 2000 times that of the current performance alarm reporting scheme, and the current performance alarm is reported to the user, which quickly identifies whether the current business is normal, and improves the efficiency of fault location in scenarios with large business volume.

[0083] In the embodiments of the present disclosure, Figure 2 As shown, it is a schematic diagram of the difference between the alarm reporting scheme of the embodiment of the present disclosure and the alarm reporting scheme in the related art. Among them, Ⅰ, Ⅱ, Ⅲ, ..., k refer to k (k is a positive integer) single boards, and on the left is the API interface (such as api1, ..., apim) corresponding to the port number of each port (such as 1, 2, 3, ..., n, n is a positive integer) and the alarm code (such as code1, ..., codem, m is a positive integer) in the related art, respectively calling to obtain the performance alarm data of the alarm code corresponding to each port. On the right side is the embodiment of the present disclosure, which accesses the memory through DMA to obtain the performance alarm data of all ports (such as 1, 2, 3, ..., n, where n is a positive integer), and reports it in the form of a performance alarm message msg, and searches the second database for the corresponding offset address (such as off1, ..., offx) according to the port number (such as 1, 2, 3, ..., n, where n is a positive integer) and the alarm identifier (such as c1, ..., cx, where x is a positive integer), thereby obtaining the corresponding storage address (such as data1, ..., datax) in the first database according to the offset address, and storing or reading the corresponding performance alarm data data in the storage address.

[0084] In the embodiments of the present disclosure, at least the following advantages are included:

[0085] 1. Through direct memory access methods (such as DMA), the hardware can be operated once to export the performance alarm data of all ports of the single board, which greatly saves the time of operating the hardware and improves the system operation efficiency.

[0086] 2. By storing the performance alarm data reported by the direct memory access method (such as DMA) in the first database, the performance alarm data of any port can be directly retrieved from the first database when needed, avoiding repeated API interface calls, greatly reducing the operation process and time. It is especially suitable for scenarios with large business volume, improving the fault location efficiency in various business scenarios, and improving the performance alarm management efficiency, avoiding the situation where the single board is abnormal due to the long-term CPU occupation by performance alarm management, making the single board performance alarm management more efficient and accurate.

[0087] 3. By pre-storing the offset address of the performance alarm data in the second database, the offset address corresponding to the performance alarm data of each port can be quickly obtained through indexing and querying, thereby realizing convenient and fast storage and reading of the performance alarm data in the first database, further improving the system operation efficiency.

[0088] The present disclosure also provides an electronic device 100, such as Figure 3 As shown, the electronic device 100 includes:

[0089] One or more processors 101;

[0090] A memory 102, on which one or more programs are stored. When the one or more programs are executed by the one or more processors 101, the one or more processors 101 implement the alarm reporting method;

[0091] One or more input / output I / O interfaces 103 are connected between the processor 101 and the memory 102 and are configured to implement information interaction between the processor 101 and the memory 102 .

[0092] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU) and the like; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus) and the like.

[0093] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.

[0094] In the embodiment of the present disclosure, the electronic device may include but is not limited to: a power supply device, such as a communication power supply device.

[0095] The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the alarm reporting method is implemented.

[0096] Those skilled in the art will appreciate that all or some of the functional modules / units disclosed above may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0097] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation.

[0098] Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-temporary medium) and a communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical disk storage; magnetic cassettes, magnetic tapes, disk storage or other magnetic storage; any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0099] The present disclosure has disclosed example embodiments, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly stated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims

1. An alarm reporting method, It is characterized in that The method comprises: Access the memory through a preset direct memory access method to obtain performance alarm data of preset hardware; Reading a performance warning message about the preset hardware in the uplink channel of the direct memory access method; the performance warning message includes the performance warning data; Determine, according to the first message information of the performance warning message, the offset address of the performance warning data in the preset first database; The performance alarm data is stored in the first database according to the offset address, so as to call the required performance alarm data from the first database and report it to the network management.

2. The alarm reporting method according to claim 1, It is characterized in that The preset hardware includes a port; and determining, according to the first message information of the performance warning message, an offset address of the performance warning data contained in the performance warning message in a preset first database includes: Obtaining the first message information: the first message information includes: a port number and a performance alarm identifier; The offset address is determined according to the port number and the performance alarm identifier.

3. The alarm reporting method according to claim 2, It is characterized in that The determining the offset address according to the port number and the performance alarm identifier includes: The offset address corresponding to the port number and the performance alarm identifier is searched in a preset second database.

4. The alarm reporting method according to claim 3, It is characterized in that Before acquiring the offset address corresponding to the port number and the performance alarm identifier in the preset second database, the method further includes: Pre-dividing the offset addresses in the first database for different port numbers and performance alarm identifiers corresponding to the port numbers; The port number, the performance alarm identifier corresponding to the port number, and the divided offset address are correspondingly stored in the second database.

5. The alarm reporting method according to claim 3, It is characterized in that The method further comprises: Generate collection point information according to the port number and performance alarm identifier corresponding to the target port to be monitored; Searching the second database for a target offset address corresponding to the port number and the performance alarm identifier of the target port according to the collection point information; The performance alarm data corresponding to the target port is retrieved from the first database according to the target offset address, and reported to the network management.

6. The alarm reporting method according to claim 1, It is characterized in that The direct memory access method includes: a direct memory access DMA access method, and the uplink channel of the direct memory access method includes: a DMA uplink channel; Before reading the performance warning message about the preset hardware in the uplink channel of the direct access memory method, the method further includes: Get the preset DMA data upload status flag; When the DMA data uploading status flag indicates that data uploading is completed, a process of reading a performance warning message about the preset hardware in the DMA uploading channel is entered; When the DMA data sending status flag indicates that the data sending is not completed, detecting whether the data sending time has timed out; If the data uploading time has not timed out, reacquiring the DMA data uploading status flag; When the data transmission time duration times out, the DMA is reset.

7. The alarm reporting method according to claim 1, It is characterized in that After reading the performance warning message about the preset hardware in the uplink channel of the direct access memory method, the method further includes: Determining the validity of the performance warning message according to the second message information of the performance warning message; If it is determined that the performance warning message is valid, entering a process of determining an offset address of the performance warning data in a preset first database according to the message information of the performance warning message; If it is determined that the performance warning message is invalid, an error log regarding the performance warning message is recorded.

8. The alarm reporting method according to claim 7, It is characterized in that The preset hardware includes a port; and judging the validity of the performance warning message according to the second message information of the performance warning message includes: Obtaining the second message information: the second message information includes any one or more of the following: service type, port number, and performance alarm identifier; In the case where each item of content in the second message information matches the monitored port, determining that the performance warning message is valid; When any one or more contents in the second message information do not match the monitored port, it is determined that the performance warning message is invalid.

9. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the alarm reporting method according to any one of claims 1 to 8; One or more input / output I / O interfaces are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the alarm reporting method according to any one of claims 1 to 8.