Wlan Tutorial
Wlan Tutorial
Wlan Tutorial
net/publication/2533138
CITATIONS READS
31 1,884
1 author:
Mustafa Ergen
Istanbul Technical University
97 PUBLICATIONS 3,732 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Mustafa Ergen on 22 August 2013.
Mustafa Ergen
[email protected]
University of California Berkeley
June 2002
Abstract
This document describes IEEE 802.11 Wireless Local Area Network (WLAN) Standard. It describes IEEE
802.11 MAC Layer in detail and It briefly mentions IEEE 802.11a, IEEE 802.11b physical layer standard and
IEEE 802.11e MAC layer standard.
Contents
1 Overview 4
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.1 Goals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 MAC Management 28
3.1 Tools Available to Meet the Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1.1 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1.2 Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.1.3 Address Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.1.4 Privacy MAC Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.1.5 Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1
3.1.6 Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.2 Combining Management Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.2.1 Combine Power Saving Periods with Scanning . . . . . . . . . . . . . . . . . . . . . . . . 34
3.2.2 Preauthentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2
3
Overview
1.1 Introduction
• In 1997, the IEEE adopted the first standard for WLANs and revised in 1999.
• IEEE defines a MAC sublayer, MAC management protocols and services, and three physical (PHY)
layers.
• PHY Layers:
1.1.1 Goals
• to deliver services previously found only in wired networks.
• high throughput
4
1.1.2 Architecture
Architecture is designed to support a network where mobile station is responsible for the decision making.
Advantages are
Architecture has power-saving modes of operation built into the protocol to prolong the battery life of
mobile equipment without losing network connectivity.
Components
Station the component that connects to the wireless medium. Supported services are authentication, deau-
thentication, privacy, and delivery of the data.
Basic Service Set A BSS is a set of stations that communicate with one another. A BSS does not generally
refer to a particular area, due to the uncertainties of electromagnetic propagation. When all of the
stations int the BSS are mobile stations and there is no connection to a wired network, the BSS is
called independent BSS (IBSS). IBSS is typically short-lived network, with a small number of stations,
that is created for a particular purpose. When a BSS includes an access point (AP), the BSS is called
infrastructure BSS.
When there is a AP, If one mobile station in the BSS must communicate with another mobile station,
the communication is sent first to the AP and then from the AP to the other mobile station. This
consume twice the bandwidth that the same communication. While this appears to be a significant
cost, the benefits provided by the AP far outweigh this cost. One of them is, AP buffers the traffic of
mobile while that station is operating in a very low power state.
Extended Service Set (ESS) A ESS is a set of infrastructure BSSs, where the APs communicate among
themselves to forward traffic from one BSS to another and to facilitate the movement of mobile stations
from one BSS to another. The APs perform this communication via an abstract medium called the
distribution system (DS). To network equipment outside of the ESS, the ESS and all of its mobile
stations appears to be a single MAC-layer network where all stations are physically stationary. Thus,
the ESS hides the mobility of the mobile stations from everything outside the ESS.
Distribution System the distribution system (DS) is the mechanism by which one AP communicates with
another to exchange frames for stations in their BSSs, forward frames to follow mobile stations from
one BSS to another, and exchange frames with wired network.
5
Station Services Similar functions to those that are expected of a wired network. The wired network func-
tion of physically connecting to the network cable is similar to the authentication and de-authentication
services. Privacy is for data security. Data delivery is the reliable delivery of data frames from the
MAC in one station to the MAC in one or more other station, with minimal duplication and minimal
ordering.
Distribution Services provide services necessary to allow mobile stations to roam freely within an ESS
and allow an IEEE 802.11 WLAN to connect with the wired LAN infrastructure. A thin layer between
MAC and LLC sublayer that are invoked to determine how to forward frames within the IEEE 802.11
WLAN and also how to deliver frames from the IEEE 802.11 WLAN to network destinations outside of
the WLAN.
• The association service makes a logical connection between a mobile station and an AP. It is
necessary for DS to know where and how to deliver data to the mobile station. the logical connection
is also necessary for the AP to accept data frames from the mobile station and to allocate resources
to support the mobile station. The association service is invoked once, when the mobile station
enters the WLAN for the first time, after the application of power or when rediscovering the WLAN
after being out of touch for a time.
• The reassociation service includes information about the AP with which a mobile station has been
previously associated. Mobile station uses repeatedly as it moves in ESS and by using reassocia-
tion service, a mobile station provides information to the AP with which the mobile station was
previously associated, to obtain frames.
• The disassociation service is used to force a mobile station to associate or to inform mobile station
AP is no longer available. A mobile may also use the disassociation service when it no longer
require the services of the AP.
• An AP to determine how to deliver the frames it receives uses the distribution service. AP invoke
the distribution service to determine if the frame should be sent back into its own BSS, for delivery
to a mobile station that is associated with the AP, or if the frame should be sent into the DS for
delivery to another mobile station associated with a different AP or to a network destination.
• The integration service connects the IEEE 802.11 WLAN to other LANs, The integration service
translates IEEE 802.11 frames to frames that may traverse another network, and vice versa.
Interaction between Some Services The IEEE 802.11 standard states that each station must maintain
two variables that are dependent on the authentication, de-authentication services and the association,
reassociation, disassociation services. The variables are authentication state and association state and
used in a simple state machine that determines the order in which certain services must be invoked and
when a station may begin using the data delivery service. A station may be authenticated with many
different stations simultaneously. However, a station may be associated with only one other station at
a time.
6
In state 1, the station may use a very limited number of frame types. This frames are to find an
IEEE 802.11 WLAN, an ESS, and its APs, to complete the required frame handshake protocols, and to
implement the authentication service. If a station is part of an IBSS, it is allowed to implement the data
service in state 1. In state2, additional frame types are allowed to provide the capability for a station
in state 2 to implement the association, reassociation, and disassociation services. In state 3, all frame
types are allowed and the station may use the data delivery service. A station must react to frames it
receives in each of the states, even those that are disallowed for a particular state. A station will send a
deauthentication notification to any station with which it is not authenticated if it receives frames that
are not allowed in state 1. A station will send a disassociation notification to any station with which it
is authenticated, but not associated, if it receives frames not allowed in state 2. These notifications will
force the station that sent the disallowed frames to make a transition to the proper state in the state
diagram and allow it to proceeed properly toward state 3.
7
Class 1 STATE 1:
Frames Unauthenticated
Unassociated
DeAuthentication
Notification
Successful DeAuthentication
Authentication Notification
STATE 2:
Class 1 & 2 Authenticated
Frames Unassociated
Successful
Authentication Disassociation
or Notification
Reassociation
8
f
a
c
e
b
d AP2
AP3
AP1
(a) ---- The station finds AP1, it will authenticate and associate.
(c) ---- When the association with AP1 is no longer desirable, it may reassociate with AP2.
(d) ---- AP2 notify AP1 of the new location of the station, terminates the previous association with AP1.
(e) ---- At some point, AP2 may be taken out of service. AP2 would disassociate the associated stations.
(f) ---- The station find another access point and authenticate and associate.
9
Chapter 2
MAC protocol supplies the functionality required to provide a reliable delivery mechanism for user data over
noisy, unreliable wireless media.
10
2.2.1 Dealing with Media
The minimal MAC frame exchange protocol consists of two frames, a frame sent from the source to the
destination and an acknowledgment from the destination that the frame was received correctly. if the source
does not get acknowledgement, it tries to transmit according to the basic access mechanism described below.
This reduces the inherent error rate of the medium, at the expense of additional bandwidth consumption
without needing higher layer protocols. Since higher layer timeouts are often measured in seconds, it is much
more efficient to deal with this issue at the MAC layer.
C
A
B
IEEE 802.11 MAC frame exchange protocol addresses this problem by adding two additional frames to
the minimal frame exchange protocol described so far. The two frames are a request to send (RTS) frame
and a clear to send (CTS) frame. Source sends RTS and destination replies with CTS and nodes that here
RTS and CTS suspends transmission for a specified time indicated in the RTS/CTS frames. See Figure 2.2.
These frames are atomic unit of the MAC protocol. Stations that hear RTS delay transmitting until CTS
frame. It does not hear CTS, it transmits and The stations that here CTS suspend transmission until they
hear acknowledgement.
In the source station, a failure of the frame exchange protocol causes the frame to be retransmitted. This
is treated as a collision, and the rules for scheduling the retransmission are described in the section on the
basic access mechanism. To prevent the MAC from being monopolized attempting to deliver a single frame,
there are retry counters and timers to limit the lifetime of a frame.
11
RTS
Area cleared after RTS
C
A
B
CTS
Figure 2.2: RTS and CTS address the Hidden Node Problem
RTS/CTS mechanism can be disabled by an attribute in the management information base (MIB). The
value of the dot11RTSThreshold attribute defines the length of a frame that is required to be preceded by the
request to send and clear to send frames.
Where RTS/CTS can be disabled;
• where the stations are concentrated in an area where all area where all are able to hear the transmissions
of every station.
Default value of the threshold is 128 and by definition, an AP is heard by all stations in its BSS and will
never be a hidden node. When AP is colocated and sharing a channel, the value for the RTS can be changed.
12
2.2.4 Basic Access Mechanism
The basic access mechanism is carrier sense multiple access with collision avoidance (CSMA/CA) with binary
exponential backoff similar to IEEE 802.3, with some significant exceptions. CSMA/CA is a “listen before
talk” (LBT) access mechanism. When there is a transmission in the medium, the station will not begin its own
transmission. This is the CSMA portion of the access mechanism. If there is a collision and the transmission
corrupted, the operation of the access mechanism works to ensure the correct reception of the information
transmitted on the wireless medium.
As IEEE 802.11 implements this access mechanism, when a station listens to the medium before beginning
its own transmission and detects an existing transmission in progress, the listening station enters a wait period
determined by the binary exponential backoff algorithm. It will also increment the appropriate retry counter
associated with the frame. The binary exponential backoff mechanism chooses a random number which
represents the amount of time that must elapse while there are not any transmissions, i.e., the medium is idle
before the listening station may attempt to begin its transmission again. The random number resulting from
this algorithm is uniformly distributed in a range, called the contention window, the size of which doubles
with every attempt to transmit that is deferred, until a maximum size is reached for the range. Once a
transmission is successfully transmitted, the range is reduced to its minimum value for the next transmission.
It is extremely unusual for a wireless device to be able to receive and transmit simultaneously, the IEEE
802.11 MAC uses collision avoidance rather than the collision detection of IEEE 802.3. It is also unusual for
all wireless devices in LAN to be able to communicate directly with all other devices. For this reason, IEEE
802.11 MAC implements a network allocation vector (NAV). The NAV is a value that indicates to a station the
amount of time that remains before the medium will become available. Even if the medium does not appear
to be carrying a transmission by the physical carrier sense, the station may avoid transmitting. The NAV,
then, is a virtual carrier sensing mechanism. By combining the virtual carrier sensing mechanism with the
physical carrier sensing mechanism, the MAC implements the collision avoidance portion of the CSMA/CA
access mechanism.
The SIFS is the shortest interval, followed by the slot time which is slightly longer. The PIFS is equal to
SIFS plus one slot time. The DIFS is equal to the SIFS plus two slot times. The EIFS is much larger than
13
any of the other intervals. It is used when a frame that contains errors is received by the MAC, allowing
the possibility for the MAC frame exchanges to complete correctly before another transmission is allowed.
Through these five timing intervals, both the DCF and PCF are implemented.
1. when the MAC receives a request to transmit a frame, a check is made of the physical and virtual carrier
sense mechanisms.
2. if the medium is not in use for an interval of DIFS (or EIFS if the pre-received frame is contained errors),
the MAC may begin transmission to the frame.
3. if the medium is in use during the DIFS interval, the MAC will select a backoff and increment the retry
counter.
4. The MAC will decrement the backoff value each time the medium is detected to be idle for an interval
of one slot time.
5. it there is a collision, the contention window is doubled, a new backoff interval is selected.
14
S S
random new random
I I
backoff backoff
Station 1 F CTS F ACK
(7 slots) (10 slots)
NAV S S
random remaining
backoff backoff
Station 3 (9 slots) (2 slots) ACK
NAV
NAV D Station defers, but keeps backoff counter (=2) D S
Station 4 I I DATA I
Station sets NAV upon receiving RTS
F F F
S S S
S
I
Station 5 F ACK Station sets NAV upon receiving RTS
S
Station sets NAV upon receiving
Station 6 CTS, this station is hidden to
DATA
station 1 time
Figure 2.3: Timing of the 802.11 DCF. In this example, station 6 cannot detect the RTS frame of the
transmitting station 2, but the CTS frame of station 1.
stations may compete for access to the medium. The standard requires that the contention period be long
enough to contain at least one maximum length frame and its acknowledgement.
The CFP begins when the PC gains access to the medium, using the normal DCF procedures, and
transmits a Beacon frame. Beacon frames are required to be transmitted periodically for PC to compete for
the medium. The traffic in the CFP will consists of frames sent from the PC to one or more stations, followed
by the acknowledgement from those stations. In addition, PC sends a contention-free-poll (CF-Poll) frame
to those stations that have requested contention-free service. If the station has data to send then respond
to CF-Poll. For medium efficient utilization, it is possible to piggyback both the acknowledgement and the
CF-Poll onto data frames.
During the CFP, the PC ensures that the interval between frames to the medium is no longer than PIFS
to prevent a station operating under the DCF from gaining access to the medium. Until CFP, PC sends in
SIFS and waits for response for SIFS and tries again.
NAV prevents stations from accessing the medium during the CFP. Beacon contains the information about
maximum expected length of the CFP. The use of PIFS for those who did not receive beacon. PC announces
the end of the CFP by transmitting a contention-free end (CF-End) Frame. It resets NAV and stations begin
operation of DCF, independently.
There are problems with the PCF that led to the current activities to enhance the protocol. Among many
others, those include the unpredictable beacon delays and unknown transmission durations of the polled
stations. At TBTT target beacon transmission time (TBTT), a PC schedules the beacon as the next frame
to be transmitted, and the beacon can be transmitted when the medium has been determined to be idle for
at least PIFS. Depending on the wireless medium at this point of time, i.e., whether it is idle or busy around
the TBTT, a delay of the beacon frame may occur. The time the beacon frame is delayed, i.e., the duration
it is sent after the TBTT, delays the transmission of time-bounded MSDUs that have to be delivered in CFP.
From the legacy 802.11 standard, stations can start their transmissions even if the MSDU Delivery cannot
finish before the upcoming TBTT [3]. This may severely affect the QoS as this introduces unpredictable time
15
P S S S S
I Station sets I Station sets NAV I I I
F F F CF- F F CF-
Station 1 NAV upon upon receiving
Poll END
S receiving RTS S RTS S S S
Listen
Station defers, but S before
CF-
Station 2 Listen before talk polling only keeps backoff I ACK talk
counter (=2) F
CP
TBTT S
S
I
NAV
Station 3 F ACK Station 3 sets NAV at TBTT reset
S
Station 4 is hidden to the PC, it
Station 4 DCF data does not set its NAV, This station
transmission during should not be part of the BSS time
Contention Period coordinated by the PC (station 1)
Figure 2.4: Example for the PCF operation. Station 1 is the PC polling station 2. Station 3 detects the
beacon frame and sets the NAV for the whole CFP. Station 4 is hidden to station 1 and does not detect the
beacon frame; it continues to operate in DCF.
delays in each CFP. Beacon frame delays of around 4.9ms are possible in 802.11a in the worst case.
• addressing information
1. Protocol Version: 2 bits; to identify the version of the IEEE 802.11 MAC protocol: set to zero now.
2. Frame Type and Sub Type: identifies the function of the frame and which other MAC header fields
are present in the frame. Within each frame types there may be subparts.
3. To DS and From DS: To DS is 1bit length; Set every data sent from mobile station to the AP. Zero
for all other frames. From DS is 1 bit again and for the data types from AP to the mobiel station.
When both zero that means a direct communication between two mobile stations. When both are
16
on, for special case where an IEEE 802.11 WLAN is being used as the DS refeered as wireless DS.
The frame is being sent from one AP to another, over the wireless medium.
4. More Fragments Subfield: 1bit; indicates that this frame is not the last fragment of a data or
management frame.
5. Retry Subfield: 1bit; when zero, the frame is transmitted for the first time, otherwise it is a
retransmission.
6. Power Management Subfield: 1bit;mobile station announces its power management state; 0 means
station is in active mode and 1 means the station will enter the power management mode. The
subfield should be same during the frame exchange in order for the mobile to change its power
management mode. Frame exchange is 2or 4 way frame handshake including the ACK.
7. More Data Subfield: 1bit; AP uses to indicate to a mobile station that there is at least one frame
buffered at the AP for the mobile station. Mobile polled by the PC during a CFP also may use this
subfield to indicate to the PC that there is at least one more frame buffered at the mobile station
to be sent to the PC. In multicast , AP may also set to indicate there are more multicast frames.
8. WEP Subfield: 1bit; 1 indicates that the frame body of MAC frame has been encrypted using
WEP algorithm.(only data and management frames os subtype authentication)
9. Order Subfield: 1bit; indicates that the content of the data frame was provided to the MAC with
a request for strictly ordered service. provides information to the AP and DS to allow this service
to be delivered.
Duration/ID Field (D/ID): 16bits; alternatively contains information for NAV or a short ID(association
ID-AID)used mobile station to get its buffered frames at the AP. only power-save poll (PS-Poll) frame
contains the AID. most two significant bit is set to 1 and the rest contains ID. All values larger than
2007 are reserved.
When 15bit is zero the rest (14-0) represents the remaining duration of a frame exchange to update
NAV. The value is set to 32,768(15bit=1 and the rest 0) in all frames transmitted during the CFP to
allow a station who missed the beginning to recognize that it is in middle of the CFP session and it set
NAV a higher value.
Address Fields: 4 address fields: besides 48bit address (IEEE 802.3) additional address fields are used
(TA,RA,BSSID) to filter multicast frames to allow transparent mobility in IEEE 802.11.
17
2. BSS Identifier (BSSID): unique identifier for a particular BSS. In an infrastructure BSSID it is the
MAC address of the AP. In IBSS, it is random and locally administered by the starting station.
This also give uniqueness. In the probe request frame and group address can be used.
3. Transmitter Address (TA): MAC address of the station that transmit the frame to the wireless
medium. Always an individual address.
4. Receiver Address (RA): to which the frame is sent over wireless medium. Individual or Group.
5. Source Address (SA): MAC address of the station who originated the frame. Always individual
address. May not match TA because of the indirection performed by DS of an IEEE 802.11 WLAN.
SA field is considered by higher layers.
6. Destination Address (DA): Final destination . Individual or Group. May not match RA because
of the indirection.
Sequence Control Field: 16bit: 4bit fragment number and 12bit sequence number. Allow receiving station
to eliminate duplicate received frames.
1. Sequence Number Subfield: 12bit; Each MSDU has a sequence number and it is constant. Sequen-
tially incremented for the following MSDUs.
2. Fragment Number Subfield: 4bits; Assigned to each fragment of an MSDU. The firs fragment is
assigned to zero and incremented sequentially.
Frame Body Field: contains the information specific to the particular data or management frames. Variable
length. As long as 2304bytes and when ecrypted 2312bytes. An application may sent 2048byte with
256 byte upper layer headers.
The frame check sequence is an IEEE 802 LAN standards and generated in the same way as it is in
IEEE 802.3.
18
• FCS
The purpose is to transmit the duration to stations in order for them to update their NAV to prevent
transmissions from colliding with the data or management frame that is expected to follow. Duration
information conveyed by this frame is a measure of the amount of time required to complete the four-way
frame exchange. Duration (ms)= CTS+Data or management frame+ ACK+ 2 SIFS
for updating the NAV. Duration (ms) =Data or management frame + ACK + 1 SIFS
Acknowledge: 14 bytes;
The purpose of this frame is two-fold. First, the ACK frame transmits an acknowledgement to the
sender of the immediately previous data, management, or PS-Poll frame that the frame was received
correctly. Second, the ACK frame is used to transmit the duration of information for a fragment burst
as in CTS.
19
Function To DS From DS Address 1 Address 2 Address 3 Address 4
IBSS 0 0 RA=DA SA BSSID N/A
From the AP 0 1 RA=DA BSSID SA N/A
To the AP 1 0 RA=BSSID SA DA N/A
Wireless DS 1 1 RA TA DA SA
The purpose of this frame is to request that an AP deliver a frame that has been buffered for a mobile
station while it was in a power saving mode.
Purpose of these frames is to conclude a CFP and to release stations from the restriction imposed during
a CFP. CF-End+ACK frame is used to acknowledge the last transmission received by the PC.
• The address 2 field is used to identify the sender of the frame. This is used in ACK.
• The address 3 field carries additional information for frame filtering or forwarding by the DS. When
a mobile station receive a frame by AP, it uses this field as the destination address to indicate the
higher layer protocols. A frame received by AP from a mobile station will use this address as the
destination address of the frame for DS forwarding decisions. In the wireless DS, it contains the
destination address of the frame that was originally received by the AP.
• The address 4 field is used only in a wireless DS as one AP forwards a frame to another AP.The
source address of the original AP is contained here.
• DA is the destination of the MSDU in the frame body field.
• SA is the address of the MAC entity that initiated the MSDU in the frame body field.
20
• RA is the address of the station contained in the AP in the wireless DS that is next recipient.
• TA is the address of the station contained in the AP in the wireless DS that is transmitting the
frame.
• BSSID is the address currently in use by the station contained in the AP if the station is AP or is
associated with an AP. Otherwise, BSSID is the BSSID of the IBSS.
Data+CF-ACK: Sent only during a CFP. Never used in IBSS. ACK is for previously received data frame,
which may not be associated with the address of the destination of the current frame.
Data+CF-Poll: This frame is used only by PC during a CFP to deliver data to a mobile station and
simultaneously request that the mobile station send a data frame that it may have buffered, when the
current reception is completed.
Data+CF-ACK+CF-Poll: Combines the Data+CF-ACK and Data+CF-Poll frames into a single frame
and used by the PC during a CFP.
Null Function (no data): This frame is a data frame with no frame body and used to allow a station that
has nothing to transmit to be able to complete the frame exchange necessary for changing its power
management state. The sole purpose for this frame is to carry the power management bit in the frame
control field to the AP, when a station changes to a low power operating state.
CF-ACK (no data): Mobile station uses to acknowledge the PC during a CFP. ACK is more efficient since
this frame is 29bytes long.
CF-Poll (no data): PC uses to request that a mobile station send a pending data frame during the CFP.
CF-ACK+CF-Poll (no data): Used by the PC and combines CF-ACK and CF-Poll .
• Frame Control,
• Duration,
• Address 1, 2, and 3,
• Sequence control,
• Framebody,
21
– Element ID
– Length
– Information (variable length)
Beacon: It is used to identify a BSS. The Beacon frame also conveys information to mobile stations about
frames that may be buffered during times of low power operation. The Beacon frame includes the
following fixed fields:
Timestamp: 64bits, contains the value of the station‘s synchronization timer at the time that the
frame was transmitted.
Beacon Interval: 16-bit, The Beacon interval is the period, measured in “time units ” (TU) of 1024
microseconds, of beacon transmissions.
Capability Information: 16-bit, it identifies the capabilities of the station.
The information elements in a Beacon frame are the service set identity (SSID), the supported rates, one
or more PHY parameter sets, an optional contention-free parameter set, an optional IBSS paramater
set, and an optional traffic indication map.
Probe Request and Response: Mobile station transmits to quickly locate an IEEE 802.11 WLAN. (with
a particular SSID or any WLAN). It contains SSID and the supported rates. In the infrastructure BSS,
the AP will always respond to probe requests and in IBSS, the mobile station that sent the latest Beacon
will respond.
The probe response contains nearly all the same information as a Beacon frame and includes the times-
tamp, beacon interval, and capability information fixed fields. It also includes the SSID, supported
rates, one or more PHY parameter sets, the optional contention-free parameter set, and the optional
IBSS parameter set.
Authentication: The authentication frame is used to conduct a multiframe exchange between stations that
ultimately results in the verification of the identity of each station to the other, within certain constraints.
The authentication frame includes three fixed fields.
Deauthentication: The station uses to notify another station of the termination of an authentication rela-
tionship. The frame includes only a single fixed field, the reason code.
22
Association Request and Response: The mobile station request an association with a BSS and for the
success or failure of that request is returned to the mobile station by the response. The association
request frame includes two fixed fields, the capability information field and the listen interval. There
are also two information elements in the association request, the SSID and the supported rates.
The association response frame includes three fixed fields: the capability information, the status code,
and the association ID. There is one information element in the association response, the supported
rates.
Reassociation Request and Response: Mobile station that has been associated with a BSS and is now
associating with another BSS with the same SSID uses the reassociation request that includes the same
information as an association request frame, with the addition of a current AP address fixed field. The
reassociation response frame is identical to the association response frame.
Disassociation: The station notifies another station of the termination of an association relationship. The
frame includes only a single fixed field, the reason code.
Announcement Traffic Indication Message: The announcement traffic indication message (ATIM) frame
is used by mobile stations in an IBSS to notify other mobile stations in the IBSS that may have been
operating in low power modes that the sender of the ATIM frame has traffic buffered and waiting to be
delivered to the station addressed in the ATIM frame.
Authentication Algorithm Number: 16-bit, it contains a number identifying the authentication algo-
rithm to be used to complete an authentication transaction. 0 is for “open system” and 1 is for “ shared
key” and the rest is reserved for future usage.
Authentication Transaction Sequence Number: 16-bit, It tracks the progress of an authentication trans-
action. The number is increased sequentially with each authentication frame exchanged during the
transaction.
Beacon Interval: 16-bit, It indicates the typical amount of time that elapses between Beacon frame trans-
missions. One TU (time units) is 1024 µs.
• ESS
• IBSS
23
• CF pollable
• CF-Poll request
• privacy.
• short preamble
• PBCC
• channel agility
The ESS and IBSS subfields are significant only in Beacon and probe response frames. AP sets ESS
subfield to 1 and the IBSS subfield to 0 and a mobile station in an IBSS always sets the ESS subfield
to 0 and the IBSS subfield to 1.
The CF pollable an CF-Poll request subfields are significant in Beacon, probe response, association
request, association response, reassociation request, and reassociation response frames. A mobile station
will set these subfields in association request and reassociation request frames to indicate its contention-
free capability and to request that it be placed on the polling list of the PC.
An AP will set these subfields in Beacon, probe response, association response, and reassociation re-
sponse frames to indicate the capability of the PC.
The privacy subfield is transmitted by the AP in Beacon, probe response, association response, and
reassociation response frames. In addition to indicating that the AP implements WEP, when set to 1,
that means WEP is compulsory otherwise optional.
The short preamble subfield if transmitted by an AP or a mobile station in an IBSS in Beacon, probe
response, association response, and reassociation response frames to indicate the availability of the short
preamble option when using an IEEE 802.11b PHY. When set to 1, short preambles is allowed, when
0, it is not allowed.
The packet binary convolutional coding (PBCC) subfield is transmitted by an AP or a mobile station in
an IBSS in Beacon, probe response, association response, and reassociation response frames to indicate
the availability of the PBCC option when using an IEEE 802.11b PHY.
When a mobile station is not part of an IBSS, the PBCC subfield in association request and reassociation
request frames indicates the capability of the station to send and receive the PBCC of IEEE 802.11b.
The channel agility subfield indicates that the station is using the channel agility option of IEEE 802.11b.
Current AP Address: 6 bytes, It holds the address of the AP with which a mobile station is currently
associated, when that mobile station is attempting to reassociate. If the reassociation is successful, the
new AP uses that AP address to contact and retrieve frames that may have been buffered there for the
mobile station.
24
Listen Interval: 16-bit, The listen interval is used by a mobile station to indicate to an AP how long the
mobile station may be in low power operating modes and unable to receive frames. The value is in units
of the Beacon interval.
Reason Code: 16-bit, It indicates the reason for an unsolicited notification of disassociation or deauthenti-
cation.
Timestamp: 64-bit, It is the value of the station‘s TSFTIMER at the time a frame was transmitted.
Information Elements: SSID, Supported rates, FH parameter set, DS parameter set, CF parameter set,
TIM, IBSS parameter set, Reserved, Challenge text, Reserved for challenge text extension.
Service Set Identity (SSID) , max 32-bit,: This information carries the SSID of the IEEE 802.11 WLAN.
When the length is zero, that means it is broadcasted. The broadcast identity is used in probe request
frames when the mobile station is attempting to discover all IEEE 802.11 WLANs in its vicinity.
Supported Rates: 1-8 bytes, Each byte represents a single rate where the lower 7 bits of the byte repre-
senting the rate value, and the most significant bit indicating whether the rate is mandatory or not.
The supported rates element is transmitted in Beacon, probe response, association request, association
response, reassociation request, and reassociation response frames. If a station does not support all of
the rates indicated to be mandatory, it may not associate with the BSS.
FH Parameter Set: 7 bytes, two byte element ID, length, the element contains the dwell time, hop set,
hop pattern, and hop index. The FH parameter set element is present in Beacon and probe response
frames only if the PHY being used is the IEEE 802.11 FHSS PHY or the IEEE 802.11b PHY with the
channel agility option enabled.
DS Parameter Set: 3 bytes, It contains the element ID and length and current channel. This element is
present in Beacon and probe response frames only if the IEEE 802.11 DSSS or IEEE 802.11b PHY is
being used.
CF Parameter Set: 8 bytes, In addition to the element ID and length, this element contains the CFP count,
CFP period, CFP max duration, and CFP duration remaining. This frame is present in Beacon and
probe response frames only if a PC is in operation in the BSS.
Traffic Indication Map: 6-256 bytes, This element carries information about frames that are buffered at
the AP for stations in power saving modes of operation.
• Element ID
• Length
• Delivery TIM (DTIM) count:
25
• DTIM period
• bitmap control
• partial virtual bitmap
The DTIM count and DTIM period are used to inform mobile stations when multicast frames that have
been buffered at the AP will be delivered and how often that delivery will occur. DTIM count is an
integer value that counts down to zero. This value represents the number of Beacon frames that will
occur before the delivery of multicast frames. DTIM period is the number of Beacon frames between
multicast frame deliveries. The DTIM period has a significant effect on the maximum power savings a
station may achieve.
IBSS Parameter Set: it occurs in beacon frames in an IBSS. It contains element ID, length and also the
ATIM window field. The announcement TIM (ATIM) window field is 16-bits long and indicates the
length of the ATIM window after each Beacon frame transmission in an IBSS. The length of the ATIM
window is indicated in TU.
Challenge Text: 255 bytes, In addition to the element ID and length fields, this element carries one more
field, the challenge text.
Privacy:
The WLAN lacks even the minimal privacy provided by a wired LAN. The IEEE 802.11 Wired Equivalent
Privacy (WEP) mechanism provides protection at a level that is felt to be equivalent to that of a wired LAN.
Data frames that are encrypted are sent with the WEP bit in the frame control field of the MAC header set.
The receiver decrypt the frame and passes to the higher layer protocols.
Only the frame body is encrypted, this leaves the complete MAC header of the data frame, and the entire
frame of other frame types, unencrypted and available to even the casual eavesdroppers.
The encryption algorithm used in IEEE 802.11 is RC4 developed by Ron Rivest of RSA Data Security,
Inc. RC4 is a symmetric stream cipher that supports a variable key length (IEEE 802.11 chosen 40 bit key
length). It is symmetric since the same key and algorithm are used for both encryption and decryption. Unlike
26
a block chipper that processes a fixed number of bytes, a stream chipper is an algorithm that can process an
arbitrary number of bytes.
The IEEE 802.11 standard describes the use of the RC4 algorithm and the key in WEP. However, key
distribution or key negotiation is not mentioned in the standard left to the individual manufacturers of IEEE
802.11 equipment. Secure placement of keys int the individual stations is a discussion in IEEE 802.11 working
group.
WEP Details:
IEEE 802.11 provides two mechanisms to select a key for use when encrypting or decrypting a frame. The
first mechanism is a set of as many as four default keys. Default keys are intended to be shared by all stations
in a BSS or an ESS. The benefit of using a default key is that, once the station obtains the default keys, a
station can communicate securely with all of the other stations in a BSS or ESS. The problem is they are
widely distributed to many stations and may be more likely to be revealed.
The second mechanism provided by IEEE 802.11 allows a station to establish a “key mapping” relationship
with another station. Key mapping allows a station to create a key that is used with only one other station.
The dot11PrivacyInvoked attribute controls the use of WEP in a station. If it is set false, all frames
are sent without encryption. Encryption for specific destinations may only be disabled if a key mapping
relationship exists with that destination.
A default key may be used to encrypt a frame only when a key mapping relationship does not exist between
the sending and receiving station. A key is available if its entry in the dot11WEPDefaultKeysTable is not null.
If one or more default keys is available algorithm which is not defined in the standard chooses one of them.
The WEP header and trailer are appended to the encrypted frame body, the default key used to encrypt the
frame is indicated in the KeyID of the header portion along with the initialization vector, and the integrity
check value (ICV) in the trailer.
If key mapping relationship exists between source and destination stations, the “key mapping key,” the key
shared only by the source and destination stations, must be used to encrypt frames sent to that destination.
The key is chosen dot11WEPKeyMappingsTable. The frame body is encrypted using the key mapping key, and
the WEP header and trailer are appended to the encrypted frame body, If the dot11WEPKeyMappingWEPOn
entry for the destination is true.
Corresponding to the dot11PrivacyInvoked attribute controlling the sending of frames, the dot11ExcludeUnencrypted
attribute controls the reception of encrypted frames. When it is false, all frames is accepted, whether they
are encrypted or not, otherwise only the encrypted ones will be received.
WEP associate with two counters. The dot11UndecryptableCount reflects the number of encrypted frames
that were received by the station that could not be decrypted. The dot11ICVErrorCount reflects the number
of frames that were received by a station for which a key was found that resulted in the calculated ICV value
not matching the ICV received with the frame. These two counters should be monitored carefully when WEP
is used in a WLAN. The dot11UndecrptableCount indicates that an attack to deny service may be in progress,
if the counter is increasing rapidly. The dot11ICVErrorCount can indicate that an attack to determine a key
is in progress, if this counter is increasing rapidly.
27
Chapter 3
MAC Management
Because the media over which the IEEE 802.11 WLAN operate are not wires, the media are shared by other
users that have no concept of data communication or sharing the media. An example of this type of user is
the common microwave oven. The microwave oven operates in the 2.4 GHz ISM band because one excitation
frequency of the water molecule lies in this band. Another user in this same band is the radio frequency ID
(RFID) tag. RFID tags are usually small, cheap, unpowered devices that receive their power from a microwave
beam and then return a unique identifier. RFID tags are used to track retail inventory, identify rail cars, and
many other uses.
There are also other WLANs than IEEE 802.11 that share the media. This would be somewhat equivalent
to attempting to run IEEE 802.3, IEEE 802.5, IEEE 802.12, and fiber distributed data interference (FDDI) on
the same twisted pair cable, simultaneously. These other WLAN users of the media are often uncoordinated
with IEEE 802.11 and, in most cases, do not provide for any mechanism to share the media at all. Finally,
there are other IEEE 802.11 WLANs sharing the media.
Since any one connect to a WLAN, it need to identify the stations connecting to the WLAN to identify
the stations and protect the data.
Another challenge is mobilitiy. Dealing with mobility while making all of the expected LAN services
available is a problem to be solved by MAC management.
And power management is the final challenge, conserving the energy stored in the batteries to allow the
equipment to operate for as long as possible must be built into the WLAN protocol and controlled by MAC
management.
28
it through AP and full proof of the identity of the mobile station is necessary if the network is to be protected
from unauthorized users.
There are two authentication algorithm. “Open system authentication” is a guaranteed result of success
after two station introduce themselves to each other. No verification is needed.
The second authentication algorithm is the “shared key authentication algorithm”. This algorithm depends
on both stations having a copy of a shared WEP key. This algorithm uses the WEP encryption option to
encrypt and decrypt a “challenge text” as the proof that the stations share the same key. Beginning the
authentication process, station A sends its identity assertion to station B. Station B responds to the assertion
with an assertion of its own and a request to station A to prove its identity by correctly encrypting the
challenge text. Station A encrypts the challenge text using the normal WEP encryption rules, including use
of default and key mapping keys, and sends the result back to station B. Station B decrypts the frame using
the appropriate key and returns an authentication management frame to station A with the success of failure
of the authentication indicated. If the authentication is successful, the standard says that each station is
authenticated to the other.
A station may authenticate with any number of other stations. Always mobile performs the encryption
operation on the challenge text and AP somehow occupied in a more privileged position. This leaves the
IEEE 802.11 WLAN open to some not so subtle security problems. In particular, a rogue AP could adopt
the SSID of the ESS and announce its presence through the normal beaconing process. A rogue could then
simply complete normal frame handshake procedures and the mobile stations would be the victims of a denial
of service attack. A more active rogue could use more subtle means to attempt to gain access to the content
of higher layer protocol frames containing user names, passwords, and other sensitive data. If the data is
encrypted using WEP, it is highly unlikely that the rogue could successfully decrypt the information.
3.1.2 Association
Association is the mechanism through which IEEE 802.11 provides transparent mobility to stations. Associ-
ation may only be accomplished after a successful authentication has been completed.
When a mobile station requests to be connected to the WLAN, it sends an association request to an
AP. The association request includes information on the capabilities of the station, such as the data rates
it supports, the high rate PHY options it supports, its contention-free capabilities, its support of WEP, and
any request for contention-free services. The association request also includes information about the length of
time that the station may be in a low power operating mode. The policies and algorithms used by the AP to
make the decision of accepting the association request of the mobile station are not described in the standard.
Some things that may be considered are supporting all of the required data rates and PHY options, requiring
contention-free services beyond the ability of the AP to support, long periods in low power operation that
require excessive buffer commitments from the AP, and the number of stations currently associated. Because
the standard does not specify what information may be considered by the AP when deciding to grant an
association, information not local to the AP may also be used, such as load balancing factors and availability
of other APs nearby. When the AP responds to the mobile station with an association response, the response
includes a status indication. The status indication provides the mobile station with the success or failure of
29
the association request. If the request fails, the reason for that failure is in the status indication.
Once a station is associated, the AP is responsible for forwarding data frames from the mobile station
toward their destination. If the destination is in the same BSS as the mobile station, AP will simply transmit
the data frame to the BSS. If the destination of a data frame is outside the BSS, the AP will send the frame
into the DS. If the destination is in another BSS, the AP sends the frame to the AP of the other BSS, where
it will be forwarded to the mobile station. If the destination of the frame is entirely outside the ESS, the AP
will forward the frame to the portal, the exit from the DS to the rest of the network. A portal is simply a
transfer point between the wired LAN and the ESS, where frames logically enter the ESS. A portal may be an
AP, a bridge, or a router. Because IEEE 802.11 is one of the family of IEEE 802 standards, an IEEE 802.11
frame must be translated from the IEEE 802.11 format to the format of the other LAN. This translation
should be done according to IEEE Std 802.1h for bridging IEEE 802.11 to another LAN. The entire IEEE
802.11 frame, including MAC header and FCS, should not be encapsulated within another MAC protocol.
Similarly, when a data frame is sent from outside the ESS to a mobile station, the portal must forward
the frame to the correct AP, the one that has the mobile station associated in its BSS.
Once a station is successfully associated, it may begin exchanging data frames with the AP. When the
mobile loose contact with the AP, the mobile station must begin a new association in order to continue
exchanging data frames. Because the DS must maintain information about the location of each mobile
station and because data frames may have been sent to an AP with which the mobile station no longer can
communicate, a mobile station will use a reassociation request after its initial association. The AP that has
just granted the reassociation normally communicates with the AP with which the station was last associated
to cause the termination of the old association.
30
operating mode and the functions of the stations that desire to communicate with that station. For a station
to enter a low power operating state, a state where it has turned off the receiver and transmitter to conserve
power, the station must successfully complete a data frame handshake with another station with the power
management bit set in the frame header. The IEEE 802.11 standard does not specify when a station may
enter or leave a low power operating state, only how the transition is to take place.
In the power saving state, the station must wake up to receive every Beacon transmission. The station
must also stay awake for a period of time after each Beacon, called the announcement or ad hoc traffic
indication message window (ATIM). The earliest the station may reenter the power saving state is at the
conclusion of the ATIM window. The reason that a station must remain awake during the ATIM window
is that other stations that are attempting to send frames to it will announce those frames during the ATIM
window. If the power saving station receives an ATIM frame, it must acknowledge that frame and remain
awake until the end of the next ATIM window, following the next Beacon frame, in order to allow the other
station to send its data frame. A station desiring to send a frame to another station in an IBSS, the standard
requires that the sending station estimate the power saving state of the intended destination. How the sending
station creates its estimate is not described in the standard. If the station determines that the destination is
in power saving state, then the station delays its transmission until it has received an acknowledgement of an
ATIM frame.
Multicast frames must also be announced by the sending station during the ATIM window before they
may be transmitted. The ATIM is sent to the same multicast address as the data frame that will be sent
subsequently. Because the ATIM is sent to a multicast address, no acknowledgement will be generated, nor
is one expected. Any stations that wish to receive the announced multicast data frame must stay awake until
the end of the next ATIM window, after the next Beacon frame.
The power management mechanism puts a slightly greater burden on the sending station than on the
receiving station. Sending stations must send an announcement frame in addition to the data frame it desires
to deliver to the destination. Sending stations must buffer the frames to be sent to the power saving destination
until the destination awakens and acknowledges the ATIM. Each transmission of an ATIM consumes power
at the sending station. The receiving station must awaken for every Beacon and ATIM window, but need not
make any transmissions unless it receives an ATIM frame.
31
A mobile station can achieve much deeper power savings than in the IBSS, because it is not required
to awaken for every Beacon, nor to stay awake for any length of time after the Beacons for which it does
awaken. The mobile station must also awaken at times determined by the AP, when multicast frames are to
be delivered. This time is indicated in the Beacon frames as the delivery traffic indication map (DTIM).
The AP will buffer data and multicast frames if it has any stations associated that are in the power saving
mode until a minimum time not less than the number of Beacon periods indicated in the mobile station‘s
associated request. The standard indicates an aging algorithm to discard buffered frames that are older than
it is required to preserve, though a specific algorithm is not described. AP indicate the frames buffered for a
power saving station in the traffic indication map (TIM) sent with each Beacon frame. Each mobile station
has an AID assigned in the association. When the bit in the TIM is set, there is at least one frame buffered for
the corresponding station. When the bit is clear, there are no frames buffered for the corresponding station.
A special AID is dedicated to indicate the status of buffered multicast traffic and the AP will send the TIM,
with every beacon.
If an AP has any buffered multicast frames, those frames are sent immediately after the Beacon announcing
the DTIM. If there is more than one multicast frame to be sent, the AP will indicate this fact by setting the
more data bit in the frame control field of each multicast frame except for the last to be sent.
A mobile station requests delivery of buffered frames by sending a PS-Poll frame to the AP. The AP will
respond to each PS-Poll with a frame where more data bit is set. Mobile station is required to send a PS-Poll
to the AP for each data frame it receives with the more data bit set.
An AP that is also a PC running a contention-free period (CFP) will use the CFP to deliver buffered
frames to stations that are CF Pollable. It may also use the CFP to deliver multicast frames after the DTIM
is announced.
3.1.6 Synchronization
Synchronization is the process of the stations in a BSS getting in step with each other, so that reliable
communication is possible. The MAC provides the synchronization mechanism to allow support of physical
(PHY) layers that make use of frequency hopping or other time-based mechanisms where the parameters of the
PHY layer change with time. The process involves beaconing, to announce the presence of a BSS, and scanning,
to find a BSS. Once a BSS is found, a station joins the BSS. This process is entirely distributed, in both
independent and infrastructure BSSs, and relies on a common timebase, provided by a timer synchronization
function (TSF).
32
Synchronization function is very simple. A mobile station will update its TSF timer with the value of the
timer it receives from the AP in the Beacon frame, modified by any processing time required to perform the
update operation.
Scanning
In order for a mobile station to communicate with other mobile stations in an IBSS or with the AP in an
infrastructure BSS, it must first find the stations or APs. The process of finding another station or AP is
scanning. Scanning may be either passive or active.
• Passive scanning involves only listening for IEEE 802.11 traffic. It minimizes the power expended, while
scanning the medium. The process a station uses is to move to a channel and listen for Beacon and
33
probe response frames, extracting a description of a BSS from each of these frames received. At the
conclusion of the passive scan, the station accumulates information about the BSSs that are in the
vicinity. Power is saved at the expense of more time consuming.
• Active scanning requires the scanning station to transmit and elicit responses form IEEE 802.11 stations
and APs. It saves time spent scanning. The station does this by actively transmitting queries that elicit
responses from stations in a BSS. The mobile move to a channel and transmits a probe request frame.
If there is BSS on the channel that matches the SSID in the probe request frame, the station in that
BSS that sent the latest Beacon frame will respond by sending a probe response frame to the scanning
station. This is the AP in the infrastructure BSS and last station to send a Beacon in an IBSS.
Vendors are free to innovate and create their own policies regarding the use of active and passive scanning.
Joining a BSS
IEEE 802.11 standard does describe what is required of a station to join a BSS, it does not describe how a
station should choose one BSS over another.
• It requires all of the mobile station‘s MAC and PHY parameters be synchronized with the desired BSS.
Station updates its TSF timer with the value of the timer from the BSS description, modified by adding
the time elapsed since the description was acquired. This will synchronize the TSF timer to the BSS.
• It will also coincidentally, synchronize the hopping of frequency hopping PHY layers.
• The station must also adopt the PHY parameters in the FH parameter set and /or the DS parameter
set, as well as the required data rates to ensure that the PHY layer is operating on the same channel.
• The BSSID of the BSS must be adopted and the capability information field, such as WEP and the
IEEE 802.11b high rate PHY capabilities.
Once this process is complete, the mobile station has joined the BSS and is ready to begin communicating
with the stations in the BSS.
34
would perform active or passive scanning for a period of time, gathering BSS descriptions of other BSSs in
the vicinity.
The combination allows a mobile station to gather information about its environment, the other BSSs
that are nearby. When the mobile station eventually does move out of communication with its AP, it has all
of the information available to it. This minimizes the disruption of communication when it is necessary for a
mobile station to roam from one BSS to another.
3.2.2 Preauthentication
A mobile station combines scanning with authentication. As the mobile station scans for other BSSs, it will
initiate an authentication when it finds a new BSS. This also reduces the time required for a station to resume
communication with a new BSS, once it loses communication with the current BSS.
Some vendors choose to propagate an station‘s authentication from one AP to another through the DS,
IEEE 802.11 standard does not discuss this,nor does it prohibit it.
35
Chapter 4
The IEEE 802.11 management information base (MIB) is an SMNPv2 managed object that contains a number
of configuration parameters that allow an external management agent to determine the status and configura-
tion of an IEEE 802.11 station.
The MAC MIB comprises two sections: the station management attributes and the MAC attributes. The
station management attributes are associated with the configuration of options in the MAC and the operation
of MAC management. The MAC attributes are associated with the operation of the MAC and its performance.
36
dot11PowerManagementMode indicates the state of power management in the station.
dot11DesiredSSID indicates the SSID used during the latest scan operation by the station.
dot11DesiredBSSType indicates the type of BSS that the station sought during the latest scan operation.
dot11OperationRateSet is a list of data rates that may be used by the station to transmit in the BSS
with which it is associated.
dot11BeaconPeriod controls the time that elapses between target beacon transmission times. Any change
in this attribute will require that any current BSS be dissolved and a new BSS started with the new
beacon period.
dot11DTIMPeriod controls the number of beacon periods that elapse between DTIMs. Any change will
be ineffective until the new BSS.
dot11AssociationResponseTimeout attribute places an upper limit on the amount of time that a station
will wait for a response to its association request.
dot11DisassociateReason indicates the reason code received in the most recently received disassociation
frame. An external manager can track the location and reasons that stations are disassociated from the
WLAN, in combination with dot11DisassociateStation. If a large number of stations are indicating
authentication failures, deauthentications, or disassociations, this may be an indication that an AP is
misbehaving or that an attack is in progress against the WLAN.
dot11AuthenticationAlgorithm is an entry in a table that holds an entry for each authentication algo-
rithm supported by the station.
dot11WEPDefaultKeyValue is an attribute holding one of the WEP default keys. It is only write-only.
The standard specifies that reading this attribute shall return a value of zero or null.
There is a table of attributes for the WEP key mapping keys. This table holds three accessible attributes:
dot11KeyMappingAddress holds the MAC address of a station with which there exists a key map-
ping relationship.
dot11KeyMappingWEPOn Boolean value and indicates whether the key mapping key is to be used
when communicating with the station with the corresponding address.
dot11KeyMappingValue is the key to be used when key mapping is used to communicate with the
station with the corresponding address.
dot11PrivacyInvoked is a Boolean attribute that indicates when WEP is to be used to product data frames.
dot11WEPDefaultKeyID identifies which of the four default keys are to be used when encrypting data
frames with a default key.
37
dot11WEPKeyMappingLength indicates the number of entries that may be held in the key mapping
table. The minimum value for this attribute is 10, indicating that the key mapping table must hold at
least 10 entries.
dot11ExcludeUnencrypted is a Boolean attribute that controls whether a station will receive unencrypted
data frames. When an unencrypted data frame is discarded, the value of dot11WEPExcludedCount
is incremented. If the dot11WEPExcludedCount is increasing rapidly, it may be due to a station that
is misconfigured, attempting to exchange frames without encryption.
In the same way,dot11WEPICVErrorCount attribute tracks the number of encrypted frames that
have been received and decrypted, but for which the ICV indicates the decryption was not successful.
The station management portion of the MIB also includes three notification objects, corresponding to
three occurrences that are usually exceptional. The dot11Disassociate object is activated when a station
receives a disassociation frame. The dot11Deauthenticate object is activated when the station receives a
deauthentication frame. The dot11AuthenticateFail object is activated when the station does not complete
an authentication sequence successfully.
dot11MACAddress is the unique, individual address of the MAC. 48-bit manufacturer-assigned, globally
administered MAC address.
dot11RTSThreshold controls the transmission of RTS control frames prior to data and management frames.
The default value is 2347.
dot11ShortRetryLimit controls the number of times a frame that is shorter than the dot11RTSThreshold
will be transmitted without receiving an acknowledgement before that frame is abandoned and a failure
is indicated to higher layer protocols.
dot11LongRetryLimit controls the number of times a frame that is equal to or longer than the dot11RTSThreshold
will be transmitted without receiving an acknowledgement before that frame is abandoned and a failure
is indicated to higher layer protocols.
dot11FragmentationThreshold attribute defines the length of the largest frame that the PHY will accept.
Frames larger than this threshold must be fragmented. The default value of this attribute is dependent
on the PHY layer parameter a MPDUMaxLength. If the value of aMPDUMaxLength is greater than
or equal to 2346, the default value is 2346, otherwise the default value is aMPDUMaxLength.
38
dot11MaxTransmitMSDULifetime controls the length of time that attempts to transmit an MSDU will
continue after the initial transmission attempt. Since there may be fragmentation and retry limits apply
to only a single frame of the fragment stream, this timer limits the amount of bandwidth that may be
consumed.
dot11MaxReceiveLifetime controls the length of time that a partial fragment stream will be held pending
reception of the remaining fragments necessary for complete reassembly of the MSDU.
dot11ManufacturerID is a variable length character string that identifies the manufacturer of the MAC.
dot11FailedCount is a counter that tracks the number of frame transmissions that are abandoned because
they have exceeded either the dot11ShortRetryLimit or dot11LongRetryLimit. This provide an
indication of the “condition” of a BSS.
dot11RetryCount 2 3 is a counter that tracks the number of frames that required at least one retransmission
before being delivered successfully. dot11MultipleRetryCount is a counter that tracks the number
of frames that required more than one retransmission to be delivered successfully.
dot11RTSSuccessCount is a counter that increments for each CTS received in response to an RTS.
dot11RTSFailureCount is a counter that increments each time a CTS is not received in response
to an RTS.
dot11ACKFailureCount is a counter that tracks the number of times a data or management frame is sent
to an individual address and does not result in the reception of an ACK frame from the destination.
dot11MulticastReceivedCount is a counter that track the number of frames received by the station that
match a multicast address in the group addresses table or were sent to the broadcast address.
1
dot11RetryCount-dot11MultipleRetryCount The number of frames delivered successfully after only one retransmission.
3
The number of individually addressed frames -dot11RetryCount indicates the number of frames delivered successfully on the first transmission attempt.
39
dot11FCSErrorCount is a counter that tracks the number of frames received, of any type, that resulted in
an FCS error. Increasing load and increasing error rate will both result in this counter increasing more
rapidly.
dot11TransmittedFrameCount is a counter that tracks the number of MSDUs that have been transmitted
successfully. This counter increments only if the entire fragment stream required to transmit an MSDU
is sent and an acknowledgement is received for every fragment.
dot11WEPUndecryptableCount is a counter that tracks the number of frames received without FCS
errors and with the WEP bit indicating that the frame is encrypted, but that can not be decrypted due
to the dot11WEPOn indicating a key mapping key is not valid or the station not implementing WEP.
dot11Address attribute stores the multicast addresses. This attribute is one entry in the dot11GroupAddressesTa
dot11manufacturerOUI contains the IEEE-assigned 24-bit organizational unique identifier that forms
half of a globally administered MAC address.
dot11manufacturerName is a variable length character string containing the name of the manufac-
turer of the MAC.
dot11manufacturerProductName is also a variable length character string containing the product
identifying information for the MAC.
dot11manufacturerProductVersion is also a variable length character string that identifies the
version information for the MAC.
40
Chapter 5
41
MAC Layer
Physical Layer
PLCP Sublayer
PMD Sublayer
SYNC This field is 128 bits in length and contains a string of 1s which are scrambled prior to transmission.
The receiver uses this field to acquire the incoming signal and synchronize the receiver‘s carrier tracking
and timing prior to receiving the start of frame delimiter (SFD).
Start of frame delimiter (SFD) This field contains information marking the start of a PPDU frame. The
SFP specified is common for all IEEE 802.11 DSSS radios and uses the following hexadecimal word:
F3A0hex.
Signal The signal field defines which type of modulation must be used to receive the incoming MPDU. The
binary value in this field is equal to the data rate multiplied by 100 kbit/s. In the June 1997 version
of IEEE 802.11, two rates are supported. They are: 0Ah for 1Mbps DBPSK and 14hex for 2 Mbps
DQPSK.
Service The service field is reserved for future use and the default value is 00h.
Length The length field is an unsigned 16-bit integer that indicates the number of microseconds necessary
to transmit the MPDU. The MAC layer uses this field to determine the end of a PPDU frame.
CRC The CRC field contains the results of a calculated frame check sequence from the sending station. The
CRC-16 algorithm is represented by the following polynomial: G(x) = x16 + x12 + x5 + x1 . The receiver
performs the calculation on the incoming signal, service, and length fields and compares the results
against the transmitted value. If an error is detected, the receiver‘s MAC makes the decision if incoming
PPDU should be terminated.
42
PPDU (Spread)
Modulo-2 Transmit DBPSK
Scrambler Adder Mask DQPSK
Filter Modulator
Timing
Clock Recovery
FCS field of the MPDU portion of the PPDU protects the information in the PLCP service data unit
(PSDU). The DSSS PHY does not determine if errors are present in the MPDU. The MAC makes that
determiation similar to the method used by the PHY layer.
PPDU
43
receiver can descramble the information bits without prior knowledge from the sending station.
Barker word(11 − bits) + 1, −1, +1, +1, −1, +1, +1, +1, −1, −1, −1
In the transmitter, the 11-bit Barker word is applied to a modulo-2 adder (Ex-Or function) together with
each of the information bits in the PPDU. The PPDU is clocked at the information rate, 1 Mbps for example,
and the 11-Barker word at 11 Mbps (the chipping block). The output of the modulo-2 adder results in a signal
with a data rate that is 10x higher than the information rate. At the receiver, the DSSS signal is convolved
with the 11-bit Barker word and correlated. The correlation operation recovers the PPDU information bits at
the transmitted information rate, and the undesired interfering in-band signals are spread out-of-band. The
spreading and despreading of narrowband to a wideband signal is commonly referred to as processing gain
and measured in decibels (dB). Processing gain is the ratio of the DSSS signal rate to the PPDU information
rate. The FCC and MKK specify the minimum requirement for processing gain in North America and Japan
as 10 dB.
44
0dBr
-30dBr
-50dBr
Minimum
Channel spacing between
Center frequencies
25 MHz 25 MHz
45
Transmit 2-Level
Gaussian 4-Level
PSDU
Data Symbol Shaping GFSK
Whitener Mapping Filter Demodulator
Data PSDU
2-Level
4-Level De-Whitener
GFSK
Demodulator
SFD This field contains information marking the start of a PSDU. A common SFD is specified for all IEEE
802.11 FHSS radios using the following bit pattern: 0000110010111101.
PLW This field specifies the length of the PSDU in octets and is used by the MAC to detect the end of a
PPDU frame.
PLCP signaling field (PSF): The PSF identifies the data rate of the whitened PSDU ranging from 1 Mbps
to 4.5 Mbps in increments of 0.5 Mbps. The PLCP preamble and header are transmitted at the basic
rate, 1 Mbps. The optional data rate for the whitened PSDU is 2 Mbps.
Header Check Error This field contains the results of a calculated frame check sequence from the sending
station. The calculation is performed prior to data whitening. The CCIT CRC-16 error detection
algorithm is used to protect the PSF and PLW fields.
46
PLCP - Preamble PLCP - Header
PPDU
The MAC makes the determination of the correct reception of PPDU frame by looking FCS which is
embedded at the end of the PSDU portion of the PPDU.
47
5.3.4 FHSS Channel Hopping
A set of hop sequences is defined in IEEE 802.11 for use in the 2.4 GHz frequency band. The channels are
evenly spaced across the band over a span 83.5 MHz. Hop channels differs from country to country.
Channel hopping is controlled by the FHSS PMD. The FHSS PMD transmits the whitened PSDU by
hopping from channel to channel in a pseudorandom fashion using one of the hopping sequences.
PSDU 16-PPM
Symbol LED
4-PPM
Mapping Driver
Modulator
Transmit IR PMD
Symbol PSDU
Diode 16-PPM Mapping
Detector 4-PPM
De-modulator
Receiver IR PMD
48
PLCP - Preamble PLCP - Header
PPDU
SYNC This field contains a sequence of alternated presence and absence of a pulse in consecutive time slots.
The SYNC field is used by the IR PHY to perform signal acquisition and clock recovery. The standard
specifies 57 time slots as the minimum and 73 time slots as the maximum.
SFD This field contains information that marks the start of a PPDU frame. A common SFD is specified for
all IEEE 802.11 IR implementations. The SFD is represented by the following bit pattern: 1001
Data Rate This field defines the data rate the PPDU is transmitted. There are two rates to choose from
000 for 1 Mbps (the basic rate) and 001 for 2 Mbps (the enhanced access rate). The PLCP preamble
and PLCP header are always sent at the basic rate 1 Mbps.
DC level This field contains information that allows the IR PHY to stabilize the DC level after receiving
the preamble and data rate fields.
Length This field contains an unsigned 16-bit integer that indicates the number of microseconds to transmit
the PSDU. The MAC layer uses this field to detect the end of a frame.
Frame Check Sequence This field contains the calculated 16-bit CRC result from the sending station. The
CCITT CRC-16 error detection algorithm is used to protect the length field. The receiver performs the
calculation on the incoming Length field and compares the results against the transmitted field. If an
error is detected, the receiver‘s MAC determines if the incoming PSDU should be terminated.
Again MAC uses the FCS to make the determination for PSDU.
49
Data Bits 4-PPM Symbol
00 0001
01 0010
11 0100
10 1000
50
Chapter 6
In October 1997 the IEEE 802 Executive Committee approved two projects to for higher rate physical layer
(PHY) extensions to IEEE 802.11. The first extension, IEEE 802.11a, defines requirements for a PHY
operating in the 5.0 GHz U-NII frequency and data rates ranging from 6 Mbps to 54 Mbps.
The second extension, IEEE 802.11b, defines a set of PHY specifications operating in the 2.4 GHz ISM
frequency band up to 11 Mbps. Both PHY are defined to operate with the existing MAC.
PLCP preamble This field is used to acquire the incoming signal and train and synchronize the receiver.
The PLCP preamble consists of 12 symbols, ten of which are short symbols, and two long symbols.
The short symbols are used to train the receiver‘s AGC and obtain a coarse estimate of the carrier
frequency and the channel. The long symbols are used to fine-tune the frequency and channel estimates.
Twelve sub-carriers are used for the short symbols and 53 for the long. The training of an OFDM is
accomplished in 16 µs. PLCP preamble is BPSK-OFDM modulated at 6 Mbps.
51
PLCP - Header
PPDU
Signal The signal is a 24-bit field, which contains information about the rate and length of the PSDU. The
Signal field is convolutional encoded rate 1/2, BPSK-OFDM modulated. Four bits (R1 - R4) are used to
encode the rate, eleven bits are defined for the length, one reserved bit, a parity bit, and six “0” tail bits.
the rate bits (R1-R4) are defined in Table 6.1. The mandatory data rates for IEEE 802.11a-compliant
systems are 6 Mbps, 12 Mbps, and 24 Mbps.
Length The length field is an unsigned 12-bit integer that indicates the number of octets in the PSDU.
Data The data field contains the service field, PSDU, tails bits, and pad bits. A total of six tail bits containing
0s are appended to the PPDU to ensure that the convolutional encoder is brought back to zero state.
52
which may contain long strings of binary 1s or 0s. The tail bits are not scrambled. The scrambling polynomial
for the OFDM PHY is: S(x) = x−7 + x−4 + 1.
53
Bit
Concolutional Interleaving Inverse Symbol QAM
PPDU
Encoder And FFT Shaping Modulator
Mapping
Bit PPDU
Convolutional
PSK De-Interleaving
FFT Code
QAM And
Decoder
Demodulator De-mapping
SYNC The receiver uses this field to acquire the incoming signal and synchronize the receiver‘s carrier
tracking and timing prior to receiving the SFD.
54
SFD This field contains information marking the start of a PPDU frame. The SFD specified is common for
all IEEE 802.11 DSSS and IEEE 802.11b long preamble radios.
Signal The signal field defines which type of modulation must be used to receive the incoming PSDU. The
binary value in this field is equal to the data rate multiplied by 100 kbit/s.
Service The service field uses 3 bits of the reserved 8 bits for IEEE 802.11b. Data bit (b2) determines
whether the transmit frequency and symbol clocks use the same local oscillator. Data bit (b3) indicates
whether complimentary code keying (CCK) or packet binary convolutional coding (PBCC) is used and
data bit (b7) is a bit extension used in conjunction with the length field to calculate the duration of the
PSDU in micoseconds. This field is used for the long and short preamble frames.
Length The length field is an unsigned 16-bit integer that indicates the number of microseconds necessary
to transmit the PSDU.
CRC The CRC field contains the results of a calculated frame check sequence from the sending station. The
calculation is performed prior to data scrambling for the long and short preamble. The CCITT CRC -
16 error detection algorithm is used to protect the signal,service and length fields.
6.2.4 IEEE 802.11 DSSS High Rate Modulation and Data Rates
There are four modulation formats and data rates defined in IEEE 802.11b. The data rates include the basic
rate, the extended rate, and enhanced rate. The basic rate is defined, as 1 Mbps modulated with DBPSK,
and the extended rate is 2 Mbps DQPSK modulated. The 11-bit Barker word is used as the spreading format
for the basic and extended rate as described for the DSSS PHY in Chapter 5. The enhanced rate is defined to
operate at 5.5 Mbps and 11 Mbps using CCK modulation and packet binary convolutional coding (PBCC).
PBCC is an option in the standard for those networks requiring enhanced performance. Frequency agility is
another option defined in IEEE 802.11b. As with the 1 and 2 Mbps DSSS PHY, this option enables existing
IEEE 802.11 FHSS 1 Mbps networks to be interoperable with 11 Mbps CCK high rate networks.
55
6.2.5 Complementary Code Keying (CCK) Modulation
CCK for the high rate extension to deliver PSDU frames at speeds of 5.5 Mbps and 11 Mbps was adopted
because it easily provides a path for interoperability with existing IEEE 802.11 1 and 2 Mbps systems by
maintaining the same bandwidth and incorporating the existing DSSS PHY PLCP preamble and header.
56
Chapter 7
The IEEE 802.11 WLAN standard provides a number of physical layer options in terms of data rates, mod-
ulation types, and spreading spectrum techniques. Selecting the right physical layer and MAC technologies
requires careful planning and detailed systems analysis for developing the optimal WLAN implementation.
7.2 Multipath
Multipath is one of the performance concerns for indoor IEEE 802.11 WLAN systems. Multipath occurs
when the direct path of the transmitted signal is combined with paths of the reflected signal paths, resulting
in a corrupted signal at the receiver. The delay of the reflected signals known as delay spread is measured in
nanoseconds. Delay spread is the parameter used to signify multipath. The amount of delay spread varies for
environments see Table ??.
RAKE processing and equalization are two methods used to process and resolve delay spread. A RAKE
receiver is well-known architecture used to remove delay spreads on the order of 100nsec. The RAKE is
structured as a bank of correlators (fingers) with weighed delays and a combiner. Equalization is an alternative
57
Environment Delay Spread
Home ¡50 nsec
Office 1̃00 nsec
Manufacturing floor 200-300 nsec
used to correct delay spreads greater than 100 nsec. Multipath causes the signals from the previous symbol
to interfere with the signals of the next.
Where N (0, 12 σk2 ) is a zero mean Gaussian random variable with variance 21 σk2 .
Let Ts be the sampling period and TRM S be the delay spread of the channel. The performance assessment
shall be no longer than the smaller of 1/(signal bandwidth) or TRM S /2. The number of samples to be taken
in the impulse response should ensure sufficient delay of the impulse response tail, e.g. kmax = 10xTRM S /Ts .
58
sheet rock and wood typically attenuates the signal by 6 dB and walls constructed with cement block walls
attenuate the signal by 4 dB. However, additional losses may occur depending on the fading characteristics of
the operating environment. The sam path principles apply for all frequency bands. However, as the operating
frequency increases from 2.4 GHz to 5 GHz, for example, and additional path loss of 5-10 dB occurs. This
results in a smaller cell radius and may require additional overlapping cells and APs to guarantee the same
area as a system operating at 2.4 GHz.
59
to multipath, interference sources, and neighboring existing WLAN installations. Lastly, it is used in cell
planning of overlapping BSAs and for layout of APs giving them hardwired access to existing wired Ethernet
LAN infrastructures.
60
configurations. Patch antennas are commonly used at the mobile client PCMCIA implements, because of cost
and size constraints. On the other hand, omni-directional antennas are used at the AP because they provide
the optimal antenna coverage. Although antenna diversity is an option in the standard, as a minimum, antenna
diversity should always be consider at the AP, as shown in Figure 7.1. This form of diversity will minimize
the risk of packet loss due to multipath and interference, and ensure optimal throughput performance in a
system.
Single Antenna
802.11
Mobile
Station
802.11
Mobile
Station
802.11 Diversity
Mobile
Station
802.11
Access Point
61
Chapter 8
IEEE 802.11a A physical layer standard for WLANs in the 5GHz radio band. It specifies eight available
radio channels. Maximum link rate of 54-Mbps per channel. Comments: Higher data throughput and
greater number of channels give better protection against possible interference from neighboring access
points. When: Standard completed in 1999. Products are available now.
IEEE 802.11b A physical layer standard for WLANs in the 2.4 GHz radio band. It specifies three available
radio channels. Maximum link rate of 11-Mbps per channel. Comments: Installations may suffer from
speed restrictions in the future as the number of active users increase, and the limit of three radio
channels may cause interference from neighboring access points. When: Standard completed in 1999.
Products have been available since 2001.
IEEE 802.11d 802.11d is supplementary to the Media Access Control layer in 802.11 to promote worldwide
use of 802.11 WLANs. It will allow access points to communicate information on the permissible radio
channels with acceptable power levels for user devices. The 802.11 standards cannot legally operate
in some countries; the purpose of 11d is to add features and restrictions to allow WLANs to operate
within the rules of these countries. Comments: Equipment manufacturers do not want to produce a
wide variety of country-specific products and users that travel do not want a bag full of country-specific
WLAN PC cards. The outcome will be country-specific firmware solutions. When: Work is ongoing,
but see 802.11h for a timeline on 5 GHz WLANs in Europe.
IEEE 802.11e Supplementary to the MAC layer to provide QoS support for LAN applications. It will apply
to 802.11 physical standards a,b and g. The purpose is to provide classes of service with managed levels
62
of QoS for data, voice and video applications. Comments: 11e should provide some useful features
for differentiating data traffic streams. Many WLAN manufacturers have targeted QoS as a feature
to differentiate their products, so there will be plenty of proprietary offerings before 11e is complete.
When: The finalized standard is expected in the second half of 2002. Products will be available in the
second half of 2003.
IEEE 802.11f This is a “recommended practice” document that aims to achieve radio access point inter-
operability within a multi-vendor WLAN network. The standard defines the registration of access points
within a network and the interchange of information between access points when a user is handed over
from one access point to another. Comments: 802.11f will reduce vendor lock-in and allow multi-vendor
infrastructures. When: Completed standard expected in the second half of 2002. Products will be
available in the first half of 2003.
IEEE 802.11g A physical layer standard for WLANs in the 2.4 GHz and 5 GHz radio band. It specifies
three available radio channels. The maximum link rate is 54-Mbps per channel compared with 11
Mbps for 11b. The 802.11g standard uses OFDM modulation but, for backward compatibility with
11b, it also supports complementary code keying (CCK) modulation and, as an option for faster link
rates, allows packet binary convolutional coding (PBCC) modulation. Comments: Speeds similar to
11a and backward compatibility may appear attractive but there are modulation issues: Conflicting
interests between key vendors have divided support within IEEE task group for the OFDM and PBCC
modulation schemes. The task group compromised by including both types of modulation in the draft
standard. With the addition of support for 11b‘s CCK modulation, the end result is three modulation
types. This is perhaps too little, too late and too complex compared with 11a. However, there are
advantages for vendors looking to supply dual-mode 2.4 GHz and 5 GHz products, in that using OFDM
for both modes will reduce silicon cost. When: Completed standard expected in the second half of 2002.
Products will be available in the first half of 2003.
IEEE 802.11h This standard is supplementary to the MAC layer to comply with European regulations for
5 GHz WLANs. European radio regulations for the 5 GHz band require products to have transmission
power control (TPC) and dynamic frequency selection (DFS). TPC limits the transmitted power to
the minimum needed to reach the furthest user. DFS selects the radio channel at the access point
to minimize interference with other systems, particularly radar. Comments: Completion of 11h will
provide better acceptability within Europe for IEEE compliant 5 GHz WLAN products. When: The
standard is expected to be finalized by the second half of 2002. Products will be available in the first
half of 2003.
IEEE 802.11i Supplementary to the MAC layer to improve security. It will apply to 802.11 physical stan-
dards a,b and g. It provides an alternative to WEP with new encryption methods and authentication
procedures. IEEE 802.1x forms a key part of 802.11i. Comments: Security is a major weakness of
WLANs. Weakness of WEP encryption is damaging the 802.11 standard perception in the market.
Vendors have not improved matters by shipping products without setting default security features. In
63
addition, the WEP algorithm weakness have been exposed. The 11i specification is part of a set of
security features that should address and overcome these issues by the end of 2002. Solutions will start
with firmware upgrades using the Temporal Key Integrity Protocol (TKIP), followed by new silicon with
AES (an iterated block chipper) and TKIP backwards compatibility. When: Finalization of the TKIP
protocol standard is expected in the first half of 2002. Firmware will be available in the second half of
2002. New silicon with an AES cipher is expected by the second half of 2003.
IEEE 802.11x A framework for regulating access control of client stations to a network via the use of
extensible authentication methods. It forms a key part of the important 802.11i proposals for enhanced
security. It applies to 802.11 physical standards a,b and g.
IEEE 802.1p A standard for traffic class and dynamic multicast filtering. It provides a method to differen-
tiate traffic streams in priority classes in support of quality of service offering. It forms a key part of
the 802.11e proposals for QoS at the MAC level. This applies to 802.11 physical standards a,b and g.
64
stations is provided by setting CW min[T C] < 15 (in case of 802.11a PHY) and AIF S = DIF S. See
Figure 8.1 for illustration of the EDCF parameters.
AIFS[TC]
With 802.11a
low
backoff slot: 9us
AIFS[TC] priority TC SIFS: 16us
PIFS: 25us
AIFS[TC] DIFS: 34us
(=DIFS) medium AIFS: >=34us
backoff
priority TC
PIFS
time
SIFS SIFS high
ACK RTS
priority TC
SIFS
DATA Contention Window CTS
(counted in slots, 9us)
Figure 8.1: Multiple parallel backoffs of MSDUs with different priorities. Note that AIFS may be smaller
than DIFS. In that case the CW starts at 1 rather than 0, which is the same as AIFS=DIFS.
As in the legacy DCF, when the medium is determined busy before the counter reaches zero, the backoff
has to wait for the medium being idle for AIFS again, before continuing to count down the counter. A big
difference from the legacy DCF is that when the medium is determined busy before the counter reaches zero,
the backoff has to wait for the medium being idle for AIFS again, before continuing to count down the counter.
A big difference from the legacy DCF is that when the medium is determined as being idle for the period of
AIFS, the backoff counter is reduced by one beginning the last slot interval of the AIFS period. Note that with
the legacy DCF, the backoff counter is reduced by one beginning the firs slot interval after the DIFS period.
After any unsuccessful transmission attempt a new CW is calculated with the help of the persistence factor
P F [T C] and another uniformly distributed backoff counter out of this new, enlarged CW is drawn, to reduce
the probability of a new collision. Whereas in legacy 802.11 CW is always doubled after any unsuccessful
transmission (equivalent to PF=2), 802.11e uses the PF to increase the CW different for each TC:
Thw CW never exceeds the parameter CW max[T C], which is the maximum possible value for CW.
A single station may implement up to eight transmission queues realized as virtual stations inside a station,
with QoS parameters that determine their priorities. If the counters of two or more parallel TCs in a single
station avoids the virtual collision. The scheduler grants the TXOP to the TC with highest priority, out of
the TCs that virtually collided within the station, as illustrated in Figure 8.2. There is then still a possibility
that the transmitted frame collides at the wireless medium with a frame transmitted by other stations.
Another important part of the 802.11e MAC is the Transmission Opportunity (TXOP). A TXOP is an
interval of time when a station has the right to initiate transmissions , defined by a starting time and a
maximum duration. TXOPs are acquired via contention (EDCF-TXOP) or granted by the HC via polling
(polled TXOP). The duration of an EDCF-TXOP is limited by a QBSS-wide TXOP limit distributed in beacon
65
Legacy: 802.11e
one priority Higher priority up to 8 independent backoff instances Lower priority
TC 7 TC 6 TC 5 TC 4 TC 3 TC 0 TC 1 TC 2
old new
Transmission Transmission
Attempt Attempt
Figure 8.2: Virtual backoff of eight traffic categories: (1) left one: legacy DCF, close to EDCF
with AIFS=34us, CWmin=15, PF=2; (2) right one: EDCF with AIFS[TC]=¿ 34us, CWmin[TC]=0-
255,PF[TC]=1-16.
frames. While the duration of a polled TXOP is specified by the duration field inside the poll frame. However,
although the poll frame is a new frame as part of the upcoming 802.11e, also the legacy stations set their NAVs
upon receiving this frame. More details about polled TXOP follow in the next subsection. The prioritized
channel access is realized with the QoS parameters per TC, which include AIFS[TC], CWmin[TC], and
PF[TC]. CWmax[TC] is optional. There are discussions to introduce priority dependent EDCF-TXOP[TC].
The QoS parameters can be adapted over time by the HC, and will be announced periodically via the beacon
frames. Protocol-related parameters are included in the beacon frame, which is transmitted at the beginning
of each superframe.
66
a CF-End frame from the HC.
As part of 802.11e, an additional random access protocol that allows fast collision resolution is defined.
The HC polls stations for MSDU Delivery. For this, the HC requires information that has to be updated by
the polled stations form time to time. Controlled contention is a way for the HC to learn which station needs
to be polled, at which times, and for which duration. The controlled contention mechanism allows stations to
request the allocation of polled TXOPs by sending resource requests, without contending with other (E)DCF
traffic. Each instance of controlled contention occurs during the controlled contention interval, which is started
when the HC sends a specific control frame. This control frame forces legacy stations to set their NAV until
the end of the controlled contention interval, thus they remain silent during the controlled contention interval.
The control frame defines a number of controlled contention opportunities (i.e., short intervals seperated by
SIFS) and a filtering mask containing the TCs in which resource requests may be placed. Each station with
queued traffic for a TC matching the filtering mask chooses one opportunity interval and transmits a resource
request frame containing the requested TC and TXOP duration, or the queue size of the requested TC. For
fast collision resolution, the HC acknowledges the reception of request by generating a control frame with a
feedback field so that the requesting stations can detect collisions during controlled contention.
The polled TXOPs are allocated with highest priority, without any CA, i.e. without any backoff before
the poll. The polling scheme requires that there is one HC coordinating the channel, without any other HC
in the range of this HC.
67
View publication stats
Bibliography
[1] B. O’Hara, A. Petrick, “IEEE 802.11 Handbook- A Designer‘s Companion”, IEEE Press.
[2] S. Mangold, L. Berlemann, G. Hiertz, “QoS Support as Utility for Coexisting Wireless LANs”, IPCN
Paris,2002.
[3] IEEE 802.11 WG, “Reference number ISO/IEC 8802-11:1999(E) IEEE Std 802.11, 1999 edition. Inter-
national Standard [for] Information Technology-Telecommunications and information exchange between
systems-Local and metropolitan area networks-Specific Requirements-Part 11: Wireless LAN Medium
Access Control (MAC) and Physical Layer (PHY) specifications,” 1999.
68