Dynamic system configuration and state change notification method and system
By building an information communication center and topological connection diagram, the problems of high expansion costs and limited monitoring range in embedded systems are solved, real-time status monitoring and abnormal warning are realized, and the system's adaptability and reliability are improved.
Patent Information
- Application Number
- CN202510298833.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-07-11
AI Technical Summary
In existing embedded systems and distributed architectures, the discrete state management mechanism leads to high system expansion costs, limited monitoring scope, strong binding of business logic and communication mechanisms, lack of a collaboration mechanism, and the inability to dynamically adjust monitoring strategies and resource allocation in real time loads.
By building an information communication hub and topological connection diagram, a multi-modal state monitoring channel is generated, a detection engine is initialized, the engine status collection is obtained, the subscription relationship mapping matrix and path optimization strategy set is built, dynamic scheduling and exception handling is realized, and multi-protocol adaptation and dynamic routing decisions are supported.
Real-time monitoring and abnormal pre-checking of system status is realized, the real-time and robustness of the system is improved, the efficiency and accuracy of event distribution is ensured, resource allocation is dynamically optimized, and the adaptability and reliability of the system is improved.
Smart Images

Figure CN120301764A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic system configuration, and in particular, to a method and system for dynamic system configuration and state change notification. Background Art
[0002] In current embedded systems and distributed architectures, a discrete state management mechanism is commonly adopted. Its core logic relies on the application program directly connecting to multiple underlying services. It mainly divides the system state into a series of discrete states, and the system makes conversions between these states according to different conditions and events. Its advantage is that the structure is clear and easy to implement.
[0003] However, in the discrete state management mechanism, the application program needs to maintain independent listening threads / processes for each service. And when a new service is added, all relevant applications need to modify the code to access the new listening channel, which will cause the system expansion cost to increase linearly. Moreover, its monitoring scope is limited to explicit configuration changes (such as INI file modification), limited to point-to-point communication dependencies, and unable to abstract state changes into standardized events, resulting in a strong binding between business logic and communication mechanism. And the three major links of state collection, event distribution, and business response act independently, lacking a coordination mechanism and unable to adjust monitoring strategies and resource allocation in real-time according to the load dynamics.
[0004] Therefore, how to provide a method and system for dynamic system configuration and state change notification is an urgent technical problem to be solved by those skilled in the art. Summary of the Invention
[0005] In view of this, the present invention proposes a method and system for dynamic system configuration and state change notification, aiming to solve the problem of the large limitation of a single notification mechanism.
[0006] On the one hand, the present invention proposes a method for dynamic system configuration and state change notification, including:
[0007] Obtain a set of system initialization parameters, where the set of system initialization parameters includes a protocol configuration set and a topology data set;
[0008] Build an information communication center based on the set of system initialization parameters, and generate a protocol routing set and a topology connection diagram of the information communication center;
[0009] Build a multimodal state monitoring channel based on the protocol routing set of the information communication center and the topology connection diagram, initialize the detection engine, and obtain a set of engine states of the detection engine, where the set of engine states includes a state change event set, resource occupancy baseline data, and marking of abnormal pre-check information;
[0010] Construct a subscription relationship mapping matrix based on the topology data set and the application subscription request set, and generate a path optimization strategy set;
[0011] Generate a cross - protocol event set based on the status change event set, generate a transmission quality based on the cross - protocol event set, and dynamically schedule the detection engine path according to the transmission quality;
[0012] Generate an independent channel for exception handling based on the dynamic scheduling situation.
[0013] Further, when constructing an information communication center based on the system initialization parameter set and generating a protocol routing set and a topology connection graph for the information communication center, it includes:
[0014] Perform a weight scoring on the comprehensive performance of the protocol configuration set, sort the weight scores of the protocol configuration set to obtain the protocol configuration set priority, and obtain the protocol configuration set priority data;
[0015] Construct a node capability matrix for the topology data set, calculate its link weight, and generate the topology connection graph in combination with the link weight;
[0016] Determine the comprehensive routing cost based on the protocol configuration set priority data and the topology connection graph, and generate a primary - standby path for each node;
[0017] Obtain the protocol routing set of the information communication center in combination with the comprehensive routing cost and the primary - standby path of the node.
[0018] Further, when constructing a multi - modal status monitoring channel based on the protocol routing set and the topology connection graph of the information communication center, it includes:
[0019] Allocate bandwidth for the multi - modal status monitoring channel:
[0020]
[0021] where BW i is the bandwidth allocated to the channel, Score p is the protocol priority score, TotalBW is the total available bandwidth, and W ij is the link weight;
[0022] Generate a multi - modal status monitoring channel priority score for the multi - modal status monitoring channel and obtain a monitoring channel configuration set:
[0023]
[0024] where Priority iFor the priority score of the multi-modal status monitoring channel, Latency i is the channel latency, Reliability i is the channel reliability score (based on the historical packet loss rate), and the weight coefficients are: α = 0.5, β = 0.3, γ = 0.2.
[0025] Furthermore, initialize the detection engine, obtain the engine status set of the detection engine, and when the engine status set includes a status change event set, resource occupancy baseline data, and mark abnormal pre-check information, it includes:
[0026] Perform a resource group score on the resource group based on the engine complexity and system resource occupancy, and allocate the resource group to the detection engine based on the resource group score;
[0027] Obtain the initial startup parameters of the detection engine, and reconstruct the detection engine startup parameters based on the bandwidth and channel latency;
[0028] For the optimized detection engine, capture the original state signal and encapsulate it into a standardized event, perform event stream priority sorting on the event stream based on the standardized event size and dynamically calculated event priority, and obtain the status change event set;
[0029] Obtain the resource monitoring model of the optimized detection engine, generate baseline data, and obtain the resource occupancy baseline data;
[0030] Obtain the anomaly score of the status change event set and the resource occupancy baseline data, and determine whether it is abnormal:
[0031]
[0032] Among them, AnomalyScore i is the anomaly score, ResourceUsage i is the resource occupancy rate, Baseline i is the baseline data, EventPriority i is the event priority, and AvgEventPriority is the average event priority;
[0033] When the anomaly score is greater than 1.2, it is marked as high risk. When the anomaly score is less than or equal to 1.2 and greater than 1.0, it is marked as medium risk. When the anomaly score is less than or equal to 1.0, it is marked as low risk.
[0034] Furthermore, when constructing a subscription relationship mapping matrix and generating a path optimization strategy set based on the topology data set and the application subscription request set, it includes:
[0035] Construct an event type and subscriber matrix, and construct the subscription relationship mapping matrix based on the subscription relationship weight;
[0036] Determine the comprehensive path quality score based on the subscription relationship mapping matrix and the topological data set:
[0037]
[0038] where PathQuality ij is the comprehensive path quality score, BW ij is the path bandwidth, Latency ij is the path latency, HopCount ij is the path hop count, Cmpatibility ij is the path protocol compatibility score;
[0039] Generate a dual path based on the comprehensive path quality score.
[0040] Further, when generating a cross-protocol event set and transmission quality based on the state change event set and the subscription relationship mapping matrix, it includes:
[0041] Obtain the event flow priority data from the state change event set and encapsulate it, and obtain a cross-protocol event set based on the encapsulated event flow priority data;
[0042] Based on the cross-protocol event set and the path optimization strategy set, evaluate the transmission quality in real time and dynamically adjust the transmission quality.
[0043] Further, when dynamically scheduling the detection engine path according to the transmission quality and the path optimization strategy set, it includes:
[0044] Based on the transmission quality, obtain the path health and perform a path health score on the path health:
[0045]
[0046] where BW ij is the path bandwidth, MaxBW is the system maximum bandwidth, Latency ij is the path latency, SuccessRate k is the path transmission success rate (0-1), Compatibility k is the path protocol compatibility score (0-1), and the weight coefficients: ε is 0.4, χ is 0.3, ψ is 0.2, δ is 0.1;
[0047] Judge the path health score. When the path health score is greater than or equal to 0.9, it is marked as excellent. When the path health score is less than 0.9 and greater than or equal to 0.8, it is marked as good. When the path health score is less than 0.8, it is marked as poor;
[0048] When the path health score of the system is less than 0.8, and when the backup path health score is greater than or equal to the main path health score, switch the detection engine path to the backup path and retain the main path status;
[0049] Dynamically adjust the quality of service based on the path health and the transmission quality:
[0050]
[0051] Among them, is the new quality of service level, is the historical quality of service level, Health k is the path health, Threshold k is the path health threshold.
[0052] Further, when generating an independent channel for exception handling based on the dynamic scheduling situation, it includes:
[0053] Obtain the exception event set and determine the exception event priority in combination with the dynamic scheduling situation;
[0054] Judge the influence value of the exception event on the health of the current path;
[0055] Allocate bandwidth to the independent channel for exception handling based on the exception event priority and the dynamic scheduling situation and generate the priority policy for the independent channel for exception handling.
[0056] Further, when generating an independent channel for exception handling based on the dynamic scheduling situation, it also includes:
[0057] Judge the current exception event priority based on the priority policy for the independent channel for exception handling and trigger the corresponding fuse handling. When a single path fails, switch to the backup path;
[0058] When a multi-region network is interrupted, reduce to the local cache mode;
[0059] When a core hardware exception occurs, enable the safety shutdown process;
[0060] Monitor the fuse handling and dynamically adjust the fuse policy.
[0061] Compared with the prior art, the beneficial effects of the present invention are as follows: By constructing an information communication hub through the system initialization parameter set (protocol configuration set and topology data set), generating the protocol routing set and topology connection graph of the information communication hub, a unified communication infrastructure is provided, which not only supports multi-protocol adaptation and dynamic routing decision-making, but also ensures efficient communication between nodes through the topology connection graph. The multi-modal status monitoring channel constructed based on the protocol routing set and topology connection graph of the information communication hub realizes real-time monitoring and abnormal pre-check of the system state by initializing the detection engine and obtaining the engine status set (including status change event set, resource occupancy baseline data, and abnormal pre-check mark), improving the real-time performance and robustness of the system, and being able to quickly capture state changes and early warning of potential failures. The subscription relationship mapping matrix and path optimization strategy set constructed through the topology data set and application subscription request set ensure the efficiency and accuracy of event distribution. The subscription relationship mapping matrix supports dynamic subscription management, while the path optimization strategy set dynamically adjusts the transmission path in combination with the real-time network state, thereby optimizing the efficiency and quality of event distribution. In the event distribution link, the cross-protocol event set and transmission quality generated based on the status change event set and subscription relationship mapping matrix not only achieve seamless conversion between multiple protocols, but also dynamically schedule the detection engine path through the feedback mechanism of transmission quality. The resource regulation loop formed from the information communication hub to multi-modal status monitoring to intelligent event distribution to adaptive resource regulation to multi-modal status monitoring improves the adaptive ability of the system, and can dynamically optimize resource allocation according to the real-time load and network state to ensure efficient operation. Finally, the independent abnormal handling channel generated based on the dynamic scheduling situation realizes the rapid detection and isolation of abnormal events through the independent log channel and multi-level fusing mechanism. It not only avoids the interference of abnormalities to the core business, but also processes non-core data through the bypass channel, further improving the reliability and maintainability of the system.
[0062] On the other hand, the present application also provides a dynamic system configuration and status change notification system for applying the above-mentioned dynamic system configuration and status change notification method, including:
[0063] An acquisition module, configured to obtain the system initialization parameter set and allow other modules to query the system initialization parameter set;
[0064] A monitoring module, configured to monitor the system state in real time and generate a status change event stream;
[0065] A management module, configured to obtain the application subscription request, parse the event filtering status, and at the same time construct a subscription relationship mapping matrix and store the event type;
[0066] A distribution module, configured to distribute events according to the priority based on the subscription relationship mapping matrix and dynamic routing decision-making, and generate a cross-protocol event set;
[0067] A resource management module, configured to monitor resource occupancy and dynamically allocate bandwidth and computing resources;
[0068] A path scheduling module, configured to judge path health, generate dynamic routing decisions, and perform adaptive path switching according to the real-time network state;
[0069] An exception handling module, which detects and classifies exception events and triggers a multi-level fusing mechanism.
[0070] It can be understood that the above-mentioned method and system for dynamic system configuration and state change notification have the same beneficial effects, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0072] Figure 1 is a flowchart of a method and a system for dynamic system configuration and state change notification provided by an embodiment of the present invention;
[0073] Figure 2 is a functional block diagram of an energy consumption evaluation system for a heat pump system provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0074] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other. Hereinafter, the present invention will be described in detail with reference to the drawings and in combination with the embodiments.
[0075] Refer to Figure 1 As shown, in some embodiments of the present application, this embodiment provides a method and a system for dynamic system configuration and state change notification, including:
[0076] S100: Obtain a system initialization parameter set, where the system initialization parameter set includes a protocol configuration set and a topology data set.
[0077] S200: Build an information communication center based on the system initialization parameter set, and generate a protocol routing set and a topology connection diagram of the information communication center.
[0078] S300: Construct a multi-modal status monitoring channel based on the protocol routing set and topological connection graph of the information communication center, initialize the detection engine, and obtain the engine status set of the detection engine. The engine status set includes a status change event set, resource occupancy baseline data, and marking of abnormal pre-check information.
[0079] S400: Construct a subscription relationship mapping matrix based on the topological data set and application subscription request set and generate a path optimization strategy set.
[0080] S500: Generate a cross-protocol event set based on the status change event set, generate transmission quality based on the cross-protocol event set, and dynamically schedule the detection engine path according to the transmission quality.
[0081] S600: Generate an independent abnormal handling channel based on the dynamic scheduling situation.
[0082] Specifically, first obtain the system initialization parameter set, including but not limited to the protocol configuration set and topological data set. The protocol configuration set is used to determine protocol parameters such as MQTT / CoQP / HTTP, and the topological data set is used to determine the connection relationship of the initial nodes. Through automatic sniffing of the protocol configuration set, it can be identified through the packet preamble, and then a protocol conversion channel can be constructed. For example, an MQTT topic is converted into an HTTP routing path, and then a weight matrix is generated based on the connection delay and bandwidth, and then the protocol routing set and topological connection graph of the information communication center are obtained. Through the protocol routing set of the information communication center, multi-protocol communication is unified. The application only needs to connect to the unified message center, reducing the number of monitoring channels. When a new protocol is supported, the application does not need to modify the monitoring logic. Based on the data of the protocol routing set of the information communication center and obtaining the detection strategy data, multiple detection engines are mixed. The detection strategy data can determine the detection type and frequency. The multiple detection engines include but are not limited to file monitoring, network probes, and environmental perception. After obtaining the engine status set and constructing the detection engine, a subscription relationship matrix is constructed based on the topological data set and application subscription request set. For example, a graph database is used to store the N:M relationship between event types and subscribers to implement conditional subscription syntax parsing, and the optimal path with multiple constraints is determined based on the topological data set. The detection engine path is dynamically scheduled according to the optimal path. When an abnormal event occurs, the independent abnormal handling channel performs fuse handling at the same time.
[0083] It is understandable that by obtaining the protocol configuration set and the topology data set as the system initialization parameter set, and automatically sniffing the protocol configuration set and constructing a protocol conversion channel, the conversion of routing paths such as from MQTT to HTTP can be achieved, and then the protocol routing set and the topology connection graph of the information communication hub can be generated. This enables the unification of multi-protocol communication. Applications only need to connect to the unified message center, reducing the number of listening channels. And when adding new protocol support, there is no need to modify the application listening logic, enhancing the scalability and flexibility of the system. Secondly, based on the protocol routing set and the topology connection graph of the information communication hub, a multi-modal state monitoring channel is constructed, multiple detection engines are mixed and the engine state set is obtained, the system state can be comprehensively monitored, and different types and frequencies of detections can be determined according to the detection strategy data. Furthermore, by constructing a subscription relationship mapping matrix from the topology data set and the application subscription request set and generating a path optimization strategy set, and using a graph database to implement conditional subscription syntax parsing, the subscription relationship can be processed more accurately. At the same time, the optimal path is determined based on the topology data set, and the detection engine path can be dynamically scheduled according to the transmission quality and the path optimization strategy set, improving the operating efficiency and resource utilization rate of the system. Finally, an independent exception handling channel is generated, and when an exception event occurs, a fuse process can be performed, enhancing the stability and reliability of the system and ensuring the safe operation of the system under abnormal conditions.
[0084] In some embodiments of the present application, when constructing an information communication hub based on the system initialization parameter set and generating the protocol routing set and the topology connection graph of the information communication hub, it includes:
[0085] Perform a weight score on the comprehensive performance of the protocol configuration set, perform a priority ranking on the weight score of the protocol configuration set, and obtain the protocol configuration set priority data.
[0086] Construct a node capability matrix for the topology data set, calculate its link weight, and generate a topology connection graph in combination with the link weight.
[0087] Based on the protocol configuration set priority data and the topology connection graph, determine the comprehensive routing cost, and generate a primary and backup path for each node.
[0088] Combine the comprehensive routing cost and the primary and backup paths of the nodes to obtain the protocol routing set of the information communication hub.
[0089] Specifically, score the comprehensive performance of the protocol configuration set:
[0090]
[0091] Among them, BW p is the maximum bandwidth supported by the protocol, Latency p is the typical delay of the protocol, SecurityLevel pis the security level (TLS1.3 = 3, DTLS = 2, no encryption = 1), and according to Score p sort the protocols in descending order, and then obtain the protocol priority list, and construct a node-protocol support matrix M for the topology connection graph n*p , and calculate the link weight:
[0092]
[0093] where BW ij is the link bandwidth, Latency ij is the link latency, HopCount ij is the number of hops (direct connection = 1, relay = 2), Compatibility ij is the protocol compatibility score (fully compatible = 1, partially compatible = 0.5), and then obtain the topology connection graph. Based on the obtained topology connection graph and the protocol priority list, obtain the comprehensive routing cost:
[0094]
[0095] where Wij is the link weight, Score p is the protocol priority score, MaxHops is the maximum allowed number of hops, and generate a primary path and a backup path for each node to form multi-path redundancy, and then obtain the protocol routing set of the information communication center.
[0096] It can be understood that a subscription relationship mapping matrix is constructed to clarify the relationship between event types and subscribers. Based on the topology data set and the subscription relationship mapping matrix, evaluate the comprehensive path quality (based on bandwidth, latency, number of hops, protocol compatibility score), generate a dual-path strategy (primary path and backup path) for path selection during event distribution, optimize the path selection of event distribution, and ensure that high-priority events can be transmitted through the optimal path.
[0097] In some embodiments of the present application, when constructing a multi-modal status monitoring channel based on the protocol routing set of the information communication center and the topology connection graph, it includes:
[0098] Allocate multi-modal status monitoring channel bandwidth to the multi-modal status monitoring channel:
[0099]
[0100] where BW i is the bandwidth allocated to the channel, Score p is the protocol priority score, TotalBW is the total available bandwidth, and W ij is the link weight.
[0101] Generate a multi-modal status monitoring channel priority score for the multi-modal status monitoring channels, and obtain a monitoring channel configuration set:
[0102]
[0103] Among them, Priority i is the priority score of the multi-modal status monitoring channel, Latency i is the channel latency, Reliability i is the channel reliability score (based on the historical packet loss rate), and the weight coefficients are: α = 0.5, β = 0.3, γ = 0.2.
[0104] Specifically, by obtaining the bandwidth allocated to the channel, the channels are prioritized, the current priority of the channel is determined, and the detection configuration table of the channel is obtained.
[0105] In some embodiments of the present application, initialize the detection engine, obtain the engine status set of the detection engine, and when the engine status set includes a status change event set, resource occupancy baseline data, and abnormal pre-check information is marked, it includes:
[0106] Perform a resource group score on the resource group based on the engine complexity and system resource occupancy, and allocate a resource group to the detection engine based on the resource group score.
[0107] Obtain the initial startup parameters of the detection engine, and optimize the detection engine startup parameters based on the bandwidth and channel latency.
[0108] For the optimized detection engine, capture the original state signal and encapsulate it into a standardized event, perform an event stream priority sorting on the event stream based on the standardized event size and the dynamically calculated event priority, and obtain the status change event set.
[0109] Obtain the resource monitoring model of the optimized detection engine, generate baseline data, and obtain the resource occupancy baseline data.
[0110] Obtain the anomaly score of the status change event set and the resource occupancy baseline data, and determine whether it is abnormal:
[0111]
[0112] Among them, AnomalyScore i is the anomaly score, ResourceUsage i is the resource occupancy rate, Baseline i is the baseline data, EventPriority i is the event priority, and AvgEventPriority is the average event priority.
[0113] When the anomaly score is greater than 1.2, it is marked as high risk. When the anomaly score is less than or equal to 1.2 and greater than 1.0, it is marked as medium risk. When the anomaly score is less than or equal to 1.0, it is marked as low risk.
[0114] Specifically, based on the data in the detection channel configuration table, determine the channels with high priority and allocate resources to the channels:
[0115]
[0116] Among them, CPU i is the number of CPU cores allocated to engine i, TotalCPU is the total number of CPU cores, Mem i is the memory size allocated to engine i, TatalMem is the total memory size, Complexity i is the engine complexity (file monitoring = 1, network probe = 2, environment perception = 3). For example, use Linux cgroups to allocate independent resource groups for each engine. After determining the allocated resource groups, optimize the startup parameters of the engines:
[0117]
[0118] Among them, BaseParam is the base parameter value, BW i is the bandwidth allocated to channel i, AugBW is the average bandwidth, Latency i is the latency of channel i. Optimize the startup parameters of the engine. After the detection engine is initialized, capture events and encapsulate the events into standardized events:
[0119]
[0120] Among them, BaseEventSize is the size of the base event, CompressionRatio i is the compression ratio (Zstandard = 5:1, LZ4 = 4:1), Priority i is the channel priority score, AugPriority is the average priority score. Then, sort the standardized events by priority and obtain the sorted set of status change events. At the same time, obtain the resource occupancy data (CPU and memory usage rates) of the detection engine after initialization and obtain the baseline data, and generate the resource occupancy baseline data. Combine the resource occupancy baseline data and the set of status change events, detect its abnormal status, score and mark the abnormal status.
[0121] It is understandable that, according to the priorities of the detection channels and the engine complexity, the number of CPU cores, the memory size, and the bandwidth resources are dynamically allocated to ensure that the high-priority channels obtain sufficient resource support. Linux cgroups are used to allocate independent resource groups for each engine to avoid resource competition and improve system stability. Based on the allocated resources and channel characteristics (such as bandwidth and latency), the engine startup parameters are optimized to ensure that the engine runs in the best state. The parameter values are adjusted through formulas to enable the engine to adapt to different load and network conditions. The captured events are encapsulated into standardized events, and the events are sorted according to the channel priority scores to ensure that high-priority events are processed first.
[0122] The size of the event data is reduced through compression algorithms (such as Zstandard and LZ4) to improve the transmission efficiency. By combining the baseline data of resource occupancy and the set of state change events, abnormal states are detected, scored, and marked, providing a basis for subsequent exception handling.
[0123] In some embodiments of the present application, when constructing a subscription relationship mapping matrix and generating a path optimization strategy set based on the topology data set and the application subscription request set, it includes:
[0124] Construct an event type - subscriber matrix, and construct a subscription relationship mapping matrix based on the subscription relationship weights.
[0125] Determine the comprehensive path quality score based on the subscription relationship mapping matrix and the topology data set:
[0126]
[0127] where PathQuality ij is the comprehensive path quality score, BW ij is the path bandwidth, Latency ij is the path latency, HopCount ij is the path hop count, and Cmpatibility ij is the path protocol compatibility score.
[0128] Generate a dual path based on the comprehensive path quality score.
[0129] Specifically, construct an event type - subscriber matrix based on the topology definition set and the application subscription request set, and obtain the subscription relationship mapping matrix:
[0130]
[0131] where QoSLevel j is the QoS level (0 - 2) of application j, and Latency ijis the transmission delay from event type i to application j, EventPriority i is the priority score of event type i (the event type priority score is to prioritize the event stream based on the event size and the dynamically calculated event priority in the above steps, and obtain the data in the state change event set), weight coefficients: α = 0.5, β = 0.3, γ = 0.2. After obtaining the subscription relationship mapping matrix, the comprehensive quality of the path is evaluated in combination with the topology data set, and a primary path and a backup path are generated for each subscription relationship. The dual paths include: the primary path, the path with the highest comprehensive quality, and the backup path, the sub-optimal path, which meet the minimum bandwidth and delay constraints.
[0132] In some embodiments of the present application, when generating the cross-protocol event set and transmission quality based on the state change event set and the subscription relationship mapping matrix, it includes:
[0133] Obtain the event stream priority data based on the state change event set and encapsulate it, and obtain the cross-protocol event set based on the encapsulated event stream priority data.
[0134] Based on the cross-protocol event set and the path optimization strategy set, evaluate the transmission quality in real time and dynamically adjust the transmission quality.
[0135] Specifically, quantify the performance of the state change event set and the subscription relationship mapping matrix through protocol conversion efficiency, and convert the state change event into the target protocol format:
[0136]
[0137] where FieldMatch p is the protocol field matching degree (for example, the number of MQTT→HTTP field matches / the total number of fields), TotalFields is the total number of event data fields, CompressionRatio p is the compression ratio supported by the protocol. The core of protocol conversion is to adapt the event data of different protocols to the target protocol format as needed. The process includes protocol matching, data parsing, header reconstruction, payload optimization, and transmission adaptation, which can achieve efficient and reliable multi-protocol compatibility, while optimizing resource utilization and real-time response capabilities, and encapsulating the event stream data and obtaining the event encapsulation priority:
[0138] EncapsPriority i = α * EventPriority i + β * SubWeight j + γ * TransEff P ,
[0139] Among them, the weight coefficients are: α = 0.6, β = 0.3, γ = 0.1, where EventPriority i is the event priority score, SubWeight j is the subscription relationship weight, TransEff P is the protocol conversion efficiency. Then, a cross-protocol event set is obtained, and the transmission quality is evaluated in real time by combining with the path optimization strategy set:
[0140]
[0141] Among them, BW k is the available bandwidth of the current path, Latency k is the path delay, SuccessRate k is the historical transmission success rate (0 - 1), Compatibility k is the protocol compatibility score (0 - 1). Dynamic QoS adjustment is performed based on the transmission quality evaluated in real time:
[0142]
[0143] Among them, is the current QoS level (0 - 2), TransQuality k is the transmission quality score (0 - 1), and Threshold is the threshold (0.8).
[0144] It can be understood that in the Internet of Things system, there are various device protocols (such as MQTT for sensors and HTTP for the cloud). Direct transmission will cause compatibility failures. Therefore, the conversion efficiency is quantified by the protocol field matching degree and the compression ratio to ensure the precise adaptation of the data format and transmission semantics. Moreover, the network bandwidth and delay may change over time, and fixed paths and QoS strategies are difficult to adapt to. By evaluating the transmission quality in real time, the optimal path is dynamically selected and the QoS level is adjusted to avoid data loss and ensure the highly reliable transmission of key events. At the same time, high-priority events (such as alarm events) obtain more bandwidth and computing resources, improving resource utilization. And for a single event stream, adjustments are made through dynamic QoS adjustment and path switching to avoid congestion on a single path. In this embodiment, the transmission quality (such as the historical success rate S) is fed back to the protocol conversion and path selection module to form a closed loop of "evaluation to adjustment and then to evaluation" to continuously optimize the performance. The protocol compatibility score reflects the path status in real time, and when an abnormality occurs, it triggers fuse or path switching to improve the system recovery time.
[0145] In some embodiments of the present application, when dynamically scheduling the detection engine path according to the transmission quality and the path optimization strategy set, it includes:
[0146] Obtain the path health based on the transmission quality, and perform a path health score on the path health:
[0147]
[0148] Among them, BW ij is the path bandwidth, MaxBW is the system maximum bandwidth, Latency ij is the path delay, SuccessRate k is the path transmission success rate (0 - 1), Compatibility k is the path protocol compatibility score (0 - 1), weight coefficients: ε is 0.4, χ is 0.3, ψ is 0.2, δ is 0.1.
[0149] Judge the path health score. When the path health score is greater than or equal to 0.9, it is marked as excellent. When the path health score is less than 0.9 and greater than or equal to 0.8, it is marked as good. When the path health score is less than 0.8, it is marked as poor.
[0150] When the path health score of the system is less than 0.8, and when the backup path health score is greater than or equal to the primary path health score, switch the detection engine path to the backup path and retain the primary path status.
[0151] Dynamically adjust the service quality based on the path health and transmission quality:
[0152]
[0153] Among them, is the new service quality level, is the historical service quality level, Health k is the path health, Threshold k is the path health threshold.
[0154] Specifically, by evaluating the path health and dynamically adjusting the service quality, ensure the stability and disaster tolerance of the transmission path. Through the state evaluation and switching of the transmission path, improve the path reliability and fault recovery ability. Through path health monitoring, fault switching and service quality, adjust the global path. Based on the above dynamic adjustment of the transmission quality, provide the transmission quality for this embodiment, support the path health evaluation, and based on the path optimization data in this embodiment, improve the transmission quality and efficiency, form a closed loop from event processing to path evaluation to path optimization and then to event processing, improve the performance, ensure the stability of the transmission link, and improve the end-to-end performance of the system.
[0155] In some embodiments of the present application, when generating an independent channel for exception handling based on the dynamic scheduling situation, it includes:
[0156] Obtain the abnormal event set and determine the abnormal event priority in combination with the dynamic scheduling situation.
[0157] Judge the health impact value of the abnormal event on the current path.
[0158] Allocate bandwidth to the independent abnormal handling channel based on the abnormal event priority and the dynamic scheduling situation, and generate the priority policy for the independent abnormal handling channel.
[0159] In some embodiments of the present application, when generating the independent abnormal handling channel based on the dynamic scheduling situation, it further includes:
[0160] Judge the current abnormal event priority based on the priority policy of the independent abnormal handling channel, and trigger the corresponding fusing process. When a single path fails, switch to the backup path.
[0161] When the multi-region network is interrupted, reduce to the local cache mode.
[0162] When a core hardware abnormality occurs, enable the safety shutdown process.
[0163] Monitor the fusing process and dynamically adjust the fusing policy.
[0164] Specifically, determine the priority of the abnormal event based on the abnormal event set:
[0165]
[0166] Among them, EventPriority i is the original priority (0-1) of the abnormal event, Latency i is the latency of the abnormal event, HealthImpact i is the impact score of the abnormal event on the path health. The weight coefficients are: α = 0.6, β = 0.3, γ = 0.1, and obtain the impact score of the health:
[0167]
[0168] Among them, is the path health before the abnormal event occurs, is the path health after the abnormal event occurs. Determine the independent channel bandwidth allocation through the abnormal event priority and the dynamic scheduling situation:
[0169]
[0170] Among them, TotalBW is the total system bandwidth, ∑AnomalyPriority i is the sum of the priorities of all abnormal events, ∑EventPriorityi Generate an exception handling independent channel priority policy for the total priority of all events:
[0171]
[0172] where Health k is the path health, and Threshold k is the health threshold (0.8).
[0173] In summary, the beneficial effects of the present invention are as follows: By constructing an information communication center through the system initialization parameter set (protocol configuration set and topology data set), generating the protocol routing set and topology connection graph of the information communication center, a unified communication infrastructure is provided, which not only supports multi-protocol adaptation and dynamic routing decision-making, but also ensures efficient communication between nodes through the topology connection graph. The multi-modal status monitoring channel constructed based on the protocol routing set and topology connection graph of the information communication center realizes real-time monitoring and abnormal pre-check of the system state by initializing the detection engine and obtaining the engine state set (including state change event set, resource occupancy baseline data, and abnormal pre-check mark), improving the real-time performance and robustness, and being able to quickly capture state changes and pre-warn potential faults in advance. The subscription relationship mapping matrix and path optimization strategy set constructed through the topology data set and application subscription request set ensure the efficiency and accuracy of event distribution. The subscription relationship mapping matrix supports dynamic subscription management, while the path optimization strategy set dynamically adjusts the transmission path in combination with the real-time network state, thereby optimizing the efficiency and quality of event distribution. In the event distribution link, the cross-protocol event set and transmission quality generated based on the state change event set and subscription relationship mapping matrix not only realize seamless conversion between multiple protocols, but also dynamically schedule the detection engine path through the feedback mechanism of transmission quality. The resource regulation loop formed from the information communication center to multi-modal status monitoring to intelligent event distribution to adaptive resource regulation to multi-modal status monitoring improves the adaptive ability of the system, and can dynamically optimize resource allocation according to real-time load and network state to ensure efficient operation. Finally, the independent exception handling channel generated based on the dynamic scheduling situation realizes rapid detection and isolation of abnormal events through an independent log channel and a multi-level fusing mechanism. It not only avoids interference of abnormalities to core services, but also processes non-core data through a bypass channel, further improving the reliability and maintainability of the system.
[0174] In another preferred manner based on the above embodiments, referring to Figure 2 as shown, the present embodiment provides a dynamic system configuration and status change notification system for applying the above dynamic system configuration and status change notification method, including:
[0175] An acquisition module, configured to obtain the system initialization parameter set and allow other modules to query the system initialization parameter set.
[0176] A monitoring module, configured to monitor the system status in real time and generate a status change event stream.
[0177] A management module, configured to obtain application subscription requests, parse the event filtering status, build a subscription relationship mapping matrix, and store event types.
[0178] A distribution module, configured to distribute events based on the subscription relationship mapping matrix and dynamic routing decisions, according to priorities, and generate a cross-protocol event set.
[0179] A resource management module, configured to monitor resource occupancy and dynamically allocate bandwidth and computing resources.
[0180] A path scheduling module, configured to judge the path health, generate dynamic routing decisions, and perform adaptive path switching according to the real-time network status.
[0181] An exception handling module, configured to detect and classify exception events and trigger a multi-level fusing mechanism.
[0182] Specifically, the acquisition module, as the system foundation, uniformly manages initialization parameters (such as protocol configuration, topology definition), ensuring that other modules can quickly obtain configuration information, avoiding repeated loading or configuration conflicts. The monitoring module captures system status changes in real time (such as CPU load, network latency), generates a standardized event stream, providing a real-time data source for subsequent processing. The management module parses application subscription requests, builds the mapping relationship between event types and subscribers, realizes on-demand distribution, and avoids invalid data transmission. The distribution module distributes data according to event priorities based on the subscription relationship and dynamic routing policies, and generates a cross-protocol event set through protocol conversion, solving the multi-protocol compatibility problem. The resource management module dynamically allocates bandwidth and computing resources, ensuring that high-priority tasks obtain sufficient resources and avoiding performance bottlenecks caused by resource contention. The path scheduling module evaluates the path health (bandwidth, latency, success rate) in real time, dynamically switches the primary and backup paths, and guarantees the high availability of the transmission link. The exception handling module detects exception events (such as hardware failures, network interruptions), triggers a multi-level fusing mechanism (such as traffic degradation, path switching), and prevents the spread of failures.
[0183] It is understandable that through the coordination of dynamic resource allocation, path switching, and protocol conversion, the system can achieve adaptive optimization and continuous performance improvement in the complex and ever-changing Internet of Things environment. The dynamic resource allocation mechanism flexibly allocates CPU, memory, and bandwidth resources according to real-time load fluctuations and device heterogeneity characteristics, ensuring that high-priority tasks (such as emergency alerts or critical control instructions) always obtain sufficient computing power and transmission guarantees, while avoiding redundant resource occupation by low-priority tasks. The path switching strategy intelligently selects the optimal transmission path based on real-time network status (such as bandwidth fluctuations and latency jitter), and seamlessly switches to the backup link when the health of the main path deteriorates, avoiding transmission interruptions caused by network congestion or node failures and enhancing the stability of end-to-end communication. The data linkage between modules further constructs a self-optimizing closed-loop ecosystem - the real-time status data captured by the monitoring module drives the resource management module to dynamically adjust the allocation strategy, the path scheduling module optimizes the routing decision based on resource occupancy and transmission quality feedback, and the exception handling module reversely adjusts the event distribution priority and path selection logic through fuse instructions, forming a continuous iteration of "perception to decision to execution to re-perception".
[0184] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0185] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0186] These computer program instructions can also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable storage medium generate a manufactured product including an instruction device, and the instruction device realizes the functions in Figure 1 one process or multiple processes and / or blocksFigure 1 The functions specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide for implementing the steps of the functions specified in one Figure 1 one process or more processes and / or boxes Figure 1 or more boxes.
[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent replacements can still be made to the specific implementation manners of the present invention. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.
Claims
1. A method for dynamic system configuration and status change notification, characterized in that, Including: Obtain a system initialization parameter set, where the system initialization parameter set includes a protocol configuration set and a topology data set; Construct an information communication center based on the system initialization parameter set, and generate a protocol routing set and a topology connection graph of the information communication center; Construct a multi-modal status monitoring channel based on the protocol routing set of the information communication center and the topology connection graph, initialize the detection engine, obtain an engine status set of the detection engine, where the engine status set includes a status change event set, resource occupancy baseline data, and marking of abnormal pre-check information; Construct a subscription relationship mapping matrix based on the topology data set and an application subscription request set, and generate a path optimization strategy set; Generate a cross-protocol event set based on the status change event set, generate transmission quality based on the cross-protocol event set, and dynamically schedule the detection engine path according to the transmission quality; Generate an independent abnormal handling channel based on the dynamic scheduling situation.
2. The dynamic system configuration and status change notification method according to claim 1, wherein When constructing an information communication center based on the system initialization parameter set and generating a protocol routing set and a topology connection graph of the information communication center, it includes: Perform protocol configuration set weight scoring on the comprehensive performance of the protocol configuration set, perform protocol configuration set priority sorting on the protocol configuration set weight scoring, and obtain the protocol configuration set priority data; Construct a node capability matrix for the topology data set, calculate its link weight, and generate the topology connection graph in combination with the link weight; Determine the comprehensive routing cost based on the protocol configuration set priority data and the topology connection graph, and generate a primary and backup path for each node; Obtain the protocol routing set of the information communication center in combination with the comprehensive routing cost and the primary and backup paths of the nodes.
3. The dynamic system configuration and status change notification method according to claim 2, characterized in that, When constructing a multi-modal status monitoring channel based on the protocol routing set of the information communication center and the topology connection graph, it includes: Allocate bandwidth for the multi-modal status monitoring channel: Among them, BW i is the bandwidth allocated to the channel, Score p is the protocol priority score, TotalBW is the total available bandwidth, and W ij is the link weight; Generate a multi-modal status monitoring channel priority score for the multi-modal status monitoring channel, and obtain a monitoring channel configuration set; Among them, Priority i is the priority score of the multi-modal status monitoring channel, Latency i is the channel latency, Reliability i is the channel reliability score (based on the historical packet loss rate), and the weight coefficients are: α = 0.5, β = 0.3, γ = 0.
2.
4. The dynamic system configuration and status change notification method according to claim 3, characterized in that When initializing the detection engine, obtaining an engine status set of the detection engine, where the engine status set includes a status change event set, resource occupancy baseline data, and marking of abnormal pre-check information, it includes: Perform resource group scoring on the resource group based on the engine complexity and system resource occupancy, and allocate the resource group for the detection engine based on the resource group score; Obtain the initial startup parameters of the detection engine, and reconstruct the detection engine startup parameters based on bandwidth and channel delay; For the optimized detection engine, capture the original state signal and encapsulate it into a standardized event, perform event stream priority sorting on the event stream based on the standardized event size and dynamically calculated event priority, and obtain a status change event set; Obtain the resource monitoring model of the optimized detection engine, generate baseline data, and obtain resource occupancy baseline data; Obtain the abnormal score of the status change event set and the resource occupancy baseline data, and determine whether it is abnormal: Among them, AnomalyScore i is the anomaly score, ResourceUsage i is the resource occupancy rate, Baseline i is the baseline data, EventPriority i is the event priority, and AvgEventPriority is the average event priority; When the abnormal score is greater than 1.2, it is marked as high risk; when the abnormal score is less than or equal to 1.2 and greater than 1.0, it is marked as medium risk; when the abnormal score is less than or equal to 1.0, it is marked as low risk.
5. The dynamic system configuration and status change notification method according to claim 4, wherein When constructing a subscription relationship mapping matrix and generating a path optimization policy set based on the topology data set and the application subscription request set, it includes: Constructing an event type and subscriber matrix, and constructing the subscription relationship mapping matrix based on the subscription relationship weight; Determining the comprehensive path quality score based on the subscription relationship mapping matrix and the topology data set: Among them, PathQuality ij is the comprehensive path quality score, BW ij is the path bandwidth, Latency ij is the path latency, HopCount ij is the path hop count, Cmpatibility ij is the path protocol compatibility score; Generating a dual path based on the comprehensive path quality score.
6. The dynamic system configuration and status change notification method according to claim 5, characterized in that, When generating a cross-protocol event set and transmission quality based on the state change event set and the subscription relationship mapping matrix, it includes: Obtaining the event flow priority data from the state change event set and encapsulating it, and obtaining the cross-protocol event set based on the encapsulated event flow priority data; Based on the cross-protocol event set and the path optimization policy set, evaluating the transmission quality in real time and dynamically adjusting the transmission quality.
7. The dynamic system configuration and status change notification method according to claim 6, characterized in that When dynamically scheduling the detection engine path according to the transmission quality and the path optimization policy set, it includes: Based on the transmission quality, obtaining the path health and performing a path health score on the path health: Among them, BW ij is the path bandwidth, MaxBW is the maximum system bandwidth, Latency ij is the path delay, SuccessRate k is the path transmission success rate (0 - 1), Compatibility k is the path protocol compatibility score (0 - 1), weight coefficients: ε is 0.4, χ is 0.3, ψ is 0.2, δ is 0.1; Judging the path health score of the system. When the path health score is greater than or equal to 0.9, it is marked as excellent; when the path health score is less than 0.9 and greater than or equal to 0.8, it is marked as good; when the path health score is less than 0.8, it is marked as poor; When the path health score is less than 0.8, and when the standby path health score is greater than or equal to the main path health score, switching the detection engine path to the standby path and retaining the main path state; Dynamically adjusting the service quality based on the path health and the transmission quality: Among them, is the new service quality level, is the historical service quality level, Health k is the path health, Threshold k is the path health threshold.
8. The dynamic system configuration and status change notification method according to claim 7, characterized in that, When generating an independent abnormal handling channel based on the dynamic scheduling situation, it includes: Obtaining the abnormal event set and determining the abnormal event priority in combination with the dynamic scheduling situation; Judging the influence value of the abnormal event on the health of the current path; Allocating bandwidth to the independent abnormal handling channel based on the abnormal event priority and the dynamic scheduling situation and generating the priority policy of the independent abnormal handling channel.
9. The dynamic system configuration and status change notification method according to claim 8, characterized in that When generating an independent abnormal handling channel based on the dynamic scheduling situation, it also includes: Judging the current abnormal event priority based on the priority policy of the independent abnormal handling channel and triggering the corresponding fuse handling. When a single path fails, switching to the standby path; When a multi-region network is interrupted, reducing to the local cache mode; When a core hardware abnormality occurs, enabling the safety shutdown process; Monitoring the fuse handling and dynamically adjusting the fuse policy.
10. A dynamic system configuration and status change notification system, applied to the dynamic system configuration and status change notification method according to any one of claims 1-9, characterized in that, It includes: An acquisition module, configured to obtain a system initialization parameter set and allow other modules to query the system initialization parameter set; A monitoring module, configured to monitor the system status in real time and generate a state change event stream; A management module, configured to obtain an application subscription request, parse the event filtering status, and at the same time construct a subscription relationship mapping matrix and store the event type; A distribution module, configured to distribute events according to priorities based on the subscription relationship mapping matrix and dynamic routing decisions, and generate a cross-protocol event set; A resource management module, configured to monitor resource occupancy and dynamically allocate bandwidth and computing resources; A path scheduling module, configured to judge path health, generate dynamic routing decisions, and perform adaptive path switching according to the real-time network status; An exception handling module, which detects and classifies exception events and triggers a multi-level fusing mechanism.
Citation Information
Cited By
Digital twin-driven dynamic topology network intelligent fire-fighting collaboration method and system
CN120806560A
A digital twin-driven intelligent fire-fighting collaborative method and system for dynamic topology networks
CN120806560B
Shell production parameter storage method and system based on Internet of Things
CN121029762A
Communication protocol switching method and device, storage medium and electronic equipment
CN121309692A
Intelligent dynamic topology reconstruction system and method based on multi-modal event driving
CN121561775A