Professional Documents
Culture Documents
4
Overview
Y.-C. Tseng
CS/NCTU
Industrial
Agricultural
Vehicular
Residential
Medical
monitors
sensors
automation
control
monitors
diagnostics
sensors
INDUSTRIAL
&
COMMERCIAL
CONSUMER
ELECTRONIC
S
TV VCR
DVD/CD
Remote
control
ZigBee
PERSONAL
HEALTH
CARE
consoles
portables
educational
LOW DATA-RATE
RADIO DEVICES
TOYS &
GAMES
HOME
AUTOMATION
PC &
PERIPHERAL
S
mouse
keyboard
joystick
security
HVAC
lighting
closures
Wireless technologies
Range
Meters
GSM
GPRS
EDGE
3G
2000
2003-4
10,000
2005
1,000
802.11b
802.11a/g
ZigBee
100
Bluetooth 2.0
Bluetooth
10
100
WiMedia
Bluetooth 1.5
10
1,000
Hiper
LAN/2
10,000
Bandwidth
kbps
100,000
ZigBee/802.15.4 architecture
ZigBee Alliance
Application
MAC Layer
802.15.4
PHY Layer
ZigBee stack
Hardware
10
11
General characteristics
13
Device
Coordinator
PAN coordinator
Device
14
FFD vs RFD
Any topology
Network coordinator capable
Talks to any other device
15
Star topology
Network
coordinator
Master/slave
Point to point
Tree
Device addressing
18
19
PHY functionalities:
20
868MHz/
915MHz
PHY
Channel 0
868.3 MHz
2.4 GHz
PHY
2.4 GHz
Channels 1-10
902 MHz
Channels 11-26
2 MHz
928 MHz
5 MHz
2.4835 GHz
21
22
Sync Header
Start of
Preamble Packet
Delimiter
4 Octets
1 Octets
PHY Header
Frame Reserve
Length (1 bit)
(7 bit)
1 Octets
PHY Payload
PHY Service
Data Unit (PSDU)
0-127 Bytes
23
24
Superframe
Beacon
Beacon
CAP
CFP
GTS
0
0
10
11
12
GTS
1
13
14
Inactive
15
BI = aBaseSuperframeDuration*2BO symbols
Superframe
starting superframes
synchronizing with other devices
announcing the existence of a PAN
informing pending data in coordinators
In a beacon-enabled network,
26
Superframe
27
Superframe
Each device will be active for 2-(BO-SO) portion of the time, and
sleep for 1-2-(BO-SO) portion of the time
Duty Cycle:
BO-SO
10
50
25
12
6.25
3.125
1.56
0.78
0.39
0.195
< 0.1
28
Communication to a coordinator
In a beacon-enabled network
Communication to a coordinator
In a non beacon-enabled network
29
30
31
32
In slotted CSMA/CA
i.e. the start of first backoff period of each device is aligned with the
start of the beacon transmission
The MAC sublayer shall ensure that the PHY layer commences
all of its transmissions on the boundary of a backoff period
33
NB: number of times that backoff has been taken in this attempt
(if exceeding macMaxCSMABackoff, the attempt fails)
BE: the backoff exponent which is determined by NB
CW: contention window length, the number of clear slots that
must be seen after each backoff
need 2 CCA to
ensure no
collision
35
36
Existing
session
CCA
New
transmitter
Backoff
end here
New
transmitter
CCA
Backoff
end here
Detect
an ACK
CCA
Detect
an ACK
37
Existing
session
CCA
New
transmitter
Backoff
end here
New
transmitter
Detect
an ACK
CCA
Backoff
end here
Detect
an DATA
38
Existing
session
CCA
New
transmitter
Backoff
end here
New
transmitter
CCA
Detect
an ACK
CCA
Backoff
end here
Detect a
DATA
39
Unslotted
CSMA/CA
only one
CCA
40
41
42
Each device may request one transmit GTS and/or one receive
GTS
43
Device
Association req.
Scan
channel
ACK
Make
decision
Beacon
(pending address)
Wait for
response
Data req.
ACK
Association resp.
ACK
44
45
46
(a)
ZigBee coordinator
(b)
ZigBee router
(c)
ZigBee end device
47
48
Address Assignment
Cskip (d ) 1 Cm Rm Cm Rm Lm d 1
,
1 Rm
if Rm 1 (a)
Otherwise (b)
49
Cskip=31
For node C 0 1
Total:127
32
63
94
125,126
node A
32
Addr = 64,
Cskip = 1
Cm=6
Rm=4
Lm=3
Addr = 92
Addr = 125
Addr = 63,
Cskip = 7
Addr = 30
Addr = 0,
Cskip = 31
Addr = 126
Addr = 1,
Cskip = 7
A
Addr = 32,
Cskip = 7
Addr = 31
Addr = 40,
Cskip = 1
Addr = 33,
Cskip = 1
Addr = 45
C
Addr = 38
Addr = 39
50
In a tree network
In a mesh network:
51
Addr = 64,
Cskip = 1
Cm=6
Rm=4
Lm=3
Addr = 92
Addr = 125
Addr = 63,
Cskip = 7
Addr = 30
Addr = 0,
Cskip = 31
Addr = 126
Addr = 1,
Cskip = 7
Example:
38 45
38 92
A
Addr = 32,
Cskip = 7
Addr = 31
Addr = 40,
Cskip = 1
Addr = 33,
Cskip = 1
Addr = 45
C
Addr = 38
Addr = 39
52
The destination will choose the routing path with the lowest cost and
then send a route reply
53
B
route
route reply
S
te r
eq.
req.
route
rou
req.
route
req.
D
rou
te r
eq.
Unicast
Broadcast
Without routing capacity
54
Cons
Star
1. Easy to synchronize
2. Support low power
operation
3. Low latency
1. Small scale
Tree
1. Route reconstruction is
costly
2. Latency may be quite long
55