A decentralized distributed production control method and system
Patent Information
- Application Number
- CN202610549392.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-23
- Publication Date
- 2026-08-21
AI Technical Summary
[0004]本申请提供了一种去中心化分布式生产控制方法及系统,可以解决现有技术在网络分区或物理实体变更时无法保障生产控制链路完整性、无法自动形成自治子系统导致生产易中断、网络恢复后无法自动合并拓扑和解决服务冲突以及工业物理实体接入时无法即插即用动态扩缩产线的技术问题
[0015]This application provides a decentralized distributed production control method and system. This scheme deploys a service management module on each physical entity, enabling each node to independently perceive its local service status, thus breaking the dependence of traditional architectures on a central node. The service management modules establish connections with each other via the network and exchange service status information in real time. Based on the collected global information, they build and maintain a real-time service topology locally, ensuring that each node has a comprehensive view of the system's overall operation. Furthermore, when the system encounters network partitioning or physical entity changes, each service management module automatically reorganizes the real-time service topology based on current reachability, dividing the system into several independent subsystems. This allows physical entities within each subsystem to maintain business connectivity and normal operation, thus avoiding overall production paralysis due to local network failures. Subsequently, when network connectivity is restored or physical entities rejoin, each service management module automatically detects and executes a system merging operation, restoring the complete real-time service topology, allowing the system to quickly return to a unified and coordinated state without manual intervention. This effectively solves the problems of easily broken production control links, poor business continuity, and difficult topology recovery in existing technologies under complex and dynamic environments. This solution significantly improves the robustness and adaptability of the production control system through a distributed autonomous decision-making mechanism, achieving high availability and dynamic reconfiguration capabilities in flexible manufacturing scenarios, and ensuring the stability and reliability of industrial production processes.
Smart Images

Figure CN122613900A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial automation and distributed systems technology, specifically to a decentralized distributed production control method and system. Background Technology
[0002] Traditional industrial automation production control systems typically employ a centralized or master-slave system architecture. In this architecture, one or more central nodes are responsible for the unified management, scheduling, and monitoring of the entire production system's operational status. Each slave node connects to the central node via a communication network, executes control commands issued by the central node, and reports its own status information. Existing technologies also include some distributed solutions based on ad hoc network communication, which achieve task scheduling and data synchronization through adaptive allocation mechanisms. These are applied to scenarios such as unmanned systems or intelligent manufacturing, and their core logic often revolves around the bidding and allocation of general-purpose computing tasks.
[0003] In existing technologies, CN120676351A provides a distributed and decentralized technical solution. This solution employs self-organizing network communication to achieve decentralized task scheduling, data synchronization, and inter-node interaction. It enhances the robustness of the distributed environment through an adaptive allocation mechanism and can be applied to scenarios such as unmanned systems, emergency communications, and intelligent manufacturing. However, when facing network partitioning or dynamic changes in physical entities in flexible manufacturing scenarios, it often lacks an effective management mechanism for service dependencies and service topology, making it difficult to guarantee the integrity of the production control link. When network partitioning occurs, the system cannot automatically form an autonomous subsystem capable of independently maintaining business operations, easily leading to production interruptions. Furthermore, after network connectivity is restored, it lacks the ability to automatically merge topologies and resolve service conflicts, making it difficult to achieve plug-and-play functionality for industrial physical entities and rapid reconfiguration of production lines. Summary of the Invention
[0004] This application provides a decentralized distributed production control method and system, which can solve the technical problems of existing technologies such as the inability to guarantee the integrity of the production control link when the network is partitioned or the physical entity changes, the inability to automatically form an autonomous subsystem leading to easy production interruption, the inability to automatically merge the topology and resolve service conflicts after the network is restored, and the inability to dynamically expand and shrink the production line in a plug-and-play manner when industrial physical entities are connected.
[0005] To achieve the above objectives, this application provides the following technical solution: The first aspect of this application provides a decentralized distributed production control method, comprising the following steps: A service management module (SMM) is deployed on each physical entity (PE). The service management module collects the status information of all running services on the physical entity in real time. The service management modules on each physical entity establish communication connections with the service management modules on other physical entities in the system through the network, and exchange the service status information they have in real time. Each service management module builds and maintains a real-time service topology map of the system locally based on the collected global service status information; When the system experiences network partitioning or physical entity changes, each service management module automatically reorganizes the real-time service topology based on reachability, forming one or more independent subsystems. The physical entities within each subsystem continue to maintain business connectivity and normal operation. When network connectivity is restored or physical entities rejoin, each service management module automatically detects and performs system merging to restore the complete real-time service topology of the system.
[0006] Preferably, the service status information includes: service identifier, service type, service operation status, service dependencies, service resource usage, service health indicators, and timestamp information.
[0007] Preferably, the construction of the real-time service topology map adopts an epidemic propagation algorithm, such as the gossip protocol.
[0008] Preferably, the automatic reorganization process of the real-time service topology map includes: The service management module detected a communication interruption with some nodes; Based on the current set of reachable nodes, recalculate the effective set of services that can be formed locally. Based on service dependencies and business rules, determine the service start / stop policy within this partition; Within the partition, the call relationships between services are re-established to form an autonomously operating subsystem.
[0009] Preferably, the process of the service management module automatically detecting and executing system merging includes: The service management module detected a new node reachability event; Exchange service status information with new reachable nodes to identify service conflicts and redundancy; Resolve service conflicts based on a preset merging strategy; Synchronize the global real-time service topology map and restore the complete system view.
[0010] Preferably, the preset merging strategy includes master-slave arbitration, version comparison, and load balancing.
[0011] Preferably, the method further includes a service discovery mechanism: when a new physical entity accesses the network, the service management module deployed on it automatically sends a node online announcement message to the entire network via broadcast or multicast. The message carries the physical entity's identifier, the service type it can provide, the service version, and communication address information. Upon receiving the online announcement, the service management module of an existing physical entity in the system immediately sends a snapshot of the current global service topology to the newly added physical entity. The topology snapshot includes a list of reachable physical entities in the entire network, service deployment information, and service dependencies. The new physical entity completes local service topology initialization based on the received topology snapshot and synchronizes its own service information to all nodes in the network. Thus, it can quickly and automatically integrate into the system without manual configuration or intervention from a central node, achieving plug-and-play functionality for industrial physical entities.
[0012] Preferably, the method further includes a service migration mechanism: the service management module of each physical entity monitors the local load status, resource usage, and operational health in real time; when a physical entity is detected to have excessively high CPU utilization, insufficient memory resources, network congestion, or is about to be actively offline, the service management module of that physical entity selects a migrateable service instance according to a preset load balancing strategy, and filters target physical entities with low load and meeting the service operation conditions across the entire network; subsequently, through collaborative interaction between service management modules, the service instance status is saved, data is synchronized, and the instance is started, smoothly migrating the service to the target physical entity for operation; the entire migration process adopts a non-disruptive switching strategy, is transparent to the upper-layer production business, does not affect the continuity of the production process, and realizes dynamic load balancing of the system and flexible adjustment of the production line.
[0013] The second aspect of this application provides a decentralized distributed production control system, employing any of the aforementioned methods, comprising multiple physical entities, each of which is equipped with a service management module for executing the steps of the decentralized distributed production control method.
[0014] Preferably, the physical entities include, but are not limited to: industrial control computers, PLC controllers, edge computing gateways, I / O slaves, smart sensors, actuators, and virtualization service nodes.
[0015] This application provides a decentralized distributed production control method and system. This scheme deploys a service management module on each physical entity, enabling each node to independently perceive its local service status, thus breaking the dependence of traditional architectures on a central node. The service management modules establish connections with each other via the network and exchange service status information in real time. Based on the collected global information, they build and maintain a real-time service topology locally, ensuring that each node has a comprehensive view of the system's overall operation. Furthermore, when the system encounters network partitioning or physical entity changes, each service management module automatically reorganizes the real-time service topology based on current reachability, dividing the system into several independent subsystems. This allows physical entities within each subsystem to maintain business connectivity and normal operation, thus avoiding overall production paralysis due to local network failures. Subsequently, when network connectivity is restored or physical entities rejoin, each service management module automatically detects and executes a system merging operation, restoring the complete real-time service topology, allowing the system to quickly return to a unified and coordinated state without manual intervention. This effectively solves the problems of easily broken production control links, poor business continuity, and difficult topology recovery in existing technologies under complex and dynamic environments. This solution significantly improves the robustness and adaptability of the production control system through a distributed autonomous decision-making mechanism, achieving high availability and dynamic reconfiguration capabilities in flexible manufacturing scenarios, and ensuring the stability and reliability of industrial production processes.
[0016] In summary, the technical solution provided in this application constructs a complete closed-loop logic from state awareness, information sharing, topology construction to anomaly reorganization and recovery merging. Through decentralized service organization and management, it achieves effective management of service dependencies and service topologies, ensuring the integrity of the production control link; it can automatically form autonomous operating subsystems during network partitioning, avoiding production interruptions; it can automatically complete topology merging and service conflict handling after network recovery, supporting plug-and-play industrial physical entities and rapid production line reorganization; it not only eliminates the risk of single points of failure but also achieves self-healing and dynamic adjustment of the system in the face of network fluctuations and equipment changes, demonstrating a high degree of system integrity and logical self-consistency, providing solid technical support for the intelligent and flexible development of modern industrial production. Attached Figure Description
[0017] Figure 1 A flowchart of a decentralized distributed production control method provided in this application; Figure 2 This application provides a service topology diagram of a system during normal operation. Figure 3 A schematic diagram illustrating the formation of an independent subsystem after network partitioning, as provided in this application; Figure 4A schematic diagram illustrating system reconfiguration after network recovery, provided for the purposes of this application; Figure 5 A schematic diagram of the decentralized distributed production control system architecture provided in this application; Figure 6 A functional structure diagram of a service management module provided in this application. Detailed Implementation
[0018] The present application will now be described in further detail with reference to embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the scope of the application. Example 1
[0019] Traditional industrial automation production control systems typically employ a centralized or master-slave architecture, relying on a central node to uniformly manage, schedule, and monitor the entire production system's operational status. However, this architecture carries the risk of a single point of failure; a failure of the central node can paralyze the entire production system. Furthermore, it is highly dependent on the network; when the communication network fails or partitions, slave nodes cannot communicate with the central node, leading to the loss of some or all production functions. In addition, traditional architectures have poor scalability; adding or removing physical entities requires reconfiguring the central node and often necessitates downtime for maintenance. Moreover, in flexible manufacturing scenarios, real-time reconfiguration and flexible allocation of production resources are difficult to achieve, and the computational and storage pressure on the central node increases dramatically as the system scales up. While some distributed control schemes exist in existing technologies, these schemes still rely on pre-defined hierarchical structures or fixed master-slave relationships. In network partitioning scenarios, the system's adaptive capabilities are limited; it cannot automatically form autonomous subsystems to ensure production continuity, nor can it automatically merge topologies and resolve service conflicts when the network recovers.
[0020] Based on the above issues, please refer to Figure 1 A flowchart of a decentralized distributed production control method provided in this application embodiment is shown. The method includes the following steps: Step 1: Deploy a service management module on each physical entity. The service management module collects the status information of all running services on the physical entity in real time. In this context, physical entities refer to various hardware devices or virtualized nodes that constitute the production control system, specifically including industrial control computers, PLC controllers, edge computing gateways, I / O slaves, smart sensors, actuators, and virtualized service nodes. The service management module is a software functional unit deployed on each physical entity, used to monitor local services, synchronize status, manage topology, and make autonomous decisions. Service status information refers to a data set reflecting the current status of services running on a physical entity, obtained through periodic polling or event-triggered collection by the local service monitoring unit in the service management module. This information serves as the foundational data input for subsequent global topology construction and autonomous decision-making. For example, the service management module can collect the CPU utilization, memory usage, and running heartbeat signal of the logic control service on the current PLC controller every 100 milliseconds. If the heartbeat signal of a data acquisition service is lost for more than 3 seconds, its status is marked as abnormal. This high-frequency, real-time local collection ensures that the system's perception of the underlying service status is highly timely, providing accurate data support for subsequent distributed collaboration. This step aims to eliminate the dependence on the central node and extend state awareness to every edge node, thereby avoiding the problem of blind spots in the monitoring of the entire system due to the failure of the central node.
[0021] Step 2: The service management modules on each physical entity establish communication connections with the service management modules on other physical entities within the system through the network, and exchange the service status information they have acquired in real time; In this context, communication connections refer to point-to-point or multi-point-to-multi-point network connections established between service management modules based on TCP / IP, UDP, or industrial Ethernet protocols. Real-time exchange refers to the service management module broadcasting or multicasting locally collected service status information to neighboring nodes via a state synchronization unit using the gossip protocol or similar epidemic propagation algorithms, and receiving status information from other nodes. The purpose of this process is to break down information silos, enabling each node to obtain the service status of other nodes within the system, thus forming a local mapping from a global perspective. For example, when physical entity PE1 detects a status change in service A, it immediately sends the change message to its directly connected PE2 and PE3. Upon receiving the message, PE2 and PE3 not only update their local views but also continue to forward it to their neighboring nodes, ultimately making the change known to all nodes in the network within hundreds of milliseconds. Figure 2As shown in the diagram, this is a service topology diagram of the system during normal operation. The diagram shows multiple physical entities (such as PE1 to PEN) interconnected through a mesh network. The arrows indicate the exchange paths for service status information. Each node maintains a local view containing the service status of other nodes. This decentralized information exchange mechanism bypasses the data bottleneck that must be forwarded through a central node in traditional architectures, significantly improving the robustness of information propagation and the scalability of the system.
[0022] Step 3: Based on the collected global service status information, each service management module builds and maintains the system's real-time service topology map locally; The real-time service topology graph can be a system model built in local memory in the form of a graphical data structure. Its nodes represent physical entities or service instances, and edges represent dependencies or communication links between services. Construction is based on the service status information collected from all reachable nodes within the system, generated through parsing, fusion, and verification by the topology management unit. Maintenance refers to dynamically updating node attributes (such as online / offline, load level) and edge attributes (such as connection quality, dependency strength) in the topology graph as new status information continuously flows in. The purpose of this topology graph is to provide a complete system context for local autonomous decision-making, enabling each node to independently determine the current system structure. For example, based on the received information, the service management module generates an adjacency matrix in local memory, where rows and columns represent different physical entities, and matrix element values indicate whether there is an active service call relationship between two entities and the current latency value. By maintaining this real-time topology graph locally, each physical entity has a local copy of the entire system state, obtaining the overall network status without querying the central server, thus supporting rapid localized decision-making and fault response.
[0023] Step Four: When a network partition or physical entity change occurs in the system, each service management module automatically reorganizes the real-time service topology based on reachability, forming its own independent subsystem. The physical entities within each subsystem continue to maintain business connectivity and normal operation. A network partition can refer to a network failure, cable breakage, or wireless signal interference causing communication interruptions between some nodes within the system, resulting in the splitting of a previously connected network into multiple unreachable sets. Physical entity changes include unexpected device shutdown, power outages, or deliberate removal. Automatic reorganization refers to the autonomous decision-making unit in the service management module detecting heartbeat timeouts or communication failures, recalculating the effective service set that can be formed locally based on the currently reachable set of nodes, and determining the service startup, shutdown, or degradation strategy within the partition according to preset service dependencies and business rules. An independent subsystem can refer to a local network group composed of remaining reachable nodes after network segmentation, capable of self-sustaining the operation of critical business logic. The purpose of this step is to ensure business continuity in extreme abnormal situations and prevent a complete shutdown due to localized failures. For example, when a system originally consisting of 10 nodes is split into two regions due to a switch failure, the 5 nodes in region A will automatically identify that they are reachable from each other and cut off their dependency requests on nodes in region B. Instead, they will activate backup service instances within the region or adjust process parameters to adapt to the reduced resources, forming an autonomous micro-production line. This significantly improves the system's fault tolerance and survivability in the face of network instability, ensuring that production tasks can continue to be executed within a local area.
[0024] Step 5: When network connectivity is restored or physical entities are rejoined, each service management module automatically detects and performs system merging to restore the complete real-time service topology of the system.
[0025] Network connectivity restoration refers to the resolution of previous communication failures and the re-establishment of interrupted links. Physical entity re-joining refers to the re-entry of previously offline devices or the access of new devices to the network. Automatic detection refers to the service management module identifying reachability change events by monitoring network interface status or receiving heartbeat packets from new nodes. System merging refers to exchanging service status information and topology views maintained during isolation with newly reachable nodes, identifying and resolving potential service conflicts (such as duplicate instances, version inconsistencies, and data disagreements), reaching consensus based on preset merging strategies (such as version comparison, timestamp priority, and load balancing), and finally synchronizing and updating the local real-time service topology map to extend its coverage to the entire system. This step enables the system to achieve self-healing and dynamic elastic scaling, smoothly transitioning from an abnormal state to a normal state without manual intervention. For example, when the disconnected network is repaired, the two independently running subsystem nodes handshake for the first time. They compare the service versions in their respective topology maps and find that the same service has different data states in the two subsystems. At this time, they synchronize the data based on the newer timestamp and re-establish the cross-subsystem service call link, instantly restoring the system to a complete topology containing all nodes. This automated merging mechanism enables rapid reconfiguration and high availability of the production system in dynamically changing environments, supporting plug-and-play and flexible scaling of production lines.
[0026] The decentralized distributed production control method provided in this application completely eliminates the dependence on a single central node by deploying service management modules with independent perception and decision-making capabilities on each physical entity, thus eliminating the risk of single point of failure at the architectural root. The service management modules exchange status information through real-time decentralized communication and build and maintain a global service topology locally, giving each node a complete view of the system and achieving true distributed collaboration. Based on this, when encountering anomalies such as network partitions or equipment changes, the system can automatically reorganize the topology based on local reachability, quickly forming multiple autonomously operating subsystems to ensure that critical business operations remain continuous and uninterrupted in isolated environments. When the network recovers or new equipment is added, the system can automatically detect and execute a merging operation, intelligently resolving service conflicts and synchronizing the global view, quickly restoring the complete system operating state. This mechanism not only significantly improves the robustness and fault tolerance of the production control system but also endows the system with strong flexibility and scalability, enabling it to adapt to the frequent production line reorganization and dynamic equipment access requirements in flexible manufacturing scenarios, achieving efficient autonomous management and optimized allocation of production resources. Example 2
[0027] In another alternative embodiment, the method further includes specific limitations on the service status information.
[0028] Step 1: Service status information includes: service identifier, service type, service running status, service dependencies, service resource usage, service health indicators, and timestamp information; Among them, the service identifier can be a unique code used to distinguish different service instances in a distributed system. Its source can be a globally unique identifier (UUID) generated when the service starts or an encoding based on a combination of physical entity number and service sequence number. Its function is to ensure that service management modules can accurately locate specific services when exchanging information, avoiding identity confusion. The service type defines the functional category of the service, such as data acquisition service, logic control service, human-machine interface service, or communication gateway service. The system determines its role in the production process and the allowed calling objects based on the service type. The service running status characterizes the current execution status of the service, including running, stopped, faulty, initializing, or suspended states, and is a direct basis for judging service availability. Service dependencies describe the upstream services that the current service must call or the logical links called by downstream services for normal operation. This information is obtained by parsing service configuration files or dynamic tracking at runtime and is used to assess the integrity of business links during topology reorganization. Service resource consumption reflects the degree of consumption of computing, storage, and network bandwidth during service operation, specifically including CPU... The system displays metrics such as utilization, memory usage, and network throughput. Service health metrics are quantitative assessments of service stability based on preset algorithms, such as scores calculated from continuous fault-free runtime, error log frequency, or response latency. These scores assist decision-making modules in prioritizing high-reliability instances during service conflicts or migrations. Timestamp information records the specific time of the last update of the above status data. Its purpose is to serve as a basis for version comparison and data conflict resolution during the merging process after network partition recovery. For example, when a logical control service A depends on a data acquisition service B, the service status information explicitly records that A depends on B. If a network partition causes B to become unreachable, the system immediately determines that A cannot run independently and triggers a degradation strategy based on this dependency, rather than blindly attempting to restart A. Similarly, when merging two partitions, if two instances of the same service with different states are found, the system automatically retains the instance data with the newer timestamp (i.e., more real-time status) and overwrites expired information by comparing timestamps. Through the collection and exchange of service status information in multiple dimensions, the service management modules on each physical entity can construct a panoramic view that includes identity, function, status, association, load and timeliness. This provides an accurate data foundation for subsequent construction of real-time service topology maps, execution of network partition autonomous reorganization and conflict resolution during system merging, effectively avoiding control link breakage or data inconsistency problems caused by lack of status awareness.
[0029] This application introduces refined service status information, including service dependencies, resource usage, and health indicators, to closely coordinate with the global information collection and topology construction steps in section 1. Specifically, the existence of service dependencies allows the service management module to quickly calculate an effective subset of services based on the set of reachable nodes when a network partition is detected, activating only those services whose dependencies can be satisfied, thereby ensuring the integrity of business links within the subsystem. Service resource usage and health indicators provide quantitative basis for load balancing and service migration, enabling the system to intelligently schedule critical services to physical entities with lower loads or higher health during reorganization. The introduction of timestamp information, combined with a preset merging strategy, ensures that when network connectivity is restored, each node can automatically resolve service conflicts based on the latest status data, synchronizing a consistent global real-time service topology map without manual intervention. This definition and utilization of multi-dimensional status information significantly improves the adaptability and decision-making intelligence of the decentralized production control system in complex dynamic environments. Example 3
[0030] In an optional embodiment, the method further includes: Step 1: The construction of the real-time service topology graph adopts the epidemic propagation algorithm. The epidemic propagation algorithm can refer to a distributed information diffusion protocol based on a random gossip mechanism. Its core lies in the fact that each service management module does not rely on a central node for scheduling, but instead periodically and randomly selects several neighboring nodes within the system as communication targets. This algorithm, through an infection-exchange-recovery or similar random propagation model, transmits a copy of the latest service status information held by the current node to the selected neighboring nodes. Nodes that do not receive the information will then continue to receive information from other infected nodes, causing the service status information to spread rapidly throughout the network like a virus, ultimately achieving consistent convergence of global data. The role of the epidemic propagation algorithm is to solve the problems of high single-point failure risk, significant communication bottlenecks, and poor scalability inherent in traditional centralized polling or tree-structured synchronization mechanisms in large-scale distributed production control systems. Specifically, each service management module maintains a list of service states to be propagated locally. Every preset time slice (e.g., 500 milliseconds), it randomly selects 2 to 3 reachable physical entity nodes, packages and sends key data such as local service identifiers, running status, and timestamps. After comparing versions, the receiving node merges the updated data into its local view and continues to propagate it outward in the next cycle. For example, in a flexible manufacturing production line with 100 physical entities, if a newly added PLC controller updates its load status, this status information can be covered to all nodes in the network within approximately log2(100), or 7 propagation cycles, without needing to go through a specific routing path. Through this random and redundant propagation method, even if some links in the network are interrupted or nodes are temporarily offline, the information can still reach the target node through other random paths, thereby significantly improving the robustness and real-time performance of service topology construction and ensuring that each physical entity can quickly obtain a consistent global service view in a dynamically changing industrial environment.
[0031] This application employs the epidemic propagation algorithm to construct a real-time service topology map, which works closely with the service management modules deployed on various physical entities and the mechanism for real-time exchange of service status information. The service management module, as the execution carrier of the algorithm, leverages the decentralized nature of the epidemic algorithm to eliminate dependence on specific master nodes or fixed communication links; while the real-time exchanged information flow provides the algorithm with a continuously updated source of information, ensuring the freshness of the topology map. Based on this, leveraging the inherent fault tolerance and low communication overhead of the epidemic algorithm, the system can quickly complete state synchronization before network partitioning occurs, or accelerate the topology merging process in the early stages of network recovery, effectively avoiding business decision delays caused by synchronization latency. Furthermore, the algorithm's random selection mechanism disperses network traffic peaks, preventing local network congestion during high-frequency interactions of production control commands, thereby ensuring the integrity and continuity of the production control link under various complex operating conditions and achieving true adaptive decentralized autonomous management. Example 4
[0032] One possible implementation is, such as Figure 3 The diagram shown is a schematic of a network partitioning process to form an independent subsystem according to an embodiment of this application. The method also includes an automatic reorganization process of the real-time service topology, specifically including the following steps: Step 1: The service management module detects communication interruptions with some nodes. This detection can refer to the service management module identifying the unreachable state of some physical entities in the current network environment through methods such as heartbeat mechanisms, link status monitoring, or communication timeout determination. The service management module periodically sends heartbeat packets or status query commands to other known nodes in the system. When no response is received from a specific node within a preset time window, or a connection failure signal is received from the network layer, it determines that communication with those nodes is interrupted. This detection mechanism is a prerequisite for triggering subsequent reorganization processes, ensuring that the system can sensitively perceive dynamic changes in the network topology. For example, setting a heartbeat timeout threshold of 3 seconds, if the service management module does not receive a response from node PE6 within 3 consecutive cycles, then node PE6 is marked as having a communication interruption state. Through this real-time connectivity detection, the system can quickly detect network partition events, providing accurate input for initiating autonomous reorganization.
[0033] Step 2: Based on the current set of reachable nodes, recalculate the effective set of services that can be formed locally; The currently reachable node set refers to the list of physical entities that, after the aforementioned checks, are confirmed to still maintain communication connections. The effective service set refers to the union of service instances running on these reachable nodes that can satisfy basic business logic. The service management module first traverses the locally maintained global service topology map, eliminating all service instances located on unreachable nodes. Then, combining the resource configuration and service deployment of the remaining reachable nodes, it filters out the service resources actually available in the current network environment. This process aims to narrow down from a global perspective to a local perspective, clearly defining the boundaries of available capabilities within a partition. For example, if the original system contained 10 nodes, and after a network failure, only nodes PE1 to PE5 remain reachable, the service management module will automatically exclude services deployed on PE6 to PE10, retaining only data acquisition, logic control, and other services running on PE1 to PE5, forming a new effective service set. By recalculating the effective service set based on reachable nodes, the interference of unreachable services on subsequent decisions is eliminated, focusing on locally executable functional resources and laying the data foundation for building an autonomous subsystem.
[0034] Step 3: Based on service dependencies and business rules, determine the service start / stop strategy within this partition. Service dependencies describe the logical constraints between different services, such as the order of invocation and data input / output relationships. Business rules are predefined handling logics for abnormal scenarios, including strategies such as prioritizing core business operations and degrading or suspending non-critical functions. The service management module uses the obtained set of valid services to perform integrity verification against the locally stored service dependency graph. If an upstream dependency service of a critical service is missing due to node unreachability, the business rules determine whether the critical service should switch to standby mode, reduce its operating precision, or temporarily stop to prevent system errors or data inconsistencies caused by missing dependencies. For example, if the precision assembly service heavily depends on the vision inspection service, and the node where the vision inspection service resides has lost connection, according to the core process integrity business rules, the system will automatically issue an instruction to stop the precision assembly service to avoid producing defective products; simultaneously, the material conveying service, which does not depend on the vision service, will maintain normal operation. Through the coordinated operation of service dependencies and business rules, the system can make optimal start / stop decisions in resource-constrained partition environments, ensuring the logical correctness of critical links while maximizing the utilization of available resources.
[0035] Step 4: Re-establish service call relationships within the partition, forming an autonomous subsystem. Re-establishing service call relationships may involve updating the service registry, routing rules, and communication endpoints, enabling service instances within the partition to discover and interact correctly. An autonomous subsystem is a functionally closed-loop, logically self-consistent, independent operating unit. Based on the determined start / stop policies, the service management module issues configuration update commands to each physical entity within the partition, modifying the service call addresses, redirecting service requests originally directed to disconnected nodes to available instances or local caches within the partition, and severing all communication links to unreachable external nodes. As shown in Figure 3, this figure details the system structure after network partitioning. The original overall network is divided into two independent regions. Nodes PE1 to PE5 in the left region, after disconnecting from the right region, form a new mesh connection structure. The arrows indicate the reconstructed service call flow, ensuring that data only flows within the partition. Through this dynamic reconstruction mechanism, the originally scattered service instances are reorganized into a closely cooperating whole within a local scope, thereby forming a functionally self-consistent micro-production system. This ensures that production operations are not interrupted during network partitioning, achieving local autonomy and high availability of the system.
[0036] This application achieves highly efficient self-healing capabilities under a decentralized architecture through the synergistic effect of the aforementioned technical features. By enabling real-time detection of communication interruptions through the service management module, the system can instantly perceive network topology disruptions. Based on this, it recalculates the effective service set based on the reachable node set, quickly defining resource boundaries in the current environment. Furthermore, it formulates precise start-up and shutdown strategies by combining service dependencies and business rules, avoiding cascading failures caused by missing dependencies. Finally, by rebuilding service call relationships within the partition, it consolidates loosely distributed available nodes into autonomously operating subsystems. This series of interconnected steps allows the system to automatically converge to a stable state without central node intervention when network partitions occur. This not only ensures the integrity of the production control link but also significantly improves the system's business continuity and robustness under extreme network conditions. Example 5
[0037] One possible implementation is, such as Figure 4 The diagram shown is a schematic of system reorganization after network recovery according to an embodiment of this application. The method also includes the process of the service management module automatically detecting and executing system merging, specifically including the following steps: Step 1: The service management module detects a new node reachability event. This new node reachability event can refer to a change in the communication status of a previously unreachable node that was previously offline due to network partitioning or physical entity offline, detected by the service management module through heartbeat mechanisms, link-layer status monitoring, or application-layer handshake signals. This event is the starting condition for triggering the system merge process, indicating a positive change in the network topology. Specifically, the service management module periodically sends probe packets to the known node list. When it receives a response from a previously unresponsive node or listens for a link recovery signal reported by the network interface, it determines that a new node reachability event has been detected. For example, after the network fault between physical entity PE5 in partition A and physical entity PE6 in partition B is resolved, the service management module of PE5 receives a liveness confirmation packet from PE6 in the next heartbeat cycle, thus generating a reachability event flag for PE6. This real-time detection mechanism ensures that the system starts the merge process as soon as network connectivity is restored, preventing subsystems from operating in isolation for extended periods and providing timeliness guarantees for subsequent global view recovery.
[0038] Step 2: Exchange service status information with new reachable nodes to identify service conflicts and redundancies; The exchange of service status information can refer to bidirectional data synchronization between the service management module initiating the merger and the newly reachable node, transmitting snapshots of the service status that each module independently maintained during the partitioning period. Service conflicts can refer to service instances that exist simultaneously in two subsystems and have overlapping functions, while service redundancy can refer to duplicate service resource usage that exceeds the normal operating requirements of the system. Specifically, the information exchanged by both parties includes key fields such as service identifier, version number, timestamp, dependencies, and resource usage. The service management module compares the received remote service status information with the locally stored status information, identifying conflicts by verifying the uniqueness of the service identifier and the newness of the version. For example, if partition A is running a material handling service with version V2.0, while partition B also independently started a material handling service with the same name but version V2.1 during the isolation period, the comparison result will mark the service as having a version conflict; if both partitions have started unnecessary backup data acquisition services, it will be marked as resource redundancy. As shown in Figure 4, this diagram details the process of information exchange and conflict identification between nodes. Different colored blocks represent the service state differences evolving within different partitions, and arrows indicate the direction of state information exchange and the logic for locating conflict points. This identification process accurately pinpoints state divergences caused by network splits, providing a precise data foundation for subsequent conflict resolution and preventing misconfigurations from being introduced into the merged system.
[0039] Step 3: Resolve service conflicts based on preset merging strategies. Preset merging strategies refer to a set of rules predefined in the service management module, used to automatically decide which service instance to retain, which to stop, or how to adjust service parameters to eliminate inconsistencies when a service conflict is detected. These strategies include, but are not limited to, master-slave arbitration, version comparison, and load balancing. Specifically, when a conflict is identified, the service management module calls the preset strategy engine: if a version comparison strategy is used, the service instance with the higher version number or newer timestamp is retained, and the older version instance is terminated; if a master-slave arbitration strategy is used, the master node is determined according to a preset priority list or election algorithm, and the state of the master node overrides the state of the slave node; if a load balancing strategy is used, the optimal instance is selected from multiple available instances based on the current CPU and memory usage, and the remaining instances are either put into standby mode or migrated to other nodes. For example, regarding the version conflict of the aforementioned material handling service, the system automatically determines that version V2.1 is superior to version V2.0 based on the version comparison strategy. It then instructs the V2.0 instance in partition A to perform a smooth shutdown and loads the configuration parameters of version V2.1, thereby unifying the service versions. Through this automated conflict resolution mechanism, the data silo effect caused by network partitions can be eliminated without manual intervention, ensuring consistent service logic and optimal resource allocation in the merged system.
[0040] Step 4: Synchronize the global real-time service topology graph and restore the complete system view. Synchronizing the global real-time service topology graph refers to broadcasting and updating the latest service status information, after conflict resolution, to all reachable nodes within the system via the gossip protocol or epidemic propagation algorithm, causing each node's local topology graph to converge to the same state. The complete system view refers to the finalized, consistent topology structure containing all online physical entities and their service dependencies within the system. Specifically, after resolving local conflicts, the node initiating the merge generates an incremental update packet and sends it to its directly connected neighbor nodes. The neighbor nodes receive the packet and continue propagating it downstream until the entire network is covered. During this process, each node updates its local service dependency graph in real time, reactivating cross-regional service call links that were suspended due to partitioning. For example, with the merging of PE5 and PE6, the call relationship between the order processing service, which originally only ran in partition A, and the finished product packaging service, which only ran in partition B, is re-established. The connection between these two service nodes in the global topology graph is restored, and the system as a whole merges from two independent sub-topologies into a connected large graph containing PE1 to PE10. This significantly enhances the overall coordination capability of the system, restores the production control chain to its integrity, and ensures the continuous execution of cross-unit business processes in flexible manufacturing scenarios.
[0041] This application achieves automated system reconfiguration in network recovery scenarios through the synergistic effect of the above steps. By detecting new node reachability events, the system can keenly capture dynamic changes in the network environment and promptly trigger the merging process. By exchanging service status information with newly reachable nodes and identifying conflicts and redundancies, the system can accurately locate state inconsistencies caused by network splits, avoiding logical confusion caused by blind merging. On this basis, by resolving service conflicts with preset merging strategies, the system can intelligently adjudicate based on version, priority, or load conditions to ensure the preservation of the optimal service instance and eliminate the risk of resource contention. Furthermore, by synchronizing the global real-time service topology map, the local views of all nodes are quickly converged into a consistent global view, restoring complete system cognition. As shown in Figure 4, which is a schematic diagram of system reconfiguration after network recovery, it can be seen that the two originally separate subsystems are seamlessly integrated into a unified operating entity after state exchange, conflict resolution, and topology synchronization. The service call chain is rebuilt, and the system restores full-function operation within seconds, effectively avoiding the problems of manual reconfiguration or long downtime required for network recovery in traditional centralized architectures, and significantly improving the robustness and self-healing capability of distributed production control systems. Example 6
[0042] In one possible implementation, the method also includes specific limitations on the service conflict resolution strategy during the system merging process.
[0043] Step 1: Preset merge strategies include master-slave arbitration, version comparison, and load balancing. A preset merge strategy refers to the set of rules used by the service management module to adjudicate service instance conflicts, eliminate redundancy, and determine the final service deployment plan when performing system merges. This strategy is pre-configured or dynamically selected based on the system's current business needs, network topology, and physical resource availability.
[0044] Specifically, the master-slave arbitration strategy is applicable to production control scenarios with clearly defined master and backup roles. When instance conflicts for the same service are detected on multiple nodes, the service management module makes a ruling based on a pre-defined master-slave relationship table, prioritizing the retention of service instances on the physical entity marked as the master node, while stopping or migrating duplicate instances on slave nodes. For example, in a dual-active redundant system, if PE1 is configured as the master controller and PE2 as the backup controller, when the network recovers and merges, even if PE2 starts a critical control service first, the system will still force the retention of the instance on PE1 according to the master-slave arbitration strategy, ensuring the uniqueness and determinism of control commands.
[0045] Version comparison strategies can refer to mechanisms that determine the superiority or inferiority of services based on their software version number, configuration file version, or data timestamp. When exchanging status information, the service management module extracts the version identifiers of each conflicting instance and compares them by numerical value or time sequence. It automatically retains instances with higher version numbers or more recent timestamps and discards older version instances. For example, if PE3 upgrades its data acquisition service to version V2.0 during partitioning, while PE4 is still running version V1.0, the version comparison strategy will determine V2.0 as the valid instance during network recovery and merging. It will automatically terminate the old version service on PE4 and complete configuration synchronization, thereby ensuring that the entire system always runs on the latest and most stable software configuration and avoiding logical errors caused by version inconsistencies.
[0046] Load balancing strategies are mechanisms for dynamic scheduling based on the real-time resource utilization of physical entities. After identifying a conflict, the service management module considers not only the service's own status but also comprehensively evaluates load indicators such as CPU utilization, remaining memory, and network bandwidth of each candidate node, retaining the service instance on or migrating it to a node with a lower load. For example, if PE5 and PE6 are both running the same computing service and a conflict occurs, but PE5's current load rate is 85% while PE6's is only 30%, the load balancing strategy will decide to retain the service instance on PE6 and migrate or stop the instance on PE5, thereby optimizing the overall system's resource utilization and preventing individual nodes from causing new failures due to overload.
[0047] The three strategies mentioned above do not exist in isolation, but work closely with the conflict identification function of the service management module. Master-slave arbitration ensures the determinism of critical control links, version comparison ensures the advancement and consistency of system configuration, and load balancing improves the stability and efficiency of system operation. Through the flexible combination and application of these three strategies, the system can intelligently respond to different types of merge conflicts, achieving a smooth and efficient transition from local autonomous subsystems to a globally complete topology.
[0048] This application introduces multiple preset merging strategies, including master-slave arbitration, version comparison, and load balancing, to achieve adaptive conflict resolution for different business scenarios. With the support of the master-slave arbitration strategy, the system can quickly establish dominance of core services during complex network recovery processes, avoiding control chaos caused by split-brain phenomena. Combined with the version comparison strategy, the system automatically removes outdated service instances, ensuring real-time updates and accurate execution of production control logic. Through the load balancing strategy, the system dynamically optimizes resource distribution during the merging process, effectively avoiding performance bottlenecks caused by resource contention. These strategies work together to enable the decentralized distributed production control system to intelligently reconstruct and optimize service topology without manual intervention when facing network partition recovery or the addition of new nodes, significantly improving the system's self-healing capabilities, operational efficiency, and flexible adaptability. Example 7
[0049] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a computer system suitable for implementing the embodiments of this application.
[0050] like Figure 5 As shown, the system consists of N physical entities (PE1, PE2, …, PEN), each of which can be an industrial control computer, PLC controller, edge computing gateway, or other device with computing and communication capabilities. A Service Management Module (SMM) is deployed on each physical entity. Further details are as follows... Figure 6 As shown, the service management module includes: Local service monitoring unit: used to collect the real-time status of various services running on this physical entity (such as data acquisition service, logic control service, human-machine interface service, communication gateway service, etc.); State synchronization unit: responsible for communicating with the service management modules of other physical entities and exchanging service status information; Topology Management Unit: Based on the collected global information, it constructs and maintains the system's real-time service topology map; Autonomous Decision-Making Unit: In the event of network changes or failures, it executes decisions such as service reorganization, migration, and merging; Service Execution Unit: Responsible for specific operations such as service startup, shutdown, and configuration.
Claims
1. A decentralized distributed production control method, characterized in that, Includes the following steps: A service management module is deployed on each physical entity, and the service management module collects the status information of all running services on the physical entity in real time. The service management modules on each physical entity establish communication connections with the service management modules on other physical entities in the system through the network, and exchange the service status information they have in real time. Each service management module builds and maintains a real-time service topology map of the system locally based on the collected global service status information; When the system experiences network partitioning or physical entity changes, each service management module automatically reorganizes the real-time service topology based on reachability, forming its own independent subsystem. The physical entities within each subsystem continue to maintain business connectivity and normal operation. When network connectivity is restored or physical entities rejoin, each service management module automatically detects and performs system merging to restore the complete real-time service topology of the system.
2. The decentralized distributed production control method as described in claim 1, characterized in that, The service status information includes: service identifier, service type, service operation status, service dependencies, service resource usage, service health indicators, and timestamp information.
3. The decentralized distributed production control method as described in claim 1, characterized in that, The real-time service topology graph is constructed using the epidmic propagation algorithm.
4. The decentralized distributed production control method as described in claim 1, characterized in that, The automatic reorganization process of the real-time service topology map includes: The service management module detected a communication interruption with some nodes; Based on the current set of reachable nodes, recalculate the effective set of services that can be formed locally. Based on service dependencies and business rules, determine the service start / stop policy within this partition; Within the partition, the call relationships between services are re-established to form an autonomously operating subsystem.
5. The decentralized distributed production control method as described in claim 1, characterized in that, The service management module automatically detects and executes the system merging process, which includes: The service management module detected a new node reachability event; Exchange service status information with new reachable nodes to identify service conflicts and redundancy; Resolve service conflicts based on a preset merging strategy; Synchronize the global real-time service topology map and restore the complete system view.
6. The decentralized distributed production control method as described in claim 5, characterized in that, The preset merging strategies include master-slave arbitration, version comparison, and load balancing.
7. The decentralized distributed production control method as described in claim 1, characterized in that, It also includes a service discovery mechanism, where newly added physical entities announce their existence through broadcast or multicast, existing nodes respond and provide a snapshot of the current system topology, and new nodes quickly integrate into the system based on this.
8. The decentralized distributed production control method as described in claim 1, characterized in that, It also includes a service migration mechanism. When a physical entity is overloaded or about to go offline, its service management module coordinates the migration of some service instances to other physical entities. The migration process is transparent to the business.
9. A decentralized distributed production control system, employing the decentralized distributed production control method according to any one of claims 1-8, comprising multiple physical entities, characterized in that, Each physical entity has a service management module deployed to execute the steps of the decentralized distributed production control method.
10. A decentralized distributed production control system as described in claim 9, characterized in that, The physical entities include industrial control computers, PLC controllers, edge computing gateways, I / O slaves, smart sensors, actuators, and virtualization service nodes.
