cyj407 / handoff-simulator

Use different handoff policies to evaluate the performance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handoff Simulator

Introduction

  • A simple simulator used four different handoff policies.
    • Best policy:
    New Power > Old Power
    
    • Threshold policy: (T = -110 dBm)
    New Power > Old Power && Old Power < T
    
    • Entropy policy: (E = +5 dBm)
    New Power > Old Power + E
    
    • Self-defined policy: (multiplier = 0.9, Minimum Power = -125 dBm)
    New Power > Old Power * multiplier && New Power > Minimum Power
    

  • Each point represents a car. Use Poisson Distribution to assume that there are 2 cars/min entering to this zone. The simulation time is for one day(=86400 seconds).
  • When a car meet the intersection, there are different possibilities to different directions.
    • Straight: equation
    • Right: equation
    • Left: equation

Result

  • To watch the simulation for 86400 seconds, run:
python simulator.py
  • To plot policy comparison figure and print the result, run:
python main.py

It may cost 10~20 minutes to plot the figure and print the result.

  • Policy comparison figure
  • Result in the console

About

Use different handoff policies to evaluate the performance.


Languages

Language:Python 100.0%