Steps to run program
- Install ns3
- Install required libraries like gnuplot("sudo apt install gnuplot")
- Copy wired.cc and wireless.cc in ns3.37/scratch folder
- Open terminal in ns3.37 folder
- Enter given commands
Commands to run program :
- ./ns3 run scratch/wired.cc
- gnuplot Wired-Fairness.plt
- gnuplot Wired-Throughput.plt
This will run the simulation for the first network(wired) and will generate graphs for throughput and fairness Some of the network flow statistics can be seen in terminal output also
Commands to run program :
- ./ns3 run scratch/wireless.cc
- gnuplot Wireless-Fairness.plt
- gnuplot Wireless-Throughput.plt
This will run the simulation for the first network(wired) and will generate graphs for throughput and fairness Some of the network flow statistics can be seen in terminal output also