lecture 23 overview - otago

20
Lecture 23 Overview Last Lecture ADSL, ATM This Lecture Wireless Technologies (1) Wireless LAN, CSMA/CA, Bluetooth • Source: chapters 6.2, 15 Next Lecture Wireless Technologies (2) – Source: chapter 16, 19.3 COSC244 1 Lecture 23 – Wireless Technologies

Upload: others

Post on 18-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 23 Overview - Otago

Lecture 23 Overview •  Last Lecture

–  ADSL, ATM •  This Lecture

–  Wireless Technologies (1) •  Wireless LAN, CSMA/CA, Bluetooth •  Source: chapters 6.2, 15

•  Next Lecture –  Wireless Technologies (2) –  Source: chapter 16, 19.3

COSC244 1Lecture 23 – Wireless Technologies

Page 2: Lecture 23 Overview - Otago

Wireless LAN

COSC244 2Lecture 23 – Wireless Technologies

•  Covered by IEEE 802.11 •  802.11 variations

–  Original 802.11 (1997) •  1-2Mbps 900 MHz or 2.4 GHz

–  802.11a (1999) •  54Mbps in 5GHz range

–  802.11b (Wi-Fi) (1999) •  11Mbps in 2.4GHz range

–  802.11g (2003) •  54Mbps in 2.4GHz range

–  802.11n (2009) •  multiple-input multiple-output antennas (MIMO), 54Mbit/s to 600Mbit/s.

Page 3: Lecture 23 Overview - Otago

IEEE 802.11 Architectures •  Basic Service Set (BSS)

–  Stationary or mobile wireless stations –  An optional access point (AP)

•  Configurations –  ad-hoc architecture: without an AP, can not send data to other

BBSs (WiFi-Direct) –  Infrastructure: with an AP (most commonly used)

COSC244 3Lecture 23 – Wireless Technologies

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Ad hoc Infrastructure

Page 4: Lecture 23 Overview - Otago

IEEE 802.11 Physical Layer •  Spread spectrum: spreads the signal’s spectral energy

over a wide range of frequencies (i.e., larger bandwidth) –  Less prone to interference –  More secure as a intruder trying to listen at a particular

frequency gets only a small part of the signal.

•  Two spread spectrum technologies –  Frequency-hopping spread spectrum (FHSS) –  Direct-sequence spread spectrum (DSSS)

COSC244 4Lecture 23 – Wireless Technologies

Page 5: Lecture 23 Overview - Otago

FHSS •  Developed in the early 1940s

–  Operate on a set of frequencies that all lie in the broadcast range –  Transmit using one frequency for a fixed period of time and then

switches to the next frequency –  Using a pseudo-random number generator to generate the

frequency sequence so that both the transmitter and the receiver have the same sequence

COSC244 5Lecture 23 – Wireless Technologies

Page 6: Lecture 23 Overview - Otago

DSSS •  DSSS expands a single data bit into n bits

–  The transmitter starts with a string of data bits –  For each bit, generate a pseudorandom bit string, called a

chipping sequence, containing n bits. –  Combine each data bit and the chipping sequence to create a

chip code and transmit the chip code.

COSC244 6Lecture 23 – Wireless Technologies

1Mbps data rate

4Mbps transmission rate

Page 7: Lecture 23 Overview - Otago

Hidden Station Problem

COSC244 7Lecture 23 – Wireless Technologies

•  Different stations may have different transmission range.

•  Solution: handshaking –  RTS/CTS

•  Request To Send (RTS)/Clear To Send (CTS)

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

AB C

Range of BRange of C

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

AB C

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

RTS

CTSCTS

Page 8: Lecture 23 Overview - Otago

Exposed Station Problem

COSC244 8Lecture 23 – Wireless Technologies

•  The reverse of the hidden station problem

•  Handshaking can not help

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

CB D

Range of BRange of C

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

AB C

A

Range of A

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

D

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

Server

stationstation

station station

laptoplaptop

station station

AP

Server

Distribution2System

BSS BSS

RTS

CTS

RTS

RTSRTSData

CTSData

Page 9: Lecture 23 Overview - Otago

IEEE 802.11 MAC Sublayer •  Carrier Sense Multiple Access with Collision

Avoidance (CSMA/CA) •  Why cannot Wireless LANs use CSMA/CD?

–  To detect collision, a station must be able to transmit and listen at the same time.

–  Collision may not be detected because of the hidden station problem

–  The distance between stations can be large. Signal fading could prevent a station at one end from detecting a collision at the other end.

COSC244 9Lecture 23 – Wireless Technologies

Page 10: Lecture 23 Overview - Otago

CSMA/CA •  Carrier Sense Multiple Access with Collision

Avoidance (CSMA/CA) –  Try to avoid collisions instead of detecting collisions. –  Collisions can still occur. Use the binary exponential

backoff algorithm.

•  Three strategies to reduce collisions –  Interframe space –  Contention window –  Acknowledgment

COSC244 10Lecture 23 – Wireless Technologies

Page 11: Lecture 23 Overview - Otago

CSMA/CA (cont.)

•  Interframe Space (IFS) –  A period of time waited after an idle channel is found

•  Another station may have already started transmitting, but the signal has not reach this destination.

•  Prioritize stations or frame types, e.g., a station that is assigned a shorter IFS has a higher priority.

COSC244 11Lecture 23 – Wireless Technologies

IFSContinuously sense

Found idle

Contention window

Binary exponential

busy Send frame Time-out Time

Page 12: Lecture 23 Overview - Otago

CSMA/CA (cont.) •  Contention window

–  An amount of time divided into slots •  A station that is ready to send choose a random number of

slots as its wait time. •  Binary exponential back-off: double the window size

each time the station cannot detect an idle channel after the IFS time.

•  Acknowledgement –  Frame may still get collided. –  Guarantee the receiver has received the frame

COSC244 12Lecture 23 – Wireless Technologies

Page 13: Lecture 23 Overview - Otago

CSMA/CA (cont.)

COSC244 13Lecture 23 – Wireless Technologies

Wait for frame to transmit

Medium idle?

Wait IFS

Still idle?

Transmit frame

Wait until current transmission ends

Wait IFS

Still idle?

Exponential backoff while medium idle

Transmit frame

No

Yes

No

YesNo

Yes

Page 14: Lecture 23 Overview - Otago

Bluetooth •  A technology in which a microchip containing a radio

transceiver is embedded in electronic devices and allows the devices to communicate without wires or cables –  Communication between wireless mouse or keyboard with the

computer –  Share information between different mobile phones

•  Bluetooth LAN –  An ad hoc network that formed spontaneously by Bluetooth

devices

•  Wireless Personal-area Network (PAN) –  IEEE 802.15

COSC244 14Lecture 23 – Wireless Technologies

Page 15: Lecture 23 Overview - Otago

Bluetooth Architecture •  Piconets (small net)

–  Up to eight stations –  One called primary, the rest called secondaries

COSC244 15Lecture 23 – Wireless Technologies

Page 16: Lecture 23 Overview - Otago

Bluetooth Architecture (cont.) •  Scatternet

–  Consist of two or more piconets. –  A secondary station in one piconet can be the primary in

another piconet

COSC244 16Lecture 23 – Wireless Technologies

Page 17: Lecture 23 Overview - Otago

Bluetooth Radio Layer •  Roughly equivalent to the physical layer in the Internet

model •  Low power and transmission range of 10m •  FHSS

–  Hops 1600 times per second, –  Uses each frequency for only 625 µs (1/1600 s)

COSC244 17Lecture 23 – Wireless Technologies

Page 18: Lecture 23 Overview - Otago

Bluetooth Baseband Layer •  Roughly equivalent to the MAC layer in LANs •  TDD-TDMA (time-division duplex TDMA)

–  Half-duplex communication –  Time slot is 625 µs

•  Single-secondary communication –  Primary uses even-numbered slots (0, 2, 4, …) –  Secondary uses odd-numbered slots (1, 3, 5, …)

COSC244 18Lecture 23 – Wireless Technologies

Primary

Secondaryf0 f1 f2 f3

366µs 625µs

Hop

Hop

Hop

Hop

Page 19: Lecture 23 Overview - Otago

Bluetooth Baseband Layer (cont.) •  Multiple-secondary communication

–  Primary uses even-numbered slots (0, 2, 4, …) –  A secondary sends in the next odd-numbered slot if the packet

in the previous slot was addressed to it.

COSC244 19Lecture 23 – Wireless Technologies

Primary

Secondary 1

366µs 625µs

Hop

Hop

Hop

Secondary 2f0 f1 f2 f3

Hop

Page 20: Lecture 23 Overview - Otago

Summary

•  IEEE 802.11 – FHSS – DSSS – Hidden/Exposed Station Problem – CSMA/CA

•  Bluetooth

COSC244 20Lecture 23 – Wireless Technologies