Lecture2 (MAC).ppt
- Количество слайдов: 34
Protocol Stack
MAC Protocols • Objectives of MAC Protocols • • Collision Avoidance Energy Efficiency Scalability Latency Fairness Throughput Bandwidth Utilization
POWER CONSUMPTION RADIO SENSOR CPU TX RX IDLE SLEEP
Major Sources of Energy Waste * Idle Listening * Transmitter * Receiver Common to all wireless networks OBJECTIVE: Reduce energy consumption !!
Challenges for MAC in WSNs 1. WSN Architecture • High density of nodes • Increased collision probability • Signaling overhead should be minimized to prevent further collisions • Sophisticated and simple collision avoidance protocols required
Challenges for MAC in WSNs 2. Limited Energy Resources – Connectivity and the performance of the network is affected as nodes die – Transmitting and receiving consumes almost same energy – Frequent power up/down eats up energy – Need very low power MAC protocols – Minimize signaling overhead – Avoid idle listening
Challenges for MAC in WSNs 3. Limited Processing and Memory Capabilities • Complex algorithms cannot be implemented • Conventional layered architecture may not be appropriate • Centralized or local management is limited • Simple scheduling algorithms required • Self-configurable, distributed protocols required
Challenges for MAC in WSNs 4. Limited Packet Size • Unique node ID is not practical • Limited header space • Local IDs should be used for inter-node communication • MAC protocol overhead should be minimized
MAC Protocols for WSN • ? -MAC (pick your letter!) • μ-MAC, AI-LMAC, B-MAC, Bit, BMA, CC-MAC, Crankshaft, CSMA-MPS, CSMA/ARC, DMAC, E 2 MAC, EMACs, f-MAC, FLAMA, Funneling-MAC, G-MAC, HMAC, LPL… • MMAC, MR-MAC, nano. MAC, O-MAC, PACT, PEDAMACS, Pico. Radio, PMAC, Q-MAC, QMAC, RATE EST, RL-MAC, RMAC, S-MAC/AL, SCPMAC, SEESAW, Sift, SMACS, SS-TDMA, STEM, T-MAC, TA-MAC, TICER, TRAMA, U-MAC, Wise. MAC, X-MAC, Z-MAC http: //www. st. ewi. tudelft. nl/~koen/MACsoup/
MAC Protocols for WSN • Contention-based • Reservation-based • Hybrid
How can A communicate with B? B C A D E F
Basic CSMA • Carrier Sense Multiple Access • Designed for WLAN • Listen-before-transmit Interframe space
CSMA • In basic CSMA a transmitter may not know if the packet is corrupted. – Solution: use acknowledgement (ACK) • Wait for small amount of time SIFS(Short IFS) and transmit ACK. • Problem of CSMA? Hidden terminal problem
Hidden terminal problem
Message Collision ?
CSMA/CA • Carrier Sense Multiple Access with Collision Avoidance Distributed IFS
CSMA/CA • RTS collisions are possible => Reduced through binary exponential backoff. (contention window 32 ->64 ->128. . )
CSMA/CA • Virtual channel sensing using NAV(Network Allocation Vector)
MAC Protocols for WSN • Contention-based • Reservation-based • Hybrid
Contention-based Medium Access • Rely on controlled contention between nodes • Provide robustness and scalability
MAC Protocols for WSNs • Contention (RANDOM/CSMA)-Based MAC Protocols – S-MAC – BMAC – Wise. MAC
SLEEP-MAC (S-MAC) • Problem: “Idle Listening” consumes significant energy • Solution: Periodic listen and sleep • During sleeping, radio is turned off • Reduce duty cycle to ~ 10% (Listen for 200 ms and sleep for 1. 8 s) Latency Energy
S-MAC • Each node goes into periodic sleep mode during which it switches the radio off and sets a timer to awake later • When the timer expires it wakes up and listens to see if any other node wants to talk to it
S-MAC • The duration of the sleep and listen cycles are application dependent and they are set the same for all nodes • Requires a periodic synchronization among nodes to take care of any type of clock drift
Periodic Sleep and Listen • All nodes are free to choose their own listen/sleep schedules. • To reduce control overhead, neighboring nodes are synchronized together. • They listen at the same time and go to sleep at the same time (synchronized sleep).
Synchronization § SYNC packets are exchanged periodically to maintain schedule synchronization. SYNC PACKET Sender Node ID Next Sleep Time § § SYNCHRONIZATION PERIOD: Period for a node to send a SYNC packet. Receivers will adjust their timer counters immediately after they receive the SYNC packet
S-MAC Initializer=Synchronizer
S-MAC • Multi-hop awareness problem
S-MAC • Adaptive Listening – Improvement over S-MAC to reduce multi-hop latency
S-MAC • When a node has large data – Message passing can be used • To avoid sending RTS-CTS packets
Berkeley MAC (B-MAC) • S-MAC introduced duty cycle operation • B-MAC describes preamble sampling mechanism • Drawbacks of S-MAC: – Nodes need to send periodic messages (SYNC) – Each node should be active during the listen period even there is no packet to transmit
B-MAC • Nodes need not be synchronized – No need to wake and sleep at the same time – Instead nodes have their own sleep and wakeup schedule • Problem: Transmitter should wake up its receiver or should wait for its receiver to wake up • Solution: Use preamble sampling (also referred as Low power listening (LPL))
B-MAC More energy efficient in low traffic load applications
Wise. MAC • When a node has data to send, it starts sending preamble => Waste of energy
Lecture2 (MAC).ppt