Network fault diagnosis method, device, equipment and storage medium

By establishing the home network topology and detection indicators, it automatically finds the fault source equipment, solves the complex problem of fault detection in the home network, and achieves fast and efficient troubleshooting and management.

CN115865621BActive Publication Date: 2024-10-29CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211487664.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-25
Publication Date
2024-10-29
Estimated Expiration
2042-11-25

AI Technical Summary

Technical Problem

The increase in devices in the home network makes fault detection and troubleshooting complex, and it is difficult to quickly find the source of the fault with existing technology.

Method used

By establishing the home network topology, based on the topology and detection indicators, the associated equipment of the faulty device is determined and its detection score is calculated, thereby automatically finding the fault source device.

Benefits of technology

Without the need for specialized maintenance personnel, network faults can be quickly and efficiently located and troubleshooted, making it easier for users to manage their home network environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115865621B_ABST
    Figure CN115865621B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a network fault diagnosis method, apparatus, device and storage medium. The method includes: determining the corresponding faulty device and fault type in response to the received fault information; determining the associated devices connected to the faulty device based on the pre-established home network topology; determining the detection score of the associated device based on the set detection index; and determining the source device corresponding to the fault information from the associated devices based on the detection score and the fault type. The embodiments of the present application solve the problem that fault detection and troubleshooting in home networks in the prior art are very complex and difficult, and realize automatic search for the source device where the fault occurs, so that the network fault can be located and checked quickly and efficiently without the need for special maintenance personnel, which is convenient for users to manage the home network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a network fault diagnosis method, apparatus, device and storage medium. Background Art

[0002] As smart homes become more and more popular, homes often contain gateways, routers, and a large number of smart terminal devices. Smart terminal devices include smart appliances such as smart homes and smart security, as well as multiple smart phones, thus forming a home network environment. As the number of devices in the home network environment increases, there are usually both wired and wireless devices in the home network; and smart products are usually controlled by several mobile phones. At this time, there is not only network data transmission but also control relationship between the mobile phone and the smart product. When a home network with complex control relationships fails in a certain link, the detection and elimination of the fault becomes more complicated, and it is difficult to find the source of the fault through existing network fault diagnosis methods. Summary of the invention

[0003] The embodiments of the present application provide a network fault diagnosis method, apparatus, device and storage medium to solve the problem that fault detection and troubleshooting in a home network are very complex and difficult in the prior art.

[0004] In a first aspect, an embodiment of the present application provides a network fault diagnosis method, the network fault diagnosis method comprising:

[0005] In response to the received fault information, determining a corresponding faulty device and a fault type;

[0006] Based on a pre-established home network topology, determine associated devices connected to the faulty device;

[0007] Determine the detection score of the associated equipment based on the set detection indicators;

[0008] Based on the detection score and fault type, the source device corresponding to the fault information is determined from the associated devices.

[0009] Optionally, based on a pre-established home network topology, associated devices connected to the faulty device are determined, including: based on the home network topology, all device links where the faulty device is located are determined, the device link includes at least one device that is communicatively connected via wired or wireless means; all devices in the device link are determined as associated devices connected to the faulty device.

[0010] Optionally, based on the set detection indicators, determining the detection scores of the associated devices includes: determining the corresponding scores of each associated device under each detection indicator in turn; and determining the detection score of each associated device based on the corresponding scores.

[0011] Optionally, there are at least two detection indicators, and the detection score of each associated device is determined based on the corresponding scores, including: taking the sum of the corresponding scores as the detection score of the corresponding associated device; or, taking the product of the corresponding scores as the detection score of the corresponding associated device; or, taking the sum of the rankings of the corresponding scores as the detection score of the corresponding associated device; or, taking the product of the rankings of the corresponding scores as the detection score of the corresponding associated device.

[0012] Optionally, the detection index includes: the weight of data transmitted to the faulty device, the amount of data transmitted to the faulty device, and the impact rate affected by the faulty device.

[0013] Optionally, based on the detection score and the fault type, the source device corresponding to the fault information is determined from the associated devices, including: obtaining the fault type that may occur in the associated devices; based on the matching relationship between the possible fault type and the fault type in the fault information, determining the potential source device from the associated devices; based on the detection score of the potential source device, determining the source device from the potential source devices.

[0014] Optionally, possible fault types that may occur in the associated device include: if the associated device is a fixed-point device, possible fault types include physical factors, and a fixed-point device is used to represent a device that remains in a fixed position; if the associated device is a mobile device, possible fault types include gateway signal fluctuations and upstream router failures.

[0015] Optionally, the home network topology is obtained in the following manner: obtaining configuration attributes of all devices, the configuration attributes including the order in which the devices access the network; forming a preliminary network structure based on the order in which each device accesses the network; and determining the home network topology based on the actual connection relationship between the devices and the preliminary network structure.

[0016] Optionally, based on the actual connection relationship between devices and the preliminary network structure, the home network topology is determined, including: determining the connection relationship between each device and the corresponding gateway; determining the mapping relationship between each device and the smartphone; and determining the home network topology based on the connection relationship, mapping relationship and preliminary network structure.

[0017] In a second aspect, an embodiment of the present application provides a network fault diagnosis device, the network fault diagnosis device comprising:

[0018] A receiving module, configured to determine a corresponding faulty device and a fault type in response to received fault information;

[0019] an association module, configured to determine an associated device connected to the faulty device based on a pre-established home network topology;

[0020] A scoring module, used to determine the detection score of the associated device based on the set detection index;

[0021] A diagnosis module is used to determine a source device corresponding to the fault information from the associated devices based on the detection score and the fault type.

[0022] Optionally, the association module is specifically used to determine all device links where the faulty device is located based on the home network topology, where the device link includes at least one device that is communicatively connected via wired or wireless means; and determine all devices in the device link as associated devices connected to the faulty device.

[0023] Optionally, the scoring module is specifically used to determine the corresponding score of each associated device under each detection indicator in turn; and determine the detection score of each associated device based on the corresponding score.

[0024] Optionally, the scoring module is specifically used to, if there are at least two detection indicators, use the sum of the corresponding scores as the detection score of the corresponding associated device; or, use the product of the corresponding scores as the detection score of the corresponding associated device; or, use the sum of the rankings of the corresponding scores as the detection score of the corresponding associated device; or, use the product of the rankings of the corresponding scores as the detection score of the corresponding associated device.

[0025] Optionally, the scoring module specifically includes that the detection indicators include: the weight of data transmitted between the faulty device, the amount of data transmitted to the faulty device, and the impact rate affected by the faulty device.

[0026] Optionally, the diagnostic module is specifically used to obtain possible fault types in associated devices; determine potential source devices from associated devices based on a matching relationship between possible fault types and fault types in fault information; and determine source devices from potential source devices based on detection scores of potential source devices.

[0027] Optionally, the diagnostic module is specifically used for: if the associated device is a fixed-point device, the possible fault types include physical factors, and the fixed-point device is used to represent a device whose position remains fixed; if the associated device is a mobile device, the possible fault types include gateway signal fluctuations and upstream router failures.

[0028] Optionally, the association module is specifically used to obtain the home network topology in the following manner: obtain configuration properties of all devices, the configuration properties including the order in which the devices access the network; form a preliminary network structure based on the order in which each device accesses the network; determine the home network topology based on the actual connection relationship between the devices and the preliminary network structure.

[0029] Optionally, the association module is specifically used to determine the connection relationship between each device and the corresponding gateway; determine the mapping relationship between each device and the smart phone; and determine the home network topology based on the connection relationship, the mapping relationship and the preliminary network structure.

[0030] In a third aspect, an embodiment of the present application further provides a control device, the control device comprising:

[0031] at least one processor;

[0032] and a memory communicatively coupled to the at least one processor;

[0033] Among them, the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the control device to execute a network fault diagnosis method corresponding to any embodiment in the first aspect of the embodiments of the present application.

[0034] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement a network fault diagnosis method as described in any one of the first aspects of the embodiments of the present application.

[0035] The network fault diagnosis method, device, equipment and storage medium provided in the embodiment of the present application determine the corresponding faulty device and fault type by responding to the received fault information; determine the associated devices connected to the faulty device based on the pre-established home network topology; determine the detection score of the associated device based on the set detection index; and determine the source device corresponding to the fault information from the associated devices based on the detection score and the fault type. Thus, by establishing a home network topology, the source device of the fault can be automatically found, so that the location and troubleshooting of the network fault can be realized quickly and efficiently without the need for special maintenance personnel, which facilitates the user's management of the home network environment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 An application scenario diagram of the network fault diagnosis method provided in an embodiment of the present application;

[0038] Figure 2 A flowchart of a network fault diagnosis method provided for one embodiment of the present application;

[0039] Figure 3a A flowchart of a network fault diagnosis method provided in yet another embodiment of the present application;

[0040] Figure 3b for Figure 3a A flow chart of a method for establishing a home network topology structure in the illustrated embodiment;

[0041] Figure 3c for Figure 3a A schematic diagram of a home network topology structure in the illustrated embodiment;

[0042] Figure 3d for Figure 3a A schematic diagram of device links in a home network in the illustrated embodiment;

[0043] Figure 4 A schematic diagram of the structure of a network fault diagnosis device provided in yet another embodiment of the present application;

[0044] Figure 5 A schematic diagram of the structure of a control device provided in yet another embodiment of the present application.

[0045] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0046] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0047] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The following will describe the embodiments of the present application in conjunction with the accompanying drawings.

[0048] As smart homes become more and more popular, homes often contain gateways, routers and a large number of smart terminal devices. Smart terminal devices include smart appliances such as smart homes and smart security, as well as multiple smart phones, thus forming a home network environment. As the number of devices in the home network environment increases, there are usually both wired and wireless devices in the home network; and smart items are usually controlled by several mobile phones. At this time, there is not only network data transmission but also control relationship between the mobile phones and smart items.

[0049] When a failure occurs in a certain link of a home network with complex control relationships, multiple devices may be affected at the same time. Due to the complex connection and control relationships between various devices, it is difficult to quickly find the faulty device.

[0050] In order to solve this problem, the embodiment of the present disclosure provides a network fault diagnosis method, which establishes a network topology structure for devices in a home network environment, and determines the source device of the fault based on the home network topology structure and sets detection indicators, thereby quickly realizing fault troubleshooting.

[0051] The application scenarios of the embodiments of the present disclosure are explained below:

[0052] Figure 1 This is an application scenario diagram of the network fault diagnosis method provided by the embodiment of the present disclosure. Figure 1 As shown, in a home network environment, when the source device 100 fails, the associated device 110 will not work properly (the associated devices in the figure are: computer host and router). According to the fault information reported by the associated device 110 and the pre-established topology structure, the source device 100 where the problem occurs can be determined to complete the troubleshooting function.

[0053] It should be noted that Figure 1 In the scenario shown, only one source device is taken as an example, and only two associated devices are taken as an example for illustration, but the embodiments of the present application are not limited to this, that is, the number of source devices and associated devices can be arbitrary.

[0054] The network fault diagnosis method provided by the embodiment of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0055] Figure 2 The flowchart of the network fault diagnosis method provided by one embodiment of the present disclosure is as follows. Figure 2 As shown, the network fault diagnosis method provided in this embodiment includes the following steps:

[0056] Step S201: In response to received fault information, determine the corresponding faulty device and the fault type.

[0057] Specifically, in a home network environment, the function of automatically obtaining fault information can be configured through a router or a computer host, and the fault information can be viewed through a smart phone terminal or a computer host. For example, network faults can be checked through a computer host, or after a smart phone is connected to a wireless network, the control interface of the router can be accessed to obtain fault information.

[0058] In some embodiments, a function for automatically pushing fault information can also be configured in a home network environment. In this case, when a router, gateway, internet-connected smart terminal or computer host detects a network fault, fault information will be automatically generated and pushed to the computer host or smart phone so that the user can promptly confirm the fault and eliminate it.

[0059] Furthermore, the fault information includes the corresponding faulty device and fault type. The faulty device is used to indicate the device that encounters the network fault, rather than the source device that causes the fault. For example, when the gateway is abnormal, the computer host connected to the gateway may find that it cannot access the Internet. At this time, the computer host is the faulty device.

[0060] The fault type is used to indicate the specific type of fault, such as the device function cannot be used, cannot connect to the network, cannot connect to the device, the network is disconnected, etc.

[0061] Since there are multiple devices connected to the same device (such as gateways, routers, smart phones, etc.) in a home network environment, the fault information may include multiple faulty devices and multiple fault types may exist at the same time (such as network disconnection, inability to connect to the Internet, and inability to connect to the device).

[0062] Step S202: Determine the associated devices connected to the faulty device based on the pre-established home network topology.

[0063] Specifically, after all home network devices are connected to the home network, the home network topology will be established or updated. Every time a new device is added to the home network or a device exits the home network, the home network topology will be automatically updated. The home network topology can be managed by a computer host, or by a router or other device that is always on (i.e., always in working state) (hereinafter referred to as management device).

[0064] The home network topology structure represents the connection relationship between various devices in a topological manner, so that the devices that have a connection relationship with the faulty device, that is, the associated devices, can be easily and quickly determined.

[0065] In some embodiments, in addition to recording the connection relationship between devices, the home network topology structure also records specific information about the devices, such as the type of smart device (different classifications such as terminal devices, location-based mobile devices, gateway devices, etc.), network access time, etc.

[0066] Generally, the associated devices that are connected to the faulty device include devices that are directly connected to the faulty device and devices that are indirectly connected. Directly connected devices are used to indicate devices that are directly connected to the faulty device, such as a smart sweeping robot that is connected to a wireless router and is also connected to one of the smartphones in the home. For this smart sweeping robot, the wireless router and the smartphone are all directly connected devices. Indirectly connected devices are used to indicate devices that are connected to the above-mentioned directly connected devices, such as a home gateway connected to the above-mentioned wireless router and another smartphone, which are all indirectly connected devices.

[0067] Step S203: Determine the detection score of the associated device based on the set detection index.

[0068] Specifically, for each associated device, the detection score corresponding to its detection index will be calculated. There are multiple detection indicators, such as the average impact rate affected by the network, the stability of the connection with the device, etc. By combining the values ​​corresponding to each detection index, the detection score of the associated device can be obtained.

[0069] The specific numerical integration method may be the summation, product, weighted summation, etc. of the numerical values, or the summation, product, weighted product, etc. of the sorted numerical values.

[0070] In some embodiments, different weights may be assigned to different detection indicators according to the fault type, and then a weighted sum is performed on each monitoring indicator, or a weighted sum is performed on the ranking of the values, so as to better fit the actual situation.

[0071] The purpose of obtaining the detection score is to sort the probabilities that the associated devices may be the source devices, so as to find the device with the highest probability as the source device.

[0072] Step S204: Based on the detection score and the fault type, determine the source device corresponding to the fault information from the associated devices.

[0073] Specifically, in addition to considering the detection score, the fault type is also needed. For example, if the fault type is that the device is disconnected from the network, it may be more likely to be caused by the device itself rather than the network itself. In this case, considering the network score itself is not very meaningful. Therefore, it is necessary to first determine the fault type, and then determine the associated devices that may be the source device based on the fault type, and then determine the score ranking of these associated devices based on the detection score, and finally determine the source device based on the score ranking.

[0074] The network fault diagnosis method provided by the embodiment of the present disclosure determines the corresponding faulty device and fault type by responding to the received fault information; determines the associated devices connected to the faulty device based on the pre-established home network topology; determines the detection score of the associated device based on the set detection index; and determines the source device corresponding to the fault information from the associated devices based on the detection score and the fault type. Thus, by establishing the home network topology, the source device of the fault can be automatically found, so that the location and troubleshooting of the network fault can be realized quickly and efficiently without the need for special maintenance personnel, which facilitates the user's management of the home network environment.

[0075] Figure 3a The flowchart of the network fault diagnosis method provided by one embodiment of the present disclosure is as follows. Figure 3a As shown, the network fault diagnosis method provided in this embodiment includes the following steps:

[0076] Step S301: In response to received fault information, determine the corresponding faulty device and the fault type.

[0077] Specifically, step S301 and Figure 2 The content of step S201 in the illustrated embodiment is the same and will not be repeated here.

[0078] Step S302: Based on the home network topology, determine all device links where the faulty device is located.

[0079] The device link includes at least one device connected by wired or wireless communication.

[0080] Specifically, each device in the home network topology belongs to at least one device link. Therefore, when determining the source device corresponding to the faulty device, it is first necessary to determine all device links corresponding to the faulty device.

[0081] Furthermore, if Figure 3b As shown, it is a flow chart of a method for establishing a home network topology structure. The home network topology is obtained in the following manner:

[0082] Step S3021: Obtain configuration properties of all devices.

[0083] The configuration attributes include the order in which devices access the network.

[0084] Specifically, when all devices in the home network are connected to the network, the management device will automatically update the information of the home network topology. At this time, each device is usually in a static state (that is, the position when connected to the network is static). For example, movable devices such as sweeping robots are also in a fixed position to facilitate determining the connection relationship between them and each network device (because when there are multiple wireless routers or gateways in the home, the wireless routers and gateways connected to movable devices such as smartphones may change frequently. Therefore, it is necessary to determine the network topology based on each device in a static state).

[0085] The management device will obtain the configuration information of each device connected to the home network, including device name, model, network connection information, etc.

[0086] Step S3022: Based on the order in which each device accesses the network, a preliminary network structure is formed.

[0087] Specifically, the order in which devices access the network is used to indicate how the devices access the home network. For example, a smartphone accesses the network through a bedroom router, and the bedroom router accesses the network through a living room router, and the living room router accesses the network through the home gateway. The order in which the above devices access the network is the home gateway, the living room router, the bedroom router, and then the smartphone.

[0088] Through the order in which devices access the network, we can preliminarily determine the connection relationship between the various devices in the home network, and then determine the linear connection relationship of the home network, and then obtain a preliminary network structure.

[0089] Step S3023: Determine the home network topology based on the actual connection relationship between devices and the preliminary network structure.

[0090] Specifically, since there are not only linear connection relationships between devices in a home network, there are also non-linear connection relationships. For example, a smart lamp connected to a smartphone is also connected to the wireless network of a wireless router. In this case, there are connection relationships from the wireless router to the smart lamp and from the smartphone to the smart lamp. The latter relationship is usually not enabled. Therefore, it is necessary to correct the preliminary network structure through the mapping relationships recorded by each device.

[0091] In some embodiments, the method for modifying the preliminary network structure specifically includes the following steps:

[0092] Step 1 (not shown): determine the connection relationship between each device and the corresponding gateway.

[0093] Specifically, we first need to consider the connection relationship between each device and the gateway. Because if fiber to the house (FTTR) is used, there may be multiple home gateways in the home network. At this time, we need to determine the relationship between different devices and each gateway and router.

[0094] Step 2 (not shown): determine the mapping relationship between each device and the smart phone.

[0095] Specifically, since a smartphone can establish mapping relationships with multiple smart devices (such as a smartphone controlling smart lights in all houses in a home at the same time), these mapping relationships may not be active when the network topology is updated. Therefore, these mapping relationships need to be considered separately and added to the network topology.

[0096] Step three (not shown): determine the home network topology based on the connection relationship, mapping relationship and preliminary network structure.

[0097] Specifically, by modifying the preliminary network structure through the above two different relationships, the home network connection relationship can be better reproduced and simulated, and a visual topology model can be established as needed for users to view.

[0098] Step S303: determine all devices in the device link as associated devices connected to the faulty device.

[0099] Specifically, all devices that have the same device link as the faulty device may be source devices that cause the fault, and therefore, they may all be considered as associated devices.

[0100] At this time, the associated devices include not only the devices directly connected to the faulty device, but also the devices in the same device link that are not directly connected to the faulty device, so as to ensure the detection range.

[0101] Step S304: determine the corresponding score of each associated device under each detection indicator in turn.

[0102] Specifically, according to the detection index, the corresponding score of each associated device needs to be specifically calculated to determine the detection score corresponding to the detection index.

[0103] In some embodiments, the detection index includes: the weight of data transmitted to the faulty device, the amount of data transmitted to the faulty device, and the impact rate affected by the faulty device.

[0104] Specifically, the impact rate affected by the faulty device can be calculated based on the weight of the data transmitted between the faulty devices and the amount of data transmitted by the faulty devices. These three indicators can also be used separately (or one or two of them) to achieve the effect of determining the source device.

[0105] Furthermore, the specific method for calculating the impact rate affected by the faulty equipment includes:

[0106] Step 1 (not shown): for the faulty device A, the transmission data weight between A and each associated device on the device link is calculated.

[0107] Specifically, by collecting the data exchange transmission between devices in the home network environment over a period of time, the average value of the data transmission between devices is calculated, which is represented by the symbol Q. Assume that the data transmission volume between the faulty device A and the associated device B1 is W1, and so on, the data transmission volume between the faulty device A and the associated device B1 is W2. n The amount of data transmitted between n . Then Q1 can be calculated as:

[0108]

[0109] Q1 is used to represent the proportion of network data of faulty device A transmitted from associated device B1. Assuming that faulty device A is connected to three devices in total, the calculated Q 11 , Q 21 , Q 31 satisfy:

[0110] Q 11 +Q 21 +Q 31 =1.

[0111] Step 2 (not shown): calculate the transmission data volume of each associated device on the receiving device link of the faulty device A.

[0112] Specifically, assuming that the amount of data sent and received by the associated device C on the device link in the same time period is Z, the amount of data L received by the faulty device A from the associated device C can be calculated as:

[0113] L=Q 11 *Q 12 *Q 13 *Q*…*Q 1n *Z,

[0114] Step three (not shown), calculating the average impact rate of the faulty device A on each associated device on the device link.

[0115] Specifically, since the transmission ratio is a decimal, multiplying decimals will cause the length of the link to affect the calculation result. In order to eliminate this effect, L is processed as follows, where n is the number of devices between the faulty device and the traceability device:

[0116]

[0117] Thus, the average impact rate of each associated device on the faulty device can be calculated.

[0118] Step S305: Determine the detection score of each associated device based on the corresponding score.

[0119] Specifically, if there is only one detection indicator, the corresponding score of the detection indicator, or the ranking of the corresponding scores (if there are multiple associated devices) can be directly used as the detection score.

[0120] For example, the average impact rate of the above-mentioned associated devices on the faulty device is used as a detection indicator. Assuming that the constructed home network topology is as follows Figure 3c As shown in Figure 1, it is a schematic diagram of the home network topology. The faulty device is A, and its corresponding device link is as follows: Figure 3d As shown, it is a schematic diagram of device links in a home network, and the device links include A to C1, A to C2 and A to C3.

[0121] The process of calculating the corresponding detection index includes:

[0122] Step 1 (not shown), calculate the data transmission weight:

[0123] Assume that the network data of the faulty device A is completely transmitted by the associated devices B1 and B2, and calculate the data transmission ratio Q between A and B1 and B2 respectively. 11 , Q 21 , and then calculate the data transmission ratio Q of B1, C1 and C2 21 , Q 31 ,Depend on Figure 3c It can be seen that the data of B2 is completely transmitted from C3, so Q 22 =1.

[0124] Step 2 (not shown), calculate the data transmission volume transmitted by each device to A, the formula is as follows:

[0125] L B1 =Q 11 *Z B1 ; L C1 =Q 11 *Q 21 *Z C1 ; L C2 =Q 11 *Q 31 *Z C2 ; L B2 =Q 21 *Z B2 ;

[0126] L C3 =Q 21 *Q 22 *Z c3 .

[0127] Step 3 (not shown), calculate the average impact rate:

[0128] A and B1, n=0: L1=L B1 / 1=L1; A and B2, n=0: L2=L B2 / 1=L2;

[0129] A and C1, n=1: L3=L C1 / 10; A and C2, n=1: L4=L C2 / 10;

[0130] A and C3, n = 1: L5 = L C3 / 10.

[0131] The obtained L1, L2, L3, L4, and L5 can be used as detection scores.

[0132] In some embodiments, if there are at least two detection indicators, the specific method for determining the detection score may include:

[0133] The sum of the corresponding scores is used as the detection score of the corresponding associated device; or, the product of the corresponding scores is used as the detection score of the corresponding associated device; or, the sum of the rankings of the corresponding scores is used as the detection score of the corresponding associated device; or, the product of the rankings of the corresponding scores is used as the detection score of the corresponding associated device.

[0134] Specifically, in the case where there are multiple detection indicators at the same time, such as the stability of the connection with the faulty device (calculated by the frequency of offline), these detection indicators can be combined in different ways, and the combined value is used as the detection score.

[0135] Step S306: Obtain the possible fault type that may occur in the associated device.

[0136] Specifically, different types of devices may have different fault types, and some fault types will not appear in some devices (such as smart door locks, etc., which usually do not have the problem of weak output network signals). Therefore, it is necessary to determine the fault type in combination with the type of associated device. The type of associated device can be determined when establishing the home network topology, so its fault type can also be directly determined synchronously and saved in the home network topology structure for easy reading at any time.

[0137] In some embodiments, the types of failures that may occur in the associated device include:

[0138] Case 1 (not shown): if the associated device is a fixed-point device, possible fault types include physical factors. The fixed-point device is used to indicate a device that maintains a fixed position.

[0139] Specifically, fixed-point devices are used to represent devices whose physical location remains basically unchanged during use (for example, the range of movement of a smart door lock is very small), such as smart cameras and smart sockets. These devices are less likely to be affected by signal fluctuations of upstream routers (such as routers directly connected to the home gateway, not routers connected to such devices) and gateways, but are more affected by other factors.

[0140] Case 2 (not shown): if the associated device is a mobile device, possible fault types include gateway signal fluctuation and upstream router failure.

[0141] Specifically, mobile devices are used to refer to devices whose physical location may move at any time during use. The control relationship between such devices and smartphones may remain unchanged, but the network signals they receive are prone to fluctuations. Therefore, they are greatly affected by networking, network signal and other fault types.

[0142] Step S307: Based on the matching relationship between the possible fault type and the fault type in the fault information, a potential source device is determined from the associated devices.

[0143] Specifically, if the possible fault type of the associated device does not match the fault type in the fault information, it can be excluded from the scope of potential source devices first. Otherwise, the associated device will be regarded as a potential source device, and its detection score will be compared subsequently to determine whether it is the source device.

[0144] In some embodiments, the order of steps S306 to S307 and steps S304 to S305 can be interchanged without affecting the effectiveness of the present solution. Those skilled in the art can select different orders and execute corresponding method steps according to actual needs.

[0145] Step S308: Determine the source device from the potential source devices based on the detection scores of the potential source devices.

[0146] Specifically, the higher the score of a potential source device, or the more prominent its score is relative to other potential source devices (such as a large difference in detection scores from other potential source devices), the more likely it is to be a source device. If there are multiple potential source devices with the same or similar scores, these devices can all be regarded as source devices for subsequent fault inspection and repair.

[0147] The network fault diagnosis method provided by the embodiment of the present disclosure determines the corresponding device link according to the home network topology after receiving the fault information, and then further determines the associated device, and determines the detection score of the associated device and the matching with the fault type, and then determines the source device. In this way, the source device that is most likely to cause the fault can be quickly and automatically determined, which greatly improves the efficiency of fault diagnosis and troubleshooting and improves the user's satisfaction.

[0148] Figure 4 This is a schematic diagram of the structure of a network fault diagnosis device provided by an embodiment of the present disclosure. Figure 4 As shown, the network fault diagnosis device 400 includes: a receiving module 410, an association module 420, a scoring module 430 and a diagnosis module 440. Among them:

[0149] The receiving module 410 is used to determine the corresponding faulty device and the fault type in response to the received fault information;

[0150] An association module 420, configured to determine an associated device connected to the faulty device based on a pre-established home network topology;

[0151] The scoring module 430 is used to determine the detection score of the associated device based on the set detection index.

[0152] The diagnosis module 440 is used to determine the source device corresponding to the fault information from the associated devices based on the detection score and the fault type.

[0153] Optionally, the association module 420 is specifically used to determine all device links where the faulty device is located based on the home network topology, where the device link includes at least one device connected to the device via wired or wireless communication; and determine all devices in the device link as associated devices connected to the faulty device.

[0154] Optionally, the scoring module 430 is specifically configured to sequentially determine a corresponding score of each associated device under each detection indicator; and determine a detection score of each associated device based on the corresponding score.

[0155] Optionally, the scoring module 430 is specifically used to, if there are at least two detection indicators, use the sum of the corresponding scores as the detection score of the corresponding associated device; or, use the product of the corresponding scores as the detection score of the corresponding associated device; or, use the sum of the rankings of the corresponding scores as the detection score of the corresponding associated device; or, use the product of the rankings of the corresponding scores as the detection score of the corresponding associated device.

[0156] Optionally, the scoring module 430 specifically includes that the detection indicators include: the weight of data transmitted between the faulty device, the amount of data transmitted to the faulty device, and the impact rate affected by the faulty device.

[0157] Optionally, the diagnostic module 440 is specifically used to obtain the possible fault type in the associated device; determine the potential source device from the associated device based on the matching relationship between the possible fault type and the fault type in the fault information; and determine the source device from the potential source devices based on the detection score of the potential source device.

[0158] Optionally, the diagnostic module 440 is specifically used for: if the associated device is a fixed-point device, the possible fault types include physical factors, and the fixed-point device is used to represent a device whose position remains fixed; if the associated device is a mobile device, the possible fault types include gateway signal fluctuations and upstream router failures.

[0159] Optionally, the association module 420 is specifically used to obtain the home network topology in the following manner: obtain configuration attributes of all devices, the configuration attributes including the order in which the devices access the network; form a preliminary network structure based on the order in which each device accesses the network; determine the home network topology based on the actual connection relationship between the devices and the preliminary network structure.

[0160] Optionally, the association module 420 is specifically used to determine the connection relationship between each device and the corresponding gateway; determine the mapping relationship between each device and the smart phone; and determine the home network topology based on the connection relationship, the mapping relationship and the preliminary network structure.

[0161] In this embodiment, the network fault diagnosis device can solve the very complex and difficult problems of fault detection and troubleshooting in home networks in the prior art through the combination of various modules. It can automatically find the source device of the fault by establishing a home network topology structure, thereby being able to quickly and efficiently locate and troubleshoot network faults without the need for specialized maintenance personnel, thereby facilitating users' management of the home network environment.

[0162] Figure 5 A schematic diagram of the structure of a control device provided by an embodiment of the present disclosure, such as Figure 5 As shown, the control device 500 includes: a memory 510 and a processor 520 .

[0163] The memory 510 stores a computer program that can be executed by at least one processor 520. The computer program is executed by at least one processor 520 to enable the control device to implement the network fault diagnosis method provided in any of the above embodiments.

[0164] The memory 510 and the processor 520 may be connected via a bus 530 .

[0165] The relevant instructions can be understood by referring to the relevant descriptions and effects corresponding to the method embodiments, which will not be repeated here.

[0166] An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement a network fault diagnosis method provided by any of the above method embodiments.

[0167] Among them, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0168] An embodiment of the present disclosure provides a computer program product, which includes computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the network fault diagnosis method provided in any of the above embodiments.

[0169] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0170] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure 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 of the present application is indicated by the claims.

[0171] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A network fault diagnosis method, It is characterized in that The network fault diagnosis method comprises: In response to the received fault information, determining a corresponding faulty device and a fault type; Based on a pre-established home network topology, determining associated devices connected to the faulty device; Determine the detection score of the associated device based on the set detection index; Based on the detection score and the fault type, determining a source device corresponding to the fault information from the associated devices; The determining the detection score of the associated device based on the set detection index includes: determining the corresponding score of each associated device under each detection index in turn; determining the detection score of each associated device based on the corresponding score of each associated device under each detection index; The method of determining the source device corresponding to the fault information from the associated devices based on the detection score and the fault type includes: obtaining the possible fault type in the associated devices; determining the potential source device from the associated devices based on the matching relationship between the possible fault type and the fault type in the fault information; and determining the source device from the potential source devices based on the detection score of the potential source device.

2. The network fault diagnosis method according to claim 1, It is characterized in that The determining, based on a pre-established home network topology, an associated device connected to the faulty device comprises: Based on the home network topology, determine all device links where the faulty device is located, wherein the device link includes at least one device connected in communication via wired or wireless means; All devices in the device link are determined as associated devices connected to the faulty device.

3. The network fault diagnosis method according to claim 1, It is characterized in that There are at least two detection indicators. The determining, based on the corresponding score, a detection score of each associated device includes: The sum of the corresponding scores is used as the detection score of the corresponding associated device; Or, the product of the corresponding scores is used as the detection score of the corresponding associated device; Or, the sum of the rankings of the corresponding scores is used as the detection score of the corresponding associated device; Alternatively, the product of the rankings of the corresponding scores is used as the detection score of the corresponding associated device.

4. The network fault diagnosis method according to claim 1, It is characterized in that The detection indexes include: the weight of data transmitted to the faulty device, the amount of data transmitted to the faulty device, and the impact rate of being affected by the faulty device.

5. The network fault diagnosis method according to claim 1, It is characterized in that The possible fault types that may occur in the associated equipment include: If the associated device is a fixed-point device, the possible fault type includes a physical factor, and the fixed-point device is used to represent a device that maintains a fixed position; If the associated device is a mobile device, the possible fault types include gateway signal fluctuation and upstream router failure.

6. The network fault diagnosis method according to any one of claims 1 to 5, It is characterized in that The home network topology is obtained in the following manner: Obtaining configuration attributes of all devices, the configuration attributes including the order in which the devices are connected to the network; Based on the order in which each device is connected to the network, a preliminary network structure is formed; Based on the actual connection relationship between the devices and the preliminary network structure, the home network topology is determined.

7. The network fault diagnosis method according to claim 6, It is characterized in that The determining of the home network topology based on the actual connection relationship between the devices and the preliminary network structure includes: Determine the connection relationship between each device and the corresponding gateway; Determine the mapping relationship between each device and the smartphone; Based on the connection relationship, the mapping relationship and the preliminary network structure, a home network topology is determined.

8. A network fault diagnosis device, It is characterized in that The network fault diagnosis device includes: A receiving module, configured to determine a corresponding faulty device and a fault type in response to received fault information; an association module, configured to determine an associated device connected to the faulty device based on a pre-established home network topology; A scoring module, used to determine the detection score of the associated device based on the set detection index; A diagnosis module, configured to determine a source device corresponding to the fault information from the associated devices based on the detection score and the fault type; The scoring module is specifically used to: determine the corresponding score of each associated device under each detection indicator in turn; determine the detection score of each associated device based on the corresponding score of each associated device under each detection indicator; The diagnostic module is specifically used to: obtain the possible fault type in the associated device; determine the potential source device from the associated devices based on the matching relationship between the possible fault type and the fault type in the fault information; and determine the source device from the potential source devices based on the detection score of the potential source device.

9. A control device, It is characterized in that include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the control device to perform the network fault diagnosis method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is 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 network fault diagnosis method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for diagnosing root of network faults

    CN104796273A

  • Fault diagnosis method, device and server

    CN110493042A