Method and System for Rapid Location of Access and Transmission Faults in IoT Terminal Devices
By performing step-by-step intelligent diagnosis of real-time wireless network data from IoT terminals, the problem of accurate location and visual feedback of faults in the transmission layer of IoT terminal access networks is solved, achieving accurate diagnosis and efficient feedback of faults in the transmission layer of IoT terminal access networks.
Patent Information
- Application Number
- CN202510747239.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2045-06-05
AI Technical Summary
Existing fault diagnosis methods for IoT terminal access network transmission layers cannot achieve step-by-step scientific location of network access fault types, nor can they provide visualized and efficient feedback of fault diagnosis results for IoT terminal access network transmission layers.
By collecting real-time wireless network signal strength data and packet loss rate data from IoT terminals, and combining the KD-tree nearest neighbor search algorithm and the Rabin-Karp search algorithm, step-by-step intelligent diagnosis of wireless network signal coverage faults, signal interference faults, protocol interaction faults, and network configuration faults is performed, generating fault diagnosis data, which is then fed back through the IoT gateway.
It enables precise location and visual feedback of faults in the network transmission layer of IoT terminals, improving the accuracy, reliability and efficiency of fault location.
Smart Images

Figure CN120434676B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of Internet of Things (IoT) communication fault location, specifically to a method and system for rapid location of transmission faults in IoT terminal devices. Background Technology
[0002] IoT terminals are devices that connect the sensor network layer and the transmission network layer in the Internet of Things (IoT), enabling them to collect data and send data to the network layer. They perform multiple functions, including data acquisition, preliminary processing, encryption, and transmission. IoT terminal devices can generally be divided into four layers: the context awareness layer, the network access layer, the network control layer, and the application service layer. Each layer corresponds to a control device on the network side. IoT terminal devices often operate in various heterogeneous network environments. To provide the best user experience, the terminal should be able to sense changes in the environment and, based on this, optimize the decision to select the best service channel for the user. Terminal devices sense environmental changes through front-end RF modules or sensor modules, perform calculations, and decide on the necessary countermeasures. However, network access failures frequently occur during the IoT terminal's access to the network transmission layer due to equipment, environmental, and human factors. Existing fault diagnosis methods for IoT terminal access to the network transmission layer cannot achieve step-by-step scientific localization of network access failure types, nor can they provide visualized and efficient feedback of the fault diagnosis results.
[0003] Chinese invention patent application CN117880070A discloses a method, apparatus, system, electronic device, and readable storage medium for fault detection and location of network devices. By constructing a fault detection system for network devices that includes a probe request device, a probe response device, a probe monitoring device, and a probe alarm device, it achieves unified fault detection and fault location of network devices in data center networks. When a fault is determined to occur in the data center network, it can simultaneously obtain the faulty network device and its corresponding fault cause. However, the above technical solution cannot achieve step-by-step scientific diagnosis of the fault type of network devices. Summary of the Invention
[0004] (a) Technical problems to be solved
[0005] To address the shortcomings of existing IoT terminal access network transmission layer fault diagnosis methods, which fail to achieve step-by-step scientific location of network access fault types and provide visualized and efficient feedback of fault diagnosis results, this paper aims to achieve the above-mentioned step-by-step intelligent diagnosis of wireless network connection faults, protocol interaction faults, and network configuration faults in the IoT terminal access network transmission layer, provide visual and intuitive feedback of fault location results, and improve the effectiveness and accuracy of fault location in the IoT terminal access network transmission layer.
[0006] (II) Technical Solution
[0007] This invention is achieved through the following technical solution: a method for rapid location of transmission faults in Internet of Things (IoT) terminal devices, the method comprising the following steps:
[0008] S1. Collect real-time wireless network signal strength data and real-time wireless network data packet loss rate data of IoT terminals;
[0009] S2. Based on the real-time wireless network signal strength data of the IoT terminal and the normal wireless network signal strength range of the IoT terminal, perform wireless network signal coverage fault analysis and processing during the IoT terminal access network transmission layer process to generate IoT terminal wireless network signal coverage fault analysis data.
[0010] S3. Based on the real-time wireless network data packet loss rate of the IoT terminal and the normal wireless network data packet loss rate range of the IoT terminal, perform wireless network signal interference fault identification processing during the IoT terminal access network transmission layer process to generate IoT terminal wireless network signal interference fault identification data.
[0011] S4. Based on the IoT terminal wireless network signal coverage fault analysis data and the IoT terminal wireless network signal interference fault identification data, perform wireless network connection fault diagnosis processing during the IoT terminal access network transmission layer process to construct IoT terminal wireless network connection fault diagnosis data.
[0012] S5. Collect the feature text data of the real-time protocol interaction log of the IoT terminal and perform wireless network protocol interaction fault diagnosis processing of the IoT terminal access network transmission layer with the feature text data of the abnormal protocol interaction log of the IoT terminal, and generate IoT terminal network protocol interaction fault diagnosis data.
[0013] S6. Collect real-time network configuration log feature text data of IoT terminals and perform wireless network configuration fault diagnosis processing of IoT terminal access network transmission layer with IoT terminal network configuration abnormal log feature text data to generate IoT terminal network configuration fault diagnosis data.
[0014] S7. Construct the fault location result data of the IoT terminal access network transmission layer and execute the IoT terminal access network transmission layer fault location feedback operation.
[0015] Preferably, the steps for collecting real-time wireless network signal strength data and real-time wireless network packet loss rate data of IoT terminals are as follows:
[0016] S11. Measure the wireless network signal strength parameters of the target IoT terminal during the process of accessing the network transmission layer using a spectrum analyzer, and generate real-time wireless network signal strength data U for the IoT terminal, where the unit of U is decibels and milliwatts.
[0017] The network packet loss tester measures the data packet loss rate parameter of the target IoT terminal during the wireless network data transmission process when accessing the network transport layer, and generates real-time wireless network data packet loss rate V for the IoT terminal.
[0018] Preferably, the steps for performing wireless network signal coverage fault analysis and processing during the IoT terminal's access to the network transmission layer, based on the real-time wireless network signal strength data of the IoT terminal and the normal wireless network signal strength range of the IoT terminal, to generate IoT terminal wireless network signal coverage fault analysis data are as follows:
[0019] S21. Establish a normal wireless network signal strength range A = [a1, a2] for IoT terminals, where a1 and a2 represent the minimum and maximum normal wireless network signal strength of IoT terminals in the range A, respectively. The normal wireless network signal strength range represents the range of wireless network signal strength parameters during the process of the target IoT terminal accessing the network transmission layer under normal conditions. The units of a1 and a2 are both decibels and milliwatts.
[0020] S22. Using the KD tree nearest neighbor search algorithm, the real-time wireless network signal strength data U of the IoT terminal is compared with the minimum value a1 and the maximum value a2 of the normal wireless network signal strength of the IoT terminal in the normal wireless network signal strength interval A of the IoT terminal. Based on the wireless network signal strength comparison results, IoT terminal wireless network signal coverage fault analysis data Q is generated.
[0021] When U∈A, it means that the wireless network signal strength during the process of the target IoT terminal accessing the network transmission layer meets the standard wireless network signal strength requirements. Then, the output of the IoT terminal wireless network signal coverage fault analysis data Q indicates that the wireless network signal coverage is normal.
[0022] when If the signal strength of the wireless network during the process of the target IoT terminal accessing the network transmission layer does not meet the standard wireless network signal strength requirements, then the output of the IoT terminal wireless network signal coverage fault analysis data Q is an abnormal wireless network signal coverage.
[0023] Preferably, the steps for identifying wireless network signal interference faults during the IoT terminal's access to the network transmission layer, based on the real-time wireless network data packet loss rate of the IoT terminal and the normal wireless network data packet loss rate range of the IoT terminal, are as follows:
[0024] S31. Establish the normal wireless network data packet loss rate interval B = [b1, b2] for IoT terminals, where b1 and b2 represent the minimum and maximum values of the normal wireless network data packet loss rate of IoT terminals in the normal wireless network data packet loss rate interval B, respectively. The normal wireless network data packet loss rate interval of IoT terminals represents the range of values of the wireless network data transmission packet loss rate parameter during the process of accessing the network transmission layer under normal conditions of the target IoT terminal.
[0025] S32. Using the KD tree nearest neighbor search algorithm, the real-time wireless network data packet loss rate data V of the IoT terminal is compared with the minimum value b1 and the maximum value b2 of the normal wireless network data packet loss rate of the IoT terminal in the normal wireless network data packet loss rate interval B. Based on the comparison result of the wireless network data packet loss rate, IoT terminal wireless network signal interference fault identification data W is generated.
[0026] When V∈B, it means that the packet loss rate of wireless network data transmission during the process of the target IoT terminal accessing the network transmission layer meets the requirements of normal wireless network data transmission packet loss rate. Then, the output of the IoT terminal wireless network signal interference fault identification data W indicates that there is no wireless network signal interference fault.
[0027] when If the packet loss rate of wireless network data transmission during the access of the target IoT terminal to the network transmission layer does not meet the requirements of normal wireless network data transmission packet loss rate, then the IoT terminal wireless network signal interference fault identification data W is output as indicating the presence of wireless network signal interference fault.
[0028] Preferably, the steps for constructing IoT terminal wireless network connection fault diagnosis data based on the IoT terminal wireless network signal coverage fault analysis data and the IoT terminal wireless network signal interference fault identification data are as follows:
[0029] S41. Based on the keywords of the wireless network signal coverage fault analysis results corresponding to the IoT terminal wireless network signal coverage fault analysis data Q and the keywords of the wireless network signal interference fault identification results corresponding to the IoT terminal wireless network signal interference fault identification data W, perform wireless network connection fault judgment processing during the IoT terminal access network transmission layer process, and construct IoT terminal wireless network connection fault diagnosis data L.
[0030] When the IoT terminal wireless network signal coverage fault analysis data Q indicates abnormal wireless network signal coverage or the IoT terminal wireless network signal interference fault identification data W indicates the presence of wireless network signal interference fault, it indicates that there is a wireless network connection fault during the IoT terminal's access to the network transmission layer. In this case, the IoT terminal wireless network connection fault diagnosis data L is output as indicating the presence of a wireless network connection fault.
[0031] When the IoT terminal wireless network signal coverage fault analysis data Q indicates normal wireless network signal coverage and the IoT terminal wireless network signal interference fault identification data W indicates no wireless network signal interference fault, it means that there is no wireless network connection fault during the IoT terminal's access to the network transmission layer. In this case, the IoT terminal wireless network connection fault diagnosis data L is output as "No wireless network connection fault".
[0032] Preferably, the steps for collecting real-time protocol interaction log feature text data of IoT terminals and performing wireless network protocol interaction fault diagnosis processing on IoT terminal access network transport layer with IoT terminal protocol interaction anomaly log feature text data to generate IoT terminal network protocol interaction fault diagnosis data are as follows:
[0033] S51. Collect network protocol interaction log text information generated during the wireless network protocol interaction process of the target IoT terminal accessing the network transmission layer through the IoT gateway, and generate IoT terminal real-time protocol interaction log feature text data P.
[0034] S52. Establish a feature text data set C = (c1, ..., c1) for IoT terminal protocol interaction anomaly logs. m ,…,c θ ), m=1,2,3,…,θ; where c mThis represents the IoT terminal protocol interaction anomaly log feature text data corresponding to the m-th type of wireless network protocol interaction failure, where θ represents the maximum number of wireless network protocol interaction failure types. These wireless network protocol interaction failure types include TCP wireless network protocol connection failure, UDP wireless network protocol connection failure, MQTT wireless network protocol connection failure, and CoAP wireless network protocol connection failure. The IoT terminal protocol interaction anomaly log feature text data represents the network protocol interaction log text information generated when a fault occurs during the wireless network protocol interaction process in the process of the target IoT terminal accessing the network transport layer.
[0035] S53. The IoT terminal real-time protocol interaction log feature text data P is compared with the IoT terminal protocol interaction abnormal log feature text data c in the IoT terminal protocol interaction abnormal log feature text data set C. m Perform keyword matching on IoT terminal network protocol interaction logs, and generate IoT terminal network protocol interaction fault diagnosis data C based on the keyword matching results. jieguo Execute the generation of the IoT terminal network protocol interaction fault diagnosis data C jieguo The specific operating steps are as follows:
[0036] S531, Propagation: The IoT terminal protocol interaction anomaly log feature text data c in the search space of the IoT terminal protocol interaction anomaly log feature text data set C. m Synchronization is set to water ripples, and each IoT terminal protocol interaction abnormal log feature text data c m If a water wave is considered an independent entity, then the characteristic text data c of each IoT terminal protocol interaction anomaly log... m Water waves will have three attributes: position, wavelength Ξ, and wave height ζ;
[0037] In each iteration, each IoT terminal protocol interaction anomaly log feature text data c m Water waves will propagate through the search space of the IoT terminal protocol interaction anomaly log feature text data set C. m Perform a search, and simultaneously analyze the characteristic text data c of the IoT terminal protocol interaction anomaly log. m The wave height ζ of the water wave will decrease by 1, and its position update formula is as follows: in This represents the text data c representing the characteristics of the IoT terminal protocol interaction anomaly log after the t-th iteration in the propagation phase. m The position of water wave i in the search space of the feature text data set C of the abnormal log of the IoT terminal protocol; This represents the textual data c representing the characteristics of the IoT terminal protocol interaction anomaly log before the t-th iteration in the propagation phase. m The position of water wave i in the search space of the IoT terminal protocol interaction abnormal log feature text data set C; σ and ω are the upper and lower bounds in the search space of the IoT terminal protocol interaction abnormal log feature text data set C, respectively; rand(-1,1) represents a random function with the value (-1,1).
[0038] S532, Refraction: In the IoT terminal protocol interaction abnormal log feature text data c m After the water waves propagate, the IoT terminal protocol interaction anomaly log feature text data c m Water wave refraction and the search space of the IoT terminal protocol interaction anomaly log feature text data set C in the search space of the IoT terminal protocol interaction anomaly log feature text data c m For each transmission, the IoT terminal protocol interaction anomaly log feature text data c is used for identification. m The wave height ζ of the water wave decreases by 1. When ζ decreases to 0, the water wave will refract, and its wave height and wavelength will change. The refracted position is normally distributed in the text data c of the abnormal log interaction characteristics of the current IoT terminal protocol. m Water wave and optimal IoT terminal protocol interaction anomaly log feature text data c m The midpoint of the water wave is the mean, and the current IoT terminal protocol interaction abnormal log feature text data c m Water wave and optimal IoT terminal protocol interaction abnormal log feature text data c m The location of the water wave distance as variance, after refraction, is the characteristic text data c of the IoT terminal protocol interaction anomaly log. m The wave height will be reinitialized to the maximum wave height ζ = ζ max After refraction, the characteristic text data c of the IoT terminal protocol interaction anomaly log is recalculated. m The wavelength Ξ of water waves;
[0039] S533, Broken Waves: The characteristic text data of the IoT terminal protocol interaction anomaly log c m After propagating through the search space of the IoT terminal protocol interaction anomaly log feature text data set C, the water wave reaches a better-than-current optimal set of IoT terminal protocol interaction anomaly log feature text data c. m The location of the water wave is determined by searching the search space of the IoT terminal protocol interaction anomaly log feature text data set C to find the IoT terminal protocol interaction anomaly log feature text data c that matches the IoT terminal real-time protocol interaction log feature text data P.m The location of the IoT terminal protocol interaction anomaly log feature text data c m The water waves will break up and generate the current optimal IoT terminal protocol interaction anomaly log feature text data c. m The water wave propagates to the location where the ripples are generated, and then outputs the IoT terminal protocol interaction anomaly log feature text data c that best matches the IoT terminal real-time protocol interaction log feature text data P. m The location of the wave breakers is determined by the following formula: in This represents the text data c representing the characteristics of the IoT terminal protocol interaction anomaly log before the t-th iteration in the wave fragmentation phase. m The position of wave i in the search space of the feature text data set C of the IoT terminal protocol interaction anomaly log, rand(0,1) represents a random function taking the value (0,1), 1 to 0 represent the spatial dimension number randomly selected for each wave break, r represents the specific spatial dimension actually randomly selected for each wave break, and r1 to r o The specific spatial dimension parameter randomly selected for each wave fragmentation is Γ, which is a constant.
[0040] S534. In step S533, during the "shattering wave" stage, the IoT terminal protocol interaction anomaly log feature text data c that best matches the IoT terminal real-time protocol interaction log feature text data P is searched within the search space of the IoT terminal protocol interaction anomaly log feature text data set C. m ;
[0041] S535. Based on the IoT terminal real-time protocol interaction log feature text data P and the IoT terminal protocol interaction abnormal log feature text data c described in step S534. m Generate IoT terminal network protocol interaction fault diagnosis data C by matching keywords in the IoT terminal network protocol interaction logs. jieguo
[0042] When P and c m If keyword matching in the IoT terminal network protocol interaction log is successful, it indicates that the m-th type of wireless network protocol interaction failure has occurred during the wireless network protocol interaction process of the target IoT terminal accessing the network transport layer. Therefore, the IoT terminal network protocol interaction failure diagnosis data C is output. jieguo If a wireless network protocol interaction failure exists, output the characteristic text data c of the IoT terminal protocol interaction anomaly log. m The corresponding wireless network protocol interaction fault type text information;
[0043] When P and c mIf no keywords in the IoT terminal network protocol interaction log are matched successfully, it indicates that no wireless network protocol interaction failure occurred during the target IoT terminal's access to the network transport layer. Therefore, the IoT terminal network protocol interaction fault diagnosis data C is output. jieguo There is no wireless network protocol interaction failure.
[0044] Preferably, the steps for collecting real-time network configuration log feature text data of IoT terminals and performing wireless network configuration fault diagnosis processing on IoT terminal access network transport layer with IoT terminal network configuration anomaly log feature text data to generate IoT terminal network configuration fault diagnosis data are as follows:
[0045] S61. Collect network configuration log text information generated during the wireless network configuration process of the target IoT terminal accessing the network transmission layer through the IoT gateway, and generate real-time network configuration log feature text data Y of the IoT terminal.
[0046] S62. Establish a feature text data set D = (d1, ..., d2) for IoT terminal network configuration anomaly logs. v ,…,d ψ ), v = 1, 2, 3, ..., ψ; where d v The text data represents the IoT terminal network configuration anomaly log feature data corresponding to the vth type of wireless network configuration failure, and ψ represents the maximum number of wireless network configuration failure types. The wireless network configuration failure types include wireless network MTU configuration failure and wireless network MSS configuration failure. The IoT terminal network configuration anomaly log feature data represents the network configuration log text information generated when the target IoT terminal encounters a failure during the wireless network configuration process in the process of accessing the network transport layer.
[0047] S63. Using the Rabin-Karp search algorithm, the IoT terminal real-time network configuration log feature text data Y is compared with the IoT terminal network configuration abnormal log feature text data d in the IoT terminal network configuration abnormal log feature text data set D. v Perform keyword matching on IoT terminal network configuration logs, and generate IoT terminal network configuration fault diagnosis data D based on the keyword matching results. jieguo ;
[0048] When Y and d v If keyword matching in the IoT terminal network configuration log is successful, it indicates that the target IoT terminal encountered the v-th type of wireless network configuration failure during the wireless network configuration process when accessing the network transport layer. Therefore, the IoT terminal network configuration failure diagnosis data D is output. jieguoIf a wireless network configuration failure exists, output the characteristic text data d of the IoT terminal network configuration anomaly log. v Corresponding wireless network fault type text information;
[0049] When Y and d v If no keywords in the IoT terminal network configuration log are matched successfully, it indicates that no wireless network configuration failure occurred during the wireless network configuration process when the target IoT terminal accesses the network transport layer. Therefore, the IoT terminal network configuration fault diagnosis data D is output. jieguo There is no wireless network configuration fault.
[0050] Preferably, the steps for constructing the fault location result data of the IoT terminal access network transmission layer and performing the IoT terminal access network transmission layer fault location feedback operation are as follows:
[0051] S71. The IoT terminal wireless network signal coverage fault analysis data Q, the IoT terminal wireless network signal interference fault identification data W, the IoT terminal wireless network connection fault diagnosis data L, and the IoT terminal network protocol interaction fault diagnosis data C are included. jieguo The IoT terminal network configuration fault diagnosis data D jieguo After combining data identifiers, the fault location result data Z of the IoT terminal access network transmission layer is constructed, where Z = (Q, W, L, C). jieguo D jieguo );
[0052] S72. The fault location result data Z of the IoT terminal access network transmission layer is transmitted to the IoT terminal monitoring platform through the IoT communication network, and the IoT terminal access network transmission layer fault location feedback operation is executed.
[0053] A rapid location system for access transmission faults of IoT terminal devices is used to implement the rapid location method for access transmission faults of IoT terminal devices. The system includes an IoT terminal wireless connection diagnosis module, an IoT terminal protocol interaction diagnosis module, and an IoT terminal network configuration diagnosis and diagnosis result feedback module.
[0054] The IoT terminal wireless connection diagnostic module includes an IoT terminal real-time wireless network signal strength parameter acquisition unit, an IoT terminal real-time wireless network data packet loss rate parameter acquisition unit, an IoT terminal normal wireless network signal strength range storage unit, an IoT terminal normal wireless network data packet loss rate range storage unit, an IoT terminal wireless network signal coverage fault analysis unit, an IoT terminal wireless network signal interference fault identification unit, and an IoT terminal wireless connection fault diagnosis unit.
[0055] The IoT terminal real-time wireless network signal strength parameter acquisition unit acquires IoT terminal real-time wireless network signal strength data through a spectrum analyzer; the IoT terminal real-time wireless network data packet loss rate parameter acquisition unit acquires IoT terminal real-time wireless network data packet loss rate data through a network packet loss tester; the IoT terminal normal wireless network signal strength range storage unit stores the IoT terminal normal wireless network signal strength range; the IoT terminal normal wireless network data packet loss rate range storage unit stores the IoT terminal normal wireless network data packet loss rate range; the IoT terminal wireless network signal coverage fault analysis unit performs IoT terminal access network transmission based on the IoT terminal real-time wireless network signal strength data and the IoT terminal normal wireless network signal strength range. The IoT terminal wireless network signal coverage fault analysis and processing unit analyzes and processes wireless network signal coverage faults during the network access transmission layer process, generating IoT terminal wireless network signal interference fault analysis data; the IoT terminal wireless network signal interference fault identification unit analyzes and processes wireless network signal interference faults during the IoT terminal access transmission layer process based on the IoT terminal's real-time wireless network data packet loss rate data and the IoT terminal's normal wireless network data packet loss rate range, generating IoT terminal wireless network signal interference fault identification data; the IoT terminal wireless connection fault diagnosis unit analyzes and processes wireless network connection faults during the IoT terminal access transmission layer process based on the IoT terminal wireless network signal coverage fault analysis data and the IoT terminal wireless network signal interference fault identification data, constructing IoT terminal wireless network connection fault diagnosis data.
[0056] The IoT terminal protocol interaction diagnostic module includes an IoT terminal real-time protocol interaction log feature information acquisition unit, an IoT terminal protocol interaction abnormal log feature information storage unit, and an IoT terminal protocol interaction fault diagnosis unit.
[0057] The IoT terminal real-time protocol interaction log feature information acquisition unit collects IoT terminal real-time protocol interaction log feature text data through the IoT gateway; the IoT terminal protocol interaction abnormal log feature information storage unit stores IoT terminal protocol interaction abnormal log feature text data; the IoT terminal protocol interaction fault diagnosis unit performs wireless network protocol interaction fault diagnosis processing on the IoT terminal access network transmission layer based on the IoT terminal real-time protocol interaction log feature text data and the IoT terminal protocol interaction abnormal log feature text data, and generates IoT terminal network protocol interaction fault diagnosis data.
[0058] The IoT terminal network configuration diagnosis and diagnosis result feedback module includes an IoT terminal real-time network configuration log feature information collection unit, an IoT terminal network configuration abnormal log feature information storage unit, an IoT terminal network configuration fault diagnosis unit, an IoT terminal access network transmission layer fault location result information construction unit, and an IoT terminal access network transmission layer fault location feedback operation execution unit.
[0059] The IoT terminal real-time network configuration log feature information acquisition unit collects IoT terminal real-time network configuration log feature text data through an IoT gateway; the IoT terminal network configuration abnormal log feature information storage unit stores IoT terminal network configuration abnormal log feature text data; the IoT terminal network configuration fault diagnosis unit performs wireless network configuration fault diagnosis processing on the IoT terminal access network transport layer based on the IoT terminal real-time network configuration log feature text data and the IoT terminal network configuration abnormal log feature text data, generating IoT terminal network configuration fault diagnosis data; the IoT terminal access network transport layer fault location result information construction unit constructs IoT terminal access network transport layer fault location result data; the IoT terminal access network transport layer fault location feedback operation execution unit executes IoT terminal access network transport layer fault location feedback operation based on the IoT terminal access network transport layer fault location result data and the IoT terminal monitoring platform.
[0060] (III) Beneficial Effects
[0061] This invention provides a method and system for rapid location of transmission failures in Internet of Things (IoT) terminal devices. It has the following beneficial effects:
[0062] I. Real-time wireless network signal strength and packet loss rate parameters of IoT terminals are dynamically acquired using a spectrum analyzer and a network packet loss tester, providing real data support for scientifically locating wireless network connection faults in IoT terminals. Based on the real-time wireless network signal strength parameters of IoT terminals, combined with intelligent search algorithms and standard-set normal wireless network signal strength ranges, digital detection of wireless network signal coverage faults during IoT terminal access to the network transmission layer is performed, enabling accurate step-by-step identification of wireless network signal coverage faults. Based on the real-time wireless network packet loss rate parameters of IoT terminals, combined with intelligent search algorithms and scientifically preset normal wireless network packet loss rate ranges, precise analysis of wireless network signal interference faults during IoT terminal access to the network transmission layer is performed, enabling refined step-by-step detection of wireless network signal interference faults. Based on the analysis parameters of wireless network signal coverage faults and the identification parameters of wireless network signal interference faults, intelligent diagnosis of wireless network connection faults during IoT terminal access to the network transmission layer is performed. Based on information on wireless network signal coverage faults and interference faults, the wireless network connection faults of IoT terminals accessing the network transmission layer are scientifically diagnosed step-by-step, improving the accuracy of locating transmission faults in IoT terminal access.
[0063] Second, by dynamically collecting real-time protocol interaction log information of IoT terminals through IoT gateways and combining it with intelligent identification algorithms and IoT terminal protocol interaction anomaly log information based on big data storage, accurate analysis of wireless network protocol interaction faults in the IoT terminal access network transmission layer is achieved. This enables accurate diagnosis of network communication faults in the IoT terminal access network transmission layer based on step-by-step accurate diagnosis of wireless connection faults and protocol interaction faults, thereby improving the reliability of IoT terminal access transmission fault location.
[0064] Third, by accurately collecting real-time network configuration log information from IoT terminals through IoT gateways and combining it with intelligent search algorithms and scientifically stored IoT terminal network configuration anomaly log information, fault diagnosis and processing of wireless network configuration at the IoT terminal access network transmission layer are performed. This enables accurate diagnosis of network communication faults at the IoT terminal access network transmission layer based on a step-by-step comprehensive diagnosis of wireless connection faults, protocol interaction faults, and network configuration faults, improving the reliability of IoT terminal access transmission fault location results. Based on the results of wireless connection faults, protocol interaction faults, and network configuration faults at the IoT terminal access network transmission layer, and combined with data processing, fault location result information at the IoT terminal access network transmission layer is scientifically constructed, improving the efficiency of IoT terminal access transmission fault location result feedback. Simultaneously, based on the fault location result information at the IoT terminal access network transmission layer, the IoT terminal monitoring platform autonomously and intuitively executes the IoT terminal access network transmission layer fault location feedback operation, achieving dynamic and visual feedback of IoT terminal access transmission fault location results. Attached Figure Description
[0065] Figure 1 A schematic diagram of the module of the IoT terminal device access transmission fault rapid location system provided by the present invention;
[0066] Figure 2 A flowchart of the method for rapid location of access transmission faults in IoT terminal devices provided by the present invention. Detailed Implementation
[0067] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0068] The following is an embodiment of the method and system for rapid location of transmission faults in IoT terminal devices:
[0069] Example 1:
[0070] Please see Figure 1 - Figure 2 A method for rapid location of transmission faults in IoT terminal devices, comprising the following steps:
[0071] S1. Collect real-time wireless network signal strength data and real-time wireless network data packet loss rate data of IoT terminals;
[0072] S2. Based on the real-time wireless network signal strength data of the IoT terminal and the normal wireless network signal strength range of the IoT terminal, perform wireless network signal coverage fault analysis and processing during the IoT terminal access network transmission layer process, and generate IoT terminal wireless network signal coverage fault analysis data.
[0073] S3. Based on the real-time wireless network data packet loss rate of the IoT terminal and the normal wireless network data packet loss rate range of the IoT terminal, perform wireless network signal interference fault identification processing during the IoT terminal access network transmission layer process, and generate IoT terminal wireless network signal interference fault identification data.
[0074] S4. Based on the analysis data of wireless network signal coverage faults of IoT terminals and the identification data of wireless network signal interference faults of IoT terminals, perform wireless network connection fault diagnosis and processing in the process of IoT terminals accessing the network transmission layer, and construct IoT terminal wireless network connection fault diagnosis data.
[0075] S5. Collect the feature text data of the real-time protocol interaction log of the IoT terminal and perform wireless network protocol interaction fault diagnosis processing of the IoT terminal access network transmission layer with the feature text data of the abnormal protocol interaction log of the IoT terminal, and generate IoT terminal network protocol interaction fault diagnosis data.
[0076] S6. Collect real-time network configuration log feature text data of IoT terminals and perform wireless network configuration fault diagnosis processing of IoT terminal access network transmission layer with IoT terminal network configuration abnormal log feature text data to generate IoT terminal network configuration fault diagnosis data.
[0077] S7. Construct the fault location result data of the IoT terminal access network transmission layer and execute the IoT terminal access network transmission layer fault location feedback operation.
[0078] For further details, please refer to Figure 1 - Figure 2 The steps for collecting real-time wireless network signal strength data and real-time wireless network packet loss rate data of IoT terminals are as follows:
[0079] S11. Measure the wireless network signal strength parameters of the target IoT terminal during the process of accessing the network transmission layer using a spectrum analyzer, and generate real-time wireless network signal strength data U for the IoT terminal, where the unit of U is decibels and milliwatts.
[0080] The network packet loss tester measures the data packet loss rate parameter of the target IoT terminal during the wireless network data transmission process when accessing the network transport layer, and generates real-time wireless network data packet loss rate V for the IoT terminal.
[0081] The steps for analyzing and processing wireless network signal coverage faults during the IoT terminal's access to the network transmission layer, based on real-time wireless network signal strength data of IoT terminals and the normal wireless network signal strength range of IoT terminals, are as follows:
[0082] S21. Establish the normal wireless network signal strength range A = [a1, a2] for IoT terminals, where a1 and a2 represent the minimum and maximum normal wireless network signal strength of IoT terminals in the normal wireless network signal strength range A, respectively. The normal wireless network signal strength range of IoT terminals represents the range of wireless network signal strength parameters during the process of the target IoT terminal accessing the network transmission layer under normal conditions; the units of a1 and a2 are both decibels and milliwatts.
[0083] S22. Using the KD tree nearest neighbor search algorithm, the real-time wireless network signal strength data U of the IoT terminal is compared with the minimum value a1 and the maximum value a2 of the normal wireless network signal strength of the IoT terminal in the normal wireless network signal strength interval A of the IoT terminal. Based on the wireless network signal strength comparison results, the IoT terminal wireless network signal coverage fault analysis data Q is generated.
[0084] When U∈A, it means that the wireless network signal strength during the process of the target IoT terminal accessing the network transmission layer meets the standard wireless network signal strength requirements. Then, the output IoT terminal wireless network signal coverage fault analysis data Q indicates that the wireless network signal coverage is normal.
[0085] when When the signal strength of the wireless network during the process of the target IoT terminal accessing the network transmission layer does not meet the standard wireless network signal strength requirements, the output IoT terminal wireless network signal coverage fault analysis data Q is an abnormal wireless network signal coverage.
[0086] The steps for generating IoT terminal wireless network signal interference fault identification data are as follows: Based on the real-time wireless network data packet loss rate of IoT terminals and the normal wireless network data packet loss rate range of IoT terminals, wireless network signal interference fault identification processing is performed during the IoT terminal access network transmission layer process.
[0087] S31. Establish the normal wireless network data packet loss rate interval B = [b1, b2] for IoT terminals, where b1 and b2 represent the minimum and maximum values of the normal wireless network data packet loss rate of IoT terminals in the normal wireless network data packet loss rate interval B, respectively. The normal wireless network data packet loss rate interval of IoT terminals represents the range of data packet loss rate parameters of wireless network data transmission during the process of accessing the network transmission layer under normal conditions of the target IoT terminal.
[0088] S32. Using the KD tree nearest neighbor search algorithm, the real-time wireless network data packet loss rate data V of the IoT terminal is compared with the minimum value b1 and the maximum value b2 of the normal wireless network data packet loss rate of the IoT terminal in the normal wireless network data packet loss rate interval B. Based on the comparison results of the wireless network data packet loss rate, the IoT terminal wireless network signal interference fault identification data W is generated.
[0089] When V∈B, it means that the packet loss rate of wireless network data transmission during the process of the target IoT terminal accessing the network transmission layer meets the requirements of normal wireless network data transmission packet loss rate. Then the output IoT terminal wireless network signal interference fault identification data W indicates that there is no wireless network signal interference fault.
[0090] when If the packet loss rate of wireless network data transmission during the process of the target IoT terminal accessing the network transmission layer does not meet the requirements of the normal wireless network data transmission packet loss rate, then the output IoT terminal wireless network signal interference fault identification data W indicates that there is a wireless network signal interference fault.
[0091] Based on IoT terminal wireless network signal coverage fault analysis data and IoT terminal wireless network signal interference fault identification data, the operation steps for constructing IoT terminal wireless network connection fault diagnosis data during the IoT terminal access network transmission layer process are as follows:
[0092] S41. Based on the keywords of the wireless network signal coverage fault analysis results corresponding to the IoT terminal wireless network signal coverage fault analysis data Q and the keywords of the wireless network signal interference fault identification results corresponding to the IoT terminal wireless network signal interference fault identification data W, perform wireless network connection fault judgment and processing in the process of IoT terminal accessing the network transmission layer, and construct IoT terminal wireless network connection fault diagnosis data L.
[0093] When the IoT terminal wireless network signal coverage fault analysis data Q indicates abnormal wireless network signal coverage or the IoT terminal wireless network signal interference fault identification data W indicates the presence of wireless network signal interference fault, it indicates that there is a wireless network connection fault during the IoT terminal's access to the network transmission layer. In this case, the IoT terminal wireless network connection fault diagnosis data L is output as indicating the presence of a wireless network connection fault.
[0094] When the IoT terminal wireless network signal coverage fault analysis data Q indicates normal wireless network signal coverage and the IoT terminal wireless network signal interference fault identification data W indicates no wireless network signal interference fault, it means that there is no wireless network connection fault during the IoT terminal's access to the network transmission layer. In this case, the output IoT terminal wireless network connection fault diagnosis data L indicates no wireless network connection fault.
[0095] The IoT terminal's real-time wireless network signal strength parameter acquisition unit and real-time wireless network data packet loss rate parameter acquisition unit work together, using a spectrum analyzer and a network packet loss tester to dynamically acquire the IoT terminal's real-time wireless network signal strength parameters and wireless network data packet loss rate parameters, providing real data support for scientifically locating IoT terminal wireless network connection faults; the IoT terminal wireless network signal coverage fault analysis unit, based on the IoT terminal's real-time wireless network signal strength parameters combined with an intelligent search algorithm and standard-set normal wireless network signal strength ranges for IoT terminals, digitally detects wireless network signal coverage faults during the IoT terminal's access to the network transmission layer, achieving accurate step-by-step identification of IoT terminal wireless network signal coverage faults; IoT terminal wireless network signal interference fault identification unit... The first unit, based on the real-time wireless network data packet loss rate parameters of IoT terminals, combined with intelligent search algorithms and scientifically preset normal wireless network data packet loss rate ranges for IoT terminals, performs precise analysis of wireless network signal interference faults during the IoT terminal access to the network transmission layer, enabling step-by-step refined detection of wireless network signal interference faults during IoT terminal access to the network transmission layer. The second unit, based on IoT terminal wireless network signal coverage fault analysis parameters and IoT terminal wireless network signal interference fault identification parameters, performs intelligent diagnosis of wireless network connection faults during the IoT terminal access to the network transmission layer. It scientifically diagnoses wireless network connection faults during IoT terminal access to the network transmission layer based on wireless network signal coverage and interference fault information, improving the accuracy of IoT terminal access transmission fault location.
[0096] For further details, please refer to Figure 1 - Figure 2 The steps for collecting real-time protocol interaction log feature text data from IoT terminals and performing wireless network protocol interaction fault diagnosis processing on the IoT terminal access network transport layer, and generating IoT terminal network protocol interaction fault diagnosis data, are as follows:
[0097] S51. Collect network protocol interaction log text information generated during the wireless network protocol interaction process of the target IoT terminal accessing the network transmission layer through the IoT gateway, and generate IoT terminal real-time protocol interaction log feature text data P.
[0098] S52. Establish a feature text data set C = (c1, ..., c1) for IoT terminal protocol interaction anomaly logs. m ,…,c θ ), m=1,2,3,…,θ; where c mThis represents the feature text data of the IoT terminal protocol interaction anomaly log corresponding to the m-th type of wireless network protocol interaction failure, where θ represents the maximum number of wireless network protocol interaction failure types. The wireless network protocol interaction failure types include TCP wireless network protocol connection failure, UDP wireless network protocol connection failure, MQTT wireless network protocol connection failure, and CoAP wireless network protocol connection failure. The feature text data of the IoT terminal protocol interaction anomaly log represents the network protocol interaction log text information generated when the wireless network protocol interaction process of the target IoT terminal fails during the access to the network transport layer.
[0099] S53. Combine the IoT terminal real-time protocol interaction log feature text data P with the IoT terminal protocol interaction abnormal log feature text data set C containing the IoT terminal protocol interaction abnormal log feature text data c. m Perform keyword matching on IoT terminal network protocol interaction logs, and generate IoT terminal network protocol interaction fault diagnosis data C based on the keyword matching results. jieguo Execute the generation of IoT terminal network protocol interaction fault diagnosis data C jieguo The specific operating steps are as follows:
[0100] S531, Propagation: This involves searching the space of the IoT terminal protocol interaction anomaly log feature text data set C to find the IoT terminal protocol interaction anomaly log feature text data c. m Synchronization is set to water ripples, and each IoT terminal protocol interaction anomaly log characteristic text data c m If we consider a water wave as an independent entity, then the characteristic text data c of each IoT terminal protocol interaction anomaly log... m Water waves will have three attributes: position, wavelength Ξ, and wave height ζ;
[0101] In each iteration, the characteristic text data c of each IoT terminal protocol interaction anomaly log is... m Water waves will propagate through the search space of the IoT terminal protocol interaction anomaly log feature text data set C. m Perform a search, and simultaneously analyze the characteristic text data of the IoT terminal protocol interaction anomaly log. m The wave height ζ of the water wave will decrease by 1, and its position update formula is as follows:
[0102] in This represents the text data c representing the characteristics of IoT terminal protocol interaction anomaly logs after the t-th iteration in the propagation phase. m The position of water wave i in the search space of the feature text data set C of IoT terminal protocol interaction anomaly logs; This represents the text data c representing the characteristics of IoT terminal protocol interaction anomaly logs before the t-th iteration in the propagation phase. m The position of water wave i in the search space of the IoT terminal protocol interaction abnormal log feature text data set C; σ and ω are the upper and lower bounds in the search space of the IoT terminal protocol interaction abnormal log feature text data set C, respectively; rand(-1,1) represents a random function taking the value (-1,1).
[0103] S532, Refraction: Characteristic text data c in an IoT terminal protocol interaction anomaly log m After the water waves propagate, the IoT terminal protocol interaction anomaly log characteristic text data c m The search space of the text data set C containing the text features of IoT terminal protocol interaction anomaly logs during water wave refraction and interaction. m For identification, each transmission involves identifying the characteristic text data of the IoT terminal protocol interaction anomaly log. m The wave height ζ of the water wave decreases by 1. When ζ decreases to 0, the water wave will refract, and its wave height and wavelength will change. The refracted position is normally distributed in the text data c of the current IoT terminal protocol interaction anomaly log. m Water wave and optimal IoT terminal protocol interaction anomaly log feature text data c m The midpoint of the water wave is the mean; the current IoT terminal protocol interaction anomaly log feature text data c m Water wave and optimal IoT terminal protocol interaction anomaly log feature text data c m The location of the water wave distance as variance, after refraction, is the characteristic text data of the IoT terminal protocol interaction anomaly log. m The wave height will be reinitialized to the maximum wave height ζ = ζ max After refraction, the characteristic text data c of the IoT terminal protocol interaction anomaly log is recalculated. m The wavelength Ξ of water waves;
[0104] S533, Broken Waves: Feature Text Data of IoT Terminal Protocol Interaction Anomaly Logs c m After propagating through the search space of the IoT terminal protocol interaction anomaly log feature text data set C, the water wave reaches a better value than the current optimal IoT terminal protocol interaction anomaly log feature text data c. m The location of the water wave, i.e., searching within the search space of the IoT terminal protocol interaction anomaly log feature text data set C, for the IoT terminal protocol interaction anomaly log feature text data c that matches the IoT terminal real-time protocol interaction log feature text data P. m The location of the IoT terminal protocol interaction anomaly log feature text data cm The water waves will break up and transmit the current optimal IoT terminal protocol interaction anomaly log feature text data c m The water wave propagates to the location where the wave fragments are generated, which is the output of the IoT terminal protocol interaction anomaly log feature text data c that best matches the IoT terminal real-time protocol interaction log feature text data P. m The location of the wave breakers is determined by the following formula: in This represents the text data c representing the characteristics of IoT terminal protocol interaction anomaly logs before the t-th iteration in the wave fragmentation phase. m The position of wave i in the search space of the IoT terminal protocol interaction anomaly log feature text data set C, where rand(0,1) represents a random function taking the value (0,1), 1 to 0 represent the spatial dimension number randomly selected for each wave fragment, and r represents the specific spatial dimension actually randomly selected for each wave fragment, r1 to r o The specific spatial dimension parameter randomly selected for each wave fragmentation is Γ, which is a constant.
[0105] S534. In step S533, during the wave-breaking stage, search the search space of the IoT terminal protocol interaction anomaly log feature text data set C to find the IoT terminal protocol interaction anomaly log feature text data c that best matches the IoT terminal real-time protocol interaction log feature text data P. m ;
[0106] S535. Based on the IoT terminal real-time protocol interaction log feature text data P and the IoT terminal protocol interaction anomaly log feature text data c from step S534. m Generate IoT terminal network protocol interaction fault diagnosis data C by matching keywords in the IoT terminal network protocol interaction logs. jieguo
[0107] When P and c m If keyword matching in the IoT terminal network protocol interaction log is successful, it indicates that the m-th type of wireless network protocol interaction failure has occurred during the wireless network protocol interaction process of the target IoT terminal accessing the network transport layer. Therefore, output IoT terminal network protocol interaction failure diagnosis data C. jieguo This indicates a wireless network protocol interaction failure, and outputs characteristic text data c of the IoT terminal protocol interaction anomaly log. m The corresponding wireless network protocol interaction fault type text information;
[0108] When P and c m If no keywords in the IoT terminal network protocol interaction log are matched, it indicates that no wireless network protocol interaction fault occurred during the target IoT terminal's access to the network transport layer. Therefore, output IoT terminal network protocol interaction fault diagnosis data C.jieguo There is no wireless network protocol interaction failure.
[0109] By employing a real-time protocol interaction log feature information collection unit and an IoT terminal protocol interaction fault diagnosis unit in cooperation, the IoT gateway dynamically collects real-time protocol interaction log information from IoT terminals. This information is then combined with intelligent identification algorithms and IoT terminal protocol interaction anomaly log information based on big data storage to perform precise analysis of wireless network protocol interaction faults in the IoT terminal access network transmission layer. This enables accurate diagnosis of network communication faults in the IoT terminal access network transmission layer based on step-by-step precise diagnosis of wireless connection faults and protocol interaction faults, thereby improving the reliability of IoT terminal access transmission fault location.
[0110] For further details, please refer to Figure 1 - Figure 2 The steps for collecting real-time network configuration log feature text data from IoT terminals and comparing it with IoT terminal network configuration anomaly log feature text data to perform wireless network configuration fault diagnosis processing at the IoT terminal access network transport layer, generating IoT terminal network configuration fault diagnosis data, are as follows:
[0111] S61. Collect network configuration log text information generated during the wireless network configuration process of the target IoT terminal accessing the network transmission layer through the IoT gateway, and generate real-time network configuration log feature text data Y of the IoT terminal.
[0112] S62. Establish a feature text data set D = (d1, ..., d2) for IoT terminal network configuration anomaly logs. v ,…,d ψ ), v = 1, 2, 3, ..., ψ; where d v This represents the IoT terminal network configuration anomaly log feature text data corresponding to the vth type of wireless network configuration failure, where ψ represents the maximum number of wireless network configuration failure types. The wireless network configuration failure types include wireless network MTU configuration failure and wireless network MSS configuration failure. The IoT terminal network configuration anomaly log feature text data represents the network configuration log text information generated when the target IoT terminal encounters a failure during the wireless network configuration process in the process of accessing the network transport layer.
[0113] S63. Using the Rabin-Karp search algorithm, the real-time network configuration log feature text data Y of the IoT terminal is compared with the IoT terminal network configuration anomaly log feature text data d in the IoT terminal network configuration anomaly log feature text data set D. v Perform keyword matching on IoT terminal network configuration logs, and generate IoT terminal network configuration fault diagnosis data D based on the keyword matching results. jieguo ;
[0114] When Y and d v If keyword matching in the IoT terminal network configuration log is successful, it indicates that the target IoT terminal encountered the v-th type of wireless network configuration failure during the wireless network configuration process when accessing the network transport layer. Therefore, output IoT terminal network configuration failure diagnosis data D. jieguo To detect wireless network configuration failures, output characteristic text data d from the IoT terminal network configuration anomaly log. v Corresponding wireless network fault type text information;
[0115] When Y and d v If no keywords in the IoT terminal network configuration log are matched, it indicates that no wireless network configuration failure occurred during the target IoT terminal's access to the network transport layer. Therefore, output IoT terminal network configuration fault diagnosis data D. jieguo There is no wireless network configuration fault.
[0116] The steps for constructing fault location result data for IoT terminal access network transmission layer and executing fault location feedback for IoT terminal access network transmission layer are as follows:
[0117] S71, IoT terminal wireless network signal coverage fault analysis data Q, IoT terminal wireless network signal interference fault identification data W, IoT terminal wireless network connection fault diagnosis data L, IoT terminal network protocol interaction fault diagnosis data C jieguo IoT terminal network configuration fault diagnosis data D jieguo After combining data identifiers, the fault location result data Z of the IoT terminal access network transmission layer is constructed, where Z = (Q, W, L, C). jieguo D jieguo );
[0118] S72. Transmit the fault location result data Z of the IoT terminal access network transmission layer to the IoT terminal monitoring platform through the IoT communication network and execute the IoT terminal access network transmission layer fault location feedback operation.
[0119] The IoT terminal real-time network configuration log feature information collection unit and the IoT terminal network configuration fault diagnosis unit work together to accurately collect real-time network configuration log information from IoT terminals through the IoT gateway. This information is then combined with intelligent search algorithms and scientifically stored IoT terminal network configuration anomaly log information to perform wireless network configuration fault diagnosis at the IoT terminal access network transmission layer. This achieves accurate diagnosis of network communication faults at the IoT terminal access network transmission layer based on a step-by-step, comprehensive diagnosis of wireless connection faults, protocol interaction faults, and network configuration faults, improving the reliability of IoT terminal access transmission fault location results. The IoT terminal access network transmission layer fault location result information construction unit and the IoT terminal access network transmission layer fault location feedback operation execution unit work together to scientifically construct IoT terminal access network transmission layer fault location result information based on the results of wireless connection faults, protocol interaction faults, and network configuration faults at the IoT terminal access network transmission layer, improving the efficiency of IoT terminal access transmission fault location result feedback. Simultaneously, based on the IoT terminal access network transmission layer fault location result information and the IoT terminal monitoring platform, the IoT terminal access network transmission layer fault location feedback operation is executed autonomously and intuitively, achieving dynamic and visual feedback of IoT terminal access transmission fault location results.
[0120] Example 2:
[0121] Please see Figure 1 - Figure 2 A rapid fault location system for IoT terminal device access transmission is used to implement a rapid fault location method for IoT terminal device access transmission. The system includes an IoT terminal wireless connection diagnosis module, an IoT terminal protocol interaction diagnosis module, and an IoT terminal network configuration diagnosis and diagnosis result feedback module.
[0122] The IoT terminal wireless connection diagnostic module includes an IoT terminal real-time wireless network signal strength parameter acquisition unit, an IoT terminal real-time wireless network data packet loss rate parameter acquisition unit, an IoT terminal normal wireless network signal strength range storage unit, an IoT terminal normal wireless network data packet loss rate range storage unit, an IoT terminal wireless network signal coverage fault analysis unit, an IoT terminal wireless network signal interference fault identification unit, and an IoT terminal wireless connection fault diagnosis unit.
[0123] The system includes: a real-time wireless network signal strength parameter acquisition unit for IoT terminals, which acquires real-time wireless network signal strength data from an IoT terminal using a spectrum analyzer; a real-time wireless network data packet loss rate parameter acquisition unit for IoT terminals, which acquires real-time wireless network data packet loss rate data from an IoT terminal using a network packet loss tester; a normal wireless network signal strength range storage unit for IoT terminals, which stores the normal wireless network signal strength range for IoT terminals; and a normal wireless network data packet loss rate range storage unit for IoT terminals, which stores the normal wireless network data packet loss rate range for IoT terminals. Finally, an IoT terminal wireless network signal coverage fault analysis unit analyzes the IoT terminal's access to the network transmission layer based on the real-time wireless network signal strength data and the normal wireless network signal strength range for IoT terminals. The process includes: wireless network signal coverage fault analysis and processing to generate IoT terminal wireless network signal coverage fault analysis data; IoT terminal wireless network signal interference fault identification unit to identify and process wireless network signal interference faults during IoT terminal access to the network transmission layer based on the real-time wireless network data packet loss rate data and the normal wireless network data packet loss rate range of IoT terminal, generating IoT terminal wireless network signal interference fault identification data; and IoT terminal wireless connection fault diagnosis unit to perform wireless network connection fault diagnosis and processing during IoT terminal access to the network transmission layer based on the IoT terminal wireless network signal coverage fault analysis data and the IoT terminal wireless network signal interference fault identification data, constructing IoT terminal wireless network connection fault diagnosis data.
[0124] The IoT terminal protocol interaction diagnostic module includes an IoT terminal real-time protocol interaction log feature information acquisition unit, an IoT terminal protocol interaction abnormal log feature information storage unit, and an IoT terminal protocol interaction fault diagnosis unit.
[0125] The IoT terminal real-time protocol interaction log feature information acquisition unit collects IoT terminal real-time protocol interaction log feature text data through the IoT gateway; the IoT terminal protocol interaction abnormal log feature information storage unit stores IoT terminal protocol interaction abnormal log feature text data; and the IoT terminal protocol interaction fault diagnosis unit performs wireless network protocol interaction fault diagnosis processing on the IoT terminal access network transmission layer based on the IoT terminal real-time protocol interaction log feature text data and the IoT terminal protocol interaction abnormal log feature text data, generating IoT terminal network protocol interaction fault diagnosis data.
[0126] The IoT terminal network configuration diagnosis and diagnosis result feedback module includes an IoT terminal real-time network configuration log feature information collection unit, an IoT terminal network configuration abnormal log feature information storage unit, an IoT terminal network configuration fault diagnosis unit, an IoT terminal access network transmission layer fault location result information construction unit, and an IoT terminal access network transmission layer fault location feedback operation execution unit.
[0127] The system comprises the following components: a real-time network configuration log feature information acquisition unit for IoT terminals, which collects feature text data of real-time network configuration logs from IoT terminals via an IoT gateway; an IoT terminal network configuration anomaly log feature information storage unit, which stores feature text data of abnormal network configuration logs from IoT terminals; an IoT terminal network configuration fault diagnosis unit, which performs wireless network configuration fault diagnosis processing on the IoT terminal access network transport layer based on the feature text data of real-time network configuration logs and the feature text data of abnormal network configuration logs from IoT terminals, generating IoT terminal network configuration fault diagnosis data; an IoT terminal access network transport layer fault location result information construction unit, which constructs IoT terminal access network transport layer fault location result data; and an IoT terminal access network transport layer fault location feedback operation execution unit, which executes IoT terminal access network transport layer fault location feedback operations based on the IoT terminal access network transport layer fault location result data and the IoT terminal monitoring platform.
[0128] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for rapid location of transmission faults in Internet of Things (IoT) terminal devices, characterized in that, The method includes the following steps: S1. Collect real-time wireless network signal strength data and real-time wireless network data packet loss rate data of IoT terminals; S1 includes the following steps: S11. Measure the wireless network signal strength parameters of the target IoT terminal during the process of accessing the network transmission layer using a spectrum analyzer, and generate real-time wireless network signal strength data U for the IoT terminal, where the unit of U is decibels and milliwatts. The network packet loss tester measures the data packet loss rate parameter of wireless network data transmission during the process of the target IoT terminal accessing the network transmission layer online, and generates real-time wireless network data packet loss rate V of the IoT terminal. S2. Perform wireless network signal coverage fault analysis and processing during the process of IoT terminal accessing the network transmission layer, and generate IoT terminal wireless network signal coverage fault analysis data. S2 includes the following steps: S21. Establish the normal wireless network signal strength range A = [a1, a2] for IoT terminals, where a1 and a2 represent the minimum and maximum normal wireless network signal strength of IoT terminals in the range A, respectively; the units of a1 and a2 are both decibels and milliwatts. S22. Using the KD tree nearest neighbor search algorithm, the wireless network signal strength values of U and a1 and a2 in A are compared. Based on the wireless network signal strength value comparison results, IoT terminal wireless network signal coverage fault analysis data Q is generated. When U∈A, the output Q indicates that the wireless network signal coverage is normal; when If the Q value is not found, then the output will indicate that the wireless network signal coverage is abnormal. S3. Perform wireless network signal interference fault identification and processing during the IoT terminal access network transmission layer process, and generate IoT terminal wireless network signal interference fault identification data. S4. Perform wireless network connection fault diagnosis and processing during the process of IoT terminal accessing the network transmission layer, and construct IoT terminal wireless network connection fault diagnosis data. S5. Collect feature text data of real-time protocol interaction logs of IoT terminals, perform wireless network protocol interaction fault diagnosis and processing of IoT terminal access network transmission layer, and generate IoT terminal network protocol interaction fault diagnosis data. S6. Collect real-time network configuration log feature text data of IoT terminals, perform wireless network configuration fault diagnosis processing of IoT terminal access network transmission layer, and generate IoT terminal network configuration fault diagnosis data. S7. Construct the fault location result data of the IoT terminal access network transmission layer and execute the IoT terminal access network transmission layer fault location feedback operation. S7 includes the following steps: S71, Q, W, L, C jieguo D jieguo After combining data identifiers, the fault location result data Z of the Internet of Things terminal access network transmission layer is constructed; Where W represents IoT terminal wireless network signal interference fault identification data, L represents IoT terminal wireless network connection fault diagnosis data, and C... jieguo D represents fault diagnosis data from IoT terminal network protocol interaction. jieguo This indicates fault diagnosis data for IoT terminal network configuration; S72. Transmit the Z to the IoT terminal monitoring platform through the IoT communication network and perform the IoT terminal access network transmission layer fault location feedback operation.
2. The method for rapid location of access transmission faults in IoT terminal devices according to claim 1, characterized in that: S3 includes the following steps: S31. Establish the normal wireless network data packet loss rate interval B = [b1, b2] for IoT terminals, where b1 and b2 represent the minimum and maximum normal wireless network data packet loss rates of IoT terminals in the normal wireless network data packet loss rate interval B, respectively. S32. Using the KD tree nearest neighbor search algorithm, the wireless network data packet loss rate of V is compared with that of b1 and b2 in B. Based on the comparison result of the wireless network data packet loss rate, IoT terminal wireless network signal interference fault identification data W is generated. When V∈B, the output W indicates that there is no wireless network signal interference fault. when If the above condition is met, then the output W indicates a wireless network signal interference fault.
3. The method for rapid location of access transmission faults in IoT terminal devices according to claim 2, characterized in that: S4 includes the following steps: S41. Based on the wireless network signal coverage fault analysis result keywords corresponding to Q and the wireless network signal interference fault identification result keywords corresponding to W, perform wireless network connection fault judgment and processing during the IoT terminal access network transmission layer process, and construct IoT terminal wireless network connection fault diagnosis data L. When Q indicates abnormal wireless network signal coverage or W indicates wireless network signal interference, L is output as indicating a wireless network connection failure. When Q indicates normal wireless network signal coverage and W indicates no wireless network signal interference fault, then L is output as indicating no wireless network connection fault.
4. The method for rapid location of access transmission faults in IoT terminal devices according to claim 3, characterized in that: S5 includes the following steps: S51. Collect network protocol interaction log text information generated during the wireless network protocol interaction process of the target IoT terminal accessing the network transmission layer through the IoT gateway, and generate IoT terminal real-time protocol interaction log feature text data P. S52. Establish a set of feature text data for IoT terminal protocol interaction anomaly logs. Where c m This represents the feature text data of the IoT terminal protocol interaction anomaly log corresponding to the m-th type of wireless network protocol interaction failure. This represents the maximum number of wireless network protocol interaction failure types. S53, Connect the P with the c in the C. m Perform keyword matching on IoT terminal network protocol interaction logs, and generate IoT terminal network protocol interaction fault diagnosis data C based on the keyword matching results. jieguo Execute the generation of the IoT terminal network protocol interaction fault diagnosis data C jieguo The specific operating steps are as follows: S531, Propagation: The c in the search space of C... m Synchronization is set to water waves, each of the c m If a water wave is considered an independent entity, then each of the aforementioned c... m Water waves will have three attributes: position, wavelength Ξ, and wave height ζ; In each iteration, each of the c m Water waves will propagate through the search space of C, affecting the c in the search space. m Perform a search, while the c m The wave height ζ of the water wave will decrease by 1; S532, Refraction: In one of the aforementioned c m After the water waves propagate, the c m Water waves refract and search space of c for C. m During identification, each propagation, the c m The wave height ζ of the water wave decreases by 1. When ζ decreases to 0, the water wave will refract, and its wave height and wavelength will change. The refracted position is normally distributed in the area described above. m Water waves and the optimal c m The midpoint of the water wave is the mean, and the current c is... m Water waves and the optimal c m The water wave distance is the position of variance, as stated by c after refraction. m The wave height will be reinitialized to the maximum wave height ζ = ζ max After refraction, the c is recalculated. m The wavelength Ξ of water waves; S533, Broken Waves: The aforementioned c m After propagating in the search space of C, the water wave reaches a point better than the current optimal C. m When determining the position of the water wave, search the search space of C for the c that matches P. m The position of c, then m The water waves will break up and then the current optimal c will be broken up. m When the water wave propagates to the location where the ripples are generated, the output c is the one that best matches P. m The location of the broken waves; S534, Output step S533: In the wave-breaking stage, search the search space of C to find the c that best matches P. m ; S535, Based on P and c described in step S534 m Generate IoT terminal network protocol interaction fault diagnosis data C by matching keywords in the IoT terminal network protocol interaction logs. jieguo When P and c m If keyword matching of the IoT terminal network protocol interaction log is successful, then output the C. jieguo If there is a wireless network protocol interaction failure, the c output will be sent. m The corresponding wireless network protocol interaction fault type text information; When P and c m If none of the keywords in the IoT terminal network protocol interaction log are matched successfully, then output the C. jieguo There is no wireless network protocol interaction failure.
5. The method for rapid location of access transmission faults in IoT terminal devices according to claim 4, characterized in that: S6 includes the following steps: S61. Collect network configuration log text information generated during the wireless network configuration process of the target IoT terminal accessing the network transmission layer through the IoT gateway, and generate real-time network configuration log feature text data Y of the IoT terminal. S62. Establish a feature text data set D = (d1, ..., d2) for IoT terminal network configuration anomaly logs. v ,…,d ψ ), v = 1, 2, 3, ..., ψ; where d v This represents the feature text data of the IoT terminal network configuration anomaly log corresponding to the vth type of wireless network configuration failure, and ψ represents the maximum number of wireless network configuration failure types. S63. Use the Rabin-Karp search algorithm to compare the Y with the d in the D. v Perform keyword matching on IoT terminal network configuration logs, and generate IoT terminal network configuration fault diagnosis data D based on the keyword matching results. jieguo ; When Y and d v If the keyword matching in the IoT terminal network configuration log is successful, then output the D. jieguo If a wireless network configuration failure exists, the d value will be output. v Corresponding wireless network fault type text information; When Y and d v If none of the keywords in the IoT terminal network configuration log are matched, then output the D. jieguo There is no wireless network configuration fault.
6. A rapid fault location system for IoT terminal device access transmission, used to implement the rapid fault location method for IoT terminal device access transmission as described in any one of claims 1-5, characterized in that: The system includes an IoT terminal wireless connection diagnostic module, an IoT terminal protocol interaction diagnostic module, and an IoT terminal network configuration diagnostic and diagnostic result feedback module.
Citation Information
Patent Citations
Fault detection and positioning method, device and system for network equipment
CN117880070A
Self-organizing network test system calibration method and device
CN115225541A
Intelligent fault diagnosis method and system for Internet of Things terminal
CN115580635A