Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks TCP.

Slides:



Advertisements
Similar presentations
Congestion Control and Fairness Models Nick Feamster CS 4251 Computer Networking II Spring 2008.
Advertisements

24-1 Chapter 24. Congestion Control and Quality of Service (part 1) 23.1 Data Traffic 23.2 Congestion 23.3 Congestion Control 23.4 Two Examples.
Congestion Control Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Congestion Control Created by M Bateman, A Ruddle & C Allison As part of the TCP View project.
TCP Congestion Control Dina Katabi & Sam Madden nms.csail.mit.edu/~dina 6.033, Spring 2014.
Congestion Control: TCP & DC-TCP Swarun Kumar With Slides From: Prof. Katabi, Alizadeh et al.
Computer Networks Performance Metrics Advanced Computer Networks.
Congestion Control Reading: Sections COS 461: Computer Networks Spring 2011 Mike Freedman
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
1 TCP Transport Control Protocol Reliable In-order delivery Flow control Responds to congestion “Nice” Protocol.
Computer Networks : TCP Congestion Control1 TCP Congestion Control.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
Networks : TCP Congestion Control1 TCP Congestion Control.
Transport Protocols for Wireless Networks CMPE Spring 2001 Marcelo M. de Carvalho.
Networks : TCP Congestion Control1 TCP Congestion Control Presented by Bob Kinicki.
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.
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Wide-Area Traffic Management COS 597E: Software Defined Networking.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Data-Center Traffic Management COS 597E: Software Defined Networking.
1 Transport Layer Computer Networks. 2 Where are we?
3: Transport Layer3b-1 Principles of Congestion Control Congestion: r informally: “too many sources sending too much data too fast for network to handle”
Qian Zhang Department of Computer Science HKUST Advanced Topics in Next- Generation Wireless Networks Transport Protocols in Ad hoc Networks.
Improving TCP Performance over Mobile Networks Zahra Imanimehr Rahele Salari.
Computer Networks Performance Metrics. Performance Metrics Outline Generic Performance Metrics Network performance Measures Components of Hop and End-to-End.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
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.
1 Lecture 14 High-speed TCP connections Wraparound Keeping the pipeline full Estimating RTT Fairness of TCP congestion control Internet resource allocation.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
Transport over Wireless Networks Myungchul Kim
Chapter 12 Transmission Control Protocol (TCP)
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
HighSpeed TCP for High Bandwidth-Delay Product Networks Raj Kettimuthu.
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.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
81 Sidevõrgud IRT 0020 loeng okt Avo Ots telekommunikatsiooni õppetool, TTÜ raadio- ja sidetehnika inst.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
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:
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks TCP.
1 Computer Networks Congestion Avoidance. 2 Recall TCP Sliding Window Operation.
MOBILE TCP.
Ασύρματες και Κινητές Επικοινωνίες Ενότητα # 11: Mobile Transport Layer Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
TCP Congestion Control 컴퓨터공학과 인공지능 연구실 서 영우. TCP congestion control2 Contents 1. Introduction 2. Slow-start 3. Congestion avoidance 4. Fast retransmit.
Transport Layer: Sliding Window Reliability
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Congestion Control 0.
Peer-to-Peer Networks 13 Internet – The Underlay Network
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.
MMPTCP: A Multipath Transport Protocol for Data Centres 1 Morteza Kheirkhah University of Edinburgh, UK Ian Wakeman and George Parisis University of Sussex,
Revisiting Transport Congestion Control Jian He UT Austin 1.
1 TCP ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
TCP over Wireless PROF. MICHAEL TSAI 2016/6/3. TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum.
By, Nirnimesh Ghose, Master of Science,
Topics discussed in this section:
Introduction to Congestion Control
TCP Congestion Control at the Network Edge
TCP Congestion Control
TCP Congestion Control at the Network Edge
CS640: Introduction to Computer Networks
TCP Congestion Control at the Network Edge
TCP Congestion Control
Transport Layer: Congestion Control
Congestion Control (from Chapter 05)
TCP: Transmission Control Protocol Part II : Protocol Mechanisms
Congestion Michael Freedman COS 461: Computer Networks
Presentation transcript:

Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks TCP Congestion Control at the Network Edge

Original TCP Design 2 Internet

Wireless and Data-Center Networks 3 Internet wireless network data-center network

Data-Center Networks 4

Modular Network Topology Containers Racks –Multiple servers –Top-of-rack switches 5

Tree-Like Topologies Many equal-cost paths Small round-trip times (e.g., < 250 microseconds) 6 CR AR S S S S S S S S A A A A A A … S S S S A A A A A A …... S S S S S S S S A A A A A A … S S S S A A A A A A …

Commodity Switches Low-cost switches –Especially for top-of-rack switches Simple memory architecture –Small packet-buffer space –Shared buffer over all input ports –Simple drop-tail queues 7

Multi-Tier Applications 8 8 Front end Server Aggregator … Aggregator Worker … …

Application Mix Partition-aggregate workflow –Multiple workers working in parallel –Straggler slows down the entire system –Many workers send response at the same time Diverse mix of traffic –Low latency for short flows –High throughput for long flows Multi-tenancy –Many tenants sharing the same platform –Running network to high levels of utilization Small number of large flows on links 9

TCP Incast Problem Multiple workers transmitting to one aggregator –Many flows traversing the same link –Burst of packets sent at (nearly) the same time –… into a relatively small switch memory Leading to high packet loss –Some results are slow to arrive –May be excluded from the final results Developer software changes –Limit the size of worker responses –Randomize the sending time for responses 10

Queue Buildup Mix of long and short flows –Long flows fill up the buffers in switches –… causing queuing delay (and loss) for the short flows –E.g., queuing delay of 1-14 milliseconds Large relative to propagation delay –E.g., 100 microseconds intra-rack –E.g., 250 microseconds inter-rack –Leading to RTT variance and big throughput drop Shared switch buffers –Short flows on one port –… affected by long flows on other ports 11

TCP Outcast Problem Mix of flows at two different input ports –Many inter-rack flows –Few intra-rack flows –Destined for same output Burst of packet arrivals –Arriving on one input port –Causing bursty loss for the other Harmful to the intra-rack flows –Lose multiple packets –Loss detected by timeout –Irony: worse throughput despite lower RTT! 12 AR S S S S S S S S A A A A A A … S S S S A A A A A A …

Delayed Acknowledgments Sending ACKs can be expensive –E.g., send 40-byte ACK packet for each data packet Delay ACKs reduce the overhead –Receiver waits before sending the ACK –… in the hope of piggybacking the ACK on a response Delayed-ACK mechanism –Set a timer when the data arrives (e.g., 200 msec) –Piggyback the ACK or send ACK for every other packet –… or send an ACK after the timer expires Timeout for delayed ACK is an eternity!! –Disable delayed ACKs, or shorten the timer 13

Data-Center TCP (DCTCP) Key observation –TCP reacts to the presence of congestion –… not to the extent of congestion Measuring extent of congestion –Mark packets when buffer exceeds a threshold Reacting to congestion –Reduce cwnd in proportion to fraction of marked packets Benefits –React early, as queue starts to build –Prevent harm to packets on other ports –Get workers to reduce sending rate early 14

Poor Multi-Path Load Balancing Multiple shortest paths between pairs of hosts –Spread the load over multiple paths Equal-cost multipath –Round robin –Hash-based Uneven load –Elephant flows congest some paths –… while other paths are lightly loaded Reducing congestion –Careful routing of elephant flows 15

Wireless Networks 16

TCP Design Setting Relatively low packet loss –E.g., hopefully less than 1% –Okay to retransmit lost packets from the sender Loss is caused primarily by congestion –Use loss as an implicit signal of congestion –… and reduce the sending rate Relatively stable round-trip times –Use RTT estimate in retransmission timer End-points are always on Stable end-point IP addresses –Use IP addresses as end-point identifiers 17

Problems in Wireless Networks Limited bandwidth High latencies High bit-error rates Temporary disconnections Slow handoffs Mobile device disconnects to save energy, bearers, etc. 18 Internet

Link-Level Retransmission Retransmit over the wireless link –Hide packet losses from end-to-end –… by retransmitting lost packets on wireless link –Works for any transport protocol 19

Split Connection 20 Two TCP connections –Between fixed host and the base station –Between base and the mobile device Other optimizations –Compression, just-in-time delivery, etc.

Burst Optimization Radio wakeup is expensive –Wake up –Establish a bearer –Use battery and signaling resources Burst optimization –Send bigger chunks less often –… to allow the mobile device to go to idle state 21

Lossless Handover Mobile moves from one base station to another –Packets in flight still arrive at the old base station –… and could lead to bursty loss (and TCP timeout) Old base station can buffer packets –Send buffered packets to the new base station 22 Internet

Freezing the Connection Mobile device can predict temporary disconnection –E.g., fading, handoff Mobile can ask the fixed host to stop sending –Advertise a receive window of 0 Benefits –Avoids wasted transmission of data –Avoid loss that triggers timeouts, decrease in cwnd, etc. 23

Discussion CUBIC paper 24