A simulation of the ad-hoc on-demand distance vector (AODV) routing protocal for wireless networks in MATLAB.
- MATLAB r2017b or newer
Change to this repository's directory in MATLAB. Call the script main
.
Simulate traffic through the network. Call generateTraffic(packets)
to send the specified number of random packets through the network. Call generateTraffic(packets,movement)
to provide a movement interval for the packets.
To analyze simulated traffic, store the output and supply it to a chosen analysis function. Each plots and returns a reference to a figure displaying the info.
stats = generateTraffic(packets,movement);
plotTransmissions(stats);
plotPropDelay(stats);
plotHops(stats);
Stuart Miller