Lab 3 PDF
Lab 3 PDF
Lab 3 PDF
LAB3
3
Wireless Local Area Network
Medium Access Control for Wirelessly Connected Stations
Objective
This lab addresses the Medium Access Control (MAC) sublayer of the IEEE
802.11 standard for the wireless local area network (WLAN). Various options
of this standard are studied in this lab. The performance of these options is
analyzed under multiple scenarios.
Procedure
Create a New Project
To create a new project for the Ethernet network:
1. Start OPNET IT Guru Academic Edition Choose New from the File menu.
2. Select Project Click OK Name the project <your initials>_WirelessLAN,
and name the scenario DCF Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty
Scenario is selected Click Next Choose Office from the Network Scale list
and check Use Metric Units Click Next twice Click OK.
Create and Configure the Network
To create our wireless network:
1. The Object Palette dialog box should be now on the top
of your project space. If it is not there, open it by
clicking . Make sure that the wireless_lan is selected
from the pull-down menu on the object palette.
2. Add to the project workspace the nine wlan_ station_adv
(fix) from the palette.
a. To add an object from a palette, click its icon in
the object palette Move your mouse to the
workspace Left-click to place the object. Right-
click when finished.
3. Close the Object Palette dialog box Arrange the
stations in the workspace as shown in the following
figure Save your project.
Node Destination
Configure the Wireless Nodes Name Address
1. Repeat the following for each of the nine nodes:
node_0 Random
Right-click on the node Edit Attributes
Assign to the Wireless LAN MAC Address node_1 5
attribute a value equals to the node number (e.g., node_2 8
address 1 is assigned to node_1) Assign to node_3 6
the Destination Address attribute the
node_4 7
corresponding value shown in the following table
Click OK. node_5 1
2
Traffic Generation Parameters
1. Select all nodes in the network simultaneously except node_0 (click on all of them
while holding the Shift key) Right-click on any of the selected nodes Edit
Attributes Check the Apply Changes to Selected Objects check box.
2. Expand the Traffic Generation Parameters and the Packet Generation Arguments
hierarchies Edit the attributes to match the following figure Click OK.
Buffer Size specifies the
maximum size of the
higher-layer data buffer in
bits. Once the buffer limit is
reached, the data packets
arriving from the higher
layer will be discarded until
some packets are removed
from the buffer so that the
buffer has some free
space to store these new
packets. space to store
these new packets.
3. Click OK to run the four simulations. Depending on the speed of your processor, this
process may take several seconds to complete.
4. After the simulation of the four scenarios completes, click Close Save your project.
View the Results
To view and analyze the results (Note: Actual results will vary slightly based
on the actual node positioning in the project):
5
1. Select Compare Results from the Result menu.
2. Change the drop-down menu in the lower-right part of the Compare Results dialog box
from As Is to time_average Select the Delay (sec) statistic from the Wireless LAN
hierarchy as shown.
time_average is the
average value over time of
the values generated during
the collection window. This
average is performed
assuming a “sample-and-
hold” behavior of the data
set (i.e., each value is
weighted by the amount of
time separating it from the
following update
and the sum of all the
weighted values is divided
by the width of the collection
window).
3. Click Show to show the result in a new panel. The resulting graph should resemble the
following one.
4. Go to the Compare Results dialog box Follow the same procedure to show the
graphs of the following statistics from the Wireless LAN hierarchy: Load (bits/sec)
and Throughput (bits/sec). The resulting graphs should resemble the following
ones.
Load represents the total
load (in bits/sec) submit- ted
to wireless LAN layers by all
other higher layers in all
WLAN nodes of the network.
This statistic does not
include the bits of the higher-
layer packets that are
dropped by
WLAN MACs upon arrival
and not considered for
transmission because of, for
example, insufficient space
left in the higher- layer
packet buffer of
the MAC.
6
Throughput represents
the total number of bits (in
bits/sec) forwarded from
wireless LAN lay- ers to
higher layers in all WLAN
nodes of the network.
5. Go to the Compare Results dialog box Expand the Object Statistics hierarchy
Expand the Office Network hierarchy Expand the hierarchy of two nodes.
One node should have PCF enabled in the DCF_PCF scenario (e.g., node_3) and the
other node should have PCF disabled (e.g., node_2) Show the result of the Delay
(sec) statistic for the chosen nodes. The resulting graphs should resemble the
following ones.
6. Repeat Step 5 above but for the Retransmission Attempts (packets) statistic. The
resulting graphs should resemble the following ones.
7. Close all graphs and the Compare Results dialog box Save your project.
Questions
1) Based on the definition of the statistic Load, explain why with PCF enabled the
load is lower than if DCF is used without PCF.
2) Analyze the graphs that compare the Delay and Throughput of the four scenarios.
What are the effects of utilizing PCF and fragmentation on these two statistics?
7
3) From the last four graphs, explain how the performance of a node without PCF is
affected by having PCF enabled in other nodes in the network.
4) Create two new scenarios as duplicates of the DCF_PCF scenario. Name the first
new scenario DCF_allPCF and the second new scenario DCF_twoPCF. In
DCF_allPCF, enable the PCF attribute in all eight nodes: node_1 through node_8.
(Note: Do not include node_0 in any of your attribute editing.) In DCF_twoPCF,
disable the PCF attribute in node_3 and node_5 (this will leave only node_1 and
node_7 with PCF enabled). Generate the graphs for the Delay, Load, and
Throughput statistics, and explain how the number of PCF nodes might affect the
performance of the wireless network.
5) For all scenarios, select the Media Access Delay statistic from the Global Statistics
→ Wireless LAN hierarchy. Rerun the simulation for all scenarios. Generate the
graph that compares the Media Access Delay statistic of all scenarios. Analyze the
graph, explaining the effect of PCF, fragmentation, and number of PCF nodes on
media access delay.