A method for monitoring and analyzing Internet of Things communications

By conducting load response and operation risk tests on nodes in the Internet of Things communication system, screening effective nodes, and analyzing communication link quality, the problem of node performance degradation and security threats in multi-level communication systems is solved, and high reliability and high security are achieved. Adapted communication effects.

CN118590410BActive Publication Date: 2024-10-15ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411068286.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-15
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

The existing IoT communication system lacks effective node identification and communication link optimization in the multi-level topology, resulting in reduced node performance, security threats and poor communication quality, and cannot meet the performance requirements of different data types.

Method used

By implementing node load response and operation risk testing on the middleware, effective nodes are screened, communication link quality is analyzed based on historical communication records, adapted communication links are selected, and bottleneck nodes are identified to improve communication quality and efficiency.

Benefits of technology

It improves the security, reliability and adaptability of IoT communications, reduces communication costs, quickly locates and solves bottlenecks, improves communication stability and efficiency, and avoids waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590410B_ABST
    Figure CN118590410B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of communication monitoring, and specifically relates to a communication monitoring and analysis method for the Internet of Things. The present invention endows the middleware with the performance testing capability of the nodes, and utilizes the middleware arranged at each level of the Internet of Things to perform load response and operation risk tests on the nodes introduced at the corresponding level, thereby performing effective node identification according to the test results, greatly eliminating the management limitation of the middleware on the nodes, and being able to provide real-time effective nodes for Internet of Things communications, which is beneficial to ensuring the security and reliability of Internet of Things communications. At the same time, after a communication link is formed based on the identified effective nodes, the communication quality analysis under different data types is performed through the historical communication records associated with the communication link, which can provide an evaluation basis for the preference of the communication link and the data type, and is helpful to select the optimal communication link for the current communication, and can improve the communication quality while ensuring effective communication, and also reduce the communication cost to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of communication monitoring, and in particular relates to a method for monitoring and analyzing communication of the Internet of Things. Background Art

[0002] With the popularization of the Internet, people's demand for connectivity and interoperability between devices and objects has increased. In this regard, IoT communication provides an efficient and intelligent way to achieve interconnection between devices.

[0003] Since IoT communications usually involve a large number of devices and sensors, some devices may be in areas with weak signal coverage. In order to increase the fault tolerance of the network, IoT communication networks generally adopt a multi-level topology. This is to expand the network coverage to a wider area. By accessing several nodes at each level and utilizing relay transmission between nodes, the signal transmission strength and stability are enhanced to ensure reliable data transmission.

[0004] There are also technical solutions involving multi-level Internet of Things communications in the prior art, such as an improved M2M Internet of Things communication method, device and system applied to the new generation of information technology disclosed in the application with publication number CN111065075B. This solution sets a transmission range field middleware for nodes at each level to manage nodes, but its management of nodes is limited to identifying whether the node belongs to the management range of the middleware based on the signal strength, resulting in management limitations and lack of effectiveness identification of access nodes. Node access will certainly benefit signal transmission, but the performance of each accessed node will be more or less reduced as the running time increases. This means that not all nodes are valid in actual communication and need to be identified. When using unidentified nodes for communication, they may become targets of network attacks. Attackers can use unprotected or weakly protected nodes to invade or steal data, thereby posing a serious security threat to the entire Internet of Things system.

[0005] In addition, currently, communication links formed based on nodes connected at various levels are mostly used directly for communication, and there is a lack of attention to the transmission preference between communication links and data types. Since different data types have different requirements for communication performance, the formed communication links are affected by the processing capabilities of the connected nodes, and their performance is limited. This may cause the communication links to be unsuitable for transmitting certain types of data and fail to meet their performance requirements, which may easily cause invalid transmission. Summary of the invention

[0006] To this end, one purpose of an embodiment of the present application is to propose an Internet of Things communication monitoring and analysis method based on the problems mentioned in the background technology, and to achieve high-reliability and high-adaptability communication of the Internet of Things by optimizing the management of nodes and communication links of the Internet of Things communication at multiple levels.

[0007] The purpose of the present invention can be achieved through the following technical solutions: A method for monitoring and analyzing Internet of Things communications, comprising the following steps: S1, counting the number of nodes accessed by Internet of Things communications and the access level of each node, and setting middleware based on the access level to manage nodes at the corresponding level.

[0008] S2. During the communication process, the middleware is used in real time to test the load response and operation risk of nodes at each level, thereby selecting the valid nodes corresponding to the current levels.

[0009] S3. Construct several communication links based on the selected valid nodes and their levels.

[0010] S4. Extracting communication records associated with the corresponding communication links from historical communication records for the constructed communication links, and extracting data types, data volumes and communication performance indicators from the communication records.

[0011] S5. Classify the data types of the communication records associated with each communication link according to the same data type to obtain a number of associated communication records of each communication link classified under each data type, and evaluate the communication quality of each communication link under each data type in combination with the communication performance indicators and data volume of the associated communication records.

[0012] S6. Identify the data type to be transmitted at the current communication start end, and select an adaptive communication link for communication based on the communication quality of each currently constructed communication link under each data type.

[0013] Combining all the above-mentioned technical solutions, the positive effects of the present invention are as follows: 1. The present invention gives the middleware the ability to test the performance of nodes, and utilizes the middleware set at each level of the Internet of Things to perform load response and operation risk tests on the nodes introduced at the corresponding level, thereby identifying effective nodes based on the test results, which greatly eliminates the management limitations of the middleware on the nodes, can provide real-time effective nodes for Internet of Things communications, and is conducive to ensuring the security and reliability of Internet of Things communications.

[0014] 2. After forming a communication link based on the identified valid nodes, the present invention performs communication quality analysis under different data types through the historical communication records associated with the communication link, which can provide an evaluation basis for the preference of communication links and data types, help select the optimal communication link for the current communication, improve communication quality while ensuring effective communication, and reduce communication costs to a certain extent.

[0015] 3. In addition to forming a communication link based on the identified effective nodes, the present invention also adds analyzing bottleneck nodes based on communication results, which helps to quickly locate the root cause of the problem, so as to take targeted measures to adjust or repair it, thereby significantly improving the communication quality, improving the efficiency and stability of communication, and at the same time, by accurately identifying and solving bottleneck nodes, unnecessary waste of resources can be avoided, making communication services more economical and efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0017] Figure 1 The present invention is a flowchart of the steps for implementing the method.

[0018] Figure 2 A schematic diagram of the communication link formation of the present invention.

[0019] Reference numerals: 1 - communication start point, 2 - communication end point, 3 - valid node. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] See also Figure 1 As shown, the present invention proposes an Internet of Things communication monitoring and analysis method, comprising the following steps: S1, counting the number of nodes accessed by the Internet of Things communication and the access level of each node, and setting a middleware based on the access level to manage the nodes on the corresponding level.

[0022] It should be added that the access layer usually includes edge devices, gateways, and cloud servers, and each layer is responsible for different functions and data processing tasks.

[0023] It should be further added that when setting the nodes connected within the middleware management level, the middleware needs to be selected based on the functions it can provide and the protocols it supports, as well as whether it is suitable for the required real-time performance and scalability.

[0024] S2. During the communication process, the middleware is used in real time to test the load response and operation risk of nodes at each level, thereby selecting valid nodes corresponding to the current levels.

[0025] Applied to the above embodiment, the test process of the load response situation is as follows: use a load testing tool to simulate concurrent requests, and the middleware starts the simulated concurrent requests from a low request amount, and gradually increases the request amount until the node reaches the limit request amount and sends them to each node on the corresponding level, and obtains the response time, CPU usage and memory usage of each node for processing each request, where the response time of the node processing the request refers to the time required from the node receiving a request to completing the request and returning the result.

[0026] It should be noted that the load response test of the node uses the simulated concurrent request volume as the load. On the one hand, the request volume directly reflects the actual load situation faced by the node in the real communication environment. On the other hand, the request volume as a load can be relatively easily controlled and adjusted. Testers can simulate different load conditions by increasing or decreasing the number of concurrent requests, thereby accurately testing the performance of the node under various load conditions. It can be seen that using the request volume as the load can provide a highly realistic and effective simulation for the system's performance testing, and help test the node's processing power and response speed under high load conditions. This test helps to evaluate the node's extreme load and the system's scalability.

[0027] It should be understood that the reason why response time, CPU usage and memory usage are used as load response indicators for nodes to process concurrent requests is that response time can reflect the efficiency and speed of nodes in processing requests, which helps to discover and solve potential performance bottlenecks; CPU usage reflects the current load of the system, and high CPU usage may indicate that the system's processing capacity is close to the limit, which helps to adjust resource allocation in time to cope with increased concurrent requests; memory usage reflects the utilization of system memory resources, and reasonable memory usage can ensure that the system can still provide stable performance under high load. It can be seen that response time, CPU usage and memory usage as load response indicators for nodes to process concurrent requests can comprehensively evaluate the response capability and resource utilization of nodes.

[0028] The response time of each node for each request is compared with the set time threshold. For example, the set time threshold can be 2s. The purpose of setting the time threshold is to assist in the quantitative calculation of the load response effect coefficient. At the same time, the load response effect coefficient of each node processing each request is calculated in combination with the CPU usage and memory usage. The specific calculation expression is: , where , , They represent the node's response time to the request, CPU usage, and memory usage, respectively. Indicates setting the duration threshold. Represents a natural constant. In this formula, the shorter the response time of a node in processing a request, the lower the CPU usage and the memory usage, and the better the load response effect of the node in processing a request.

[0029] A two-dimensional coordinate system is constructed with the request volume as the horizontal axis and the load response effect coefficient as the vertical axis. Several points are marked in the constructed two-dimensional coordinate system according to the number of requests issued and the load response effect coefficient of each node at each level processing each request, forming a load response scatter plot of each node at each level.

[0030] Further applied to the above embodiment, the running risk situation test is as follows: when the middleware sends concurrent requests to each node on the corresponding level, the log file generated when each node processes the request is retrieved.

[0031] It is important to understand that log files are a key tool for identifying and tracking errors and exceptions in the system. When a node processes a request, errors or exceptions may occur due to software development, system configuration, network environment, third-party dependencies, data processing, and other reasons. These errors will be recorded in the log for subsequent troubleshooting and repair.

[0032] Error identification is performed on the generated log files, where the errors in the log files include but are not limited to different types of errors such as network timeout, service non-response, and data processing errors. Furthermore, the error identification of the log files can be specifically performed by using text processing tools, scripts, or specialized log analysis tools to match and identify the log files with defined error types, thereby counting the proportion of log files with errors as the operational risk factor for each node processing each request.

[0033] A two-dimensional coordinate system is constructed with the request volume as the horizontal axis and the operation risk coefficient as the vertical axis. Several points are marked in the constructed two-dimensional coordinate system according to the number of requests issued and the operation risk coefficient of each node at each level processing each request, forming a scatter plot of the operation risk of each node at each level.

[0034] As a further innovation of the above scheme, since the values ​​of the load response effect coefficient and the operation risk coefficient are both between 0 and 1, the load response scatter plot and the operation risk scatter plot formed within this value range are relatively clustered and inconvenient to view. In order to facilitate subsequent analysis, the load response effect coefficient and the operation risk coefficient can be proportionally enlarged, for example, by 10 times, so that the distribution can be clearly and intuitively seen in the load response scatter plot and the operation risk scatter plot.

[0035] Further applied to the above embodiment, the valid nodes corresponding to the current levels are screened out, referring to the following process: a regression line is drawn on the load response scatter plot of each node on each level, and the slope of the regression line is obtained as the load response attenuation rate of each node on each level.

[0036] It should be noted that as the number of requests processed by a node increases, the response of the node to the request processing is attenuated. This is because when the number of requests increases, the node needs to process more concurrent requests. When node resources (such as CPU, memory, etc.) are limited, resource competition may occur, which leads to an increase in the processing time of each request, and the response time is extended accordingly, resulting in a decrease in the response. In addition, the increase in the number of requests may lead to an increase in node management overhead, such as thread scheduling, resource allocation, memory management, etc. These additional overheads may reduce the processing efficiency of the node and extend the response time. Therefore, the slope of the regression line is downward, reflecting the degree to which the load response is attenuated as the number of requests increases.

[0037] A regression line is drawn on the scatter plot of the operating risk of each node at each level, and the slope of the regression line is obtained as the operating risk increase rate of each node at each level.

[0038] It can be further explained that as the number of requests processed by a node increases, the risk of the node processing requests is increasing. This is because as the number of requests increases, the node may face higher concurrency challenges. If the node fails to effectively manage concurrent requests, it may lead to resource competition, deadlock, or data corruption, thereby increasing the risk of system errors or crashes. In addition, the increase in the number of requests may expose security vulnerabilities or weaknesses in the node, which will also increase operational risks. Therefore, the slope of the regression line is upward, reflecting the extent to which the operational risk increases with the increase in the number of requests.

[0039] The load response attenuation rate and operation risk increase rate of each node at each level are compared with the set allowable load response attenuation rate and permitted operation risk increase rate respectively, and the nodes at each level whose load response attenuation rate is less than or equal to the allowable load response attenuation rate and whose operation risk increase rate is less than or equal to the permitted operation risk increase rate are selected as the valid nodes corresponding to the current levels.

[0040] The present invention uses load response and operation risk as two dimensions to test valid nodes when screening out valid nodes in the test of nodes on the corresponding level using the middleware. This is because these two dimensions can effectively reflect the bearing capacity and stability of the nodes in the actual communication process. The load response reflects the processing ability and bearing capacity of the nodes in the communication process, and the operation risk test can reflect the probability and severity of problems that occur in the nodes under high load conditions. The valid nodes screened out in this test can not only withstand greater communication pressure but also maintain higher security, which is very necessary for communication and can ensure the stable and safe operation of communication to the maximum extent.

[0041] Furthermore, after the present invention performs load response and operation risk tests on the nodes, the effective nodes are screened according to the load response attenuation rate and operation risk increase rate formed as the request volume increases, thereby realizing long-term effectiveness screening of effective nodes, and being able to reflect the stability and reliability of the nodes under long-term load conditions. The changing trends of the performance and security of the nodes when facing an increasing number of requests can be evaluated more accurately. This evaluation not only focuses on the current situation, but also on the challenges and coping capabilities that the nodes may face in the future. Through this screening method, nodes that can provide stable services and maintain high security in long-term operation can be selected. This helps to improve the long-term availability of communications, reduce the risk of service interruptions due to node problems, and enhance the system's ability to resist security threats.

[0042] S3. Several communication links are formed based on the selected valid nodes and their levels. Figure 2 shown.

[0043] S4. Extracting communication records associated with the corresponding communication links from historical communication records for the constructed communication links, and extracting data types, data volumes and communication performance indicators from the communication records.

[0044] Preferably, the communication records associated with the corresponding communication links are extracted from the historical communication records for the constructed communication links as follows: the nodes used at each level are extracted from the historical communication records, and matched with the valid nodes corresponding to each level in the composition of each communication link, and the historical communication records in which the nodes at each level in each communication link are successfully matched are screened out as the communication records associated with the communication links.

[0045] S5. Classify the data types of the communication records associated with each communication link according to the same data type to obtain a number of associated communication records of each communication link classified under each data type, and evaluate the communication quality of each communication link under each data type in combination with the communication performance indicators and data volume of the associated communication records.

[0046] As a specific example of the above solution, the data types include but are not limited to documents, images, audio, video, etc.

[0047] The communication performance indicators mentioned above may be delay duration and packet loss rate.

[0048] Further preferably, the communication quality of each communication link under each data type is evaluated as follows: the communication performance indicator of the associated communication record classified under each data type of each communication link is compared with the ideal communication performance indicator, and the communication performance compliance corresponding to each associated communication record classified under each data type of each communication link is counted, and the specific calculation is as follows: , where the closer the communication performance indicator of the communication record is to the ideal situation, the better the communication performance is.

[0049] The above-mentioned ideal communication performance indicator is obtained based on the communication network bandwidth. In a specific embodiment, the ideal network delay time corresponding to the communication network bandwidth of 10 Mbps is 10 ms, and the ideal packet loss rate is 0.1%.

[0050] It is important to understand that the reason why delay time and packet loss rate are used as communication performance indicators for communication records is that delay time and packet loss rate are one of the core indicators of real-time communication systems, which directly reflect the speed and quality of data transmission. By monitoring and recording delay time, you can immediately understand the actual time from sending to receiving a data packet, which helps evaluate the efficiency and reliability of the system when processing real-time data. The packet loss rate shows the situation of data packets lost during the transmission process, thus revealing the integrity and reliability of data transmission.

[0051] The communication performance conformity corresponding to all associated communication records classified under each data type of each communication link is averaged to obtain the average communication performance conformity of each communication link under each data type.

[0052] A two-dimensional coordinate system is constructed with the data volume as the horizontal axis and the communication performance compliance as the vertical axis. Several points are marked in the constructed two-dimensional coordinate system for the data volume corresponding to each associated communication record classified under each data type for each communication link, forming a communication performance scatter plot of each communication link under each data type, thereby obtaining the communication performance stability. The specific acquisition process is as follows: a regression line is drawn for the communication performance scatter plot of each communication link under each data type, and the slope of the regression line is calculated, and then the communication performance stability is calculated with three quarters as the base and the absolute value of the slope of the regression line as the exponent.

[0053] It should be noted that as the amount of communication data increases, congestion may occur on the communication link, causing data packets to queue for processing, thereby causing communication delays. At the same time, network equipment may face greater pressure and the packet loss rate may increase. These will reduce the compliance of communication performance. The present invention analyzes the stability of communication performance by maintaining the communication performance after the communication data increases, wherein the smaller the absolute value of the slope of the regression line, the greater the stability of the communication performance.

[0054] The average communication performance compliance and communication performance stability of each communication link under each data type are weighted averaged. In the specific example, the weight factors of the average communication performance compliance and communication performance stability are 0.6 and 0.4 respectively, and the communication quality coefficient of each communication link under each data type is obtained.

[0055] The present invention performs a two-dimensional analysis based on the compliance and stability of the communication performance when analyzing the communication quality of the communication link under each data type, which can comprehensively evaluate the quality performance of the communication link under different data types, making the evaluation result more accurate and reliable.

[0056] S6. Identify the data type to be transmitted at the current communication starting end, and select an adaptive communication link for communication based on the communication quality of each communication link under each data type. The specific selection is as follows: based on the data type to be transmitted at the current communication starting end, select the communication quality coefficient of each communication link under the data type to be transmitted at the current communication starting end from the communication quality coefficients of each communication link under each data type.

[0057] The communication quality coefficients of each communication link under the data type to be transmitted at the current communication start end are compared, and the communication link corresponding to the maximum communication quality coefficient is selected as the adapted communication link.

[0058] S7. Determine the bottleneck node of each communication link. The specific analysis is as follows: when using each communication link for data communication, perform data transmission detection at each node of the communication link, specifically including transmission duration and transmission integrity detection, and obtain the transmission duration ratio and transmission integrity of each communication link from the previous node to the current node.

[0059] Furthermore, the transmission duration and transmission integrity detection mentioned above are performed in the following steps: when using each communication link for data communication, the amount of data transmitted at the beginning of the communication and the starting transmission time are obtained, thereby detecting the time and amount of data when transmitted to the corresponding node at each node.

[0060] The transmission time to the previous node in the communication link is compared with the transmission time to the subsequent node to obtain the transmission time of each node in the communication link, and then divided by the total transmission time from the communication start to the communication end to calculate the transmission time proportion of each node in the communication link.

[0061] It is important to know that dividing the transmission time of each node by the total transmission time can give the proportion of time occupied by each node in the entire transmission process, which can reflect the contribution of each node in the transmission process. Nodes with a large time proportion mean that these nodes consume more time in the entire transmission process. This may be the result of certain bottlenecks in the transmission, limited processing power, or network topology.

[0062] The amount of data transmitted to the previous node in the communication link is subtracted from the amount of data transmitted to the subsequent node, and the result of the subtraction is divided by the amount of data transmitted to the previous node to obtain the transmission integrity of each node in the communication link.

[0063] The transmission utility index of each node in each communication link is obtained by statistically analyzing the transmission time ratio and transmission completeness of each communication link from the previous node to the subsequent node. The specific statistical formula is: ,From this formula, it can be seen that the smaller proportion of the transmission time of each node, the greater the transmission completeness, the greater the transmission utility of the node, and by comparing them with each other, the node corresponding to the minimum transmission utility index is selected as the bottleneck node.

[0064] It should be noted that nodes with a high proportion of transmission time and low transmission integrity can be used as bottleneck nodes, that is, they can become targets of performance optimization to reduce the transmission time of these nodes and improve transmission integrity, thereby improving the overall transmission efficiency and transmission reliability.

[0065] The present invention not only forms a communication link based on the identified effective nodes, but also adds the analysis of bottleneck nodes based on communication results, which helps to quickly locate the root cause of the problem, so as to take targeted measures to adjust or repair it, thereby significantly improving the communication quality, improving the efficiency and stability of communication, and at the same time, by accurately identifying and solving bottleneck nodes, unnecessary waste of resources can be avoided, making communication services more economical and efficient.

[0066] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the present invention, they should all fall within the protection scope of the present invention.

Claims

1. A method for monitoring and analyzing Internet of Things communications, characterized in that: The following steps are involved: S1. Count the number of nodes connected to the IoT communication and the access level of each node, and set up middleware based on the access level to manage the nodes at the corresponding level; S2. Use the middleware to test the load response and operation risk of nodes at each level in real time during the communication process, thereby selecting the valid nodes corresponding to the current level; S3, forming several communication links according to the selected valid nodes and their levels; S4, extracting communication records associated with corresponding communication links from historical communication records for the constructed communication links, and extracting data types, data volumes, and communication performance indicators from the communication records; S5. Classify the data types of the communication records associated with each communication link according to the same data type to obtain a number of associated communication records of each communication link classified under each data type, and evaluate the communication quality of each communication link under each data type in combination with the communication performance indicators and data volume of the associated communication records; S6, identifying the data type to be transmitted at the current communication start end, and selecting an adapted communication link for communication based on the communication quality of each communication link currently constructed under each data type; The communication quality of each communication link under each data type is evaluated as follows: The communication performance indicators of the associated communication records classified under each data type of each communication link are compared with the ideal communication performance indicators, and the communication performance compliance corresponding to each associated communication record classified under each data type of each communication link is counted; Calculate the average of the communication performance compliance of all associated communication records of each communication link classified under each data type to obtain the average communication performance compliance of each communication link under each data type; A two-dimensional coordinate system is constructed with the data volume as the horizontal axis and the communication performance compliance as the vertical axis. A number of points are marked in the constructed two-dimensional coordinate system according to the data volume corresponding to each associated communication record classified under each data type for each communication link, forming a scatter plot of the communication performance of each communication link under each data type, thereby obtaining the communication performance stability; The average communication performance conformity and communication performance stability of each communication link under each data type are weighted averaged to obtain the communication quality coefficient of each communication link under each data type; The process of obtaining the communication performance stability is as follows: A regression line is drawn for the communication performance scatter plot of each communication link under each data type, and the slope of the regression line is calculated. Then, the stability of the communication performance is calculated with the absolute value of the slope of the regression line as the exponent, taking three quarters as the base; The selection of the adapted communication link is as follows: Based on the data type to be transmitted at the current communication start end, the communication quality coefficient of each communication link under the data type to be transmitted at the current communication start end is selected from the communication quality coefficients of each communication link under each data type; The communication quality coefficients of each communication link under the data type to be transmitted at the current communication start end are compared, and the communication link corresponding to the maximum communication quality coefficient is selected as the adapted communication link.

2. The method for monitoring and analyzing Internet of Things communications according to claim 1, wherein: The load response test of the nodes at each level is as follows: Use load testing tools to simulate concurrent requests. The middleware starts with a low number of concurrent requests and gradually increases the number of requests until the node reaches the limit. The requests are sent to each node on the corresponding level to obtain the response time, CPU usage, and memory usage of each node for processing each request. The response time of each node for each request is compared with the set time threshold, and the load response effect coefficient of each node processing each request is calculated by combining the CPU usage and memory usage. The specific calculation expression is: , where , , They represent the node's response time to the request, CPU usage, and memory usage, respectively. Indicates setting the duration threshold. represents a natural constant; A two-dimensional coordinate system is constructed with the request volume as the horizontal axis and the load response effect coefficient as the vertical axis. Several points are marked in the constructed two-dimensional coordinate system according to the number of requests issued and the load response effect coefficient of each node at each level processing each request, forming a load response scatter plot of each node at each level.

3. A method for monitoring and analyzing Internet of Things communications as claimed in claim 2, characterized in that: The operational risk situation test is as follows: When the middleware sends concurrent requests to each node on the corresponding level, the log files generated when each node processes the request are retrieved; Identify errors in the generated log files, and count the percentage of log files with errors, which will be used as the operational risk factor for each node processing each request. A two-dimensional coordinate system is constructed with the request volume as the horizontal axis and the operation risk coefficient as the vertical axis. Several points are marked in the constructed two-dimensional coordinate system according to the number of requests issued and the operation risk coefficient of each node at each level processing each request, forming a scatter plot of the operation risk of each node at each level.

4. A method for monitoring and analyzing Internet of Things communications as claimed in claim 3, characterized in that: The process of filtering out the valid nodes corresponding to the current levels is as follows: Draw a regression line on the load response scatter plot of each node at each level, and obtain the slope of the regression line as the load response attenuation rate of each node at each level; Draw a regression line on the scatter plot of the operation risk of each node at each level, and obtain the slope of the regression line as the operation risk increase rate of each node at each level; The load response attenuation rate and operation risk increase rate of each node at each level are compared with the set allowable load response attenuation rate and permitted operation risk increase rate respectively, and the nodes at each level whose load response attenuation rate is less than or equal to the allowable load response attenuation rate and whose operation risk increase rate is less than or equal to the permitted operation risk increase rate are selected as the valid nodes corresponding to the current levels.

5. The method for monitoring and analyzing Internet of Things communications according to claim 1, wherein: The communication link constructed by extracting the communication record associated with the corresponding communication link from the historical communication record is performed as follows: Nodes used at each level are extracted from historical communication records and matched with valid nodes corresponding to each level in each communication link structure, and historical communication records in which nodes at each level in each communication link are successfully matched are selected as communication records associated with the communication link.

6. The method for monitoring and analyzing Internet of Things communications according to claim 1, wherein: It also includes S7, determining the bottleneck nodes of each communication link, and the specific analysis is as follows: When using each communication link for data communication, data transmission detection is performed at each node of the communication link, specifically including transmission duration and transmission integrity detection, to obtain the transmission duration ratio and transmission integrity of each communication link from the previous node to the current node; The transmission time ratio and transmission completeness of each communication link from the previous node to the subsequent node are statistically analyzed to obtain the transmission utility index of each node in each communication link, and then compared with each other, and the node corresponding to the minimum transmission utility index is selected as the bottleneck node.

7. A method for monitoring and analyzing Internet of Things communications as claimed in claim 6, characterized in that: The transmission duration and transmission integrity detection are as follows: When using each communication link for data communication, the amount of data transmitted at the beginning of the communication and the start transmission time are obtained, thereby detecting the time and amount of data when the data is transmitted to the corresponding node at each node; Compare the time of transmission to the previous node in the communication link with the time of transmission to the subsequent node to obtain the transmission time of each node in the communication link, and divide it by the total transmission time from the communication start end to the communication end end to calculate the transmission time proportion of each node in the communication link; The amount of data transmitted to the previous node in the communication link is subtracted from the amount of data transmitted to the subsequent node, and the result of the subtraction is divided by the amount of data transmitted to the previous node to obtain the transmission integrity of each node in the communication link.