Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for...

54
Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Transcript of Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for...

Page 1: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Chapter 15

Wireless LANs

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 2: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Chapter6: Outline

15.1 15.1 INTRODUCTIONINTRODUCTION

15.2 15.2 IEEE 802.11 PROJECTIEEE 802.11 PROJECT

15.3 15.3 BLUETOOTHBLUETOOTH

Page 3: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.3

15-1 INTRODUCTION15-1 INTRODUCTION

Wireless communication is one of the fastest-growing technologies.

The demand for connecting devices without the use of cables is increasing everywhere.

Page 4: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.4

Figure 15.1: Isolated LANs: wired versus wireless

Page 5: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.5

Figure 15.2: Connection of a wired LAN and a wireless LAN to other networks

Page 6: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.6

15.15.3 Access Control15.15.3 Access Control

An important issue concerning a wireless LAN is access control—

Answering the question of how the wireless host can get access to the shared medium.

The shared medium is free space for a wireless LAN.

Page 7: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.7

15.15.3 Access Control15.15.3 Access Control

The CSMA/CD algorithm does not work in wireless LANs for many reasons including these:

1.Wireless signal amplitude degrades proportional to the inverse square of the distance. This makes relative amplitudes somewhat meaningless with wireless communication.

1.The hidden station problem prevents collision detection.

Page 8: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.8

Figure 15.3: Hidden station problem

Page 9: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.9

15-2 IEEE 802.11 PROJECT15-2 IEEE 802.11 PROJECT

IEEE has defined the specifications for a wireless LAN, called IEEE 802.11, whichcovers the physical and data-link layers. It is sometimes called wireless Ethernet.

Page 10: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.10

15.2.1 Architecture15.2.1 Architecture

The standard defines two kinds of services:

• BSS, the basic service set, and • ESS, the extended service set (ESS).

Page 11: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.11

Figure 15.4: Basic service sets (BSSs)

Page 12: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.12

Figure 15.6: Extended service set (ESS), (two or more BSSs)

Page 13: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.13

15.2.2 MAC Sublayer15.2.2 MAC Sublayer

Like wired Ethernet, IEEE 802.11 defines two sublayers within the data-link layer:

LLC (logical link control) handles framing, error control, flow control.

MAC (media access control) physical addressing

Page 14: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.14

15.2.2 MAC Sublayer15.2.2 MAC Sublayer

IEEE 802.11 defines two sublayers withing the MAC sublayer:

DCF the distributed coordination function, andPCF and point coordination function.

Page 15: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.15

15.2.2 MAC Sublayer15.2.2 MAC Sublayer

DCF the distributed coordination function

•Uses CSMA/CA as the access method•Implements a persistence strategy with exp-backoff•Implements a DIFS after the media is idle.

Page 16: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.16

15.2.2 MAC Sublayer15.2.2 MAC Sublayer

DCF the distributed coordination function, andPCF and point coordination function.

Page 17: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.17

Figure 15.6: MAC layers in IEEE 802.11 standard

Page 18: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

DIFS & SIFS

DIFS <= 50 microseconds SIFS<= 10 microseconds

Page 19: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.19

Figure 15.7: Distributed Coordination Funcion: DCF

NAV

Page 20: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

PCF

Point Coordination Function, optional layer to allow for transmissions needing higher priority (quality of service)

Page 21: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.21

Figure 15.8: Example of repetition interval for PCF

Page 22: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.22

Figure 15.9: The frame format has 9 fields

Page 23: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Frame Format

FC = Frame control (type of frame: control, data, etc)

D = duration SC = sequence control used for

“fragmentation” Frame body up to 2312 bytes. FCS = CRC error detection

Page 24: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Table 15.1: Subfields in FC field

15.24

Page 25: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.25

Figure 15.10: Control frames

Page 26: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Table 15.2: Values of subfields in control frames

15.26

Page 27: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.27

15.2.3 Addressing Mechanism15.2.3 Addressing Mechanism

The IEEE 802.11 addressing mechanism specifies four cases, defined by the value of the two flags in the FC field.

Each flag can be either 0 or 1, resulting in four different situations.

Page 28: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Table 15.3: Addresses

15.28

Page 29: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.29

Figure 15.11: Addressing mechanisms

Page 30: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.30

Figure 15.12: Exposed station problem

Page 31: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.31

802.11-Physical Layer802.11-Physical Layer

The unlicensed frequency bands in these three ranges

902–928 MHz, 2.400–4.835 GHz, and 5.725–5.850 GHz.

Are known as the ISM bands, Industrial, Scientific and Medical.

Page 32: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Table 15.4: Specifications (DSSS = Direct Sequence...)

15.32

Page 33: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

OFDM

Orthogonal Frequency Division Multiplexing

OFDM uses QAM for modulation.

Page 34: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.34

15-3 BLUETOOTH15-3 BLUETOOTH

Bluetooth is yet another wireless LAN technology requiring short distances between stations.

Page 35: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.35

15-3 BLUETOOTH15-3 BLUETOOTH

A Bluetooth LAN is an ad hoc network.

The devices, (aka gadgets), find each other and make a network called a piconet.

Page 36: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.36

15.3.1 Architecture15.3.1 Architecture

Bluetooth defines two types of networks:

● piconet and ● scatternet.

Page 37: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth Piconet

Up to 8* stations One station is designated the primary The other stations are secondary

Page 38: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth Piconet

The secondary stations synchronize their clocks with the primary station.

The secondary stations receive their hopping sequence from the primary station.

Page 39: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth Piconet

Communication is one-to-one or One-to-many.

Page 40: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth Piconet

While limited to seven “active” secondary stations. It is possible to put a station in a “parked state” to allow another station on the piconet.

Page 41: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.41

Figure 6.17: Piconet

Page 42: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.42

Figure 15.18: Scatternet

Page 43: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth V1

1 Mbps bandwidth 2.4-2.483GHz (overlaps with 802.11b

& g) FHSS – 1600 hops per second 79 frequency channels of 1MHz each FSK modulation

Page 44: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth V2

3 Mbps bandwidth

Page 45: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth V3

24 Mbps bandwidth Bluetooth establishes the link and uses

802.11 to achieve the 24Mbps data rate.

Page 46: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth Range

Power Class 1 20db ~100 m

Power Class 2 4 db ~10 m Power Class 3 ~1 m

Page 47: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.47

15.3.2 Bluetooth Layers15.3.2 Bluetooth Layers

Bluetooth uses several layers that do not exactly match those of the Internet model defined in the text book. Figure 15.19 shows these layers.

Page 48: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.48

Figure 15.19: Bluetooth layers

Page 49: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth Access Method

Polling-select The primary poles the secondary

stations on even clock cycles. If a secondary is polled, it transmits on

the next odd clock cycle.

Page 50: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.50

Figure 6.21: Single-secondary communication (diagram error!) microseconds, not milliseconds

Page 51: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Slot Bandwidth

• A slot is 625 microsecs• 259 microsecs are used for overhead• 366 microsecs for data 1 Hz per bit,

366 bits per slot

Page 52: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.52

Figure 6.22: Multiple-secondary communication

Page 53: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

15.53

Figure 6.23: Frame format types

Page 54: Chapter 15 Wireless LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Bluetooth V1 Throughput

1-slot frames 1600slots/sec * (366-(72+54)) bits/slot =

384Kbps

5-slot frames 5*625-259 = 2866 bits / 5 slots 2866 – (72+54) = 2740 bits 1600slots/sec * 2740/5 = 876.8Kbps