15-744: Computer Networking L-8 Wireless. L -8; 11-12-04© Srinivasan Seshan, 20042 Mobile Routing Mobile IP Ad-hoc network routing TCP on wireless links.

Slides:



Advertisements
Similar presentations
Comparison between DSR and AODV DSR Overview AODV Overview Similarity Difference Consequence.
Advertisements

1 Improving TCP/IP Performance Over Wireless Networks Authors: Hari Balakrishnan, Srinivasan Seshan, Elan Amir and Randy H. Katz Presented by Sampoorani.
A feedback–based scheme for improving TCP performance in Ad Hoc Wireless Networks Group : Manish Mehta Aditya Barve.
1 Improving TCP Performance over Mobile Networks HALA ELAARAG Stetson University Speaker : Aron ACM Computing Surveys 2002.
Improving TCP over Wireless by Selectively Protecting Packet Transmissions Carla F. Chiasserini Michele Garetto Michela Meo Dipartimento di Elettronica.
IP Mobility Support Basic idea of IP mobility management
Hui Zhang, Fall Computer Networking TCP Enhancements.
Improving TCP/IP Performance Over Wireless Networks Authors: Hari Balakrishnan, Srinivasan Seshan, Elan Amir and Randy H. Katz Jerome Mitchell Resilient.
CMPE 257: Wireless and Mobile Networking
15-441: Computer Networking Lecture 24: Mobile and Wireless Networking.
Internet Networking Spring 2003 Tutorial 12 Limited Transmit RFC 3042 Long Thin Networks RFC 2757.
MOBILITY SUPPORT IN IPv6
CS 268: Wireless Transport Protocols Kevin Lai Feb 13, 2002.
CS541 Advanced Networking 1 Mobile Ad Hoc Networks (MANETs) Neil Tang 02/02/2009.
15-441: Computer Networking Lecture 22: Wireless, Ad-Hoc Networks, Sensor Networks, and Delay Tolerant Networks.
15-441: Computer Networking Lecture 19: Wireless, Ad-Hoc Networks As usual: thanks to Dave and Srini.
Winter CMPE 155 Week 9. Winter Project 8 Setting up wireless ad hoc network. Designing/implementing application- level neighbor discovery.
1 Elements of a wireless network network infrastructure wireless hosts r laptop, PDA, IP phone r run applications r may be stationary (non- mobile) or.
Transport Protocols for Wireless Networks CMPE Spring 2001 Marcelo M. de Carvalho.
15-441: Computer Networking Lecture 21: Wireless Networking.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
Reliable Transport Layers in Wireless Networks Mark Perillo Electrical and Computer Engineering.
TCP performance in Wireless Networks Ehsan Hamadani July 2004.
CMPE 257 Spring CMPE 257: Wireless and Mobile Networking Spring 2005 E2E Protocols (point-to-point)
1 A Comparison of Mechanisms for Improving TCP Performance over Wireless Links Course : CS898T Instructor : Dr.Chang - Swapna Sunkara.
IP Mobility Support Basic idea of IP mobility management o understand the issues of network-layer mobility support in IP network o understand the basic.
L-5 Wireless 1. 2 Wireless Challenges Force us to rethink many assumptions Need to share airwaves rather than wire  Don’t know what hosts are involved.
Ad Hoc Routing CMU David Andersen. Ad Hoc Routing Goal: Communication between wireless nodes –No external setup (self-configuring) –Often need.
Ad Hoc Wireless Routing COS 461: Computer Networks
15-441: Computer Networking Lecture 25: Wireless, Ad-Hoc Networks, Sensor Networks.
15-441: Computer Networking Lecture 24: Ad-Hoc Wireless Networks.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Mobile IP Performance Issues in Practice. Introduction What is Mobile IP? –Mobile IP is a technology that allows a "mobile node" (MN) to change its point.
Chapter 5 outline 5.1 Introduction and services
CIS 725 Wireless networks. Low bandwidth High error rates.
CS640: Introduction to Computer Networks Aditya Akella Lecture 22 - Wireless Networking.
Spring 2000Nitin BahadurAdvanced Computer Networks A Comparison of Mechanisms for Improving TCP Performance over Wireless Links By: Hari B., Venkata P.
Itrat Rasool Quadri ST ID COE-543 Wireless and Mobile Networks
Qian Zhang Department of Computer Science HKUST Advanced Topics in Next- Generation Wireless Networks Transport Protocols in Ad hoc Networks.
CS640: Introduction to Computer Networks Aditya Akella Lecture 22 - Wireless Networking.
Mobile IP Most of the slides borrowed from Prof. Sridhar Iyer
Mobile Communications: Mobile Transport Layer Mobile Communications Chapter 10: Mobile Transport Layer  Motivation  TCP-mechanisms  Indirect TCP  Snooping.
Asstt. Professor Adeel Akram.  Motivation  TCP mechanisms  Indirect TCP  Snooping TCP  Mobile TCP  Fast retransmit/recovery  Transmission freezing.
Improving TCP Performance over Mobile Networks Zahra Imanimehr Rahele Salari.
15-744: Computer Networking L-9 Wireless Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan.
TCP PERFORMANCE OVER AD HOC NETWORKS Presented by Vishwanee Raghoonundun Assisted by Maheshwarnath Behary MSc Computer Networks Middlesex University.
Wireless TCP Prasun Dewan Department of Computer Science University of North Carolina
1 Impact of transmission errors on TCP performance (Nitin Vaidya)
Reliable Data Transport over Heterogeneous Wireless Networks Hari Balakrishnan MIT Lab for Computer Science.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
15-441: Computer Networking Lecture 23: Wireless Networking Copyright ©, Carnegie Mellon University.
Wireless TCP. References r Hari Balakrishnan, Venkat Padmanabhan, Srinivasan Seshan and Randy H. Katz, " A Comparison of Mechanisms for Improving TCP.
15-441: Computer Networking Lecture 23: Mobile and Wireless Networking.
Challenges to Reliable Data Transport Over Heterogeneous Wireless Networks.
15-744: Computer Networking L-18 Mobile Transport and Applications.
15-441: Computer Networking Lecture 24: Wireless Networking Copyright ©, Carnegie Mellon University.
TCP OVER ADHOC NETWORK. TCP Basics TCP (Transmission Control Protocol) was designed to provide reliable end-to-end delivery of data over unreliable networks.
MOBILE TCP.
Ασύρματες και Κινητές Επικοινωνίες Ενότητα # 11: Mobile Transport Layer Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
Computer Networking Lecture 18 – TCP over Wireless.
Ad Hoc On-Demand Distance Vector Routing (AODV) ietf
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
1 Ad-hoc Transport Layer Protocol (ATCP) EECS 4215.
Mobile Transport Layer  Motivation  TCP-mechanisms  Indirect TCP  Snooping TCP  Mobile TCP  Fast retransmit/recovery  Transmission freezing  Selective.
Mobile IP THE 12 TH MEETING. Mobile IP  Incorporation of mobile users in the network.  Cellular system (e.g., GSM) started with mobility in mind. 
TCP over Wireless PROF. MICHAEL TSAI 2016/6/3. TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum.
Ad-hoc Transport Layer Protocol (ATCP)
CSE 4340/5349 Mobile Systems Engineering
Impact of transmission errors on TCP performance
Presentation transcript:

15-744: Computer Networking L-8 Wireless

L -8; © Srinivasan Seshan, Mobile Routing Mobile IP Ad-hoc network routing TCP on wireless links Wireless MAC Assigned reading [BMJ+98] Performance Comparison of Multi-Hop Wireless Ad Hoc Routing Protocols [BPSK97] A Comparison of Mechanism for Improving TCP Performance over Wireless Links [LBC+01] Capacity of Ad Hoc Wireless Networks [BDS+94] MACAW: A Media Access Protocol for Wireless LAN’s [She98] A Channel Access Scheme for Large Dense Packet Radio Networks

L -8; © Srinivasan Seshan, Wireless Challenges Force us to rethink many assumptions Need to share airwaves rather than wire Don’t know what hosts are involved Host 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

L -8; © Srinivasan Seshan, 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

L -8; © Srinivasan Seshan, Overview Wireless TCP Internet routing Ad hoc routing Geographic ad hoc routing, MAC, Capacity (Brad Karp)

L -8; © Srinivasan Seshan, Wireless Challenges Force us to rethink many assumptions Need to share airwaves rather than wire Don’t know what hosts are involved Host 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

L -8; © Srinivasan Seshan, 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

L -8; © Srinivasan Seshan, Constraints & Requirements 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

L -8; © Srinivasan Seshan, Challenge #1: Wireless Bit-Errors Router Computer 2Computer Loss  Congestion Burst losses lead to coarse-grained timeouts Result: Low throughput Loss  Congestion Wireless

L -8; © Srinivasan Seshan, 2004 Performance Degradation Time (s) Sequence number (bytes) TCP Reno (280 Kbps) Best possible TCP with no errors (1.30 Mbps) 2 MB wide-area TCP transfer over 2 Mbps Lucent WaveLAN

L -8; © Srinivasan Seshan, 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

L -8; © Srinivasan Seshan, 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 Wired linkWireless link

L -8; © Srinivasan Seshan, 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 linkWireless link

L -8; © Srinivasan Seshan, 2004 Split-Connection Congestion Window Wired connection does not shrink congestion window But wireless connection times out often, causing sender to stall

L -8; © Srinivasan Seshan, Approach Styles (Link Layer) 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 linkWireless link ARQ/FEC

L -8; © Srinivasan Seshan, 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? Fixed to mobile: transport-aware link protocol Mobile to fixed: link-aware transport protocol

L -8; © Srinivasan Seshan, 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

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Snoop agent: active interposition agent Snoops on TCP segments and ACKs Detects losses by duplicate ACKs and timers Suppresses duplicate ACKs from FH sender Snoop Agent

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Transfer of file from CH to MH Current window = 6 packets Snoop Agent

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Transfer begins Snoop Agent

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Snoop agent caches segments that pass by Snoop Agent

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Packet 1 is Lost Snoop Agent 23 1 Lost Packets 1

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Packet 1 is Lost Duplicate ACKs generated Snoop Agent 2 3 Lost Packets 1 4 ack 0

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Packet 1 is Lost Duplicate ACKs generated Packet 1 retransmitted from cache at higher priority Snoop Agent 2 3 Lost Packets 1 4 ack

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Duplicate ACKs suppressed Snoop Agent ack ack 0 X

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station 56 Clean cache on new ACK Snoop Agent ack ack 4

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station 6 Clean cache on new ACK Snoop Agent ack ack 5 ack 4

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: CH to MH Correspondent Host Mobile Host Base Station Active soft state agent at base station Transport-aware reliable link protocol Preserves end-to-end semantics Snoop Agent ack ack 5

L -8; © Srinivasan Seshan, 2004 Best possible TCP (1.30 Mbps) Snoop Performance Improvement Time (s) Sequence number (bytes) Snoop (1.11 Mbps) TCP Reno (280 Kbps) 2 MB wide-area TCP transfer over 2 Mbps Lucent WaveLAN

L -8; © Srinivasan Seshan, Overview Wireless TCP Internet routing Ad hoc routing

L -8; © Srinivasan Seshan, How to Handle Mobile Nodes? Dynamic Host Configuration (DHCP) Host gets new IP address in new locations Problems Host does not have constant name/address  how do others contact host What happens to active transport connections? Naming Use DHCP and update name-address mapping whenever host changes address Fixes contact problem but not broken transport connections

L -8; © Srinivasan Seshan, Handling Mobile Nodes (Transport) TCP currently uses 4 tuple to describe connection Modify TCP to allow peer’s address to be changed during connection Security issues Can someone easily hijack connection? Difficult deployment  both ends must support mobility

L -8; © Srinivasan Seshan, Handling Mobile Node Link layer mobility Learning bridges can handle mobility  this is how it is handled at CMU Encapsulated PPP (PPTP)  Have mobile host act like he is connected to original LAN Works for IP AND other network protocols Multicast Solves similar problem  how to route packets to different sets of hosts at different times Can’t we just reuse same solutions? Don’t really have solution for multicast either!

L -8; © Srinivasan Seshan, Handling Mobile Nodes (Routing) Allow mobile node to keep same address and name How do we deliver IP packets when the endpoint moves? Why can’t we just have nodes advertise route to their address? What about packets from the mobile host? Routing not a problem What source address on packet? Key design considerations Scale Incremental deployment

L -8; © Srinivasan Seshan, Basic Solution to Mobile Routing Same as other problems in Computer Science Add a level of indirection Keep some part of the network informed about current location Need technique to route packets through this location (interception) Need to forward packets from this location to mobile host (delivery)

L -8; © Srinivasan Seshan, Interception Somewhere along normal forwarding path At source Any router along path Router to home network Machine on home network (masquerading as mobile host) Clever tricks to force packet to particular destination “Mobile subnet” – assign mobiles a special address range and have special node advertise route

L -8; © Srinivasan Seshan, Delivery Need to get packet to mobile’s current location Tunnels Tunnel endpoint = current location Tunnel contents = original packets Source routing Loose source route through mobile current location Network address translation (NAT) What about packets from the mobile host?

L -8; © Srinivasan Seshan, Mobile IP (RFC 2290) Interception Typically home agent – hosts on home network Delivery Typically IP-in-IP tunneling Endpoint – either temporary mobile address or foreign agent Terminology Mobile host (MH), correspondent host (CH), home agent (HA), foreign agent (FA) Care-of-address, home address

L -8; © Srinivasan Seshan, Mobile IP (MH at Home) Mobile Host (MH) Visiting Location Home Internet Correspondent Host (CH) Packet

L -8; © Srinivasan Seshan, Mobile IP (MH Moving) Visiting Location Home Internet Correspondent Host (CH) Packet Home Agent (HA) Mobile Host (MH) I am here

L -8; © Srinivasan Seshan, Mobile IP (MH Away – Foreign Agent) Visiting Location Home Internet Correspondent Host (CH) Packet Home Agent (HA) Foreign Agent (FA) Encapsulated Mobile Host (MH)

L -8; © Srinivasan Seshan, Mobile IP (MH Away - Collocated) Visiting Location Home Internet Correspondent Host (CH) Packet Home Agent (HA) Mobile Host (MH) Encapsulated

L -8; © Srinivasan Seshan, Other Mobile IP Issues Route optimality Triangle routing Can be improved with route optimization Unsolicited binding cache update to sender Authentication Registration messages Binding cache updates Must send updates across network Handoffs can be slow Problems with basic solution Reverse path check for security Do we really need it…

L -8; © Srinivasan Seshan, Overview Wireless TCP Internet routing Ad hoc routing

L -8; © Srinivasan Seshan, Ad Hoc Routing Create multi-hop connectivity among set of wireless, possibly moving, nodes Mobile, wireless hosts act as forwarding nodes as well as end systems Need routing protocol to find multi-hop paths Needs to be dynamic to adapt to new routes, movement Interesting challenges related to interference and power limitations Low consumption of memory, bandwidth, power Scalable with numbers of nodes Localized effects of link failure

L -8; © Srinivasan Seshan, Problems Using DV or LS DV protocols may form loops Very wasteful in wireless: bandwidth, power Loop avoidance sometimes complex LS protocols: high storage and communication overhead More links in wireless (e.g., clusters) - may be redundant  higher protocol overhead

L -8; © Srinivasan Seshan, Problems Using DV or LS Periodic updates waste power Tx sends portion of battery power into air Reception requires less power, but periodic updates prevent mobile from “sleeping” Convergence may be slower in conventional networks but must be fast in ad-hoc networks and be done without frequent updates

L -8; © Srinivasan Seshan, Proposed Protocols Destination-Sequenced Distance Vector (DSDV) DV protocol, destinations advertise sequence number to avoid loops, not on demand Temporally-Ordered Routing Algorithm (TORA) On demand creation of hbh routes based on link- reversal Dynamic Source Routing (DSR) On demand source route discovery Ad Hoc On-Demand Distance Vector (AODV) Combination of DSR and DSDV: on demand route discovery with hbh routing

L -8; © Srinivasan Seshan, DSR Concepts Source routing No need to maintain up-to-date info at intermediate nodes On-demand route discovery No need for periodic route advertisements

L -8; © Srinivasan Seshan, DSR Components Route discovery The mechanism by which a sending node obtains a route to destination Route maintenance The mechanism by which a sending node detects that the network topology has changed and its route to destination is no longer valid

L -8; © Srinivasan Seshan, DSR Route Discovery Route discovery - basic idea Source broadcasts route-request to Destination Each node forwards request by adding own address and re-broadcasting Requests propagate outward until: Target is found, or A node that has a route to Destination is found

L -8; © Srinivasan Seshan, C Broadcasts Route Request to F A Source C G H Destination F E D B Route Request

L -8; © Srinivasan Seshan, C Broadcasts Route Request to F A Source C G H Destination F E D B Route Request

L -8; © Srinivasan Seshan, H Responds to Route Request A Source C G H Destination F E D B G,H,F

L -8; © Srinivasan Seshan, C Transmits a Packet to F A Source C G H Destination F E D B FH,F G,H,F

L -8; © Srinivasan Seshan, Forwarding Route Requests A request is forwarded if: Node is not the destination Node not already listed in recorded source route Node has not seen request with same sequence number IP TTL field may be used to limit scope Destination copies route into a Route-reply packet and sends it back to Source

L -8; © Srinivasan Seshan, Route Cache All source routes learned by a node are kept in Route Cache Reduces cost of route discovery If intermediate node receives RR for destination and has entry for destination in route cache, it responds to RR and does not propagate RR further Nodes overhearing RR/RP may insert routes in cache

L -8; © Srinivasan Seshan, Sending Data Check cache for route to destination If route exists then If reachable in one hop Send packet Else insert routing header to destination and send If route does not exist, buffer packet and initiate route discovery

L -8; © Srinivasan Seshan, Discussion Source routing is good for on demand routes instead of a priori distribution Route discovery protocol used to obtain routes on demand Caching used to minimize use of discovery Periodic messages avoided But need to buffer packets

L -8; © Srinivasan Seshan, Snoop ACK Processing No Dup ack? No New ack? Yes 1. Free buffers 2. Update RTT estimate Yes Discard > threshold No Discard Retransmit Yes lost packet 3. Propagate ack to sender Common case Spurious ack Next pkt lost Later dup acks for lost packet Ack arrives (from mobile host)

L -8; © Srinivasan Seshan, Snoop Data Processing Yes Packet arrives New pkt? No 1. Forward pkt 2. Reset local rexmit counter In-sequence? Yes 1. Cache packet 2. Forward to mobile 1. Mark as cong. loss 2. Forward pkt Congestion loss Common case Sender retransmission No

L -8; © Srinivasan Seshan, 2004 Benefits of TCP-Awareness 30-35% improvement for Snoop: LL congestion window is small (but no coarse timeouts occur) Connection bandwidth-delay product = 25 KB Suppressing duplicate acknowledgments and TCP-awareness leads to better utilization of link bandwidth and performance Time (sec) Congestion Window (bytes) LL (no duplicate ack suppression) Snoop

L -8; © Srinivasan Seshan, Performance: FH to MH 1/Bit-error Rate (1 error every x Kbits) Throughput (Mbps) Typical error rates 2 MB local-area TCP transfer over 2 Mbps Lucent WaveLAN Snoop+SACK and Snoop perform best Connection splitting not essential TCP SACK performance disappointing TCP Reno SPLIT TCP SACK SPLIT-SACK Snoop Snoop+SACK

L -8; © Srinivasan Seshan, Next Lecture PROJECT CHECKPOINT Related work Preliminary results Detailed timeline Multicast routing, reliability, congestion control Network measurements Readings [DC90] Multicast Routing in Datagram Internetworks and Extended LANs [CRSZ01] Enabling Conferencing Applications on the Internet using an Overlay Multicast Architecture [LAWD04] A First-Principles Approach to Understanding the Internet's Router-level Topology [Pax97] End-to-End Internet Packet Dynamics [JD04] Ten Fallacies and Pitfalls on End-to-End Available Bandwidth Estimation [Pax04] Strategies for Sound Internet Measurement

L -8; © Srinivasan Seshan, Other Issues What about mobility? What about mobile-to-fixed communication?

L -8; © Srinivasan Seshan, Handling Mobility Correspondent Host Base Station Mobile Host Base Station Router Send packets to multiple base stations

L -8; © Srinivasan Seshan, Handling Mobility Correspondent Host Base Station Mobile Host Base Station Router Resend missed packets from Snoop cache on handoff

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Correspondent Host Base Station 0 2 Caching and retransmission will not work Losses occur before packet reaches BS Congestion losses should not be hidden Solution: Explicit Loss Notifications (ELN) In-band message to TCP sender

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Base Station MH begins transfer to CH Correspondent Host

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Base Station Packet 1 lost on wireless link Correspondent Host

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Receiver Base Station Add 1 to list of holes after checking for congestion 4 3 Lost Packets 1 1 ack 0

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Base Station Duplicate ACKs sent 4 3 Lost Packets 1 1 ack 0 Correspondent Host

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Base Station ELN information added to duplicate ACKs 4 3 Lost Packets 1 1 ack 0 ack 0 ELN ack 0 Correspondent Host

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Base Station ELN information on duplicate ACKs Retransmit on Packet 1 on dup ACK + ELN No congestion control now 4 3 Lost Packets ack 0 ELN ack 0 Correspondent Host

L -8; © Srinivasan Seshan, 2004 Snoop Protocol: MH to CH Mobile Host Receiver Base Station Clean holes on new ACK Link-aware transport decouples congestion control from loss recovery Technique generalizes nicely to wireless transit links 4 3 ack 6 1

L -8; © Srinivasan Seshan, Overview Header Compression

L -8; © Srinivasan Seshan, Low Bandwidth Links Efficiency for interactive 40byte headers vs payload size – 1 byte payload for telnet Header compression What fields change between packets? 3 types – fixed, random, differential

L -8; © Srinivasan Seshan, TCP Header Source portDestination port Sequence number Acknowledgement Advertised windowHdrLen Flags 0 ChecksumUrgent pointer Options (variable) Data Flags: SYN FIN RESET PUSH URG ACK

L -8; © Srinivasan Seshan, Header Compression What happens if packets are lost or corrupted? Packets created with incorrect fields Checksum makes it possible to identify How is this state recovered from? TCP retransmissions are sent with complete headers Large performance penalty – must take a timeout, no data-driven loss recovery How do you handle other protocols?

L -8; © Srinivasan Seshan, Non-reliable Protocols IPv6 and other protocols are adding large headers However, these protocols don’t have loss recovery How to recovery compression state Decaying refresh of compression state Suppose compression state is installed by packet X Send full state with X+2, X+4, X+8 until next state Prevents large number of packets being corrupted Heuristics to correct packet Apply differencing fields multiple times Do we need to define new formats for each protocol? Not really – can define packet description language [mobicom99]

L -8; © Srinivasan Seshan, 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 A B C A B C D HiddenExposed

L -8; © Srinivasan Seshan, RTS/CTS Approach Before sending data, send Ready-to-Send (RTS) Target responds with Clear-to-Send (CTS) Others who hear defer transmission Packet length in RTS and CTS messages If CTS is not heard, or RTS collides Retransmit RTS after binary exponential backoff