CPE413 - Week - 5 - WirelessLocalAreaNetworks - IEEE 802.11 - 1
CPE413 - Week - 5 - WirelessLocalAreaNetworks - IEEE 802.11 - 1
adibhabbal@karabuk.edu.tr
1
WIRELESS LAN
TECHNOLOGY AND
THE IEEE 802.11
WIRELESS LAN
STANDARD
These slides are made available to faculty in PowerPoint form.
Slides can be freely added, modified, and deleted to suit student
needs. They represent substantial work on the part of the authors; Wireless Communication
therefore, we request the following.
Networks and Systems
If these slides are used in a class setting or posted on an internal or
1st edition, Global edition
external www site, please mention the source textbook and note
our copyright of this material. Cory Beard, William Stallings
All material copyright 2016 © 2016 Pearson Education, Ltd.
Cory Beard and William Stallings, All Rights Reserved
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-2
INTRODUCTION
• Wireless LANs (WLANs)
– Indispensible adjunct to wired LANs
– Wireless devices use WLANs
• As their only source of connectivity
• Or to replace cellular coverage
• Simple WLAN configuration
– There is a backbone wired LAN
– User modules include workstations, servers, devices
– Control module (CM) interfaces to WLAN
• Providing bridge or router functionality
• May have control logic to regulate access
• May provide wireless connectivity to other wired networks
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-3
11.1 EXAMPLE SINGLE-CELL WIRELESS LAN CONFIGURATION
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-4
INTRODUCTION
• Multiple-cell wireless LAN
– Multiple CMs connected by a wired LAN
– Creates many issues for balancing cell loading and
providing best connections for Ums
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-5
11.2 EXAMPLE MULTIPLE-CELL WIRELESS LAN CONFIGURATION
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-6
AD HOC NETWORKING
• Temporary peer-to-peer network set up to meet
immediate need
– Peer-to-peer, no centralized server
– Maybe a temporary network
– Wireless connectivity provided by WLAN or
Bluetooth, ZigBee, etc.
• Example:
– Group of employees with laptops convene for a
meeting; employees link computers in a temporary
network for duration of meeting
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-7
11.3 AD HOC WIRELESS LAN CONFIGURATION
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-8
WIRELESS LAN MOTIVATIONS
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-9
WIRELESS LAN MOTIVATIONS
• Cellular data offloading
– The spectrum available in mobile cellular networks is
limited and costly to consumers.
– Cellular providers may encourage this to offload
demand on their networks
• Sync/file transfer
– WLANs may provide higher data rates and more
available capacity
– Avoid use of cables
• Internet access
• Multimedia streaming
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-10
WIRELESS LAN REQUIREMENTS
• Throughput: The medium access control (MAC) protocol should make as
efficient use as possible of the wireless medium to maximize capacity.
• Service area: A typical coverage area for a WLAN has a diameter of 100 to
300 m.
• 802.11 has many options and it is possible for two equipment based on
802.11 to be incompatible.
• All equipment with “Wi-Fi” logo have selected options such that they
will interoperate
13
IEEE STANDARDS NUMBERING
SYSTEM
• IEEE 802.* and IEEE 802.1* standards apply to all
IEEE 802 technologies:
– IEEE 802.3 Ethernet, 802.5 token ring, 802.4 token bus
– IEEE 802.11 Wi-Fi
– IEEE 802.16 WiMAX
14
IEEE STANDARDS NUMBERING
SYSTEM (CONT)
• IEEE 802.11* (e.g., 802.11i) standards apply to all Wi-Fi
devices but may not apply to ZigBee devices which are based
on 802.15,
• Standards with all upper case letters are base standards, e.g.,
IEEE 802.1AB-2009
• Standards with lower case are additions/extensions/revisions.
Merged with the base standard in its next revision. e.g., IEEE
802.1w-2001 was merged with IEEE 802.1D-2004
15
IEEE 802.11 STANDARDS
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-17
IEEE 802.11 FEATURES
• Original IEEE 802.11-1997 was at 1 and 2 Mbps.
Newer versions at 11 Mbps, 54 Mbps, 108 Mbps, 200 Mbps,... Gbps
• All versions use “License-exempt” spectrum
– No licensing needed – Four microwave bands
• 902-928 MHz
• 2.4-2.5 GHz
• 5.725-5.875 GHz
• 58-64 GHz (60-GHz mmWave bands)
– Higher capacity
– Less competition
– More expensive equipment
– Supports multiple priorities
– Supports time-critical and data traffic
– Power management allows a node to doze off
– Need ways to share spectrum among multiple users and multiple LANs
Spread Spectrum (CDMA)
– Spread spectrum
• DSSS CDMA or OFDM
• Over 1 Gbps possible with OFDM, channel bonding, and MIMO
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-18
IEEE 802.11 FEATURES
ISM Bands: Industrial, Scientific, and Medical
bands. License exempt
19
WIRELESS LAN ARCHITECTURE
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-20
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-21
11.8 IEEE 802.11 ARCHITECTURE
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-22
INTRODUCTION
• IEEE 802.11 Architecture
23
DISTRIBUTION OF MESSAGES
WITHIN A DS
• Distribution service
– Used to exchange MAC frames from station in one
BSS to station in another BSS
• Integration service
– Transfer of data between station on IEEE 802.11
LAN and station on integrated IEEE 802.x LAN
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-24
TRANSITION TYPES BASED ON
MOBILITY
• No transition
– Stationary or moves only within BSS
• BSS transition
– Station moving from one BSS to another BSS in
same ESS
• ESS transition
– Station moving from BSS in one ESS to BSS
within another ESS
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-25
ASSOCIATION-RELATED SERVICES
• Association
– Establishes initial association between station and AP
• Reassociation
– Enables transfer of association from one AP to another,
allowing station to move from one BSS to another
• Disassociation
– Association termination notice from station or AP
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-26
IEEE 802.11 SERVICES
• Association
– Establishes initial association between station and AP
• Reassociation
– Enables transfer of association from one AP to another,
allowing station to move from one BSS to another
• Disassociation
– Association termination notice from station or AP
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-27
IEEE 802.11 STANDARD
1. IEEE 802.11 Protocol Architecture
2. IEEE 802.11 LCC
3. EEE 802.11 MAC
4. MAC Frame Format
28
IEEE 802.11 PROTOCOL
ARCHITECTURE
• Developed by the IEEE 802.11 working group
• Uses layering of protocols
• LAN protocols focus on the lower layers of the
OSI model
– Figure 8.1 relates OSI with 802.11
– Called the IEEE 802 reference model
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-29
8.1 IEEE 802 PROTOCOL LAYERS COMPARED TO OSI MODEL
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-30
IEEE 802.11 PROTOCOL
ARCHITECTURE
• Functions of physical layer:
– Encoding/decoding of signals
– Preamble generation/removal (for synchronization)
– Bit transmission/reception
– Includes specification of the transmission medium
• Sublayers
– Physical layer convergence procedure (PLCP)
• Mapping 802.11 MAC layer protocol data units (MPDUs) into a
framing format
• Sending and receiving between stations using same PMD sublayer
– Physical medium dependent sublayer (PMD)
• Transmitting and receiving user data through a wireless medium
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-31
IEEE 802.11 PROTOCOL
ARCHITECTURE
• Functions of logical link control (LLC) Layer:
– Provide an interface to higher layers and perform flow and
error control
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-32
11.6 IEEE 802 PROTOCOLS IN CONTEXT
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-33
SEPARATION OF LLC AND MAC
• The logic required to manage access to a
shared-access medium is not found in
traditional layer 2 data link control
• For the same LLC, several MAC options may
be provided
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-34
LLC SERVICES
• LLC specifies the mechanisms
– for addressing stations across the medium and
– for controlling the exchange of data between two users.
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-36
RELIABLE DATA DELIVERY
• More efficient to deal with errors at the MAC level than
higher layer (such as TCP)
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-37
RELIABLE DATA DELIVERY
• 4 4-Way Handshake
38
RELIABLE DATA DELIVERY
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-40
11.9 IEEE 802.11 PROTOCOL ARCHITECTURE
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-41
DISTRIBUTED COORDINATION
FUNCTION
• Decentralized
• Carrier sense multiple access (CSMA)
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-42
DISTRIBUTED COORDINATION
FUNCTION
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-43
11.10 IEEE 802.11 MEDIUM ACCESS CONTROL LOGIC
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-44
IEEE 802.11 PRIORITIES
47
IEEE 802.11 DCF BACKOFF (CONT)
• Initially and after each successful transmission:
CW = CWmin
48
TYPICAL PARAMETER VALUES
49
VIRTUAL CARRIER SENSE
• Every frame has a “Duration ID” which indicates how long the
medium will be busy.
– RTS has duration of SIF + CTS + SIF + Frame + SIF + Ack
– CTS has duration of SIF + Frame + SIF + Ack
– Frame has a duration of Frame SIF + ACK
– ACK has a duration of ACK
• Stations do not need to sense the channel until NAV becomes zero.
50
DCF EXAMPLE
• Example: Slot Time = 1, Cwmin = 5, DIFS=3, PIFS=2, SIFS=1
• T=1 Station 2 wants to transmit but the media is busy
• T=2 Stations 3 and 4 want to transmit but the media is busy
• T=3 Station 1 finishes transmission.
• T=4 Station 1 receives ack for its transmission (SIFS=1)
Stations 2, 3, 4 set their NAV to 1.
• T=5 Medium becomes free
• T=8 DIFS expires. Stations 2, 3, 4 draw backoff count between 0 and 5. The counts are 3, 1, 2
51
DCF EXAMPLE (CONT)
• T=9 Station 3 starts transmitting. Announces a duration of 8 (RTS + SIFS + CTS + SIFS + DATA +
SIFS + ACK).
Station 2 and 4 pause backoff counter at 2 and 1 resp. and wait till T=17
• T=15 Station 3 finishes data transmission
• T=16 Station 3 receives Ack.
• T=17 Medium becomes free
• T=20 DIFS expires. Station 2 and 4 notice that there was no transmission for DIFS. Stations 2 and 4
start their backoff counter from 2 and 1, respectively.
• T=21 Station 4 starts transmitting RTS
52
POINT COORDINATION FUNCTION
• Centralized control
• Point coordinator polls devices
– To give them permission to send
– On a schedule the point coordinator determines
• The superframe allows time to be shared
between DCF and PCF
– PCF starts the superframe and can only use a
certain part of the superframe time
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-53
POINT COORDINATION FUNCTION
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-54
POINT COORDINATION FUNCTION
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-55
11.12 IEEE 802.11 MAC FRAME FORMAT
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-56
802.11 FRAME ADDRESS FIELDS
57
MAC FRAME FIELDS
• Frame Control – frame type, control information
• Duration/connection ID – channel allocation time
• Addresses – context dependent, types include source
and destination
• Sequence control – numbering and reassembly
• Frame body – MSDU or fragment of MSDU
• Frame check sequence – 32-bit CRC
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-58
FRAME CONTROL FIELDS
• Protocol version – 802.11 version
• Type – control, management, or data
• Subtype – identifies function of frame
• To DS – 1 if destined for DS
• From DS – 1 if leaving DS
• More fragments – 1 if fragments follow
• Retry – 1 if retransmission of previous frame
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-59
FRAME CONTROL FIELDS
• Power management – 1 if transmitting station is in
sleep mode
• More data – Indicates that station has more data to
send
• WEP – 1 if Wired Equivalent Privacy (WEP) or Wi-Fi
Protected Access (WPA) is implemented
• Order – 1 if any data frame is sent using the Strictly
Ordered service
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-60
CONTROL FRAME SUBTYPES
• Power save – poll (PS-Poll)
• Request to send (RTS)
• Clear to send (CTS)
• Acknowledgment
• Contention-free (CF)-end
• CF-end + CF-ack
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-61
DATA FRAME SUBTYPES
• Data-carrying frames
– Data
– Data + CF-Ack
– Data + CF-Poll
– Data + CF-Ack + CF-Poll
• Other subtypes (don’t carry user data)
– Null Function
– CF-Ack
– CF-Poll
– CF-Ack + CF-Poll
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-62
MANAGEMENT FRAME SUBTYPES
• Association request
• Association response
• Reassociation request
• Reassociation response
• Probe request
• Probe response
• Beacon
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-63
MANAGEMENT FRAME SUBTYPES
Wireless LAN Technology and the IEEE 802.11 Wireless LAN Standard 11-64
SUMMARY
1. IEEE 802.11 Introduction
2. IEEE 802.11 Features
3. WLAN Architecture
4. IEEE 802.11 Protocol Architecture
5. IEEE 802.11 LCC
6. EEE 802.11 MAC
7. MAC Frame Format
65
MSDU VS MPDU