A method, device, electronic device and storage medium for network fault early warning

By receiving interruption alarm messages from network devices, querying user status, and sending early warning information when all users are online, combined with a key-value pair storage database and a distributed streaming data engine server cluster, the problem of erroneous early warnings caused by misjudgment of network device faults is solved, improving the accuracy of early warning messages and the overall system accuracy.

CN115996334BActive Publication Date: 2026-03-06ULTRAPOWER SOFTWARE
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-18
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

In existing technologies, frequent false alarm messages caused by misjudgment of network equipment failures reduce the accuracy of alarm messages, causing trouble and wasting resources for users and operators.

Method used

By receiving interruption alarm messages from network devices, querying the status of all users corresponding to the device identifier, and sending warning information only when all users are offline, the speed and accuracy of data query are improved by using a key-value pair storage database and a distributed streaming data engine server cluster, and the ONU alarm type is corrected to avoid misjudgment.

Benefits of technology

This effectively improves the accuracy of sending early warning messages to users based on interruption alarm messages, reduces the probability of false early warnings, and enhances the accuracy and efficiency of the network fault early warning system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115996334B_ABST
    Figure CN115996334B_ABST
Patent Text Reader

Abstract

This application provides a network fault early warning method, apparatus, electronic device, and storage medium. The method includes: receiving an interruption alarm message sent by a network device, the interruption alarm message including a device identifier of the network device; querying the status of all users corresponding to the device identifier; determining whether all users corresponding to the device identifier are offline; and if so, sending early warning information to all users corresponding to the device identifier. By determining whether all users connected to the network device are offline, only when all users are offline is the network device determined to be truly faulty, and only then is early warning information sent to all users corresponding to the device identifier. This method effectively avoids the probability of sending false early warnings when some users can still use the network device to access the internet normally, thereby effectively improving the accuracy of sending early warning messages to the corresponding users based on the interruption alarm message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical fields of network communication, fault early warning and big data, and more specifically, to a network fault early warning method, device, electronic device and storage medium. Background Technology

[0002] Currently, during the process of network operators providing services through network equipment, network faults frequently occur. Specific examples include real-time detection of equipment faults through network element alarms and their association with network element information, such as Optical Line Terminal (OLT) disconnection, Passive Optical Network (PON) interruption, and Optical Network Unit (ONU) offline—all network element-level faults. These faults are stored in historical data, and the system proactively pushes fault warning messages to relevant users after detecting faults in these historical records. However, in practice, it has been found that there are instances of misjudgment of network equipment faults. The high frequency of erroneous warnings causes significant inconvenience and resource waste for users and operators. Summary of the Invention

[0003] The purpose of this application is to provide a network fault early warning method, device, electronic device, and storage medium to improve the problem of low accuracy in sending early warning messages to corresponding users based on interruption alarm messages.

[0004] This application provides a network fault early warning method, comprising: receiving an interruption alarm message sent by a network device, the interruption alarm message including the device identifier of the network device; querying all users carried by the network device according to the device identifier to determine the status of all users corresponding to the device identifier; determining whether all users corresponding to the device identifier are offline; if so, sending early warning information to all users corresponding to the device identifier. In the above implementation process, by determining whether all users carried by the network device are offline, only when all users are offline is the network device determined to be truly faulty, and only then is early warning information sent to all users corresponding to the device identifier. This method effectively avoids the probability of sending early warning information when some users can still use the network device normally to access the Internet, thus effectively improving the accuracy of sending early warning messages to the corresponding users based on the interruption alarm message.

[0005] Optionally, in this embodiment, querying all users carried by the network device based on the device identifier to determine the status of all users corresponding to the device identifier includes: querying all user identifiers carried by the network device in a key-value pair storage database, where the key-value pair storage database stores the association relationship between device identifiers and user identifiers; and querying the user status corresponding to each user identifier among all user identifiers to obtain the status of all users. In the above implementation process, by querying all user identifiers corresponding to the device identifier in the key-value pair storage database and querying the user status corresponding to each user identifier among all user identifiers in the key-value pair storage database, the key-value pair storage database is used as an intermediate data storage component for associated data, thereby effectively improving the data query speed. Furthermore, the data storage can set the expiration time of the data at the time of storage to ensure that expired data will not affect the accuracy of the network fault early warning system.

[0006] Optionally, in this embodiment, before querying all user identifiers corresponding to the network device in the key-value pair storage database, the method further includes: building a distributed streaming data stream engine server cluster; and deploying the key-value pair storage database in a distributed manner on the distributed streaming data stream engine server cluster. In the above implementation process, by building a distributed streaming data stream engine server cluster and deploying the key-value pair storage database in a distributed manner on the distributed streaming data stream engine server cluster, network problems and program execution bottlenecks caused by communication between the cluster and a single server network are avoided, thereby effectively improving the data query speed.

[0007] Optionally, in this embodiment of the application, sending warning information to all users corresponding to the device identifier includes: for each user among all users corresponding to the device identifier, obtaining the actual impact result of each user based on the user information of each user; generating warning information for each user, and then determining whether to send warning information to all users corresponding to the device identifier based on the actual impact result of each user.

[0008] Optionally, in this embodiment, the user information includes: a user offline reason field, a power outage reason field, and an abnormal offline reason field; determining the actual impact result for each user among all users corresponding to the device identifier includes: determining whether the user information of each user meets a first preset condition, the first preset condition including: the user offline reason field is abnormal offline, and the power outage reason field is not a power outage reason, and the abnormal offline reason field has not been filled back, and whether the time between the time of receiving the interruption alarm message and the time of the user's last offline time exceeds a preset time; if so, it is confirmed that the actual impact result has an actual impact on the user; otherwise, it is confirmed that the actual impact result has no actual impact on the user.

[0009] Optionally, in this embodiment, the network device is a Passive Optical Network (PON) device. After receiving the interruption alarm message sent by the network device, the method further includes: determining whether the ONU message records corresponding to the device identifier of the PON device meet a second preset condition within a preset time range. The second preset condition is that the number of ONU message records is greater than or equal to a preset number, and the proportion of messages in the ONU message records with the alarm type "ONU power failure" is greater than or equal to a preset proportion. If so, the alarm type of the ONU message record is changed from "ONU fiber disconnection" to "ONU power failure". In the above implementation process, by determining whether the ONU message records corresponding to the device identifier of the PON device meet the second preset condition within a preset time range, the alarm type of the ONU message record is changed from "ONU fiber disconnection" to "ONU power failure", thereby avoiding the problem of misjudging the alarm type of the ONU device and effectively improving the accuracy of determining the alarm type of the ONU device.

[0010] This application embodiment also provides a network fault early warning device, including: an alarm message receiving module, used to receive an interruption alarm message sent by a network device, the interruption alarm message including the device identifier of the network device; a user status query module, used to query all users carried by the network device according to the device identifier and determine the status of all users corresponding to the device identifier; a user status determination module, used to determine whether the status of all users corresponding to the device identifier is offline; and an early warning message sending module, used to send early warning information to all users corresponding to the device identifier if the status of all users corresponding to the device identifier is offline.

[0011] Optionally, in this embodiment, the user status query module includes: a user identifier query module, used to query all user identifiers carried by the network device in a key-value pair storage database, wherein the key-value pair storage database stores the association relationship between device identifiers and user identifiers; and a user status acquisition module, used to query the user status corresponding to each user identifier among all user identifiers to obtain all user statuses.

[0012] Optionally, in this embodiment, the user status query module further includes: a service cluster building module for building a distributed streaming data stream engine server cluster; and a key-value pair database module for deploying a key-value pair storage database in a distributed manner on the distributed streaming data stream engine server cluster.

[0013] Optionally, in this embodiment of the application, the warning message sending module includes: an actual impact result acquisition module, used to acquire the actual impact result of each user based on the user information of each user among all users corresponding to the device identifier; and a message generation and sending module, used to generate warning information for each user, and then determine whether to send warning information to all users corresponding to the device identifier based on the actual impact result of each user.

[0014] Optionally, in this embodiment, the user information includes: a user offline reason field, a power outage reason field, and an abnormal offline reason field; the actual impact result acquisition module includes: an alarm message judgment module, used to judge whether the user information of each user meets a first preset condition, the first preset condition including: the user offline reason field is abnormal offline, and the power outage reason field is not a power outage reason, and the abnormal offline reason field has not been filled back, and whether the time between the reception time of the interruption alarm message and the last offline time of the user exceeds a preset time; the actual impact confirmation module, used to confirm that the actual impact result has an actual impact on the user if the user information meets the first preset condition, otherwise, confirm that the actual impact result has no actual impact on the user.

[0015] Optionally, in this embodiment of the application, the network device is a Passive Optical Network (PON) device, and the network fault early warning device further includes: a message record judgment module, used to determine whether the ONU message records corresponding to the device identifier of the PON device within a preset time range meet a second preset condition, wherein the second preset condition is that the number of ONU message records is greater than or equal to a preset number, and the proportion of messages in the ONU message records with the alarm type of ONU power failure is greater than or equal to a preset proportion; and an alarm type modification module, used to modify the alarm type of the ONU message records from ONU fiber breakage to ONU power failure if the ONU message records corresponding to the device identifier meet the second preset condition.

[0016] Optionally, in this embodiment of the application, the network device includes: a passive optical network (PON) device, an optical line terminal equipment (OLT) device, or an optical network unit (ONU).

[0017] This application also provides an electronic device, including a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the machine-readable instructions, when executed by the processor, perform the method described above.

[0018] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to perform the methods described above. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the embodiments of this application, and therefore should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 The diagram shown is a flowchart of a network fault early warning method provided in an embodiment of this application.

[0021] Figure 2 The diagram shown is a schematic representation of the network architecture of the network fault early warning system provided in an embodiment of this application.

[0022] Figure 3 The illustrated flowchart shows a process for correcting ONU alarm types provided in an embodiment of this application.

[0023] Figure 4 The diagram shown is a structural schematic of the network fault early warning device provided in an embodiment of this application;

[0024] Figure 5 The diagram shows a structural schematic of an electronic device provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed embodiments of this application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.

[0026] Before introducing the network fault early warning method provided in the embodiments of this application, let's first introduce some concepts involved in the embodiments of this application:

[0027] Passive Optical Network (PON), also known as passive fiber optic network, is a type of fiber optic communication network. Its characteristic is that it can complete signal processing without power supply, just like a mirror in the house that can reflect images without electricity. Except for the terminal equipment, which requires power, the intermediate nodes are composed of delicate and compact fiber optic components.

[0028] An Optical Network Unit (ONU) is a terminal device for fiber optic access. It has optical-to-electrical and electrical-to-optical conversion functions, as well as digital-to-analog and analog-to-digital conversion functions for voice signals, multiplexing, signaling processing, and maintenance management functions. It can usually be used in conjunction with an Optical Line Terminal (OLT) to provide users with multiple service interfaces.

[0029] An optical line terminal (OLT), also known as an optical link terminal, is an OLT device used in PON technology applications and is a very important central office device. A PON device includes a central office node called the optical link terminal (OLT) and one or more user nodes called optical network units (ONUs) or optical network terminals (ONTs).

[0030] Key-value databases are a type of non-relational database that uses a simple key-value approach to store data. They store data as collections of key-value pairs, where the key serves as a unique identifier. Both keys and values ​​can be anything from simple objects to complex composite objects. Key-value databases are highly partitionable and allow for horizontal scaling at a scale unattainable by other types of databases.

[0031] Flink is an open-source stream processing framework, also known as Apache Flink. Its core is a distributed streaming data engine written in Java and Scala. Flink executes arbitrary streaming data programs in a data parallel and pipeline manner. Flink's pipeline runtime system can execute batch processing and stream processing programs.

[0032] It should be noted that the network fault early warning method provided in this application embodiment can be executed by an electronic device. Here, electronic device refers to a device terminal with the function of executing computer programs or the aforementioned server. Device terminals include, for example, smartphones, personal computers (PCs), tablet computers, personal digital assistants (PDAs), or mobile internet devices (MIDs). Servers include, for example, x86 servers and non-x86 servers. Non-x86 servers include mainframes, minicomputers, and UNIX servers.

[0033] The following describes the application scenarios applicable to this network fault early warning method. These scenarios include, but are not limited to, home broadband applications based on Point-to-Point Protocol over Ethernet (PPPoE). Specific examples include: using this method to provide early warnings for faults in network devices such as OLTs, PONs, or ONUs, thereby improving the accuracy of sending early warning messages to relevant users based on interruption alarm messages; and enhancing the functionality of home broadband smart monitoring systems, for instance, by improving the accuracy of sending early warning messages to relevant users when using such systems.

[0034] In practical application, instances of false alarms regarding network device malfunctions have been observed. For example, although an interruption alarm message from the network device may be received, some users connected to the same network device may still be able to access the internet normally, indicating that the network device is still functioning correctly. This network fault early warning method ensures that all users are offline before confirming a genuine network device malfunction, and only then is an alarm message sent to the corresponding users. Therefore, using this method can reduce the occurrence of false alarms and improve the accuracy of sending alarm messages to users based on interruption alarm messages.

[0035] Please see Figure 1 The illustrated flowchart illustrates a network fault early warning method provided in this application embodiment. The main idea of ​​this method is to determine whether all users connected to the network device are offline. Only when all users are offline is the network device considered truly faulty, and only then is an early warning message sent to all users corresponding to the device identifier. This effectively avoids sending false warnings when some users can still access the network normally, thus significantly improving the accuracy of sending warning messages to the corresponding users based on interruption alarm messages. The aforementioned network fault early warning method may include:

[0036] Step S110: The electronic device receives an interruption alarm message sent by the network device. The interruption alarm message includes the device identifier of the network device.

[0037] Please see Figure 2The diagram illustrates the network architecture of a network fault early warning system provided in this embodiment of the application. The network fault early warning system includes: network devices, a Broadband Remote Access Server (BRAS), a smart home monitoring system, a Remote Authentication Dial In User Service (RADIUS) system, a comprehensive resource system, an SMS gateway, and a centralized fault management system. The smart home monitoring system communicates with the RADIUS system, the comprehensive resource system, the SMS gateway, and the centralized fault management system. The BRAS communicates with both the network devices and the RADIUS system. The network devices may include Passive Optical Network (PON), Optical Line Terminal (OLT), and Optical Network Unit (ONU), etc. These network devices communicate with broadband users' personal computers and other devices via an optical modem (also known as an optical modem).

[0038] For example, in the implementation of step S110 above, a smart home broadband monitoring system can be run on the electronic device. When a network device experiences an interruption alarm, an interruption alarm message can be sent sequentially through the BRAS and RADIUS systems. The interruption alarm message may include the device identifier of the network device. Of course, in practice, if the network connection routes between the network device and the electronic device are different, the interruption alarm message sent by the network device can also be sent through different network connection routes. Then, the electronic device receives the interruption alarm message sent by the network device, which includes the device identifier of the network device. In the network fault early warning system described above, the PPPoE scenario can also be integrated with the broadband authentication RADIUS system. The electronic device running the smart home broadband monitoring system can collect network big data from the integrated resource system, centralized fault management system, and RADIUS system, and analyze this big data to monitor the status of RADIUS online users in real time, thereby detecting home broadband network faults affecting services in real time.

[0039] After step S110, step S120 is executed: the electronic device queries all users carried by the network device based on the device identifier and determines the status of all users corresponding to the device identifier.

[0040] It is understood that the aforementioned users can be users in the RADIUS system. There are many ways to implement step S120 above, including but not limited to the following:

[0041] In a first implementation, the user status corresponding to the device identifier is queried in a key-value pair storage database. This implementation may include:

[0042] Step S121: Query all user identifiers corresponding to the network device in the key-value pair storage database. The key-value pair storage database stores the association relationship between device identifiers and user identifiers.

[0043] Optionally, before querying using the key-value pair storage database, it is necessary to set up the key-value pair storage database. The implementation methods for setting up the key-value pair storage database may include: building a distributed streaming data stream engine server cluster based on Flink, where the cluster can be a high-availability (HA) cluster. The key-value pair storage database is then deployed in a distributed manner on the distributed streaming data stream engine server cluster.

[0044] For example, the implementation of step S121 above involves querying all user identifiers corresponding to the device identifier in a key-value storage database such as Redis or Memcached. The key-value storage database stores the association between device identifiers and user identifiers.

[0045] Step S122: Query the user status corresponding to each user identifier in all user identifiers to obtain the status of all users.

[0046] For example, in the above-mentioned key-value pair storage database, the correspondence between user identifiers and user statuses can also be stored. Then, the user status corresponding to each user identifier in all user identifiers can be queried in the above-mentioned Redis or Memcached key-value pair storage database to obtain all user statuses.

[0047] The second implementation involves querying all user states corresponding to the device identifier in a relational or non-relational database. This implementation may include: querying all user identifiers carried by the device identifier in a relational or non-relational database, and then querying the user state corresponding to each user identifier in the relational or non-relational database to obtain all user states. Relational databases that can be used include MySQL, PostgreSQL, Oracle, and SQL Server, while non-relational databases that can be used include Grakn database, Neo4j graph database, Hadoop subsystem HBase, MongoDB, and CouchDB.

[0048] After step S120, step S130 is executed: the electronic device determines whether all user states corresponding to the device identifier are offline.

[0049] In practice, different judgment methods are used for different network devices. The purpose of determining whether all users associated with the device identifier are offline is to ascertain whether the network device has actually failed. The aforementioned network device can be an OLT device, a PON device, or an ONU device. Therefore, the implementation methods of step S130 above include, but are not limited to, the following:

[0050] In the first implementation, if the network device is an OLT device, it is determined whether all user states corresponding to the OLT device's device identifier are offline. Specifically, after receiving an interruption alarm message from the OLT device, it is possible to synchronously query whether the user states of all RADIUS users corresponding to the OLT device's device identifier (e.g., the OLT device's IP address) are offline, thereby determining whether it is a genuine OLT device interruption fault. The specific process for querying the user states of all RADIUS users corresponding to the OLT device's device identifier is as follows: first, query the user records of all RADIUS users corresponding to the device identifier. These user records include user IDs and user states, and then find the corresponding user states (i.e., find the current user's online status in the RADIUS service system) from these user records. This part of the user record data is accumulated through the long-term RADIUS system. That is, whenever an electronic device receives a user record sent by the RADIUS system, it parses the network device identifiers such as the OLT device identifier (e.g., OLT_IP) and / or PON device identifier (e.g., PON_ID) associated with the user ID from the user record. Then, the user ID and network device identifier are stored in the Redis cluster, where the key is set to OLT_IP or OLT_IP+PON_ID, and the value is set to a Set of users.

[0051] In the second implementation, if the network device is a PON device, it is determined whether all user states corresponding to the PON device's device identifier are offline. Specifically, after receiving an interruption alarm message from the PON device, it is possible to synchronously query whether all user states corresponding to the PON device's device identifier are offline, thereby determining whether it is a genuine PON device interruption fault. In practical application, after generating an alert message for each user, users can also be filtered and marked. For example, users with a power outage status can be filtered out and marked as "actually affected offline," and the user's abnormal offline reason field can be set to "PON interruption," etc.

[0052] In the third implementation, if the network device is an ONU device, it is determined whether all user states corresponding to the device identifier of the ONU device are offline. The specific implementation of the ONU device will be described in detail after step S140 below.

[0053] After step S130, step S140 is executed: if all users corresponding to the device identifier are offline, the electronic device sends a warning message to all users corresponding to the device identifier.

[0054] For example, in the implementation of step S140 above: if all users corresponding to the device identifier are offline, a warning message is sent to all users corresponding to the device identifier via Hypertext Transfer Protocol (HTTP) or Hypertext Transfer Protocol Secure (HTTPS).

[0055] During the process of the aforementioned electronic device sending warning information to all users corresponding to the device identifier, it is possible to determine whether there is an actual impact on each user among all users corresponding to the device identifier. Specifically, this determination can be made based on whether the user information meets a first preset condition. For example, it can be determined whether each user's information meets the first preset condition, which includes: the user's offline reason field is "abnormal offline," the power outage reason field is "non-power outage," the abnormal offline reason field has not been backfilled (i.e., it has been refilled), and whether the time between the reception time of the interruption alarm message and the user's last offline time exceeds a preset time. If the user's information meets the first preset condition, it is confirmed that there is an actual impact on the user; otherwise, it is confirmed that there is no actual impact on the user.

[0056] Each user's alert information is generated based on their individual user information. Specifically, this involves filling each user's information into an alert template to generate their alert. Then, based on the actual impact on each user, it's determined whether to send alerts to all users associated with the device identifier. For example, if the device has an actual impact on that user, the cause of the abnormal offline failure can be set to "device interruption," and then an alert can be sent to that user. Alternatively, it can be chosen not to send an alert to that user. If the device has no actual impact on that user, the alert is simply recorded in the database log.

[0057] In the above implementation process, by determining whether all users corresponding to the device identifier are offline, the network device is determined to be truly faulty only when all users are offline. At this time, a warning message is sent to all users corresponding to the device identifier. This method effectively avoids the probability of sending false warning messages when some users can still use the network device to access the Internet normally, thereby effectively improving the accuracy of sending warning messages to the corresponding users based on the interruption alarm message.

[0058] Please see Figure 3 The illustrated flowchart of the embodiment of this application provides a method for correcting ONU alarm types; optionally, the alarm types of the interruption alarm messages of the optical network unit (ONU) mentioned above may include: ONU fiber disconnection and ONU power failure; after receiving the interruption alarm message sent by the network device in step S110, the ONU alarm type can be corrected, and the implementation of correcting the ONU alarm type may include:

[0059] Step S210: Determine whether the ONU message records corresponding to the device identifier of the PON device within the preset time range meet the second preset condition. The second preset condition is that the number of ONU message records is greater than or equal to the preset quantity, and the proportion of ONU message records with alarm type ONU power failure is greater than or equal to the preset proportion.

[0060] The implementation of step S210 above is as follows: First, query the ONU message record corresponding to the device identifier of the PON device. The ONU message record includes the ONU device identifier, the IP address (i.e., OLT_IP) of the OLT device corresponding to the ONU device, and the port number (i.e., PON_PORT) of the PON device. Then, count the ONU message records corresponding to each OLT device within a preset time range (i.e., a specified time period). Finally, determine whether the counted ONU message records corresponding to the device identifier meet the second preset condition. The second preset condition is that the number of ONU message records is greater than or equal to a preset number, and the proportion of ONU message records with alarm type "ONU power failure" is greater than or equal to a preset proportion. Specifically, the second preset condition here is, for example, that the number of ONU message records is greater than or equal to 3, and the proportion of ONU message records with alarm type "ONU power failure" is greater than or equal to 66%.

[0061] Step S220: If the ONU message records corresponding to the device identifier of the PON device meet the second preset condition within the preset time range, then change the alarm type of the ONU message records from ONU fiber breakage to ONU power failure.

[0062] For example, the implementation of step S220 above is as follows: If, within a preset time range, the ONU message records corresponding to the device identifier of the PON device meet the second preset condition (e.g., the number of ONU message records is greater than or equal to 3, and the proportion of ONU message records with alarm type ONU power failure is greater than or equal to 66%), then first filter out the ONU message records with alarm type ONU fiber breakage; then, mark the generated warning message as "false positive"; finally, change the alarm type of the ONU message records from ONU fiber breakage to ONU power failure.

[0063] Please see Figure 4 The diagram shown is a structural schematic of a network fault early warning device provided in an embodiment of this application; this embodiment of the application provides a network fault early warning device 300, including:

[0064] The alarm message receiving module 310 is used to receive interruption alarm messages sent by network devices. The interruption alarm message includes the device identifier of the network device.

[0065] The user status query module 320 is used to query all users carried by the network device based on the device identifier and determine the status of all users corresponding to the device identifier.

[0066] The user status determination module 330 is used to determine whether all users corresponding to the device identifier are offline.

[0067] The warning message sending module 340 is used to send warning information to all users corresponding to the device identifier if all users corresponding to the device identifier are offline.

[0068] Optionally, in this embodiment of the application, the user status query module includes:

[0069] The user identifier query module is used to query all user identifiers corresponding to the network device in the key-value pair storage database. The key-value pair storage database stores the association relationship between device identifiers and user identifiers.

[0070] The user status acquisition module is used to query the user status corresponding to each user identifier in all user identifiers and obtain the status of all users.

[0071] Optionally, in this embodiment of the application, the user status query module further includes:

[0072] The service cluster setup module is used to build a distributed streaming data stream engine server cluster.

[0073] The key-value database module is used to deploy key-value storage databases in a distributed manner on a distributed streaming data stream engine server cluster.

[0074] Optionally, in this embodiment of the application, the warning message sending module includes:

[0075] The actual impact result acquisition module is used to obtain the actual impact result for each user among all users corresponding to the device identifier, based on each user's user information.

[0076] The message generation and sending module is used to generate warning information for each user, and then determine whether to send warning information to all users corresponding to the device identifier based on the actual impact of each user.

[0077] Optionally, in this embodiment, the user information includes: a user offline reason field, a power outage reason field, and an abnormal offline reason field; the actual impact result acquisition module includes:

[0078] The alarm message judgment module is used to determine whether the user information of each user meets the first preset conditions. The first preset conditions include: the user's offline reason field is abnormal offline, the power failure reason field is not a power failure reason, the abnormal offline reason field has not been filled back, and whether the time between the time of receiving the interruption alarm message and the time of the user's last offline time exceeds the preset time.

[0079] The actual impact confirmation module is used to confirm that if the user's information meets the first preset condition, the actual impact result is that it has an actual impact on the user; otherwise, it is confirmed that the actual impact result is that it has no actual impact on the user.

[0080] Optionally, in this embodiment of the application, the network device is a passive optical network (PON) device, and the network fault early warning device further includes:

[0081] The message record judgment module is used to determine whether the ONU message records corresponding to the device identifier of the PON device within a preset time range meet the second preset condition. The second preset condition is that the number of ONU message records is greater than or equal to a preset number, and the proportion of messages in the ONU message records with the alarm type of ONU power failure is greater than or equal to a preset proportion.

[0082] The alarm type modification module is used to change the alarm type of the ONU message record from ONU fiber disconnection to ONU power failure if the ONU message record corresponding to the device identifier meets the second preset condition.

[0083] Optionally, in this embodiment of the application, the network device includes: a passive optical network (PON) device, an optical line terminal equipment (OLT) device, or an optical network unit (ONU).

[0084] It should be understood that this device corresponds to the network fault early warning method embodiment described above and is capable of performing the various steps involved in the above method embodiment. The specific functions of this device can be found in the description above, and detailed descriptions are omitted here to avoid repetition. The device includes at least one software functional module that can be stored in memory or embedded in the device's operating system (OS) in the form of software or firmware.

[0085] Please see Figure 5 The diagram shows a structural schematic of an electronic device provided in an embodiment of this application. An electronic device 400 provided in this application includes a processor 410 and a memory 420. The memory 420 stores machine-readable instructions executable by the processor 410. When the machine-readable instructions are executed by the processor 410, the method described above is performed.

[0086] This application embodiment also provides a computer-readable storage medium 430, on which a computer program is stored, and the computer program is executed by a processor 410 to perform the above method.

[0087] The computer-readable storage medium 430 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0088] It should be understood that the disclosed apparatus and methods can also be implemented in other ways, as provided in the embodiments of this application. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending primarily on the functions involved.

[0089] In addition, the functional modules of each embodiment in the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0090] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0091] The above description is only an optional implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application.

Claims

1. A network failure early warning method, characterized by, The method comprises the following steps: receiving an interrupt alarm message sent by a network device, wherein the interrupt alarm message comprises a device identifier of the network device; querying all users carried by the network device according to the device identifier to determine all user states corresponding to the device identifier; judging whether all user states corresponding to the device identifier are offline; if yes, sending early warning information to all users corresponding to the device identifier; wherein the step of sending early warning information to all users corresponding to the device identifier comprises: judging, for each user in all users corresponding to the device identifier, whether the user information of the user satisfies a first preset condition, wherein the first preset condition comprises: the user offline reason field is abnormal offline, the power-off reason field is a non-power-off reason, the abnormal offline reason field is not backfilled, and the time length between the receiving time of the interrupt alarm message and the last offline time of the user exceeds a preset time length; if yes, confirming that the actual impact result is actually affecting the user, and setting the abnormal offline fault reason field of the user as device interrupt, and then sending early warning information to the user.

2. The method of claim 1, wherein, The step of querying all users carried by the network device according to the device identifier to determine all user states corresponding to the device identifier comprises: querying all user identifiers carried by the network device in a key-value storage database, wherein the key-value storage database stores an association relationship between device identifiers and user identifiers; querying the user state corresponding to each user identifier in all user identifiers to obtain all user states.

3. The method of claim 2, wherein, Before the step of querying all user identifiers carried by the network device in the key-value storage database, the method further comprises: building a distributed stream data flow engine server cluster; deploying the key-value storage database in a distributed manner on the distributed stream data flow engine server cluster.

4. The method of claim 1, wherein, The step of sending early warning information to all users corresponding to the device identifier comprises: for each user in all users corresponding to the device identifier, obtaining the actual impact result of the user according to the user information of the user; generating early warning information of each user, and then determining whether to send early warning information to all users corresponding to the device identifier according to the actual impact result of each user.

5. The method of claim 4, wherein, The user information comprises: a user offline reason field, a power-off reason field and an abnormal offline reason field; the step of obtaining the actual impact result of each user according to the user information of each user comprises: judging whether the user information of each user satisfies a first preset condition, wherein the first preset condition comprises: the user offline reason field is abnormal offline, the power-off reason field is a non-power-off reason, the abnormal offline reason field is not backfilled, and the time length between the receiving time of the interrupt alarm message and the last offline time of the user exceeds a preset time length; if yes, confirming that the actual impact result is actually affecting the user, otherwise, confirming that the actual impact result is not actually affecting the user.

6. The method according to any one of claims 1 to 5, characterized in that, The network device is a passive optical network (PON) device, and after receiving the interrupt alarm message sent by the network device, the method further comprises: determining whether the ONU message record corresponding to the device identifier of the PON device satisfies a second preset condition within a preset time range, the second preset condition being that the number of the ONU message record is greater than or equal to a preset number, and the proportion of the message with the alarm type of ONU power-off in the ONU message record is greater than or equal to a preset proportion; if yes, modifying the alarm type of the ONU message record from ONU fiber break to ONU power-off.

7. The method according to any one of claims 1 to 5, characterized in that, The network device comprises a passive optical network (PON) device, an optical line terminal device, or an optical network unit (ONU).

8. A network failure early warning apparatus characterized by comprising: The method comprises: an alarm message receiving module configured to receive an interrupt alarm message sent by a network device, the interrupt alarm message comprising a device identifier of the network device; a user state querying module configured to query all users carried by the network device according to the device identifier, and determine all user states corresponding to the device identifier; a user state determining module configured to determine whether all user states corresponding to the device identifier are offline; a pre-warning message sending module configured to send pre-warning information to all users corresponding to the device identifier if all user states corresponding to the device identifier are offline. The sending of the pre-warning information to all users corresponding to the device identifier comprises: for each user in all users corresponding to the device identifier, determining whether the user information of the user satisfies a first preset condition, the first preset condition comprising: the user offline reason field is abnormal offline, the power-off reason field is non-power-off reason, the abnormal offline reason field is not backfilled, and the time length between the time of receiving the interrupt alarm message and the last time of the user going offline exceeds a preset time length; if yes, confirming that the actual impact result is actual impact on the user, and setting the abnormal offline fault reason field of the user to device interrupt, and then sending pre-warning information to the user.

9. An electronic device, comprising: The method comprises: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions being executed by the processor to perform the method of any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer program is stored on the computer-readable storage medium and executed by the processor to perform the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Network alarm method and device

    CN110149227A

  • Method and device for actively identifying secondary spectral fractions based on big data analysis

    CN113365164A