Académique Documents
Professionnel Documents
Culture Documents
802.11 LAN
Direct communication within limited range
STA1
• Station (STA)
STA3 Applications should not
IBSS1 Computer with access mechanism to
the wireless medium be aware of the
existence of the wireless
STA2
• Independent Basic Service Set (IBSS) network (except
Group of stations which use the same capacity, longer access
carrier frequency within a transmission times)
range
Different IBSS are possible by spatial
IBSS2 separation or by using different carrier
Medium Access Control
STA5 frequencies
• Access mechanism, fragmenting, encryption
No designated stations for the forwarding
STA4 of data, routing,… … • MAC management: synchronization, roaming between APs, power management
802.11 LAN Physical layer
• Channel selection, modulation, coding
Chapter 3.2: WLAN Page 5 Chapter 3.2: WLAN Page 6
Variants for transmission: 2 using radio (in the 2.4 GHz band), 1 using infrared • Data rate • QoS
• FHSS (Frequency Hopping Spread Spectrum) – 1, 2, 5.5, 11 MBit/s, depending – Best effort, no guarantees (some
on SNR defined in “bad” way, later on much
– 79 different channels with 1 MHz bandwidth each
– User throughput max. approx. better standardized in 802.11e)
– Hopping between 2 channels for 1 MBit/s, between 4 channels for 2 MBit/s
6 MBit/s • Manageability
– Min. 2.5 hops/sec
• Transmission range – Limited (no automatic key distribution,
– GFSK modulation
– 100m outdoor, 30m indoor symmetrical encryption)
– Max. transmission power: 1 W (USA)/100 mW (EU), min. 1 mW (directed links: several km) • Special advantages/disadvantages
• DSSS (Direct Sequence Spread Spectrum) – Max. data rate ~ 10m (indoor) – Advantages: free ISM band, many
– DBPSK modulation for 1 MBit/s (Differential Binary Phase Shift Keying), • Frequency range vendors, simple system
DQPSK for 2 MBit/s (Differential Quadrature PSK) – Unlicensed 2.4 GHz ISM band – Disadvantage: heavy interferences on
– Chipping sequence: (+1, -1, +1, +1, -1, +1, +1, +1, -1, -1, -1), a Barker-Code • Security the ISM band, no QoS, relatively low
– Max. transmission power: 1 W (USA)/100 mW (EU), min. 1 mW – SSID, WPA2 data rates
• Connection setup time • Usage
• Infrared
– Connectionless, „always on“ – Preferred version in Europe
– 850-950nm, diffuse light, typically 10 m range
Due to “abused” spreading in case of CCK, the higher data transmission rates are
more susceptible for disturbances. Thus, a smaller range results:
Data rate
10
Mbit/s
8
4 802.11b
2
802.11
0
10 30 60 100 m Distance
• Data rates • Connection setup time Channels are also overlapping, as in 802.11b:
– 6, 9, 12, 18, 24, 36, 48, 54 MBit/s, – Connectionless, „always on“
depending on SNR • QoS
36 40 44 48 52 56 60 64 channel-no.
– User Throughput: max. 32 MBit/s – Best effort, no guarantees
– 6, 12, 24 MBit/s mandatory (same as for 802.11b)
• Transmission range • Manageability
– 100m outdoor, 10m indoor (e.g. – Limited (same as for 802.11b) 5150 5180 5200 5220 5240 5260 5280 5300 5320 5350 [MHz]
54 Mbit/s up to 5 m, 48 up to • Special advantages/disadvantages 16,6 MHz
12 m, 36 up to 25 m, 24 up to 30
– Advantages: uses less crowded
m, 18 up to 40 m, 12 up to 60 m)
free ISM band, available
• Frequency range center frequency =
worldwide, simple system, many 149 153 157 161 channel-no. 5000 + 5·channel-no. [MHz]
– Free 5.15-5.35 + 5.725-5.825 vendors
GHz ISM band – Disadvantages: strong shading
• Security due to high frequencies, no QoS
– SSID, WPA2 • Usage 5725 5745 5765 5785 5805 5825 [MHz]
– Preferred version in USA 16,6 MHz
Chapter 3.2: WLAN Page 17 Chapter 3.2: WLAN Page 18
waiting time t
time slot (20 µs)
data wait
• Mandatory for all implementations
• Before sending, a station performs carrier sense B2 = 20 B2 = 15 B2 = 10
• If the medium is free for at least the duration of a DIFS, the station may send
• If the medium is occupied, when becoming free the station waits for one DIFS and
then randomly chooses a backoff time (collision avoidance, in multiples of a slot
time). The station continues to listen to the medium B1 and B2 are backoff intervals
• If the medium is occupied by another station during the backoff time, the backoff at nodes 1 and 2
timer stops. In the next try, no new backoff time is chosen randomly, but the old
timer is gone on with.
• Also usable for broadcast
Chapter 3.2: WLAN Page 23 Chapter 3.2: WLAN Page 24
Lehrstuhl für Informatik 4 Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme Kommunikation und verteilte Systeme
bobo
e bo
e r boe busy boe bor DIFS
Station5 Data
t sender
SIFS
busy Medium busy (Frame, ACK, etc.) boe elapsed backoff time ACK
receiver
DIFS
Sending request bor remaining backoff time Data
other
The size of the competition window (Contention Window, CW) affects the efficiency. Therefore stations t
waiting time contention
(similar to Ethernet) it starts with CW = 7 and is doubled with each collision up to CW max = 255
Chapter 3.2: WLAN Page 25 Chapter 3.2: WLAN Page 26
Any vendor has to implement the standard CSMA/CA variant, the other two are • Types
optional Control frames, administrative frames, data frames
• RTS/CTS very often is implemented by AP manufacturers, but: disabled! • Sequence numbers
• Usual method: For detecting duplicated frames due to lost ACKs
A frame size threshold is defined, and only frames longer than the threshold • Addresses
are sent with RTS/CTS (to avoid overhead for small frames) Receiver, transmitter (physical), sender (logical), BSS identifier
The threshold value in basic configuration is sent to maximum allowed frame • Misc
length…
Duration of transmission, data
Changing the threshold value allows you to enable the RTS/CTS
Only possibility to really avoid collisions
bytes 2 2 6 6 6 2 6 0-2312 4
• PCF mechanism usually is not implemented
Frame Duration/ Address Address Address Sequence Address
Not needed in many cases, and not possible in ad-hoc networks Control ID 1 2 3 Control 4
Data CRC
Would allow for real-time data transmission, but is not good in it, thus it
doesn’t became prominent – instead, a QoS enhancement for real-time bits 2 2 4 1 1 1 1 1 1 1 1
transmission was defined (IEEE 802.11e) Protocol To From More Power More
Type Subtype Retry WEP Order
version DS DS Frag Mgmt Data
Preamble Header
transmission transmission with
with 1 Mbit/s 1 or 2 Mbit/s
Chapter 3.2: WLAN Page 35 Chapter 3.2: WLAN Page 36
Lehrstuhl für Informatik 4 Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme Kommunikation und verteilte Systeme
• Beacon frame contains time stamps and administrative information for power • All stations try to send a Beacon frame in fixed intervals
saving mechanisms and roaming • Standard access procedure with backoff
• Varying times between beacon frames, since the medium can be occupied • One station wins and sends a beacon frame at first. All other stations synchronize
• In infrastructure networks: AP takes over the sending of the beacons to this frame.
B2 B2
B B B B Station2
AP
busy busy busy busy
busy busy busy busy Medium
Medium t
t B
B value of the timestamp beacon frame random backoff
value of the timestamp beacon frame
The PCF variant of CSMA/CA should allow some quality in data transmission: The scheme from before (all stations use the DIFS time interval) is refined:
• By polling at certain times, allow for deterministic delay of information • Assign different priorities to different data streams (traffic classes, TC)
• Also, guarantee a certain data rate to each participant • As before, priority is given by waiting times: the Arbitration Inter-Frame space (AIFS)
• But…frames in polling can be between 0 and 2304 bytes… and the data rate on AIFS[TC0] TC Access Category (AC) Purpose
physical layer can change due to channel conditions… 0 0 Best Effort
AIFS[TC6]
→ no way to calculate transmission time of a frame in advance, thus the above 1 1 Background
quality cannot be given DIFS = 2 1 Background
AIFS[TC7] 3 2 Video Probe
Solution: define additional CSMA/CA variants which can give priority to real-time PIFS 4 2 Video
data (defined in IEEE 802.11e) SIFS 5 2 Video
busy RTS
• Only an add-on the IEEE 802.11a/b/g, not a stand-alone WLAN standard 6 3 Voice
contention window t 7 3 Voice
• Definition of
Extended Distributed Channel Access (EDCA) as better version of DCF using
several classes of access priority by refining the inter-frame gaps and • Classify all data streams in traffic classes regarding their QoS
introducing so-called Transmission Opportunities (TXOP) • 8 priority classes, TC 7 has highest priority
Hybrid Coordination Function Controlled Channel Access (HCCA) as better • Give longer waiting times to lower priority – thus higher priority streams can start
version of PCF also using TXOP sending earlier
Chapter 3.2: WLAN Page 47 •Chapter 3.2: WLAN
Fairness Page 48
is given – even high priority senders can draw a large backoff number
Lehrstuhl für Informatik 4 Lehrstuhl für Informatik 4
Kommunikation und verteilte Systeme Kommunikation und verteilte Systeme
With EDCF, each station has to handle up to 8 queues performing the same access
procedure as “plain” DCF with backoff counter (BC) and contention window (CW): As in PCF, HCCA is a combination of a contention-free period and a contention
period
• In the contention-free period the AP polls the stations
Difference to PCF: stations can place reservations for the polling phase
The AP polls stations by granting a TXOP oriented at reservation wishes and
current traffic load
• In the contention period, EDCF is used
Question: why giving QoS? Why not overprovisioning, i.e. only increase the data rate?
One more enhancement: each class also a TXOP is assigned, which is a maximum
sending duration – after getting medium access, for time of TXOP several frames
can be sent (Contention Free Burst)
Chapter 3.2: WLAN Page 49 Chapter 3.2: WLAN Page 50
Faster! MIMO
Not an end with 802.11a/g – go on with 802.11n MIMO means: use several antennas in parallel to send data to one receiver
• up to 600 MBit/s! • Apply Space Division Multiplexing (SDM) – i.e. split the data stream into multiple
• over 70 – 250m! parts (called spatial stream) and transmit each part with a separate antenna (for
up to 4 antennas)
How to achieve such a data rate while keeping compatibility to 802.11a/b/g?
• Necessary: power control – only use MIMO if necessary, otherwise lots of power
• Applied to 2.4 as well as 5 GHz ISM band to only have a single variant for the is consumed
future
• Apply beam-forming to focus the sender’s antennas to the receiver’s antennas
• Modify OFDM with increasing symbol rate and slightly enlarge the bandwidth:
• By antenna diversity, a receiver can find out the angle of incidence of certain
→ increase data rate from 54 MBit/s to 65 MBit/s
spatial streams and thus distinguish between several streams
• Optional: Greenfield mode, i.e. skip support for 802.11a/b/g (an increasing number
• Optional: apply diversity on improving signal strength, i.e. improve signal by
of legacy devices reduces the average throughput in the whole network)
receiving the same stream with several antennas and combine the outputs (for up
• Optional: increase a channel’s bandwidth to 40 MHz (dynamic adaptation to other to 4 antennas, but only if the number of receiver antennas is larger than the
WLANs in the environment necessary!) number of spatial streams)
• Use MIMO – multiple input multiple output
Availability of 802.11n?
• Draft version 2 finished this year
• Lot of products of several vendors (compliance to a non-finished standard?)
• Potential problems with a patent?
• Planned release date – varies between September 2008 and March 2009…
Let APs interconnect in
wireless manner, also using
WLAN (lower costs, simple
installation, resilient, …)
Wardriving Warchalking
New kind of sports: search for open WLANs.
Just take: What can be found at walls after a wardiver has
• A notebook with WLAN card and a connector for a GPS device passed...
• A software for detcting Access Points,
e.g. Network Stumbler
• A GPS receiver
• Time for driving around
ACK
DIFS
DIFS
SIFS
ACK
ACK
SIFS
DIFS
DIFS
DIFS
SIFS
SIFS
SIFS
DIFS
SIFS
ACK
ACK
ACK
ACK
ACK