TRANSMISSION CONTROL PROTOCOL

Similar documents
TRANSMISSION CONTROL PROTOCOL

Impact of transmission errors on TCP performance. Outline. Random Errors

CMPE 257: Wireless and Mobile Networking

Chapter 13 TRANSPORT. Mobile Computing Winter 2005 / Overview. TCP Overview. TCP slow-start. Motivation Simple analysis Various TCP mechanisms

TCP over Wireless PROF. MICHAEL TSAI 2016/6/3

Outline 9.2. TCP for 2.5G/3G wireless

Mobile Communications Chapter 9: Mobile Transport Layer

Mobile Transport Layer

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

Mobile Communications Chapter 9: Mobile Transport Layer

Wireless TCP. TCP mechanism. Wireless Internet: TCP in Wireless. Wireless TCP: transport layer

ECS-087: Mobile Computing

CIS 632 / EEC 687 Mobile Computing

Advanced Computer Networks. Wireless TCP

Improving Reliable Transport and Handoff Performance in Cellular Wireless Networks

Wireless TCP Performance Issues

TCP OVER AD HOC NETWORK

TCP over wireless links

Mobile Transport Layer

Mobile IP and Mobile Transport Protocols

CS 268: Wireless Transport Protocols. Kevin Lai Feb 13, 2002

TCP over Wireless. Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land 1

Mobile Transport Layer Lesson 10 Timeout Freezing, Selective Retransmission, Transaction Oriented TCP and Explicit Notification Methods

Transport layer issues

ICE 1332/0715 Mobile Computing (Summer, 2008)

Supporting mobility only on lower layers up to the network layer is not

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

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

Does current Internet Transport work over Wireless? Reviewing the status of IETF work in this area

TCP PERFORMANCE FOR FUTURE IP-BASED WIRELESS NETWORKS

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 30, 2018

TCP Congestion Control

TCP Congestion Control

Mobile & Wireless Networking. Lecture 10: Mobile Transport Layer & Ad Hoc Networks. [Schiller, Section 8.3 & Section 9] [Reader, Part 8]

A Comparison of Mechanisms for Improving TCP Performance over Wireless Links

Congestion Control in TCP

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

Data Link Control Protocols

CS519: Computer Networks. Lecture 5, Part 4: Mar 29, 2004 Transport: TCP congestion control

CSCI Topics: Internet Programming Fall 2008

PERFORMANCE ANALYSIS OF SNOOP TCP WITH FREEZING AGENT OVER CDMA2000 NETWORKS

image 3.8 KB Figure 1.6: Example Web Page

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

Lecture 16: Wireless Networks

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP

Lecture 15: Transport Layer Congestion Control

TCP congestion control:

Transport Protocols and TCP

Computer Networking Introduction

Outline Computer Networking. TCP slow start. TCP modeling. TCP details AIMD. Congestion Avoidance. Lecture 18 TCP Performance Peter Steenkiste

Chapter III: Transport Layer

CSCI Topics: Internet Programming Fall 2008

TCP for Wireless Networks

EE122 MIDTERM EXAM: Scott Shenker, Ion Stoica

Chapter 3 Transport Layer

Wireless Ad Hoc and Sensor Networks (Transport Layer) Introduction : Challenge. Which transport layer protocols? Traditional TCP

UNIT IV -- TRANSPORT LAYER

Lecture 15: TCP over wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 13, Thursday

COMP/ELEC 429/556 Introduction to Computer Networks

Overview. TCP congestion control Computer Networking. TCP modern loss recovery. TCP modeling. TCP Congestion Control AIMD

Chapter 09 Network Protocols

Chapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control

Chapter 12 Network Protocols

Mid Term Exam Results

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

cs/ee 143 Communication Networks

Problem 7. Problem 8. Problem 9

A thesis submitted to the Faculty of Graduate Studies and Research. in partial fulfillment of the requirements for the degree of

Outline. CS5984 Mobile Computing

ETSF10 Internet Protocols Transport Layer Protocols

Recap. TCP connection setup/teardown Sliding window, flow control Retransmission timeouts Fairness, max-min fairness AIMD achieves max-min fairness

Transport Protocols & TCP TCP

Study of Proposed Methods for Improving TCP Performance Over Wireless Links. Anshuman Sinha, Schlumberger, Austin Technology Center

Chapter 3 Review Questions

TCP Congestion Control

Advanced Computer Networks

TCP over Wireless Networks Using Multiple. Saad Biaz Miten Mehta Steve West Nitin H. Vaidya. Texas A&M University. College Station, TX , USA

Advanced Computer Networks

TCP Congestion Control

ADVANCED COMPUTER NETWORKS

CS 43: Computer Networks. 19: TCP Flow and Congestion Control October 31, Nov 2, 2018

CS 349/449 Internet Protocols Final Exam Winter /15/2003. Name: Course:

CSCD 330 Network Programming Winter 2015

CSC 4900 Computer Networks: TCP

THE increasing popularity of wireless networks indicates

Congestions and Control Mechanisms in Wired and Wireless Networks

Chapter 3 Transport Layer

Exercises TCP/IP Networking With Solutions

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

CE693: Adv. Computer Networking

CS Transport. Outline. Window Flow Control. Window Flow Control

Fast Retransmit. Problem: coarsegrain. timeouts lead to idle periods Fast retransmit: use duplicate ACKs to trigger retransmission

Lecture 11. Transport Layer (cont d) Transport Layer 1

The Transport Layer Congestion control in TCP

Congestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2014

TCP Congestion Control in Wired and Wireless networks

Enhancing TCP Throughput over Lossy Links Using ECN-Capable Capable RED Gateways

Page 1. Outline : Wireless Networks Lecture 16: Wireless and the Internet. Internet Architecture Assumptions. Mobility. Link Heterogeneity

Homework #4. Due: December 2, 4PM. CWND (#pkts)

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Transcription:

COMP 635: WIRELESS & MOBILE COMMUNICATIONS TRANSMISSION CONTROL PROTOCOL Jasleen Kaur Fall 2017 1 Impact of Wireless on Protocol Layers Application layer Transport layer Network layer Data link layer Physical layer service location new/adaptive applications multimedia congestion/flow control uality of service addressing, routing device location hand-over authentication media access/control multiplexing encryption modulation interference attenuation freuency 2 1

Outline TCP Congestion Control Ø Issues in wireless networks Link-layer approaches Ø Reliability through retransmissions Splitting Ø Proxy-based solutions Snooping Ø TCP-aware link layers Making TCP smarter TCP-unaware approaches 3 TCP Congestion Control Goal: Ø Maintain transfer rate at the maximum that all involved resources can handle (max-min fairness) Approach: Ø Ramp up sending rate till congestion detected Rapid ramp up initially (Slow-Start) Cautious ramp-up subseuently (Congestion Avoidance) Ø If congestion, reduce sending rate and resume ramp-up Mechanisms: maintain congestion-window (Cwin) Ø Increasing Cwin: Slow Start, Congestion Avoidance Ø Decreasing Cwin: Retransmission Timeouts, Fast Retransmit/Recovery 4 2

Congestion Avoidance Source Destination Additive Increase: Ø Increment cwin by 1 MSS per RTT Multiplicative Decrease: Ø Shrink cwin by at least 50% on packet loss KB 70 60 50 40 30 20 10 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 Time (seconds) 10.0 5 Slow Start Behavior Goal: Ø Hastening up initial bandwidth discovery Source Destination For every new ACK received: Ø Increase exponentially (not linearly), when cwin < SSThresh Double the number of packets-in-transit every RTT After recovery from timeout: SSThresh = cwin/2 cwin = 1 6 3

Fast Retransmit/Recovery (FR/R) Fast Retransmit: Ø Goal: Triggering retransmissions sooner than timeouts Ø Exploit: Receivers send ACKs (when data received) even if they are duplicates of earlier ACKs Ø Heuristic: Use receipt of 3 duplicate ACKs as indicator that next segment was lost Fast Recovery: Ø Decrease cwin to SSThresh after fast retransmit Packet 1 Packet 2 Packet 3 Packet 4 Packet 5 Packet 6 Retransmit packet 3 Sender Receiver ACK 1 ACK 2 ACK 2 ACK 2 ACK 2 ACK 6 7 AIMD Why is increase additive and decrease multiplicative? Ø Willingness to reduce congestion window greater than willingness to increase it Ø Necessary condition for stability Ø Conseuences of having too large a window are worse than having too small a window 8 4

Challenge in Wireless Networks TCP congestion-detection mechanisms assume: Ø A packet loss is indicative of network congestion Ø Hence, source needs to regulate flow by reducing Cwin Assumption closely true for wired networks (BER ~10-6 ) But with wireless, Ø Losses due to: Errors (due to fading, fluctuations) Mobility (user changes network) Ø Need not reduce CW in response Ø But, TCP is e2e à CANNOT see the network Thus, TCP cannot classify the cause of loss à CHALLENGE Dilemma: End-to-end interpretation of link-local metric 9 The Problem TCP connection application application application transport transport transport network link network link lossy network link physical physical physical Wireline wireless 10 5

Impact of Misclassification Seuence number (bytes) 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 WaveLAN 11 SPLIT CONNECTION APPROACHES No Changes To Wired Internet 12 6

1 TCP = ½ TCP + ½ (TCP or XXX) Per-TCP connection state TCP connection TCP connection application transport application transport rxmt application transport network network network link link link physical physical physical Base Station wireless 13 Splitting Approaches Indirect TCP [Baker97] Ø Fixed host (FH) to base station (BS) uses TCP Ø BS to mobile host (MH) uses another TCP connection Selective Repeat [Yavatkar94] Ø Over FH to BS: Use TCP Ø Over BS to MH: Use selective repeat on top of UDP No congestion control over wireless [Haas97] Ø Also use less headers over wireless Header compression 14 7

Indirect TCP (I-TCP) Splitting of the TCP connection (at, e.g., the foreign agent) into 2 TCP connections Ø Optimized TCP protocol for mobile hosts Ø No changes to the TCP protocol for wired-internet hosts mobile host access point (foreign agent) wired Internet wireless TCP standard TCP 15 I-TCP Socket and State Migration access point 1 socket migration and state transfer Internet mobile host access point 2 16 8

Advantages: Indirect TCP No changes to the fixed network necessary Ø No changes for the hosts (TCP protocol) necessary Millions of computers use (variants of) this protocol Ø All current optimizations to TCP still work Wireless transmission errors contained Ø Do not propagate into wired network Simple to control Ø Mobile TCP is used only for one hop (FA à MH) Very fast retransmission of packets is possible Ø The short delay on the mobile hop is known 17 Issues With Splitting E2E semantics totally broken Ø 2 separate connections Ø An ACK no longer means that receiver got packet Foreign agents might crash BS maintains hard state for each connection Ø What if MH disconnected from BS? Ø Huge buffer reuirements at BS Ø What if BS fails? Ø Handoff between BS reuires state transfer Ø Higher latency possible (buffering, forwarding) What if Data and ACK travel on different routes? Ø BS will not see the ACK at all splitting not feasible 18 9

LINK LAYER APPROACHES Snooping 19 Link Layer Mechanisms Forward error corrections Ø Add redundancy in the packets to correct bit-errors Ø TCP retransmissions can be alleviated Link layer retransmissions Ø MAC layer ACKnowledgments Ø Overhead only when errors occur (unlike FEC) Such mechanisms reuire no change in TCP Is that breaking e2e argument?? 20 10

Issues with Link Layer Mechanisms Link layer cannot guarantee reliability Ø Have to drop packets after some finite limit Retransmission can take uite long Ø Can be significant fraction of RTT TCP can timeout and retransmit the same packet again Ø Increasing RTO can avoid this But that impacts TCP s recovery from congestion Head of the line blocking Ø Link layer has to keep retransmitting even if bad channel Ø Blocks other streams 21 Findings Link layer retransmission good Ø When channel errors infreuent Ø When retransmit time << RTO Ø When modifying TCP is not an acceptable solution 22 11

Early approach: Snooping TCP Transparent extension of TCP within the foreign agent Ø Buffering of packets sent to the mobile host Ø Local retransmission: Lost packets on wireless link (both directions!) retransmitted immediately by the mobile host or foreign agent Ø Foreign agent snoops the packet flow Recognizes and filters ACKs in both directions Ø Changes to TCP only within the foreign agent local retransmission foreign agent correspondent host wired Internet mobile host snooping of ACKs buffering of data end-to-end TCP connection 23 Snooping TCP Data transfer to the mobile host Ø FA buffers data until it receives ACK of the MH Ø FA detects packet loss via duplicated ACKs or time-out Ø Fast retransmission possible, transparent for the fixed network Data transfer from the mobile host Ø FA detects packet loss on wireless link via seuence numbers Ø FA answers directly with a NACK to the MH Ø MH can now retransmit data with only a very short delay Integration of the MAC layer Ø MAC layer often has similar mechanisms to those of TCP Ø It can discard duplicated packets due to retransmissions 24 12

Snoop [Balakrishnan95acm] 1600000 bits/sec 1200000 800000 400000 base TCP Snoop 0 2 Mbps Wireless link 16K 32K 1/error rate 64K 128K (in bytes) 256K no error 25 Issues with Snoop Link layer needs to be TCP aware Ø Smelling cross layer Ø Link layer needs to buffer and perform sliding window Snooping does not isolate the wireless link as good as I-TCP Not useful when TCP headers encrypted Not feasible when Data and ACK travel different routes RTT estimates can go up with link layer retransmissions Ø Affects performance of Snoop 26 13

SOME OTHER APPROACHES 27 TCP-Unaware, ELN Delayed DupACKs Ø Receiver waits for sometime before sending DupACK Ø If link retransmission solves problem Then TCP sender does not send redundant packet Explicit Loss Notification (ELN) Ø BS remembers only packet s seuence numbers Ø When DupACKs return through them, they check Ø If packet was received by BS, then colors the DupACK Ø Sender realizes that packet lost on wireless link Does not cut down CW, just retransmits that packet 29 14

Receiver-Based TCP Receiver estimates cause of packet loss Ø If estimate == wireless loss, sets ELN bit FH 12 11 10 BS MH FH BS T 12 10 MH 11 Congestion loss FH BS 2 T 12 11 Error loss 10 MH 30 TCP Westwood Sender uses packet pairs to estimate available bandwidth Ø After a packet loss, sets SSThresh according to this estimate Estimate likely to yield in a fast (yet safe) recovery after packet loss Ø Packet loss made less expensive Issues: Ø AB estimation non-trivial, even in wired networks Ø Loss detection can still be expensive 31 15

Summary Reliable and in-order packet delivery important Ø TCP aims to support these features Ø Implements congestion control and flow control TCP widely tuned for wireline networks Ø Observed to be efficient on the internet When network periphery has wireless last mile Ø TCP exhibits myriad problems Ø Mainly because of: misclassification between congestion and channel errors Invalidity of FIFO ueuing models Several solution approaches Ø à but many open problems 32 16