+ All Categories
Home > Documents > MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A...

MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A...

Date post: 28-Jul-2018
Category:
Upload: vuminh
View: 212 times
Download: 0 times
Share this document with a friend
36
1 MACA: A New Channel Access Method for Packet Radio the proceedings of the 9th ARRL Computer Networking Conference, London, Ontario, Canada, 1990. Author: Phil Karn
Transcript
Page 1: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

1

MACA: A New Channel Access Method for Packet Radio

the proceedings of the 9th ARRL Computer Networking Conference, London, Ontario, Canada, 1990.

Author: Phil Karn

Page 2: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

2

Goals , New Ideas, and Main Contributions

g Goals:Ø Try to overcome hidden & exposed terminal problems

g New idea:Ø Reserve the channel before sending data packetØ Minimize the cost of collision (control packet is much smaller than

data packet)

g Main Contribution:Ø A three-way handshake MAC protocol : MACA

CSMA/CA MA/CA MACA

Page 3: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

3

Fundamental Assumptions

g SymmetryiA can hear from Bó B can hear from A

g No captureg No channel fadingg Packet error only due to collisiong Data packets and control packets are transmitted in the

same channel

Page 4: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

4

Three-Way Handshakeg A sends Ready-to-Send (RTS)

g B responds with Clear-to-Send (CTS) g A sends DATA PACKETg RTS and CTS announce the duration of the data transferg Nodes overhearing RTS keep quiet for some time to allow A to receive CTSg Nodes overhearing CTS keep quiet for some time to allow B to receive data

packet

A

B

DATACTS (10)

CTS: Clear To Send RTS (10)RTS: Request To Send

C

D

E

Page 5: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

5

More Details for MACAg A sends out RTS and set a timer and waits for CTS

iIf A receives CTS before timer go to zero, OK! sends data packetiOtherwise, A assumes there is a collision at B

• Double the backoff counter interval» Randomly pick up a timer from [1,backoff counter]

• Send next RTS after timer go to zerog B sends out CTS, then set a timer and waits for data packet

iIf data packet arrives before timer go to zero, OK!iOtherwise, B can do other things

g C overhears A’s RTS, set a timer which is long enough to allow A to receive CTS. After the timer goes to zero, C can do other things

g D overhears B’s CTS, set a timer which is long enough to allow B to receive data packet.

g E overhears A’s RTS and B’s CTS, set a timer which is long enough to allow B to receive data packet.

g RTS and CTS can also contain info to allow sender A to adjust power to reduce interference

Note: no carrier sense

Page 6: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

6

Hidden Terminal Problem Still Exists (1)

A

RTSDATARTS

B

RTS

C

CTS

gData packet still might suffer collision

Page 7: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

7

Hidden Terminal Problem Still Exists (2)

A

RTSDATARTS

B

RTS

C

CTS

gData packet still might suffer collisionCTSDATA

E

Page 8: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

8

Exposed Terminal Problem Still Exists

A

RTS

B

C

CTS

gNode C can not receive CTS

DATA

RTSCTS

D

Page 9: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

9

Summary

g MACA did not solve hidden & exposed terminal problemsg MACA did not provide specifications about parameters

iWhat are RTS, CTS packet sizes ?iHow to decide timers?iWhat is initial backoff window size?

g A lot things need to do if using MACA

Page 10: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

10

MACAW: A Media Access Protocol for Wireless Lan’s

ACM Sigcomm '94, London, UK.

V. Bharghavan, A. Demers, S. Shenker, and L. Zhang (Sigcomm 1994)

Page 11: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

11

Goals, New Ideas, and Main Contributions

n Goals:vThis paper refined and extended MACAv Improve fairness and increase throughput

g New Idea: Information sharing to achieve fairnessg Main Results:vModified control messages

Ø Four-way handshake (reliable, recover at MAC layer)Ø Five-way handshake (relieve exposed terminal problem)Ø RRTS (unfairness)

vModified back-off algorithmsØ Multiplicative increase and linear decrease (MILD)Ø Synchronize back-off counter using piggyback message

vMultiple stream model (V-MAC)

Page 12: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

12

Revisit Hidden Terminal Problem

g Data packet still may suffer collisiong To recover packet loss at transport layer is too slow g Recover at MAC layer is faster g Need ACK from destination

Page 13: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

13

Four-Way Handshakeg Sender sends Ready-to-Send (RTS) g Receiver responds with Clear-to-Send (CTS) g Sender sends DATA PACKETg Receiver acknowledge with ACKg RTS and CTS announce the duration of the transferg Nodes overhearing RTS/CTS keep quiet for that durationg Sender will retransmit RTS if no ACK is received

If ACK is sent out, but not received by sender, after receiving new RTS, receiver returns ACK instead of CTS for new RTS

source

destination

DATAACKCTS(T)

CTS: Clear To Send RTS(T)RTS: Request To Send

Page 14: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

14

Comparison with ACK and without ACK

Page 15: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

15

Revisit Exposed Terminal Problem

g RTS/CTS/DATA/ACK can not solve exposed terminal problem

g When overhearing RTS, the node needs to wait longer enough to allow the data packet being completely transmitted even it does not overhear CTS

g To relieve exposed terminal problem,ØLet exposed terminal know the DATA packet does be transmittedØExtra message DS (data send)

g Five Handshaking to let exposed terminal know how long it should wait

Page 16: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

16

Five-Way Handshake

g Sender sends Ready-to-Send (RTS) g Receiver responds with Clear-to-Send (CTS) g Sender sends DATA SENDING (DS)g Sender sends DATA PACKETg Receiver acknowledge with ACKg RTS and CTS announce the duration of the

transferg Nodes overhearing RTS/CTS keep quiet for that

duration

A

B

DATAACKCTS

CTS: Clear To Send RTSRTS: Request To Send DSDS: Data Sending

C

Page 17: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

17

Comparison with DS and without DS

Page 18: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

18

Comparison with DS and without DS

B1

CTSRTSDATARTS

P1

RTS

B2P2

ACK

CTS

Page 19: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

19

Unfairnessg Using RTS/CTS/DATA/ACK or RTS/CTS/DS/DATA/ACK might cause unfairnessg A sends data to B; D sends data to Cg A and D have enough data to sendg C can hears from B and D, but not Ag B can hear from A and C, but not D

iA is in luck and gets the channeliD sends RTS and times outiBackoff window for D repeatedly doublesiFor the next transmission:

• A picks a random number from a smaller window• Unequal probability of channel access• Throughput for flow A èB > 90 %• Throughput for flow D è C ~ 0%

A

CTSRTSDATARTS

B

RTS

DC

ACK

Page 20: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

20

Request for RTS (RRTS)

g Try to solve unfairness by having C do the contending for D

A

CTSRTSDATARTS

B

RRTS

RRTS: Request for RTS

RTS

DC

ACK

Page 21: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

21

Why Uses RRTS Instead Of CTS ?

g CTS or RTS packet size << data packet size

g When nodes overhear CTS, they need to defer a time period to allow the expected data packet transmission

g When nodes overhear RRTS, they only need to defer a time period to overhear the expected CTS

g Uses CTS will cost long waiting

Page 22: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

22

Comparison with RRTS and without RRTS (1)

Page 23: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

23

Comparison with RRTS and without RRTS (2)

Page 24: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

24

Multiple Stream Model (V-MAC)

g Single stream model merges traffic from different flows into a mixed stream and uses a single MAC

g Multiple stream model uses multiple MAC (one flow one MAC) to achieve fairness

g This idea was used by Intersil Company to propose a new MAC for IEEE 802.11e in 2001

MA

CNode

Single Stream MAC

MAC

NodeMAC

MAC

Multiple Stream MAC

Page 25: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

25

Why Multiple Stream MAC more fair Than Single Stream MAC

g When collision

v all packets in single stream MAC are used a large backoff window

v Different flow’s packet in multiple stream MAC uses different backoff window

Page 26: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

26

Comparison V-MAC and MAC

Page 27: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

27

Backoff Algorithmsg When collision occurs, node A pick up a random number T from

[1,Bo], then retransmits RTS after T time unit

g How to determine BoiAfter each collision Bo_new = Fun_inc(Bo_old)iAfter each successful transmission Bo_new = Fun_dec(Bo_old)

g Binary exponential backoff (BEB) algorithmiFun_inc(Bo_old)=min{2*Bo_old, Bo_max}iFun_dec(B_old)=Bo_min

g Multiplicative increase linear decease (MILD)iFun_inc(Bo_old)=min{1.5*Bo_old, Bo_max}iFun_dec(B_old)=max{Bo_old -1, Bo_min}

Page 28: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

28

Information Sharing in BackoffAlgorithms

g When a node sends a packet, it embeds its current backoffcounter in the packet header. Other nodes which overhears the packet copy the value as itself backoff counter

g Key idea: all nodes have the same backoff counter to achieve fairness

Page 29: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

29

Comparison BEB and BEB-Copy

Page 30: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

30

Comparison BEB-COPY and MILD-Copy

Page 31: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

31

Per-Destination Backoff

Page 32: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

32

Evaluation of MACAW

Page 33: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

33

Evaluation of MACAW

Total TroughputMACA: 51.06MACAW: 7037% higher

Every flow has the same data rate32 packet per second

Page 34: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

34

Evaluation of MACAW

Page 35: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

35

Evaluation of MACAW

Page 36: MACA: A New Channel Access Method for Packet Radioranger.uta.edu/~li/1-25-lecture-2.pdf · MACA: A New Channel Access Method for Packet Radio ... ØA three-way handshake MAC protocol

36

Open Problems

g How to design a good backoff algorithm?

g Adaptive MAC to achieve fairness in ad-hoc networks

g Do upper layer operations need to tightly relate to MAC?

g Reliable multicast MAC in ad-hoc networks


Recommended