Fog Node Task Offloading

Animate local, fog, and cloud placement decisions from latency, queue, transfer, and compute time.

animation
fog-computing
task-offloading
edge-computing
architecture
interactive
Interactive fog task offloading workbench with scenario presets, animated dispatch paths, deadline checks, queue and transfer calculations, energy estimates, and mobile learning support.
Architecture Fog computing Task placement

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.

Recommendation Fog node
Response time 144 ms
Deadline margin 36 ms spare
Main bottleneck Compute at fog

Current Task

Deadline met
Bearing anomaly

A vibration gateway needs an anomaly score while the machine is still operating.

Deadline 180 ms Payload 0.22 MB Work 520 local-ms Site data
Selected tier Fog node
Device energy 29 mJ
Queue delay 25 ms
Transfer delay 15 ms
Decision formula 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

Profile
Profile
Estimate
Filter
Dispatch
Result

Placement Scorecards

Deadline first
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.