1 physical layer ผศ. ดร. อนันต์ ผลเพิ่ม asst. prof. anan...

28
1 Physical Layer ผผ. ผผ. ผผผผผผ ผผผผผผผ Asst. Prof. Anan Phonphoem, Ph.D. [email protected] http://www.cpe.ku.ac.th/~anan Computer Engineering Department Kasetsart University, Bangkok, Thailand Wireless LANs June – September 2005

Upload: angelica-lawson

Post on 29-Dec-2015

235 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

1

Physical Layer

ผศ. ดร. อนั�นัต์ ผลเพิ่ �มAsst. Prof. Anan Phonphoem, Ph.D.

[email protected]

http://www.cpe.ku.ac.th/~anan

Computer Engineering Department

Kasetsart University, Bangkok, Thailand

Wireless LANsJune – September 2005

Page 2: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

2

Outline

•Physical Layer Architecture

•Physical Layer Operations

•IEEE 802.11 Physical Layer•FHSS

•DSSS

•IR

Page 3: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

3

Physical Layer

Physical Layer Architecture

PMD Sublayer

PMD SAP

PLCP Sublayer

PHY SAP

MAC Layer

Page 4: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

4

PLCP Sublayer

•Physical Layer Convergence Procedure

•Communicate to MAC via primitives through Physical Layer Service Access Point (SAP)

•Prepare PLCP protocol data unit (PPDU) (append fields to MPDU)

•PPDU provides for asynchronous transfer of MPDU between stations

Page 5: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

5

PMD Sublayer

•Physical Medium Dependent

•Provide actual transmission and reception of Physical Layer entities via wireless medium

•Interface directly to the medium

•Provides modulation and demodulation of the transmission frame

Page 6: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

6

Physical Layer Operations

•3 State machines•Carrier Senses: determine the state of

the medium

•Transmit: send the data frame

•Receive: receive the data frame

Page 7: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

7

Physical Layer Service Primitives

MAC PLCP PLCP MAC Description

PHY-TXSTART.request

PHY-TXSTART.confirm

Start TX

PHY-DATA.request PHY-DATA.confirm Transfer Data

PHY-TXEND.request PHY-TXEND.confirm End TX

PHY-CCARESET.request

PHY-CCARESET.confirm

Reset Clear Channel Assessment state machine

PHY-CCA.indication (busy/idle : send every channel changes state)

PHY-DATA.indication Transfer Data

PHY-RXSTART.indication PHY-RXEND.indication

Received a valid start frame/PLCP header

Page 8: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

MAC PMDPLCP

Carrier Sense Function

• Station is not in Tx or Rx mode • Clear channel assessment

Check medium

Carrier Sense info• Medium Idle

PHY-CCA.indicate

• Clear channel assessment

Check medium

Carrier Sense info• Medium Busy

PHY-CCA.indicate

• Check preamble monitor header

• Try to synchronize

Carrier Sense info

Page 9: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

MAC PLCP PMD

Transmit FunctionPHY-TXSTART.request

PHY-TXSTART.confirm

PHY-DATA.request

PHY-DATA.confirm

PHY-TXEND.request

PHY-TXEND.confirm

Switch to TX mode •Switch to TX mode

PHY-DATA.request

PHY-DATA.confirm

…Pass Data

Pass Data

•Sending preamble & header to antenna @ 1 Mbps•Transmit data @ specified rate

Switch to RX mode•Switch to RX mode

Page 10: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

MAC PMDPLCP

Receive Function

Carrier Sense info

• Clear channel assessment found media busy• Check preamble monitor header

• Final Octet

• Check Power level > 85 dBm• Check CRC

• Set octet counter DATA

DATA

PHY-RXSTART.indication

PHY-RXEND.indication

PHY-DATA.indication

PHY-DATA.indication

Page 11: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

11

Multiple Antenna Diversities

•Receive function will operate with•Single Antenna•Multiple Antennas

•Signal Degradation Factors•Distance•Atmosphere•Barrier

•Multiple-path propagation•Decrease the signal strength•Use multiple antennas (diversity) to improve the

received signal

Page 12: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

12

IEEE 802.11 PHY Layer

•FHSS Physical Layer

•DSSS Physical Layer

•Infrared (IR) Physical Layer

Page 13: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

13

FHSS Physical Layer

•Low cost

•Low power consumption

•Most tolerant to noise

•Low potential data rate

•Medium range (< DSSS)

Page 14: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

14

FHSS Architecture

•FHSS PLCP Sublayer

•FHSS PMD Sublayer

•Primitives

Page 15: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

15

FHSS PLCP frame

Start FrameDelimiter

PLW PSFHeaderErrorCheck

Whitened PSDU

80 bits 16 bits 12 bits 4 bits 16 bits 0-4095 Octets

SYNC

0 & 1 alternating : synchronization purpose

PSDU Length word

0000110010111101: define the beginning of a frame

16-bit CRC

Payload (MPDU)Reduce DC bias, scramble

PLCP Signaling Field: data rate (1- 4.5 Mbps)

PLCP Preamble PLCP Header

PSDU=PLCP Service Data Unit

Page 16: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

16

FHSS PMD

•Perform actual Tx/Rx of PPDU by hopping between channel (hopping sequence)

•Provides FHSS modulation/demodulation

Page 17: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

17

FHSS PMD Service Primitives

PLCP PMD PMD PLCP Description

PMD_TXRX.request Set Tx/Rx mode

PMD_PA_RAMP.request Set Ramp up/down Tx power

PMD_ANTSEL.request Select antenna (1..N)

PMD_PWRMGMT.request

Put radio in sleep mode

PMD_TXPWRLVL.requestPMD_FREQ.request

Select power level Tx Freq (channel ID)

PMD_DATA.request PMD_DATA.indicate Transfer Data

PMD_RSSI.indication Signal Strength (0-15)

Page 18: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

18

DSSS Physical Layer

•High cost

•High power consumption

•High potential data rate

•More range

Page 19: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

19

DSSS Architecture

•DSSS PLCP Sublayer

•DSSS PMD Sublayer

•Primitives

Page 20: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

20

DSSS PLCP frame

0 & 1 alternating : synchronization purpose

Modulation type: data rate

1111001110100000: define the beginning of a frame

#microsec. To transmit the MPDU

16-bit CRC

Reserved

PLCP Preamble PLCP Header

Start FrameDelimiter

Signal ServiceFrameCheck

SequenceMPDU

128 bits 16 bits 8 bits 8 bits 16 bits

SYNC Length

8 bits

Page 21: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

21

DSSS PMD

•Perform actual Tx/Rx of PPDU

•Provides DSSS modulation/demodulation

Page 22: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

22

DSSS PMD Service Primitives

PLCP PMD PMD PLCP Description

PMD_TXSTART.requestPMD_TXEND.request PMD_TXPWRLVL.request

Start Tx End TxSelect power level

PMD_ANTSEL.request PMD_ANTSEL.indicate

Select antenna (1..N)

PMD_RATE.request PMD_RATE.indicate Select data rate

PMD_ED.request PMD_ED.indicate Energy > Threshold

PMD_DATA.request PMD_DATA.indicate Transfer Data

PMD_RSSI.indicationPMD_SQ.indicatePMD_CS.indicatePMD_CAA.indicate

Signal Strength (0-15)Signal Quality (PN code)Valid 802.11 DSDetect RF as CCA algo.

Page 23: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

23

IR Physical Layer

•Lowest cost•Highest tolerant to RF noise•Lowest range•Need ceiling•More secure•No frequency regulating•No product ?•IrDA: Infrared Data Association Standard

Page 24: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

24

IR Architecture

•IR PLCP Sublayer

•IR PMD Sublayer

Page 25: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

25

IR PLCP frame

Pulse alternating : synchronization purpose

Data rate

1001: define the beginning of a frame

#microsec. To transmit the MPDU

16-bit CRC

Specified for 1 and 2 Mbps

PLCP Preamble PLCP Header

Start FrameDelimiter

DataRate

DC LevelAdjust.

FrameCheck

SequenceMPDU

57-73 slots 4 slots 3 slots 32 slots 16 slots

SYNC Length

16 slots 0-2500 octets

Page 26: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

26

IR PMD

•Mostly use diffused infrared

•Perform actual Tx/Rx of PPDU, translate binary to infrared light

•Provides IR modulation/demodulation

Page 27: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

27

IR PMD

•Noise affects amplitude (not phase) Pulse position reduces interference

•Pulse position modulation :PPM•Vary position of pulse

•For 1 Mbps 16 PPM

•For 2 Mbps 4 PPM

Page 28: 1 Physical Layer ผศ. ดร. อนันต์ ผลเพิ่ม Asst. Prof. Anan Phonphoem, Ph.D. anan@cpe.ku.ac.th anan Computer Engineering Department

28

Pulse Position Modulation

Data bits

16-PPM signal

0000 0000 0000 0000 0001

0001 0000 0000 0000 0010

… …

1000 1000 0000 0000 0000

Data bits

4-PPM signal

00 0001

01 0010

10 0100

11 1000