A Java-based simulation of Slotted Aloha MAC Protocol
Usage:
-
Run
make
to build the executables. -
Change into the Code directory using
cd Code
. -
Run the program using
java sender [options]
where options can be:
-N <num_users> default value = 24 -W <def_collision_window> default value = 2 -p <pkt_gen_rate> default value = 0.5 -M <max_pkts> default value = 400 -r <max_retry_attempts> default value = 10 -m <machine_friendly_mode> default value = false
-
Run the script using
python script.py