45
1-1 Medium-Access Control

1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

  • View
    217

  • Download
    1

Embed Size (px)

Citation preview

Page 1: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-1

Medium-Access Control

Page 2: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-2

Medium Access

Radio communication: shared medium. Throughput, delay, and fairness.

MAC for sensor networks: Must also be energy efficient.

Contention- versus scheduled-based access.

Energy efficiency through switching nodes to low-power, sleep mode.

Page 3: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-3

Hidden- and Exposed Terminals

A B C

Hidden Terminal Problem:a transmits to B; C does notsense A, and also transmits to B: collision!

A B C D

Exposed Terminal Problem: B is supposed to transmit to A and C to D; but C senses B’s transmission and defers: waste ofbandwidth.

Page 4: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-4

Contention- versus Scheduled-Based Access

Contention-based access performs well in low load scenarios.

Examples: Packet radio (1970’s):

Aloha, Slotted Aloha. CSMA, CSMA-CD

(Ethernet).

Collisions?

Scheduled-based access are collision free.

Example: TDMA. No nodes within 2 hops

of each other may use the same slot.

Lends itself to energy efficient approaches. Turn nodes off when

they are not sending/receiving.

Page 5: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-5

MAC in Sensor Networks Sensor networks are a special class of

multihop wireless networks.

Ad-hoc deployment.

Self-configuring.

Unattended.

Battery powered.

Page 6: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-6

Network Architecture

Sink Sink

•Thousands of nodes.

•Short radio range (~10m).

•Event-driven.

•Hierarchical deployment.

•Fault tolerance.

Information Processing

Page 7: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-7

MAC Protocols Regulate channel access in a shared

medium.

A

C

B Collision at B

X

No coordination (ALOHA)

Page 8: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-8

CSMA

Listen before transmittingStations sense the channel before transmittingdata packets.

S R H

XCollision at R

Hidden Terminal Problem

Page 9: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-9

CSMA with Collision Avoidance Stations carry out a handshake to

determine which one can send a data packet (e.g., MACA, FAMA, IEEE802.11, RIMA).

S R H

RTSCTS

Data

ACK Backoff due to CTS

Page 10: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-10

Idle Listening

Tx

Rx

Idle Listen

Idle Listen

Tx

Rx

Sleep

Sleep

Sleep Scheduling

Medium Access Energy-efficient channel access is important to prolong the life-time of sensor

nodes. Conventional media-access control protocols waste energy by collisions, and idle

listening. Radios have special sleep mode for energy conservation.

Page 11: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-11

Achieving energy efficiency

When a node is neither transmitting nor receiving, switch to low-power sleep mode.

Prevent collisions and retransmissions. Need to know Tx, Rx and when

transmission event occurs.

Scheduled-based(time-slotted) MAC Protocols

Page 12: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-12

Contention-based Channel Access Protocols: S-MAC & T-

MAC

Page 13: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-13

S-MAC [Ye etal] Features

Collision Avoidance Similar to 802.11 (RTS/CTS handshake).

Overhearing Avoidance All the immediate neighbors of the sender and

receiver goes to sleep. Message Passing

Long messages are broken down in to smaller packets and sent continuously once the channel is acquired by RTS/CTS handshake.

Increases the sleep time, but leads to fairness problems.

Page 14: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-14

S-MAC Overview

Time is divided in to cycles of listen and sleep intervals.

Schedules are established such that neighboring nodes have synchronous sleep and listen periods.

SYNC packets are exchanged periodically to maintain schedule synchronization.

Page 15: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-15

S-MAC Operation

Page 16: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-16

Schedule Establishment

Node listens for certain amount of time. If it does not hear a schedule, it chooses a

time to sleep and broadcast this information immediately.

This node is called the ‘Synchornizer’. If a node receives a schedule before

establishing its schedule, it just follows the received schedule.

If a node receives a different schedule, after it has established its schedule, it listens for both the schedules.

Page 17: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-17

S-MAC Illustration

Page 18: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-18

T-MAC[Dam etal]: S-MAC Adaptive Listen

Page 19: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-19

T-MAC: Early Sleeping Problem

Page 20: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-20

T-MAC/S-MAC Summary

Simple contention-based channel access with duty cycle-based sleeping.

Restricting channel contention to a smaller window negative effect on energy savings due to collisions.

Requires schedule co-ordination with one hop neighbors.

Page 21: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-21

Scheduling-based Channel Access Protocols: TRAMA and

FLAMA

Page 22: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-22

TRAMA: TRaffic-Adaptive Medium Access

Establish transmission schedules in a way that: is self adaptive to changes in traffic, node

state, or connectivity. prolongs the battery life of each node. is robust to wireless losses.

Page 23: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-23

TRAMA - Overview Single, time-slotted channel access. Transmission scheduling based on two-hop

neighborhood information and one-hop traffic information.

Random access period Used for signaling: synchronization and updating two-

hop neighbor information. Scheduled access period:

Used for contention free data exchange between nodes.

Supports unicast, multicast and broadcast communication.

Page 24: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-24

TRAMA Features

Distributed TDMA-based channel access.

Collision freedom by distributed election based on Neighborhood-Aware Contention Resolution (NCR).

Traffic-adaptive scheduling to increase the channel utilization.

Radio-mode control for energy efficiency.

Page 25: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-25

Time slot organization

Page 26: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-26

Each node maintains two-hop neighbor information.

Based on the time slot ID and node ID, node priorities are calculated using a random hash function.

A node with the highest two-hop priority is selected as the transmitter for the particular time slot.

Neighborhood-aware contention resolution (NCR)[Bao et al., Mobicom00]

Page 27: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-27

A

C

D

BE

F

3

2

15

8

9

11CWinner

G

H

I

13

3

14NCR does not elect receivers and hence, no support for radio-mode control.

NCR - Example

Page 28: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-28

TRAMA Components

Neighbor Protocol (NP). Gather 2-hop neighborhood information.

Schedule Exchange Protocol (SEP). Gather 1-hop traffic information.

Adaptive Election Algorithm (AEA). Elect transmitter, receiver and stand-by

nodes for each transmission slot. Remove nodes without traffic from election.

Page 29: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-29

Neighbor Protocol

Main Function: Gather two-hop neighborhood information by using signaling packets.

Incremental neighbor updates to keep the size of the signaling packet small.

Periodically operates during random access period.

Page 30: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-30

Packet Formats

Page 31: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-31

Schedule Exchange Protocol (SEP) Schedule consists of list of intended

receivers for future transmission slots. Schedules are established based on the

current traffic information at the node. Propagated to the neighbors periodically. SEP maintains consistent schedules for the

one-hop neighbors.

Page 32: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-32

Schedule Packet Format

Page 33: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-33

Adaptive Election Algorithm (AEA) Decides the node state as either

Transmit, Receive or Sleep. Uses the schedule information obtained

by SEP and a modified NCR to do the election.

Nodes without any data to send are removed from the election process, thereby improving the channel utilization.

Page 34: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-34

Simulation Results

Delivery Ratio

Synthetic broadcast traffic using Poisson arrivals.

50 nodes, 500x500 area.

512 byte data.

Average node density: 6

Page 35: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-35

Energy Savings

Percentage Sleep Time Average Length of sleep interval

Page 36: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-36

TRAMA Limitations

Complex election algorithm and data structure.

Overhead due to explicit schedule propagation.

Higher queueing delay.

Flow-aware, energy-efficient framework.

Page 37: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-37

TRAMA Summary

Significant improvement in delivery ratio in all scenarios when compared to contention-based protocols.

Significant energy savings compared to S-MAC (which incurs more switching).

Acceptable latency and traffic adaptive.

Page 38: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-38

Flow-aware Medium Access Framework Avoid explicit schedule propagation.

Take advantage of application. Simple election algorithm to suit systems

with low memory and processing power (e.g., 4KB ROM in Motes).

Incorporate time-synchronization, flow discovery and neighbor discovery during random-access period.

Page 39: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-39

Flow Information

Flow information characterizes application-specific traffic patterns.

Flows can be unicast, multicast or broadcast.

Characterized by source, destination, duration and rate.

Page 40: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-40

Example: Data Gathering Application

A

C

E

BD

Sink

Fb

Fc

Fd

Fe

Page 41: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-41

Flow Discovery Mechanism

Combined with neighbor discovery during random-access period.

Adapted based on the application. for data gathering application, flow

discovery is essentially establishing the data forwarding tree.

Page 42: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-42

Example

S

Sink initiates neighbor discovery, flow discovery and time synchronization.

Broadcasts periodic SYNC packets.

Potential children reply with SYNC_REQ.

Source reinforces with another SYNC packet.

Once associated with a parent, nodes start sending periodic SYNC broadcasts.

A

B

C

Sink

SYNC

SYNC_REQ

Page 43: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-43

Election Process

Weighted election to incorporate traffic adaptivity.

Nodes are assigned weights based on their incoming and outgoing flows.

Highest priority 2-hop node is elected as the transmitter.

A node listens if any of its children has the highest 1-hop priority. Can switch to sleep mode

if no transmission is started.

S

A

B

C

Sink ws=0

wc=1

wc=1

wa=3

Page 44: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-44

Simulation Results (16 nodes, 500x500 area, CC1000 radio, grid topology, edge sink)

Delivery Ratio Queueing Delay

Page 45: 1-1 Medium-Access Control. 1-2 Medium Access r Radio communication: shared medium. m Throughput, delay, and fairness. r MAC for sensor networks: m Must

1-45

FLAMA Summary

Simple algorithm that can be implemented on a sensor platform.

Significant performance improvement by application awareness.