Internet of Things gateway communication protocol collaborative optimization method and system

By building a communication protocol collaborative rule hierarchy system and sliding time window mechanism, the protocol combination path of the IoT gateway is dynamically adjusted, and the communication efficiency and adaptability problems of the IoT gateway in a multi-protocol environment are solved, and intelligent and adaptive optimization are achieved.

CN120343115AActive Publication Date: 2025-07-18POWER CHINA KUNMING ENG CORP LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510778569.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-07-18
Estimated Expiration
2045-06-11

AI Technical Summary

Technical Problem

Existing IoT gateways lack a flexible and intelligent way to handle multiple communication protocols and cannot adapt to dynamically changing network environments, resulting in inefficient communication and insufficient resource utilization.

Method used

Build a communication protocol collaborative rule hierarchy system, divide communication events through level tags, set protocol combination paths, dynamically adjust protocol combination paths, use the sliding time window mechanism to monitor performance and update paths, and realize intelligent and adaptive optimization of protocol selection.

Benefits of technology

It improves the communication efficiency and system robustness of the Internet of Things gateway, reduces the cost of protocol switching, enhances the flexibility and fault tolerance of the system, and adapts to complex and changeable network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343115A_ABST
    Figure CN120343115A_ABST
Patent Text Reader

Abstract

The invention discloses an Internet of Things gateway communication protocol collaborative optimization method and system, and relates to the technical field of Internet of Things. The method comprises the following steps: constructing a communication protocol collaboration rule grading system to obtain grade labels corresponding to various communication events; setting a corresponding protocol combination path for each level to form a protocol calling path tree; when a plurality of protocol combination paths share the communication resource, calculating the communication scheduling priority of each protocol combination path, and executing a scheduling task through priority ranking; constructing a sliding time window mechanism, and collecting execution feedback data of each protocol combination path to obtain a sliding window execution result; and judging whether a sliding window execution result exceeds a preset performance threshold, dynamically adjusting hierarchical system parameters of the communication task, and updating a protocol combination path. The intelligent level of the Internet of Things gateway is comprehensively improved, and it is ensured that various communication tasks can be efficiently completed in a complex and changeable environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things technology, and in particular, to a method and system for collaborative optimization of Internet of Things gateway communication protocols. Background Art

[0002] With the development and popularization of Internet of Things technology, more and more devices are connected to the network through various communication protocols, forming a complex Internet of Things ecosystem. As a key node connecting different devices, protocols, and networks, the Internet of Things gateway plays a crucial role in data transmission, device management, and service provision. However, existing Internet of Things gateways face several challenges when dealing with multiple communication protocols.

[0003] In related technologies, different Internet of Things applications may adopt different communication protocols, which requires the gateway to be able to effectively manage and convert these protocols. However, existing technologies often lack a flexible and intelligent way to select appropriate protocol combination paths to meet the needs of different types of communication tasks. At the same time, due to the complex and ever-changing Internet of Things environment, network conditions and device states may change at any time. Most existing gateway technologies rely on static configurations, lack the ability to perceive changes in network conditions and automatic adjustment strategies, and cannot well adapt to the dynamically changing environment, thus there is room for improvement. Summary of the Invention

[0004] The purpose of the present invention is to provide a method and system for collaborative optimization of Internet of Things gateway communication protocols to solve the problems raised in the above background art.

[0005] In a first aspect, a method for collaborative optimization of Internet of Things gateway communication protocols provided by this application adopts the following technical solutions:

[0006] Construct a hierarchical system of communication protocol collaboration rules to obtain level tags corresponding to various communication events;

[0007] Based on the level tags of various communication events, set corresponding protocol combination paths for each level to form a protocol call path tree;

[0008] During the execution of a communication task, according to the protocol call path tree, call the corresponding protocol combination path;

[0009] When there are multiple protocol combination paths sharing communication resources, calculate the communication scheduling priorities of each protocol combination path and execute the scheduling task through priority sorting;

[0010] During the execution of a communication task, construct a sliding time window mechanism, collect the execution feedback data of each protocol combination path, and obtain the sliding window execution result;

[0011] Determine whether the execution result of the sliding window exceeds the preset performance threshold, and dynamically adjust the hierarchical system parameters of the communication task according to the judgment result to update the protocol combination path.

[0012] Preferably, the steps of constructing a hierarchical system of communication protocol collaboration rules to obtain the level labels corresponding to various communication events are specifically as follows:

[0013] Set a maximum allowable response delay time threshold for various communication events, and quantify the real-time score of various communication events according to the response delay time threshold to obtain the real-time score;

[0014] Establish a dependency mapping relationship graph between various communication events and business modules, and quantify the business importance score of various communication events based on the dependency mapping relationship graph to obtain the importance score;

[0015] Obtain the system scope of action and communication load level after various communication events are triggered, and evaluate the system impact degree score of various communication events based on the system scope of action and communication load level to obtain the impact degree score;

[0016] Comprehensively combine the real-time score, importance score and impact degree score, and calculate the comprehensive response score of various communication events by weighted calculation;

[0017] Match the comprehensive response score with the preset response score level interval to obtain the level labels corresponding to various communication events.

[0018] Preferably, the steps of setting a corresponding protocol combination path for each level based on the level labels of various communication events to form a protocol call path tree are specifically as follows:

[0019] Based on the level labels of various communication events, set a corresponding protocol combination path for each level;

[0020] Organize the protocol combination paths corresponding to each level in a tree structure to construct a protocol call path tree;

[0021] The root node of the protocol call path tree is the communication event level node, the branch node is the protocol combination sequence, and the leaf node is the communication protocol parameter;

[0022] Store the protocol call path tree in the IoT gateway device, and when a communication event is received, the corresponding protocol path can be matched according to the communication event level label and the scheduling task can be executed.

[0023] Preferably, during the execution of the communication task, the steps of calling the corresponding protocol combination path according to the protocol call path tree are specifically as follows:

[0024] During the execution of a communication task, obtain the device status information and external trigger event information associated with the current communication task. The external trigger event information includes system control instruction information, user intervention instruction information, and abnormal alarm linkage information;

[0025] Jointly input the device status information and external trigger event information, match the communication protocol collaboration rule classification system, and determine the event level label to which this communication task belongs;

[0026] In the protocol call path tree, retrieve the protocol combination path corresponding to the event level label to obtain a path retrieval result;

[0027] Based on the path retrieval result, call the corresponding protocol combination path to execute this communication task.

[0028] Preferably, the step of calling the corresponding protocol combination path to execute this communication task based on the path retrieval result is specifically as follows:

[0029] Based on the path retrieval result, if there are multiple protocol combination paths corresponding to the event level label, perform an adaptability score on each protocol combination path to obtain the adaptability scores of each protocol combination path;

[0030] Based on the adaptability scores, set the protocol combination path with the highest adaptability score as the main execution path of this communication task, and set the remaining protocol combination paths in descending order of adaptability score as the backup execution paths of this communication task;

[0031] If the main execution path fails to execute or the main execution path times out, perform protocol switching in sequence according to the backup execution path order to execute this communication task.

[0032] Preferably, when there are multiple protocol combination paths sharing communication resources, calculate the communication scheduling priorities of each protocol combination path, and the steps of performing a scheduling task through priority sorting are specifically as follows:

[0033] When there are multiple protocol combination paths sharing communication resources, perform resource conflict detection, and add the protocol combination paths with resource conflicts to the scheduling conflict queue;

[0034] Calculate the communication scheduling priority for each protocol combination path in the scheduling conflict queue to obtain a communication scheduling priority value;

[0035] Sort all the protocol combination paths in the scheduling conflict queue from high to low according to the communication scheduling priority value to obtain a protocol path priority sequence;

[0036] Based on the protocol path priority sequence, perform scheduling tasks in sequence.

[0037] Preferably, during the execution of the communication task, when constructing the sliding time window mechanism and collecting the execution feedback data of each protocol combination path to obtain the sliding window execution result, the specific steps are as follows:

[0038] During the execution of the communication task, construct a sliding time window mechanism, and after each protocol combination path is executed, collect the execution feedback data of each protocol combination path;

[0039] The execution feedback data includes an execution success flag, the number of execution retries, and an error code feedback;

[0040] Based on the execution success flag, count the number of successful executions within a preset time window to obtain the execution success rate;

[0041] Based on the number of execution retries, count the total number of execution retries within a preset time window to obtain the execution retry rate;

[0042] Based on the error code feedback, classify and count the error code feedback, judge the reason for communication failure, and obtain the reason for execution failure;

[0043] Combine the execution success rate, execution retry rate, and reason for execution failure to obtain the sliding window execution result.

[0044] Preferably, when judging whether the sliding window execution result exceeds the preset performance threshold and dynamically adjusting the classification system parameters of the communication task according to the judgment result and updating the protocol combination path, the specific steps are as follows:

[0045] Set corresponding performance thresholds for each communication protocol combination path, and the performance thresholds include a success rate threshold and a retry rate threshold;

[0046] Based on the sliding window execution result, compare the execution success rate and execution retry rate in the sliding window execution result with the performance threshold item by item to judge whether the sliding window execution result exceeds the performance threshold;

[0047] If any index in the sliding window execution result exceeds the corresponding performance threshold, it is determined as an abnormal execution;

[0048] For the abnormal execution, extract the reason for execution failure in the sliding window execution result, adjust the classification system parameters of the communication event according to the reason for execution failure to obtain an updated level label, and update the protocol combination path according to the updated level label.

[0049] In a second aspect, a communication protocol collaborative optimization system for an IoT gateway provided by the present application adopts the following technical solutions:

[0050] A communication protocol collaborative optimization system for an IoT gateway includes:

[0051] Hierarchical construction module, which constructs a hierarchical system of communication protocol coordination rules to obtain level tags corresponding to various communication events;

[0052] Path tree construction module, based on the level tags of various communication events, sets corresponding protocol combination paths for each level to form a protocol call path tree;

[0053] Path management module, during the execution of a communication task, calls the corresponding protocol combination path according to the protocol call path tree;

[0054] Resource conflict module, when there are multiple protocol combination paths sharing communication resources, calculates the communication scheduling priorities of each protocol combination path, and executes the scheduling task through priority sorting;

[0055] Sliding window monitoring module, during the execution of a communication task, constructs a sliding time window mechanism, collects the execution feedback data of each protocol combination path to obtain the sliding window execution result;

[0056] Adaptive adjustment module, determines whether the sliding window execution result exceeds a preset performance threshold, and dynamically adjusts the hierarchical system parameters of the communication task according to the judgment result to update the protocol combination path.

[0057] In summary, the present application includes at least one of the following beneficial technical effects:

[0058] 1. Classifies diverse communication events in the Internet of Things environment hierarchically, with each level corresponding to different processing strategies, realizes differential management of communication tasks, improves system response efficiency, provides a basis for subsequent protocol selection and scheduling, and enhances system flexibility. For communication events of different levels, multiple communication protocol combination paths are preset to form a protocol call path tree, and the optimal protocol combination is quickly matched according to the communication event level during operation, improving the intelligence level of protocol selection and avoiding a single protocol for all scenarios; at the same time, reducing the protocol switching cost and improving communication efficiency. When multiple communication tasks compete for priority resources simultaneously, calculates the communication scheduling priorities of each protocol combination path, and uses a priority queue for task scheduling to prevent resource conflicts and communication congestion, improving system throughput and task completion rate, maximizing resource utilization, and enhancing overall communication quality. Sets a fixed-length time window, uses the sliding time window mechanism to dynamically monitor the execution performance of each protocol combination path, realizes real-time performance monitoring and trend prediction, provides feedback data for subsequent strategy adjustment, and enhances the system's self-learning and optimization capabilities. If the performance of a certain protocol combination path deteriorates, triggers an adjustment mechanism, dynamically modifies the level division standard of communication events, updates the protocol combination path tree, replaces it with a better path, realizes the closed-loop optimization of communication strategies, and enhances the system's robustness and fault tolerance to adapt to the changing network environment and business requirements.

[0059] 2. There may be multiple protocol combination paths at the same level. The system comprehensively evaluates and scores each path based on factors such as the current network environment, device resource status, and historical performance, to achieve refined selection of paths at the same level, improve the adaptability and intelligence level of protocol selection, and avoid performance bottlenecks caused by fixed paths. The path with the highest score is used as the main execution path and tried first, and the remaining paths are sorted by score as backup paths, and are tried in turn when the main path fails. Build a communication path system combining main and backup to improve the task success rate, implement a fault tolerance mechanism during communication, and reduce communication interruptions caused by single-point path failures; at the same time, improve the reliability and stability of the system, and support the continuous availability of communication in complex network environments.

[0060] 3. Set corresponding performance thresholds for each communication protocol combination path, including success rate threshold and retry rate threshold. The success rate threshold reflects communication reliability, and the retry rate threshold reflects communication stability, to achieve quantifiable monitoring of communication quality. Compare the success rate statistically in the current period with the preset success rate threshold, and at the same time compare the retry rate with the preset retry rate threshold. If any index exceeds the threshold, it is determined that the path is in an abnormal execution state, to achieve automatic judgment of the path execution state, avoid misjudgment by a single index, improve evaluation accuracy, and enhance the fault tolerance ability of the system in complex network environments. When a certain path continuously shows a low success rate or a high retry rate, it is marked as an abnormal path, triggering a subsequent dynamic adjustment mechanism to quickly identify unstable paths or potential fault points, preventing task failures or service quality degradation caused by path problems. Extract the reasons for execution failures in the sliding window execution results, reverse-influence the event level division of the communication task according to the failure reasons, and then match a better protocol combination path in the protocol call path tree according to the new level label. Achieve dynamic adjustment of communication task priorities, improve the communication guarantee for key tasks, promote the transformation of the system from static configuration to dynamic evolution, and achieve closed-loop communication optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 is a schematic diagram of the specific steps of an embodiment of a method for collaborative optimization of communication protocols of an Internet of Things gateway according to the present invention.

[0062] Figure 2 is a schematic diagram of the module connection of an embodiment of a system for collaborative optimization of communication protocols of an Internet of Things gateway according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0063] The following combines embodiments and Figure 1 - Figure 2 further elaborates on the present invention in detail, but the embodiments of the present invention are not limited thereto.

[0064] The present invention discloses a method for collaborative optimization of communication protocols of an Internet of Things gateway, which specifically includes the following steps:

[0065] Step S1, construct a hierarchical system of communication protocol collaboration rules to obtain the level tags corresponding to various communication events;

[0066] Step S2, based on the level tags of various communication events, set the corresponding protocol combination paths for each level to form a protocol call path tree;

[0067] Step S3, during the execution of the communication task, call the corresponding protocol combination path according to the protocol call path tree;

[0068] Step S4, when there are multiple protocol combination paths sharing communication resources, calculate the communication scheduling priorities of each protocol combination path, and perform the scheduling task through priority sorting;

[0069] Step S5, during the execution of the communication task, construct a sliding time window mechanism, collect the execution feedback data of each protocol combination path, and obtain the sliding window execution result;

[0070] Step S6, determine whether the sliding window execution result exceeds the preset performance threshold, and dynamically adjust the hierarchical system parameters of the communication task according to the judgment result to update the protocol combination path.

[0071] In practical applications, hierarchical classification is carried out on diverse communication events in the Internet of Things environment, and clear responses are set according to business importance, system impact degree, etc., such as normal level, warning level, etc. Each level corresponds to different processing strategies to achieve differential management of communication tasks, improve the system response efficiency, provide a basis for subsequent protocol selection and scheduling, and enhance the system flexibility. For communication events of different levels, multiple communication protocol combination paths are preset to form a protocol call path tree. At runtime, the optimal protocol combination is quickly matched according to the communication event level, improving the intelligence level of protocol selection and avoiding a single protocol adapting to all scenarios; at the same time, reducing the protocol switching cost and improving the communication efficiency. When multiple communication tasks compete for priority resources simultaneously, calculate the communication scheduling priorities of each protocol combination path, and use a priority queue for task scheduling to prevent resource conflicts and communication congestion, improve the system throughput and task completion rate, maximize resource utilization, and improve the overall communication quality. Set a fixed-length time window, and use the sliding time window mechanism to dynamically monitor the execution performance of each protocol combination path to achieve real-time performance monitoring and trend prediction, provide feedback data for subsequent strategy adjustment, and enhance the system's self-learning and optimization capabilities. If the performance of a certain protocol combination path deteriorates, trigger the adjustment mechanism, dynamically modify the level division standard of communication events, update the protocol call path tree, replace it with a better path, realize the closed-loop optimization of communication strategies, improve the system robustness and fault tolerance, and adapt to the changing network environment and business requirements.

[0072] Steps for constructing a hierarchical system of communication protocol collaboration rules to obtain the level labels corresponding to various communication events are as follows:

[0073] Step S11: Set the maximum allowable response delay time threshold for various communication events, and quantify the real-time scores of various communication events according to the response delay time threshold to obtain real-time scores.

[0074] Step S12: Establish a dependency mapping relationship graph between various communication events and business modules, and quantify the business importance scores of various communication events based on the dependency mapping relationship graph to obtain importance scores.

[0075] Step S13: Obtain the system scope of action and communication load level after various communication events are triggered, and evaluate the system impact degree scores of various communication events based on the system scope of action and communication load level to obtain impact degree scores.

[0076] Step S14: Synthesize the real-time scores, importance scores, and impact degree scores, and calculate the comprehensive response scores of various communication events through weighted calculation.

[0077] Step S15: Match the comprehensive response scores with the preset response score level intervals to obtain the level labels corresponding to various communication events.

[0078] In actual application, set the maximum acceptable delay time for each type of communication event, and quantify the real-time scores of various communication events according to the deviation degree between the actual response time and the threshold, so as to realize the quantitative management of the timeliness of communication tasks and provide rapid response guarantee for high-priority tasks. Construct an association graph between communication events and business modules, analyze the key nature of the event in the overall system business process, obtain the business importance score, clarify the impact degree of different communication events on the integrity of system functions, and improve the system's ability to identify and prioritize key business events. Evaluate the system impact degree scores of various communication events according to the system scope of action and communication load level, avoid the decline or collapse of system performance caused by high-load communication tasks, realize the visualization and quantification of the overall impact of communication tasks on the system, and contribute to the reasonable formulation of resource allocation and scheduling strategies. Fuse the three dimensions of real-time, importance, and impact degree through weighted calculation to obtain a unified comprehensive score, and the weights can be dynamically adjusted according to specific application scenarios. For example, the industrial scenario emphasizes real-time, and the medical scenario emphasizes importance. The fusion of multi-dimensional indicators improves the scientificity and adaptability of evaluation, supports personalized configuration, and meets the needs of different industries. Fall the comprehensive response scores into the preset level intervals to obtain the level labels corresponding to various communication events, convert the complex scoring results into a form that is easy to understand and apply, provide a basis for subsequent protocol selection and path planning, and realize the structured management and automated response of communication tasks.

[0079] Based on the level tags of various communication events, set the corresponding protocol combination paths for each level to form a protocol call path tree. The specific steps are as follows:

[0080] Step S21: Based on the level tags of various communication events, set the corresponding protocol combination paths for each level;

[0081] Step S22: Organize the protocol combination paths corresponding to each level in a tree structure to construct a protocol call path tree;

[0082] Step S23: The root node of the protocol call path tree is a communication event level node, the branch node is a protocol combination sequence, and the leaf node is a communication protocol parameter;

[0083] Step S24: Store the protocol call path tree in the IoT gateway device, and when a communication event is received, the corresponding protocol path can be matched according to the communication event level tag and the scheduling task can be executed.

[0084] In practical applications, after classifying communication events into high, medium, and low levels, preset one or more applicable communication protocol combinations for each level to achieve precise matching between communication events and protocols, avoid the problem of a single protocol adapting to all scenarios, and improve communication efficiency and resource utilization rate. Organize the protocol combination paths corresponding to each level in a tree structure to construct a protocol call path tree, and use the tree structure to hierarchically manage communication event levels, protocol combination sequences, and specific parameters, enhancing the maintainability and readability of the system, and facilitating rapid retrieval and decision-making. In the tree structure, the root node represents the communication event level, the branch node represents the protocol combination and its execution order, and the leaf node contains specific communication parameters such as IP address, port, encryption method, etc., realizing the modularization and standardization of the communication process, facilitating automated execution and remote management. Store the complete protocol path tree structure locally in the gateway. After receiving a communication event, quickly locate the corresponding protocol path through its level tag, automatically load the protocol stack and execute the communication task, reducing communication latency and improving the real-time performance of the system.

[0085] During the execution of the communication task, according to the protocol call path tree, the steps of calling the corresponding protocol combination path are as follows:

[0086] Step S31: During the execution of the communication task, obtain the device status information and external trigger event information associated with the current communication task. The external trigger event information includes system control instruction information, user intervention instruction information, and abnormal alarm linkage information;

[0087] Step S32: Jointly input the device status information and external trigger event information, match the communication protocol collaboration rule classification system, and determine the event level tag to which the communication task belongs;

[0088] Step S33: In the protocol call path tree, retrieve the protocol combination path corresponding to the event level label to obtain a path retrieval result;

[0089] Step S34: Based on the path retrieval result, call the corresponding protocol combination path to execute this communication task.

[0090] In practical applications, obtain the device status information and external trigger event information associated with the current communication task. The device status information includes the device online status, resource occupancy, etc., to achieve a comprehensive perception of the communication task running environment, avoid blindly starting high-load communication processes when device resources are insufficient or the network is unstable, and improve system stability and task execution success rate. Jointly input the device status information and external trigger event information into the constructed communication event classification model, and comprehensively evaluate according to dimensions such as real-time nature, importance, and impact degree, and output the event level label of this communication event to achieve dynamic classification management of communication tasks, ensure that the protocol selection matches the actual requirements of the task, and provide a basis for subsequent protocol path calls. According to the level label of the communication task, quickly locate the optimal protocol combination path in the preset protocol call path tree to achieve automatic matching and loading of the protocol path, improve the system response efficiency and intelligent level, reduce manual intervention, and increase the degree of automation. Load the selected protocol stack and initialize relevant parameters, and execute complete communication processes such as data encapsulation, transmission, and response to achieve a closed-loop execution of the communication task and improve the stability and reliability of the communication process.

[0091] The step of calling the corresponding protocol combination path based on the path retrieval result to execute this communication task is specifically as follows:

[0092] Step S341: Based on the path retrieval result, if there are multiple protocol combination paths corresponding to the event level label, perform an adaptability score on each protocol combination path to obtain the adaptability scores of each protocol combination path;

[0093] Step S342: Based on the adaptability scores, set the protocol combination path with the highest adaptability score as the main execution path of this communication task, and set the remaining protocol combination paths in descending order of adaptability scores as the backup execution paths of this communication task;

[0094] Step S343: If the main execution path fails to execute or the main execution path times out, perform protocol switching in sequence according to the backup execution path order to execute this communication task.

[0095] In actual operation, there may be multiple protocol combination paths at the same level. The system comprehensively evaluates and scores each path based on factors such as the current network environment, device resource status, and historical performance, to achieve refined selection of paths at the same level, improve the adaptability and intelligence level of protocol selection, and avoid performance bottlenecks caused by fixed paths. The path with the highest score is used as the main execution path and tried first, and the remaining paths are sorted by score as backup paths, and are tried to be switched in turn when the main path fails. A communication path system combining primary and backup is constructed to improve the task success rate, implement a fault tolerance mechanism during the communication process, and reduce communication interruptions caused by single-point path failures; at the same time, improve the reliability and stability of the system, and support the continuous availability of communication in complex network environments.

[0096] When there are multiple protocol combination paths sharing communication resources, calculate the communication scheduling priorities of each protocol combination path, and perform the steps of scheduling tasks through priority sorting, specifically:

[0097] Step S41, when there are multiple protocol combination paths sharing communication resources, perform resource conflict detection, and add the protocol combination paths with resource conflicts to the scheduling conflict queue;

[0098] Step S42, calculate the communication scheduling priorities for each protocol combination path in the scheduling conflict queue to obtain communication scheduling priority values;

[0099] Step S43, sort all the protocol combination paths in the scheduling conflict queue from high to low according to the communication scheduling priority values to obtain a protocol path priority sequence;

[0100] Step S44, based on the protocol path priority sequence, perform scheduling tasks in sequence.

[0101] In actual operation, the usage of communication resources by each protocol combination path is monitored in real time, including network bandwidth, CPU, memory, channels, etc. If multiple paths request the same type of resource simultaneously, it is determined as a resource conflict, and these conflicting paths are uniformly classified into the scheduling conflict queue for waiting to be processed, preventing communication failures or system lags caused by resource contention, improving the transparency and controllability of resource scheduling, and supporting the stable operation of the system in a complex environment. A comprehensive score is given to each path in the conflict queue. The scoring dimensions can include event level labels, real-time requirements, historical success rates, business importance, communication load size, communication duration, etc., and finally a communication scheduling priority value corresponding to a path is generated. Implement differential management of communication tasks, support resource allocation strategies driven by quality of service, improve the intelligence level of the system, reduce human intervention, and help identify and prioritize key tasks. Sort the conflicting paths according to the priority value to form a path sequence arranged in priority order, and start the execution of the protocol combination paths sequentially according to the priority order. As many paths as possible are executed concurrently when resources permit. If resources are insufficient, a queuing mechanism is adopted to gradually release resources and continue the execution, improving communication efficiency and resource utilization rate, reducing communication latency, enhancing the system's response ability, and ensuring the timely completion of high-priority tasks.

[0102] During the execution of communication tasks, a sliding time window mechanism is constructed to collect the execution feedback data of each protocol combination path. The steps to obtain the sliding window execution result are as follows:

[0103] Step S51, during the execution of communication tasks, a sliding time window mechanism is constructed. After each protocol combination path is executed, the execution feedback data of each protocol combination path is collected;

[0104] Step S52, the execution feedback data includes an execution success flag, the number of execution retries, and an exception code feedback;

[0105] Step S53, based on the execution success flag, the number of successful executions within a preset time window is counted to obtain the execution success rate;

[0106] Step S54, based on the number of execution retries, the total number of execution retries within a preset time window is counted to obtain the execution retry rate;

[0107] Step S55, based on the exception code feedback, the exception code feedback is classified and counted to determine the cause of communication failure and obtain the cause of execution failure;

[0108] Step S56, by synthesizing the execution success rate, the execution retry rate, and the cause of execution failure, the sliding window execution result is obtained.

[0109] In actual operation, a time window with a fixed length is set in the system, such as the most recent 5 minutes. Whenever the protocol combination path finishes execution, key feedback information during its execution is recorded, including whether it is successful, whether it needs to be retried, and what kind of error code appears, so as to continuously monitor the execution situation of the communication path, provide a dynamic and real-time data basis for performance evaluation, facilitate the construction of a closed-loop feedback mechanism, and improve the system's adaptive ability. The number of successful executions of a certain path is counted within the set time window, and the proportion of the number of successful executions to the total number of executions is calculated to obtain the execution success rate, which reflects the stability of the path in the current network environment and indicates the overall availability of the communication path. The average number of retries of a certain path within the time window is counted, and the proportion of the number of retries to the number of executions is calculated to obtain the execution retry rate, which reflects the degree of fluctuation of the network environment where the path is located, reveals the instability of the communication path, helps to judge whether a more stable path needs to be replaced, and contributes to the optimization of the resource scheduling strategy. The error codes are classified and counted to judge the cause of communication failure, help to locate the root cause of the problem, support the exception diagnosis and repair of the protocol stack, and provide a basis for protocol parameter tuning. By synthesizing the execution success rate, execution retry rate, and the cause of execution failure, the sliding window execution result is obtained, which is used as the final evaluation output of the path performance, realizes the quantitative expression of the execution effect of the communication path, supports the horizontal comparison between paths, provides a basis for the dynamic update of the protocol path tree, and promotes the evolution of the system towards the direction of self-learning and autonomous optimization.

[0110] Judge whether the sliding window execution result exceeds the preset performance threshold, and dynamically adjust the hierarchical system parameters of the communication task according to the judgment result, and update the protocol combination path, specifically as follows:

[0111] Step S61, set corresponding performance thresholds for each communication protocol combination path, and the performance thresholds include a success rate threshold and a retry rate threshold;

[0112] Step S62, based on the sliding window execution result, compare the execution success rate and execution retry rate in the sliding window execution result with the performance thresholds item by item respectively, and judge whether the sliding window execution result exceeds the performance threshold;

[0113] Step S63, if any index in the sliding window execution result exceeds the corresponding performance threshold, it is determined as an abnormal execution;

[0114] Step S64, for the abnormal execution, extract the cause of execution failure in the sliding window execution result, adjust the hierarchical system parameters of the communication event according to the cause of execution failure to obtain an updated level label, and update the protocol combination path according to the updated level label.

[0115] In actual application, corresponding performance thresholds are set for each communication protocol combination path, including a success rate threshold and a retry rate threshold. The success rate threshold reflects communication reliability, and the retry rate threshold reflects communication stability, enabling quantitative monitoring of communication quality. Compare the success rate statistically obtained in the current cycle with the preset success rate threshold, and at the same time compare the retry rate with the preset retry rate threshold. If any index exceeds the threshold, it is determined that the path is in an abnormal execution state, realizing automatic judgment of the path execution state, avoiding misjudgment by a single index, improving evaluation accuracy, and enhancing the fault tolerance ability of the system in a complex network environment. When a certain path continuously shows a low success rate or a high retry rate, it is marked as an abnormal path, triggering a subsequent dynamic adjustment mechanism to quickly identify unstable paths or potential fault points, preventing task failure or service quality degradation caused by path problems. Extract the reasons for execution failure in the sliding window execution result, such as authentication failure, connection timeout, resource shortage, etc., and reverse-impact the event level classification of the communication task according to the failure reasons. For example, an originally medium-priority task is upgraded to a high priority due to frequent timeouts, and then according to the new level label, a better protocol combination path is matched in the protocol call path tree. Realize the dynamic adjustment of the communication task priority, enhance the communication guarantee for key tasks, promote the transformation of the system from static configuration to dynamic evolution, and achieve closed-loop communication optimization.

[0116] An Internet of Things gateway communication protocol collaborative optimization system, by applying an Internet of Things gateway communication protocol collaborative optimization method as described above, includes:

[0117] A hierarchical construction module that constructs a hierarchical system of communication protocol collaboration rules to obtain level labels corresponding to various communication events;

[0118] A path tree construction module that, based on the level labels of various communication events, sets corresponding protocol combination paths for each level to form a protocol call path tree;

[0119] A path management module that, during the execution of a communication task, calls the corresponding protocol combination path according to the protocol call path tree;

[0120] A resource conflict module that, when multiple protocol combination paths share communication resources, calculates the communication scheduling priorities of each protocol combination path and executes scheduling tasks through priority sorting;

[0121] A sliding window monitoring module that, during the execution of a communication task, constructs a sliding time window mechanism to collect the execution feedback data of each protocol combination path to obtain a sliding window execution result;

[0122] An adaptive adjustment module that determines whether the sliding window execution result exceeds the preset performance threshold and dynamically adjusts the hierarchical system parameters of the communication task according to the judgment result to update the protocol combination path.

[0123] In practical applications, first, the hierarchical construction module is utilized to achieve intelligent identification and differential management of task priorities by performing multi-dimensional scoring and level division on communication events, providing a decision-making basis for subsequent protocol selection. Through the path tree construction module, different levels of communication events and their corresponding protocol combination paths are structured and organized to form a protocol execution strategy tree that can be quickly matched and called, improving the system response efficiency and maintainability. Then, the path management module automatically matches the optimal protocol path according to the level label of the communication task to achieve intelligent scheduling and efficient execution of the communication process. The resource conflict module is used to detect and resolve communication resource contention problems during multi-path concurrent execution, ensuring the priority execution of critical tasks through priority sorting, and improving system stability and resource utilization. Then, the sliding window monitoring module is used to dynamically collect feedback data on the execution of protocol paths, evaluate the path performance in real time, and provide reliable data support for system adaptive optimization. Finally, through the adaptive adjustment module, the communication event levels and protocol path configurations are dynamically adjusted based on the performance evaluation results to achieve the closed-loop optimization and autonomous evolution capabilities of the system.

[0124] The above are all preferred embodiments of this application, and the protection scope of this application is not limited thereby. Therefore, all equivalent changes made according to the structure, shape, and principle of this application shall be covered within the protection scope of this application.

Claims

1. An Internet of Things gateway communication protocol collaborative optimization method, characterized in that Including the following steps: Construct a hierarchical system for communication protocol collaboration rules to obtain the level labels corresponding to various communication events; Based on the level labels of various communication events, set the corresponding protocol combination paths for each level to form a protocol call path tree; During the execution of the communication task, call the corresponding protocol combination path according to the protocol call path tree; When there are multiple protocol combination paths sharing communication resources, calculate the communication scheduling priorities of each protocol combination path and execute the scheduling task through priority sorting; During the execution of the communication task, construct a sliding time window mechanism to collect the execution feedback data of each protocol combination path to obtain the sliding window execution result; Judge whether the sliding window execution result exceeds the preset performance threshold, and dynamically adjust the hierarchical system parameters of the communication task according to the judgment result to update the protocol combination path.

2. The collaborative optimization method for an Internet of Things gateway communication protocol according to claim 1, wherein The step of constructing a hierarchical system for communication protocol collaboration rules to obtain the level labels corresponding to various communication events is specifically as follows: Set the maximum allowable response delay time threshold for various communication events, and quantify the real-time score of various communication events according to the response delay time threshold to obtain the real-time score value; Establish a dependency mapping relationship graph between various communication events and service modules, and quantify the service importance score of various communication events based on the dependency mapping relationship graph to obtain the importance score value; Obtain the system scope of action and communication load level after various communication events are triggered, and evaluate the system impact degree score of various communication events based on the system scope of action and communication load level to obtain the impact degree score value; Comprehensively calculate the weighted sum of the real-time score value, importance score value and impact degree score value to obtain the comprehensive response score value of various communication events; Match the comprehensive response score value with the preset response score level interval to obtain the level labels corresponding to various communication events.

3. The collaborative optimization method for the communication protocol of an Internet of Things gateway according to claim 2, characterized in that The step of setting the corresponding protocol combination path for each level based on the level labels of various communication events to form a protocol call path tree is specifically as follows: Based on the level labels of various communication events, set the corresponding protocol combination path for each level; Organize the protocol combination paths corresponding to each level in a tree structure to construct a protocol call path tree; The root node of the protocol call path tree is the communication event level node, the branch node is the protocol combination sequence, and the leaf node is the communication protocol parameter; Store the protocol call path tree in the Internet of Things gateway device, and when a communication event is received, the corresponding protocol path can be matched according to the communication event level label and the scheduling task can be executed.

4. The collaborative optimization method for an Internet of Things gateway communication protocol according to claim 1, characterized in that The step of calling the corresponding protocol combination path according to the protocol call path tree during the execution of the communication task is specifically as follows: During the execution of the communication task, obtain the device status information and external trigger event information associated with the current communication task, and the external trigger event information includes system control instruction information, user intervention instruction information, and abnormal alarm linkage information; Jointly input the device status information and external trigger event information, match the hierarchical system of communication protocol collaboration rules, and determine the event level label to which the communication task belongs; In the protocol call path tree, retrieve the protocol combination path corresponding to the event level label to obtain a path retrieval result; Based on the path retrieval result, call the corresponding protocol combination path to execute the communication task.

5. The collaborative optimization method for an Internet of Things gateway communication protocol according to claim 4, characterized in that The step of calling the corresponding protocol combination path based on the path retrieval result to execute the communication task is specifically: Based on the path retrieval result, if there are multiple protocol combination paths corresponding to the event level label, perform an adaptability scoring on each protocol combination path to obtain the adaptability scores of each protocol combination path; Based on the adaptability scores, set the protocol combination path with the highest adaptability score as the main execution path of the communication task, and set the remaining protocol combination paths as the backup execution paths of the communication task in descending order of the adaptability scores; If the main execution path fails or the main execution path times out, perform protocol switching in sequence according to the backup execution path order to execute the communication task.

6. The collaborative optimization method for an Internet of Things gateway communication protocol according to claim 1, wherein The step of calculating the communication scheduling priority of each protocol combination path and performing a scheduling task through priority sorting when there are multiple protocol combination paths sharing communication resources is specifically: When there are multiple protocol combination paths sharing communication resources, perform resource conflict detection, and add the protocol combination paths with resource conflicts to the scheduling conflict queue; Calculate the communication scheduling priority for each protocol combination path in the scheduling conflict queue to obtain the communication scheduling priority value; Sort all the protocol combination paths in the scheduling conflict queue from high to low according to the communication scheduling priority value to obtain a protocol path priority sequence; Based on the protocol path priority sequence, perform the scheduling task in sequence.

7. A method for collaborative optimization of an Internet of Things gateway communication protocol according to claim 1, characterized in that The step of constructing a sliding time window mechanism during the execution of the communication task to collect the execution feedback data of each protocol combination path to obtain a sliding window execution result is specifically: During the execution of the communication task, construct a sliding time window mechanism, and collect the execution feedback data of each protocol combination path after each protocol combination path is executed; The execution feedback data includes an execution success flag, the number of execution retries, and an exception code feedback; Based on the execution success flag, count the number of successful executions within a preset time window to obtain the execution success rate; Based on the number of execution retries, count the total number of execution retries within a preset time window to obtain the execution retry rate; Based on the exception code feedback, classify and count the exception code feedback, and judge the reason for communication failure to obtain the reason for execution failure; Integrate the execution success rate, the execution retry rate, and the reason for execution failure to obtain the sliding window execution result.

8. A method for collaborative optimization of an Internet of Things gateway communication protocol according to claim 7, characterized in that The step of judging whether the sliding window execution result exceeds a preset performance threshold, dynamically adjusting the hierarchical system parameters of the communication task according to the judgment result, and updating the protocol combination path is specifically: Set a corresponding performance threshold for each communication protocol combination path, and the performance threshold includes a success rate threshold and a retry rate threshold; Based on the sliding window execution result, compare the execution success rate and the execution retry rate in the sliding window execution result with the performance threshold item by item to judge whether the sliding window execution result exceeds the performance threshold; If any one of the indicators in the sliding window execution result exceeds the corresponding performance threshold, it is determined as an abnormal execution; For the abnormal execution, extract the reason for the execution failure in the sliding window execution result, adjust the hierarchical system parameters of the communication event according to the reason for the execution failure, obtain an updated level label, and update the protocol combination path according to the updated level label.

9. An Internet of Things gateway communication protocol collaborative optimization system, characterized in that, Applying an Internet of Things gateway communication protocol collaborative optimization method according to any one of claims 1-8, comprising: A hierarchical construction module that constructs a hierarchical system of communication protocol collaboration rules to obtain level labels corresponding to various communication events; A path tree construction module that sets a corresponding protocol combination path for each level based on the level labels of various communication events to form a protocol call path tree; A path management module that, during the execution of a communication task, invokes the corresponding protocol combination path according to the protocol call path tree; A resource conflict module that, when there are multiple protocol combination paths sharing communication resources, calculates the communication scheduling priorities of each protocol combination path and executes scheduling tasks through priority sorting; A sliding window monitoring module that, during the execution of a communication task, constructs a sliding time window mechanism, collects execution feedback data of each protocol combination path, and obtains a sliding window execution result; An adaptive adjustment module that determines whether the sliding window execution result exceeds a preset performance threshold, dynamically adjusts the hierarchical system parameters of the communication task according to the determination result, and updates the protocol combination path.

Citation Information

Patent Citations

  • Dynamic calculation path optimization method and system based on ant colony algorithm

    CN117689095A

  • Signal I / O control device based on multiple protocols and data transmission method thereof

    CN119363853A

  • Intelligent task alarm rule self-learning method and system based on support priority

    CN119441832A

  • Multi-mode charging pile communication protocol self-adaption method and system

    CN120091074A

  • Self-Organizing Network Concepts for Small Cells Backhauling

    US20180302807A1