Transport layer in ad hoc and sensor network

Slides:



Advertisements
Similar presentations
An Adaptive TCP Protocol for Lossy Mobile Environment Choong Seon Hong Feb. 27, 2003.
Advertisements

U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science TCP over Wireless Networks CS 653, Fall 2010.
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.
1 Transport Protocols & TCP CSE 3213 Fall April 2015.
Transmission Control Protocol (TCP)
Hui Zhang, Fall Computer Networking TCP Enhancements.
CMPE 257 Spring CMPE 257: Wireless and Mobile Networking Spring 2005 E2E Protocols (point-to-point)
Improving TCP Performance over Mobile Ad Hoc Networks by Exploiting Cross- Layer Information Awareness Xin Yu Department Of Computer Science New York University,
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
CMPE 257: Wireless and Mobile Networking
Internet Networking Spring 2003 Tutorial 12 Limited Transmit RFC 3042 Long Thin Networks RFC 2757.
CMPE 257 Spring CMPE 257: Wireless and Mobile Networking Spring 2002 Week 6.
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.
CS 552 Wireless TCP slides by B. Nath. Wireless TCP Packet loss in wireless networks may be due to –Bit errors –Handoffs –Congestion (rarely) –Reordering.
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.
TCP in Heterogeneous Network Md. Ehtesamul Haque # P.
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.
Ch 23 Ameera Almasoud Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
Wireless TCP February 22, 2002 © 2002 Yongguang Zhang CS 395T - Mobile Computing and Wireless Networks Department of Computer SciencesTHE UNIVERSITY OF.
Error Checking continued. Network Layers in Action Each layer in the OSI Model will add header information that pertains to that specific protocol. On.
TCP: flow and congestion control. Flow Control Flow Control is a technique for speed-matching of transmitter and receiver. Flow control ensures that a.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
1 Transport Layer Computer Networks. 2 Where are we?
CIS 725 Wireless networks. Low bandwidth High error rates.
Transport Layer Issue in Wireless Ad Hoc and Sensor Network
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.
Qian Zhang Department of Computer Science HKUST Advanced Topics in Next- Generation Wireless Networks Transport Protocols in Ad hoc Networks.
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.
TCP PERFORMANCE OVER AD HOC NETWORKS Presented by Vishwanee Raghoonundun Assisted by Maheshwarnath Behary MSc Computer Networks Middlesex University.
TRANSPORT PROTOCOLS FOR WLANs and AD HOC NETWORKS Ian F. Akyildiz Broadband & Wireless Networking Laboratory School of Electrical and Computer Engineering.
Wireless TCP Prasun Dewan Department of Computer Science University of North Carolina
1 Impact of transmission errors on TCP performance (Nitin Vaidya)
Obile etworking M-TCP : TCP for Mobile Cellular Networks Kevin Brown and Suresh Singh Department of Computer Science Univ. of South Carolina.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transport over Wireless Networks Myungchul Kim
ECE 695 Sp 2006 Jim Catt TCP Functions TCP is a connection oriented protocol Primary functions  TCP sets up and maintains end-to-end connection between.
Wireless TCP. References r Hari Balakrishnan, Venkat Padmanabhan, Srinivasan Seshan and Randy H. Katz, " A Comparison of Mechanisms for Improving TCP.
Copyright © Lopamudra Roychoudhuri
Chapter 24 Transport Control Protocol (TCP) Layer 4 protocol Responsible for reliable end-to-end transmission Provides illusion of reliable network to.
TCP-Cognizant Adaptive Forward Error Correction in Wireless Networks
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.
TCP: Transmission Control Protocol Part II : Protocol Mechanisms Computer Network System Sirak Kaewjamnong Semester 1st, 2004.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
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 Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
ECE 4110 – Internetwork Programming
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 3: Transport.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Transmission Control Protocol (TCP) TCP Flow Control and Congestion Control CS 60008: Internet Architecture and Protocols Department of CSE, IIT Kharagpur.
1 Ad-hoc Transport Layer Protocol (ATCP) EECS 4215.
Tailoring TCP for Wireless Networks. Credits Nitin Vaidya –Tutorial on TCP for Wireless and Mobile Hosts, MobiCom ’99 Balakrishnan, et al. –A Comparison.
TCP over Wireless PROF. MICHAEL TSAI 2016/6/3. TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum.
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
UNIT-V Transport Layer protocols for Ad Hoc Wireless Networks
Wireless Transport.
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
TCP for Wireless Networks
Impact of transmission errors on TCP performance
Presentation transcript:

Transport layer in ad hoc and sensor network Wireless Ad-Hoc Networking (ELG7178F) Breeson Francis December 5th 2011

Outline Introduction to TCP TCP Mechanisms Problems in TCP Approaches References Transport Layer in ad-hoc and sensor networks

Introduction to TCP TCP is a connection based protocol 3 way Hand-shake TCP is a reliable protocol achieved by means of retransmissions TCP enables data to be received in an ordered way End-to-end semantics Acknowledgements sent to TCP sender to confirm delivery of data received by TCP receiver Ack for data sent only after data has reached receiver TCP detects data duplication TCP provides flow and congestion control Transport Layer in ad-hoc and sensor networks

Introduction to TCP (ctnd) TCP Client/Server Connection Client Server TCP SYN TCP SYN/ACK Connection setup TCP ACK HTTP request HTTP response Data transmission HTTP response FIN ACK Connection Termination FIN ACK Transport Layer in ad-hoc and sensor networks

TCP Mechanisms Sliding Window Slow Start Is triggered at the beginning of connection or when a timeout(RTO) occurs Congestion window (cwnd) is set to 1. cwnd is decided by sender, based on network conditions cwnd is increased exponentially Slow start ends when cwnd reaches ssthresh, congestion avoidance then onwards Offered Window (advertised by receiver) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Sent and ack received Sent, not acked Can’t send until window moves Usable window Transport Layer in ad-hoc and sensor networks

TCP Mechanisms (ctnd) Congestion Avoidance Uses congestion window (cwnd) for flow control Additive increase (at most 1 segment for each RTT) Multiplicative decrease, cwnd set to 1/2 of its value when congestion loss occurs Sender can send up to minimum of advertised window and cwnd Congestion avoidance Slow start threshold ssthresh = maximum of { min(cwnd,receiver’s advertised window)/2 and 2 segment size } Slow start Transport Layer in ad-hoc and sensor networks

TCP Mechanisms (ctnd) Fast Retransmission and Fast Recovery Fast retransmit occurs when a packet is lost, but latter packets get through When 3 or more dupacks are received, send the missing segment immediately Start congestion avoidance(Fast Recovery) Set cwnd to ssthresh(half the current cwnd) plus no. of dupacks times segment size Transport Layer in ad-hoc and sensor networks

Problems in Wireless Networks High bit error rate Packets can be lost due to “noise” Unpredictability/Variability Difficult to estimate time-out, RTT, bandwidth Increased collision due to hidden terminal Hand-Offs Mobile users switch base stations Multipath Routing Multiple paths lead to significant amount of out-of-order packets, which in turn generates duplicate acks Long connections have poor performance Multi-hop connections have less throughput due to inherent fading properties of wireless channels Transport Layer in ad-hoc and sensor networks

Problems in Wireless Networks Route Instability Leads to OOO packets Transport Layer in ad-hoc and sensor networks

Problems in Wireless Networks Network Partitioning Exponential back off of TCP’s RTO mechanism RTO doubled after every timeout Periods of inactivity even when the network is connected Transport Layer in ad-hoc and sensor networks

Approaches Link level mechanisms Split connection approach TCP-Aware link layer Explicit notification Feedback based scheme Ad-hoc Transport Protocol (ATP) Transport Layer in ad-hoc and sensor networks

Approaches Link level mechanisms Forward Error Correction (FEC) Can be used to correct small number of errors Correctable errors hidden from TCP sender Applied in situations where retransmissions are costly or impossible FEC incurs overhead where there are no errors Transport Layer in ad-hoc and sensor networks

Approaches Link level mechanisms Link Level Retransmission Retransmit a packet at link level if error detected Retransmission overhead incurred only if error occurs, unlike FEC TCP connection MH wireless physical link network transport application rxmt FH BS Transport Layer in ad-hoc and sensor networks

Approaches Link level mechanisms Link Level Retransmission Hides wireless losses from TCP Link layer modifications required at both ends of wireless link TCP need not be modified, although TCP timeout should be large enough to accommodate link level retransmissions Out of Order (OOO) packet delivery, which may in turn trigger Fast Retransmit Transport Layer in ad-hoc and sensor networks

Approaches Split Connection Approach FH-MH = FH-BS + BS-MH End-to-end TCP connection is broken into wired part and wireless part Connection between mobile host(MH) and fixed host(FH) through base station(BS) is split into 2 TCP connections FH-MH = FH-BS + BS-MH Mobile Host Access Point (Base Station) Wired Network Wireless TCP Standard TCP Fixed Host Transport Layer in ad-hoc and sensor networks

Approaches Split Connection Approach Split connection results in independent flow/error control, packet size, timeouts at each part Optimized TCP protocol can be introduced in the wireless segment TCP connection TCP connection FH MH BS wireless physical link network transport application rxmt Transport Layer in ad-hoc and sensor networks

Approaches Split Connection Approach Loss of end-to-end semantics, an acknowledgement to a sender does not any longer mean that the intended receiver really got the packet Higher latency due to buffering at base station During hand-offs BSs should do state transfer along with the buffers, thereby increase hand-off latency. BS Failure results in loss of data. Buffers tend to get full due to slower wireless link Wired Network Access Point (BS1) State Transfer Mobile Host Fixed Host Access Point (BS2) Transport Layer in ad-hoc and sensor networks

Approaches Split Connection in multihop wireless network Many short TCP connections between proxies along the connection Transport Layer in ad-hoc and sensor networks

Approaches Split Connection in multihop wireless network Proxies buffer packets from the previous proxy or the source and acknowledges their receipt with Local Acknowledgements(LACKs) . Any dropped packets are recovered from the most recent proxy but not from the source. Enhance parallelism. Reduce bandwidth consumption on retransmission. Optimal frequency of proxy placement is not clear. Transport Layer in ad-hoc and sensor networks

Approaches TCP Aware Link Layer Retains local recovery of Split Connection approach and link level retransmission Improves on split connection end-to-end semantics retained soft state at base station, instead of hard state TCP connection MH wireless physical link network transport application rxmt FH BS Transport Layer in ad-hoc and sensor networks

Approaches TCP Aware Link Layer Buffers data at BS for link layer retransmission When dupacks received by BS from MH, retransmit on wireless link, if present in buffer. Hides wireless losses from sender Prevents fast retransmit at sender TCP by dropping dupacks at BS Requires modification at BS only Link layer at base station needs to be TCP-aware Not useful if TCP headers are encrypted (IPsec) Cannot be used if TCP data and TCP acks traverse different paths (both do not go through the same base station) Transport Layer in ad-hoc and sensor networks

Approaches Explicit Notification Explicit Loss Notification (MH is TCP Sender) Wireless link first on the path from sender to receiver The base station keeps track of holes in the packet sequence received from the sender When a dupack is received from the receiver, the base station compares the dupack sequence number with the recorded holes, an ELN bit is set in the dupack When sender receives dupack with ELN set, it retransmits packet, but does not reduce congestion window Record hole at 2 4 3 2 1 4 3 1 MH BS FH wireless 1 1 1 1 Dupack with ELN set Transport Layer in ad-hoc and sensor networks

Approaches Explicit Notification Explicit Loss Notification (MH is TCP Receiver) Caches TCP sequence numbers at base station, similar to Snoop. But does not cache data packets, unlike Snoop. Duplicate acks are tagged with ELN bit before being forwarded to sender if sequence number for the lost packet is cached at the base station 39 Sequence numbers cached at base station 38 37 39 38 37 FH BS MH 37 37 Transport Layer in ad-hoc and sensor networks Dupack with ELN

Approaches Feedback based scheme in multihop wireless network Intermediate MH detects mobility of next MH along the path to destination Triggers Route Failure Notification(RFN) to source Each intermediate MH validates RFN and propagates to the source On receiving RFN, source Stops sending further packets Freezes all its timers Stores Window size and packets to be sent S C B D A RFN RFN Transport Layer in ad-hoc and sensor networks

Approaches Feedback based scheme in multihop wireless network Source remains in the snoozed state until it receives Route Re-establishment(RRN) message A RRN is generated either by the node which generated RFN or an intermediate node which learned a new route to destination Source starts from the frozen state rather than restarting S C B D A RRN E F Transport Layer in ad-hoc and sensor networks

Approaches Feedback based scheme in multihop wireless network TCP has to be modified Requires support from intermediate nodes Requires support from underlying routing protocol Transport Layer in ad-hoc and sensor networks

Approaches Ad-hoc Transport Protocol (ATP) A Rate-based Transport Layer Protocol Feedback from intermediate nodes on path failure, queuing delay, periodic feedback on rate Rate based transmission Entirely rate-controlled(no window concept) Evenly distribute transmissions over time(reduce burstiness) Decoupling of congestion control and reliability Does not require the arrival of ACKs to clock out segment Does not employ cumulative ACKs but solely relies on periodic SACK to identify losses Transport Layer in ad-hoc and sensor networks

Approaches Ad-hoc Transport Protocol (ATP) Estimates rate accurately Reduce traffic on the reverse path Recover more than one lost segment at a time Incompatibility problem Require the assistance from the intermediate nodes Fastest possible time to detect and recover packet lost is 1 second Transport Layer in ad-hoc and sensor networks

Conclusions FEC No Link Level Link Level Retransmission Scheme Sender Support Receiver Support Intermediate Node Support Routing Protocol Support FEC No Link Level Link Level Retransmission Split Connection Transport Level TCP Aware Link Level Retransmission Explicit Loss Notification Yes Feedback Mechanism ATP Transport Layer in ad-hoc and sensor networks

Questions While it takes three segments to establish a TCP connection, it takes four to terminate a connection. Why? Ans. This is caused by TCP's half-close. Since a TCP connection is full- duplex (that is, data can be flowing in each direction independent of the other direction), each direction must be shut down independently. The rule is that either end can send a FIN when it is done sending data. When a TCP receives a FIN, it must notify the application that the other end has terminated that direction of data flow. The sending of a FIN is normally the result of the application issuing a close. Transport Layer in ad-hoc and sensor networks

Questions TCP sends a segment at 12:31:58. It receives the acknowledgement at 12:32:03. What is the new value of RTT if the previous RTT was four seconds? (RTT = a * previous RTT + (1- a) current RTT and a = 90 % ) Ans. Current RTT = 5 seconds previous RTT = 4 seconds New RTT = 0.9 * 4 + (1 – 0.9) * 5 = 4.1 seconds Transport Layer in ad-hoc and sensor networks

Questions While accessing www.uOttawa.ca from a rogers connection it was observed that the bandwidth obtained was 120,000 bits/sec with a 128 ms delay, whereas the over wind mobile it was observed to be 33,000 bits/sec with a delay of 500 ms. Wind mobile customer is facing issues of frequent disconnections and extreme slowness. On debugging it was found out that the problem is with TCP window sizing. Find out what is the window size that should be set in order for the wind customer to access properly. Also find out the probable window size for the rogers customer? (Capacity(bits) = bandwidth (bits/sec) * round-trip time (sec)) Transport Layer in ad-hoc and sensor networks

Questions Ans. Capacity(bits) = bandwidth (bits/sec) * round-trip time (sec)) For wind customer: Capacity = 33000 bits/sec * 500 ms = 2062 bytes For Rogers customer: Capacity = 120000 bits/sec * 128 ms = 1920 bytes Window size for wind connection should be set to at least 2062 bytes and for rogers is at least 1920 bytes. Transport Layer in ad-hoc and sensor networks

References Nitin H. Vaidya, “TCP for Wireless and Mobile Hosts”. Prasanthi. S, Sang-Hwa Chung, “An Efficient Algorithm for the Performance of TCP over Multi-hop Wireless Mesh Networks”, Seventh International Conference on Information Technology 2010. Chengdi Lai, Ka-Cheong Leung, Victor O.K. Li, “Enhancing Wireless TCP: A Serialized-Timer Approach”, IEEE INFOCOM 2010. K. Chandran, S. Raghunathan, S. Venkatesan, R. Prakash, "A Feedback-based Scheme for Improving TCP Performance in Ad Hoc Wireless Networks", IEEE Personal Communications Magazine. K. Sundaresan, V. Anantharaman, H.-Y. Hsieh, R. Sivakumar, "ATP: A Reliable Transport Protocol for Ad-hoc Networks", in Proc. of MobiHoc, 2003. Nitin H. Vaidya, “TCP for Wireless and Mobile Hosts”. Syed Natif Nawaz, Joseph Toney, “Protocols for Improving Performance of TCP over Wireless Links”. Baruch Awerbuch, Dr. Amitabh Mishra, “Transport Layer for Mobile Ad hoc Networks”. Ivan Stojmenovic, “Handbook of Wireless Networking and Mobile Computing”. Azzedine Boukerche, “Handbook of Algorithms for wireless networking and mobile networking”. Behrouz A. Forouzan, “TCP/IP Protocol Suite”. W. Richard Stevens, “TCP/IP Illustrated Volume 1: The Protocols “ . Transport Layer in ad-hoc and sensor networks

bfran097@uottawa.ca Presenter Class Thank You Thank You THE END Anytime ! Transport Layer in ad-hoc and sensor networks