Fog Node Task Offloading
Animate local, fog, and cloud placement decisions from latency, queue, transfer, and compute time.
Fog Node Task Offloading
Compare the same IoT task across local execution, a nearby fog node, and a cloud service. The recommendation changes when queue delay, transfer time, compute work, deadline, privacy, and device-energy goals change.
Current Task
Deadline metA vibration gateway needs an anomaly score while the machine is still operating.
total_ms = queue_ms + compute_ms + transfer_ms + rtt_ms
Fog wins because local execution misses the deadline while cloud adds too much WAN delay.
Animated Dispatch Path
ProfilePlacement Scorecards
Deadline firstLearning Support
What the animation compares
Every tier gets the same task profile: deadline, input size, result size, and local-equivalent compute work. The animation compares the time needed to finish and return the result.
Formula and units
transfer_ms = MB * 8 / Mbps * 1000
total_ms = queue_ms + compute_ms + transfer_ms + rtt_ms
Local execution has no transfer or network RTT. Fog and cloud include upload, download, remote execution, queue delay, and round-trip time.
Why fog can lose
- A large payload can make LAN transfer dominate.
- A loaded fog node adds queue delay before compute starts.
- A very short deadline can fail before offloading helps.
- A cloud service can beat fog for very heavy compute if the payload is small and the deadline is loose.
Decision caveats
This is not an optimal scheduler. It is a transparent placement model for learning. Production systems also need admission control, retries, security policy, pricing, thermal limits, and failure handling.