45
IEEE 802.15.4

IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Embed Size (px)

Citation preview

Page 1: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

IEEE 802.15.4

Page 2: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 2

Content

• Overview• Topologies• Superframe structure• Frame formatting• Data service• Management service• Interframe spacing• CSMA procedure

Page 3: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

3

Introduction

• Until recently the main concentration In wireless was on high throughput.

• Some applications for home automation, security, agriculture,industrial etc. have relaxed throughput requirements with low power consumption and low cost.

• Existing standards are not suitable because of high complexity, power implications and high cost.

Page 4: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

4

Applications Home automation heating, ventilation, and air conditioning, security, lighting, and

the control of objects.

Industrial detecting emergency situations, monitoring machines

Automotive

automotive sensing, such as tire pressure monitoring;

Agriculture sensing of soil moisture, pesticide, herbicide, and pH levels.

Others Controlling consumer electronics, PC peripherals etc.

Data rate needed ranges from 115.2 kb/s to less than 10 kb/s.

Page 5: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

5

IEEE 802.15.4 MAC

Upper Layers

IEEE 802.15.4 SSCS IEEE 802.2LLC, Type I

IEEE 802.15.42400 MHz

PHY

IEEE 802.15.4868/915 MHz

PHY

802.15.4 Architecture

Page 6: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 6

Protocol Drivers

· Extremely low cost

· Ease of installation

· Reliable data transfer

· Short range operation

• Reasonable battery life

Page 7: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 7

802.15.4 Overview

• Star and peer-to-peer topologies• Optional frame structure• Association• CSMA-CA channel access mechanism• Packet validation and message rejection• Optional guaranteed time slots• Guaranteed packet delivery• Facilitates low-power operation• Security

Page 8: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 8

IEEE 802.15.4 Device Classes• Full function device (FFD)

– Any topology– PAN coordinator capable– Talks to any other device– Implements complete protocol set

• Reduced function device (RFD)– Limited to star topology or end-device in a peer-to-peer

network. – Cannot become a PAN coordinator– Very simple implementation– Reduced protocol set

Page 9: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 9

IEEE 802.15.4 Definitions

• Network Device: An RFD or FFD implementation containing an IEEE 802.15.4 medium access control and physical interface to the wireless medium.

• Coordinator: An FFD with network device functionality that provides coordination and other services to the network.

• PAN Coordinator: A coordinator that is the principal controller of the PAN. A network has exactly one PAN coordinator.

Page 10: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 10

Low-Power Operation

• Duty-cycle control using superframe structure– Beacon order and superframe order– Coordinator battery life extension

• Indirect data transmission• Devices may sleep for extended period over

multiple beacons• Allows control of receiver state by higher layers

Page 11: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

11

Typical Network Topologies

Page 12: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 12

Star Topology

FFD

RFD Communications flow

Master/slave

PANcoordinator

Page 13: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 13

Peer-Peer Topology

Communications flow

Point to point Cluster tree

FFD

RFD

PANcoordinators

Page 14: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 14

Combined Topology

FFD

RFD

Communications flow

Clustered stars - for example,cluster nodes exist between roomsof a hotel and each room has a star network for control.

Page 15: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

15

Technical Characteristics

• Physical layer– 20 kbps over 1 channel @ 868-868.6 MHz– 40 kbps over 10 channels @ 905 – 928 MHz – 250 kbps over 16 channels @ 2.4 GHz

• MAC protocol– Single channel at any one time– Combines contention-based and schedule-based

schemes– Asymmetric: nodes can assume different roles

Page 16: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

16

Physical Frequencies and Channels

868MHz / 915MHz PHY

2.4 GHz

868.3 MHz

Channel 0 Channels 1-10

Channels 11-26

2.4835 GHz

928 MHz902 MHz

5 MHz

2 MHz

2.4 GHz PHY

Page 17: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

17

• 2.4 GHz PHY• 250 kb/s (4 bits/symbol, 62.5 kBaud)• Data modulation is 16-ary orthogonal modulation• 16 symbols are ~orthogonal set of 32-chip PN codes• Chip modulation is MSK at 2.0 Mchips/s

• 868MHz/915MHz PHY• Symbol Rate

• 868 MHz Band: 20 kb/s (1 bit/symbol, 20 kBaud)• 915 MHz Band: 40 kb/s (1 bit/symbol, 40 kBaud)

• Data modulation is BPSK with differential encoding • Spreading code is a 15-chip m-sequence • Chip modulation is BPSK at

• 868 MHz Band: 300 kchips/s• 915 MHz Band: 600 kchips/s

IEEE 802.15.4 PHY OverviewModulation/Spreading

Page 18: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

18

• Transmit Power• Capable of at least 1 mW

• Transmit Center Frequency Tolerance• 40 ppm

• Receiver Sensitivity (Packet Error Rate <1%)• -85 dBm @ 2.4 GHz band• -92 dBm @ 868/915 MHz band

• RSSI Measurements• Packet strength indication• Clear channel assessment • Dynamic channel selection

IEEE 802.15.4 PHY OverviewCommon Parameters

Page 19: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

19

IEEE 802.15.4 PHY OverviewPacket Structure

PreambleStart ofPacket

Delimiter

PHYHeader

PHY ServiceData Unit (PSDU)

PHY Packet Fields• Preamble (32 bits) – synchronization • Start of Packet Delimiter (8 bits)• PHY Header (8 bits) – PSDU length• PSDU (0 to 1016 bits) – Data field

6 Octets 0-127 Octets

Page 20: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

20

IEEE 802.15.4 MAC OverviewGeneral Frame Structure

Payload

PH

Y L

ayer

MA

CLa

yer

MAC Header(MHR)

MAC Footer(MFR)

MAC Protocol Data Unit (MPDU)

MAC Service Data Unit(MSDU)

PHY Header(PHR)

Synch. Header(SHR)

PHY Service Data Unit (PSDU)

4 Types of MAC Frames:

• Data Frame

• Beacon Frame

• Acknowledgment Frame

• MAC Command Frame

Page 21: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

21

IEEE 802.15.4 MAC overview

• All devices have IEEE addresses• Short addresses can be allocated• Addressing modes:

– Network + device identifier (star)– Source/destination identifier (peer-peer)

Page 22: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 22

Optional Frame Structure

15ms * 2n

where 0 n 14

GTS 3 GTS 2

Network beacon

Transmitted by PAN coordinator. Contains network information,frame structure and notification of pending node messages.

Beaconextension

periodSpace reserved for beacon growth due to pending node messages

Contentionperiod

Access by any node using CSMA-CA

GuaranteedTime Slot

Reserved for nodes requiring guaranteed bandwidth [n = 0].

GTS 1

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15Slot

Battery life extension

Contention Access Period Contention Free Period

Page 23: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 23

Optional Frame Structure

• Superframe may have inactive period

15ms * 2BO

where SO BO 14

15ms * 2SO

where 0 SO 14

SO = Superframe orderBO = Beacon order

Inactive Period

Page 24: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

24

IEEE 802.15.4 MAC overview• Star networks: devices are associated with coordinators

– Forming a PAN, identified by a PAN identifier• Coordinator

– Bookkeeping of devices, address assignment, generate beacons– Talks to devices and peer coordinators

• Beacon-mode superframe structure– GTS assigned to devices upon request b

Active period Inactive period

Contention access period

Guaranteed time slots (GTS)

Beacon

Coordinator Device

Beacon

Data request

Acknowledgement

Data

Acknowledgement

Page 25: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 25

General MAC Frame Format

Octets:2 1 0/2 0/2/8 0/2 0/2/8 variable 2Destination

PAN identifier

Destination address

Source PAN

identifier

Source address

MAC payload

MAC footer

Frame check

sequence

MAC header

Addressing fields

Frame control

Sequence number

Frame payload

Bits: 0-2 3 4 5 6 7-9 10-11 12-13 14-15

Frame typeSequrity enabled

Frame pending

Ack. Req. Intra PAN ReservedDest.

addressing mode

ReservedSource

addressing mode

Frame control field

Page 26: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 26

Beacon Frame Format

Bits: 0-3 4-7 8-11 12 13 14 15Beacon

orderSuperframe

orderFinal CAP

slotBattery life extension

ReservedPAN

coordinatorAssociation

permit

Octets:2 1 4 or 10 2 variable variable variable 2

MAC footer

Frame check

sequence

MAC header

Source address information

MAC payload

Superframe specification

GTS fields

Pending address

fields

Frame control

Beacon sequence number

Beacon payload

Page 27: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 27

MAC Command Frame

• Command Frame Types– Association request– Association response– Disassociation notification– Data request– PAN ID conflict notification

– Orphan Notification– Beacon request– Coordinator realignment– GTS request

Octets:2 1 4 to 20 1 variable 2

MAC footer

Frame check

sequence

Frame control

Data sequence number

Address information

MAC header MAC payload

Command type

Command payload

Page 28: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 28

Data Frame Format

Acknowledgement Frame FormatOctets:2 1 2

MAC footer

Frame check

sequence

MAC header

Frame control

Data sequence number

Octets:2 1 4 to 20 variable 2

MAC PayloadMAC

footer

Data payloadFrame check

sequence

MAC header

Frame control

Data sequence number

Address information

Page 29: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 29

Data Service

• Data transfer to neighboring devices– Acknowledged or unacknowledged– Direct or indirect– Using GTS service

• Maximum data length (MSDU) aMaxMACFrameSize (102 bytes)

Page 30: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 30

Data TransferMessage Sequence Diagram

Originator

MAC Recipient

MAC

Data frame

Acknowledgment (if requested)

Originator higher layer

Recipient higher layer

MCPS-DATA.request

MCPS-DATA.indication

MCPS-DATA.confirm

Page 31: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 31

Indirect Data TransferMessage Sequence Diagram

Coordinator

MAC Device MAC

Data frame

Acknowledgment

Coordinator higher layer

Device higher layer

MCPS-DATA.request (indirect)

MCPS-DATA.indication

MCPS-DATA.confirm

Beacon frame

Data request

Acknowledgement

Page 32: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 32

Passive Scan

Device MAC

Coordinator MAC

Device higher layer

MLME-SCAN.request

MLME-SCAN.confirm

ScanDuration Beacon

Set 1st Channel

Set 2nd Channel

Page 33: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 33

Active Scan

Device MAC

Coordinator MAC

Beacon request

Device higher layer

MLME-SCAN.request

MLME-SCAN.confirm

ScanDuration Beacon

Set 1st Channel

CSMA

Set 2nd Channel

Beacon request

Page 34: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 34

OrphaningMessage Sequence Diagram

= Coordinator

MAC Device MAC

Coordinator realignment

Orphan notification

Coordinator higher layer

MLME-ORPHAN.response

MLME-COMM-STATUS.indication

MLME-ORPHAN.indication

Page 35: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 35

Inter-frame Spacing

For frames ≤ aMaxSIFSFrameSize use short inter-frame spacing (SIFS)For frames > aMaxSIFSFrameSize use long inter-frame spacing (LIFS)

Long frame ACK Short frame ACK

tack LIFS tack SIFS

Acknowledged transmission

Long frame Short frame

LIFS SIFS

Unacknowledged transmission

aTurnaroundTime tack (aTurnaroundTime (12 symbols) + aUnitBackoffPeriod (20 symbols))LIFS > aMaxLIFSPeriod (40 symbols)SIFS > aMacSIFSPeriod (12 symbols)

Page 36: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 36

Slotted CSMA Procedure

NB = 0, CW = 0

Battery lifeextension?

BE = macMinBE

BE = lesser of(2, macMinBE)

Locate backoffperiod boundary

Delay forrandom(2BE - 1) unit

backoff periods

Perform CCA onbackoff period

boundary

Channel idle?

CW = 2, NB = NB+1,BE = min(BE+1, aMaxBE)

CW = CW - 1

CW = 0?NB>

macMaxCSMABackoffs?

Failure Success

Slotted CSMA

Y

Y Y

Y

N

N

N

N

Used in beacon enabled networks.

Page 37: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

Slide 37

Un-slotted CSMA Procedure

NB = 0,BE = macMinBE

Delay forrandom(2BE - 1) unit

backoff periods

Perform CCA

Channel idle?

NB = NB+1,BE = min(BE+1, aMaxBE)

NB>macMaxCSMABackoffs

?

Failure Success

Un-slotted CSMA

Y

Y

N

N

Used in non-beacon networks.

Page 38: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

38

802.15.4 Architecture

IEEE 802.15.4 MAC

Applications

IEEE 802.15.4

2400 MHz

PHY

IEEE 802.15.4

868/915 MHz

PHY

• Network Routing• Address translation• Packet Segmentation

• Profiles

ZigBee

Page 39: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

39

ZigBee• Relation to 802.15.4 similar to Bluetooth / 802.15.1

• Pushed by Chipcon (now TI), ember, freescale (Motorola), Honeywell, Mitsubishi, Motorola, Philips, Samsung…

• More than 260 members– about 15 promoters, 133 participants, 111 adopters– must be member to commercially use ZigBee spec

• ZigBee platforms comprise– IEEE 802.15.4 for layers 1 and 2– ZigBee protocol stack up to the applications

Page 40: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

40

ZigBee Stack Architecture

Page 41: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

41

Typical ZigBee-Enabled Device Design

Typical design consist of RF IC and 8-bit microprocessor with peripherals connected to an application sensor or actuators

Page 42: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

42

Wireless Technology Comparison Chart

356 mA

34KB /14KB

Page 43: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

43

Competing/Similar Technologies• Bluetooth

– http://www.bluetooth.org – http://www.bluetooth.com

• X10– Powerline protocol first introduced in the 1970's.– http://www.x10.com/technology1.htm

• Z-wave– Proprietary protocol for wireless home control networking.– http://www.z-wavealliance.com/

• INSTEON– Peer-to-peer mesh networking product that features a hybrid

radio/powerline transmission– http://www.insteon.net

• nanoNET– Proprietary set of wireless sensor protocols, designed to compete with

ZigBee. – http://www.nanotron.com/

Page 44: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

44

Bluetooth vs IEEE 802.15.4.

Bluetooth based WPAN• Few devices • Data range is 10m to

100m• Data rate is nearly 1Mb/s• Power consumption is a

low.• Battery life is low.• Star only.

IEEE 802.15.4 LR-WPAN• Many devices• Data range is nearly 10m• Data rate is 20 kb/s,40kb/s,250kb/s.• Power consumption is ultra low.• Battery lasts years.• peer to peer,Star.

Page 45: IEEE 802.15.4. Slide 2 Content Overview Topologies Superframe structure Frame formatting Data service Management service Interframe spacing CSMA procedure

45

Summary• 802.15.4: Low-Rate, Very Low-Power

– Low data rate solution with multi-month to multi-year battery life and very low complexity

– Potential applications are sensors, interactive toys, smart badges, remote controls, and home automation

– Data rates of 20-250 kbit/s, latency down to 15 ms – Master-Slave or Peer-to-Peer operation– Up to 254 devices or 64516 simpler nodes– Support for critical latency devices, such as joysticks – CSMA/CA channel access (data centric), slotted (beacon) or unslotted– Automatic network establishment by the PAN coordinator – Dynamic device addressing, flexible addressing format– Fully handshaked protocol for transfer reliability – Power management to ensure low power consumption – 16 channels in the 2.4 GHz ISM band, 10 channels in the 915 MHz US ISM band

and one channel in the European 868 MHz band– Basis of the ZigBee technology – www.zigbee.org