With NS-3 simulator, build the following topology and collect simulation data.
Link-1: duplex link, 1Mbps, 10ms latency, drop-tail queue, queue size 50
Experiment 1: Throughput and loss rate under constant-rate traffic
1. Run simulations under different scenarios, with the CBR traffic rate set to be 0.1 Mbps, 0.25Mbps, 0.5Mbps, 1 Mbps, 1.5 Mbps, 2 Mbps and 3 Mbps, respectively. Analyze the trace file and calculate the throughput and loss rate in each case. (You may need to change the trace-file name in different cases.)
2. We define the throughput to be “N/T”, where N is the total number of packets received by n1 and T represents the simulation duration. Plot the curve of the throughput (at node n1) versus the input traffic rate (at node n0). Recommend to use the input traffic rate (i.e., 0.1Mbps, 0.25Mbp, and so on) as the x-axis. (Note: Please map your throughput from packets/second to bits/second.)
3. We define the loss rate to be “L/M”, where L is the total number of lost packets and M represents the total number of packets sent out from n0. Plot the loss rates of the CBR flow versus the input traffic rate at node n0.
4. Explain your simulation results.
Experiment 2: Throughput and loss rate under Poisson traffic
1. Apply Poisson traffic sending from node n0 to node n1. Keep the rest of configurations unchanged.
2. Run simulations under different scenarios, with the mean rate of the Poisson traffic set to be 0.1 Mbps, 0.25Mbps, 0.5Mbps, 1 Mbps, 1.5 Mbps, 2 Mbps and 3 Mbps, respectively. Analyze the trace file and calculate the throughput and loss rate in each case. (You may need to change the trace-file name in difference cases.)
3. Plot the “throughput vs. input rate” and “loss rate vs. input rate” curves, as you have done in Experiment 1. Compare the results from Experiments 1 and 2, explain your observations.
Experiment 3: Queuing effect under Poisson traffic
1. Set the rate of Poisson traffic to be 0.95Mbps. In previous experiments, we use 50 as the queue size. Now, run simulations under six scenarios, with queue size set to be 5, 10, 30, 50, 70, and 100, respectively.
2. Based on your simulation results, plot the “throughput vs. queue size” and “loss rate vs. queue size” curves. Explain your simulation results.
2 freelancers are bidding on average ₹5970 for this job
Hello, I am an Electronic/Telecommunication Engineer experienced on NS3. I have previously worked on projects like this and it will be easy for me to complete it in a short time. Please contact me to discuss more.