ch04-MAC Protocols in WSNs
ch04-MAC Protocols in WSNs
Content
Chapter 4: MAC protocols for WSNs
Low-power link
Robust communication
Radio Duty Cycling
Synchronized and Asynchronized Protocols
B-MAC, X-MAC, ContikiMAC
Tran
Net
Adaptation
Sample Phase
Phy
In a nutshell
TX
MAC Protocol
MAC protocol is to ensure that the channel
can be accessed by multiple users, dealing
with the situation of interference.
Has a direct bearing on how reliably and
efficiently data can be transmitted
Long battery life
MAC protocol design for WSNs:
Energy-efficient in sense of achieved throughput
Robust
As simple as possible
MAC Caution
The idle listen problem is often associated with Media
Access Control (MAC) protocols,
TDMA, CSMA, …
but MACs provide arbitration among multiple
transmitters attempting to utilize a shared medium
simultaneously.
Reduce Contention and associated loss.
May involve scheduling (TDMA) or transmission detection
(CSMA)
The problem here is the opposite.
Most of the time, nothing is transmitting.
Avoid listening when there is nothing to hear.
Scheduling and detection are involved, but to determine when
to turn on receiver, rather than when to turn off transmission.
You need Media Access Control, but that is not enough
Dept. of Telecoms Engineering 10
Design and Development of IoT Applications 16-Sep-24
Low Power
Active Active
* System design
* Leakage (~RAM)
* Nobody fools
mother nature
Overhearing
Receiving packets that are not destined to the
node
Interception, waste of energy in receiving,
error responding will cause potential collision
overhearing
Tx Rx
data
overhearing
Traffic Pattern
Local broadcast
Schedule exchange/update between neighbours
Omni-directional transmission is desired
Duty cycle
Duty cycling is a widely used mechanism in
wireless sensor networks.
Reducing energy consumption due to idle
listening.
This mechanism also introduces additional
latency in packet delivery.
Active Active
Telos: Enabling Ultra-Low Power Wireless Research, Polastre, Szewczyk, Culler, IPSN/SPOTS 2005
Dept. of Telecoms Engineering 16
Design and Development of IoT Applications 16-Sep-24
Time
Time
Listen Receive
~20 mA ~20 mA x 2-6 ms
Time
Time
Listen Receive
~20 mA ~20 mA x 2-6 ms
Disadvantages
Frame exchange delay even if receiver awakes before
preamble ends
Overhearing problem
Preamble latency is expensive for multi-hop routes
listen
channel sniff
Dept. of Telecoms Engineering 22
Design and Development of IoT Applications 16-Sep-24
B-MAC
Uses local schedules
Send preamble that is slightly longer than the sleep period.
Long preamble assures that the neighbor will receive packet.
Suffers from overhearing problem
Transmitting node precedes data packet with preamble
slightly longer than sleep period of receiver.
During awake period, node samples medium & if a preamble
is detected it remains awake to receive the data.
B-MAC Protocol
Rx Check
Receive data
interval
Carrier sense
Tx Long preamble Data transmission
Carrier sense
Tx Long preamble Data transmission
X-MAC
Short preamble
Reduce latency and reduce energy consumption
Target in preamble
Minimize overhearing problem.
Strobed preamble
Reduces latency for the case where destination is awake
before preamble completes.
Reduces per-hop latency and energy
Dynamic duty-cycle algorithm
X-MAC
Strobed preamble
Allowing interruption and wake up faster
Short preamble
Embedded with address information of the target
ContikiMAC
TSCH
Time Slotted, Channel Hopping (TSCH) technology is
the basis for the wireless network of two industrial
standards
HART Foundation (over 200 companies worldwide):
WirelessHART- published 9/07
ISA (over 30,000 members worldwide): ISA100 Committee,
ISA100.11a working group- in working group draft
TSCH has been implemented by multiple companies
on multiple 2.4 GHz IEEE std. 802.15.4 platforms
timeslot
CCA: RX startup, Transmit Packet: Preamble, SFD, RX startup or RX ACK
Tx listen, RX->TX Headers, Payload, CRC TX->RX
RX/TX
turnaround
Timeslot Basics
All devices in the same network synchronize slotframes
All timeslots are contained within a slotframe cycle
Timeslots repeat in time: the slotframe period
Device-to-device communication within a timeslot
includes packet Tx/Rx & ACK Tx/Rx
Configurable option for CCA before transmit in
timeslots
16
17
18
19
20
21
22
23
24
25
26
CA
C
DA
B
BA
BC
E F BE
BF
where:
S is the slotframe size, k the slotframe cycle
nch : number of used channels (16)
t: slot in the slotframe
chOf: channel offset
F is implemented as a look-up-table containing the sets of
available channels
TSCH: frequency
k=
=0
TSCH: Scheduling
The standard only explains how the MAC layer
executes a schedule it does not specify how such a
schedule is built
Centralized Scheduling
a manager node is responsible for building and maintaining
the network schedule
Distributed Scheduling
No central entity
Each node decides autonomously
1,000ms
Link
Neighbor Table Sample Period
Phy
Dept. of Telecoms Engineering 49
Design and Development of IoT Applications 16-Sep-24
Connectivity
Much of the CS work on network protocols
Routing, cluster head formation, topology formation, …
assumes a unit disk model
• If Distance < R, Connectivity = 1, otherwise 0
Summary
Many of the best protocols are opportunistic
Use whatever connectivity occurs
Topology determination and route selection is a
constant and gentle process
Passive monitoring wherever possible
Use every piece of information available to track quality
Concentrate link estimation on the few important
candidates.
Additional network density helps reliability
If the media management is done right