5 MAC Protocols
5 MAC Protocols
MAC Protocols
Objectives of MAC Protocols
Collision Avoidance
Energy Efficiency
Scalability
Latency
Fairness
Throughput
Bandwidth Utilization
20
15
Power (mW)
10
* Idle Listening
Contention Window
IFS IFS (Randomized Back-off
Mechanism)
IF IDLE waits to see if the channel remains idle for a time equal to
IFS (Inter-frame spacing). If so, the station may transmit immediately.
Backoff scheme
The station picks up a random number of slots (the initial value of
backoff counter) within a contention window to wait before
transmitting its frame.
DIFS DIFS
PIFS
SIFS Backoff
Medium Busy Window
Next Frame
t
Direct access if
medium is free DIFS
Sender Data
SIFS
Receiver ACK
DIFS
Other Contention W
Stations
t
Waiting Time
Contention
Wireless Sensor Networks Window 25
Akyildiz/Vuran
Problems with CSMA/CA
DATA
A B C
DATA
DATA DATA Tx
A B C inhibited D
Receiver responds with CTS (Clear To Send) after medium has been
idle for SIFS.
RTS
CTS
A CTS B C
DATA
A sends RTS
B sends CTS
C overhears CTS
C inhibits its own transmitter
A successfully sends DATA to B
RTS RTS
A B C Tx not D
CTS Cannot hear CTS inhibited
Tx sets the NAV to the time for which it expects to use the
medium
SIFS SIFS
NAV RTS
CTS
NAV specifies the earliest point at which the station can try to access
the medium
DIFS
Schedule 1
Schedule 2
RTS
CTS CTS
1600
802.11-like protocol
1200
without sleep S-MAC without
1000 periodic
sleep
800
600
400
0 2 4 6 8 10
Message inter-arrival period (traffic load) (second)
(small value heavy traffic load)
Wireless Sensor Networks
Akyildiz/Vuran 69
Experiments
S-MAC consumes much less energy than 802.11-like
protocol without sleeping
Periodic listen interval: 115ms; 10% duty cycle means a frame length for
1.15sec.
10 10
10% duty cycle without
adaptive listen
8 8 10% duty cycle without
adaptive listen
6 6
0
0 2 4 6 8 10
Number of hops
Packet Backoffs
At = a * St + (1 - a) * St-1
where a’s value is assumed to be 0.06 and FIFO queue size of 10.
Idle
Signal Strength
ndicator (RSSI)
rom transceiver
If five samples are taken, and no outlier found => channel busy, take a
random backoff
Noise floor updated when the channel is known to be clear, e.g., just
after packet transmission
Receiver
Preamble sampling Active to receive a message
Lifetime in years
ALWAYS ON
SMAC
BMAC
Traffic
Wireless Sensor Load (bps)
Networks
Akyildiz/Vuran 102
Throughput vs Power Consumption
Low data rates: SMAC is better
Very low duty cycle
Power vs throughput
SMAC: linear
BMAC: sub-linear
Reason: SMAC duty cycle must increase
More active periods, more SYNC periods
Cost of resynchronizing?
BMAC: larger preambles at low throughput,
progressively becoming smaller
N1
S1 Y1
S X1 Encoder Decoder S
N2
S2 X2 Y2 X i Si N i
Encoder
Wireless Yi f i ( X i )
Ni
Sensor ^
Si Xi Encoder Yi
S g Y1;.....; YN
Network
^
NN D E d ( S , S )
SN XN YN
Encoder
S event source Yi the encoded values
Si the samples of this event S at the fi the encoding function
sensor location
(N sensors)
g estimation function
Ni the observation (noise) error s^ estimation of the event at the
Xi the overall observed value of the event sink
Wireless Sensor Networks D distortion function 110
E encoders for the channel to transmit
Akyildiz/Vuran 110
Spatial Correlation Theory
Need
– Noise variance (Sensing board property)
property)
Wireless Sensor Networks
Akyildiz/Vuran 111
Corollaries From Theory
Estimate , and
S (i,j s,i
Correlation coefficient
d (i,j) /1
(i, j) K ( d ) e
d(i,j) – distance between nodes
q1 – correlation parameter
Use S1, S2, S3 … to calculate empirical K(d)
SiS j d (i, j ) /1
K (i, j ) ( d ) e
S
Estimate average q1
Use q1 for further calculations
INS: Find rcorr
Correlation region
Correlation neighbors
Representative Node
2*rcorr
Correlation neighbors
Nodes inside the
correlation region of node
ni ni
Representative node (node ni)
A node that represents all
the nodes inside a
correlation region
Event Area
Wireless Sensor Networks
Akyildiz/Vuran 131
@Sensors: Collaborative MAC (CC-MAC)
Protocol
Two reasons for medium access
Sink Source function: Transmit event
information
Router function: Forward packets
from other nodes in the multi-hop
path to the sink
Two components
Event MAC (E-MAC)
Network MAC
(N-MAC)
Event Area
Wireless Sensor Networks
Akyildiz/Vuran 132
@Sensors: Collaborative MAC (CC-MAC)
Protocol
Two reasons for medium access
Sink Source function: Transmit event
information
Router function: Forward packets
from other nodes in the multi-hop
path to the sink
Two components
Event MAC (E-MAC)
Network MAC
(N-MAC)
Event Area
Wireless Sensor Networks
Akyildiz/Vuran 133
@Sensors: Collaborative MAC
(CC-MAC) Protocol
Two reasons for medium access
Sink Source function: Transmit event
information
Router function: Forward packets
from other nodes in the multi-hop
path to the sink
Two components
Event MAC (E-MAC)
Network MAC
(N-MAC)
Event Area
Wireless Sensor Networks
Akyildiz/Vuran 134
Event MAC (E-MAC)
Event Area
FH=1
RTS
FH=0
RTS
FH=0
RTS
FH=1
RTS
FH=0
RTS
Backoff
Goodput
Wireless Sensor Networks
Akyildiz/Vuran 155
CC-MAC Performance
A time-slotted structure
Delivery Ratio
Wireless Sensor Networks
Akyildiz/Vuran 174
Energy Savings
Channel Utilization
MAC Low Contention High Contention
CSMA High Low
TDMA Low High
* Combines the strengths of both CSMA and TDMA at the same time
offsetting their weaknesses.
* High channel efficiency and fair
IDEAL
Channel TDMA
Utilization
CSMA
# of Contenders
Wireless Sensor Networks
Akyildiz/Vuran 179
Z-MAC
Uses the TDMA schedule created by DRAND as a 'hint' to
schedule transmissions.
D G
D G
Step 3. Broadcast Release
Step 4. Broadcast Two Hop Release
Wireless Sensor Networks
Akyildiz/Vuran 183
DRAND – Algorithm – Unsuccessful
Round B
F B
F
A Request Grant A Reject
C E C E
Grant
G D G
D
Step 1. Broadcast Request Step 2. Receive Grants from
A,B,D but Reject from E
B
F
A Fail
C E
D G
Disadvantage:
MSN must be broadcast across the entire network.
Unused slots if neighborhood small, e.g., A and B would have
to maintain frame size of 8, in spite of having small
neighborhood.
Slot Ownership
If current timeslot is the node's assigned time-slot, then
it is the Owner, and all other neighbouring nodes are Non-
Owners.
Time 0 1 2 0
Slots
A(0)
Owner Backoffs
B(1)
Non-Owner Backoffs
Wireless Sensor Networks
Akyildiz/Vuran 192
Explicit Contention Notification (ECN)
Informs all nodes within two-hop neighborhood not to
send during its time-slot
Sink
Sources Sources
Z-MAC
B-MAC
MULTI-HOP
Z-MAC
B-MAC
Z-MAC
B-MAC
MULTI-HOP
1. Mobility Support
2. Real-time Communication