Advanced Computer Networks. Wireless TCP

Similar documents
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

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

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

Mobile Communications Chapter 9: Mobile Transport Layer

TRANSMISSION CONTROL PROTOCOL

TRANSMISSION CONTROL PROTOCOL

Mobile Communications Chapter 9: Mobile Transport Layer

CMPE 257: Wireless and Mobile Networking

Mobile IP and Mobile Transport Protocols

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

CIS 632 / EEC 687 Mobile Computing

Mobile Transport Layer

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

ECS-087: Mobile Computing

Improving Reliable Transport and Handoff Performance in Cellular Wireless Networks

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

TCP OVER AD HOC NETWORK

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

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

Advanced Computer Networks. Datacenter TCP

TCP over wireless links

Today s Topics. The Problem. MAUI: Making Smartphones Last Longer With Code Offload 10/10/2015. Battery fails to keep up. The Problem.

Internet Networking recitation #10 TCP New Reno Vs. Reno

Transport layer issues

Advanced Computer Networks. Flow Control

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

Telecommunication Services Engineering Lab. Roch H. Glitho

Advanced Computer Networks. IP Mobility

CSE 473 Introduction to Computer Networks. Midterm Exam Review

Wireless TCP Performance Issues

TCP Congestion Control

TCP Congestion Control

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

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

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

Mid Term Exam Results

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

ICE 1332/0715 Mobile Computing (Summer, 2008)

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

IIP Wireless. Presentation Outline

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

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

CS321: Computer Networks Congestion Control in TCP

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

Computer Networking Introduction

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

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

TCP Congestion Control

Chapter 6 MOBILE IP AND TCP

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

image 3.8 KB Figure 1.6: Example Web Page

Congestion Control End Hosts. CSE 561 Lecture 7, Spring David Wetherall. How fast should the sender transmit data?

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

Data Link Control Protocols

TCP so far Computer Networking Outline. How Was TCP Able to Evolve

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

UNIT IV -- TRANSPORT LAYER

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

EECS 122, Lecture 19. Reliable Delivery. An Example. Improving over Stop & Wait. Picture of Go-back-n/Sliding Window. Send Window Maintenance

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

Investigations on TCP Behavior during Handoff

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

Delay Performance of the New Explicit Loss Notification TCP Technique for Wireless Networks

Chapter 3 Transport Layer

Lecture 5: Flow Control. CSE 123: Computer Networks Alex C. Snoeren

Congestion Control. Daniel Zappala. CS 460 Computer Networking Brigham Young University

TCP congestion control:

TCP in Asymmetric Environments

Advanced Computer Networks. Flow Control

TCP Congestion Control in Wired and Wireless networks

RD-TCP: Reorder Detecting TCP

Good Ideas So Far Computer Networking. Outline. Sequence Numbers (reminder) TCP flow control. Congestion sources and collapse

CMPE150 Midterm Solutions

Congestions and Control Mechanisms in Wired and Wireless Networks

Managing Caching Performance and Differentiated Services

More wireless: Sensor networks and TCP on mobile hosts

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

Lecture 7: Flow Control"

The Transport Layer Congestion control in TCP

Flow and Congestion Control (Hosts)

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

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

Chapter III: Transport Layer

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

Communications Software. CSE 123b. CSE 123b. Spring Lecture 3: Reliable Communications. Stefan Savage. Some slides couresty David Wetherall

Improving Reliable Transport and Handoff Performance in Cellular Wireless Networks 1

Advanced Computer Networks. Datacenter TCP

CSCI Topics: Internet Programming Fall 2008

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

ICS 451: Today's plan. Sliding Window Reliable Transmission Acknowledgements Windows and Bandwidth-Delay Product Retransmission Timers Connections

TCP reliable data transfer. Chapter 3 outline. TCP sender events: TCP sender (simplified) TCP: retransmission scenarios. TCP: retransmission scenarios

Overview. TCP & router queuing Computer Networking. TCP details. Workloads. TCP Performance. TCP Performance. Lecture 10 TCP & Routers

Understanding TCP Parallelization. Qiang Fu. TCP Performance Issues TCP Enhancements TCP Parallelization (research areas of interest)

Bandwidth Allocation & TCP

Fall 2012: FCM 708 Bridge Foundation I

Operating Systems and Networks. Network Lecture 10: Congestion Control. Adrian Perrig Network Security Group ETH Zürich

Where we are in the Course. Topic. Nature of Congestion. Nature of Congestion (3) Nature of Congestion (2) Operating Systems and Networks

CSE 473 Introduction to Computer Networks. Exam 2. Your name here: 11/7/2012

Transcription:

Advanced Computer Networks 263 3501 00 Wireless TCP Patrick Stuedi Spring Semester 2014 1 Oriana Riva, Department of Computer Science ETH Zürich

Outline Last week: Today: Cellular Networks Mobile IP Wireless TCP 2

Remember: TCP congestion control Congestion control got added to TCP to in attempt to reduce congestion inside the network Must rely on indirect measures of congestion Implemented at the sender Src Dest 3 Attempts to reduce buffer overflow inside the network

Remember: TCP Slow Start Congestion window (CW) Number of bytes in TCP that can be transmitted without waiting for the ACK (CW always smaller than receiver window, flow ctrl) Initially set to 1 TCP segment SSThresh Initially set to 64 KB TCP congestion control: After all ACKs corresponding to one CQ have been received (typically after one RTT), the window is doubled - slow start (actually quite fast) If CW >= SSThresh increase CW by 1 after all ACKs corresponding to one CQ have been received - linear increase (congestion avoidance) On a timeout: Set SSThresh to half of the current CW, then set CW 4 back to 1K

Example: Slow start 5

Problems of TCP in Wireless Networks Congestion control algorithm has been designed for wired/fixed networks In fixed networks a packet loss is an indication of congestion In wireless networks packet lost due to transmission errors or mobility TCP cannot distinguish between errors and congestion TCP unnecessarily reduces window, resulting in low throughput and high latency Delay is often high RTT can be very long and variable TCP's timeout mechanism may not work well Links may be asymmetric Delayed ACKs in the slow direction can limit throughput in fast direction 6

TCP in Wireless: Solutions Cannot change TCP fundamentally TCP congestion control keep the Internet operable Improvements have to be interoperable Possible Solutions: 1) End-to-End Fast retransmit, Selective Acknowledgments 2) Split Connection Separate wired path and wireless hop 3) Link Layer Error-correcting codes Local retransmissions Snooping 7

End-to-End: Fast retransmit Note: TCP sends an acknowledgement only after receiving a packet If a sender receives several acknowledgements for the same packet, this means The receiver got all packets up to the acknowledged packet in sequence The receiver is still receiving packets The gap is most likely not due to congestion, try to avoid triggering slow start Fast retransmit: If sender receives three duplicate ACKs for the same SeqNr he retransmits the missing packet (before the timeout occurs) Reduce CW only to the half, and continue with linear increase 8

Fast Retransmit: Example Single packet loss (within a RTT) can be handled with fast retransmit 9

Fast Retransmit: Pros/Cons Advantages: Simple, minor modifications in the mobile host's TCP stack (TCP Tahoe) Correspondent node's stack does not have to be changed Disadvantages: Inefficient: lost packets still have to cross the entire network between correspondent node and mobile host 10

Split-Connection: Indirect TCP Two TCP connections: Fixed to Base: unmodified TCP connection Base to mobile: optimized TCP connection Buffering at BS Independent flow and congestion control on the two connections 11

Indirect TCP: Pros/Cons Advantages: Transmission errors on the wireless link do not propagate into the fixed network The short delay on the mobile hop is known and therefore it is possible to use precise timeouts and fast retransmissions It is possible to use a different transport layer protocol on the mobile hop Disadvantages: Serious: Loss of end-to-end semantics ACK to the sender does not any longer mean that the receiver got a packet, FAs may crash Problems during handover 12

Socket and State Migration during I-TCP handover Old proxy must forward buffered data to new proxy because it has already acknowledged the data with the CN Migrate TCP buffer to new proxy Migrate socket state (seqnbr, addresses, ports, etc) 13

Snooping TCP Snoop agent at the BS Monitors TCP segments and ACKs Caches segments until acknowledged Detects packet loss and retransmits lost packets if cached Data transfer to the mobile host Packet loss detected by snooping duplicated ACKs Fast retransmission possible Data transfer from the mobile host Packet loss detected by looking at sequence numbers Snooping agent answers with NACK to the MH 14

Snooping TCP: pros/cons Advantages End-to-end TCP semantics is preserved Changes of TCP only within the FA - the CN does need to change Handover can be more easily supported than with I-TCP Interoperable with FAs that do not support the enhancement Disadvantages Won't work if TCP connection is encrypted Does not isolate the behaviour of the wireless link like I-TCP - As long as packets are not acklowledged end-to-end the correponding node has a timer ready waiting to retransmit/slow start 15

Other improvements: Selective retransmission TCP acknowledgements are cumulative ACK N = correct and in-sequence receipt of packets up to N If single packets are missing a whole packet sequence has to be retransmitted (go-back-n), thus wasting bandwidth Selective retransmission RFC 2018 allows for ACKs of single packets (SACKs) Sender can now retransmit only the missing packets Advantage Much higher efficiency Disadvantage More complex software and more buffer needed at the receiver - Trade-off memory, complexity vs performance 16

TCP over 3G: Best Practice Selective ACKs (TCP SACK) Increase the TCP s initial window (from 1 to 2-4 segments) Larger TCP receive window (typically only 64KB) Windows scale option (window gets shifted, allows for almost 1G size) Explicit Notification Schemes Router marks ACK packets with ECN (congestion) or ELN (Loss) bit to allow end host to distinguish between congestion and loss With ELN, end host will then not back off, but simply retransmit Requires support from ECN capable routers Fast Retransmit 17

Longer RTT leads to higher Energy Consumption 3G consumes significantly more energy to upload a fixed size byte buffer than WiFi Energy cost mainly caused by longer RTT Longer RTT longer data transfer time more energy used 18

TCP and 802.11 Power Save Mode (PSM) Experiment: transfer 500 KB over TCP using Wifi PSM First part of the transfer TCP window is small: allow sender to sleep after finishing window Second part of transfer: First Ack is received while still sending: sender won't sleep PSM may pro-long total transfer time 19and increase energy consumption

References MAUI: Making Smartphones Last Longer with Code Offload, Eduardo Cuervo, Aruna Balasubramanian, Dae-ki Cho, Alec Wolman, Stefan Saroiu, Ranveer Chandra, and Paramvir Bahl, ACM Mobisys 2010 20