topic 02: ieee 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot cca – why cca for two...
TRANSCRIPT
![Page 1: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/1.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Topic 02: IEEE 802.15.4
Tuesday 20 Feb 2007
ICTP-ITU School on Wireless Networking for Scientific Applications in Developing Countries
Bhaskaran RamanDepartment of CSE, IIT Kanpur
http://www.cse.iitk.ac.in/users/braman/
![Page 2: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/2.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Outline● What is 802.15.4 ? Other related technologies● 802.15.4 PHY overview● Device classes, network topologies● 802.15.4 MAC● MAC management:
– Starting and maintaining PANs– Association
● Data exchange mechanisms
![Page 3: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/3.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Personal Area Networks (PAN)● WLAN: IEEE 802.11
– Ethernet matching speed– Range: O(100m)
● WPAN:– Low cost– Low power (battery should last several months)– Short range O(10m)– Small size
![Page 4: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/4.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
IEEE 802.15 Series
802.15.1 (Bluetooth)802.15.3 (UWB) 802.15.4 (LR-WPAN)
High data rateM ultimedia applications
M edium rateCell-phones, PDAQoS suited for voice
Low rateIndustrial, residential, medical applicationsLow powerLow cost
ZigBee works hand-in-hand with 802.15.4
![Page 5: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/5.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
802.15.4/ZigBee Architecture
PHY
MAC
Network/Security
Application FrameworkZigBee
802.15.4
![Page 6: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/6.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
802.15.4 PHY
Source: IEEE 802.15.4 specification
1 channel10 channels
16 channels
![Page 7: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/7.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
802.15.4 Device Classes● Full Function Device (FFD)
– Can act as PAN “coordinator”– Can talk to any other device
● Reduced Function Device (RFD)– Cannot be a “coordinator”– Can talk only to FFD– Very simple implementation
![Page 8: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/8.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Network TopologiesStar network Peer-to-peer network
PAN Coordinator (FFD)
Full Function Device (FFD)
Reduced Function Device (RFD)
![Page 9: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/9.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Outline● What is 802.15.4 ? Other related technologies● 802.15.4 PHY overview● Device classes, network topologies● 802.15.4 MAC● MAC management:
– Starting and maintaining PANs– Association
● Data exchange mechanisms
![Page 10: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/10.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Optional Beacons● A PAN can be beacon-enabled or non-beacon-
enabled– Decided by the coordinator– Mechanism for power saving (if required)
● Beacon enabled ==> periodic beacons
![Page 11: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/11.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Superframe Structure
Source: IEEE 802.15.4 specification
Guaranteed Time-Slot
![Page 12: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/12.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Superframe Structure (Continued)
Source: IEEE 802.15.4 specification
Beacon Interval (BI) can be a multiple of the Superframe Duration (SD)
![Page 13: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/13.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Superframe Structure: Remarks● CAP, then CFP● Superframe = 16 slots (slot=60 symbols when SO=0)● A minimum of 440 symbols for CAP● Maximum of 7 GTS allocations● A GTS may occupy more than one slot● All GTS tx must end before start of beacon tx● All tx in CAP must end before CFP (or beacon)● ACKs are optional
– Requirement specified in a data packet
![Page 14: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/14.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
CSMA Algorithm● Called slotted CSMA in beaconed PANs● Unslotted CSMA in non-beaconed PANs● But both use “units” of time (“slots” in 802.11
terminology)– aUnitBackoffPeriod: 20 symbols by default
● In beaconed PANs, the first backoff is aligned with the start of the super frame
![Page 15: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/15.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
CSMA: Variables Used● BE (Backoff Exponent): backoff delay is for
random[0,2^BE) units of time● CW (Contention Window): the number of units to
perform CCA (Clear Channel Assessment) after random backoff– Warning: do not confuse with 802.11 terminology
● NB: Number of Backoffs so far– Initialized to 0
![Page 16: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/16.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Slotted CSMA
NB=0, CW=2,BE=minBE
R=random[0, 2^BE)
Backoff forR units
Locate backoffperiod boundary
CCA onbackoff period
boundary
NB++, CW=2,BE=min(BE+1,maxBE)
NB>limit?
CW=CW-1
CW=0?
No
Failure
Yes
No
Success
Yes
Default values: minBE=3, maxBE=5, limit=4
Idle
Busy
![Page 17: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/17.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Differences from 802.11 CSMA● Have to finish by a specific time
– Otherwise continue random delay in next superframe● 802.11 has per-delay-slot CCA
– Why CCA for two units in 802.15.4?● No limit on number of retries in 802.11● During init: BE=min(2,minBE) possible
– If device is battery constrained– Allows device to save power by prioritizing its tx
![Page 18: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/18.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Unslotted CSMA (Differences)
NB=0, CW=2,BE=minBE
R=random[0, 2^BE)
Backoff forR units
Locate backoffperiod boundary
CCA onbackoff period
boundary
NB++, CW=2,BE=min(BE+1,maxBE)
NB>limit?
CW=CW-1
CW=0?
No
Failure
Yes
No
Success
Yes
Idle
Busy
![Page 19: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/19.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Outline● What is 802.15.4 ? Other related technologies● 802.15.4 PHY overview● Device classes, network topologies● 802.15.4 MAC● MAC management:
– Starting and maintaining PANs– Association
● Data exchange mechanisms
![Page 20: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/20.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Scanning and PAN Creation● Scanning procedures: active, passive● Active scan:
– Send beacon request– A beaconed PAN coordinator need not respond to the
request (periodic beacon will suffice)– A non-beaconed PAN coordinator will respond with a
beacon● Orphan scan: orphan notification command sent
by device to a coordinator● A new PAN started only after an active scan
– New PAN id is chosen (collision possible)
![Page 21: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/21.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
PAN id Collision● Detection by coordinator:
– On receiving a beacon frame with same PAN id– On receiving a PAN id collision notification
● Detection by device:– On receiving conflicting information
● Resolution:– Coordinator will perform active scan– Select new PAN id– Broadcast coordinator realignment message
![Page 22: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/22.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Association● An FFD or RFD can associate with an existing PAN
– After active or passive scan● Association request + ack● Association response + ack
![Page 23: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/23.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Data Transmission to Coordinator (Beaconed PAN)
Coordinator Device
Beacon
Data
ACK (optional)
● Data uses slotted CSMA
● ACK does not use CSMA– Optional ACK– Requirement is
indicated in the data packet
![Page 24: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/24.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Data Transmission to Coordinator (non-Beaconed PAN)
Coordinator Device
Data
ACK (optional)
● Data uses unslotted CSMA
● ACK does not use CSMA– Optional ACK– Requirement is
indicated in the data packet
![Page 25: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/25.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Data Transmission from Coordinator (Beaconed PAN)
Coordinator Device
Beacon
Data Request
ACK (optional)
● Presence of downlink data is indicated in beacon
● Whenever device wakes up, it requests for data
● Data removed from coordinator queue on ACK
Data
ACK
![Page 26: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/26.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Data Transmission from Coordinator (non-Beaconed PAN)
Coordinator Device
Data Request
ACK
● No data pending at coordinator ==> send data of length zero
Data
ACK
![Page 27: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/27.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Peer-to-peer Data Transfers● Unslotted CSMA or using synchronization
– Synchronization specification beyond the scope of 802.15.4
![Page 28: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/28.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Concept of Primitives
● A network layer provides a service which is used by a higher layer
Service user Service provider Service user
RequestIndicationResponse
Confirm
![Page 29: Topic 02: IEEE 802.15€¦ · 20/02/2007 · 802.11 has per-delay-slot CCA – Why CCA for two units in 802.15.4? No limit on number of retries in 802.11 During init: BE=min(2,minBE)](https://reader034.vdocuments.us/reader034/viewer/2022050411/5f88168953a0de47465d90b5/html5/thumbnails/29.jpg)
20 Feb 2007 Bhaskaran Raman, Dept. of CSE, IIT Kanpur Topic 02
Summary● 802.15.4: IEEE standard for embedded wireless
(sensor) applications– PHY + MAC– MAC has CSMA/CA as well as GTS– Good support for low-power devices