34
wlan-tutorial.ppt-1 (2000-11-26) 2000 © Maximilian Riegel Maximilian Riegel Kommunikationsnetz Franken e.V. IEEE802.11 Wireless LAN The broadband wireless Internet

Wlan-tutorial.ppt-1 (2000-11-26) 2000 © Maximilian Riegel Maximilian Riegel Kommunikationsnetz Franken e.V. IEEE802.11 Wireless LAN The broadband wireless

Embed Size (px)

Citation preview

wlan-tutorial.ppt-1 (2000-11-26)2000 © Maximilian Riegel

Maximilian Riegel

Kommunikationsnetz Franken e.V.

IEEE802.11Wireless LANThe broadband wireless Internet

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-2 (2000-11-26)2000 © Maximilian RiegelWireless LAN

WLAN Dream Finally Seems to Happen... Recently lots of serious WLAN activities have been announced

Big players have invested in WLAN (Cisco, Intel, Nokia) Integrated WLAN solutions appearing (Apple, IBM, Dell, ...)

Wireless IP solutions have lots of momentum! People desire wireless IP terminals and access devices

WLAN offers a good mobile solution for indoor IP access

Added value for the user - Flexibility, user mobility Added value for ISP - solution for public

high speed IP access

WLAN standards are converging - IEEE 802.11b rules

Interoperability has been the main obstacle

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-3 (2000-11-26)2000 © Maximilian RiegelWireless LAN

The Wireless LAN market has taken off... In the past:

Deployment of WLAN for vertical markets - moderate growth Now:

Ubiquitous broadband wireless Internet access - the killer app

IEEE802.11b 11 Mbps Wireless LAN everywhere

PublicW-LAN

Airport

Railway Station

Campus

Plant

Semi-publicW-LAN

OfficeHospital

Congress hall,Hotel

Corporate W-LAN

Office

HomeW-LAN

Remote Access

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-4 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Wireless LAN IEEE802.11 Basic Architecture

httptcpip

pppBluetooth

Netscape

ip802.2

802.11802.2

802.11802.3802.2802.3

802.2802.3

httptcpip

pppBluetooth

apache

ip802.2802.3

ip

IEEE802.11

local distribution networkCPE + NIC internet‚access router‘

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-5 (2000-11-26)2000 © Maximilian RiegelWireless LAN

What is unique about wireless?

Difficult media interference and noise quality varies over space and time shared with “unwanted” 802.11 devices shared with non-802 devices (unlicensed spectrum,

microwave ovens) Full connectivity cannot be assumed

“hidden node” problem Mobility

variation in link reliability battery usage: requires power management want “seamless” connections

Security no physical boundaries overlapping LANs

Multiple international regulatory requirements

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-6 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Industrial, Scientific and Medical (ISM) Bands

1 2 3 4 5 6

FREQUENCY (GHz)

902 to 928MHz

125MHz

5.725 to 5.850GHz

A band for the future No cost effective

technology yet

83.5MHz

2.400 to 2.4835GHz

Relatively clean spectrum DS radios good at rejecting

microwave interference Can fit several (11)

WLAN Channels

26MHz

Low bandwidth Polluted by cellular

and cordless

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-7 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Wireless IEEE802.11 Standard

802.11 Standard supports 3 Physical Layers

Frequency hopping Limited to 2Mbps data rate Requires more network overhead Has higher power density that can

generate interference

Direct sequence Only PHY to support the 11Mbps data rate Low power density to minimize interference

Infrared Range limitedApproved June 1997

802.11b approved September 1999

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-11 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Peer-to-Peer Network

IEEE802.11 Ad Hoc Mode

Independent networking Use Distributed Coordination Function (DCF) Forms a Basic Service Set (BSS) Direct communication between stations Coverage area limited by the range of individual stations

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-12 (2000-11-26)2000 © Maximilian RiegelWireless LAN

BSS-A

Wired Network

BSS-B

Server

IEEE802.11 Infrastructure Mode

Access Points (AP) and stations (STA) BSS (Basic Service Set): a set of stations controlled by a single

coordination function Distribution system interconnects multiple cells via access

points to form a single network Extends wireless coverage area and enables roaming

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-13 (2000-11-26)2000 © Maximilian RiegelWireless LAN

IEEE 802.11 Network elements

Distribution system Used to interconnect wireless cells

multiple BSS connected together form an ESS, Extended Service Set

Allows mobile stations to access fixed resources Not part of 802.11 standard

could be bridged IEEE LANs, wireless, other networks … Distribution System Services are defined

Access Points Stations select an AP and “associate” with it Support roaming Provide other functions

time synchronization (beaconing) power management support point coordination function

Traffic typically (but not always) flows through AP direct communication possible

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-14 (2000-11-26)2000 © Maximilian RiegelWireless LAN

MAC Functionality

Independent and Infrastructure configuration support Each BSS has a unique 48 bit address Each ESS has a variable length address

CSMA with collision avoidance MAC-level acknowledgment allows for RTS/CTS exchanges (hidden node protection) MSDU fragmentation “Point Coordination” option (AP polling)

Association and Reassociation station scans for APs, association handshakes Roaming support within an ESS

Power management support stations may power themselves down AP buffering, distributed approach for IBSS

Authentication and privacy Optional support of “Wired Equivalent Privacy” (WEP) Authentication handshakes defined

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-17 (2000-11-26)2000 © Maximilian RiegelWireless LAN

DIFS Contention Window

Slot time

Defer Access

Backoff-Window Next Frame

Select Slot and Decrement Backoff as long as medium is idle.

SIFS

PIFSDIFS

Free access when mediumis free longer than DIFS

Busy Medium

CSMA/CA Explained

Reduce collision probability where mostly needed. Stations are waiting for medium to become free. Select Random Backoff after a Defer, resolving contention to avoid

collisions.

Efficient Backoff algorithm stable at high loads. Exponential Backoff window increases for retransmissions. Backoff timer elapses only when medium is idle.

Implement different fixed priority levels

IFS: Inter Frame Space

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-18 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Tx Data to STA 2

ACK to STA1Rx data from STA 1

Detects channel busy

Detects channel busy Tx Data

Station 1

Station 2

Station 3

Station 4

Short deferral

Distributed inter-frame deferral

Distributed inter-frame deferral

Distributed inter-frame deferral

Distributed inter-frame deferral

Random back-off

Random back-off

Short interval ensures ACK is sent while other stations wait longer

STA 3’s back-off is shorter thanSTA 4’s therefore it begins

transmission first

Detects channel busy

Detects channel busy

Detects channel busy

Carrier Sense Multiple AccessCollision Avoidance (CSMA/CA)

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-19 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Ack

Data

Next MPDU

Src

Dest

Other

Contention Window

Defer Access Backoff after Defer

DIFS

SIFS

DIFS

CSMA/CA + ACK protocol

Defer access based on Carrier Sense. CCA from PHY and Virtual Carrier Sense state.

Direct access when medium is sensed free longer then DIFS, otherwise defer and backoff.

Receiver of directed frames to return an ACK immediately when CRC correct.

When no ACK received then retransmit frame after a random backoff (up to maximum limit).

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-20 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Beacon

Contention Free Period Contention Period

CFP repetition interval

D1+Poll

U1+ACK

D2+Poll

Stations

AccessPoint

U2+ACK

CF end

IEEE802.11 Point Coordination Function (PCF)

Optional PCF mode provides alternating contention free and contention operation under the control of the access point

The access point polls stations for data during contentionfree period

Network Allocation Vector (NAV) defers the contention traffic until reset by the last PCF transfer

PCF and DCF networks will defer to each other PCF improves the quality of service for time bounded data

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-21 (2000-11-26)2000 © Maximilian RiegelWireless LAN

STA “B” cannot receive data from STA “A”

Problem – Stations contending for the medium do not Hear each other

STA “B” STA“A”

RTS

CTS Ack

Data

Next MPDU

STA A

AP

STA BTime period to defer accessis based on duration in CTS Back off after defer

DIFS

RTS-Range

Access Point

STA “B” cannot detect carrier from STA “A”

CTS-Range

Solution – Optional use of the Duration field in RTS and CTS frames with AP

“Hidden Node” Provisions

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-22 (2000-11-26)2000 © Maximilian RiegelWireless LAN

FrameControl

DurationID

Addr 1 Addr 2 Addr 3 Addr 4SequenceControl

CRCFrameBody

2 2 6 6 6 62 0-2312 4

802.11 MAC HeaderBytes:

ProtocolVersion

Type SubTypeToDS

RetryPwrMgt

MoreData

WEP Rsvd

Bits: 2 2 4 1 1 1 1 1 1 1 1

DSFrom More

Frag

Frame Formats

MAC Header format differs per Type: Control Frames (several fields are omitted) Management Frames Data Frames

Includes Sequence Control Field for filtering of duplicate caused by ACK mechanism.

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-24 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Physical Layer Convergence Protocol (PLCP)

SYNC (gain setting, energy detection, antenna selection, frequency offset compensation)

SFD (Start Frame Delimiter; bit synchronization) SIGNAL (rate indication; 1, 2, 5.5, 11 Mbit/s) SERVICE (reserved for future use) LENGTH (number of octets in PSDU) CRC (CCITT CRC-16, protects signal, service, length field)

PLCP Protocol Data Unit

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-25 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Three PHYs

Frequency Hop Spread Spectrum 2.4GHz band, 1 and optional 2Mbps

2GFSK, 4GFSK (Gaussian Frequency Shift Keying) 2.5 hops/sec over 79 1MHz BW channels (North America)

Direct Sequence Spread Spectrum 2.4GHz band, 1 and 2Mbps

DBPSK, DQPSK (Differential Binary/Quadrature Phase Shift Keying) 11 chip Barker sequence

2.4GHZ band, 5.5 and 11Mbps CCK Complex spread functions

Baseband IR Diffused infrared, 1 and 2Mbps, 16-PPM and 4-PPM

(Pulse Position Modulation)

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-26 (2000-11-26)2000 © Maximilian RiegelWireless LAN

11 chips

1 bit period

11 chips 1 bitperiod

Data

PRN

Out11 Bit Barker Code (PRN*)0100100011110110111000

Transmitter baseband signal after spreading

Transmitter baseband signal before spreading

Receiver baseband signal after matched filter (De-spread)

Receiver baseband signal before matched filter (Correlator)

RF Energy is Spread by XOR of Data with PRN Sequence

Signal Spectrum

1 0

1011011100010110111000

* PRN: Pseudorandom Number

Direct Sequence Spread Spectrum

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-27 (2000-11-26)2000 © Maximilian RiegelWireless LAN

DSSS Transmit Spectrum and Channels

fcfc -11 MHzfc -22 MHz

Sinx/x

fc +11 MHz fc +22 Mhz

0 dBr

-30 dBr

-50 dBr

UnfilteredTransmitSpectrumMask

Cannel USA ETSI Japan

1 2412 MHz 2412 MHz N/A

2 2417 MHz 2417 MHz N/A

3 2422 MHz 2422 MHz N/A

4 2427 MHz 2427 MHz N/A

5 2432 MHz 2432 MHz N/A

6 2437 MHz 2437 MHz N/A

7 2442 MHz 2442 MHz N/A

8 2447 MHz 2447 MHz N/A

9 2452 MHz 2452 MHz N/A

10 2457 MHz 2457 MHz N/A

11 2462 MHz 2462 MHz N/A

12 N/A 2467 MHz N/A

13 N/A 2472 MHz N/A

14 N/A N/A 2484 MHz

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-31 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Power Management

Mobile devices are battery powered. Power Management is important for mobility.

Current LAN protocols assume stations are always ready to receive.

Idle receive state dominates LAN adapter power consumption over time.

How can we power off during idle periods, yet maintain an active session?

802.11 Power Management Protocol: allows transceiver to be off as much as possible is transparent to existing protocols is flexible to support different applications

possible to trade off throughput for battery life

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-32 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Power Management Approach

Allow idle stations to go to sleep station’s power save mode stored in AP

APs buffer packets for sleeping stations. AP announces which stations have frames buffered Traffic Indication Map (TIM) sent with every Beacon

Power Saving stations wake up periodically listen for Beacons

TSF assures AP and Power Save stations are synchronized stations will wake up to hear a Beacon TSF timer keeps running when stations are sleeping synchronization allows extreme low power operation

Independent BSS also have Power Management similar in concept, distributed approach

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-33 (2000-11-26)2000 © Maximilian RiegelWireless LAN

TIM

TIM-Interval

Time-axis

Busy Medium

Tx operation

AP activityTIM TIM TIM DTIMDTIM

DTIM interval

PS Station

Broadcast

PS-Poll

Broadcast

Infrastructure Power Management

Broadcast frames are also buffered in AP. all broadcasts/multicasts are buffered broadcasts/multicasts are only sent after Delivery Traffic

Indication Message (DTIM) DTIM interval is a multiple of TIM interval

Stations wake up prior to an expected DTIM. If TIM indicates frame buffered

station sends PS-Poll and stays awake to receive data else station sleeps again

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-34 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Scanning

Scanning required for many functions. finding and joining a network finding a new AP while roaming initializing an Independent BSS (ad hoc) network

802.11 MAC uses a common mechanism for all PHY. single or multi channel passive or active scanning

Passive Scanning Find networks simply by listening for Beacons

Active Scanning On each channel

Send a Probe, Wait for a Probe Response

Beacon or Probe Response contains information necessary to join new network.

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-35 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Steps to Association:

Station sends Probe.

APs send Probe Response.

Station selects best AP.

Station sends AssociationRequest to selected AP.

AP sends AssociationResponse.

Initial connection to an Access Point - ReAssociation follows a similar process

Access Point CAccess Point A

Active Scanning Example

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-36 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Access Point A

Access Point B

Station 4

Access Point C

Station 1

Station 2

Station 3

Station 5Station 6

Station 7

Roaming

Mobile stations may move… beyond the coverage area of their Access Point but within range of another Access Point

Reassociation allows station to continue operation

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-37 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Roaming Approach

Station decides that link to its current AP is poor Station uses scanning function to find another AP

or uses information from previous scans

Station sends Reassociation Request to new AP If Reassociation Response is successful

then station has roamed to the new AP else station scans for another AP

If AP accepts Reassociation Request AP indicates Reassociation to the Distribution System Distribution System information is updated normally old AP is notified through Distribution System

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-38 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Privacy and Access Control

Goal of 802.11 is to provide “Wired Equivalent Privacy” (WEP)

Usable worldwide

802.11 provides for an Authentication mechanism To aid in access control. Has provisions for “OPEN”, “Shared Key” or proprietary

authentication extensions.

Optional (WEP) Privacy mechanism defined by 802.11. Limited for Station-to-Station traffic, so not “end to end”. Only implements “Confidentiality” function. Uses RC4 algorithm based on:

a 40 bit secret key (No Key distribution standardized) and a 24 bit IV that is send with the data. includes an ICV to allow integrity check.

Only payload of Data frames are encrypted. Encryption on per MPDU basis.

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-44 (2000-11-26)2000 © Maximilian RiegelWireless LAN

IEEE802.11 Architecture Overview

One MAC supporting multiple PHYs currently Frequency Hopping, Direct Sequence and Infrared PHYs

Two configurations “Independent” (ad hoc) and “Infrastructure”

CSMA/CA (collision avoidance) with optional “point coordination”Connectionless Service

Transfer data on a shared medium without reservation data comes in bursts user waits for response, so transmit at highest speed possible is the same service as used by Internet

Isochronous Service reserve the medium for a single connection and provide a continues stream of

bits, even when not used works only when cells (using the same frequencies) are not overlapping.

Robust against noise and interference (ACK) Hidden Node Problem (RTS/CTS) Mobility (Hand-over mechanism) Security (WEP) Power savings (Sleep intervals)

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-45 (2000-11-26)2000 © Maximilian RiegelWireless LAN

IEEE802.11 - Current and future work

Legend: italic (and red) = optional

MAC

2.4 GHz radioFreq. Hopping

Spread Spectrum

2.4 GHz radioDirect

SequenceSpread

Spectrum

Infra-Red

1 Mbit/s2 Mbit/s

2 Mbit/s1 Mbit/s

1 Mbit/s2 Mbit/s

2.4 GHz Higher

data rate extensio

n802.11

b

5 GHz High data

rate extension802.11a

5.5 Mbit/s11 Mbit/s

6,12,24 Mbit/s9-54 Mbit/s

TGd Regulatory updates

TGf Inter Access Point Protocol

TGe Enhancements of MAC

TGg 802.11b >20 Mbit/s Data Rate

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-48 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Mission Statement

WECA’s mission is to certify interoperability of Wi-Fi (IEEE 802.11b High Rate) products and to promote Wi-Fi as the global wireless LAN standard across all market segments.

Current Activities: Promote IEEE 802.11b HR technology in enterprise, home, and

education spaces One standard ---- everywhere

Consortium of Over 40 companies Leading vendors

WLAN equipment, PC companies, chip companies, service Published compliance matrix Independent test lab (SVNL) Wi-Fi seal of certified interoperability

WECA

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-49 (2000-11-26)2000 © Maximilian RiegelWireless LAN

10m 30m 60m 100m

2M

0

4M

6M

8M

10M

802.11HomeRFBluetooth

802.11 b

By Data Rate and Range

Range(meters)

Data Rate (Mbps)

For 2.4GHz WLAN Applications

2.4 GHz Wireless LAN Standards Efforts

Kommunikationsnetz Franken e.V.

wlan-tutorial.ppt-50 (2000-11-26)2000 © Maximilian RiegelWireless LAN

Bluetooth

Backed by cellular industry Ericsson, Nokia, Intel, IBM, Toshiba

Not a network solution Simple point-to-point link Low data rate (sub 1Mbps) 10cm to 10m range Low power and low cost Under 802.15 standard

Applications Wireless desktop (replaces infrared) Cell phone, cordless phone, pager Internet bridge

For more data: http:// www.bluetooth.com