Edge-Fog-Cloud Latency Simulator
Simulate request-response latency across edge, fog, and cloud tiers.
Edge-Fog-Cloud Latency Simulator
Send the same IoT request to three placement tiers and watch where the time goes. The model separates data transfer, physical distance, queueing, and compute so learners can see why the closest tier is not always the best tier, but distance dominates tight control loops.
A request-response loop includes the trip to the tier and the command or result back to the device.
Faster links shrink payload time but do not remove WAN propagation delay.
Heavy analytics may favor fog or cloud when edge hardware cannot process fast enough.
A tier can be slower and still acceptable when the application budget is loose.
Request-Response Timeline
The same event is sent to edge, fog, and cloud. The token returns when that tier has completed the loop.
Ready at device.
Ready at device.
Ready at device.
Latency Results
Edge is the only tier that meets the current 20 ms control-loop budget. Cloud compute is faster, but the WAN round trip dominates the total.
- Use edge for immediate control decisions.
- Send summaries to fog or cloud after the local action is complete.
The focused tier uses the same deterministic request-response model as the others.
Total = capture + transfer + propagation + queueing + processing
How The Model Works
Total latency is a round-trip teaching estimate:
- Capture: fixed device event preparation time.
- Transfer: request payload plus return command serialized over the selected link.
- Propagation: distance and hop delay for the request and response path.
- Queueing: deterministic load penalty based on path length and selected queue load.
- Processing: workload units divided by the selected compute capacity.
Practice Checks
- Set the budget to 10 ms. Which tier still works, and why?
- Increase payload size. Which component grows first?
- Switch from Plant LAN to Congested. Which tier is hurt the most?
- Use Fleet analytics. Why can a high-latency tier still be acceptable?
Technical Notes
The transfer calculation uses 1 KB = 1024 bytes and Mbps = 1,000,000 bits per second. The simulator is deterministic on purpose: queueing is a selected load penalty, not random jitter, so learners can compare settings reliably.