A detection method and device, electronic equipment and storage medium
By comparing the original and output signal data and analyzing the flashing data of the indicator lights, the specific location of the network fault source can be determined, solving the problem of the inability to accurately locate fault nodes in the existing technology and achieving highly accurate network fault detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2023-09-27
- Publication Date
- 2026-07-31
AI Technical Summary
Existing network fault node detection methods can only detect the faulty area, not the faulty node itself, resulting in inaccurate detection results.
By comparing the acquired raw signal data with the output signal data, it is determined whether there is an abnormality in the line, and the specific location of the fault source, including the fault node or transmission link, is determined by analyzing the flashing data of the indicator lights.
It enables precise location of network fault nodes, improves the accuracy of detection results, and can accurately identify faulty nodes or links.
Smart Images

Figure CN117354126B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a detection method, apparatus, electronic device and storage medium. Background Technology
[0002] As network environments become increasingly complex, network connectivity testing and diagnosis are also becoming more complicated, and identifying faulty network nodes has become a challenge in network connectivity testing.
[0003] Currently, the main method for detecting network fault nodes is to use automated testing software to simulate network path probing and search for faults in the network path probing results according to a specified protocol in order to determine the network fault area.
[0004] However, current methods for detecting network fault nodes can only detect the area of the network fault, and the fault location cannot be precisely pinpointed to the fault node. Therefore, there is a problem of inaccurate detection results. Summary of the Invention
[0005] This application provides a detection method, apparatus, electronic device, and storage medium, relating to the field of communication technology. By comparing the output signal data with the original signal data to determine anomalies, non-fault interference can be eliminated. Furthermore, by analyzing the flicker data, the specific location of the fault source can be determined, thus solving the problem of inaccurate detection results of network fault nodes.
[0006] In a first aspect, this application provides a detection method, which includes: acquiring raw signal data and output signal data of the line under test; the raw signal data is signal data input to the transmission network where the line under test is located; the line under test includes a first node, a second node, and a transmission link between the first node and the second node; determining whether there is an abnormality in the line under test based on the raw signal data and the output signal data; if there is an abnormality in the line under test, acquiring the flashing data of the indicator lights at the first node and the second node; the indicator lights are used to flash according to the frequency of the transmission signal at the node; the flashing data includes the number of flashes within a preset period and the time interval between two adjacent flashes; determining the fault source based on the flashing data of the indicator lights at the first node and the second node; the fault source includes a faulty node or a transmission link; the faulty node includes the first node and the second node.
[0007] The technical solution provided in this application has at least the following beneficial effects: by comparing the output signal data with the original signal data, it can be determined whether there is an abnormality in the line under test. If there is an abnormality in the line under test, the specific location of the fault source (first node, second node, or transmission link between the first node and the second node) can be determined by analyzing the strobe data at both ends of the line under test. This can achieve the effect of accurately locating the fault node and solve the problem of inaccurate detection results of network fault nodes.
[0008] In one possible implementation, determining the fault source based on the flashing data of indicator lights at the first node and the second node includes: determining the number of flashes of the indicator lights at the first node within a preset period and the average time interval between multiple flashes of the indicator lights at the first node based on the flashing data of the indicator lights at the first node; determining a standard value for the first node based on the number of flashes of the indicator lights at the first node within the preset period and the average time interval between multiple flashes of the indicator lights at the first node; determining the number of flashes of the indicator lights at the second node within a preset period and the average time interval between multiple flashes of the indicator lights at the second node based on the flashing data of the indicator lights at the second node; determining a standard value for the second node based on the number of flashes of the indicator lights at the second node within the preset period and the average time interval between multiple flashes of the indicator lights at the second node; if the standard value of the first node is the same as the standard value of the second node, the fault source is determined to be the transmission link; if the standard value of the first node is different from the standard value of the second node, the fault source is determined to be either the first node or the second node.
[0009] In one possible implementation, the standard value of the first node is determined based on the number of flashes of the indicator light at the first node within a preset period and the average time interval between multiple flashes of the indicator light at the first node, including: determining the standard value of the first node according to the following formula: BZ1 = k1 × C1 + J1 × C2; Wherein, BZ1 represents the standard value of the first node; k1 represents the number of flashes of the first node; J1 represents the average time interval between each flash of the first node; C1 is the preset first coefficient factor; C2 is the preset second coefficient factor; The standard value of the second node is determined based on the number of flashes of the indicator light at the second node within a preset period and the average time interval between multiple flashes of the indicator light at the second node, including: determining the standard value of the second node according to the following formula: BZ2 = k2 × C1 + J2 × C2; Where BZ2 represents the standard value of the second node; k2 represents the number of flashes of the second node; and J2 represents the average time interval between each flash of the second node.
[0010] In one possible implementation, determining whether the line under test is abnormal based on the original signal data and output signal data includes: determining multiple groups of transmission signals based on the original signal data and output signal data; each group of transmission signals includes an input signal of an input transmission network and an output signal corresponding to the input signal output by the line under test; determining the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals based on the input signal and the output signal in each group of transmission signals; and determining whether the line under test is abnormal based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals.
[0011] In one possible implementation, determining whether the line under test is abnormal based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmitted signal groups includes: determining whether the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal are consistent in each group of transmitted signal groups, and recording a first group number; the first group number is the number of transmitted signal groups with the peak-to-valley difference of the input signal and the peak-to-valley difference of the input signal; determining a first probability based on the first group number and the second group number; the second group number is the number of multiple groups of transmitted signal groups; the first probability is the probability that a transmitted signal group with the peak-to-valley difference of the input signal and the peak-to-valley difference of the input signal appears in the multiple groups of transmitted signal groups; if the first probability is less than a preset threshold, it is determined that the line under test is abnormal; if the first probability is greater than the preset threshold, it is determined that the line under test is not abnormal.
[0012] In one possible implementation, before acquiring the output signal data of the line to be tested, the method further includes: acquiring a first original signal; the first original signal is any one of the original signals in the original signal data; acquiring an intermediate signal corresponding to the first original signal output by each of the multiple nodes included in the transmission network; comparing the first original signal and the intermediate signal output by each node to determine whether the intermediate signal output by each node is complete; designating the node that outputs a residual signal as the first node; the residual signal is an intermediate signal that is incomplete compared to the first original signal; designating the node in the transmission network that transmits data to the first node as the second node; and designating the first node, the second node, and the transmission link between the first node and the second node as the line to be tested.
[0013] In one possible implementation, the anomaly includes signal interference or line fault; when an anomaly exists in the line under test, the flashing data of the indicator lights at the first node and the second node are acquired, including: when an anomaly exists in the line under test, sequentially determining M original fluctuation values of the first original signal at M original time points, and M reference fluctuation values of the residual signal at M reference time points; the interval between the M original time points is the same as the interval between the M reference time points; the M original time points correspond one-to-one with the M original fluctuation values; the M reference time points correspond one-to-one with the M reference fluctuation values; M is a positive integer greater than or equal to 2; sequentially determining an original trend value based on the original fluctuation values corresponding to each of the two adjacent original time points among the M original fluctuation values, to obtain M-1 original trend values. The initial trend value is determined sequentially based on the reference fluctuation values corresponding to two adjacent reference time points among the M reference fluctuation values, resulting in M-1 reference trend values. From these M-1 reference trend values, N non-zero target reference trend values are determined, where N is a positive integer less than or equal to M-1. If none of the N target reference trend values is a first target reference trend value different from the initial trend value, the anomaly is determined to be signal interference. If any of the N target reference trend values is a first target reference trend value different from the initial trend value, the anomaly is determined to be a line fault, and the flashing data of the indicator lights at the first and second nodes are obtained. The position of the initial trend value among the M-1 initial trend values is the same as the position of the first target reference trend value among the M-1 reference trend values.
[0014] Based on this possible implementation, when there is an anomaly in the line under test, the strobe data can be used to further determine whether the anomaly is signal interference or line fault. Natural interference other than line faults (such as signal interference) can be excluded, effectively reducing the possibility of misjudging line faults and thus improving the accuracy of network fault node detection results.
[0015] Secondly, this application provides a fault node detection device, which includes an acquisition module and a processing module.
[0016] The acquisition module is used to acquire the original signal data and the output signal data of the line under test; in the event of an abnormality in the line under test, it acquires the flashing data of the indicator lights at the first node and the second node.
[0017] The processing module is used to determine whether there is an abnormality in the line under test based on the original signal data and the output signal data; and to determine the source of the fault based on the flashing data of the indicator lights at the first node and the second node.
[0018] Optionally, the acquisition module is specifically used to acquire the first original signal; and to acquire the intermediate signal corresponding to the first original signal output by each of the multiple nodes in the transmission network.
[0019] Optionally, the processing module is specifically configured to: determine the number of flashes of the indicator lights at the first node within a preset period and the average time interval between multiple flashes of the indicator lights at the first node based on the flashing data of the indicator lights at the first node; determine the standard value of the first node based on the number of flashes of the indicator lights at the first node within the preset period and the average time interval between multiple flashes of the indicator lights at the first node; determine the number of flashes of the indicator lights at the second node within a preset period and the average time interval between multiple flashes of the indicator lights at the second node based on the flashing data of the indicator lights at the second node; determine the standard value of the second node based on the number of flashes of the indicator lights at the second node within the preset period and the average time interval between multiple flashes of the indicator lights at the second node; if the standard value of the first node is the same as the standard value of the second node, then the fault source is determined to be the transmission link; if the standard value of the first node is different from the standard value of the second node, then the fault source is determined to be the first node and the second node.
[0020] Optionally, the processing module is specifically used to determine the standard value of the first node according to the following formula: BZ1 = k1 × C1 + J1 × C2; Wherein, BZ1 represents the standard value of the first node; k1 represents the number of flashes of the first node; J1 represents the average time interval between each flash of the first node; C1 is the preset first coefficient factor; C2 is the preset second coefficient factor; The standard value of the second node is determined according to the following formula: BZ2 = k2 × C1 + J2 × C2; Where BZ2 represents the standard value of the second node; k2 represents the number of flashes of the second node; and J2 represents the average time interval between each flash of the second node.
[0021] Optionally, the processing module is specifically used to determine multiple groups of transmission signals based on the original signal data and the output signal data; to determine the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals based on the input signal and the output signal in each group of transmission signals; and to determine whether there is an abnormality in the line to be detected based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals.
[0022] Optionally, the processing module is specifically used to determine whether the peak-valley difference of the input signal and the peak-valley difference of the output signal are consistent in each group of transmitted signal groups, and record the first group number; determine the first probability based on the first group number and the second group number; if the first probability is less than a preset threshold, it is determined that the line to be tested has an anomaly; if the first probability is greater than the preset threshold, it is determined that the line to be tested does not have an anomaly.
[0023] Optionally, the processing module is specifically used to compare the first original signal with the intermediate signal output by each node to determine whether the intermediate signal output by each node is complete; to designate the node that outputs the residual signal as the first node; to designate the node in the transmission network that transmits data to the first node as the second node; and to designate the first node, the second node, and the transmission link between the first node and the second node as the line to be detected.
[0024] Optionally, the processing module is specifically configured to, when an anomaly exists in the line under test, sequentially determine M original fluctuation values of the first original signal at M original time points and M reference fluctuation values of the residual signal at M reference time points; sequentially determine an original trend value based on the original fluctuation values corresponding to each of two adjacent original time points among the M original fluctuation values, obtaining M-1 original trend values; sequentially determine a reference trend value based on the reference fluctuation values corresponding to each of two adjacent reference time points among the M reference fluctuation values, obtaining M-1 reference trend values; determine N non-zero target reference trend values from the M-1 reference trend values; if there is no first target reference trend value different from the first original trend value among the N target reference trend values, then the anomaly is determined to be signal interference; if there is a first target reference trend value different from the first original trend value among the N target reference trend values, then the anomaly is determined to be a line fault, and acquire the flashing data of the indicator lights at the first node and the second node.
[0025] Thirdly, this application provides an electronic device comprising: a processor and a memory; the memory storing processor-executable instructions; when the processor is configured to execute the instructions, causing the electronic device to implement the detection method as described in the first aspect and any possible implementation thereof.
[0026] Fourthly, this application provides a computer-readable storage medium comprising: software instructions; when the software instructions are executed in an electronic device, causing the electronic device to implement the detection method as described in the first aspect and any possible implementation thereof.
[0027] The beneficial effects of the second to fourth aspects mentioned above can be referred to the first aspect, and will not be repeated here. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a schematic diagram of the composition of the detection system provided in the embodiments of this application; Figure 2 A schematic diagram illustrating the composition of the electronic device provided in the embodiments of this application; Figure 3 A schematic flowchart of the detection method provided in the embodiments of this application; Figure 4 Another schematic flowchart of the detection method provided in the embodiments of this application; Figure 5 This is another schematic flowchart of the detection method provided in the embodiments of this application; Figure 6 This is another schematic flowchart of the detection method provided in the embodiments of this application; Figure 7 This is another schematic flowchart of the detection method provided in the embodiments of this application; Figure 8 This is another schematic flowchart of the detection method provided in the embodiments of this application; Figure 9 This is a schematic diagram of the composition of the detection device provided in the embodiments of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0031] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0032] Furthermore, in the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, in the description of the embodiments of this application, "multiple" refers to two or more.
[0033] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.
[0034] As network environments become increasingly complex, network connectivity testing and diagnosis are also becoming more complicated, and identifying faulty network nodes has become a challenge in network connectivity testing.
[0035] Currently, the main method for detecting network fault nodes is to use automated testing software to simulate network path probing and search for faults in the network path probing results according to a specified protocol in order to determine the network fault area.
[0036] However, current methods for detecting network fault nodes can only detect the area of the network fault, and the fault location cannot be precisely pinpointed to the fault node. Therefore, there is a problem of inaccurate detection results.
[0037] Based on this, embodiments of this application provide a detection method, apparatus, device, and storage medium that can determine anomalies by comparing output signal data with original signal data. In the case of anomalies in the line under test, the specific location of the fault source can be determined by analyzing the flicker data, which can solve the problem of inaccurate detection results of network fault nodes.
[0038] For ease of understanding, the detection method provided in this application will be described in detail below with reference to the accompanying drawings.
[0039] Figure 1 This is a schematic diagram illustrating the composition of the detection system provided in an embodiment of this application. Figure 1 As shown, the system may include a transmission network 100 and a detection device 200. The transmission network 100 and the detection device 200 can be connected via a wired network or a wireless network.
[0040] The transmission network 100 may specifically include node 1, node 2, node 3, ..., and node n, and each node is equipped with an indicator light. The indicator light is used to flash according to the frequency of the transmission signal at its node and to collect the flashing data.
[0041] Each node in the transmission network 100 can be a network-side device in a wireless communication system. This wireless communication system can be a 4G system (also known as Long Term Evolution, LTE); or it can be a 5G system (also known as a New Radio, NR, or 5G NR system). Alternatively, it can be a next-generation system after 5G. In this case, the access network in the 5G system can be called a new generation-radio access network (NG-RAN).
[0042] Each node in the transmission network 100 can also be an evolved NB (eNB) used in a 4G system. Alternatively, each node in the transmission network 100 can also be a gNB (gNB) using a centralized-distributed architecture in a 5G system. When each node in the transmission network 100 adopts a centralized-distributed architecture, it typically includes a central unit (CU) and at least two distributed units (DUs). The central unit is equipped with a protocol stack of the packet data convergence protocol (PDCP) layer, the radio link control (RLC) layer, and the media access control (MAC) layer; the distributed units are equipped with a physical (PHY) layer protocol stack. The specific implementation of each node in the transmission network 100 is not limited here.
[0043] The detection device 200 can be a computing device with computing processing capabilities, such as a computer or server.
[0044] The server can be a single server or a server cluster consisting of multiple servers. In some implementations, the server cluster can also be a distributed cluster. Optionally, the server can also be implemented on a cloud platform, which may include private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, inter-cloud, and multi-cloud, or any combination thereof.
[0045] The detection device 200 can acquire the output signal data of each node in the transmission network 100 and the flashing data of the indicator lights at each node in the transmission network 100, and perform detection. The specific processing procedure can be referred to the processing method provided in the following method embodiment, which will not be repeated here.
[0046] As described above, the transmission network 100 and the detection device 200 can be connected via a wired or wireless network. This wired or wireless network may include one or more media or devices capable of transmitting output signal data and strobe data from each node in the transmission network 100 to the detection device 200.
[0047] In some embodiments, the wired or wireless network may include one or more communication media that enable each node in the transmission network 100 and its corresponding indicator light to transmit output signal data and strobe data to the detection device 200. In this embodiment, each node in the transmission network 100 and its corresponding indicator light may transmit output signal data and strobe data to the detection device 200 according to a communication standard (e.g., a wireless communication protocol). The one or more communication media may include wireless and / or wired communication media, such as radio frequency (RF) spectrum or one or more physical transmission lines. Optionally, the one or more communication media may form part of a packet-based network, such as a local area network, a wide area network, or a global network (e.g., the Internet). Optionally, the one or more communication media may include a router, switch, base station, or other devices that facilitate communication from the transmission network 100 to the detection device 200.
[0048] The detection method provided in this application embodiment is executed by the aforementioned detection device 200. As described above, the detection device 200 can be an electronic device with computing processing capabilities, such as a computer or server. Optionally, the detection device 200 can be the processor of the aforementioned electronic device (e.g., a central processing unit, CPU); or, the detection device 200 can be an application (APP) with computing processing capabilities installed in the aforementioned electronic device; or, the detection device 200 can be a software system or platform deployed in the aforementioned electronic device; or, the detection device 200 can be a functional module with computing processing capabilities in the aforementioned electronic device, etc. This application embodiment does not impose any limitations on these aspects.
[0049] For simplicity, the following description will use the detection device 200 as an electronic device.
[0050] Figure 2This is a schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application. For example... Figure 2 As shown, the electronic device may include: a processor 10, a memory 20, a communication line 30, a communication interface 40, and an input / output interface 50.
[0051] The processor 10, memory 20, communication interface 40, and input / output interface 50 can be connected via communication line 30.
[0052] The processor 10 is used to execute instructions stored in the memory 20 to implement the detection method provided in the following embodiments of this application. The processor 10 may be a CPU, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller (MCU) / single-chip microcomputer / microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 10 may also be any other device with processing capabilities, such as a circuit, device, or software module; this application embodiment does not limit this. In one example, the processor 10 may include one or more CPUs, for example... Figure 2 CPU0 and CPU1 in the example. As an optional implementation, the electronic device may include multiple processors; for example, in addition to processor 10, it may also include processor 60. Figure 2 (The example shown is a dashed line).
[0053] The memory 20 is used to store instructions. For example, the instructions may be computer programs. Optionally, the memory 20 may be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions; it may also be a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions; it may also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, etc. The embodiments of this application do not limit this.
[0054] It should be noted that the memory 20 can exist independently of the processor 10 or it can be integrated with the processor 10. The memory 20 can be located inside or outside the electronic device, and this application embodiment does not impose any restrictions on this.
[0055] Communication line 30 is used to transmit information between the components included in the electronic device.
[0056] The communication interface 40 is used to communicate with other devices (such as nodes in the aforementioned transmission network 100) or other communication networks. These other communication networks can be Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. The communication interface 40 can be a module, circuit, transceiver, or any device capable of enabling communication.
[0057] Input / output interface 50 is used to enable human-computer interaction between users and electronic devices. For example, it enables action interaction or information exchange between users and electronic devices.
[0058] For example, the input / output interface 50 can be a mouse, keyboard, display screen, or touch screen. Action or information interaction between the user and the electronic device can be achieved through a mouse, keyboard, display screen, or touch screen.
[0059] It should be noted that, Figure 2 The structures shown do not constitute a limitation on electronic devices, except... Figure 2 In addition to the components shown, the electronic device may include more or fewer components than illustrated (e.g., only processor 10 and memory 20), or combinations of certain components, or different component arrangements.
[0060] The detection method provided in the embodiments of this application will be described below with reference to the accompanying drawings.
[0061] Figure 3 This is a schematic flowchart illustrating the detection method provided in an embodiment of this application. Optionally, this method can be performed by someone with the above-described... Figure 2 The electronic device (detection device 200) with the hardware structure shown executes the operation. For example... Figure 3 As shown, the detection method includes: S101. The electronic device acquires the raw signal data and the output signal data of the circuit under test.
[0062] The raw signal data is the signal data input to the transmission network of the line under test. The line under test includes the first node, the second node, and the transmission link between the first node and the second node.
[0063] In one possible implementation, when an abnormal signal occurs in the transmission network 100, the administrator can send a signal abnormality command to the electronic device (detection device 200) through the input / output interface 50. After receiving the signal abnormality command, the electronic device can read the original signal data and output signal data of the line under test in the transmission network 100 to obtain the original signal data and the output signal data of the line under test.
[0064] S102. The electronic device determines whether there is an abnormality in the circuit to be tested based on the original signal data and the output signal data.
[0065] The specific process of S102 can be described as follows: Figure 4 The details described in sections S1021 to S1023 are not repeated here.
[0066] S103. In the event of an abnormality in the line to be tested, the electronic device acquires the flashing data of the indicator lights at the first node and the second node.
[0067] The indicator light flashes according to the frequency of the transmitted signal at its node. The flashing data includes the number of flashes within a preset period and the time interval between two consecutive flashes.
[0068] The preset cycle can be preset in the electronic device by the administrator. For example, the preset cycle can be 10 minutes, 30 minutes, 60 minutes, etc. In the actual testing process, an appropriate preset cycle can be selected according to the actual situation. This application embodiment does not limit this.
[0069] For example, as described above, the electronic device may include an input / output interface 50, which may be a mouse, keyboard, or touch screen, etc. The electronic device can receive preset cycles of input from the administrator through the mouse, keyboard, or touch screen, etc.
[0070] The specific process of S103 can be described as follows: Figure 6 The details described in sections S1031 to S1036 are not repeated here.
[0071] S104. The electronic device determines the source of the fault based on the flashing data of the indicator lights at the first node and the second node.
[0072] The sources of failure include faulty nodes or transmission links; faulty nodes include the first node and the second node.
[0073] The specific process of S104 can be described as follows: Figure 7 The details described in sections S1041 to S1046 will not be repeated here.
[0074] In the detection method provided in this application embodiment, the electronic device can determine whether there is an abnormality in the line under test by comparing the output signal data with the original signal data. If there is an abnormality in the line under test, the specific location of the fault source (first node, second node, or transmission link between the first node and the second node) can be determined by analyzing the strobe data at both ends of the line under test. This can achieve the effect of accurately locating the fault node and solve the problem of inaccurate detection results of network fault nodes.
[0075] The following is an introduction to S102.
[0076] In one possible implementation, the electronic device can compare the original signal data with the output signal data to determine whether there is an anomaly in the circuit under test. In this case, Figure 4 This is another schematic flowchart illustrating the detection method provided in an embodiment of this application. Figure 4 As shown, S102 may specifically include S1021 to S1023.
[0077] S1021. The electronic device determines multiple groups of transmission signals based on the original signal data and the output signal data.
[0078] Each group of transmitted signals includes an input signal to the input transmission network and an output signal corresponding to the input signal of the line under test.
[0079] For example, taking input signal 1 as an example, input signal 1 flows through node 1 and is output as output signal 1. Then the electronic device can use input signal 1 and output signal 1 as a group of transmission signals. Similarly, input signal 1 flows through node 2 and is output as output signal 2. Then the electronic device can use input signal 1 and output signal 2 as a group of transmission signals, and finally obtain multiple groups of transmission signals.
[0080] S1022. The electronic device determines the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmitted signals based on the input signal and the output signal in each group of transmitted signals.
[0081] Optionally, the electronic device may first determine the peak and valley values of the input and output signals in each group of transmitted signals, and use the difference between the peak and valley values as the peak-valley difference.
[0082] In one possible implementation, the electronic device can use the maximum value of the input signal in the transmission signal group as the peak value of the input signal and the minimum value of the input signal in the transmission signal group as the valley value of the input signal; and use the maximum value of the output signal in the transmission signal group as the peak value of the output signal and the minimum value of the output signal in the transmission signal group as the valley value of the output signal.
[0083] In another possible implementation, the electronic device can determine the input signal waveform corresponding to the input signal in each group of transmitted signal groups based on the input signal in each group of transmitted signal groups, and determine the output signal waveform corresponding to the output signal in each group of transmitted signal groups based on the output signal. The electronic device can use the peak and valley values of the input signal waveform as the peak and valley values of the input signal, and use the peak and valley values of the output signal waveform as the peak and valley values of the output signal.
[0084] S1023. The electronic equipment determines whether there is an abnormality in the line to be tested based on the peak-valley difference of the input signal and the peak-valley difference of the output signal in each group of transmitted signal groups.
[0085] In one possible implementation, the electronic device can calculate a first probability based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmitted signals, and compare the first probability with a preset threshold to determine whether there is an anomaly in the line under test. In this case, Figure 5 This is another schematic flowchart illustrating the detection method provided in an embodiment of this application. Figure 5 As shown, S1023 can specifically include S10231 to S10234.
[0086] S10231. The electronic device determines whether the peak-valley difference of the input signal and the peak-valley difference of the output signal are consistent in each group of transmitted signals, and records the first group number.
[0087] The first group of numbers represents the number of transmission signal groups whose peak-to-valley difference matches the peak-to-valley difference of the input signal.
[0088] For example, taking the example in S1021 above, assuming that the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal are consistent in the 10 groups of transmitted signals, the electronic device can determine that the number of the first group is 8 (the number of yes).
[0089] S10232. The electronic device determines the first probability based on the first set of numbers and the second set of numbers.
[0090] The second group number is the number of multiple groups of transmitted signals; the first probability is the probability of a transmission signal group with peak-to-valley difference of input signal and peak-to-valley difference of input signal appearing in the multiple groups of transmitted signals.
[0091] Optionally, the electronic device may use the ratio of the first set of numbers to the second set of numbers as the first probability.
[0092] For example, if the first group of numbers is 7 and the second group of numbers is 10, the electronic device can determine the first probability as 7 / 10 = 0.7.
[0093] S10233. If the first probability is less than the preset threshold, the electronic device determines that there is an abnormality in the circuit to be tested.
[0094] For example, with a preset threshold of 0.8 and a first probability of 0.7, the first probability (0.7) is less than the preset threshold (0.8), so the electronic device can determine that there is an abnormality in the circuit to be tested.
[0095] S10234. If the first probability is greater than the preset threshold, the electronic device determines that there is no abnormality in the circuit to be tested.
[0096] For example, with a preset threshold of 0.8 and a first probability of 0.9, the first probability (0.9) is greater than the preset threshold (0.8), so the electronic device can determine that there is no abnormality in the circuit to be tested.
[0097] It should be noted that when the first probability is equal to the preset threshold, the electronic device can determine whether the circuit under test is abnormal or not. This application embodiment does not impose any restrictions on this.
[0098] The following is an introduction to S103.
[0099] In one possible implementation, the anomaly includes signal interference or a line fault. The electronic device can determine whether the anomaly in the line under test is signal interference or a line fault, and if it is determined to be a line fault, it acquires the flashing data of the indicator lights at the first node and the second node. In this case, Figure 6 This is another schematic flowchart illustrating the detection method provided in an embodiment of this application. Figure 6 As shown, S103 may specifically include S1031 to S1036.
[0100] S1031. In the event of an abnormality in the circuit to be tested, the electronic equipment sequentially determines the M original fluctuation values of the first original signal at M original time points and the M reference fluctuation values of the residual signal at M reference time points.
[0101] Wherein, the interval between the M original time points is the same as the interval between the M reference time points; the M original time points correspond one-to-one with the M original fluctuation values; the M reference time points correspond one-to-one with the M reference fluctuation values; and M is a positive integer greater than or equal to 2.
[0102] Optionally, the fluctuation value can be a fluctuation parameter corresponding to the first original signal. During the transmission of the first original signal, the electronic device can directly collect such parameters, as described in the relevant technology, which will not be repeated here.
[0103] S1032. The electronic device determines an original trend value based on the original fluctuation values corresponding to two adjacent original time points in the M original fluctuation values, thus obtaining M-1 original trend values.
[0104] Alternatively, the electronic device can calculate the original trend value according to the following formula: Original trend value = (Original fluctuation value of the next time period - Original fluctuation value of the current time period) / Time interval between the next time period and the current time period.
[0105] For example, taking the case where the electronic device determines three original fluctuation values at three original time points (the second time point, the fourth time point, and the sixth time point), assuming that the original fluctuation value corresponding to the second time point is 10, the original fluctuation value corresponding to the fourth time point is 12, and the original fluctuation value corresponding to the sixth time point is 8, the electronic device can calculate the original trend value of the time period between the second and fourth time points = (the original fluctuation value corresponding to the fourth time point - the original fluctuation value corresponding to the second time point) / 2 = (12 - 10) / 2 = 1; the original trend value of the time period between the fourth and sixth time points = (the original fluctuation value corresponding to the sixth time point - the original fluctuation value corresponding to the fourth time point) / 2 = (8 - 12) / 2 = -4.
[0106] S1033. The electronic device determines a reference trend value based on the reference fluctuation value corresponding to each of the two adjacent reference time points among the M reference fluctuation values, thus obtaining M-1 reference trend values.
[0107] Alternatively, the electronic device may calculate the reference trend value according to the following formula: Reference trend value = (Reference fluctuation value for the next time period - Reference fluctuation value for the current time period) / Time interval between the next time period and the current time period.
[0108] For example, taking an electronic device that determines three reference fluctuation values at three reference time points (the second time point, the fourth time point, and the sixth time point), assuming that the reference fluctuation value corresponding to the second time point is 8, the reference fluctuation value corresponding to the fourth time point is 10, and the reference fluctuation value corresponding to the sixth time point is 8, the electronic device can calculate the reference trend value of the time period between the second and fourth time points = (the reference fluctuation value corresponding to the fourth time point - the reference fluctuation value corresponding to the second time point) / 2 = (10 - 8) / 2 = 1; the reference trend value of the time period between the fourth and sixth time points = (the reference fluctuation value corresponding to the sixth time point - the reference fluctuation value corresponding to the fourth time point) / 2 = (8 - 10) / 2 = -1.
[0109] S1034. The electronic device determines N non-zero target reference trend values from M-1 reference trend values.
[0110] Where N is a positive integer less than or equal to M-1.
[0111] For example, taking the target trend value exemplified in S1032 above as an example, the electronic device may use the reference trend value 1 of the time period between the second time point and the fourth time point, and / or the reference trend value -1 of the time period between the fourth time point and the sixth time point as the target reference trend value.
[0112] S1035. If there is no first target reference trend value different from the first original trend value among the N target reference trend values, the electronic device determines that the abnormality is signal interference.
[0113] S1036. If there is a first target reference trend value that is different from the first original trend value among the N target reference trend values, the electronic device determines that the abnormality is a line fault and obtains the flashing data of the indicator lights at the first node and the second node.
[0114] The position of the first original trend value among the M-1 original trend values is the same as the position of the first target reference trend value among the M-1 reference trend values.
[0115] For example, taking the original trend value of the first time period as 1, the original trend value of the second time period as -4, the target reference trend value corresponding to the first time period as 1, and the target reference trend value corresponding to the second time period as -1, there is a first target reference trend value that is different from the first original trend value (that is, the original trend value of the second time period as -4, which is different from the target reference trend value of the second time period as -1). The electronic device can determine that the abnormality of the line to be detected is a line fault.
[0116] The process of the electronic device acquiring strobe data in S1036 can be described as described in S101 above, and will not be repeated here.
[0117] The following is an introduction to S104.
[0118] In one possible implementation, the electronic device can calculate the standard values of a first node and a second node based on flicker data, and compare the standard values of the first node and the second node to determine the source of the fault. In this case, Figure 7 This is another schematic flowchart illustrating the detection method provided in an embodiment of this application. Figure 7 As shown, S104 can specifically include S1041 to S1046.
[0119] S1041. The electronic device determines the number of times the indicator light at the first node flashes within a preset period and the average value of the time interval between multiple flashes of the indicator light at the first node based on the flashing data of the indicator light at the first node.
[0120] Alternatively, the electronic device may use the ratio of the sum of the time intervals between multiple flashes to the number of flashes minus 1 as the average of the time intervals between multiple flashes of the indicator light at the first node.
[0121] For example, if the number of flashes of the indicator light at the first node within a preset period is 5, and the four time intervals between the 5 flashes are 3 seconds, 2 seconds, 3 seconds, and 2 seconds respectively, then the electronic device can determine that the average value of the time interval between the multiple flashes of the indicator light at the first node is (3+2+3+2) / 4=2.5 (in seconds).
[0122] S1042. The electronic device determines the standard value of the first node based on the number of times the indicator light at the first node flashes within a preset period and the average value of the time interval between multiple flashes of the indicator light at the first node.
[0123] Alternatively, the electronic device may determine the standard value of the first node according to the following formula: BZ1 = k1 × C1 + J1 × C2; Where BZ1 represents the standard value of the first node. k1 represents the number of flashes of the first node. J1 represents the average time interval between each flash of the first node. C1 is a preset first coefficient factor. C2 is a preset second coefficient factor.
[0124] For example, taking k1 as 5 times and J1 as 2.5 seconds, assuming C1 and C2 are both 1, the electronic device can determine the standard value of the first node as BZ1 = 5 × 1 + 2.5 × 1 = 7.5.
[0125] S1043. The electronic device determines the number of times the indicator light at the second node flashes within a preset period and the average time interval between multiple flashes of the indicator light at the second node based on the flashing data of the indicator light at the second node.
[0126] Alternatively, the electronic device may use the ratio of the sum of the time intervals between multiple flashes to the number of flashes minus 1 as the average of the time intervals between multiple flashes of the indicator light at the second node.
[0127] For example, if the number of flashes of the indicator light at the second node within a preset period is 5, and the four time intervals between the 5 flashes are 3 seconds, 3 seconds, 3 seconds, and 3 seconds respectively, then the electronic device can determine that the average value of the time interval between the multiple flashes of the indicator light at the second node is (3+3+3+3) / 4=3 (in seconds).
[0128] S1044. The electronic device determines the standard value of the second node based on the number of times the indicator light at the second node flashes within a preset period and the average value of the time interval between multiple flashes of the indicator light at the second node.
[0129] Alternatively, the electronic device may determine the standard value of the second node according to the following formula: BZ2 = k2 × C1 + J2 × C2; Where BZ2 represents the standard value of the second node. k2 represents the number of flashes of the second node. J2 represents the average time interval between each flash of the second node.
[0130] For example, taking k2 as 5 times and J2 as 3 seconds, assuming C1 and C2 are both 1, the electronic device can determine the standard value of the second node BZ2 = 5 × 1 + 3 × 1 = 8.
[0131] S1045. If the standard value of the first node is the same as the standard value of the second node, the electronic device determines that the source of the fault is the transmission link.
[0132] Optionally, after determining that the fault source is the transmission link, the electronic device can number the lines to be tested and then... Figure 2 The input / output interface 50 displays the transmission link of the line under test externally for operators to view, so as to facilitate timely maintenance.
[0133] S1046. If the standard value of the first node is different from the standard value of the second node, the electronic device determines that the fault source is the first node and the second node.
[0134] For example, if the standard value of the first node is 7.5 and the standard value of the second node is 8, and the standard values of the first node and the second node are different (i.e. 7.5 and 8 are different), then the electronic device can determine that the fault source is the first node and the second node.
[0135] Optionally, after determining that the fault source is the first node and the second node, the electronic device can also determine the first identity identifier of the first node and the second identity identifier of the second node, and display the first identity identifier and the second identity identifier to the operator.
[0136] For example, as described above, the electronic device may include an input / output interface 50, which may be a display screen or a touch screen. In this case, the electronic device can display a fault interface through the display screen or touch screen, which includes a first identification and a second identification.
[0137] Optionally, the first and second identity identifiers can be specifically implemented as numbering.
[0138] In some possible embodiments, the electronic device may determine the line to be tested before acquiring the output signal data of the line under test. In this case, Figure 8 This is another schematic flowchart illustrating the detection method provided in an embodiment of this application. Figure 8 As shown, the detection method also includes: S201, The electronic device acquires the first raw signal.
[0139] The first original signal is any one of the original signal data (signal data of the transmission network where the line to be tested is located).
[0140] In one possible implementation, when an abnormal signal occurs in the transmission network 100, the administrator can send a signal abnormality command to the electronic device (detection device 200) through the input / output interface 50. After receiving the signal abnormality command, the electronic device can read the first original signal of the line to be tested in the transmission network 100 to obtain the first original signal data.
[0141] S202. The electronic device acquires the intermediate signal corresponding to the first original signal output by each of the multiple nodes in the transmission network.
[0142] In one possible implementation, the intermediate signal can be a portion of all the signals output by each node, and the electronic device can filter out the intermediate signal corresponding to each node from the signals output by each node.
[0143] Optionally, the raw signal data can be understood as a signal data stream. The electronic device can add an identifier to the raw signal at a certain point in time in the signal data stream, and use the raw signals within a preset time period after the identifier as the first raw signal. The electronic device can identify the identifier in the signal data stream output by each node, and use the output signals within the preset time period after the identifier as the corresponding intermediate signals for each node.
[0144] In another possible implementation, the electronic device can acquire the intermediate signal corresponding to the first original signal output by each node in the same way as acquiring the first original signal in S201 above.
[0145] S203. The electronic device compares the first original signal with the intermediate signal output by each node to determine whether the intermediate signal output by each node is complete.
[0146] In one possible implementation, the electronic device can determine that the intermediate signal output by any one node is complete if the intermediate signal of any one node is completely consistent with the first original signal; and determine that the intermediate signal output by any one node is incomplete if the intermediate signal of any one node is not completely consistent with the first original signal.
[0147] In another possible implementation, the electronic device can determine the waveforms of the first original signal and the intermediate signal based on the first original signal and the intermediate signal, and compare the waveforms of the first original signal and the intermediate signal to determine the waveform curve similarity. If the waveform curve similarity is higher than a preset threshold (less than 1), the electronic device can determine that the intermediate signal is complete; if the waveform curve similarity is lower than the preset threshold (less than 1), the electronic device can determine that the intermediate signal is incomplete.
[0148] It should be noted that when the waveform similarity is equal to a preset threshold, the electronic device can determine whether the intermediate signal is complete or incomplete, and the embodiments of this application do not impose any restrictions on this.
[0149] S204. The electronic device takes the node that outputs the residual signal as the first node.
[0150] The residual signal is an intermediate signal that is incomplete compared to the first original signal.
[0151] S205. The electronic device uses the node that transmits data to the first node in the transmission network as the second node.
[0152] For example, taking the first node as Figure 1 Taking node 2 as an example, the electronic device can determine that the second node is... Figure 1 Node 1 in the first node; Figure 1 Taking node 3 as an example, the electronic device can determine the second node as... Figure 1 Node 2 in the middle.
[0153] S206. The electronic device uses the first node, the second node, and the transmission link between the first node and the second node as the line to be tested.
[0154] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0155] In an exemplary embodiment, this application also provides a detection device. Figure 9 This is a schematic diagram illustrating the composition of the detection device provided in an embodiment of this application. Figure 9 As shown, the device includes an acquisition module 901 and a processing module 902.
[0156] The acquisition module 901 is used to acquire the original signal data and the output signal data of the line under test; in the event of an abnormality in the line under test, it acquires the flashing data of the indicator lights at the first node and the second node.
[0157] The processing module 902 is used to determine whether there is an abnormality in the line under test based on the original signal data and the output signal data; and to determine the source of the fault based on the flashing data of the indicator lights at the first node and the second node.
[0158] In some possible embodiments, the acquisition module 901 is specifically used to acquire the first original signal; and to acquire the intermediate signal corresponding to the first original signal output by each of the multiple nodes included in the transmission network.
[0159] In some possible embodiments, the processing module 902 is specifically configured to: determine the number of flashes of the indicator light at the first node within a preset period and the average time interval between multiple flashes of the indicator light at the first node based on the flashing data of the indicator light at the first node; determine a standard value for the first node based on the number of flashes of the indicator light at the first node within the preset period and the average time interval between multiple flashes of the indicator light at the first node; determine the number of flashes of the indicator light at the second node within a preset period and the average time interval between multiple flashes of the indicator light at the second node based on the flashing data of the indicator light at the second node; determine a standard value for the second node based on the number of flashes of the indicator light at the second node within the preset period and the average time interval between multiple flashes of the indicator light at the second node; if the standard value of the first node is the same as the standard value of the second node, then the fault source is determined to be the transmission link; if the standard value of the first node is different from the standard value of the second node, then the fault source is determined to be the first node and the second node.
[0160] In some possible embodiments, the processing module 902 is specifically configured to determine the standard value of the first node according to the following formula: BZ1 = k1 × C1 + J1 × C2; Wherein, BZ1 represents the standard value of the first node; k1 represents the number of flashes of the first node; J1 represents the average time interval between each flash of the first node; C1 is the preset first coefficient factor; C2 is the preset second coefficient factor; The standard value of the second node is determined according to the following formula: BZ2 = k2 × C1 + J2 × C2; Where BZ2 represents the standard value of the second node; k2 represents the number of flashes of the second node; and J2 represents the average time interval between each flash of the second node.
[0161] In some possible embodiments, the processing module 902 is specifically used to determine multiple groups of transmission signals based on the original signal data and the output signal data; to determine the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals based on the input signal and the output signal in each group of transmission signals; and to determine whether there is an abnormality in the line to be detected based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals.
[0162] In some possible embodiments, the processing module 902 is specifically used to determine whether the peak-valley difference of the input signal and the peak-valley difference of the output signal are consistent in each group of transmitted signal groups, and record the first group number; determine the first probability based on the first group number and the second group number; if the first probability is less than a preset threshold, it is determined that the line to be tested has an anomaly; if the first probability is greater than the preset threshold, it is determined that the line to be tested does not have an anomaly.
[0163] In some possible embodiments, the processing module 902 is specifically used to compare the first original signal with the intermediate signal output by each node to determine whether the intermediate signal output by each node is complete; to designate the node that outputs the residual signal as the first node; to designate the node that transmits data to the first node in the transmission network as the second node; and to designate the first node, the second node, and the transmission link between the first node and the second node as the line to be detected.
[0164] In some possible embodiments, the processing module 902 is specifically configured to, when an anomaly exists in the line under test, sequentially determine M original fluctuation values of the first original signal at M original time points and M reference fluctuation values of the residual signal at M reference time points; sequentially determine an original trend value based on the original fluctuation values corresponding to each of two adjacent original time points among the M original fluctuation values, obtaining M-1 original trend values; sequentially determine a reference trend value based on the reference fluctuation values corresponding to each of two adjacent reference time points among the M reference fluctuation values, obtaining M-1 reference trend values; determine N non-zero target reference trend values from the M-1 reference trend values; if there is no first target reference trend value different from the first original trend value among the N target reference trend values, then determine the anomaly as signal interference; if there is a first target reference trend value different from the first original trend value among the N target reference trend values, then determine the anomaly as a line fault, and acquire the flashing data of the indicator lights at the first node and the second node.
[0165] In an exemplary embodiment, this application also provides a computer program product that, when run on a computer, causes the computer to execute the aforementioned related method steps to implement the monitoring method in the above embodiments.
[0166] In an exemplary embodiment, this application also provides a computer-readable storage medium storing program instructions thereon; when the program instructions are executed by an electronic device, the electronic device causes the electronic device to perform the method described in the foregoing embodiments. The computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0167] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer-executable instructions. When these computer-executable instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer-executable instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs).
[0168] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0169] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
[0170] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A detection method, characterized in that, The method includes: Acquire raw signal data and output signal data of the line under test; the raw signal data is the signal data input to the transmission network where the line under test is located; the line under test includes a first node, a second node, and a transmission link between the first node and the second node; Based on the original signal data and the output signal data, determine whether there is an abnormality in the line to be tested; In the event of an anomaly in the line under test, the flashing data of the indicator lights at the first node and the second node are acquired; the indicator lights are used to flash according to the frequency of the transmission signal at their respective nodes; the flashing data includes the number of flashes within a preset period and the time interval between two adjacent flashes; The source of the fault is determined based on the flashing data of the indicator lights at the first node and the second node; the source of the fault includes the faulty node or the transmission link; the faulty node includes the first node and the second node. The step of determining whether the line under test is abnormal based on the original signal data and the output signal data includes: Based on the original signal data and the output signal data, multiple groups of transmission signals are determined; each group of transmission signals includes an input signal input to the transmission network and an output signal corresponding to the input signal output by the line under test. Based on the input and output signals in each group of transmitted signals, determine the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmitted signals. Based on the peak-valley difference of the input signal and the peak-valley difference of the output signal in each group of transmitted signals, it is determined whether there is an abnormality in the line to be detected; The anomaly includes signal interference or line fault; the step of acquiring the flashing data of the indicator lights at the first node and the second node when an anomaly exists in the line under test includes: When an anomaly is detected in the circuit under test, M original fluctuation values of the first original signal at M original time points and M reference fluctuation values of the residual signal at M reference time points are determined sequentially; the first original signal is any one of the original signal data; the residual signal is an incomplete intermediate signal compared to the first original signal; the interval between the M original time points is the same as the interval between the M reference time points; the M original time points correspond one-to-one with the M original fluctuation values; the M reference time points correspond one-to-one with the M reference fluctuation values; M is a positive integer greater than or equal to 2; Based on the original fluctuation values corresponding to each of the two adjacent original time points in the M original fluctuation values, an original trend value is determined, resulting in M-1 original trend values; Based on the reference fluctuation values corresponding to each of the two adjacent reference time points among the M reference fluctuation values, a reference trend value is determined, resulting in M-1 reference trend values; From the M-1 reference trend values, determine N target reference trend values that are not zero; N is a positive integer less than or equal to M-1. If none of the N target reference trend values is a first target reference trend value that is different from the first original trend value, then the anomaly is determined to be the signal interference; If there is a first target reference trend value among the N target reference trend values that is different from the first original trend value, then the abnormality is determined to be the line fault, and the flashing data of the indicator lights at the first node and the second node are obtained; the position of the first original trend value among the M-1 original trend values is the same as the position of the first target reference trend value among the M-1 reference trend values. The step of determining the fault source based on the flashing data of the indicator lights at the first node and the second node includes: Based on the flashing data of the indicator light at the first node, determine the number of flashes of the indicator light at the first node within the preset period, and the average value of the time interval between multiple flashes of the indicator light at the first node; The standard value of the first node is determined based on the number of times the indicator light at the first node flashes within the preset period and the average value of the time interval between multiple flashes of the indicator light at the first node. Based on the flashing data of the indicator light at the second node, determine the number of flashes of the indicator light at the second node within the preset period, and the average value of the time interval between multiple flashes of the indicator light at the second node; The standard value of the second node is determined based on the number of flashes of the indicator light at the second node within the preset period and the average value of the time interval between multiple flashes of the indicator light at the second node. If the standard value of the first node is the same as the standard value of the second node, then the source of the fault is determined to be the transmission link; If the standard value of the first node is different from the standard value of the second node, then the fault source is determined to be the first node and the second node.
2. The method according to claim 1, characterized in that, The step of determining the standard value of the first node based on the number of flashes of the indicator light at the first node within the preset period and the average time interval between multiple flashes of the indicator light at the first node includes: The standard value of the first node is determined according to the following formula: BZ1 = k1 × C1 + J1 × C2; Wherein, BZ1 represents the standard value of the first node; k1 represents the number of flashes of the first node; J1 represents the average time interval between each flash of the first node; C1 is the preset first coefficient factor; C2 is the preset second coefficient factor; The step of determining the standard value of the second node based on the number of flashes of the indicator light at the second node within the preset period and the average time interval between multiple flashes of the indicator light at the second node includes: The standard value of the second node is determined according to the following formula: BZ2 = k2 × C1 + J2 × C2; Where BZ2 represents the standard value of the second node; k2 represents the number of flashes of the second node; and J2 represents the average time interval between each flash of the second node.
3. The method according to claim 1, characterized in that, The step of determining whether the line under test is abnormal based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmitted signals includes: Determine whether the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal are consistent in each group of transmitted signals, and record the first group number; the first group number is the number of transmitted signal groups in which the peak-to-valley difference of the input signal is consistent with the peak-to-valley difference of the output signal. A first probability is determined based on the first group number and the second group number; the second group number is the number of the multiple groups of transmitted signal groups; the first probability is the probability of a transmission signal group with peak-valley difference of input signal and peak-valley difference of input signal appearing in the multiple groups of transmitted signal groups. If the first probability is less than a preset threshold, then it is determined that the line to be detected is abnormal; If the first probability is greater than the preset threshold, then it is determined that the line to be tested is not abnormal.
4. The method according to any one of claims 1-3, characterized in that, Before acquiring the output signal data of the line under test, the method further includes: Obtain the first raw signal; Obtain the intermediate signal corresponding to the first original signal output by each of the multiple nodes in the transmission network; The first original signal is compared with the intermediate signal output by each node to determine whether the intermediate signal output by each node is complete. The node that outputs the residual signal is taken as the first node; The node that transmits data to the first node in the transmission network is designated as the second node; The first node, the second node, and the transmission link between the first node and the second node are taken as the line to be detected.
5. A detection device, characterized in that, The device includes: Acquisition module and processing module; The acquisition module is used to acquire raw signal data and output signal data of the line under test; in the event of an abnormality in the line under test, it acquires the flashing data of the indicator lights at the first node and the second node. The processing module is used to determine whether there is an abnormality in the line under test based on the original signal data and the output signal data; and to determine the source of the fault based on the flashing data of the indicator lights at the first node and the second node. The processing module is specifically used to determine multiple groups of transmission signals based on the original signal data and the output signal data; each group of transmission signals includes an input signal of an input transmission network and an output signal corresponding to the input signal output by the line under test; based on the input signal and output signal in each group of transmission signals, the module determines the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals; based on the peak-to-valley difference of the input signal and the peak-to-valley difference of the output signal in each group of transmission signals, the module determines whether the line under test has any abnormalities. The anomaly includes signal interference or line fault; the processing module is specifically used to, when the line under test has an anomaly, sequentially determine M original fluctuation values of the first original signal at M original time points and M reference fluctuation values of the residual signal at M reference time points; the first original signal is any one of the original signal data; the residual signal is an incomplete intermediate signal compared to the first original signal; the interval between the M original time points is the same as the interval between the M reference time points; the M original time points correspond one-to-one with the M original fluctuation values; the M reference time points correspond one-to-one with the M reference fluctuation values; M is a positive integer greater than or equal to 2; sequentially, based on the original fluctuation values corresponding to each of the two adjacent original time points among the M original fluctuation values, an original trend value is determined to obtain M-1... The original trend value is used as follows: Based on the reference fluctuation values corresponding to two adjacent reference time points from the M reference fluctuation values, a reference trend value is determined, resulting in M-1 reference trend values. From the M-1 reference trend values, N non-zero target reference trend values are determined; N is a positive integer less than or equal to M-1. If none of the N target reference trend values is a first target reference trend value different from the first original trend value, the anomaly is determined to be signal interference. If any of the N target reference trend values is a first target reference trend value different from the first original trend value, the anomaly is determined to be a line fault, and the flashing data of the indicator lights at the first node and the second node are obtained. The position of the first original trend value among the M-1 original trend values is the same as the position of the first target reference trend value among the M-1 reference trend values. The processing module is specifically configured to: determine the number of flashes of the indicator light at the first node within a preset period and the average time interval between multiple flashes of the indicator light at the first node based on the flashing data of the indicator light at the first node; determine a standard value for the first node based on the number of flashes of the indicator light at the first node within the preset period and the average time interval between multiple flashes of the indicator light at the first node; determine the number of flashes of the indicator light at the second node within the preset period and the average time interval between multiple flashes of the indicator light at the second node based on the flashing data of the indicator light at the second node; determine a standard value for the second node based on the number of flashes of the indicator light at the second node within the preset period and the average time interval between multiple flashes of the indicator light at the second node; if the standard value of the first node is the same as the standard value of the second node, then the fault source is determined to be the transmission link; if the standard value of the first node is different from the standard value of the second node, then the fault source is determined to be both the first node and the second node.
6. An electronic device, characterized in that, The electronic device includes: a processor and a memory; The memory stores instructions that the processor can execute; When the processor is configured to execute the instructions, the electronic device performs the method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes: computer software instructions; When the computer software instructions are executed in an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1 to 4.