Abstract
This paper introduces an analytical framework to investigate optimal design choices for the placement of virtual controllers along the cloud-to-things continuum. The main application scenarios include low-latency cyber-physical systems in which real-time control actions are required in response to the changes in states of an IoT node. In such cases, deploying controller software on a cloud server is often not tolerable due to delay from the network edge to the cloud. Hence, it is desirable to trade reliability with latency by moving controller logic closer to the network edge. Modeling the IoT node as a dynamical system that evolves linearly in time with quadratic penalty for state deviations, recursive expressions for the optimum control policy and the resulting minimum cost value are obtained by taking virtual fog controller reliability and response time latency into account. Our results indicate that latency is more critical than reliability in provisoning virtualized control services over fog endpoints, as it determines the swiftness of the fog control system as well as the timeliness of state measurements. Based on a realistic drone trajectory tracking model, an extensive simulation study is also performed to illustrate the influence of reliability and latency on the control of autonomous vehicles over fog.
Introduction: The Cloud-to-Things Dilemma
In the evolving landscape of the Internet of Things (IoT), developers face a critical architectural choice regarding where to place "virtual controllers"—the software logic that governs physical devices. This "cloud-to-things" continuum presents a fundamental tradeoff between latency and system complexity.
The Cloud offers immense computational power and high reliability but is plagued by significant network latency. Conversely, the Edge (local gateways or servers) provides near-instantaneous response times but may suffer from lower reliability due to hardware constraints or intermittent power. For cyber-physical systems (CPS) such as autonomous drones or robotic arms, where timing is critical, a delayed response can be as detrimental as a complete failure. This paper quantifies this "Control-as-a-Service" tradeoff, investigating whether a fast but unreliable controller is preferable to a slow but stable one.
Analytical Framework and System Modeling
The authors employ an analytical approach rooted in Control Theory and Dynamic Programming to determine the optimal placement of virtual controllers. The system is modeled as a closed-loop interaction between an IoT node and a virtualized controller.
The system is modeled using several key components:
- IoT Node Dynamics: The physical device (e.g., a drone) is modeled as a linear dynamical system within a Linear Quadratic Regulator (LQR) framework. This framework penalizes both deviations from a target trajectory and the energy consumed by control actions.
- Reliability Model: Controller reliability is represented as a two-state Markov process (ON/OFF), capturing the potential for fog nodes to be unavailable or overloaded.
- Latency Model: The model accounts for "imperfect matching," where network delays cause control signals to lag behind the actual state of the IoT node.
- Optimal Policy: Using the principle of optimality, recursive expressions are derived for the best possible control policy. A key finding is that for distant controllers, the system must employ a state estimator to predict the device's current state based on delayed sensor data.
Experimental Grounding and Key Results
To ground the theoretical model in reality, the authors utilized real-world latency measurements from various "Control-as-a-Service" providers, including AWS Lambda and Microsoft Azure Functions. These parameters were applied to a realistic simulation of a quadcopter drone following a circular path while subjected to stochastic disturbances like wind and rain.
The Primacy of Latency
The study reveals that latency is a far more destructive force than unreliability in maintaining stable control. High latency doesn't just delay corrective actions; it forces the controller to operate on "stale" data. This leads to a collateral loss of efficacy that reliability issues do not cause.
In simulations, a drone with a controller delay of just 3 time-steps performed significantly worse than a controller with 50% reliability but zero delay. At high latency, even a perfectly reliable controller fails, as corrective actions respond to where the drone was rather than where it is—a phenomenon described as the "random walk" effect.
Reliability Thresholds
For the drone trajectory task, the authors identified that a virtual controller needs at least 50% reliability to effectively stabilize the system, provided latency is negligible. Furthermore, as the "cost" of energy increases, the negative impact of latency becomes even more pronounced, rapidly degrading the system's ability to track a path.
Conclusion and Future Directions
The research concludes that latency is the critical factor in provisioning virtualized control services over fog endpoints. While the current framework assumes linear system dynamics, it provides a robust foundation for optimizing IoT architectures. Future work will explore multi-tenant environments where resource contention among multiple virtual controllers must be addressed, as well as non-linear system models.
Summary updated