Fog Node Task Offloading
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 firstControls
Scenario
Decision goal
Live conditions
When enabled, sensitive tasks cannot be placed in the cloud. A trusted site fog node is still allowed.
Fog meets the deadline after adding LAN transfer, queue delay, and fog execution time.
The model is a teaching estimate. Field systems should measure real queue delay, retransmissions, radio state, and server load before automating placement.
Learning 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.