HomeComputer ScienceEdge Server Handoff: Mobility-Aware Migration Simulator

Edge Server Handoff: Mobility-Aware Migration Simulator (2D)

A 2D top-down map version of the mobility-aware edge handoff simulator: drive a device past edge nodes, watch a hysteresis handoff policy weigh latency savings against migration cost, and compare it live against a naive always-nearest policy on a running latency chart.

Computer Science2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-mobile-edge-computing ↗ Open standalone

Mobile edge computing only pays off if a moving device is actually connected to a nearby edge node — but the "nearest node" changes constantly as the device moves, and migrating a live session between nodes isn't free. This 2D top-down version places edge-compute nodes on a flat map, drives a device along a route, and computes real round-trip latency to every node from screen-space distance and a fibre-backhaul propagation model. A hysteresis-based handoff policy — the same anti-flapping rule cellular and Wi-Fi handover use — decides when the gain from switching to a closer node outweighs the fixed migration cost, and a naive "always nearest" shadow policy runs the identical route alongside it so you can directly compare total cost. Drop the hysteresis margin to zero and watch the ping-pong counter climb as the device thrashes between nodes near a coverage boundary; raise the migration cost and watch mean latency rise as the policy gets more conservative about migrating.

⚙ Under the hood

Drive a mobile device past a ring of edge-compute nodes and watch a hysteresis-based handoff policy decide when to migrate the active session, trading switching margin against migration cost to avoid ping-pong thrashing.

edge computingmobile networkshandofflatency5Gdistributed systems

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)