32
600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

Embed Size (px)

DESCRIPTION

Advanced Wireless Antonello Cruz Current Protocol IEEE Distributed Coordination Function (DCF) 2-way handshake (data/ACK) 4-way handshake (RTS/CTS/data/SCK) Assume 4-way handshake to cope with common hidden-terminal problems

Citation preview

Page 1: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks

Zhifei LiAnil K. GuptaSukumar Nandi

Page 2: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Unfairness

Based on the length of time the system is observed

• Short-term fairness => long-term fairness• Short-term unfairness => long-term unfairness

Goal is short-term fairness

Page 3: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Current Protocol

IEEE 802.11Distributed Coordination Function (DCF)• 2-way handshake (data/ACK)• 4-way handshake (RTS/CTS/data/SCK)Assume 4-way handshake to cope with

common hidden-terminal problems

Page 4: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Unfairness in IEEE 802.11

IEEE 802.11Distributed Coordination Function (DCF)• Concealed Information Problem• Imprecise Collision Detection• High Contention

Page 5: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Medium Contention

Two flows contend the medium if either sender or receiver of one flow is within transmission range of the other

Page 6: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Concealed Information Problem

• Neither sender is within range of the receiver of the other flow

• Only one of the senders is within the range of the receiver of the other flow

• Both senders are within range of the receiver of the other flow

Page 7: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Concealed Information Problem

• Neither sender is within range of the receiver of the other flow

Short-term unfairness

Page 8: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Concealed Information Problem

• Only one of the senders is within the range of the receiver of the other flow

Page 9: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Concealed Information Problem

• Both senders are within range of the receiver of the other flow

Page 10: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Concealed Information Problem

When the contention period occurs?

Starts after the transmission of ACKEnds at transmission of RTS

Page 11: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Imprecise Collision Detection

• SA and SB send RTS at the same time

• RA detects collision and doesn’t send CTS

• RB can’t hear SA’s RTS and sends CTS

• SB captured the medium

Page 12: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

High-Contention

Page 13: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

General Framework to Achieve MAC Fairness

• Fairness ModelFair share over certain duration/window (W)Flow-level fairnessConsider packets to have same lengthAll application have same requirements

• Compensation ModelAggressiveNormalRestrictive

Page 14: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Estimation of theof the Number of Active Flows

• List of active flows from tuples (RTS/CTS/Data/ACK) with timestamps

• Stale entry older than We

Page 15: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Imprecise Estimations

Potential problems• New Flow. Other nodes are unaware. (under-

estimation)• Last packet of a flow waits one We to delete.

(over-estimation) We need smallest We

• Flow can’t transmit within We and have its entry deleted by the other nodes (under-estimation) We need larger We

Page 16: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Estimation of Actual Share

• Keep history of flows• Check how many times you transmitted

History = {A, B, A, C, B, A, D, E, C, …}n = 5 (from the flow ID list)Share w for flows A, B, C, D, E are 2/5, 2/5,

1/5, 0, and 0Sender and receiver don’t need to know

other flows , history = {A, -1, A, -1, -1}

Page 17: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Detection of Unfairness

• Measure how much a flow has been over/under used

• Degree by which flow should be– Aggressive Na

– Restrictive Nr

• Normal use, Na and Nr are set to 0

Page 18: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Detection of Unfairness

To find Na and Nr slide window in historyNa: slide until the flow x enters the window

For D, Na = 2 {A, B, [A, C, B, A, D], E, C, …}

For E, Na = 3 {A, B, A, [C, B, A, D, E], C, …}

Nr: slide until only 1 flow x in the window

For A, Nr = 3 {A, B, A, [C, B, A, D, E], C, …}

For B, Nr = 2 {A, B, [A, C, B, A, D], E, C, …}

Page 19: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

FMAC/CSR

• Based on cooperation between sender and receiver

• Sender and Receiver estimate parameters

• Estimated values may differ in sender and receiver

Page 20: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

FMAC/CSR: Sender

• If flow in aggressive mode, back-off [0, X], X = max (n, 2n - Na)

• If flow in normal mode back-off [2n, CW]• If flow in restrictive mode, defer by

(Nr + 1) x TxTime(packet). Then back-off [2n, CW x Nr]

Page 21: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

FMAC/CSR: Sender

• Regardless of mode, when back-off timer expires and medium is idle, transmit

• Recompute mode when becomes idle after a busy state

• The CW is manipulated as in the Binary Exponential Back-off

Page 22: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

FMAC/CSR: Sender

Page 23: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Receiver Feedback

Implicit Restrictive-notificationIf a flow has over-used the medium, it

must have just transmitted a packet. The restrictive-notification can be piggybacked in the ACK frame

The receiver sends Nr

Page 24: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Receiver FeedbackExplicit Aggressive-notificationIf the flow is under-used, there will be no packet

received recently. The notification has to be sent explicitly

Use frame similar to RTS - it will contend for the medium

Prioritize medium access– Sender in aggressive mode– Receiver in aggressive mode– Sender in normal mode– Sender in restrictive mode

Page 25: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

FMAC/CSR Summary

Page 26: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Simulation Results

Page 27: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Simulation Results

Page 28: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Simulation Results

Page 29: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Simulation Results

Page 30: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Simulation Results

Page 31: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Simulation Results

Page 32: 600.647 Advanced Wireless Antonello Cruz FMAC/CSR: a Fair MAC Protocol for Wireless Ad-hoc Networks Zhifei Li Anil K. Gupta Sukumar Nandi

600.647 Advanced Wireless Antonello Cruz

Final Thoughts

Ingenious solution, solves unfairness problem with very small reduction in performance

Potential obstacles for widely adoption• How to interact with nodes that don’t

talk FMAC/CSR?• Different packet sizes• Become an endorsed IEEE standard