Docsity

Personal Area Network-Wireless Networking-Lecture 10 Slides-Computer Science Engineering, Slides of Wireless Networking

Partial preview of the text

Download Personal Area Network-Wireless Networking-Lecture 10 Slides-Computer Science Engineering and more Slides Wireless Networking in PDF only on Docsity!

CS698T

Wireless Networks:

Principles and Practice

Topic 10

IEEE 802.15.

Bhaskaran Raman,

Department of CSE, IIT Kanpur

http://www.cse.iitk.ac.in/users/braman/courses/wless-spring2007/

Personal Area Networks (PAN)

WLAN: IEEE 802.

– Ethernet matching speed

– Range: O(100m)

WPAN:

– Low cost

– Low power (battery should last several months)

– Short range O(10m)

– Small size

802.15.4/ZigBee Architecture

PHY

MAC

Network/Security

Application Framework

ZigBee

802.15.4 PHY

Source: IEEE 802.15.4 specification

1 channel

10 channels

16 channels

Network Topologies

Star network

Peer-to-peer network

PAN Coordinator (FFD) Full Function Device (FFD) Reduced Function Device (RFD)

Topics in 802.15.4/ZigBee

MAC protocol

Data exchange mechanisms

Starting and maintaining PANs

Routing (ZigBee)

Superframe Structure

Source: IEEE 802.15.4 specification

Guaranteed

Time-Slot

Superframe Structure (Continued)

Source: IEEE 802.15.4 specification

Beacon Interval (BI) can be a multiple of the Superframe Duration (SD)

CSMA Algorithm

Called slotted CSMA in beaconed PANs

Unslotted CSMA in non-beaconed PANs

But both use “ un its” of time (“slots” in 802.

terminology)

– aUnitBackoffPeriod: 20 symbols by default

In beaconed PANs, the first backoff is

aligned with the start of the super frame

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

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.

During init: BE=min(2,minBE) possible

– If device is battery constrained

– Allows device to save power by prioritizing its tx

Unslotted CSMA (Differences)

NB=0, CW=2,

BE=minBE

R=

random[0, 2^BE)

Backoff for

R units

Locate backoff

period boundary

CCA on

backoff period

boundary

NB++, CW=2,

BE=min(BE+1,maxBE)

NB>limit?

CW=CW-

CW=0?

No

Failure

Yes

No

Success

Yes

Idle

Busy

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

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