Beruflich Dokumente
Kultur Dokumente
11 MAC
Based on
Presentation
Network Session
Operating
Transport TCP
System
(NOS) Network IP
LLC
MAC Layer
MAC Management
MAC
Sublayer Station
Management
PMD Sublayer
Wireless Ethernet (IEEE 802.11b)
The IEEE 802.11b, also called wireless Ethernet, is now the dominant
WLAN standard.
Two version of IEEE 802.11b exist:
◦ Frequency-hopping spread-spectrum (FHSS) with data rates of 1 and 2 Mbps
and
◦ Direct-sequence spread-spectrum (DSSS) with data rates of 1, 2, 5.5 and
11Mbps, which dominates the market due to its higher speed.
Direct Sequence Spread Spectrum (DSSS)
Each bit sent by the sender is replaced by a sequence of bits
called a chip code.
The time needed to send one chip code must be the same as the
time needed to send one original bit.
DSSS uses the entire 2.4 GHz WLAN frequency band to transmit
information. DSSS is capable of data rates of up to 11 Mbps with
fallback rates of 5.5, 2 and 1 Mbps. Lower rates are used
whenever interference or congestion occurs.
0 0 1 1 0
802.11b DSSS Data Transmission
IEEE 802.11
◦ 1 and 2 Mbps, Frequency Hopping, DSSS, (915 or 1400 MHz) or IR, Ratified in
1977
IEEE 802.11a, upto 54 Mbps, 5 GHz, OFDM
IEEE 802.11b up to 11 Mbps, 2.4 GHz, DSSS both ratified in 1999
IEEE 802.11g, up to 54Mbps, 2.4GHz, OFDM. Downward compatible
with 802.11b, Ratified in 2003
IEEE 802.11 Architecture
Distribution system (DS)
Access point (AP)
Basic service set (BSS)
◦ Stations competing for access to shared wireless medium
◦ Isolated or connected to backbone DS through AP
Extended service set (ESS)
◦ Two or more basic service sets interconnected by DS
802.11 Terminology (1)
Station (STA):
◦ Device that contains IEEE 802.11 conformant MAC and PHY, Interface to the wireless medium, but does
not provide access to a distribution system
◦ Most often end-stations available in terminals (work-stations, Laptops, etc)
802.11 Terminology (2)
BSS
Independent BSIC Service Set (IBSS)
IBSS
802.11 terminology (more)
17/05/2015 20
Distribution System
There are three types of DS:
◦ Integrated
◦ A single Access Point in a standalone network
◦ Wired
◦ Using cable to interconnect the Access Point
◦ Wireless
◦ Using wireless to interconnect the Access Point
17/05/2015 21
Extended Service Set (ESS)
single BSS (with integrated DS)
BSS
Extended Service Set (ESS)
BSS’s with wired Distribution System (DS)
BSS
BSS
Extended Service Set (ESS)
BSS’s and wireless Distribution System (DS)
BSS
BSS
802.11 Architecture - Infrastructure
Infrastructure BSS
Distribution
Internet System (DS)
Cell identifier
6 octets long (MAC address format)
One BSS has one SSID
Value of BSSID is the same as the MAC address of the radio in the Access Point
How WLAN network works
Station 1 Station 6
Station 2 Station 5
Station 4
Station 7
Station 3
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
Roaming
Station 1
Station 6
Station 2 Station 5
Station 1
Access Point B
Access Point A Access Point C
Station 1
Station 4
Station 7
Station 3 Station 1
• Passive Scanning
– Find networks simply by listening for Beacons
• Active Scanning
– On each channel
» Send a Probe, Wait for a Probe Response
Passive Scanning
RF link quality
◦ Especially when uses the unlicensed ISM band
◦ Has to work around the radiation from Microwave ovens and other RF sources
◦ In addition, multi-path fading is also a problem
Reliable Data Delivery
More efficient to deal with errors at the MAC level than higher layer (such
as TCP)
Frame exchange protocol
◦ Source station transmits data
◦ Destination responds with acknowledgment (ACK)
◦ If source doesn’t receive ACK, it retransmits frame
Four frame exchange
◦ Source issues request to send (RTS)
◦ Destination responds with clear to send (CTS)
◦ Source transmits data
◦ Destination responds with ACK
Positive acknowledgment
Frame
Time
ACK
1 2 3
(1) RTS
RTS
(3) Frame
(4) ACK CTS
Frame
(2) CTS
ACK
MAC Access Modes (1)
DCF: is the basis of the standard CSMA/CA. Like Ethernet, it first check to see
that the radio link is clear before transmission. To avoid collision, stations uses a
random backoff after each time. It may use CTS/RTS to further reduces the
possibility of collision.
MAC Access Modes (2)
HCF: Some applications need to have service quality that is a step above best-
effort delivery, but the rigorous timing of the PCF is not required. The HCF allows
stations to maintain multiple service queues and balance access to the wireless
medium in favour of applications that require better service quality. It is not fully
standardised yet.
Carrier Sense
SIFS
SIFS SIFS
CTS ACK
Receiver
Time
DIFS
NAV(RTS)
NAV
NAV(CTS) Time
DIFS
PIFS
Contention window
SIFS
Busy Frame transmission
Backoff Time
Other stations buffer slots
and defer frames
SIFS
Busy Medium Backoff-Window Next Frame
Slot time
Defer Access Select Slot and Decrement Backoff as long as medium is idle.
High level packet and some large management frames may need to be broken into smaller
pieces to fit through the wireless channel
Fragmentation may also help improve reliability in the presence of interference
Interference affects only small fragments
Fragmentation takes place when the length of a higher -level packet exceeds the fragmentation
by configured threshold
Fragments all have the same frame sequence number but have descending fragment number to
aid in reassembly
Frame control information also indicates whether more fragments are coming
All of the fragments that comprise a frame are normally sent in a fragmentation burst
Fragmentation
DIFS
PIFS
SIFS
Other NAV (RTS) NAV (Fragment 0) Backoff-Window
NAV (CTS) NAV (ACK 0)
SIFS
Src RTS Fragment 0 Fragment 1
• Synchronization
– finding and staying with a WLAN
– Synchronization functions
• Power Management
– Sleeping without missing any messages
– Power Management functions
• Association and Reassociation
– Joining a network
– Roaming, moving from one AP to another
– Scanning
MAC management Frames
Beacon
◦ Timestamp, Beacon Interval, SSID, Supported Rates, Traffic Indication Map,
Capabilities, etc.
Probe
◦ SSID, Capabilities, Supported Rates
Probe Response
◦ Timestamp, Beacon Interval, SSID, Supported Rates, Capabilities, etc (same as
Beacon except for TIM)
Association Request
◦ Capability, SSID, Supported Rates
Association Response
◦ Capability, Association ID, Supported Rates
Cont’d
Reassociation Request
◦ Capability, SSID, Supported Rates, Current AP Address
Reassociation Response
◦ Capability, Association ID, Supported Rates
Disassociation
◦ Reason code
Authentication
◦ Algorithm, Sequence, Status, Challenge Text
Deauthentication
◦ Reason
Synchronization in 802.11
X X X X
Time Axis
2 bytes 2 bytes 6 bytes 6 bytes 6 bytes 2 bytes 6 bytes 0 - 2312 bytes 4 bytes
D: Duration/ID field
Bit 0 …. Bit 15
Duration (NAV) 0
Bit 0 …. Bit 15
Bit 0 …. Bit 15
4 bits 12 bits
Fragment no. Sequence number
22 MHz
3 MHz f
2.401 GHz 3 MHz 2.473 GHz
Physical layers
Physical Media Defined by Original
802.11 Standard
Direct-sequence spread spectrum
◦ Operating in 2.4 GHz ISM band
◦ Data rates of 1 and 2 Mbps
Frequency-hopping spread spectrum
◦ Operating in 2.4 GHz ISM band
◦ Data rates of 1 and 2 Mbps
Infrared
◦ 1 and 2 Mbps
◦ Wavelength between 850 and 950 nm
IEEE 802.11a and IEEE 802.11b
IEEE 802.11a
◦ Makes use of 5-GHz band
◦ Provides rates of 6, 9 , 12, 18, 24, 36, 48, 54 Mbps
◦ Uses orthogonal frequency division multiplexing (OFDM)
◦ Subcarrier modulated using BPSK, QPSK, 16-QAM or 64-QAM
IEEE 802.11b
◦ Provides data rates of 5.5 and 11 Mbps
◦ Complementary code keying (CCK) modulation scheme