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

Similar documents
CE693: Adv. Computer Networking

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

Wireless Intro : Computer Networking. Wireless Challenges. Overview

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 24: Mobile and Wireless

Mohamed Khedr.

Data Communications. Data Link Layer Protocols Wireless LANs

CSE 461: Wireless Networks

CMPE 257: Wireless and Mobile Networking

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

Data and Computer Communications. Chapter 13 Wireless LANs

Wireless MACs: MACAW/802.11

Multiple Access Links and Protocols

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

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

15-441: Computer Networking

MSIT 413: Wireless Technologies Week 8

Wireless Local Area Networks. Networks: Wireless LANs 1

Local Area Networks NETW 901

MAC in /20/06

Guide to Wireless Communications, Third Edition. Objectives

Lecture 16: QoS and "

Computer Networks. Wireless LANs

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

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

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

Introduction to IEEE

ICE 1332/0715 Mobile Computing (Summer, 2008)

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

Mobile & Wireless Networking. Lecture 7: Wireless LAN

Wireless and Mobile Networks

CMPE 257: Wireless and Mobile Networking

IEEE WLANs (WiFi) Part II/III System Overview and MAC Layer

Wireless Communications

6.9 Summary. 11/20/2013 Wireless and Mobile Networks (SSL) 6-1. Characteristics of selected wireless link standards a, g point-to-point

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

Multiple Access in Cellular and Systems

Topics for Today. More on Ethernet. Wireless LANs Readings. Topology and Wiring Switched Ethernet Fast Ethernet Gigabit Ethernet. 4.3 to 4.

Wireless LAN -Architecture

MULTIPLE ACCESS PROTOCOLS 2. 1

Advanced Computer Networks WLAN

Wireless Protocols. Training materials for wireless trainers

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Wireless LANs. ITS 413 Internet Technologies and Applications

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

Wireless Communication and Networking CMPT 371

Computer Communication III

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

Mobile Communications Chapter 7: Wireless LANs

Wireless# Guide to Wireless Communications. Objectives

Unit 7 Media Access Control (MAC)

CMPE 257: Wireless and Mobile Networking

IEEE Technical Tutorial. Introduction. IEEE Architecture

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

Chapter 6 Wireless and Mobile Networks. Csci 4211 David H.C. Du

Wireless and WiFi. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Wireless Heterogeneity. EEC173B/ECS152C, Spring 09. Data Transport Over Wireless. Wireless Performance. Reliable Data Transport over Wireless Networks

Announcements : Wireless Networks Lecture 11: * Outline. Power Management. Page 1

Wireless and Mobile Networks 7-2

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

Internet Protocol Stack

IEEE MAC Sublayer (Based on IEEE )

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

Wireless Local Area Network (IEEE )

Wireless Communication and Networking CMPT 371

Wireless Communication Session 4 Wi-Fi IEEE standard

The MAC layer in wireless networks

CS263: Wireless Communications and Sensor Networks

Chapter 12 Multiple Access 12.1

Internet Structure. network edge:

Enabling Technologies

15-441: Computer Networking. Wireless Networking

Rahman 1. Application

IEEE Wireless LANs

MAC. Fall Data Communications II 1

Last Lecture: Data Link Layer

Link Layer II: MACA and MACAW

Improving Reliable Transport and Handoff Performance in Cellular Wireless Networks

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

ICE 1332/0715 Mobile Computing (Summer, 2008)

Media Access Control in Ad Hoc Networks

Wireless networks. Wireless Network Taxonomy

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

Wireless LAN. Access Point. Provides network connectivity over wireless media

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

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

ECE442 Communications Lecture 3. Wireless Local Area Networks

Wireless Networking & Mobile Computing

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

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

Link Layer: Retransmissions

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

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

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

The MAC layer in wireless networks

Chapter 6 Medium Access Control Protocols and Local Area Networks

Mohammad Hossein Manshaei 1393

Wireless Networks (MAC)

Wireless Networks (MAC) Kate Ching-Ju Lin ( 林靖茹 ) Academia Sinica

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

Mobile Communications Chapter 7: Wireless LANs

Transcription:

Wireless Intro 15-744: Computer Networking L-9 Wireless TCP on wireless links Wireless MAC Assigned reading [BPSK97] A Comparison of Mechanism for Improving TCP Performance over Wireless Links [BDS+94] MACAW: A Media Access Protocol for Wireless LAN s 2 Wireless Challenges Force us to rethink many assumptions Need to share airwaves rather than wire Don t know what hosts are involved may not be using same link technology Mobility Other characteristics of wireless Noisy lots of losses Slow Interaction of multiple transmitters at receiver Collisions, capture, interference Multipath interference Overview Wireless Background Wireless MAC MACAW 802.11 Wireless TCP 3 4 1

Transmission Channel Considerations The Nyquist Limit Every medium supports transmission in a certain frequency range. Outside this range, effects such as attenuation,.. degrade the signal too much Transmission and receive hardware will try to maximize the useful bandwidth in this frequency band. Tradeoffs between cost, distance, bit rate As technology improves, these parameters change, even for the same wire. Thanks to our EE friends Good Frequency Bad A noiseless channel of width H can at most transmit a binary signal at a rate 2 x H. E.g. a 3000 Hz channel can transmit data at a rate of at most 6000 bits/second Assumes binary amplitude encoding Signal 5 6 Past the Nyquist Limit Capacity of a Noisy Channel More aggressive encoding can increase the channel bandwidth. Example: modems Same frequency - number of symbols per second Symbols have more possible values psk Psk + AM Can t add infinite symbols - you have to be able to tell them apart. This is where noise comes in. Shannon s theorem: C = B x log(1 + S/N) C: maximum capacity (bps) B: channel bandwidth (Hz) S/N: signal to noise ratio of the channel Often expressed in decibels (db). 10 log(s/n). Example: Local loop bandwidth: 3200 Hz Typical S/N: 1000 (30db) What is the upper limit on capacity? Modems: Teleco internally converts to 56kbit/s digital signal, which sets a limit on B and the S/N. 7 8 2

Free Space Loss Loss = P t / P r = (4π d) 2 / (G r G t λ 2 ) Loss increases quickly with distance (d 2 ). Need to consider the gain of the antennas at transmitter and receiver. Loss depends on frequency: higher loss with higher frequency. But careful: antenna gain depends on frequency too For fixed antenna area, loss decreases with frequency Can cause distortion of signal for wide-band signals Cellular Reuse Transmissions decay over distance Spectrum can be reused in different areas Different LANs Decay is 1/R 2 in free space, 1/R 4 in some situations 9 10 Multipath Effects Receiver receives multiple copies of the signal, each following a different path Fading - Example Copies can either strengthen or weaken each other. Depends on whether they are in our out of phase Small changes in location can result in big changes in signal strength. Short wavelengths, e.g. 2.4 GHz 12 cm Difference in path length can cause inter-symbol interference (ISI). Frequency of 910 MHz or wavelength of about 33 cm 11 12 3

Overview Wireless Background Wireless MAC MACAW 802.11 Medium Access Control Think back to Ethernet MAC: Wireless is a shared medium Transmitters interfere Need a way to ensure that (usually) only one person talks at a time. Goals: Efficiency, possibly fairness Wireless TCP 13 14 Example MAC Protocols Pure ALOHA Transmit whenever a message is ready Retransmit when ACK is not received Slotted ALOHA Time is divided into equal time slots Transmit only at the beginning of a time slot Avoid partial collisions Increase delay, and require synchronization Carrier Sense Multiple Access (CSMA) Listen before transmit Transmit only when no carrier is detected CSMA/CD Does Not Work Carrier sense problems Relevant contention at the receiver, not sender Hidden terminal Exposed terminal Collision detection problems Hard to build a radio that can transmit and receive at same time Hidden A B C Exposed A B C D 15 16 4

MACAW 4 design details 1. Contention is at the receiver 2. Congestion is location dependentd 3. Fairness through learning of congestion levels 4. Propagate synchronization information about contention periods Fairness in MACAW Channel capture in MACA Backoff doubled every collision Reduce backoff on success Solution: Copy backoffs This does not always work as wanted 17 18 MACAW: Additional Design Multiple Stream Model MACAW: Additional Design DS Because carrier sense disabled ACK CTS RTS DATA DS Hears RTS Doesn t hear CTS Hears DS 19 20 5

RRTS MACAW: Conclusions Problem: 8% extra overhead for DS and ACK RTS RRTS ACK DATA RTS DS 37% improvement in congestion Backoff Increases Cannot send CTS RRTS CTS prevents P2 from respond X RTS X DATA RTS DS Future work: Multicast t support Copying backoff RTS lost CTS 21 22 Overview Wireless Background Wireless MAC MACAW 802.11 Wireless TCP IEEE 802.11 Overview Adopted in 1997 Defines: MAC sublayer MAC management protocols and services Physical (PHY) layers IR FHSS DSSS 23 24 6

802.11 particulars 802.11b (WiFi) Frequency: 2.4-2.4835 Ghz DSSS Modulation: DBPSK (1Mbps) / DQPSK (faster) Orthogonal channels: 3 There are others, but they interfere. (!) Rates: 1, 2, 5.5, 11 Mbps 802.11a: Faster, 5Ghz OFDM. Up to 54Mbps 802.11g: Faster, 2.4Ghz, up to 54Mbps 802.11 details Fragmentation 802.11 can fragment large packets (this is separate from IP fragmentation). Preamble 72 bits @ 1Mbps, 48 bits @ 2Mbps Note the relatively high per-packet overhead. Control frames RTS/CTS/ACK/etc. Management frames Association request, beacons, authentication, etc. 25 26 Overview, 802.11 Architecture Infrastructure Network STA Ad Hoc Network AP BSS BSS: Basic Service Set ESS: Extended Service Set STA BSS STA STA ESS Existing Wired LAN STA STA STA BSS AP BSS STA Ad Hoc Network 802.11 modes Infrastructure mode All packets go through a base station Cards associate with a BSS (basic service set) Multiple BSSs can be linked into an Extended Service Set (ESS) Handoff to new BSS in ESS is pretty quick Wandering around CMU Moving to new ESS is slower, may require readdressing Wandering from CMU to Pitt Ad Hoc mode Cards communicate directly. Perform some, but not all, of the AP functions 27 28 7

802.11 Management Operations Scanning Association/Reassociation Time synchronization Power management Scanning & Joining Goal: find networks in the area Passive scanning No require transmission saves power Move to each channel, and listen for Beacon frames Active scanning Requires transmission saves time Move to each channel, and send Probe Request frames to solicit Probe Responses from a network Joining a BSS Synchronization in TSF and frequency : Adopt PHY parameters : The BSSID : WEP : Beacon Period : DTIM 29 30 Association in 802.11 Time Synchronization in 802.11 Client 1: Association request 2: Association response 3: Data traffic AP Timing synchronization function (TSF) AP controls timing in infrastructure networks All stations maintain a local timer TSF keeps timer from all stations in sync Periodic Beacons convey timing Beacons are sent at well known intervals Timestamp from Beacons used to calibrate local clocks Local TSF timer mitigates loss of Beacons 31 32 8

Power Management in 802.11 A station is in one of the three states Transmitter on Receiver on Both transmitter and receiver off (dozing) AP buffers packets for dozing stations AP announces which stations have frames buffered in its Beacon frames Dozing stations wake up to listen to the beacons If there is data buffered for it, it sends a poll frame to get the buffered data IEEE 802.11 Wireless MAC Support broadcast, multicast, and unicast Uses ACK and retransmission to achieve reliability for unicast frames No ACK/retransmission for broadcast or multicast frames Distributed and centralized MAC access Distributed Coordination Function (DCF) Point Coordination Function (PCF) 33 34 802.11 DCF (CSMA) 802.11 DCF (RTS/CTS) Distributed Coordination Function (CSMA/CA) Sense medium. Wait for a DIFS (50 µs) If busy, wait till not busy. Random backoff. If not busy, Tx. Backoff is binary exponential Acknowledgements use SIFS (short interframe spacing). 10 µs. Short spacing makes exchange atomic 36 9

Discussion RTS/CTS/Data/ACK vs. Data/ACK Why/when is it useful? What is the right choice Why is RTS/CTS not used? Overview Wireless Background Wireless MAC MACAW 802.11 Wireless TCP 37 38 Wireless Challenges Force us to rethink many assumptions Need to share airwaves rather than wire Don t know what hosts are involved may not be using same link technology Mobility Other characteristics of wireless Noisy lots of losses Slow Interaction of multiple transmitters at receiver Collisions, capture, interference Multipath interference TCP Problems Over Noisy Links Wireless links are inherently error-prone Fades, interference, attenuation Errors often happen in bursts TCP cannot distinguish between corruption and congestion TCP unnecessarily reduces window, resulting in low throughput and high latency Burst losses often result in timeouts Sender retransmission is the only option Inefficient use of bandwidth 39 40 10

Constraints & Requirements Challenge #1: Wireless Bit-Errors Incremental deployment Solution should not require modifications to fixed hosts If possible, avoid modifying mobile hosts Probably more data to mobile than from mobile Attempt to solve this first Computer 1 Router Loss Congestion 23 221 0 Computer 2 Loss Congestion Wireless Burst losses lead to coarse-grained timeouts Result: Low throughput 41 42 Performance Degradation Seq quence number (byte es) 2.0E+06 1.5E+06 1.0E+06 5.0E+05 Best possible TCP with no errors (1.30 Mbps) TCP Reno (280 Kbps) 0.0E+00 0 10 20 30 40 50 60 Time (s) 2 MB wide-area TCP transfer over 2 Mbps Lucent WaveLAN Proposed Solutions End-to-end protocols Selective ACKs, Explicit loss notification Split-connection protocols Separate connections for wired path and wireless hop Reliable link-layer protocols Error-correcting codes Local retransmission 43 44 11

Approach Styles (End-to-End) Improve TCP implementations Not incrementally deployable Improve loss recovery (SACK, NewReno) Help it identify congestion (ELN, ECN) ACKs include flag indicating wireless loss Trick TCP into doing right thing E.g. send extra dupacks What is SMART? DUPACK includes sequence of data packet that triggered it Approach Styles (Split Connection) Split connections Wireless connection need not be TCP Hard state at base station Complicates mobility Vulnerable to failures Violates end-to-end semantics Wired link Wireless link Wired link Wireless link 45 46 Split-Connection Congestion Window Approach Styles (Link Layer) Congestion Window (b bytes) 60000 50000 40000 30000 20000 10000 Wired connection Wireless connection 0 0 20 40 60 80 100 120 More aggressive local rexmit than TCP Bandwidth not wasted on wired links Adverse interactions with transport layer Timer interactions Interactions with fast retransmissions Large end-to-end round-trip time variation FEC does not work well with burst losses Wired link Wireless link Time (sec) Wired connection does not shrink congestion window But wireless connection times out often, causing sender to stall ARQ/FEC 47 48 12

Hybrid Approach: Snoop Protocol Shield TCP sender from wireless vagaries Eliminate adverse interactions between protocol layers Congestion control only when congestion occurs The End-to-End Argument [SRC84] Preserve TCP/IP service model: end-to-end semantics Is connection splitting fundamentally important? Eliminate non-tcp protocol messages Is link-layer messaging fundamentally important? Snoop Overview Modify base station to cache un-acked TCP packets and perform local retransmissions Key ideas No transport level code in base station When node moves to different base station, state eventually recreated there Fixed to mobile: transport-aware link protocol Mobile to fixed: link-aware transport protocol 49 50 Snoop Protocol: CH to MH Snoop Protocol: CH to MH 6 4 3 2 1 Snoop Agent 5 1 6 5 3 21 4 1 Snoop Agent Snoop agent: active interposition agent Snoops on TCP segments and ACKs Detects losses by duplicate ACKs and timers Suppresses duplicate ACKs from FH sender Transfer of file from CH to MH Current window = 6 packets 51 52 13

Snoop Protocol: CH to MH Snoop Protocol: CH to MH 6 5 4 3 2 1 Snoop Agent 6 4 3 2 1 Snoop Agent 5 1 Transfer begins Snoop agent caches segments that pass by 53 54 Snoop Protocol: CH to MH Snoop Protocol: CH to MH 4 3 2 1 Snoop Agent 6 5 3 2 1 6 5 4 3 2 1 Snoop Agent 4 3 2 ack 0 1 Lost Packets 1 Lost Packets Packet 1 is Lost Packet 1 is Lost Duplicate ACKs generated 55 56 14

Snoop Protocol: CH to MH Snoop Protocol: CH to MH 6 5 4 3 2 1 Snoop Agent 6 5 1 4 2 3 6 5 4 3 2 1 Snoop Agent 6 5 1 4 2 3 ack 0 ack 4 ack 0 1 Lost Packets ack 0 X Packet 1 is Lost Duplicate ACKs generated Packet 1 retransmitted from cache at higher priority Duplicate ACKs suppressed 57 58 Snoop Protocol: CH to MH Snoop Protocol: CH to MH 6 5 Snoop Agent 6 ack 5 5 1 4 2 3 ack 4 6 Snoop Agent ack 6 6 5 1 4 2 3 ack 4 ack 5 Clean cache on new ACK Clean cache on new ACK 59 60 15

Snoop Protocol: CH to MH Performance: FH to MH 9 8 ack 5 7 ack 6 Snoop Agent Active soft state agent at base station Transport-aware reliable link protocol Preserves end-to-end semantics 6 5 1 4 2 3 61 Throughput (Mbps) 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 Typical error rates 0 0 500 1000 1500 2000 2500 1/Bit-error Rate (1 error every x Kbits) Snoop+SACK Snoop+SACK and dsnoop Snoop perform best Connection SPLIT-SACK splitting not TCP SACK essential SPLIT TCP SACK TCP Reno performance disappointing 2 MB local-area TCP transfer over 2 Mbps Lucent WaveLAN 62 Discussion Real link-layers aren t windowed Out of order delivery not that significant a concern TCP timers are very conservative 63 16