Fault detection method, device, electronic equipment and storage medium

By obtaining the number of target user terminals connected to the optical cable terminal equipment and historical fault data in real time, the threshold is automatically adjusted to achieve efficient fault detection of the broadband network, solving the problem of low fault detection efficiency in the existing technology, and improving maintenance efficiency and user experience.

CN115842760BActive Publication Date: 2024-09-03CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211570079.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2024-09-03
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

The fault detection efficiency of the existing broadband network is low, it cannot be maintained in a timely and effective manner, and it cannot meet the needs of users.

Method used

By obtaining the number of target user terminals connected to optical cable terminal equipment in real time, if the number meets the preset threshold, the number in the previous time period is obtained, and the threshold is adjusted based on historical fault data to achieve automatic fault detection and improve maintenance efficiency.

Benefits of technology

Without relying on user fault reporting information, the usage status of optical cable terminal equipment can be detected in real time to improve the efficiency of broadband network maintenance, detect faults in a timely manner, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842760B
    Figure CN115842760B
Patent Text Reader

Abstract

The present application provides a fault detection method, device, electronic device and storage medium. The method includes: obtaining in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, the target user terminal being a user terminal whose connection state with the optical cable terminal device is the target state; if the current number meets the preset threshold requirement, obtaining the previous number of target user terminals connected to the optical cable terminal device in the previous time period; and obtaining a first fault detection result based on the previous number. The method of the present application improves the efficiency of maintaining the broadband network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a fault detection method, device, electronic device and storage medium. Background Art

[0002] For home broadband access, the main access method is FTTH (Fiber To The Home). This is an optical access network application type that installs an optical network unit (ONU) at a residential user or corporate user. During the networking process, it passes through a variety of devices and physical media, mainly including OLT (optical line terminal) equipment, optical cross-connection box, splitter, etc. The OLT device is connected to the data switch uplink, and the downlink is through the trunk optical cable through the optical cross-connection box. The optical cross-connection box reaches the splitter through the access pipeline and supporting equipment, and then passes through the ONT (Optical Network Termination) through the skin optical cable. Finally, the ONU is installed in the user's home through wiring to achieve fiber to the home.

[0003] At present, with the rapid development of the Internet, users have higher and higher requirements for network quality. The existing broadband network maintenance mainly relies on user fault reporting to detect and maintain equipment faults. The operation and maintenance personnel perform maintenance screening on the entire broadband network based on the user's fault reporting information to obtain fault detection results.

[0004] However, the existing fault detection methods have low detection efficiency, cannot perform timely and effective maintenance of broadband networks, and cannot meet the needs of users. Summary of the invention

[0005] The present application provides a fault detection method, device, electronic device and storage medium to solve the problem of low maintenance efficiency of broadband networks.

[0006] In a first aspect, the present application provides a fault detection method, comprising:

[0007] Real-time acquisition of the current number of target user terminals connected to the optical cable terminal device in the current time period, the target user terminals being user terminals whose connection status with the optical cable terminal device is a target status;

[0008] If the current number meets the preset threshold requirement, the previous number of target user terminals connected to the optical cable terminal device in the previous time period is obtained;

[0009] According to the previous number, a first fault detection result is obtained.

[0010] In the embodiment of the present application, before obtaining in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, the method further includes:

[0011] Determine the multiple devices connected to the optical cable terminal equipment in the broadband network;

[0012] Log in to the optical cable terminal equipment;

[0013] If the login to the optical cable terminal device is successful, the data information of the optical cable terminal device is collected to obtain the current number of target user terminals in the user terminal in the current time period and the previous number of target user terminals connected to the optical cable terminal device in the previous time period in real time based on the data information.

[0014] In an embodiment of the present application, after logging into the optical cable terminal device, the method further includes:

[0015] If logging into the optical cable terminal device is unsuccessful, a second fault detection result is obtained.

[0016] In the embodiment of the present application, after obtaining in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, the method further includes:

[0017] If the current number does not meet the preset threshold requirement, obtain the user's fault reporting information;

[0018] According to the user's fault reporting information, a third fault detection result is obtained.

[0019] In the embodiment of the present application, according to the previous quantity, a first fault detection result is obtained, including:

[0020] Determine the comparison threshold;

[0021] If the previous number meets the requirement of the comparison threshold, a first fault detection result is obtained.

[0022] In the embodiment of the present application, determining the comparison threshold includes:

[0023] Obtain a historical comparison threshold, a historical actual fault number, and a historical analysis fault number, wherein the historical comparison threshold is the comparison threshold initially set, the historical actual fault number is the number of faults actually occurring in user terminals within a historical time period, and the historical analysis fault number is the number of faults predicted to occur in user terminals;

[0024] According to the historical actual fault number and the historical analyzed fault number, the historical comparison threshold is adjusted to obtain the comparison threshold.

[0025] In the embodiment of the present application, the historical comparison threshold is adjusted according to the historical actual fault number and the historical analysis fault number to obtain the comparison threshold, including:

[0026] Determine the hit rate and accuracy of fault detection based on the number of historical actual faults and the number of historical analyzed faults;

[0027] According to the hit rate and accuracy, determine the correlation coefficient of the historical comparison threshold;

[0028] According to the correlation coefficient, the historical comparison threshold is adjusted to obtain the comparison threshold.

[0029] In the embodiment of the present application, after determining the comparison threshold, the method further includes:

[0030] If the previous number does not meet the comparison threshold requirement, obtain the user's fault reporting information;

[0031] According to the user's fault reporting information, a third fault detection result is obtained.

[0032] In a second aspect, the present application provides a fault detection device, comprising:

[0033] A real-time acquisition module, used for acquiring in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, the target user terminals being user terminals whose connection status with the optical cable terminal device is in the target status;

[0034] An acquisition module, used for acquiring the last number of target user terminals connected to the optical cable terminal device in the last time period if the current number meets the preset threshold requirement;

[0035] The obtaining module is used to obtain a first fault detection result according to the previous quantity.

[0036] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0037] Memory stores computer-executable instructions;

[0038] The processor executes the computer-executable instructions stored in the memory to implement the fault detection method in the above embodiment.

[0039] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the fault detection method in the above-mentioned embodiment.

[0040] The fault detection method, device, electronic device and storage medium provided by the present application obtain the current number of target user terminals connected to the optical cable terminal device in the current time period in real time, the target user terminal is a user terminal whose connection state with the optical cable terminal device is the target state among the user terminals; if the current number meets the preset threshold requirement, the previous number of target user terminals connected to the optical cable terminal device in the previous time period is obtained; according to the previous number, a means of obtaining a first fault detection result is obtained, and by obtaining the current number and the previous number of target user terminals connected to the optical cable terminal device in real time, the use state of the optical cable terminal device can be detected in real time without receiving user fault reporting information, thereby improving the efficiency of maintaining the broadband network. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] Figure 1 A flowchart of a fault detection method provided in an embodiment of the present application;

[0043] Figure 2 A flowchart of another fault detection method provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of a flow chart of a fault analysis method provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of the structure of a fault detection device provided in an embodiment of the present application;

[0046] Figure 5 A hardware schematic diagram of an electronic device provided in an embodiment of the present application.

[0047] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0049] In the prior art, when testing the OLT equipment of the broadband network, the user of the user terminal connected to the OLT equipment generally reports the fault, and the operation and maintenance personnel conduct an inspection and test on the broadband network to determine the fault of the broadband network. However, during such a test, the user needs to actively report the fault or complain before the operation and maintenance personnel will come to handle it. The efficiency of discovering the existence of the fault and carrying out the repair is not high, and there is a lag, which greatly affects the user experience.

[0050] The embodiment of the present application obtains in real time the current number of target user terminals connected to the optical cable terminal device in the current time period and the previous number of target user terminals connected to the optical cable terminal device in the previous time period, and determines whether the optical cable terminal device has a fault by judging the current number and the previous number, thereby improving the efficiency of proactively discovering faults, allowing operation and maintenance personnel to conduct timely inspections and repairs, thereby improving user experience.

[0051] The execution subject of the detection method provided in the embodiment of the present application may be a server. The server may be a mobile phone, a tablet, a computer or other device. This embodiment does not impose any special restrictions on the implementation method of the execution subject, as long as the execution subject can obtain the current number of target user terminals connected to the optical cable terminal device in the current time period in real time, and the target user terminal is a user terminal whose connection state with the optical cable terminal device is the target state among the user terminals; if the current number meets the preset threshold requirement, the previous number of target user terminals connected to the optical cable terminal device in the previous time period is obtained; and according to the previous number, the first fault detection result is obtained.

[0052] Among them, the optical cable terminal equipment is a multi-service providing platform that supports both IP (Internet Protocol, a protocol for interconnecting networks) services and traditional TDM (Time Division Multiplexing) services. The optical cable terminal equipment can be placed at the edge of the metropolitan area network or the exit of the community access network to converge access services and transmit them to the IP network respectively.

[0053] In addition to providing service aggregation functions, the optical cable terminal equipment is also a centralized network management platform. Device-based network element management and service-based security management and configuration management can be implemented on the optical cable terminal equipment.

[0054] Figure 1 The flowchart of a fault detection method provided in the embodiment of the present application is shown in FIG. The execution subject of the method can be a server or other servers, and this embodiment is not particularly limited here. Figure 1 As shown, the method may include:

[0055] S101. Acquire in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, where the target user terminals are user terminals whose connection status with the optical cable terminal device is a target status.

[0056] The current time period may be the time during which the current quantity is being obtained.

[0057] The optical cable terminal device can be a terminal device for connecting optical fiber trunk lines. The optical cable terminal device has the functions of sending Ethernet data to ONU in broadcast mode, initiating and controlling the ranging process, recording ranging information, allocating bandwidth to ONU, and controlling the start time and sending window size of ONU data.

[0058] The user terminal can be a transceiver device that converts optical Ethernet signals into other protocol signals. In the embodiment of the present application, there can be multiple user terminals, and they are connected to the optical cable terminal device through the PON (Passive Optical Network) interface of the optical cable terminal device.

[0059] The connection state may refer to a normal state or an abnormal state when the user terminal is connected to the optical cable terminal device; the normal state refers to a normal connection between the user terminal and the optical cable terminal device, and the abnormal state refers to a failure to connect the user terminal and the optical cable terminal device due to power failure, disconnection, or other problems. In the embodiment of the present application, the target state may be a normal state, and the target user terminal may be a user terminal whose connection state is normal.

[0060] The current number may refer to the number of target user terminals whose connection state is the target state in the current time period.

[0061] In the embodiment of the present application, the method before obtaining the current number of target user terminals connected to the optical cable terminal device in the current time period in real time may also include:

[0062] Determine the multiple devices connected to the optical cable terminal equipment in the broadband network;

[0063] Log in to the optical cable terminal equipment;

[0064] If the login to the optical cable terminal device is successful, the data information of the optical cable terminal device is collected to obtain the current number of target user terminals in the user terminal in the current time period and the previous number of target user terminals connected to the optical cable terminal device in the previous time period in real time based on the data information.

[0065] The equipment composition may include a metropolitan area network, an optical cross-connection box, a splitter, an ONT, and an ONU connected to the optical cable terminal equipment in the broadband network. Determining multiple equipment compositions may also refer to determining the fixed network resource PON port ledger, line system user access, number of billed users, gigabit cell list, team area division list, and other information of the metropolitan area network, optical cable terminal equipment, optical cross-connection box, splitter, ONT, and ONU.

[0066] Logging into the optical cable terminal device may refer to logging into the optical cable terminal device regularly in a multi-threaded manner through a remote login protocol telnet (a login and emulation program for a transmission control protocol / Internet protocol network) / ssh (Secure Shell) under the premise of ensuring network security. In an embodiment of the present application, the time interval for logging into the optical cable terminal device may be 15 minutes / time.

[0067] The data information may include the number of target user terminals connected to the optical cable terminal device. In the embodiment of the present application, the number of target user terminals of each PON port on the optical cable terminal device may be collected through a query command and stored.

[0068] Among them, in the embodiment of the present application, the method after logging into the optical cable terminal device may also include:

[0069] If logging into the optical cable terminal device is unsuccessful, a second fault detection result is obtained.

[0070] Among them, the second fault detection result may be that there is a problem with the optical cable terminal equipment or the upstream equipment, lines, etc., and the operation and maintenance personnel can screen the optical cable terminal equipment or the upstream equipment, lines according to the second fault detection result.

[0071] S102: If the current number meets the preset threshold requirement, the previous number of target user terminals connected to the optical cable terminal device in the previous time period is obtained.

[0072] Among them, the preset threshold requirement may refer to the quantity requirement for the current quantity. In an embodiment of the present application, the preset threshold requirement may be whether the current quantity is zero. If the current quantity is zero, the preset threshold requirement is met. If the current quantity is not zero, the preset threshold requirement is not met.

[0073] The previous time period may refer to the previous time period adjacent to the current time period, or the previous time period separated from the current time period by a preset time period, wherein the duration of the previous time period may be different from that of the current time period, or may be the same as that of the current time period.

[0074] The previous number may refer to the number of target user terminals whose connection state is the target state in the previous time period.

[0075] Among them, in the embodiment of the present application, after obtaining in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, the method may also include:

[0076] If the current number does not meet the preset threshold requirement, obtain the user's fault reporting information;

[0077] According to the user's fault reporting information, a third fault detection result is obtained.

[0078] Among them, user fault reporting information may refer to the information obtained by users when reporting faults through mini-programs, websites, etc. based on situations where the network cannot be used or is used poorly.

[0079] In some embodiments, when the current number does not meet the preset threshold requirement, that is, in the embodiment of the present application, the current number is not zero, it can be screened and determined by determining whether the detected optical cable terminal device has unprocessed user fault reporting information. When there is user fault reporting information, a third fault detection result can be obtained, and when there is no user fault reporting information, it can be determined that the broadband network has no fault.

[0080] The third fault detection result may include a user line problem, a user terminal problem, or an access optical cable problem.

[0081] S103: Obtain a first fault detection result according to the previous number.

[0082] The first fault detection result may include a power failure problem at the user side or a problem with the access optical cable.

[0083] In the embodiment of the present application, according to the previous number, the method for obtaining the first fault detection result may include:

[0084] Determine the comparison threshold;

[0085] If the previous number meets the requirement of the comparison threshold, a first fault detection result is obtained.

[0086] The comparison threshold may refer to the quantity requirement for the current quantity. For example, when the preset threshold is zero, it is determined whether the previous quantity exceeds the comparison threshold. When the comparison threshold is exceeded, it indicates that there is a problem with the connection state between the optical cable terminal device and the user terminal, and thus the first fault detection result is obtained. When the comparison threshold is not exceeded, it indicates that there is no problem with the connection state between the optical cable terminal device and the user terminal, and further detection is required. In the embodiment of the present application, the comparison threshold may be a number preset manually, and is determined based on the results of historical detection.

[0087] In this embodiment of the present application, the method for determining the comparison threshold may include:

[0088] Obtain a historical comparison threshold, a historical actual fault number, and a historical analysis fault number, wherein the historical comparison threshold is the comparison threshold initially set, the historical actual fault number is the number of faults actually occurring in user terminals within a historical time period, and the historical analysis fault number is the number of faults predicted to occur in user terminals;

[0089] According to the historical actual fault number and the historical analyzed fault number, the historical comparison threshold is adjusted to obtain the comparison threshold.

[0090] The historical comparison threshold may be an initially set comparison threshold, or may be an adjusted comparison threshold for the initially set comparison threshold.

[0091] The number of historical actual faults may be the number of problems that occur when detecting the actual connection status between the optical cable terminal equipment and the user terminal.

[0092] The historical analysis fault quantity may be a quantity obtained by analyzing the optical cable terminal equipment and the user terminal before detection. For example, the historical analysis fault quantity may be obtained based on a previous quantity.

[0093] The historical comparison threshold, the historical actual fault number, and the historical analyzed fault number may be data acquired in a period of time, or may be an average value of data acquired in multiple periods of time.

[0094] The historical comparison threshold can be corrected by analyzing the number of historical failures and the number of historical actual failures.

[0095] Among them, in the embodiment of the present application, according to the number of historical actual faults and the number of historical analyzed faults, the historical comparison threshold is adjusted, and the method for obtaining the comparison threshold may include:

[0096] Determine the hit rate and accuracy of fault detection based on the number of historical actual faults and the number of historical analyzed faults;

[0097] According to the hit rate and accuracy, determine the correlation coefficient of the historical comparison threshold;

[0098] According to the correlation coefficient, the historical comparison threshold is adjusted to obtain the comparison threshold.

[0099] Among them, the hit rate can be the proportion of actual faults hit in the analysis of faults. In the embodiment of the present application, when the number of historical analysis faults is greater than or equal to the number of historical actual faults, the hit rate is 1; when the number of historical analysis faults is less than the number of historical actual faults, the hit rate is the ratio of the number of historical analysis faults to the number of historical actual faults.

[0100] The accuracy rate can be the ratio of the actual number of failures that occurred in the analysis to the number of failures that occurred in the analysis. In the embodiment of the present application, when the number of historical analysis failures is greater than or equal to the number of historical actual failures, the accuracy rate is the ratio of the number of historical actual failures to the number of historical analysis failures; when the number of historical analysis failures is less than the number of historical actual failures, the accuracy rate is 1.

[0101] The correlation coefficient k can be obtained according to the formula: k = 0.2*hit rate + 0.8*accuracy. Among them, when the correlation coefficient is larger, the accuracy of the historical comparison threshold is higher and the adjustment range is smaller. When the correlation coefficient is smaller, the accuracy of the historical comparison threshold is lower and the adjustment range is larger.

[0102] In this embodiment of the present application, the method after determining the comparison threshold may further include:

[0103] If the previous number does not meet the comparison threshold requirement, obtain the user's fault reporting information;

[0104] According to the user's fault reporting information, a third fault detection result is obtained.

[0105] Among them, when the previous number does not meet the requirements of the comparison threshold, it is characterized that the possibility of a fault is low. Therefore, it is possible to determine whether the optical cable terminal equipment has a fault by determining the user's fault reporting information. When there is user fault reporting information, the third fault detection result is obtained. When there is no user fault reporting information, it is characterized that the optical cable terminal equipment has no fault.

[0106] The fault detection method provided by the present application obtains the current number of target user terminals connected to the optical cable terminal device in the current time period in real time, and the target user terminal is a user terminal whose connection status with the optical cable terminal device is the target status among the user terminals; if the current number meets the preset threshold requirement, the previous number of target user terminals connected to the optical cable terminal device in the previous time period is obtained; according to the previous number, a first fault detection result is obtained, thereby, by obtaining the current number and the previous number of target user terminals connected to the optical cable terminal device in real time, the use status of the optical cable terminal device can be detected in real time without receiving user fault reporting information, so as to improve the efficiency of broadband network maintenance. In addition, the embodiments of the present application can also solve the problem that the maintenance personnel cannot accurately distinguish the sections and locations where the fault occurs due to the long networking distance and many path devices in the broadband network, and spend a lot of time locating the fault, which affects the timeliness of fault repair.

[0107] Figure 2 A flowchart of another fault detection method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method includes:

[0108] S201. Obtain device information of each device in a broadband network, wherein the device includes an OLT device.

[0109] Among them, in the embodiment of the present application, the device information of each device in the broadband network can be obtained for the scope of home broadband and the expected output results, wherein the device information may include the fixed network resource PON port ledger, the number line system user channel, the number of billing users, the gigabit cell list, the team area division list, etc. In the embodiment of the present application, after obtaining the device information, the device information can be cleaned and pre-processed, by combing the node information list, the OLT equipment list, the regional follow-up list, etc., and according to the steps of demand analysis, concept design, logical structure design, physical structure design, and system implementation, a database is designed to be used for update iteration, operation and maintenance in steps S202 to S205.

[0110] S202: Collect data from each PON of the OLT device according to the device information to obtain collected data.

[0111] In this embodiment of the present application, the number of online optical modems of each PON interface of the OLT device may be collected every 15 minutes.

[0112] Among them, the query command for the number of online optical modems on the PON interface of the OLT device can be determined according to the OLT device list, so as to ensure that under the premise of network security, the remote login protocol telnet / ssh can be used to log in to the OLT device in batches at regular intervals in a multi-threaded manner, and the number of online optical modems on each PON interface can be collected through query commands and stored in the database.

[0113] S203: Analyze the collected data to obtain fault result information.

[0114] Among them, in the embodiment of the present application, analyzing the collected data includes:

[0115] Fault demarcation: After obtaining the device information of each device in the broadband network, it can be determined that the broadband network may include: metropolitan area network, OLT device, optical cross-connection box, splitter, ONT and ONU in sequence. In the embodiment of the present application, by determining the output information of the OLT device, it can be determined that the metropolitan area network, OLT device, optical cross-connection box, and splitter have faults, or it can be determined that the splitter, ONT and ONU have faults through the failure that has not occurred and the received user fault report, thereby preliminarily demarcating the fault.

[0116] The process of determining the output information of the OLT device and judging whether a fault occurs may be as follows:

[0117] 1. Log in to the OLT device. If the OLT device cannot be logged in, it can be determined that the OLT device is faulty or has an uplink interruption fault.

[0118] 2. After the OLT device logs in successfully, if the number of online optical modems of the PON interface was normal during the last collection, and the number of online optical modems suddenly drops to 0 during this collection, that is, all optical modems are offline, then the node corresponding to the PON interface is a "possible fault node".

[0119] Among them, due to the large difference in the average number of online optical modems for each PON interface in actual production, the possible failure situations when the number of online optical modems suddenly drops to 0 are also different. For example, if the original number of online optical modems is 100 and the original number of online optical modems is 1, and the same number suddenly drops to 0, the possibility of an actual failure is greater when the original number of online optical modems is 100, and the possibility of a false alarm of a failure is greater when the original number of online optical modems is 1. Therefore, the critical value can be set to determine whether the original number of online optical modems meets the requirements.

[0120] In this embodiment of the present application, the method for setting the critical value may include:

[0121] The actual fault number x and the analyzed fault number y measured in the last cycle are determined, wherein the analyzed fault number y varies with the initial critical value.

[0122] Determine the hit rate and accuracy based on the actual number of faults x and the number of analyzed faults y.

[0123] Determine the correlation coefficient based on the hit rate and accuracy rate;

[0124] According to the correlation coefficient, determine the target critical value.

[0125] S204: Send the fault result information to the display terminal so that the fault result information is displayed on the display terminal.

[0126] In the embodiment of the present application, the fault result information can be organized into a specific format and stored locally. At the same time, the notification upgrade text can be generated according to the node information in step S201, and displayed on the display terminal through the data interface, so that the maintenance personnel and supervisors can follow up the fault progress in real time and take corresponding measures.

[0127] S205. Store the fault result information displayed on the display terminal in the server for subsequent fault detection.

[0128] Among them, the fault result information and the number of online optical modems can be stored in the database of the server. At the same time, in order to reduce data redundancy and reduce storage pressure, the fault result information and the number of online optical modems collected daily are averaged and compressed, and the fault result information and the number of online optical modems of each node per week are averaged and compressed. Finally, the fault result information and the number of online optical modems can be stored in units of weeks for use in data analysis.

[0129] Figure 3 A schematic diagram of a fault analysis method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the fault analysis method includes: logging in to the OLT device, if the OLT device login is successful, collecting the number of online optical modems at the PON port, if the number of online optical modems at the PON port is equal to zero, comparing the average number of online normal optical modems at the PON port, if the average number of online normal optical modems at the PON port is greater than the critical value, then logging in to the OLT device to view the PON port alarm, and determining the power failure problem on the user side or the access optical cable problem based on the alarm. Among them, if the OLT device login fails, it can be determined that there is a problem with the OLT device or the uplink device or line; when the number of online optical modems at the PON port is not equal to zero, or when the average number of online normal optical modems at the PON port is less than the critical value, the OLT device has not generated a batch fault, and the user fault reporting information is obtained. When there is a user fault reporting, it is determined that the problem is a user line problem, an optical modem device problem, or an access optical cable problem. When there is no user fault reporting, there is no fault.

[0130] Figure 4 This is a schematic diagram of the structure of the fault detection device provided in the embodiment of the present application. Figure 4 As shown, the fault detection device 40 includes: a real-time acquisition module 401 , an acquisition module 402 and a obtaining module 403 .

[0131] A real-time acquisition module 401 is used to acquire in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, where the target user terminals are user terminals whose connection status with the optical cable terminal device is the target status;

[0132] The acquisition module 402 is used to acquire the last number of target user terminals connected to the optical cable terminal device in the last time period if the current number meets the preset threshold requirement;

[0133] The obtaining module 403 is used to obtain a first fault detection result according to the previous quantity.

[0134] In the embodiment of the present application, the real-time acquisition module 401 may also be used for:

[0135] Determine the multiple devices connected to the optical cable terminal equipment in the broadband network;

[0136] Log in to the optical cable terminal equipment;

[0137] If the login to the optical cable terminal device is successful, the data information of the optical cable terminal device is collected to obtain the current number of target user terminals in the user terminal in the current time period and the previous number of target user terminals connected to the optical cable terminal device in the previous time period in real time based on the data information.

[0138] In the embodiment of the present application, the real-time acquisition module 401 may also be used for:

[0139] If logging into the optical cable terminal device is unsuccessful, a second fault detection result is obtained.

[0140] In the embodiment of the present application, the real-time acquisition module 401 may also be used for:

[0141] If the current number does not meet the preset threshold requirement, obtain the user's fault reporting information;

[0142] According to the user's fault reporting information, a third fault detection result is obtained.

[0143] In the embodiment of the present application, the obtaining module 403 may also be used for:

[0144] Determine the comparison threshold;

[0145] If the previous number meets the requirement of the comparison threshold, a first fault detection result is obtained.

[0146] In the embodiment of the present application, the obtaining module 403 may also be used for:

[0147] Obtain a historical comparison threshold, a historical actual fault number, and a historical analysis fault number, wherein the historical comparison threshold is the comparison threshold initially set, the historical actual fault number is the number of faults actually occurring in user terminals within a historical time period, and the historical analysis fault number is the number of faults predicted to occur in user terminals;

[0148] According to the historical actual fault number and the historical analyzed fault number, the historical comparison threshold is adjusted to obtain the comparison threshold.

[0149] In the embodiment of the present application, the obtaining module 403 may also be used for:

[0150] Determine the hit rate and accuracy of fault detection based on the number of historical actual faults and the number of historical analyzed faults;

[0151] According to the hit rate and accuracy, determine the correlation coefficient of the historical comparison threshold;

[0152] According to the correlation coefficient, the historical comparison threshold is adjusted to obtain the comparison threshold.

[0153] In the embodiment of the present application, the obtaining module 403 may also be used for:

[0154] If the previous number does not meet the comparison threshold requirement, obtain the user's fault reporting information;

[0155] According to the user's fault reporting information, a third fault detection result is obtained.

[0156] The fault detection device provided in the embodiment of the present application comprises a real-time acquisition module 401, which is used to acquire in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, where the target user terminal is a user terminal whose connection state with the optical cable terminal device is a target state; an acquisition module 402, which is used to acquire the previous number of target user terminals connected to the optical cable terminal device in the previous time period if the current number meets the preset threshold requirement; and an acquisition module 403, which is used to obtain a first fault detection result based on the previous number; thus, by acquiring in real time the current number and the previous number of target user terminals connected to the optical cable terminal device, the use state of the optical cable terminal device can be detected in real time without receiving user fault reporting information, thereby improving the efficiency of maintaining the broadband network.

[0157] Figure 5 The hardware diagram of the electronic device provided in the embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. The electronic device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.

[0158] In a specific implementation process, at least one processor 501 executes the computer execution instructions stored in the memory 502, so that at least one processor 501 executes the above fault detection method.

[0159] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0160] In the above Figure 5In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0161] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.

[0162] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0163] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a fault detection method is implemented.

[0164] The computer-readable storage medium mentioned above 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 memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0165] An exemplary readable storage medium is coupled to the processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as ASIC). Of course, the processor and the readable storage medium can also exist in the electronic device 50 as discrete components.

[0166] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0167] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A fault detection method, characterized in that: The method comprises: Real-time acquisition of the current number of target user terminals connected to the optical cable terminal device in the current time period, wherein the target user terminals are user terminals whose connection status with the optical cable terminal device is in the target status; If the current number meets the preset threshold requirement, then obtaining the previous number of target user terminals connected to the optical cable terminal device in the previous time period; Obtaining a first fault detection result according to the previous number; The obtaining a first fault detection result according to the previous number includes: Determine the comparison threshold; If the previous number meets the requirement of the comparison threshold, a first fault detection result is obtained; The step of determining the comparison threshold comprises: Obtain a historical comparison threshold, a historical actual fault number, and a historical analysis fault number, wherein the historical comparison threshold is an initially set comparison threshold, the historical actual fault number is the number of faults actually occurring at the user terminal within a historical time period, and the historical analysis fault number is the number of faults predicted to occur at the user terminal; According to the historical actual fault number and the historical analyzed fault number, the historical comparison threshold is adjusted to obtain a comparison threshold; The adjusting process of the historical comparison threshold according to the historical actual fault number and the historical analysis fault number to obtain the comparison threshold includes: Determine the hit rate and accuracy of fault detection according to the historical actual fault number and the historical analyzed fault number; Determining a correlation coefficient of the historical comparison threshold according to the hit rate and the accuracy rate; The historical comparison threshold is adjusted according to the correlation coefficient to obtain a comparison threshold.

2. The method according to claim 1, characterized in that Before the real-time acquisition of the current number of target user terminals connected to the optical cable terminal device within the current time period, the method further comprises: Determining a plurality of devices connected to the optical cable terminal device in a broadband network; Log into the optical cable terminal equipment; If the login to the optical cable terminal device is successful, the data information of the optical cable terminal device is collected to obtain in real time based on the data information the current number of target user terminals among the user terminals in the current time period and the previous number of target user terminals connected to the optical cable terminal device in the previous time period.

3. The method according to claim 2, characterized in that After logging into the optical cable terminal device, the method further includes: If logging into the optical cable terminal device is unsuccessful, a second fault detection result is obtained.

4. The method according to claim 1, characterized in that: After the current number of target user terminals connected to the optical cable terminal device in the current time period is obtained in real time, the method further comprises: If the current number does not meet the preset threshold requirement, obtain the user's fault reporting information; A third fault detection result is obtained according to the user fault reporting information.

5. The method according to claim 1, characterized in that After determining the comparison threshold, the method further includes: If the previous number does not meet the requirement of the comparison threshold, obtaining user fault reporting information; A third fault detection result is obtained according to the user fault reporting information.

6. A fault detection device, characterized in that: include: A real-time acquisition module, used for acquiring in real time the current number of target user terminals connected to the optical cable terminal device in the current time period, wherein the target user terminals are user terminals whose connection status with the optical cable terminal device is in the target status; An acquisition module, configured to acquire the last number of target user terminals connected to the optical cable terminal device in the last time period if the current number meets a preset threshold requirement; An obtaining module, used for obtaining a first fault detection result according to the previous number; The obtaining module is further used to determine a comparison threshold; if the previous number meets the requirement of the comparison threshold, a first fault detection result is obtained; The obtaining module is further used to obtain a historical comparison threshold, a historical actual fault number, and a historical analysis fault number, wherein the historical comparison threshold is an initially set comparison threshold, the historical actual fault number is the number of faults actually occurring at the user terminal in a historical time period, and the historical analysis fault number is the number of faults predicted to occur at the user terminal; the historical comparison threshold is adjusted according to the historical actual fault number and the historical analysis fault number to obtain a comparison threshold; The obtaining module is also used to determine the hit rate and accuracy of fault detection based on the historical actual fault number and the historical analyzed fault number; determine the correlation coefficient of the historical comparison threshold based on the hit rate and the accuracy; and adjust the historical comparison threshold based on the correlation coefficient to obtain the comparison threshold.

7. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the fault detection method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the fault detection method according to any one of claims 1 to 5.