Introduction
In modern smart environments, automation relies on "Sense-Trigger-Actuate" (STA) routines—simple logic like "if a motion sensor is triggered, turn on the lights." While consumer solutions often depend on central hubs or cloud connectivity, these models are ill-suited for large-scale industrial edge deployments such as smart factories, expansive farms, or tactical environments.
In these settings, a central controller represents a single point of failure and a significant bandwidth bottleneck. As the number of devices scales into the thousands, the communication overhead of reporting every status update to a central hub becomes unsustainable. CoMesh addresses these challenges by decentralizing control, moving the "brain" of the system directly into the device mesh.
System Architecture
CoMesh introduces a decentralized control plane that manages STA routines through several key innovations:
Locality-Aware k-groups
Instead of a single controller, CoMesh assigns a small subgroup of "smart" devices, called a k-group (typically size $k = 2f+1$), to manage each specific routine. This redundancy ensures that the routine remains operational even if up to $f$ devices in the group fail.
Zero-Message Member Selection
To eliminate the overhead of group election protocols, CoMesh utilizes consistent hashing. Every node in the network can independently determine the membership of any k-group based solely on device IDs, requiring zero network communication for coordination.
Locality-Sensitive Hashing (LSH)
While standard hashing distributes group members randomly, CoMesh employs Locality-Sensitive Hashing (LSHMix). This ensures that the smart devices managing a sensor are physically close to that sensor, minimizing communication "hops" and reducing latency.
Temporal Load Balancing
To prevent specific nodes from being over-utilized, k-group memberships migrate periodically across "epochs." This temporal rotation ensures a fair distribution of computational and communication load across the entire mesh.
Evaluation and Results
The researchers evaluated CoMesh using a large-scale simulator (up to 1,000 nodes) and a physical testbed of 11 Raspberry Pi 4 devices.
- Bandwidth Efficiency: CoMesh achieves a 10x reduction in control traffic compared to centralized architectures by processing logic locally within the mesh.
- Scalability: As shown in the performance metrics, the average quorum distance remains stable and significantly lower than random assignment as the number of devices grows.
- Fault Tolerance: The system demonstrated high resilience; in real-world tests, operations like leader election and quorum agreement were completed in a median of 1.1 seconds, maintaining responsiveness even under stress.
- Probabilistic Robustness: While designed for $f$ failures per group, the distributed nature of the system allows it to maintain high overall availability even when total network failures exceed the design limit by nearly an order of magnitude.
Conclusion and Future Work
CoMesh proves that fully decentralized control is not only possible but superior for large-scale edge meshes. By leveraging locality and consistent hashing, it provides a resilient, low-bandwidth alternative to fragile centralized hubs.
Future research will focus on addressing "Byzantine" failures (malicious or malfunctioning nodes), optimizing for heterogeneous device capabilities (such as battery-powered sensors), and exploring hybrid management models that combine central oversight with decentralized execution.
Summary updated