A stability security testing method for the Internet of Things
By establishing a stability security test area and security database in the Internet of Things system and detecting faults regularly, the fault detection problems in the Internet of Things system are solved, and the stable and safe operation of the system is achieved.
Patent Information
- Application Number
- CN202210042563.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2025-01-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
As long as an error occurs in one link in the Internet of Things during information collection, transmission and processing, it may cause the entire system to collapse and lack effective stability and security testing methods.
Provide a IoT stability security testing method, by establishing a stability security testing area, building a security database, conducting regular fault testing, detecting faults in data acquisition terminals, information transmission modules and memory, using standard parameters and thresholds to judge faults, and in a timely manner Send fault information to staff.
Ensure that the failures of the Internet of Things system can be discovered and resolved in a timely manner, and ensure the stable and safe operation of the system.
Smart Images

Figure CN114490153B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a stability safety testing method for Internet of Things. Background Art
[0002] The Internet of Things (IoT) refers to the use of various information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners and other devices and technologies to collect any objects or processes that need to be monitored, connected, and interacted in real time, and to collect various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, and location. Through various possible network accesses, it realizes ubiquitous connection between objects and objects and between objects and people, and realizes intelligent perception, identification and management of objects and processes. The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc. It allows all ordinary physical objects that can be independently addressed to form an interconnected network.
[0003] The stability and security of the Internet of Things are the basis for its operation. However, during the operation of the Internet of Things, from the information collection end, information transmission end, and information processing end, as long as an error occurs in one link, it may cause the collapse of the entire Internet of Things. Therefore, a stability and security testing method for the Internet of Things is urgently needed. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a comprehensive Internet of Things stability security testing method.
[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0006] A method for testing the stability and safety of an Internet of Things is provided, which comprises the following steps:
[0007] S1: Establish a stability and safety test area based on the devices included in the IoT area, so that the IoT signal transmission forms a closed loop;
[0008] Build a security database, which contains standard parameters of the equipment when it is operating normally. The standard parameters include: standard power consumption of the data acquisition terminal, standard data collected by the data acquisition terminal, and the packet loss rate threshold when the information transmission module transmits signals;
[0009] S2: The IoT performs a fault test every time T, which is longer than the time required for the data collection terminal to collect a round of data, to ensure that each stability and safety test is a complete data collection, transmission and processing process;
[0010] S3; when a fault is detected, execute the fault test program and enter step S4, otherwise return to step S2;
[0011] S4: number each data collection terminal in the Internet of Things from 1 to n, control each data collection terminal to collect test data once, and form a test data group (A1, A2, . . . , An), where n is the number of associated data collection terminals in the Internet of Things;
[0012] S5: Collect the power consumed by each data collection terminal when collecting test data to form a test power consumption data group (D1, D2, . . . , Dn);
[0013] S6: using the test data group (A1, A2, .. . , An) and the test power consumption data group (D1, D2, .. . , Dn), respectively, to compare with the standard power consumption and standard collection data in the security database, to determine whether the data collection terminal has a fault; if so, sending a message that the data collection terminal has a fault to the staff; otherwise, determining that the data collection terminal has no fault, executing step S7;
[0014] S7: Use the test port to send a signal with a test tag to the signal processing terminal through the information transmission module, and calculate the packet loss rate P during the signal transmission process. E ; Set the packet loss rate P E Compared with the packet loss rate threshold, if the packet loss rate P E >packet loss rate threshold, it is determined that a network failure occurs between the information transmission module and the signal processing terminal, and a network failure message is sent to the staff; otherwise, step S8 is executed;
[0015] S8: extract the memory capacity of the signal processing terminal in the Internet of Things, traverse the test data group (A1, A2, ···, An), extract the data with the smallest amount of information in the test data group (A1, A2, ···, An), store the data with the smallest amount of information in the memory, if the data with the smallest amount of information is lost, it is determined that the memory is faulty, and a message that the memory is too small is sent to the staff; otherwise, it is determined that the entire Internet of Things is operating normally.
[0016] Further, step S6 includes:
[0017] S61: Retrieve standard acquisition data of the data acquisition terminal in the security database, and compare each test data in the test data group (A1, A2, . . . , An) with the corresponding standard acquisition data;
[0018] S62: If there is an error between the test data An and the corresponding standard test data, execute step S7; otherwise, determine that all data acquisition terminals are normal;
[0019] S63: according to the number of the data collection terminal where the error occurs, retrieve the power consumption data Dn of the corresponding data collection terminal in the test power consumption data group (D1, D2, . . . , Dn);
[0020] S64: Compare the power consumption data Dn with the corresponding standard power consumption stored in the database. If there is an error between the power consumption data Dn and the standard power consumption, it is determined that the data acquisition terminal has a fault, and a message indicating that the data acquisition terminal with the number has a fault is sent to the staff; otherwise, the data acquisition terminal has not a fault, and step S7 is executed.
[0021] Further, step S7 includes:
[0022] S71: Sending a signal G with a test tag to the signal processing terminal via the information transmission module using the test port;
[0023] S72: The signal processing terminal receives the signal G with the test tag, parses the signal to form a signal B, and returns it to the test port. The test port parses the signal B to form a signal C.
[0024] S73: Calculate the probability r that the test port sends signal G to the signal processing terminal to form signal B, then the packet loss rate from signal G to signal B is: 1-r;
[0025] S74: Calculate the probability p that the signal processing terminal sends signal B to the test port to form signal C, then the packet loss rate from signal B to signal C is: 1-p;
[0026] S75: Calculate the packet loss rate between the information transmission module and the signal processing terminal using the packet loss rate 1-r and the packet loss rate 1-p: P E =1-r / (p+r);
[0027] S76: Set the packet loss rate P E Compared with the packet loss rate threshold in the security database, if the packet loss rate P E >packet loss rate threshold, it is determined that a network failure occurs between the information transmission module and the signal processing terminal, and a network failure message is sent to the staff; otherwise, step S8 is executed.
[0028] Further, step S8 includes:
[0029] S81: extracting the remaining storage space in the memory for storing the data collected by the data collection terminal;
[0030] S82: According to the number n of data collection terminals, the remaining storage space is evenly divided into n sub-storage spaces;
[0031] S83: traverse the information amount of all test data in the test data group (A1, A2, .. . , An), and extract the data with the minimum information amount;
[0032] S84: Store the data with the largest amount of information in one of the storage spaces. If the data with the largest amount of information is not lost, it is determined that the remaining storage space can store the data in the test data group; otherwise, it is determined that the remaining storage space is insufficient, and a message is sent to the staff that the storage capacity is too small and the storage capacity needs to be expanded.
[0033] The beneficial effects of the present invention are as follows: starting from the data acquisition terminal of the Internet of Things, the present invention sequentially screens the faults of the data acquisition terminal, the faults of the information transmission module, and the faults of the memory, starting from the source of data acquisition, judging whether a fault occurs by the power consumption of the data acquisition terminal, judging whether the information transmission module fails by the packet loss rate of the information transmission module transmission signal, and finally judging whether the collected data can be completely saved by the remaining storage space of the memory. It ensures that the faults of the Internet of Things can be discovered in time, and that the Internet of Things can operate stably and safely. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Flowchart of the IoT stability security testing method. DETAILED DESCRIPTION
[0035] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0036] like Figure 1 As shown, the IoT stability security testing method of this solution includes the following steps:
[0037] S1: Establish a stability and safety test area based on the devices included in the IoT area. Different IoTs contain different structures and devices. The IoT signal transmission closed loop is used as a stability and safety test area.
[0038] Build a security database, which contains standard parameters for normal operation of the equipment. The standard parameters include: standard power consumption of the data acquisition terminal, standard acquisition data of the data acquisition terminal, and packet loss rate threshold when the information transmission module transmits signals; provide data support for stability and security testing.
[0039] S2: The IoT performs a fault test every time T, which is longer than the time required for the data collection terminal to collect a round of data, to ensure that each stability and safety test is a complete data collection, transmission and processing process;
[0040] S3; when a fault is detected, execute the fault test program and enter step S4, otherwise return to step S2;
[0041] S4: number each data collection terminal in the Internet of Things from 1 to n, control each data collection terminal to collect test data once, and form a test data group (A1, A2, . . . , An), where n is the number of associated data collection terminals in the Internet of Things;
[0042] S5: Collect the power consumed by each data collection terminal when collecting test data to form a test power consumption data group (D1, D2, . . . , Dn);
[0043] S6: using the test data group (A1, A2, .. . , An) and the test power consumption data group (D1, D2, .. . , Dn), respectively, to compare with the standard power consumption and standard collection data in the security database, to determine whether the data collection terminal has a fault; if so, sending a message that the data collection terminal has a fault to the staff; otherwise, determining that the data collection terminal has no fault, executing step S7;
[0044] The steps specifically include S6 comprising:
[0045] S61: Retrieve standard acquisition data of the data acquisition terminal in the security database, and compare each test data in the test data group (A1, A2, . . . , An) with the corresponding standard acquisition data;
[0046] S62: If there is an error between the test data An and the corresponding standard test data, execute step S7; otherwise, determine that all data acquisition terminals are normal;
[0047] S63: according to the number of the data collection terminal where the error occurs, retrieve the power consumption data Dn of the corresponding data collection terminal in the test power consumption data group (D1, D2, . . . , Dn);
[0048] S64: Compare the power consumption data Dn with the corresponding standard power consumption stored in the database. If there is an error between the power consumption data Dn and the standard power consumption, it is determined that the data acquisition terminal has a fault, and a message indicating that the data acquisition terminal with the number has a fault is sent to the staff; otherwise, the data acquisition terminal has not a fault, and step S7 is executed.
[0049] S7: Use the test port to send a signal with a test tag to the signal processing terminal through the information transmission module, and calculate the packet loss rate P during the signal transmission process. E ; Set the packet loss rate P E Compared with the packet loss rate threshold, if the packet loss rate P E >packet loss rate threshold, it is determined that a network failure occurs between the information transmission module and the signal processing terminal, and a network failure message is sent to the staff; otherwise, step S8 is executed;
[0050] The steps specifically include S7 including:
[0051] S71: Sending a signal G with a test tag to the signal processing terminal via the information transmission module using the test port;
[0052] S72: The signal processing terminal receives the signal G with the test tag, parses the signal to form a signal B, and returns it to the test port. The test port parses the signal B to form a signal C.
[0053] S73: Calculate the probability r that the test port sends signal G to the signal processing terminal to form signal B, then the packet loss rate from signal G to signal B is: 1-r;
[0054] S74: Calculate the probability p that the signal processing terminal sends signal B to the test port to form signal C, then the packet loss rate from signal B to signal C is: 1-p;
[0055] S75: Calculate the packet loss rate between the information transmission module and the signal processing terminal using the packet loss rate 1-r and the packet loss rate 1-p: P E =1-r / (p+r);
[0056] S76: Set the packet loss rate P E Compared with the packet loss rate threshold in the security database, if the packet loss rate P E >packet loss rate threshold, it is determined that a network failure occurs between the information transmission module and the signal processing terminal, and a network failure message is sent to the staff; otherwise, step S8 is executed.
[0057] S8: Extract the memory capacity of the signal processing terminal in the Internet of Things, traverse the test data group (A1, A2, ···, An), extract the data with the smallest amount of information in the test data group (A1, A2, ···, An), store the data with the smallest amount of information in the memory, if the data with the smallest amount of information is lost, it is determined that the memory is faulty, and a message that the memory is too small is sent to the staff; otherwise, it is determined that the entire Internet of Things is operating normally. Including:
[0058] S81: extracting the remaining storage space in the memory for storing the data collected by the data collection terminal;
[0059] S82: According to the number n of data collection terminals, the remaining storage space is evenly divided into n sub-storage spaces;
[0060] S83: traverse the information amount of all test data in the test data group (A1, A2, .. . , An), and extract the data with the minimum information amount;
[0061] S84: Store the data with the largest amount of information in one of the storage spaces. If the data with the largest amount of information is not lost, it is determined that the remaining storage space can store the data in the test data group; otherwise, it is determined that the remaining storage space is insufficient, and a message is sent to the staff that the storage capacity is too small and the storage capacity needs to be expanded.
[0062] The present invention starts from the data acquisition terminal of the Internet of Things, and sequentially screens the faults of the data acquisition terminal, the faults of the information transmission module, and the faults of the memory. It starts from the source of data acquisition, and judges whether a fault occurs by the power consumption of the data acquisition terminal, and then judges whether the information transmission module fails by the packet loss rate of the information transmission module transmission signal, and finally judges whether the collected data can be completely saved by the remaining storage space of the memory. It ensures that the faults of the Internet of Things can be discovered in time, and ensures that the Internet of Things can operate stably and safely.
Claims
1. A method for stability and security testing of the Internet of Things, characterized in that: The following steps are involved: S1: Establish a stability and safety test area based on the devices included in the IoT area, so that the IoT signal transmission forms a closed loop; Build a security database, which contains standard parameters of the equipment when it is operating normally. The standard parameters include: standard power consumption of the data acquisition terminal, standard data collected by the data acquisition terminal, and the packet loss rate threshold when the information transmission module transmits signals; S2: The IoT performs a fault test every time T, which is longer than the time required for the data collection terminal to collect a round of data, to ensure that each stability and safety test is a complete data collection, transmission and processing process; S3; when a fault is detected, execute the fault test program and enter step S4, otherwise return to step S2; S4: number each data collection terminal in the Internet of Things from 1 to n, control each data collection terminal to collect test data once, and form a test data group (A1, A2, . . . , An), where n is the number of associated data collection terminals in the Internet of Things; S5: Collect the power consumed by each data collection terminal when collecting test data to form a test power consumption data group (D1, D2, . . . , Dn); S6: using the test data group (A1, A2, .. . , An) and the test power consumption data group (D1, D2, .. . , Dn), respectively, to compare with the standard power consumption and standard collection data in the security database, to determine whether the data collection terminal has a fault; if so, sending a message that the data collection terminal has a fault to the staff; otherwise, determining that the data collection terminal has no fault, executing step S7; S7: Use the test port to send a signal with a test tag to the signal processing terminal through the information transmission module, and calculate the packet loss rate P during the signal transmission process. E ; Set the packet loss rate P E Compared with the packet loss rate threshold, if the packet loss rate P E >packet loss rate threshold, it is determined that a network failure occurs between the information transmission module and the signal processing terminal, and a network failure message is sent to the staff; otherwise, step S8 is executed; S8: extract the capacity of the memory of the signal processing terminal in the Internet of Things, traverse the test data group (A1, A2, .. ., An), extract the data with the smallest amount of information in the test data group (A1, A2, .. ., An), store the data with the smallest amount of information in the memory, if the data with the smallest amount of information is lost, it is determined that the memory is faulty, and a message that the memory is too small is sent to the staff; otherwise, it is determined that the entire Internet of Things is operating normally; The step S6 comprises: S61: Retrieve standard acquisition data of the data acquisition terminal in the security database, and compare each test data in the test data group (A1, A2, . . . , An) with the corresponding standard acquisition data; S62: If there is an error between the test data An and the corresponding standard test data, execute step S63; otherwise, determine that all data acquisition terminals are normal; S63: according to the number of the data collection terminal where the error occurs, retrieve the power consumption data Dn of the corresponding data collection terminal in the test power consumption data group (D1, D2, . . . , Dn); S64: Compare the power consumption data Dn with the corresponding standard power consumption stored in the database. If there is an error between the power consumption data Dn and the standard power consumption, it is determined that the data collection terminal has a fault, and a message indicating that the data collection terminal with the number has a fault is sent to the staff; otherwise, the data collection terminal has no fault, and step S7 is executed; The step S7 comprises: S71: Sending a signal G with a test tag to the signal processing terminal via the information transmission module using the test port; S72: The signal processing terminal receives the signal G with the test tag, parses the signal to form a signal B, and returns it to the test port. The test port parses the signal B to form a signal C. S73: Calculate the probability r that the test port sends signal G to the signal processing terminal to form signal B, then the packet loss rate from signal G to signal B is: 1-r; S74: Calculate the probability p that the signal processing terminal sends signal B to the test port to form signal C, then the packet loss rate from signal B to signal C is: 1-p; S75: Calculate the packet loss rate between the information transmission module and the signal processing terminal using the packet loss rate 1-r and the packet loss rate 1-p: P E =1-r / (p+r); S76: Set the packet loss rate P E Compared with the packet loss rate threshold in the security database, if the packet loss rate P E >packet loss rate threshold, it is determined that a network failure occurs between the information transmission module and the signal processing terminal, and a network failure message is sent to the staff; otherwise, step S8 is executed; The step S8 comprises: S81: extracting the remaining storage space in the memory for storing the data collected by the data collection terminal; S82: According to the number n of data collection terminals, the remaining storage space is evenly divided into n sub-storage spaces; S83: traverse the information amount of all test data in the test data group (A1, A2, .. . , An), and extract the data with the minimum information amount; S84: storing the data with the largest amount of information in one of the storage spaces, and if the data with the largest amount of information is not lost, determining that the remaining storage space can store the data in the test data group; Otherwise, it is determined that the remaining storage space is insufficient, and a message is sent to the staff that the storage capacity is too small and the storage capacity needs to be expanded.
Citation Information
Patent Citations
Power fault detection method and system based on Internet of Things
CN112327100A
Power monitoring equipment based on low-power-consumption Internet of Things technology
CN209570208U