The goal of this assignment is to study the performance of data transmission in a wireless network environment via modeling and simulations using the network simulator, NS-3. Upon completion of the assignment the students should have understood how the simulator works, how to setup simulation networks, how to create new network components and how to analyze the results in order to assess the performance.
The assignment consists of three parts (the marking scheme is outlined below). For successful completion of the assignment the following should be submitted before the deadline (given below):
1) A electronic copy of the report AND
2) A Zip file containing electronic copies of the report ( Word-compatible fileand . pdf file), test scripts ( .ccand .h files), original testing results ( .dband .txt trace files), processed data ( .db, . txtor Excel files), diagrams ( png, gif,or etc files), and modified or added source code or other files ( .ccand .h files). Please also submit a readme.txtfile which indicates the location of all the provided files (directories in which each file is stored).
Finally a number of examples have been provided in the archive named EE500_Assignment_201819_Examples.Decompress the archive file in the folder WiFi. Please copy this folder to the NS-3 location: ../../ns-3.26/scratch. Carefully read the comments in wifi-example-sim.ccand How_To_Run_Examples.txt, and run all the examples before you begin working on the assignment.
PART 1: Data Transmission over the WiFi Network (75%)
According to the instruction in How_To_Run_Examples.txt, please run the example involving WiFi by using the command below:
./waf –run WiFi
A trace file will be generated into DataOfUser1.db. Please open this database file by using relevant software (e.g. sqliteman for ubuntu). You need to understand the results shown in this database.
Question A (15%)
1)
Read the original scenario given in the
wifi-example-sim.cc and process the trace in DataOfUser1.db by
using perl, bash or awk scripts (or you could calculate the data
manually), then calculate and illustrate the values of the
following performance parameters: bitrate (Kbps) of the data
traffic, average throughput (Kbps), average delay (second) and
average packet loss ratio (PLR) for data transmission between WiFi
AP and WiFi User 1. These values need to be presented in your
report. [Mark allocation 5%]
2)
Modify the original scenario in the
wifi-example-sim.cc to allow data transmission at different
bitrates. Use 5 different bitrate levels: 1Mbps, 5Mbps, 10Mbps,
15Mbps and 20 Mbps for WiFi User 1 traffic and show the results of
the same parameters: average throughput (Kbps), average delay
(second) and average PLR between WiFi AP and WiFi User 1,
separately for each case. [Mark allocation 10%]
Question B (20%)
Only modify the original scenario in wifi-example-sim.cc to change the distance between WiFi AP and WiFi User 1. Set the distance to different values between 0 to 200 metres (step = 20 meters, e.g. 0, 20, 40, 60,…) and test data transmission. Plot the performance parameters of data transmission (average throughput, average delay and average PLR) against increasing distance between WiFi AP and WiFi User 1. (Tip: Use GNUPlot, Matlab or Excel to plot the graphs.) [Mark allocation 20%]
Question C (30%)
1)
Change the configuration in the original
scenario by adding another WiFi User (e.g. WiFi User 2) into this
scenario and set up new downlink data traffic for User 2 from AP.
The distance of User 2 from WiFi AP is the same as User 1’s
(default: 50 metres). Traffic bitrates of both User 1 and User 2
are 1Mbps, respectively. Run this scenario and show the
results in terms of average throughput, average delay and average
Packet Loss Ratio for both users. [Mark allocation 10%]
2)
Next add more users to this scenario,
maintaining the same distance from the AP and the same bitrates for
the data traffic. Just increase the WiFi user numbers from 1, 5,
10, 15 to 25, and keep the bitrate to 1Mbps for each user. And then
test those Users at different distances from the AP (from 0 to 200
meters in steps of 20 meters). Finally please plot the average
throughputs (for different numbers of users) against distance,
average delays (different numbers of users) against distance and
the Packet Loss Ratios (different numbers of users) against
distance separately. Hint: Use the script provided to automate
running the simulations at different distances. [Mark allocation
20%]
Requirements (10%)
1)
Submit the modified source codes (.cc .h files)
and trace results (.db) for each question. [Mark allocation
5%]
2)
Analyse and comment the results of each
question, and attach plots to your report. [Mark allocation
5%]
PART 2: Results Comparison and Analysis (25%)
Compare the results of Question A 1), Question A 2), Question B and Question C 2) in Part 1 and perform data delivery performance analysis.
"Get
15%discount on your first
3 orderswith us"
Use the following coupon
"FIRST15"












Other samples, services and questions:
When you use PaperHelp, you save one valuable — TIME
You can spend it for more important things than paper writing.