Reinforcement Learning for Reliable Real-Time Fog Systems

How ReLIEF assigns primary and backup tasks while balancing deadlines, failures, communication delay, and fog-node workload.

  • reinforcement-learning
  • real-time-systems
  • fog-computing

Fog computing moves processing closer to IoT devices, reducing the latency of sending every request to a distant cloud. That helps real-time applications, but it introduces a difficult resource-allocation problem: tasks must finish before their deadlines even when communication links or fog nodes fail.

My master’s research addressed this problem through ReLIEF, a reinforcement-learning-based primary/backup task-assignment strategy.

The scheduling problem

A useful assignment policy must consider several constraints at once:

  • a task’s execution time and deadline;
  • the communication delay between devices and fog nodes;
  • current workload and queueing at each node;
  • the probability of node or communication failure;
  • the overhead of creating and transmitting backup tasks.

Always sending both a primary and a backup wastes processing and network capacity. Avoiding backups saves resources but can cause a task to miss its deadline after a failure. Static rules also struggle when the workload or network changes.

How ReLIEF works

ReLIEF learns which fog nodes should execute the primary and backup copies of a real-time task. The policy balances communication delay with workload distribution so that assignments can adapt to changing system conditions.

A delayed-backup mechanism reduces unnecessary overhead: the backup is held until the remaining time before the deadline approaches the interval needed for communication and execution. If the primary completes successfully, redundant work can be avoided; if it does not, the backup still has time to finish.

The result is not a general-purpose operating-system scheduler or a DVFS controller. It is a task-assignment strategy evaluated for fault-tolerant, fog-based IoT systems with real-time constraints.

Reported evaluation

The paper evaluates ReLIEF in simulation against the compared state-of-the-art strategies under different workloads, fog-node counts, and failure rates.

The abstract reports:

  • up to an 84% reduction in task dropping; and
  • nearly a 72% improvement in system reliability.

Those figures apply to the evaluated scenarios and baselines; they are not universal guarantees for every fog deployment. The broader result is that learning-based assignment can improve reliability while distributing workload and respecting task deadlines in a dynamic environment.

Practical lessons

Three lessons from this work carry beyond fog computing:

  1. Define the failure model explicitly. A scheduling policy is only as meaningful as the node, link, and timing failures it is designed to tolerate.
  2. Include redundancy cost in the decision. Reliability mechanisms consume computation, bandwidth, and energy; delaying or cancelling unnecessary backup work can matter as much as placement.
  3. Bound the online decision cost. A policy for real-time systems must produce assignments quickly enough that the scheduling logic does not become part of the deadline problem.

Reinforcement learning is useful here because the environment is dynamic, not because it replaces real-time analysis. Deadlines, execution estimates, and schedulability constraints remain central to a credible design.

Sources

Author

Roozbeh Siyadatzadeh

PhD candidate, Leiden University

Discuss this note