NS3 based project of the TSS1 group for the Wireless Networking course 2017/2018
The myproject.cc file should be added to the scratch folder of your NS3 instalation. Afterwards it can be build with:
| ./waf
And finally run the code as follows:
| ./waf --run "./myproject <arguments>"
The simulation has default values, but some of these can be changed by passing some arguments. See the list below:
initialDistance: Initial distance of the STA
shortGuardInterval: Enable Short Guard Interval
spatialStreams: Number of Spatial Streams
rtsThreshold: RTS threshold
apRateControl: Rate Control Algorithm of the AP
dataConst: Rate of the data plane for Constant Rate Algorithm< /br>
channelWidth: Channel width of the stations
steps: How many different distances to try
stepsTime: Time on each step
stepsSize: Distance between steps
additionalUsers: Add 3 Additional users (default false)
At the end of the simulation, 5 .plt files are created in the folder where ./waf was run. The names of these files vary according to the rate control algorithm used. The generic names are listed below:
TimeRate_ns3::<name of the rate algorithm>.plt
TimePosition_ns3::<name of the rate algorithm>.plt
PosDevices_ns3::<name of the rate algorithm>.plt
FailedPackets_ns3::<name of the rate algorithm>.plt
DistanceThroughput_ns3::<name of the rate algorithm>.plt
The data of these files can be plotted with:
| gnuplot
And then:
| load "<path to the directory>/<name of the file>"