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

Similar documents
TRANSMISSION CONTROL PROTOCOL

Mobile Transport Layer

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

Outline 9.2. TCP for 2.5G/3G wireless

TRANSMISSION CONTROL PROTOCOL

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

Mobile Communications Chapter 9: Mobile Transport Layer

CMPE 257: Wireless and Mobile Networking

Mobile Communications Chapter 9: Mobile Transport Layer

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

Advanced Computer Networks. Wireless TCP

Improving Reliable Transport and Handoff Performance in Cellular Wireless Networks

TCP OVER AD HOC NETWORK

CIS 632 / EEC 687 Mobile Computing

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

Mobile IP and Mobile Transport Protocols

Midterm Review. EECS 489 Computer Networks Z. Morley Mao Monday Feb 19, 2007

ECS-087: Mobile Computing

Investigations on TCP Behavior during Handoff

Outline. Connecting to the access network: DHCP and mobile IP, LTE. Transport layer: UDP and TCP

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

TCP over wireless links

Telecommunication Services Engineering Lab. Roch H. Glitho

Problem 7. Problem 8. Problem 9

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

Chapter 3 Review Questions

The Transport Layer: TCP & Congestion Control

Transport Protocols and TCP: Review

Lecture 3: The Transport Layer: UDP and TCP

Mobile Transport Layer

CS321: Computer Networks Congestion Control in TCP

6.1 Internet Transport Layer Architecture 6.2 UDP (User Datagram Protocol) 6.3 TCP (Transmission Control Protocol) 6. Transport Layer 6-1

Q23-5 In a network, the size of the receive window is 1 packet. Which of the follow-ing protocols is being used by the network?

TCP Congestion Control

TCP Congestion Control

Computer Networking Introduction

TCP Congestion Control

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

Fall 2012: FCM 708 Bridge Foundation I

COMP/ELEC 429/556 Introduction to Computer Networks

DualRTT: Enhancing TCP Performance During Delay Spikes

Congestion Control. Brighten Godfrey CS 538 January Based in part on slides by Ion Stoica

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

Lecture 4: Congestion Control

Transport Protocols & TCP TCP

Chapter III: Transport Layer

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

Contents. CIS 632 / EEC 687 Mobile Computing. TCP in Fixed Networks. Prof. Chansu Yu

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

Congestions and Control Mechanisms in Wired and Wireless Networks

ECE 435 Network Engineering Lecture 10

Reliable Transport II: TCP and Congestion Control

Page 1. Review: Internet Protocol Stack. Transport Layer Services. Design Issue EEC173B/ECS152C. Review: TCP

Lecture 15: Transport Layer Congestion Control

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

TCP based Receiver Assistant Congestion Control

TCP Congestion Control 65KB W

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

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP

cs/ee 143 Communication Networks

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control

Internet Networking recitation #10 TCP New Reno Vs. Reno

Mid Term Exam Results

ECE 610: Homework 4 Problems are taken from Kurose and Ross.

This sequence diagram was generated with EventStudio System Designer (

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

Transport layer issues

Wireless TCP Performance Issues

ECE 461 Internetworking. Problem Sheet 6

Computer Network Fundamentals Spring Week 10 Congestion Control Andreas Terzis

Transport Protocols and TCP

Homework 3 50 points. 1. Computing TCP's RTT and timeout values (10 points)

Flow and Congestion Control Marcos Vieira

TCP Congestion Control in Wired and Wireless networks

Outline. CS5984 Mobile Computing

Intro to LAN/WAN. Transport Layer

TCP congestion control:

Performance Evaluation of TCP over WLAN with the Snoop Performance Enhancing Proxy

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

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

Advanced Computer Networks

Mobile Transport Layer Lesson 02 TCP Data Stream and Data Delivery

Name Student ID Department/Year. Midterm Examination. Introduction to Computer Networks Class#: 901 E31110 Fall 2007

ICE 1332/0715 Mobile Computing (Summer, 2008)

Chapter 3 Transport Layer

Page 1. Review: Internet Protocol Stack. Transport Layer Services EEC173B/ECS152C. Review: TCP. Transport Layer: Connectionless Service

TCP Review. Carey Williamson Department of Computer Science University of Calgary Winter 2018

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

TCP Congestion Control in Wired and Wireless Networks

Congestion control in TCP

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 10

image 3.8 KB Figure 1.6: Example Web Page

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

Outline. TCP: Overview RFCs: 793, 1122, 1323, 2018, Development of reliable protocol Sliding window protocols

CMPE 150 Winter 2009

Improving TCP End to End Performance in Wireless LANs with Snoop Protocol

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

Chapter 6. What happens at the Transport Layer? Services provided Transport protocols UDP TCP Flow control Congestion control

Improving Performance of Transmission Control Protocol for Mobile Networks

Transcription:

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

2 TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum number of bytes that can be sent without receiving acknowledgements. Larger window size == faster rate Three major mechanisms: Slow start Congestion avoidance Fast retransmit

3 Slow start + congestion avoidance Source Destination Congestion window size = 1 initially. Ssthresh: slow start threshold Slow start: For each received ACK (with a new seq. no. ), the window size is exponentially increased (e.g., doubled). (when the window size is smaller than ssthresh) Congestion avoidance: After reaching ssthresh, the window size is linearly increased. Additive Increase

4 Slow start + congestion avoidance TCP calculates expected round trip time (RTT) and its deviation Timeout: wait time > expected RTT + 4 * deviation Timeout: it signals a packet loss due to congestion (?) When a timeout happens, TCP Tahoe does the following: Dropping ssthresh into half the current window or 2 (multiplicative decrease) Resetting its window size to 1 + enter slow start Double round trip time timer

5 Pseudocode Initially: cwnd = 1; ssthresh = infinite; New ack received: if (cwnd < ssthresh) /* Slow Start*/ cwnd = cwnd + 1; else /* Congestion Avoidance */ cwnd = cwnd + 1/cwnd; Timeout: /* Multiplicative decrease */ ssthresh = cwnd/2; cwnd = 1;

6 cwnd The big picture (with timeouts) Timeout AIMD Timeout Initially: cwnd = 1; ssthresh = infinite; New ack received: if (cwnd < ssthresh) /* Slow Start*/ cwnd = cwnd + 1; else /* Congestion Avoidance */ cwnd = cwnd + 1/cwnd; Timeout: /* Multiplicative decrease */ ssthresh = cwnd/2; cwnd = 1; AIMD ssthresh Slow Start Slow Start Slow Start Time

7 Fast Retransmit Resend a segment after 3 duplicate ACKs Duplicate ACK means that an out-of sequence segment was received cwnd = 1 cwnd = 2 cwnd = 4 Notes: ACKs are for next expected packet Packet reordering can cause duplicate ACKs Window may be too small to get enough duplicate ACKs 3 duplicate ACKs

8 Big problems for TCP High bit error rates: up to 10^-5 bit error rate. Lots of lost packets due to bit errors. Disconnections: Handoff: mobile devices move between base stations / access points. Mobility: mobile devices move in and out of range of the transmitter. Fading: signals blocked by buildings or other obstacles. Round trip time could significantly vary. (Indication of packet loss could be inaccurate) Big problem: packet losses are not necessarily due to congestion! (the assumption of the original TCP)

9

10 Classification of Solutions Link layer Goal: improve the quality of the link layer, hide the losses from TCP Local problems should be solved locally End-to-end Additional considerations are added to TCP to improve its performance Limited performance improvement No modification on the hosts is required Split-connection Wireless usually the last link to the mobile host Isolate that wireless link with the rest of the path (wired) Two TCP connections, bridged at the wireless gateway Use regular TCP for wired links Use a special protocol designed specifically for that wireless link

Peter A. Steenkiste, CMCL, CMU 28 11 I-TCP Indirect TCP (I-TCP) Mobile host Access Point Internet wireless transport Standard TCP

12 I-TCP and Mobility Indirect TCP (I-TCP) Access Point (1) Socket migration and state transfer Internet Mobile Host Access point (2) Peter A. Steenkiste, CMCL, CMU 29

13 I-TCP Advantages No changes in the fixed network / hosts (TCP) Wireless transmission errors do not propagate to the wire-line network Simple and effective Disadvantages End-to-end semantics become less clear Higher end-to-end delay due to buffering and forwarding at the gateway

14 Snooping TCP Transparent extension of TCP within the gateway Hides wireless losses from wired host Buffer packets sent to the mobile host Local retransmission: lost packets on the wireless link, for both directions, are retransmitted immediately by the mobile host or foreign agent Wireless gateway snoops the packet flow so that it can cover up signs of packet loss Recognizes ACK in both directions and suppresses duplicate ACKs

Snooping TCP 15

16 Snooping TCP Data transfer to the mobile host FA buffers data until it receives ACK from the MH FA detects packet loss via duplicated ACKs or timeout Data transfer from the mobile host FA detects packet loss on the wireless link via sequence 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 Similar mechanisms often exist in MAC

17 Snooping TCP Snooping TCP Local Retransmission Wireless Gateway Internet Wired Host Mobile Host Snooping of ACKs Buffering of data End-to-end TCP connection