CN-122002355-A - Networking failure root cause positioning method, device, electronic equipment and readable storage medium
Abstract
The invention provides a networking failure root cause positioning method, a device, electronic equipment and a readable storage medium, and relates to the technical field of communication. The method comprises the steps of evaluating the confidence coefficient of the signal based on the intensity value of the multi-time scanning signal, capturing an error code returned by the equipment in the process of attempting to connect the network, inputting the confidence coefficient of the signal and the error code into a preset failure reason diagnosis model, mapping to obtain a standardized failure reason label, realizing networking failure root cause positioning, and accurately positioning the networking failure root cause by collecting the wireless signal intensity and calculating the confidence coefficient and combining the error code, thereby solving the defect that the traditional scheme can only provide general error prompt, realizing automatic and interpretable diagnosis of various faults from 'signal weak', 'frequency band incompatible' to 'password error', 'DHCP failure', and the like, obviously reducing blind trial error of users and improving the connection success rate and after-sale processing efficiency.
Inventors
- WANG YUEDONG
- BAI QINGSONG
- ZHOU HAIXIN
- REN FUJIA
Assignees
- 杭州老板电器股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260326
Claims (10)
- 1. A networking failure root cause positioning method, comprising: scanning signals of wireless access points in the current environment, and collecting intensity values of the signals for a plurality of times; evaluating a confidence level of the signal based on the intensity values of the signal a plurality of times; capturing an error code returned by the device in the process of attempting to connect to the network; Inputting the confidence coefficient of the signal and the error code into a preset failure cause diagnosis model, mapping to obtain a standardized failure cause label, and realizing networking failure cause positioning; and generating repair prompt information according to the failure reason label.
- 2. The networking failure root cause positioning method of claim 1, wherein the step of evaluating the confidence level of the signal based on the strength value of the signal a plurality of times comprises: Calculating standard deviation of intensity values of the signals for a plurality of times; And determining the confidence degree of the signal based on the standard deviation and a preset confidence interval.
- 3. The networking failure root cause positioning method of claim 2, wherein the step of determining the confidence level of the signal based on the standard deviation and a preset confidence interval comprises: Judging whether the standard deviation is positioned in the confidence interval or not; If yes, the confidence degree of the signal is assigned to a preset highest value; If not, determining the confidence degree by the distance between the standard deviation and the end point of any confidence interval.
- 4. The networking failure root cause positioning method of claim 1, wherein the error code comprises at least one of a management frame or control frame return code from a standard protocol common to wireless local area networks, a dynamic host configuration protocol status code, and a transmission control protocol connection phase status code.
- 5. The networking failure root cause positioning method according to claim 1, wherein the mapping relation between the failure cause label and the combination of multiple conditions is defined in the failure cause diagnosis model, the step of inputting the confidence level of the signal and the error code into a preset failure cause diagnosis model and mapping to obtain a standardized failure cause label comprises the following steps: and after the confidence level of the signal is combined with the error code, determining the failure reason label based on the mapping relation.
- 6. The networking failure root cause positioning method of claim 5, wherein the mapping relationship comprises: When the error code indicates a password error, mapping to a password error label; Mapping to a frequency band unsupported tag when the error code indicates that the wireless network frequency band is 5GHz and the confidence level of the signal is lower than a first threshold; and mapping to the service exception label of the dynamic host configuration protocol when the error code indicates that the distribution of the dynamic host configuration protocol fails.
- 7. The networking failure root cause positioning method of claim 1, wherein the method further comprises: Uploading the anonymized failure reason label, the confidence level of the signal and the error code to a cloud server; And the cloud server performs cluster analysis on the collected data, and optimizes and updates the failure cause diagnosis model based on an analysis result.
- 8. A networking failure root cause positioning device, comprising: the networking signal strength acquisition module is used for scanning signals of wireless access points in the current environment and acquiring strength values of the signals for a plurality of times; the signal confidence degree processing module is used for evaluating the confidence degree of the signal based on the intensity values of the signal for a plurality of times; The error code determining module is used for capturing error codes returned by the equipment in the process of attempting to connect to the network; the networking failure root cause positioning module is used for inputting the confidence coefficient of the signal and the error code into a preset failure cause diagnosis model, mapping to obtain a standardized failure cause label, and realizing networking failure root cause positioning; And the repair suggestion module is used for generating repair prompt information according to the failure reason label.
- 9. An electronic device comprising a processor and a memory, the memory storing computer executable instructions executable by the processor, the processor executing the computer executable instructions to implement the networking failure root cause localization method of any of the preceding claims 1-7.
- 10. A readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the networking failure root cause localization method of any one of claims 1 to 7.
Description
Networking failure root cause positioning method, device, electronic equipment and readable storage medium Technical Field The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for locating a root cause of a network failure, an electronic device, and a readable storage medium. Background In the prior art, in the process of configuring or recovering network connection, an intelligent device (such as an IoT terminal and a Wi-Fi module) often causes connection failure due to the problems of weak signal, incompatible frequency band, wrong password, failure of DHCP allocation and the like. The current general solutions in industry can only provide error prompts of general systems such as connection timeout or password error, and cannot accurately locate the root cause of failure. The user can only solve the problem by repeated trial and error or manual investigation, which not only results in poor user experience, but also increases after-sales maintenance cost. The existing method lacks a systematic evaluation mechanism for network signal quality, for example, the signal strength is judged by only measuring the RSSI (received signal strength indication) once, the result is often inaccurate, and the result is not subjected to joint analysis with error codes returned by the equipment end, so that the automation and the interpretable positioning of the failure cause are difficult to realize, and the user experience is poor. Disclosure of Invention The invention aims to provide a networking failure root cause positioning method, a device, electronic equipment and a readable storage medium, which are used for accurately positioning the root cause of networking failure by combining error codes returned by equipment through collecting wireless signal intensity for a plurality of times and calculating the confidence coefficient of the wireless signal intensity. The method solves the defect that the traditional scheme can only provide general error prompt, realizes the automatic and interpretable diagnosis of various faults from 'signal weak', 'frequency band incompatible' to 'password error', 'DHCP failure', and the like, obviously reduces blind trial and error of users, and improves connection success rate and after-sale processing efficiency. In a first aspect, the present invention provides a method for locating a root cause of a network failure, including: Scanning signals of wireless access points in the current environment, and collecting intensity values of multiple signals; Evaluating the confidence level of the signal based on the intensity values of the plurality of signals; capturing an error code returned by the device in the process of attempting to connect to the network; Inputting the confidence coefficient of the signal and the error code into a preset failure cause diagnosis model, mapping to obtain a standardized failure cause label, and realizing networking failure cause positioning; And generating repair prompt information according to the failure reason label. In some preferred embodiments of the present invention, the step of evaluating the confidence of the signal based on the intensity values of the plurality of signals comprises: calculating standard deviation of intensity values of the multiple signals; And determining the confidence of the signal based on the standard deviation and a preset confidence interval. In some preferred embodiments of the present invention, the step of determining the confidence level of the signal based on the standard deviation and a preset confidence interval comprises: judging whether the standard deviation is positioned in the confidence interval; If yes, the confidence coefficient of the signal is assigned to be a preset highest value; If not, the confidence level is determined by the distance between the standard deviation and the end point of any confidence interval. In some preferred embodiments of the present invention, the error code comprises at least one of a management frame or control frame return code from a standard protocol common to wireless local area networks, a dynamic host configuration protocol status code, and a transmission control protocol connection phase status code. In some preferred embodiments of the present invention, a mapping relationship between a plurality of condition combinations and failure reason labels is defined in a failure reason diagnosis model, and the step of inputting the confidence level of the signal and the error code into a preset failure reason diagnosis model and mapping to obtain standardized failure reason labels includes: after the confidence level of the signal is combined with the error code, the failure reason label is determined based on the mapping relation. In some preferred embodiments of the present invention, the mapping relationship includes: Mapping to a password error tag when the error code indicates a password error; mapping to a f