Top Banner
Data and Computer Communications Ninth Edition by William Stallings Chapter 17 – Wireless LANs
63

Data and Computer Communications

Feb 25, 2016

Download

Documents

kenton

Data and Computer Communications. Chapter 17 – Wireless LAN s. Ninth Edition by William Stallings. High Speed LAN s. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data and Computer Communications

Data and Computer Communications

Ninth Editionby William Stallings

Chapter 17 – Wireless LANs

Page 2: Data and Computer Communications

High Speed LANs

Investigators have published numerous reports of birds taking turns vocalizing; the bird spoken to gave its full attention to the speaker and never vocalized at the same time, as if the two were holding a conversationResearchers and scholars who have studied the data on avian communication carefully write the (a) the communication code of birds such has crows has not been broken by any means; (b) probably all birds have wider vocabularies than anyone realizes; and (c) greater complexity and depth are recognized in avian communication as research progresses.

—The Human Nature of Birds, Theodore Barber

Page 3: Data and Computer Communications

Overview of Wireless LANs wireless transmission medium issues of high prices, low data rates,

occupational safety concerns, & licensing requirements now addressed

key application areas: LAN extension cross-building interconnect nomadic access ad hoc networking

Page 5: Data and Computer Communications

Multi Cell LAN Extension

Page 7: Data and Computer Communications

Cross-Building Interconnect

Wireless technology used to connect wired or wireless LANs

in nearby buildings

point-to-point wireless link used• not a LAN per se

connect bridges or routers

Page 8: Data and Computer Communications

Nomadic Access

also useful in extended environment such as campus or cluster of buildings users move around with portable computers access to servers on wired LAN

• laptop or notepad computer• enable employee to transfer data from

portable computer to server

link LAN hub & mobile data terminal

Page 9: Data and Computer Communications

Infrastructure Wireless LAN

Page 10: Data and Computer Communications

Ad Hoc Networking temporary peer-to-peer network

Page 11: Data and Computer Communications

Ad Hoc Networking Windows 7 :

Panneaux de configuration• Centre réseau et partage

Créer une nouvelle connexion ou un nouveau réseau

instructions avec explications: http://

www.dummies.com/how-to/content/configuring-an-ad-hoc-mode-wlan-with-windows-7.html

Page 12: Data and Computer Communications

Wireless LAN RequirementsTHROUGHPUT –

should make efficient use of medium

NUMBER OF NODES- hundreds of nodes

across multiple cells

CONNECTION TO BACKBONE LAN –

use of control modules

SERVICE AREA – coverage area of 100

to 300m

BATTERY POWER CONSUMPTION –

reduce power consumption while

not in use

TRANSMISSION ROBUST AND

SECURITY– reliability and privacy/security

COLLOCATED NETWORK

OPERATION – possible interference

between LANs

LICENSE-FREE OPERATION – not having to secure a

license for the frequency band used

by the LAN

HANDOFF/ROAMING– enable stations to

move from one cell to another

DYNAMIC CONFIGURATION- addition, deletion, relocation of end systems without

disruption

Page 13: Data and Computer Communications

Wireless LANs(OFDM:http://bwrcs.eecs.berkeley.edu/Classes/EE225C/Lectures/Lec16_ofdm.pdf)

spread spectrum

LANs

mostly operate in ISM

(industrial, scientific, and

medical) bands

no Federal Communications Commission (FCC) licensing is required in

USA

OFDM LANs

orthogonal frequency division

multiplexing

superior to spread spectrum

operate in 2.4 GHz or 5 GHz band (in ISM

bands)

infrared (IR) LANs

individual cell of IR LAN limited to

single room

IR light does not penetrate

opaque walls

Page 14: Data and Computer Communications

Spread Spectrum LANConfiguration

usually use multiple-cell arrangement adjacent cells use different center frequencies

Configurationshub• connected to wired LAN• connect to stations on wired

LAN and in other cells• may do automatic handoff

peer-to-peer• no hub• MAC algorithm such as

CSMA used to control access

• for ad hoc LANs

Page 15: Data and Computer Communications

Spread Spectrum LANsTransmission Issues

licensing regulations differ between countries USA FCC allows in ISM band:

ISM: industrial, scientific and medical spread spectrum (1W), very low power (0.5W)

• 902 - 928 MHz (915-MHz band)• 2.4 - 2.4835 GHz (2.4-GHz band)• 5.725 - 5.825 GHz (5.8-GHz band)

2.4 GHz also in Europe and Japan

Interference• many devices around 900 MHz: cordless telephones,

wireless microphones, and amateur radio• fewer devices at 2.4 GHz; microwave oven (2.45GHz)• little competition at 5.8 GHz

Page 16: Data and Computer Communications

IEEE 802 Standards

Standard Scope

Medium access control (MAC): One common MAC for WLANapplications

Physical layer: Infrared at 1 and 2 Mbps

Physical layer: 2.4-GHz FHSS at 1 and 2 MbpsIEEE 802.11

Physical layer: 2.4-GHz DSSS at 1 and 2 Mbps

IEEE 802.11a Physical layer: 5-GHz OFDM at rates from 6 to 54 Mbps

IEEE 802.11b Physical layer: 2.4-GHz DSSS at 5.5 and 11 Mbps

IEEE 802.11c Bridge operation at 802.11 MAC layer

IEEE 802.11d Physical layer: Extend operation of 802.11 WLANs to newregulatory domains (countries)

IEEE 802.11e MAC: Enhance to improve quality of service and enhancesecurity mechanisms

IEEE 802.11f Recommended practices for multivendor access pointinteroperability

IEEE 802.11g Physical layer: Extend 802.11b to data rates >20 Mbps

IEEE 802.11hPhysical/MAC: Enhance IEEE 802.11a to add indoor andoutdoor channel selection and to improve spectrum andtransmit power management

IEEE 802.11i MAC: Enhance security and authentication mechanisms

IEEE 802.11j Physical: Enhance IEEE 802.11a to conform to Japaneserequirements

IEEE 802.11kRadio resource measurement enhancements to provideinterface to higher layers for radio and networkmeasurements

IEEE 802.11m Maintenance of IEEE 802.11-1999 standard with technicaland editorial corrections

IEEE 802.11n Physical/MAC: Enhancements to enable higher throughput

IEEE 802.11p Physical/MAC: Wireless access in vehicular environments

IEEE 802.11r Physical/MAC: Fast roaming (fast BSS transition)

IEEE 802.11s Physical/MAC: ESS mesh networking

IEEE802.11,2

Recommended practice for the Evaluation of 802.11 wirelessperformance

IEEE 802.11u Physical/MAC: Interworking with external networks

Page 17: Data and Computer Communications

IEEE 802 standards

See table in http://en.wikipedia.org/wiki/IEEE_802.11

-Frequency-Bandwidth-Data rate-MIMO stream-Modulation

802.11n : http://en.wikipedia.org/wiki/IEEE_802.11n-2009-see table (Data rate as a function of modulation and coding)

Page 18: Data and Computer Communications

IEEE 802 Terminology Access point (AP) Any entity that has station functionality and provides access to the

distribution system via the wireless medium for associated stations

Basic service set (BSS) A set of stations controlled by a single coordination function

Coordination function The logical function that determines when a station operating within a BSS is permitted to transmit and may be able to receive PDUs

Distribution system (DS) A system used to interconnect a set of BSSs and integrated LANs to create an ESS

Extended service set (ESS)

A set of one or more interconnected BSSs and integrated LANs that appear as a single BSS to the LLC layer at any station associated with one of these BSSs

MAC protocol data unit (MPDU)

The unit of data exchanged between two peer MAC entites using the services of the physical layer

MAC service data unit (MSDU)

Information that is delivered as a unit between MAC users

Station Any device that contains an IEEE 802.11 conformant MAC and physical layer

Page 19: Data and Computer Communications

IEEE 802.11 Architecture

(bridges)

Page 20: Data and Computer Communications

IEEE 802.11 - BSS basic service set (BSS) building block may be isolated may connect to backbone distribution

system (DS) through access point (AP) BSS generally corresponds to cell DS can be switch, wired network, or

wireless network have independent BSS (IBSS) with no AP

Page 21: Data and Computer Communications

Extended Service Set (ESS) possible configurations:

simplest is each station belongs to single BSS can have two BSSs overlap a station can participate in more than one BSS association between station and BSS dynamic

ESS is two or more BSS interconnected by DS appears as single logical LAN to LLC

Page 22: Data and Computer Communications

(IEEE 802 Services )(i.e funtionalities...)

Service Provider Used to support

Association Distribution system MSDU delivery

Authentication Station LAN access and security

Deauthentication Station LAN access and security

Dissassociation Distribution system MSDU delivery

Distribution (see next slide)

Distribution system MSDU delivery

Integration (see next slide)

Distribution system MSDU delivery

MSDU delivery Station MSDU delivery

Privacy Station LAN access and security

Reassociation Distribution system MSDU delivery

Page 23: Data and Computer Communications

(Services - Message Distribution)

distribution service primary service used

by stations to exchange MAC frames when frame must traverse DS

if stations in same BSS, distribution service logically goes through single AP of that BSS

integration service enables transfer of

data between 802.11 LAN station and one on an integrated 802.x LAN• Ex. 802.3

Page 24: Data and Computer Communications

(Association Related Services)

DS requires info about stations within ESS provided by association-related services

station must associate before communicating

3 mobility transition types: no transition - stationary or in single BSS BSS transition - between BSS in same ESS ESS transition: between BSS in different ESS

Page 25: Data and Computer Communications

(Association Related Services)

DS needs identity of destination station stations must maintain association with AP

within current BSS

3 services relate to this requirement: 

• Association - establishes initial association between station and AP

• Reassociation - to transfer an association to another AP

• Disassociation - by station or AP

Page 26: Data and Computer Communications

Medium Access Control

MAC layer covers three

functional areas:

reliable data

delivery

access control

security

Page 27: Data and Computer Communications

Reliable Data Delivery can be dealt with at a higher

layer BUT it is more efficient to deal with errors at MAC level

802.11 includes frame exchange protocol

station receiving frame returns acknowledgment (ACK) frame

exchange treated as atomic unit

if no ACK within short period of time, retransmit

802.11 physical and MAC layers unreliable

noise, interference, and other propagation effects result in loss of frames

even with error-correction codes, frames may not successfully be received

Page 29: Data and Computer Communications

Media Access Control

Page 30: Data and Computer Communications

Distributed Coordination Function (DCF)

DCF sublayer uses CSMA

no collision detection since on a wireless network

DCF includes delays that act as a priority scheme

if station has frame to send, it listens to

medium

if medium is idle, station may transmit

else waits until current transmission

is complete

Page 31: Data and Computer Communications

IEEE 802.11 Medium

Access Control

Logic

IFS : interframe space

Page 32: Data and Computer Communications

Priority IFS Values(IFS: interframe space)

SIFS (short IFS) • for all immediate

response actions

PIFS (point coordination function IFS)• used by the

centralized controller in PCF scheme when issuing polls

DIFS (distributed coordination function IFS)• used as minimum

delay for asynchronous frames contending for access

Page 33: Data and Computer Communications

SIFS Use SIFS gives highest priority

over stations waiting PIFS or DIFS time SIFS used in following circumstances:

Acknowledgment (ACK)• station responds with ACK after waiting SIFS gap• for efficient collision detect and multi-frame transmission

Clear to Send (CTS)• station ensures data frame gets through by issuing RTS• waits for CTS response from destination

Poll response

Page 34: Data and Computer Communications

PIFS and DIFS Use PIFS used by centralized controller

for issuing polls take precedence over normal contention

traffic• with the exception of SIFS

DIFS used for all (ordinary) asynchronous traffic

Page 35: Data and Computer Communications

IEEE 802.11 MAC TimingBasic Access Method

Page 36: Data and Computer Communications

Point Coordination Function (PCF -> rarely used)

alternative access method

implemented on top of DCF

polling by centralized polling

master (point coordinator)

uses PIFS when issuing polls

point coordinator polls in round-

robin to stations configured for

polling

when poll issued, polled station may

respond using SIFS

if point coordinator receives response, it issues another poll using PIFS

if no response during expected turnaround time,

coordinator issues poll

coordinator could lock out

asynchronous traffic by issuing

polls

to prevent this, a superframe interval

has been defined

Page 37: Data and Computer Communications

PCF Superframe Timing

It starts with beacon frame (link) if PCF is used

Page 38: Data and Computer Communications

Beacon frameTypically, one beacon frame broadcast every 100ms (can be modified).

Beacon frame contains:

• Timestamp : all the stations change their local clocks to this time. • Beacon interval : time interval between beacon transmissions.• Capability information : type of network (AdHoc or Infrastructure), support for polling,

encryption details also.• SSID (service set identifier)• Supported rates• Parameter sets :

• Frequency-hopping (FH) Parameter Set• Direct-Sequence (DS) Parameter Set• Contention-Free (CF) Parameter Set• Infrastructure BSS (IBSS) Parameter Set (BSS: basic service set)

• …

http://www.wi-fiplanet.com/tutorials/print.php/1492071

Page 39: Data and Computer Communications

IEEE 802.11 MAC Frame Format (MPDU)

Fragment number and sequence number

Page 40: Data and Computer Communications

IEEE 802.11 MAC Frame Format

• Addresses:• Source (origin)• Destination (final destination)• transmitting station • receiving station

Note: source address can be identical to transmitting station address (the same with destination and receiving stations)

Page 41: Data and Computer Communications

IEEE 802.11 MAC Frame Format

FC field (frame control):

• http://www.sss-mag.com/pdf/802_11tut.pdf (see Frame Control Field)

• http://technet.microsoft.com/en-us/library/cc757419(v=ws.10).aspx

Page 42: Data and Computer Communications

Control FramesPower Save-Poll (PS-Poll) • request AP to transmit

buffered frame when station was in power-saving mode

Request to Send (RTS)• first frame in four-way

frame exchange

Clear to Send (CTS)• second frame in four-way

exchange

Acknowledgment (ACK)• acknowledges correct

receipt

Contention-Free (CF-end)• announces end of

contention-free period part of PCF

CF-End + CF-Ack: • acknowledges CF-end to

end contention-free period and release stations from associated restrictions

Confusing name…

Page 43: Data and Computer Communications

Data Frames – Data Carrying eight data frame subtypes

organized in two groups• first four carry upper-level data• remaining do not carry any user data

1) Data simplest data frame, contention or contention-free use

2) Data + CF-Ack carries data and acknowledges previously received data

during contention-free period3) Data + CF-Poll

used by point coordinator to deliver data & request send4) Data + CF-Ack + CF-Poll

combines Data + CF-Ack and Data + CF-Poll

Page 44: Data and Computer Communications

Data Frames – Not Data Carrying

a) Null Function carries no data, polls, or acknowledgments carries power management bit in frame control field to

AP (tells the state the station will be in after this frame)• indicates station is changing to low-power state

b) other three frames (CF-Ack, CF-Poll, CF-Ack + CF-Poll) same as corresponding frame in preceding list but without data

Page 45: Data and Computer Communications

Management Framesused to manage communications between stations and

APs

management of associations• requests, response, reassociation, dissociation, and

authentication

Page 46: Data and Computer Communications

802.11 Physical Layer

802.11 802.11a 802.11b 802.11g

Availablebandwidth 83.5 MHz 300 MHz 83.5 MHz 83.5 MHz

Unlicensedfrequency ofoperation

2.4 - 2.4835 GHzDSSS, FHSS

5.15 - 5.35 GHzOFDM

5.725 - 5.825GHz OFDM

2.4 - 2.4835 GHzDSSS

2.4 - 2.4835 GHzDSSS, OFDM

Number of non-overlappingchannels

3(indoor/outdoor)

4 indoor4

(indoor/outdoor)4 outdoor

3(indoor/outdoor)

3(indoor/outdoor)

Data rate perchannel 1, 2 Mbps

6, 9, 12, 18,24, 36, 48, 54

Mbps

1, 2, 5.5, 11Mbps

1, 2, 5.5, 6, 9,11, 12, 18, 24,36, 48, 54 Mbps

Compatibility 802.11 Wi-Fi5 Wi-Fi Wi-Fi at 11 Mbpsand below

Page 47: Data and Computer Communications

Original 802.11 Physical Layer - DSSS

Direct-sequence spread spectrum (DSSS) 2.4 GHz ISM band at 1 Mbps and 2 Mbps up to seven channels, each 1 Mbps or 2 Mbps,

can be used http://en.wikipedia.org/wiki/IEEE_802.11 (see figure) depends on bandwidth allocated by various national

regulations• 13 in most European countries• one in Japan

each channel bandwidth 5 MHz (spread over 22 MHz)

encoding scheme DBPSK (differential binary phase…) for 1-Mbps and DQPSK for 2-Mbps using an 11-chip Barker sequence

Page 48: Data and Computer Communications

Original 802.11 Physical Layer - FHSS

Frequency-hopping spread spectrum makes use of multiple channels signal hopping between multiple channels based on a

pseudonoise sequence 1-MHz channels are used

hopping scheme is adjustable 2.5 hops per second in United States Hop distance is 6 MHz in North America and Europe

• 5 MHz in Japan two-level Gaussian (filter) FSK modulation for 1

Mbps four-level GFSK modulation used for 2 Mbps

Page 49: Data and Computer Communications

Original 802.11 Physical Layer – Infrared

omnidirectional range up to 20 m 1 Mbps uses 16-PPM (pulse position modulation)

4 data bit group mapped to one of 16-PPM symbols each symbol a string of 16 bits each 16-bit string has fifteen 0s and one binary 1

2-Mbps has each group of 2 data bits mapped into one of four 4-bit sequences

each sequence consists of three 0s and one binary 1 intensity modulation is used for transmission

Page 50: Data and Computer Communications

802.11b extension of 802.11 DSSS scheme

with data rates of 5.5 and 11 Mbps chipping rate 11 MHz

same as original DS-SS scheme Complementary Code Keying (CCK)

modulation gives higher data rate with same bandwidth & chipping rate

Packet Binary Convolutional Coding (PBCC) for future higher rate use

Page 51: Data and Computer Communications

11-Mbps CCK Modulation Scheme

8 bits

6 bits

1 bit

1 bit

Page 52: Data and Computer Communications

802.11b Physical Frame

SFD: start of frame delimiter

Differential quadrature phase shift keying

Page 53: Data and Computer Communications

802.11a Universal Networking

Information Infrastructure (UNNI)

UNNI-1 band (5.15 to 5.25 GHz) for indoor use

UNNI-2 band (5.25 to 5.35GHz) for indoor or outdoor

UNNI-3 band (5.725 to 5.825 GHz) for outdoor

uses OFDM

Advantages over IEEE 802.11b:

IEEE 802.11a utilizes more

available bandwidth provides much

higher data rates uses a relatively

uncluttered frequency spectrum (5 GHz)

Page 54: Data and Computer Communications

802.11a Physical Frame

- « Rate » defines the speed at which data will be sent/received - P is the parity bit for « Rate, r and Length »

Modulation not compatible with 802.11b

Page 55: Data and Computer Communications

802.11g higher-speed extension to 802.11b operates in 2.4GHz band compatible with 802.11b devices

802.11b uses DSSS

combines physical layer encoding techniques used in 802.11 and 802.11b to provide service at a variety of data rates ERP-OFDM for 6, 9, 12, 18, 24, 36, 48,

54Mbps rates ERP-PBCC for 22 & 33Mbps rates

Page 56: Data and Computer Communications

Data Rate vs Distance (m)Data Rate (Mbps) 802.11b 802.11a 802.11g

1 90+ — 90+

2 75 — 75

5.5(b)/6(a/g) 60 60+ 65

9 — 50 55

11(b)/12(a/g) 50 45 50

18 — 40 50

24 — 30 45

36 — 25 35

48 — 15 25

54 — 10 20

Page 57: Data and Computer Communications

802.11n (540 Mbps) IEEE 802.11n has enhancements in three

general areas: multiple-input-multiple-output (MIMO) antenna

architecture• most important enhancement

radio transmission scheme• increased capacity

MAC enhancements• most significant change is to aggregate multiple

MAC frames into a single block for transmission

Page 58: Data and Computer Communications

Access and Privacy Services – Authentication -

used to establish station identity wired LANs assume physical connection gives authority

to use LAN not a valid assumption for wireless LANs

802.11 supports several authentication schemes does not mandate any particular scheme from relatively insecure handshaking to public-key

encryption 802.11 requires mutually acceptable, successful

authentication before association (to obtain information about BSS capabilities)

Page 59: Data and Computer Communications

Access and Privacy Services - Deauthentication & Privacy - Deauthentication

invoked whenever an existing authentication is to be terminated

Privacy used to prevent

messages being read by others

802.11 allows optional use of encryption

original WEP (Wired Equivalent Privacy) security features were weak

subsequently 802.11i and WPA (WiFi Protected Access) alternatives evolved giving better security

http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access

Page 60: Data and Computer Communications

Access and Privacy Services - Deauthentication & Privacy -Note:

When a pre-shared Key (PSK) or a passphrase is used, data areencrypted using that key or passphrase.

http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access

Page 61: Data and Computer Communications

MiscellaneousWiFi Range extender :

How does it work ? Most devices use the same frequency as the AP

It simply repeat received frame (from the AP or the stations) It therefore cuts the throughput of the network by 2 ! http://

networkengineering.stackexchange.com/questions/13216/how-does-a-wifi-range-extender-work

Some devices use a different frequency than the AP

It only cuts the throughput of the extended network (by 2)

Page 62: Data and Computer Communications

Miscellaneous Two antennas does not necessarily means MIMO… - sometimes, the AP simply selects the one that works better (using “spatial diversity”)

“Cantenna” Home-made Buy on-line

Wireless networking in the developing world

Page 63: Data and Computer Communications

Summary wireless LAN alternatives IEEE 802.11 architecture and services 802.11 Medium Access Control 802.11 Physical Layers

802.11, 802.11a, 802.11b, 802.11g access and privacy services security considerations