Starlink-emulator
September 19, 2024 ยท View on GitHub
Data Processing Steps:
-
Move iRTT JSON files into a dedicated folder. Then run the
process_irtt.pyscript, adjusting the folder path accordingly:python process_irtt.py -
Move iPerf3 JSON files into a dedicated folder. Then run the
process_iperf3.pyscript, adjusting the folder path accordingly:python process_iperf3.py -
After processing both datasets, combine the iRTT and iPerf3 CSV files into one file by running:
python combine.py -
Once the files are combined, run the
data_process.pyscript to complete the data processing:python data_process.py
Emulator Usage:
Starlink and Custom Trace Emulation
The emulator includes two paths, with Starlink as the default path. You can also replace the Starlink trace (./lagos.csv) with any trace file you wish to emulate (after adjusting it to the correct format by finishing the data processing scripts).
Wall Time Emulation
To emulate a handover pattern at specific seconds of the minute (e.g., at 12, 27, 42, and 57 seconds), run:
sudo python emulator.py
Customized Start Time Emulation
If you prefer to specify a start time for the emulation (in 100 milliseconds precision), use the --start_time flag. For example, to start the emulation at 23.1 seconds:
sudo python emulator.py --start_time=23100