Lab 02 PDF
Lab 02 PDF
Lab 02 PDF
OBJECTIVES
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.
11
OVERVIEW
The IEEE 802.11 standard provides wireless connectivity to computerized stations that
require rapid deployment, such as portable computers. The Medium Access Control (MAC)
sublayer in the standard includes two fundamental access methods: distributed coordina-
tion function (DCF) and point coordination function (PCF). DCF utilizes the carrier sense
multiple access with collision avoidance (CSMA/CA) approach. DCF is implemented in all
stations in the wireless local area network (WLAN). PCF is based on polling to determine the
station that can transmit next. Stations in an infrastructure network optionally implement
the PCF access method.
In addition to the physical CSMA/CA, DCF and PCF utilize a virtual carrier-sense mecha-
nism to determine the state of the medium. This virtual mechanism is implemented by
means of the network allocation vector (NAV), which provides each station with a prediction
of future traffic on the medium. Each station uses NAV as an indicator of time periods during
which transmission will not be initiated even if the station senses that the wireless medium
is not busy. NAV gets the information about future traffic from management frames and the
header of regular frames being exchanged in the network.
With DCF, every station senses the medium before transmitting. The transmitting station
defers as long as the medium is busy. After deferral and while the medium is idle, the trans-
mitting station has to wait for a random backoff interval. After the backoff interval and if the
medium is still idle, the station initiates data transmission or optionally exchanges request to
send (RTS) and clear to send (CTS) frames with the receiving station. The effect of RTS and
CTS frames will be studied in the Mobile WLAN lab.
With PCF, the access point (AP) in the network acts as a point coordinator (PC). The PC
uses polling to determine which station can initiate data transmission. It is optional for the
Network Simulation Experiments Manual
stations in the network to participate in PCF and hence respond to polls received from the
PC. Such stations are called CF-Pollable stations. The PCF requires the PC to gain control
of the medium. To gain such control, the PC utilizes the Beacon management frames to
set the NAV in the network stations. Because the mechanism used to set NAV is based on
the DCF, all stations comply with the PC request to set their NAV, whether or not they are
CF-Pollable. This way the PC can control frame transmissions in the network by generating
contention-free periods (CFPs). The PC and the CF-Pollable stations do not use RTS/CTS in
the CFP.
The standard allows for fragmentation of the MAC data units into smaller frames.
Fragmentation is favorable in case the wireless channel is not reliable enough to transmit
longer frames. Only frames with a length greater than a fragmentation threshold will be
fragmented. Each fragment will be sent independently and will be separately acknowl-
edged. During a contention period, all fragments of a single frame will be sent as bursts
with a single invocation of the DCF medium access procedure. In case of PCF and during
a contention-free period, fragments are sent individually following the rules of the point
coordinator (PC).
PRE-LAB ACTIVITIES
& Read Section 2.7 from Computer Networks: A Systems Approach, 5th Edition.
: Go to www.net-seal.net and play the following animation:
m Wireless Network and Multiple Access with Collision Avoidance
PROCEDURE
12
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.
Node Destination
Name Address
node_0 Random
node_1 5
node_2 8
node_3 6
node_4 7
node_5 1
node_6 3
node_7 4
node_8 2
13
a. The following figure shows the values assigned to the Destination Address and
Wireless LAN MAC Address attributes for node_1.
Network Simulation Experiments Manual
4. Right-click on node_0 · Edit Attributes · Expand the Wireless LAN Parameters hierar-
chy and set the Access Point Functionality to Enabled · Click OK.
4. Right-click on node_0 · Edit Attributes · Expand the Wireless LAN Parameters hierar-
chy and set the Access Point Functionality to Enabled · Click OK.
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.
17
3. Click Show to show the result in a new panel. The resulting graph should resemble the
following one.
Delay represents the
end-to-end delay of all
the packets received by
the wireless LAN MACs
of all WLAN nodes in the
network and forwarded
to the higher layer.
This delay includes
medium access delay at
the source MAC, recep-
tion of all the fragments
individually, and transfer
of the frames through AP,
if access point function-
ality is enabled.
Network Simulation Experiments Manual
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.
18
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.
LAB 2
Wireless Local Area 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 result-
ing graphs should resemble the following ones. 19
7. Close all graphs and the Compare Results dialog box · Save your project.
FURTHER READING
ANSI/IEEE Standard 802.11, 1999 Edition: Wireless LAN Medium Access Control (MAC) and
Physical Layer (PHY) Specifications.
Network Simulation Experiments Manual
EXERCISES
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?
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.
LAB REPORT
Prepare a report that follows the guidelines explained in the Introduction Lab. The report
should include the answers to the preceding exercises as well as the graphs you generated
from the simulation scenarios. Discuss the results you obtained and compare these results
with your expectations. Mention any anomalies or unexplained behaviors.
20