Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
IEEE 15-04-0218-01-004a
Project: IEEE P802.15 Working Group for Wireless Personal Area Networks (WPANs)
Submission Title: [IEEE 802.15.4 MAC Overview]
Date Submitted: [10 May, 2004]
Source: [Marco Naeve] Company [Eaton Corporation]
Address [4201 North 27th Street, Milwaukee, WI 53216, USA]
Voice:[414-449-7270], FAX: [414-449-6131], E-Mail:[marconaeve@eaton.com]
Re: [Reflector discussions.
References: IEEE 802.15.4-2003 standard, 03036r0P802-15_WG-802-15-4-TG4-Tutorial.ppt by Jose
Gutierrez, and 03057r0P802-15_TG4-Specification_summary.ppt by Pat Kinney, Paul Gorday, Phil
Jamieson]
Abstract: [This document presents an overview of the IEEE 802.15.4 MAC sub-layer as currently
specified in the 2003 version of the standard.]
Purpose: [For informative purpose for the IEEE 802.15.4a task group.]
Notice: This document has been prepared to assist the IEEE P802.15. It is offered as a basis for
discussion and is not binding on the contributing individual(s) or organization(s). The material in this
document is subject to change in form and content after further study. The contributor(s) reserve(s) the right
to add, amend or withdraw material contained herein.
Release: The contributor acknowledges and accepts that this contribution becomes the property of IEEE
and may be made publicly available by P802.15.
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Content
Overview
Topologies
Superframe structure
Frame formatting
Data service
Management service
Interframe spacing
CSMA procedure
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
802.15.4 Architecture
Upper Layers
IEEE 802.2
LLC, Type I
Slid
IEEE 802.15.4
2400 MHz
PHY
05 2004
IEEE 15-04-0218-01-004a
Protocol Drivers
Extremely low cost
Ease of installation
Reliable data transfer
Short range operation
Reasonable battery life
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
MAC Overview
Slid
05 2004
IEEE 15-04-0218-01-004a
Any topology
PAN coordinator capable
Talks to any other device
Implements complete protocol set
Slid
05 2004
IEEE 15-04-0218-01-004a
Slid
05 2004
IEEE 15-04-0218-01-004a
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
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Star Topology
PAN
coordinator
Master/slave
FFD
Communications flow
RFD
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Peer-Peer Topology
PAN
coordinators
Point to point
Cluster tree
FFD
Communications flow
RFD
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Combined Topology
FFD
Communications flow
RFD
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
GTS 3
GTS 2
GTS 1
10
11
12
13
14
15
15ms * 2n
where 0 n 14
Network
beacon
Beacon
extension
period
Contention
period
Guaranteed
Time Slot
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
15ms * 2SO
where 0 SO 14
15ms * 2BO
where SO BO 14
SO = Superframe order
BO = Beacon order
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
0/2
0/2/8
0/2
Destination
Source
Destination
Sequence
PAN
PAN
address
number
identifier
identifier
Addressing fields
0/2/8
Source
address
MAC header
Bits: 0-2
7-9
Frame type
Sequrity
enabled
Frame
pending
Ack. Req.
Intra PAN
Reserved
variable
Frame
payload
Frame
check
sequence
MAC
payload
MAC footer
10-11
Dest.
addressing
mode
12-13
Reserved
14-15
Source
addressing
mode
Slid
05 2004
IEEE 15-04-0218-01-004a
4 or 10
variable
variable
Frame
control
Beacon
sequence
number
Source address
information
Superframe
specification
GTS
fields
Pending
address
fields
MAC header
Bits: 0-3
Beacon
order
Submissio
n
4-7
8-11
Superframe Final CAP
order
slot
MAC payload
12
Battery life
extension
Slid
13
Reserved
variable
Beacon payload
Frame
check
sequence
MAC
footer
14
15
PAN
Association
coordinator
permit
05 2004
IEEE 15-04-0218-01-004a
4 to 20
Data
Address Command
sequence
information
type
number
MAC header
Association request
Association response
Disassociation notification
Data request
PAN ID conflict notification
Submissio
n
Command payload
Frame
check
sequence
MAC payload
variable
Slid
MAC
footer
Orphan Notification
Beacon request
Coordinator realignment
GTS request
Marco Naeve, Eaton Cor
05 2004
IEEE 15-04-0218-01-004a
1
Data
sequence
number
4 to 20
variable
Address
information
Data payload
MAC header
MAC Payload
2
Frame
check
sequence
MAC
footer
1
2
Data
Frame
Frame
sequence
check
control
number sequence
MAC
MAC header
footer
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Data Service
Data transfer to neighboring devices
Acknowledged or unacknowledged
Direct or indirect
Using GTS service
Maximum data length (MSDU)
aMaxMACFrameSize (102 bytes)
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Request
Confirm
Indication
MCPS-DATA
Required
Required
Required
MCPS-PURGE
Submissio
n
Response
Slid
05 2004
IEEE 15-04-0218-01-004a
Data Transfer
Message Sequence Diagram
Originator
higher layer
Originator
MAC
Recipient
MAC
MCPS-DATA.request
Recipient
higher layer
Data frame
Acknowledgment (if requested)
MCPS-DATA.indication
MCPS-DATA.confirm
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Coordinator
MAC
Device
MAC
Device
higher layer
MCPS-DATA.request
(indirect)
Beacon frame
Data request
Acknowledgement
Data frame
Acknowledgment
MCPS-DATA.indication
MCPS-DATA.confirm
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Management Service
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Request
Confirm
MLME-GET
Required
Required
MLME-SET
Required
Required
MLME-ASSOCIATE
Required
Required
MLME-DISASSOCIATE
Required
Required
MLME-GTS
Required
Required
Optional for RFD Optional for RFD
Required
Required
MLME-RX-ENABLE
Required
MLME-SYNC
Required
Required
MLME-SYNC-LOSS
MLME-RESET
Submissio
n
Required
Required
MLME-ORPHAN
MLME-START
Required
MLME-COMM-STATUS
MLME-SCAN
Response
MLME-BEACON-NOTIFY
MLME-POLL
Indication
Required
Required
Required
Slid
05 2004
IEEE 15-04-0218-01-004a
Association
Message Sequence Diagram
Device
higher layer
Device
MAC
MLME-ASSOCIATE.request
Coordinator
MAC
Coordinator
higher layer
Association request
Acknowledgment
MLME-ASSOCIATE.indication
aResponseWaitTime
MLME-ASSOCIATE.response
Data request
Acknowledgment
Association response
Acknowledgement
MLME-ASSOCIATE.confirm
Submissio
n
MLME-COMM-STATUS.indication
Slid
05 2004
IEEE 15-04-0218-01-004a
Disassociation
Message Sequence Diagram
=
Originator
higher layer
Originator
MAC
Recipient
MAC
Recipient
higher layer
MLME-DISASSOCIATE.request
Disassociation notification
Acknowledgment
MLME-DISASSOCIATE.confirm
Submissio
n
MLME-DISASSOCIATE.indication
Slid
05 2004
IEEE 15-04-0218-01-004a
Data Polling
Message Sequence Chart
Device
higher layer
Device
MAC
Coordinator
MAC
MLME-POLL.request
Data request
Acknowledgment (FP = 0)
MLME-POLL.confirm
Slid
05 2004
IEEE 15-04-0218-01-004a
Data Polling
Message Sequence Chart
Device
higher layer
Device
MAC
Coordinator
MAC
MLME-POLL.request
Data request
Acknowledgment (FP = 1)
Data
Acknowledgement
MLME-POLL.confirm
MCPS-DATA.indication
Slid
05 2004
IEEE 15-04-0218-01-004a
Passive Scan
Device
higher layer
Device
MAC
Coordinator
MAC
MLME-SCAN.request
st
Set 1 Channel
ScanDuration
Beacon
nd
Set 2 Channel
MLME-SCAN.confirm
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Active Scan
Device
higher layer
Device
MAC
Coordinator
MAC
MLME-SCAN.request
st
Set 1 Channel
Beacon request
CSMA
Beacon
ScanDuration
Set 2
nd
Channel
Beacon request
MLME-SCAN.confirm
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Orphaning
Message Sequence Diagram
=
Coordinator
higher layer
Coordinator
MAC
Device
MAC
Orphan notification
MLME-ORPHAN.indication
MLME-ORPHAN.response
Coordinator realignment
MLME-COMM-STATUS.indication
Submissio
n
Slid
05 2004
IEEE 15-04-0218-01-004a
Inter-frame Spacing
Acknowledged transmission
Long frame
ACK
tack
ACK
Short frame
LIFS
tack
SIFS
Unacknowledged transmission
Long frame
Short frame
LIFS
SIFS
Slid
05 2004
IEEE 15-04-0218-01-004a
NB = 0, CW = 0
Battery life
extension?
Perform CCA on
backoff period
boundary
BE = lesser of
(2, macMinBE)
N
BE = macMinBE
Channel idle?
N
Locate backoff
period boundary
Slid
CW = 2, NB = NB+1,
BE = min(BE+1, aMaxBE)
CW = CW - 1
NB>
macMaxCSMABackoffs
?
CW = 0?
Y
Failure
Y
Success
05 2004
IEEE 15-04-0218-01-004a
NB = 0,
BE = macMinBE
Delay for
random(2BE - 1) unit
backoff periods
Perform CCA
Used in non-beacon
networks.
Channel idle?
N
NB = NB+1,
BE = min(BE+1, aMaxBE)
NB>
macMaxCSMABackoffs
?
Y
Failure
Submissio
n
Slid
Success
05 2004
IEEE 15-04-0218-01-004a
Thank you!
Questions
Submissio
n
Slid