Link Layer II: MACA and MACAW

Similar documents
Wireless MACs: MACAW/802.11

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

CMPE 257: Wireless and Mobile Networking

CSE 461: Wireless Networks

Media Access Control in Ad Hoc Networks

Mohamed Khedr.

IEEE Medium Access Control. Medium Access Control

Lecture 16: QoS and "

The MAC layer in wireless networks

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

04/11/2011. Wireless LANs. CSE 3213 Fall November Overview

Local Area Networks NETW 901

Chapter 12 Multiple Access 12.1

EE 122: Ethernet and

original standard a transmission at 5 GHz bit rate 54 Mbit/s b support for 5.5 and 11 Mbit/s e QoS

Wireless Local Area Networks (WLANs)) and Wireless Sensor Networks (WSNs) Computer Networks: Wireless Networks 1

Wireless Networking & Mobile Computing

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Data and Computer Communications. Chapter 13 Wireless LANs

Wireless Local Area Networks. Networks: Wireless LANs 1

Multiple Access in Cellular and Systems

Multiple Access Links and Protocols

CMPE 257: Wireless and Mobile Networking

Getting Connected (Chapter 2 Part 4) Networking CS 3470, Section 1 Sarah Diesburg

CMPE 257: Wireless and Mobile Networking

The MAC layer in wireless networks

ICE 1332/0715 Mobile Computing (Summer, 2008)

Wireless LANs. ITS 413 Internet Technologies and Applications

IEEE , Token Rings. 10/11/06 CS/ECE UIUC, Fall

Lesson 2-3: The IEEE x MAC Layer

Link Layer I: ALOHA, Time-, Frequency-, and Code Division. COS 463: Wireless Networks Lecture 4 Kyle Jamieson

Wireless and Mobile Networks

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks -IV

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

Lecture 25: CSE 123: Computer Networks Alex C. Snoeren. HW4 due NOW

LECTURE PLAN. Script. Introduction about MAC Types o ALOHA o CSMA o CSMA/CD o CSMA/CA

CS/ECE 439: Wireless Networking. MAC Layer Road to Wireless

Wireless & Mobile Networking

Overview. Wireless networks basics IEEE (Wi-Fi) a/b/g/n ad Hoc MAC protocols ad Hoc routing DSR AODV

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Computer Communication III

Data Communications. Data Link Layer Protocols Wireless LANs

Wireless Local Area Networks (WLANs) and Wireless Sensor Networks (WSNs) Primer. Computer Networks: Wireless LANs

Announcements: Assignment 4 due now Lab 4 due next Tuesday Assignment 5 posted, due next Thursday

Wireless Local Area Network (IEEE )

Wireless LAN -Architecture

Multi-Channel MAC for Ad Hoc Networks: Handling Multi-Channel Hidden Terminals Using A Single Transceiver

Lecture 24: CSE 123: Computer Networks Stefan Savage. HW4 due NOW

November 1998 doc.: IEEE /378 IEEE P Wireless LANs Extension of Bluetooth and Direct Sequence Interference Model.

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

WiFi Networks: IEEE b Wireless LANs. Carey Williamson Department of Computer Science University of Calgary Winter 2018

Medium Access Control. IEEE , Token Rings. CSMA/CD in WLANs? Ethernet MAC Algorithm. MACA Solution for Hidden Terminal Problem

4.3 IEEE Physical Layer IEEE IEEE b IEEE a IEEE g IEEE n IEEE 802.

Mobile and Sensor Systems

Wireless Communication and Networking CMPT 371

Department of Electrical and Computer Systems Engineering

Link Layer: Retransmissions

Outline. Lecture 16: Wireless Networking. Physical Layer (Layer 1) Ethernet: Wireless is Different. Attenuation Over Space

CMPE 257: Wireless and Mobile Networking

A Performance Analysis of IEEE Networks in the Presence of Hidden Stations

Last Lecture: Data Link Layer

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Introduction to Wireless Networking CS 490WN/ECE 401WN Winter Lecture 4: Wireless LANs and IEEE Part II

Mohammad Hossein Manshaei 1393

Chapter 6 Wireless and Mobile Networks

Link Layer. (continued)

Overview : Computer Networking. Spectrum Use Comments. Spectrum Allocation in US Link layer challenges and WiFi WiFi

Sample solution to Midterm

Topic 2b Wireless MAC. Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

Shared Access Networks Wireless. 1/27/14 CS mywireless 1

Wireless Local Area Networks (WLANs) Part I

Wireless Communications

Wireless Networks. CSE 3461: Introduction to Computer Networking Reading: , Kurose and Ross

Wireless Intro : Computer Networking. Wireless Challenges. Overview. TCP on wireless links Wireless MAC Assigned reading.

Announcements / Wireless Networks and Applications Lecture 9: Wireless LANs Wireless. Regular Ethernet CSMA/CD.

Performance analysis of Internet applications over an adaptive IEEE MAC architecture

/$10.00 (c) 1998 IEEE

Logical Link Control (LLC) Medium Access Control (MAC)

Aloha and slotted aloha

CS 348: Computer Networks. - WiFi (contd.); 16 th Aug Instructor: Sridhar Iyer IIT Bombay

Rahman 1. Application

Lecture 12 December 04, Wireless Access. Graduate course in Communications Engineering. University of Rome La Sapienza. Rome, Italy

ECE 4450:427/527 - Computer Networks Spring 2017

COMP/ELEC 429/556 Introduction to Computer Networks

Computer Networks. Wireless LANs

Intelligent Transportation Systems. Medium Access Control. Prof. Dr. Thomas Strang

Introduction to IEEE

Wireless Networks (CSC-7602) Lecture 6 (08 Oct. 2007) Seung-Jong Park (Jay) Wireless MAC

Wireless and Mobile Networks 7-2

CSE 461: Multiple Access Networks. This Lecture

AN ANALYSIS OF THE MODIFIED BACKOFF MECHANISM FOR IEEE NETWORKS

Outline / Wireless Networks and Applications Lecture 9: Wireless LANs Aloha and 802 Wireless. Regular Ethernet CSMA/CD

Lecture 23 Overview. Last Lecture. This Lecture. Next Lecture ADSL, ATM. Wireless Technologies (1) Source: chapters 6.2, 15

Empirical Study of Mobility effect on IEEE MAC protocol for Mobile Ad- Hoc Networks

MAC. Fall Data Communications II 1

Wireless Networked Systems

ECEN 5032 Data Networks Medium Access Control Sublayer

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Fall 2018 CMSC417 Set 1 1

CE693: Adv. Computer Networking

Transcription:

Link Layer II: MACA and MACAW COS 463: Wireless Networks Lecture 5 Kyle Jamieson [Parts adapted from J. Kurose, K. Ross, D. Holmar]

Medium access: Timeline Packet radio Wireless LAN Wired LAN ALOHAnet 1960s Amateur packet radio Ethernet 1970s 2

Medium access: Timeline Packet radio Wireless LAN Wired LAN ALOHAnet 1960s Amateur packet radio Ethernet 1970s 1980s MACA 1990s MACAW IEEE 802.11 2000s 2010s 3

Today: Wi-Fi Above the PHY 1. MACA Carrier sense in the wireless medium Hidden and exposed terminal problems 2. MACAW 3. 802.11 MAC layer 4

Fundamentals: Spectrum and Capacity A particular radio transmits over some range of frequencies; its bandwidth, in the physical sense When we ve many senders near one another, how do we allocate spectrum among senders? Goals: Support for arbitrary communication patterns Simplicity of hardware Robustness to interference Shannon s Theorem: there s a fundamental limit to channel capacity over a given spectrum range 5

Multi-channel Suppose we have 100 MHz of spectrum to use for a wireless LAN Strawman: Subdivide into 50 channels of 2 MHz each: FDMA, narrow-band transmission Radio hardware simple, channels don t mutually interfere, but Multi-path fading (mutual cancellation of out-of-phase reflections) Base station can allocate channels to users. How do you support arbitrary communication patterns? 6

Idea: Use a single, shared channel Spread transmission across whole 100 MHz of spectrum Remove constraints assoc. w/one channel per user Robust to multi-path fading Some frequencies likely to arrive intact Supports peer-to-peer communication Collisions: Receiver must hear 1 strong transmission at a time So adopt carrier sense and deference from Ethernet Listen before sending, defer to ongoing 7

Assumptions and goals Assumptions Uniform, circular radio propagation Fixed transmit power, all same ranges Equal interference and transmit ranges Radios modeled as conditionally connected wires based on circular radio ranges Goals Fairness in sharing of medium Efficiency (total bandwidth achieved) Reliability of data transfer at MAC layer 8

Concurrency versus Taking Turns Far-apart links should send concurrently: Nearby links should take turns: 9

When Does CS Work Well? Two transmission pairs are far away from each other Neither sender carrier-senses the other A B C D B transmits to A, while D transmits to C. 10

When Does CS Work Well? Both transmitters can carrier sense each other Carrier sense uses thresholded correlation value to determine if medium occupied But what about cases in between these extremes? A B C D B transmits to A, D transmits to C, taking turns. 11

Hidden Terminal Problem A B C C can t hear A, so will transmit while A transmits Result: Collision at B Carrier Sense insufficient to detect all transmissions on wireless networks! Key insight: Collisions are spatially located at the receiver 12

Exposed Terminal Problem A B C If C transmits, does it cause a collision at A? Yet C cannot transmit while B transmits to A! Same insight: Collisions spatially located at receiver One possibility: directional antennas rather than omnidirectional. Why does this help? Why is it hard? 13

MACA: Multiple Access with Collision Avoidance Carrier sense became adopted in packet radio But distances (cell size) remained large Hidden and Exposed terminals abounded Simple solution: use receiver s medium state to determine transmitter behavior 14

RTS/CTS Exchange of two short messages: Request to Send (RTS) and Clear to Send (CTS) Algorithm 1. A sends an RTS (tells B to prepare) 2. B replies an CTS (echoes message length) 3. A sends its Data 1. RTS, k bits 3. Data A B C 2. CTS, k bits defers 15

Deference to CTS Hear CTS à Defer for length of expected data transmission time Solves hidden terminal problem 1. RTS, k bits 3. Data A B C 2. CTS, k bits defers 16

Deference to RTS Hear RTS à Defer one CTS-time (why?) MACA: No carrier sense before sending! Karn concluded useless because of hidden terminals So exposed terminals can transmit concurrently: 1. RTS, k bits 3. Data D 2. CTS, (No deference k bits after Step 2) A B C 17

Collision! A s RTS collides with C s RTS, both are lost at B B will not reply with a CTS RTS Collision RTS A B C Might collisions involving data packets occur? Not according to our (unrealistic) assumptions But Karn acknowledges interference range > communication range 18

BEB in MACA When collisions arise, MACA senders randomly backoff like Ethernet senders then retry the RTS How long do collisions take to detect in the Experimental Ethernet? What size should we make MACA backoff slots? 19

BEB in MACA Current backoff constant: CW MACA sender: CW 0 = 2 and CW M = 64 Upon successful RTS/CTS, CW ß CW 0 Upon failed RTS/CTS, CW ß min[2cw, CW M ] Before retransmission, wait a uniform random number of RTS lengths (30 bytes) in [0, CW] 30 bytes = 240 μs 20

Today: Wi-Fi Above the PHY 1. MACA 2. MACAW 3. 802.11 MAC layer 21

MACAW: Context Published in SIGCOMM 1994, work 93/ 94 Wi-Fi standards proceeded in parallel (IEEE standard 97) 802.11 draws on MACAW, which draws on MACA Assumptions and goals: Same as MACA Setting: Wireless LAN Packet radio cell size: circa 100 mi. (528 μs) Wireless LAN cell size: circa 100 ft. (100 ns) 22

Fairness in BEB/MACA MACA s BEB can lead to unfairness: backed-off sender has decreasing chance to acquire medium ( the poor get poorer ) Simple example: A, C each sending at a rate that can alone saturate the network A CW=32 B C CW=4 C more likely to win the backoff and set minimum CW=2 A more likely to defer (maintain CW) 23

BEB in MACAW: Copy MACAW proposal: senders write their CW into packets Upon hearing a packet, copy and adopt its CW Result: Dissemination of congestion level of winning transmitter to its competitors Is this a good idea? RTS failure rate at one node propagates far and wide Ambient noise? Regions with different loads? 24

BEB in MACAW Integrates with MACAW s ACK mechanism Multiplicative increase, linear decrease (MILD) MACAW sender: CW 0 = 2 and CW M = 64 Upon failed RTS/CTS CW ß min[1.5cw, CW M ] Upon successful RTS/CTS but failed ACK, no change Upon successful RTS/CTS/DATA/ACK CW ß CW 1 25

Reliability: ACK MACAW introduces an ACK after DATA packets; not in MACA Sender resends if RTS/CTS succeeds but no ACK returns Sender resends RTS. Two cases: 1. DATA was lost Receiver sends CTS, sender DATA 2. Receiver already has the DATA (reverse-link ACK loss) Receiver sends ACK 26

ACK: Considerations Avoid TCP window reductions when interference Useful when there s ambient noise (microwave ovens ) Why are sequence numbers in DATA packets now important (not mentioned directly in paper!) Are ACKs useful for multicast packets? Consequences for, e.g., ARP? 27

MACAW and Exposed Terminals C can proceed only if it can hear a CTS from D But B s DATA will likely clobber So B sends a Data Sending (DS) packet after CTS So C knows that B received a CTS C defers until after ACK Conservative: 1. RTS, k bits Doesn t leverage exposed terminal opportunities for concurrency A 2. CTS, B C k bits 3. DS 4. Data Defer D 5. ACK 28

Need for Synchronization Suppose D has a smaller CW, ongoing transmission B can not reply to A s RTS A doesn t know when the contention periods are So, A s backoff will increase: unfair MACAW s approach: let B contend on behalf of A A B C D 29

MACAW: RRTS But B knows when the gaps for contention are B sends a Request for RTS (RRTS) packet to A when DATA completes (hears an ACK from C) C defers transmissions for two slot periods (why?) A sends a RTS immediately without backoff RRTS CTS A B C D DATA RTS 30

A Problem not Solved by RRTS What happens in this scenario? Assume C is successful, ongoing transmission When A sends RTS to B, B just can t hear it So this problem is not solved by RRTS A B C D 31

Today: Wi-Fi Above the PHY 1. MACA 2. MACAW 3. 802.11 MAC layer Contention and backoff Frame aggregation Selective retransmission and Acknowledgement 32

802.11 s MAC Adopts MACAW s MAC from a high level: Same RTS/CTS/DATA/ACK RTS/CTS optional Different contention window control Adopts CS and Deference from Ethernet: But not collision detection Transmit signal power receive signal power Adds design elements for high data rates, TCP above 33

Deference times for Prioritization Fixed-time deference + CS = prioritization (DIFS > SIFS) Distributed Coordination Function (DCF) Interframe Space (DIFS) Short Interframe Space (SIFS) Sender: Data Receiver: CW Overhead ACK Overhead So, overhead of fixed time duration per Wi-Fi Frame: RTS/CTS (if present), DIFS, CW, preamble, SIFS, ACK 802.11 ac: SIFS = 16 μs, DIFS = 34 μs 34

Backoff: Pausing and Resuming 802.11 backoff slot time = Physical CS time + propagation time + time to switch radio from receive to transmit 802.11 ac: slot time = 9 μs No MACAW: No copy, no MILD, no DS, no RRTS Node 1: Node 2: B1 = 25 B2 = 20 wait pause @ 5 data B1 = 5 B2 = 15 data wait B2 = 10 CW = 31 B1 and B2 are backoff intervals at nodes 1 and 2 35

802.11 s Pause Adaptively sets CW with BEB Start with CW = 31, double if no CTS or ACK received Reset to 31 on successful transmission Not fair in the short term Under contention, losers will use larger CW than winners (winners reset) Winners may be able to transmit several packets while unlucky nodes are still counting down Could adopt MACAW s copy & MILD, but has drawbacks 36

Today: Wi-Fi Above the PHY 1. MACA 2. MACAW 3. 802.11 MAC layer Contention and backoff Frame aggregation Selective retransmission and Acknowledgement 37

Motivation: MAC Scaling Incommensurate with PHY Bitrate Preamble (% overhead) 1% 8% Payload (1,500 byte packet) 6 Mbps (20 MHz, 1 x 1) 54 Mbps (20 MHz, 1 x 1) 29% 45% 73% Problem: Drop in efficiency with increasing data rate from fixed overheads in the preamble and inter-frame spaces 130 Mbps (20 MHz, 2 x 2) 270 Mbps (40MHz, 2 x 2) 540 Mbps (40 MHz, 4 x 4) 38

Aggregation Amortizes Fixed Overheads Without aggregation: DIFS DIFS DIFS Data Data Data... CW ACK CW ACK CW ACK SIFS SIFS SIFS With aggregation: Multiple frames/channel acquisition Block ack (BA) tells sender which arrived DIFS DIFS Data Data Data Data Data Data CW BA CW BA SIFS SIFS 39

802.11: Selective Retransmission 802.11 adopts TCP s selective retransmission, but: Primary consideration is performance at the link layer Protocol is only semi-reliable: may drop packets Receiver-side reorder buffer for in-order delivery Receiver-side scoreboard for feedback to sender Sender transmits Block ACK request (BAR) frames: 1. If needed, sender can solicit a Block ACK response (BA response) from receiver 2. Sender may direct receiver to drop (i.e., fail to deliver to the network layer) frames it deems old 40

Reorder Buffer Operation sender 6 5 4 3 2 1 BA receiver Deliver 1 2 3 hole 5 Reorder buffer 6 8 7 4 4 5 6 7 8 Like TCP, 802.11 s reorder buffer guarantees in-order delivery to the layer above But at most once instead of exactly-once semantics 41

Flushing the Reorder Buffer sender 6 5 4 3 2 1 BA receiver Deliver 1 2 3 hole 5 Reorder buffer 6 8 7 4 BA 5 6 7 8 4 stale! BAR: SSN=8 5 6 7 8 On receiving a BAR containing starting sequence number SSN: Deliver all frames with sequence number < SSN 42

The Scoreboard (All arithmetic modulo 2 12 ) Receiver s view of the sequence number space: 2 12 1 0 WinStart + 2 11 WinEnd scoreboard WinStart Each bit in BA frame scoreboard bitmap corresponds to receipt of frames in [WinStart, WinEnd) interval Data and BAR frames move the scoreboard 43

Scoreboard Dynamics (All arithmetic modulo 2 12 ) 102 Receiver Sequence number space WinStart 1 102 103 104 105 Scoreboard 1 103 105 1 1 Receive frame (seq. # SN) from new sender: Set WinEnd ß SN Receive frame WinEnd < SN WinStart + 2 11 : Shift scoreboard to accommodate SN 44

Scoreboard Dynamics (All arithmetic modulo 2 12 ) 100 BAR: SN=100 BA Receiver Sequence number space WinStart 100 1 1 100 1 1 1 1 1 1 103 105 103 105 Receive frame, WinStart < SN WinEnd: Set SN s bit Receive BAR (seq. # SN): Shift scoreboard right (WinStart ß SN) Receive frame, WinStart + 2 11 < SN < WinStart: no-op 45

Wi-Fi Above the PHY: Concluding Thoughts Hard to understate the influence of ALOHAnet, Ethernet, MACA, and MACAW on Wi-Fi CS, deference, RTS/CTS, BEB... Wi-Fi s scoreboarding & selective retransmission serve as an example of the corollary to the E2E Principle Implement just enough of a function at the lower layer to get a performance advantage 46

Thursday Topic: Bit Rate Adaptation Mesh Networks: Roofnet Friday Precept: Introduction to Lab 2: HackRF MAC Protocols 47