802 15 4
802 15 4
802 15 4
4
Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (LR-WPANs)
Outline
Introduction IEEE 802.15.4 PHY IEEE 802.15.4 MAC Overview Topologies Superframe Structure Frame Formatting Data and Management Service Interframe Spacing CSMA-CA Procedure References
Page 2
Introduction 1
Characteristics of LR-WPAN :
Over-the-air data rates of 250 kb/s, 100kb/s, 40 kb/s, and 20 kb/s Star or peer-to-peer operation Allocated 16-bit short or 64-bit extended addresses Optional allocation of guaranteed time slots (GTSs) Carrier sense multiple access with collision avoidance (CSMA-CA) channel access Fully acknowledged protocol for transfer reliability Low power consumption Energy detection (ED) Link quality indication (LQI) 16 channels in the 2450 MHz band, 30 channels in the 915 MHz band, and 3 channels in the 868 MHz band
Page 3
Introduction 2
Upper Layers
IEEE 802.15.4 MAC IEEE 802.15.4 868/915 MHz PHY IEEE 802.15.4 2400 MHz PHY
Page 4
Channel 0
Channels 1-10
2 MHz
868.3 MHz
902 MHz
928 MHz
Channels 11-26
5 MHz
2.4 GHz
2.4835 GHz
Page 5
Ch. 25 Ch. 26
2405 MHz
2 MHz
2480 MHz
25 MHz Spacing
Ch. 6
Ch. 11
22 MHz 2412 MHz 2425 MHz 2437 MHz 2450 MHz 2462 MHz 2475 MHz
Page 6
Preamble Sequence
PHY Header
6 Bytes
(0.2 ms @ 250 kbps) (1.2 ms @ 40 kbps)
127 Bytes
(< 4.1 ms @ 250 kbps) (< 50.8 ms @ 40 kbps)
Page 7
868MHz/915MHz PHY
Data rate is 20 kbps @ 868 MHz, 40 kbps @ 915 MHz Data modulation is BPSK with differential encoding Spreading code is a 15-chip m-sequence Chip modulation is BPSK with raised-cosine pulse shape ( =1.0) Chip rate is 0.3 Mchip/s at 868 MHz, 0.6 Mchip/s at 915 MHz
Page 8
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
Page 9
Any topology PAN coordinator capable Talks to any other device Implements complete protocol set
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 10
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 11
Star Topology
PAN coordinator
FFD RFD
FFD RFD
Peer-Peer Topology
PAN coordinators
Cluster tree
Page 13
Combined Topology
FFD RFD Communications flow Clustered stars - for example, cluster nodes exist between rooms of a hotel and each room has a star network for control. PAN coordinator
Page 14
15ms * 2n where 0 n 14
Network beacon Beacon extension period Contention period Guaranteed Time Slot Transmitted by PAN coordinator. Contains network information, frame structure and notification of pending node messages. Space reserved for beacon growth due to pending node messages
Page 16
PHY Layer
MAC Protocol Data Unit (MPDU) PHY Service Data Unit (PSDU)
Maximum
4 Types of MAC Frames: Data Frame Beacon Frame Acknowledgment Frame MAC Command Frame
Page 17
3 Security enabled
4 Frame pending
5 Ack. Req.
6 Intra PAN
7-9 Reserved
12-13 Reserved
Beacon Frame
1 Beacon sequence number 4 or 10 Source address information 2 Superframe specification variable GTS fields variable Pending address fields MAC payload variable Beacon payload 2 Frame check sequence MAC footer
MAC header
13 Reserved
Page 19
Command Frame Types Association request Association response Disassociation notification Data request PAN ID conflict notification
1 4 to 20 1
MAC payload
Data Frame
Octets:2 Frame control 1 Data sequence number 4 to 20 Address information variable Data payload MAC Payload 2 Frame check sequence MAC footer
MAC header
Acknowledgement Frame
Octets:2 Frame control 1 Data sequence number 2 Frame check sequence MAC footer
Page 21
MAC header
MCPS
MLME
MAC
PD
PHY data
PD-SAP
PLME-SAP
PHY
PLME
Physical Medium
Page 22
Page 23
PLME-CCA clear channel assessment PLME-ED - energy detection PLME-GET / -SETretrieve/set PHY PIB parameters PLME-TRX-ENABLE enable/disable transceiver
Page 24
MCPS-DATA exchange data packets between MAC and PHY MCPS-PURGE purge an MSDU from transaction queue MLME-ASSOCIATE/DISASSOCIATE network association MLME-SYNC / SYNC-LOSS - device synchronization MLME-SCAN - scan radio channels MLME-GET / -SETretrieve/set MAC PIB parameters MLME-START / BEACON-NOTIFY beacon management MLME-POLL - beaconless synchronization MLME-GTS - GTS management MLME-ORPHAN - orphan device management MLME-RX-ENABLE - enabling/disabling of radio system
Page 25
Request Required
Confirm Required
Indication Required
Response
Page 26
Originator MAC
MCPS-DATA.indication MCPS-DATA.confirm
Page 27
Beacon frame
Data request
MCPS-DATA.indication MCPS-DATA.confirm
Page 28
Indication
Response
Optional for RFD Optional for RFD Optional for RFD Required Required Required Optional for RFD Optional for RFD Required Required Optional for RFD Optional for RFD
aResponseWaitTime MLME-ASSOCIATE.response
Originator MAC
Recipient MAC
MLME-DISASSOCIATE.request
Page 31
Acknowledgment (FP = 0)
MLME-POLL.confirm
Device MAC
Coordinator MAC
Coordinator MAC
ScanDuration Beacon
Set 2 Channel
nd
MLME-SCAN.confirm
Page 34
Coordinator MAC
nd
MLME-SCAN.confirm
Page 35
Page 36
For frames aMaxSIFSFrameSize use short inter-frame spacing (SIFS) For frames > aMaxSIFSFrameSize use long inter-frame spacing (LIFS)
Page 37
Y Channel idle? N
CW = CW - 1
NB> macMaxCSMABackoffs ?
N CW = 0? Y Success
Page 38
Y Failure
Perform CCA
NB> macMaxCSMABackoffs ?
Page 39
Failure Success
References
IEEE Standard for Part 15.4: Wireless Medium Access Control Layer (MAC) and Physical Layer (PHY) specifications for Low Rate Wireless Personal Area Networks (LR-WPANs), IEEE Std 802.15.4-2006 Jose Gutierrez, IEEE 802.15.4 Tutorial, Available: www.ieee802.org/15/pub/2003/Jan03/03036r0P802-15_WG-802-15-4TG4-Tutorial.ppt Marco Naeve (4 January, 2003), IEEE 802.15.4 MAC Overview, Available: ftp://ieee:wireless@ftp.802wirelessworld.com/15/04/15-040218-01-004a-ieee802-15-4-mac-overview.ppt
Page 40