This project is for NTU 2021 FALL Personal Communication System final project, the goal is using simPy(3.0.13) to simulate the paper's handoff model, evaluate performace matrix, and analize the conclusion presented in this paper.
Simulated paper: A. Xhafa and O. K. Tonguz, "Dynamic priority queueing of handoff requests in PCS," ICC 2001. IEEE International Conference on Communications. Conference Record (Cat. No.01CH37240), 2001, pp. 341-345 vol.2, doi: 10.1109/ICC.2001.936959.
Paper link: https://ieeexplore.ieee.org/document/936959
- Install python
- Make sure you have pip installed.
- Install numpy & pandas:
pip install numpy pandas
- Install matplotlib:
pip install matplotlib
- Install simPy(3.0.13):
pip install simpy
- Clone this repo:
git clone https://github.com/JJLIN1024/PCS_final_project.git
- Change into the repo directory:
cd PCS_final_project
- Use python(version >= 3.6) to run:
python prototype_test.py
One should be able to see Steady state probability & System average statistics being generated and printed out. Compare it with mathematics result shows that our simulation code's logic is correct.
- Clone this repo:
git clone https://github.com/JJLIN1024/PCS_final_project.git
- Change into the repo directory:
cd PCS_final_project
- Use python(version >= 3.6) to run simulation and you should see the following figure being generated:
python Simulation.py
- Change the global parameter
P1CALL_DROP_RATE = 60/12.5
andP1CALL_DROP_RATE = 60/17.5
, and runpython Simulation.py
again, you should see the following figure.
- Run
python Dropping_probability_diff.py
to observe the difference of handoff call dropping probability between FCFS queue scheme & Dynamic queue scheme. Result figure should be generated according to global parameterLAMBD
, takeLAMBD = 50
as a example listed below.