Professional Documents
Culture Documents
11
Wireless LAN
All rights reserved. No part of this
publication and file may be reproduced,
stored in a retrieval system, or transmitted
in any form or by any means, electronic,
mechanical, photocopying, recording or
otherwise, without prior written permission
of Professor Nen-Fu Huang
Wireless LAN - 1
Wireless LAN
Architecture
Four major differences between
Wireless LAN
Architecture
The Media Impacts the Design
The PHY layers used in 802.11 are
Wireless LAN - 3
Wireless LAN
Architecture
Impact of Handling Mobile Stations
A portable station is one that is moved
Wireless LAN - 4
Wireless LAN
Architecture
Interaction With Other 802 Layers
802.11 is required to appear to higher
Wireless LAN - 5
Wireless LAN - 6
802.11Wireless LAN
Characteristics
Wireless LAN - 7
802.11Wirelss LAN
Characteristics
Bandwidth Fairness is not
802.11
Architecture
Wireless Medium (WM):
The medium used to implement a wireless LAN.
Components
Station (STA):
Any device that contains an 802.11 conformant
Wireless LAN - 9
802.11
Architecture
Basic Service Set (BSS):
Components
A
set of STAs controlled by a single CF
(Co-ordination Function).
The BSS is the basic building block of an
802.11 LAN. The member stations of a BSS
can communicate to each other directly.
If a station moves out of it's BSS coverage
area, it can no longer directly
communicate with other members of the
BSS.
Wireless LAN - 10
802.11
Architecture
The
Independent BSS as an Ad-Hoc
Components
Network
This mode of operation is
possible when 802.11 LAN
stations are close enough to form
a direct connection (without preplanning).
Wireless LAN - 11
802.11
Architecture
STA to AP Association is Dynamic
TheComponents
association between a station and a BSS is
dynamic (STAs turn on, turn off, come within range
Wireless LAN - 12
802.11
Architecture
Distribution System (DS):
Components
ESS.
Wireless LAN - 13
802.11 Architecture
Components
Distribution System Services (DSS):
The set of services provided by the DS
Wireless LAN - 14
802.11
Architecture
ESS
Components
STA 1
BSS 2
STA 4
BSS 1 STA 2
AP
STA 3
AP
Distributed
System
802.11 Architecture
Components
ESS: The large coverage network
The DS and BSSs allow 802.11 to create a wireless
Wireless LAN - 16
802.11 Architecture
Components
Basic Service Area (BSA):
The area within which members of
a BSS can communicate.
Extended Service Area (ESA):
The area within which members of
Wireless LAN - 17
802.11
Architecture
Components
STA 1
STA 2
AP
BSS 1
STA 3
AP
STA 5
STA 4
BSS 2
STA 7
AP
STA
6
BSS 3
Area Concepts,
a signal strength
(intensity) map
A square room
a metal desk
(lower left)
an open door-way
(top right)
A static snapshot
change dynamically
as stations and
objects in the
environment move
Variability of field
strength even in a
static environment.
Wireless LAN - 19
802.11 Architecture
Components
The following are possible
The BSSs may partially overlap. This is commonly used
Wireless LAN - 20
Integration with
Wired LANs
To integrate the 802.11
Integration with
Wired LANs
ESS
STA 1
BSS 1
BSS 2
STA 4
STA 2
AP
STA 3
AP
DS
Portal
IEEE 802.X
Wireless LAN - 22
Potrals and
Bridges
Bridges were originally designed
Bridge
mode and
router
mode?
Potrals and
Bridges
Bridges
are also used to interconnect MAC
Wireless LAN - 24
Logical Service
Interface
Wireless LAN - 25
Logical Service
Interface
The complete set of 802.11
Wireless LAN - 26
Logical Service
Interface
ESS
802.11
MAC/PHY
STA 1
STA 2
SS
BSS 1
AP
DSS
BSS 2
802.11
MAC/PHY
STA 3
DS
STA
SS 4
AP
Portal
IEEE 802.X
Wireless LAN - 27
Logical Service
Interface
including APs.
Are specified for use by MAC layer
entities.
The SS subset is:
Authentication
Privacy
Wireless LAN - 28
Logical Service
Interface
boundaries.
Provided by the DS.
They are accessed via a STA which also provides DSS.
The DSS subset is:
Association
Disassociation
Distribution
Integration
Reassociation
Wireless LAN - 29
Multiple Logical
Address Spaces
The WM, DSM, and an integrated
Multiple Logical
Address Spaces
802.11 has chosen to use the
Overview of the
Services
Overview of the
Services
of messages:
service path.
Management: handled via the MAC
Management Service data path.
Control
Wireless LAN - 33
Distribution of
Message Within a
1. Distribution:
DS
The service which (by using Association
Wireless LAN - 34
Distribution of
Message Within a
All
802.11 is required to provide the DS
DS
with enough information for the DS to
Wireless LAN - 35
Distribution of
Message Within a
2.DS
Integration:
Wireless LAN - 36
Distribution of
Message Within a
Messages which are distributed to a
DS
Portal cause the DS to invoke the
Services Which
Support the
The
Distribution
Service
information required
for
Services Which
Support the
3. Mobility types:
Distribution
Service
No-transition
Static - no motion
Local movement: movement within a Basic
Service Area
Wireless LAN - 39
Services Which
Support the
Distribution Service
4. Association:
The service which establishes an initial
Wireless LAN - 40
Services Which
Support
the
An AP may be associated with many mobile
STAs
at one time.
Distribution
Service
A station learns what APs are present and
Wireless LAN - 41
Services Which
Support the
5. Distribution
Reassociation :
Service
The service which enables an established
Wireless LAN - 42
Services Which
Support
the
6. Disassociation :
Distribution
Service
The
service which deletes an existing
Association.
Wireless LAN - 43
Access and
Confidentiality
Two services are required for 802.11 to provide
Control
Services
functionality equivalent to that which is
Access and
Confidentiality Control
7. Authentication / 8. Deauthentication:
Services
The service used to establish the identity of Stations to each
other.
Wireless LAN - 45
Authentication
Service
Wireless LAN - 46
Authentication
Service
Wireless LAN - 47
Authentication
Service
Examples of a C/R exchange
are:
An open system example:
(a) Assertion: I'm station 4.
(b) Challenge: Null.
(c) Response: Null.
(d) Result: Station becomes
Authenticated.
Wireless LAN - 48
Authentication
Service
Authentication
Service
A Cryptographic challenge/response
based example:
Wireless LAN - 50
Authentication
Service
802.11
uses 802.10 services to perform the
Wireless LAN - 51
Authentication
Service
Privacy Service
9. Privacy:
The service used to prevent the contents of
messages from being reading by other than
the intended recipient.
In a wired LAN only those stations
Privacy Service
IEEE 802.10 SDE clause 2 is used to perform
Wireless LAN - 54
Privacy Service
If a privacy algorithm is set up,
Wireless LAN - 55
Relationship Between
Services
For a station, two state variables are
Authenticated
Association State : Unassociated and Associated
Unassociated.
State 2 : Authenticated, not Associated.
State 3 : Authenticated and Associated
Wireless LAN - 56
Relationship Between
Services
These states determine the
allowed.
State 2 : Either Class1 or Class 2
are allowed.
State 3 : All frames are allowed.
Wireless LAN - 57
Relationship Between
State Variables and
Class 1 frames
Services
State 1:
Unauthenticated,
Unassociated
Successful
Authentication
State 2:
Authenticated,
Unassociated
Successful
Association
DeAuthentication
Time out
State 3:
Authenticated,
Associated
Disassociation
Notification
Classes 1,2 frames
Classes 1,2,3 frame
Wireless LAN - 58
Frame Types
Class 1 frames
Control Frames
(1) RTS
Optional
(2) CTS
RTS
(3) ACK
(4) CF-End
CTS
Management Frames
(1) Probe Request/Response
(2) Beacon
Data
(3) Authentication
(4) ATIM
ACK
Data Frame
(1)Direct data frames only
(FC control bits To DS and from DS both
false)
Wireless LAN - 59
Frame Types
Class 2 Frames
Management Frames
(1) Association Request/Response
(2) Reassociation Request/Response
(3) Disassociation Request/Response
Wireless LAN - 60
Frame Types
Class 3 Frames
Data Frames
Management Frames
Deauthentication Request/Response
Control Frame
Power-saving poll
Wireless LAN - 61
Differences Between
ESS and Independent
BSS
LANs
In an IBSS, only class 1 and class
2 frames are allowed since there
is no DS in an IBSS.
The services which apply to an
IBSS are the Station Services.
STA
1
STA
2
802.11
MAC/PHY
IBSS
STA 3
Wireless LAN - 63
basic components:
P.34, The
last 3rd
line, 2304
P.39, Fig
12
MAC Header
2
Frame Duration/
Addr 2Addr 3
Contro Conn ID Addr 1
l
To
Protocol
Type Subtype
DS
Version
2
2 security
SequenceAddr 4 FCS
Control
Wireless LAN - 65
Frame Fields
Frame Control Field :
Protocol Version, Type, Subtype, ToDS, From DS,
Last Fragment, Retry, Power Management and
Element Present.
Retry : Indicates that the frame is a
retransmission of an earlier frame. A station may
use this indication to eliminate duplicate frames.
Power Management : Indicates power
management state and buffered traffic state of
the station
00
01
10
11
=
=
=
=
Wireless LAN - 66
Frame Fields
Frame Control Field :
Duration or Connection ID : Used to distribute a
value (us) that shall update the Network
Allocation Vector in stations receiving the frame.
Wireless LAN - 67
Frame Fields
Address Fields : Indicate the BSSID, SA, DA, TA
Wireless LAN - 68
Frame Fields
MSDU
MAC
HDR FrameCRC
Body
Fragment 1
Fragment 4
MAC Frame
CRC
HDR Body
MAC Frame
HDR Body
Fragment 2
C
R
C
MAC Frame
HDR Body CRC
Fragment 3
Wireless LAN - 69
Format of Individual
Frame Types
Control Frames
Immediately previous frame means a frame, the
Wireless LAN - 70
Format of Individual
Frame Types
Wireless LAN - 71
Duration
DA
SA
FCS
RTS Frame
MAC Header
Frame
Control
Duration
DA
FCS
CTS Frame
MAC Header
Frame
Control
Duration
DA
FCS
ACK Frame
MAC Header
Frame
Control
AID
BSS ID
SA
FCS
PS-Poll Frame
Wireless LAN - 72
Wireless LAN - 73
Data Subtype
During the contention period: 0000
During the contention free period
Wireless LAN - 74
Data Frames
MAC Header
Frame
Control
Fragmen Addr 4
Sequence
FCS
Durati Addr 1
Addr 2Addr 3
t
Number
on/
Number
Conn ID
To DS From DS
Addr 1
Addr 2
DA
SA
DA
BSSID
BSSID
RA
SA
TA
Addr 3
Addr 4
BSSID
N/A
SA
N/A
DA
N/A
DA
SA
Wireless LAN - 75
Format of Individual
Frame Types
Management Frames
The BSSID
The AP address, if the station is an AP or
associated with an AP.
The BSS ID of the ad hoc LAN, if the
station is a member of an ad hoc LAN.
elements:
MAC Header
Frame
Control
Dura
tion
BSS
ID
SA
DA
Sequenc Fragment
e
Number
Number
FCS
Wireless LAN - 76
Management
Frames (Frame
Body)
Management
Frames (Frame
Body)
Association Response Frame: A status
Wireless LAN - 78
Management
Frames (Frame
Body)
Probe Request Frame: The supported rates.
Probe Response Frame: Time stamp,
Wireless LAN - 79
Management
Frames (Frame
Authentication Frame : A transaction
Body)
sequence
(TS) and additional information
dependent upon the value of the TS:
Wireless LAN - 80
Frame Exchange
Sequences
The following frame sequences are possible:
Data
Data - ACK
RTS - CTS - Data - ACK
Data - ACK - Data - ACK (Fragmented MSDU)
RTS - CTS - Data - ACK - Data - ACK (Fragmented
MSDU)
Poll - Data - ACK
Poll - Data - ACK - Data - ACK (Fragmented MSDU)
Poll - ACK (No data)
ATIM - ACK
Request - ACK
Response - ACK
Wireless LAN - 81
MAC Architecture
( )
( )
Point Coordination
Function (PCF)
MAC
Exten
t
Distributed Coordination
Function (DCF)
Wireless LAN - 82
MAC Architecture
Distributed Coordination Function
(DCF)
MAC Architecture
Point Coordination Function (PCF)
An alternative access method
Shall be implemented on top of the DCF
A point coordinator (polling master) is used
to determine which station currently has
the right to transmit.
Shall be built up from the DCF through the
use of an access priority mechanism.
Different accesses of traffic can be defined
through the use of different values of IFS.
Wireless LAN - 84
MAC Architecture
Shall use a Point IFS (PIFS) <
MAC Architecture
Coexistence of DCF and PCF
Both the DCF and PCF shall coexist
without interference.
They are integrated in a superframe
in which a contention-free burst
occurs at the beginning, followed by
a contention period.
Wireless LAN - 86
MAC Architecture
Super Frame
Wireless LAN - 87
Distributed
Coordination
Function
Allows
for automatic medium sharing
Distributed
Coordination
The virtual Carrier Sense mechanism is achieved by
Function
distributing
medium busy reservation information
Wireless LAN - 89
Distributed
Coordination
Function
Physical
Carrier Sense Mechanism
A physical carrier sense mechanism shall
Wireless LAN - 90
Distributed
Coordination
MAC-Level
Acknowledgments (Positive
Function
Acknowledgment)
To allow detection of a lost or errored frame an ACK
Data
Poll
Request
Response
occurred.
Wireless LAN - 91
Distributed Coordination
Function -Inter-Frame Space (IFS)
A station shall determine that the medium is free
Wireless LAN - 92
Distributed Coordination
Function -Inter-Frame Space (IFS)
PCF-IFS (PIFS)
DCF-IFS (DIFS)
Shall be used by the DCF to transmit asynchronous
MPDUs.
A STA using the DCF is allowed to transmit after it
detects the medium free for the period DIFS, as
long as it is not in a backoff period.
Wireless LAN - 93
Distributed Coordination
Function -Random Backoff Time
Before transmitting asynchronous MPDUs, a STA
Wireless LAN - 94
Distributed Coordination
Function -Random
TimeCWmin and
Where
CW = AnBackoff
integer between
CWmax
Random() =
Slot Time = Transmitter turn-on delay +
medium propagation delay
CWmax
response time
CWmin
15
31
63
127
255
255
Wireless LAN - 95
Distributed Coordination
Function -DCF Access Procedure
CSMA/CA Protocol
Used when there is no PCF detected and when in the
Wireless LAN - 96
Distributed Coordination
Function -DCF Access Procedure
Immediate access when
DIFS
medium is free >= DIFS
PIFS
DIFS
Contention
Window
SIFS
Busy Medium
Back
offWindow
Slot time
Next Frame
Defer Access
Wireless LAN - 97
Distributed Coordination
Function -DCF Access Procedure
Backoff Procedure
Wireless LAN - 98
Distributed Coordination
Function -DCF Access
Procedure
DIFS
A
B
Frame
Backoff
9 us
19 us
Frame
4 us
2 us
Frame
10 us
15 us
Frame
5 us
7 us
Frame
2 us
Distributed Coordination
Function -DCF Access Procedure
RTS/CTS Recovery Procedure and
Retransmit Limits
Distributed Coordination
Function -- DCF Access
Procedure
RTS/CTS Frames
Distributed Coordination
Function -DCF Access Procedure
T3
T1
DIFS
Data
RTS
SIFS
SIFS
CTS
SIFS
ACK
DIFS
NAV (RTS)
NAV (CTS)
Defer
Access
Contenti
on
Back offWindo
Window
Next Frame
Back off
after
Defer
Wireless LAN - 102
Distributed Coordination
Function -DCF Access Procedure
Control of the Channel
The IFS is used to provide an efficient MSDU delivery
mechanism.
Once a station has contended for the channel, it will
continue to send fragments until either all fragments of a
MSDU have been sent, an ack is not received, or the
station can not send any additional fragments due to a
dwell time boundary.
If the source station does not receive an ack frame, it will
attempt to retransmit the fragment at a later time
(according to the backoff algorithm).
When the time arrives to retransmit the fragment, the
source station will contend for access in the contention
window.
Distributed Coordination
Function -DCF Access Procedure
DIFS
Fragment
PIFS
Burst
SIFS SIFS
Src
Dst
Fragment 1
SIFS SIFS
Fragment 2
Ack
1
SIFS SIFS
Back
offWindo
w
Fragment 3
Ack
2
Ack
3
Distributed Coordination
Function -DCF Usage
Access
RTS/CTS
withProcedure
Fragmentation
The RTS/CTS frames defines the duration of the first
Distributed Coordination
Function -DCF Access Procedure
RTS/CTS Usage with Fragmentation
If the ack is not sent by the destination,
PIFS
SIFS
Other
NAV(RTS)
NAV(Frag 2)
NAV(CTS)
Back
offWindow
NAV(Frag 1)
NAV(ACK 1)
NAV(ACK 2)
SIFS
SIFS SIFS
Fragment
1
RTS
Src
CTS
Dst
SIFS
SIFS SIFS
Fragment 2
Ack
1
SIFS
Fragment 3
Ack
2
Ack
3
NAV(RTS)
NAV(Fragment 1)
NAV(CTS)
SIFS SIFS
Src
Fragment 1
RTS
Dst
SIFS
NAV(ACK 1)
Backoff
Windo
w
CTS
Ack 1
Distributed Coordination
Function -DCF Access Procedure
Directed MPDU Transfer Procedure
Without RTS/CTS
Distributed Coordination
Function -DCF Access Procedure
DIFS
Data
SI
F
S
ACK
DIFS
Contention
Window
Backoff
Windo
w
Defer Access
Next Frame
Backoff after
Defer
Wireless LAN - 110
Point Coordination
Function(PCF)
The PCF provides contention free services.
It is an option for a station to become the Point
Point Coordination
Function(PCF)
Point Coordination
Function
-PCF
Access
Procedure
The PCF protocol is based on a polling
Point Coordination
Function
-- PCF Access Procedure
Point Coordination
Function
-- PCF
PCF
Access
Procedure
The
uses
the PCF priority
level of the
Point Coordination
Function
-- PCF Transfer
PCF Transfers When the PCF Station
Procedure
is Transmitter or Recipient
Stations shall respond to the CF-Poll
Point Coordination
Function
-- PCF Transfer
Procedure
PIFS
SIFS
CF-D1
SIFS
CF-D2
CF-U1
SIFS
PIFS
SIFS
CF-D3 CF-D4
CF-U2
SIFS
CF-End
CF-U4
SIFS
NAV
CF-
NAV
Dx = Down Traffic
Ux = Up Traffic
Wireless LAN - 117
Point Coordination
Function
-- PCF Transfer
PCF Transfers When the PCF Station is
Procedure
Neither
Transmitter nor Recipient
A CF-aware station, when polled by the PCF,
Point Coordination
Function
-- PCF Transfer
Procedure
PIFS
CF-D1
CF-D2
S-To-S ACK
SIFS SIFS
SIFS
SIFS
CF-End
CF-U2
SIFS
NAV
CF-
NAV
Dx = Down Traffic
Ux = Up Traffic
Wireless LAN - 119