Special Topics on Wireless Ad-hoc Networks

Slides:



Advertisements
Similar presentations
1 Improving TCP Performance over Mobile Networks HALA ELAARAG Stetson University Speaker : Aron ACM Computing Surveys 2002.
Advertisements

802.11a/b/g Networks Herbert Rubens Some slides taken from UIUC Wireless Networking Group.
Improving TCP Performance over Mobile Ad Hoc Networks by Exploiting Cross- Layer Information Awareness Xin Yu Department Of Computer Science New York University,
Congestion Control Created by M Bateman, A Ruddle & C Allison As part of the TCP View project.
Improving TCP Performance over MANETs by Exploiting Cross-Layer Information Awareness Xin Yu NYU Presented by: David Choffnes.
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 10 TCP/IP Performance over Asymmetric Networks.
TCP in Wireless Ad Hoc Networks
Receiver-driven Layered Multicast S. McCanne, V. Jacobsen and M. Vetterli SIGCOMM 1996.
6/3/ Improving TCP Performance over Mobile Ad Hoc Networks by Exploiting Cross-Layer Information Awareness CS495 – Spring 2005 Northwestern University.
CMPE 257: Wireless and Mobile Networking
TCP over ad hoc networks Ad Hoc Networks will have to be interfaced with the Internet. As such backward compatibility is a big issue. One might expect.
Improving TCP Performance over Ad-hoc Network 11/28/2000 Xuanming Dong, Duke Lee, and Jin Wang Course Project for EE228A --- Fall 2000 (Professor Jean.
1 TCP over Wireless (II) Based on a presentation by Nitin Vaidya.
1 ATP: A Reliable Transport Protocol for Ad-hoc Networks Sundaresan, Anantharam, Hseih, Sivakumar.
Transport Protocols for Wireless Networks CMPE Spring 2001 Marcelo M. de Carvalho.
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)
Error Checking continued. Network Layers in Action Each layer in the OSI Model will add header information that pertains to that specific protocol. On.
Unit III Topic Transport Layer Protocol for Ad Hoc Wireless Networks Department of Computer Science and Engineering Kalasalingam University 1 CSE.
Slides from Prof. Sridhar Iyer, IIT Bombay
CIS 725 Wireless networks. Low bandwidth High error rates.
Spring 2000Nitin BahadurAdvanced Computer Networks A Comparison of Mechanisms for Improving TCP Performance over Wireless Links By: Hari B., Venkata P.
Qian Zhang Department of Computer Science HKUST Advanced Topics in Next- Generation Wireless Networks Transport Protocols in Ad hoc Networks.
10/1/2015 9:14 PM1 TCP in Mobile Ad-hoc Networks ─ Split TCP CSE 6590.
Mobile Routing protocols MANET
TCP in Wireless Ad Hoc Networks TCP on Wireless Ad Hoc Networks TCP overview Ad hoc TCP and network layer: mobility, route failures and timeout.
TCP PERFORMANCE OVER AD HOC NETWORKS Presented by Vishwanee Raghoonundun Assisted by Maheshwarnath Behary MSc Computer Networks Middlesex University.
1 Transport Layer for Mobile Ad Hoc Networks (MANETs) Cyrus Minwalla Maan Musleh COSC 6590.
Wireless TCP Prasun Dewan Department of Computer Science University of North Carolina
1 Impact of transmission errors on TCP performance (Nitin Vaidya)
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
The Transmission Control Protocol (TCP) Application Services (Telnet, FTP, , WWW) Reliable Stream Transport (TCP) Connectionless Packet Delivery.
Transport over Wireless Networks Myungchul Kim
HighSpeed TCP for High Bandwidth-Delay Product Networks Raj Kettimuthu.
TCP with Variance Control for Multihop IEEE Wireless Networks Jiwei Chen, Mario Gerla, Yeng-zhong Lee.
Wireless TCP. References r Hari Balakrishnan, Venkat Padmanabhan, Srinivasan Seshan and Randy H. Katz, " A Comparison of Mechanisms for Improving TCP.
1 University of Berne Institute of Computer Science and Applied Mathematics – IAM/RVS An overview on TCP in Wireless Ad hoc Networks Ruy de Oliveira March.
Transport layer protocols The objectives of a transport layer protocol include the setting up of an end-to-end connection, end-to- end delivery of data.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Computer Networking Lecture 18 – More TCP & Congestion Control.
TCP on Wireless Ad Hoc Networks CS 218 Oct 22, 2003 TCP overview Ad hoc TCP : mobility, route failures and timeout TCP and MAC interaction study TCP fairness.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Outline Wireless introduction Wireless cellular (GSM, CDMA, UMTS) Wireless LANs, MAC layer Wireless Ad hoc networks – routing: proactive routing, on-demand.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Transport Protocols for Wireless Ad Hoc Networks 1.
An Energy Efficient MAC Protocol for Wireless LANs, E.-S. Jung and N.H. Vaidya, INFOCOM 2002, June 2002 吳豐州.
a/b/g Networks Routing Herbert Rubens Slides taken from UIUC Wireless Networking Group.
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.
Explicit and Implicit Pipelining in Wireless MAC Nitin Vaidya University of Illinois at Urbana-Champaign Joint work with Xue Yang, UIUC.
Ασύρματες και Κινητές Επικοινωνίες Ενότητα # 11: Mobile Transport Layer Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
ECE 4110 – Internetwork Programming
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Principles of reliable data transfer 0.
2005/12/14 1 Improving TCP Performance over Mobile Ad Hoc Networks by Exploiting Cross-Layer Information Awareness Xin Yu Department of Computer Science.
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.
Protocols and layering Network protocols and software Layered protocol suites The OSI 7 layer model Common network design issues and solutions.
Ad-hoc Networks.
UNIT-V Transport Layer protocols for Ad Hoc Wireless Networks
Ad-hoc Transport Layer Protocol (ATCP)
Subject Name: Adhoc Networks Subject Code: 10CS841
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
High Throughput Route Selection in Multi-Rate Ad Hoc Wireless Networks
TCP in Mobile Ad-hoc Networks
TCP in Wireless Ad-hoc Networks
Tema 6.- Redes inalámbricas Ad Hoc. TCP
Impact of transmission errors on TCP performance
Presentation transcript:

Special Topics on Wireless Ad-hoc Networks Lecture 5: TCP for Ad-hoc Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Univ. of Tehran Computer Network

Covered topic Problems with TCP in MANET How to improve TCP in MANET References Chapter 9 of the book ATP: A Reliable Transport protocol for Ad-hoc Networks. Univ. of Tehran Computer Network

Outlines Problems with TCP in MANET How to improve TCP in MANET Univ. of Tehran Computer Network

Issues of TCP in Ad hoc Induced traffic: Link level transmission affect neighbors of sender and receiver. Induced Throughput unfairness: throughput/delay unfairness in link layer Separation of congestion control, realiability and flow control Power and bandwidth constrains. Misinterpretation of congestion: Completely decoupled transport layer: Dynamic topology. Univ. of Tehran Computer Network

Performance of TCP Several factors affect TCP performance in MANET: Wireless transmission errors Multi-hop routes on shared wireless medium For instance, adjacent hops typically cannot transmit simultaneously Route failures due to mobility Univ. of Tehran Computer Network

Random Errors If number of errors is small, they may be corrected by an error correcting code Excessive bit errors result in a packet being discarded, possibly before it reaches the transport layer Problems Fast retransmission of lost packet reduction in congestion window Reduction in congestion window reduces the throughput Burst Errors May Cause Timeouts Univ. of Tehran Computer Network

Impact of Multi-Hop Wireless Paths Connections over multiple hops are at a disadvantage compared to shorter connections, because they have to contend for wireless access at each hop Extent of packet delay or drop increases with number of hops TCP Throughput using 2 Mbps 802.11 MAC Univ. of Tehran Computer Network

Mobile Ad Hoc Networks [IETF-MANET] Mobility causes route changes Univ. of Tehran Computer Network

Throughput Degradations with Increasing Number of Hops Packet transmission can occur on at most one hop among three consecutive hops Increasing the number of hops from 1 to 2, 3 results in increased delay, and decreased throughput Increasing number of hops beyond 3 allows simultaneous transmissions on more than one link, however, degradation continues due to contention between TCP Data and Acks traveling in opposite directions When number of hops is large enough, the throughput stabilizes due to effective pipelining Univ. of Tehran Computer Network

Ideal Throughput f(i) = fraction of time for which shortest path length between sender and destination is I T(i) = Throughput when path length is I Ideal throughput = S f(i) * T(i) Univ. of Tehran Computer Network

Impact of Mobility 2 m/s 10 m/s Actual throughput Ideal throughput (Kbps) Univ. of Tehran Computer Network

Impact of Mobility 20 m/s 30 m/s Actual throughput Ideal throughput Univ. of Tehran Computer Network

Throughput degrades with increasing speed … Ideal Average Throughput Over 50 runs Actual Speed (m/s) Univ. of Tehran Computer Network

But not always … 30 m/s 20 m/s Actual throughput Mobility pattern # Univ. of Tehran Computer Network

Why Does Throughput Degrade? mobility causes link breakage, resulting in route failure TCP data and acks en route discarded Route is repaired TCP sender times out. Starts sending packets again No throughput despite route repair Univ. of Tehran Computer Network

Why Does Throughput Degrade? TCP sender times out. Resumes sending Larger route repair delays especially harmful mobility causes link breakage, resulting in route failure TCP data and acks en route discarded TCP sender times out. Backs off timer. Route is repaired No throughput despite route repair Univ. of Tehran Computer Network

Low Speed Scenario D D D C C C B B B A A A 1.5 second route failure Route from A to D is broken for ~1.5 second. When TCP sender times after 1 second, route still broken. TCP times out after another 2 seconds, and only then resumes. Univ. of Tehran Computer Network

Higher (double) Speed Scenario 0.75 second route failure Route from A to D is broken for ~ 0.75 second. When TCP sender times after 1 second, route is repaired. Univ. of Tehran Computer Network

General Principle The previous two slides show a plausible cause for improved throughput TCP timeout interval somewhat (not entirely) independent of speed Network state at higher speed, when timeout occurs, may be more favorable than at lower speed Network state Link/route status Route caches Congestion Univ. of Tehran Computer Network

Improve Throughput (Closer to Ideal) Network feedback Inform TCP of route failure by explicit message Let TCP know when route is repaired Probing Explicit notification Reduces repeated TCP timeouts and backoff Univ. of Tehran Computer Network

Performance Improvement Without network feedback With feedback Actual throughput Ideal throughput 2 m/s speed Univ. of Tehran Computer Network

Performance Improvement Without network feedback With feedback Actual throughput Ideal throughput 30 m/s speed Univ. of Tehran Computer Network

Performance with Explicit Notification Univ. of Tehran Computer Network

Issues Network Feedback Network knows best (why packets are lost) + Network feedback beneficial Need to modify transport & network layer to receive/send feedback Need mechanisms for information exchange between layers [Holland99] discusses alternatives for providing feedback (when routes break and repair) [Chandran98] also presents a feedback scheme Univ. of Tehran Computer Network

Impact of Caching Route caching has been suggested as a mechanism to reduce route discovery overhead [Broch98] Each node may cache one or more routes to a given destination When a route from S to D is detected as broken, node S may: Use another cached route from local cache, or Obtain a new route using cached route at another node Univ. of Tehran Computer Network

To Cache or Not to Cache Average speed (m/s) Actual throughput (as fraction of expected throughput) Average speed (m/s) Univ. of Tehran Computer Network

Why Performance Degrades With Caching When a route is broken, route discovery returns a cached route from local cache or from a nearby node After a time-out, TCP sender transmits a packet on the new route. However, the cached route has also broken after it was cached Another route discovery, and TCP time-out interval Process repeats until a good route is found timeout due to route failure timeout, cached route is broken timeout, second cached route also broken Univ. of Tehran Computer Network

Issues To Cache or Not to Cache Caching can result in faster route “repair” Faster does not necessarily mean correct If incorrect repairs occur often enough, caching performs poorly Need mechanisms for determining when cached routes are stale Univ. of Tehran Computer Network

Issues Window Size After Route Repair Same as before route break: may be too optimistic Same as startup: may be too conservative Better be conservative than overly optimistic Reset window to small value after route repair Let TCP figure out the suitable window size Impact low on paths with small delay-bw product Univ. of Tehran Computer Network

Issues RTO After Route Repair Same as before route break If new route long, this RTO may be too small, leading to timeouts Same as TCP start-up (6 second) May be too large May result in slow response to next packet loss Another plausible approach: new RTO = function of old RTO, old route length, and new route length Example: new RTO = old RTO * new route length / old route length Not evaluated yet Pitfall: RTT is not just a function of route length Univ. of Tehran Computer Network

Out-of-Order Packet Delivery Out-of-order (OOO) delivery may occur due to: Route changes Link layer retransmissions schemes that deliver OOO Significantly OOO delivery confuses TCP, triggering fast retransmit Potential solutions: Deterministically prefer one route over others, even if multiple routes are known Reduce OOO delivery by re-ordering received packets can result in unnecessary delay in presence of packet loss Turn off fast retransmit can result in poor performance in presence of congestion Univ. of Tehran Computer Network

Impact of Acknowledgements TCP Acks (and link layer acks) share the wireless bandwidth with TCP data packets Data and Acks travel in opposite directions In addition to bandwidth usage, acks require additional receive-send turnarounds, which also incur time penalty To reduce frequency of send-receive turnaround and contention between acks and data Univ. of Tehran Computer Network

Impact of Acks: Mitigation Piggybacking link layer acks with data Sending fewer TCP acks - ack every d-th packet (d may be chosen dynamically) but need to use rate control at sender to reduce burstiness (for large d) Ack filtering - Gateway may drop an older ack in the queue, if a new ack arrives reduces number of acks that need to be delivered to the sender Univ. of Tehran Computer Network

TCP in Mobile Ad Hoc Networks Issues (summary) Route changes due to mobility Wireless transmission errors problem compounded with multiple hops Out-of-order packet delivery frequent route changes may cause out-of-order delivery TCP does not perform well if packets are significantly OOO Multiple access protocol choice of MAC protocol can impact TCP performance significantly Half-duplex radios cannot send and receive packets simultaneously changing mode (send or receive) incurs overhead Univ. of Tehran Computer Network

Impact of MAC - Delay Variability As wireless medium is shared between multiple sources, the round-trip delay is variable Also, on slow wireless networks, delay is large made larger by send-receive turnaround time Large and variable delays result in larger RTO On packet loss, timeout takes much longer to occur Idle source (waiting for timeout to occur) lowers TCP throughput Univ. of Tehran Computer Network

Impact of MAC - Delay Variability Several techniques may be used to mitigate problem, based on minimizing ack transmissions to reduce frequency of send-receive turnaround and contention between acks and data Piggybacking link layer acks with data Sending fewer TCP acks - ack every d-th packet (d may be chosen dynamically) but need to use rate control at sender to reduce burstiness (for large d) Ack filtering - Gateway may drop an older ack in the queue, if a new ack arrives reduces number of acks that need to be delivered to the sender Univ. of Tehran Computer Network

Header Compression for Wireless Networks In TCP packet stream, most header bits are identical Van Jacobson’s scheme exploits this observation to compress headers, by only sending the “delta” between the previous and current header Packet losses result in inefficiency, as headers cannot be reconstructed due to lost information Packet losses likely on wireless links [Degermark96] proposes a technique that works well despite single packet loss “twice” algorithm if current packet fails TCP checksum, assume that a single packet is lost apply delta for the previous packet twice to the current header, and test checksum again Univ. of Tehran Computer Network

Automatic TCP Buffer Tuning Using too small buffers can yield poor performance Using too large buffers can limit number of open connections Automatic mechanisms to choose buffer size dynamically would be useful Univ. of Tehran Computer Network

Sources of problems? Misinterpretation of packet loss Frequent path breaks Effect of path length Misinterpretation of congestion window Asymmetric link behavior: location dependent contention Uni-directional path: each Ack requires RTS-CTS-data-Ack, more than 70 bytes of overhead Multipath routing: out of order packet and dupAck. Network partitioning and remerging Sliding Window: size of the window Univ. of Tehran Computer Network

Design goals Maximize throughput per connection Throughput fairness Minimum connection setup and maintenance overhead. Mechanisms for congestion and flow controls Reliable and unreliable connections Adapt to the dynamics of the network. Resource, Bandwidth, used efficiently. Aware of resource, battery, constraints. End to end semantics Use information from the lower layer Well-defined cross-layer interaction for effective and scalable protocol Univ. of Tehran Computer Network

Different approaches Adapt TCP for Ad hoc New Transport protocols Split-TCP End to end approaches Mostly the same problems discussed in Wireless TCP New Transport protocols Application Control Transport Protocol (ACTP) Ad Hoc Transport Protocol (ATP) Univ. of Tehran Computer Network

ACTP protocol A light weight transport layer protocol Reliability is left to the application It is like UDP with feedback It supports priority Advantages It is scalable No congestion window, then, path break does not affect much thoughput Disadvantages: Not compatible with TCP Might cause congestion in very large ad hoc Networks Univ. of Tehran Computer Network

ATP protocol A reliable transport layer protocol Coordination between different layers of the protocol stack. Rate based Transmission Transmission is scheduled by timer No need for self clocking Avoid burstiness Decoupling of congestion control and reliability. Assisted Congestion control: regulate rate based on the feedback from network TCP friendliness and fairness Univ. of Tehran Computer Network

ATP protocol Intermediate node: keep Qt and Tt as the average queuing and transmission delay. They are computed over all packet Each packet has a D field, rate feedback, which is the maximum of Qt + Tt in the upstream nodes the packet travese. Receiver: send periodic feedback to the source with value of D. it runs an epoch time of period E Rate Feedback: an exponential averaging of D, Reliability Feedback: use SACK with bigger blocks (20 here) Flow Control feedback: done by received rate. Univ. of Tehran Computer Network

ATP protocol (cont) Sender: Perform quick start, congestion control, reliability and connection management Quick start: Send a probe packet to calculate available BW by considering D and the rate Three congestion phases: Increase, decrease and maintains Increase: done more aggressively. If the current rate was less the calculated one Decrease: less conservative. Maitain: if the currently rate was close to the feedback rate. Reliability: receiver sends hole periodicly Univ. of Tehran Computer Network

Issues for Further Investigation Univ. of Tehran Computer Network

Link Layer Protocols “Pure” link layer designs that support higher transport performance some recent work in this area as noted earlier Identifying scenarios where link layer solutions are inadequate If TCP-awareness is absolutely needed, provide an interface that can be used by other transport protocols too Univ. of Tehran Computer Network

End-to-End Techniques Existing techniques typically require cooperation from intermediate nodes. Such techniques often not applicable encrypted TCP headers TCP data and acks do not go through same base station End-to-end techniques would rely on information available only at end nodes Harder to design due to lack of complete information about errors Explicit Notifications may make that easier Univ. of Tehran Computer Network

Impact of Congestion Losses Past work typically evaluates performance in absence of congestion Relative performance improvement may change substantially when congestion occurs performance improvement may reduce if congestion is dominant, or if RTO becomes larger due to wireless errors Univ. of Tehran Computer Network

Multiple TCP Transfers Past work typically measures a single TCP connection over wireless TCP throughput is the metric of choice When multiple connections share a wireless link, other performance metrics may make sense fairness aggregate throughput Relative performance improvements of various schemes may change when multiple connections are considered Univ. of Tehran Computer Network

TCP Window & RTO Settings After a Move Congestion window & RTO size at connection open are chosen to be conservative When a route change occurs due to mobility, which values to use? Same as before route change ---- may be too aggressive Same as at connection open ---- may be too conservative Answer unclear some proposals attempt to use same values as before route change, but not clear if that is the best alternative Univ. of Tehran Computer Network

TCP for Mobile Ad Hoc Networks Much work on routing in ad hoc networks Some recent work on TCP for ad hoc networks Need to investigate many issues MAC-TCP interaction routing-TCP interaction impact of route changes on window size, RTO choice after move Univ. of Tehran Computer Network