Announcements. TCP Congestion Control. Goals of Today s Lecture. State Diagrams. TCP State Diagram

Similar documents
4 Error Control. 4.1 Issues with Reliable Protocols

! errors caused by signal attenuation, noise.!! receiver detects presence of errors:!

Assignment 2. Due Monday Feb. 12, 10:00pm.

Goals of Today s Lecture! Congestion Control! Course So Far.! Congestion Control Overview! It s Not Just The Sender & Receiver! Congestion is Natural!

COSC 3213: Computer Networks I Chapter 6 Handout # 7

Network management and QoS provisioning - QoS in Frame Relay. . packet switching with virtual circuit service (virtual circuits are bidirectional);

An efficient approach to improve throughput for TCP vegas in ad hoc network

LHP: An end-to-end reliable transport protocol over wireless data networks

Chapter 8 LOCATION SERVICES

Chapter 3 MEDIA ACCESS CONTROL

TCP Performance. EE 122: Intro to Communication Networks. Fall 2006 (MW 4-5:30 in Donner 155) Vern Paxson TAs: Dilip Antony Joseph and Sukun Kim

Improving Explicit Congestion Notification with the Mark-Front Strategy

Sam knows that his MP3 player has 40% of its battery life left and that the battery charges by an additional 12 percentage points every 15 minutes.

Scheduling. Scheduling. EDA421/DIT171 - Parallel and Distributed Real-Time Systems, Chalmers/GU, 2011/2012 Lecture #4 Updated March 16, 2012

4. Minimax and planning problems

CS 152 Computer Architecture and Engineering. Lecture 7 - Memory Hierarchy-II

MOTION DETECTORS GRAPH MATCHING LAB PRE-LAB QUESTIONS

EP2200 Queueing theory and teletraffic systems

Page 1. Key Points from Last Lecture Frame format. EEC173B/ECS152C, Winter Wireless LANs

COMP26120: Algorithms and Imperative Programming

MIC2569. Features. General Description. Applications. Typical Application. CableCARD Power Switch

Exercise 3: Bluetooth BR/EDR

Less Pessimistic Worst-Case Delay Analysis for Packet-Switched Networks

Video streaming over Vajda Tamás

Why not experiment with the system itself? Ways to study a system System. Application areas. Different kinds of systems

Voltair Version 2.5 Release Notes (January, 2018)

Low-Cost WLAN based. Dr. Christian Hoene. Computer Science Department, University of Tübingen, Germany

Using CANopen Slave Driver

Implementing Ray Casting in Tetrahedral Meshes with Programmable Graphics Hardware (Technical Report)

PART 1 REFERENCE INFORMATION CONTROL DATA 6400 SYSTEMS CENTRAL PROCESSOR MONITOR

Wireless LANs: MAC. Wireless LAN: MAC. IEEE protocol stack. Module W.lan MAC

Delay in Packet Switched Networks

Performance Evaluation of Implementing Calls Prioritization with Different Queuing Disciplines in Mobile Wireless Networks

MATH Differential Equations September 15, 2008 Project 1, Fall 2008 Due: September 24, 2008

Test - Accredited Configuration Engineer (ACE) Exam - PAN-OS 6.0 Version

CS 152 Computer Architecture and Engineering. Lecture 6 - Memory

CS 152 Computer Architecture and Engineering. Lecture 6 - Memory

Delayed reservation decision in optical burst switching networks with optical buffers. Title. Li, GM; Li, VOK; Li, CY; Wai, PKA

EECS 487: Interactive Computer Graphics

Performance Characterisation of the MCNS DOCSIS 1.0 CATV Protocol with Prioritised First Come First Served Scheduling

Lecture 4. Programming with Message Passing: Applications and Performance

NEWTON S SECOND LAW OF MOTION

USBFC (USB Function Controller)

MOBILE COMPUTING. Wi-Fi 9/20/15. CSE 40814/60814 Fall Wi-Fi:

MOBILE COMPUTING 3/18/18. Wi-Fi IEEE. CSE 40814/60814 Spring 2018

Midterm Exam Announcements

6.033 Computer System Engineering

Improving the Efficiency of Dynamic Service Provisioning in Transport Networks with Scheduled Services

CS422 Computer Networks

Po,,ll. I Appll I APP2 I I App3 I. Illll Illlllll II Illlll Illll Illll Illll Illll Illll Illll Illll Illll Illll Illll Illlll Illl Illl Illl

Evaluation and Improvement of Multicast Service in b

Data Structures and Algorithms. The material for this lecture is drawn, in part, from The Practice of Programming (Kernighan & Pike) Chapter 2

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

FIELD PROGRAMMABLE GATE ARRAY (FPGA) AS A NEW APPROACH TO IMPLEMENT THE CHAOTIC GENERATORS

A time-space consistency solution for hardware-in-the-loop simulation system

Outline. EECS Components and Design Techniques for Digital Systems. Lec 06 Using FSMs Review: Typical Controller: state

A MAC layer protocol for wireless networks with asymmetric links

Quantitative macro models feature an infinite number of periods A more realistic (?) view of time

shared via CourseHero.com This study resource was Exam #1 for Computer Networks (CIS 6930) Fall 2003 >>> SOLUTIONS <<<

Packet Scheduling in a Low-Latency Optical Interconnect with Electronic Buffers

Project #1 Math 285 Name:

AN ACTIVE PROGRAMMABLE HARNESS FOR MEASURMENT OF COMPOSITE NETWORK STATES

Mobile Computing IEEE Standard 9/10/14. CSE 40814/60814 Fall 2014

Y. Tsiatouhas. VLSI Systems and Computer Architecture Lab

Gauss-Jordan Algorithm

SCHED_DEADLINE (what it does and doesn't do, yet).

Optimal Crane Scheduling

Dimmer time switch AlphaLux³ D / 27

Locating Internet Bottlenecks: Algorithms, Measurements, and Implications

PERFORMANCE OF TCP CONGESTION CONTROL IN UAV NETWORKS OF VARIOUS RADIO PROPAGATION MODELS

Motor Control. 5. Control. Motor Control. Motor Control

It is easier to visualize plotting the curves of cos x and e x separately: > plot({cos(x),exp(x)},x = -5*Pi..Pi,y = );

Timers CT Range. CT-D Range. Electronic timers. CT-D Range. Phone: Fax: Web: -

An Adaptive Spatial Depth Filter for 3D Rendering IP

A Matching Algorithm for Content-Based Image Retrieval

STEREO PLANE MATCHING TECHNIQUE

Announcements For The Logic of Boolean Connectives Truth Tables, Tautologies & Logical Truths. Outline. Introduction Truth Functions

PROCESS AUTOMATION MANUAL TIMER RELAY KF**-DU-EX1.D ISO9001

TCP Service Model. Today s Lecture. TCP Support for Reliable Delivery. EE 122:TCP, Connection Setup, Reliability

SREM: A Novel Multicast Routing Algorithm - Comprehensive Cost Analysis

Communication Networks

SCHED_DEADLINE How to use it

Location. Electrical. Loads. 2-wire mains-rated. 0.5 mm² to 1.5 mm² Max. length 300 m (with 1.5 mm² cable). Example: Belden 8471

Outline. CS38 Introduction to Algorithms 5/8/2014. Network flow. Lecture 12 May 8, 2014

A High Efficiency MAC Protocol for WLANs: Providing Fairness in Dense Scenarios

Shortest Path Algorithms. Lecture I: Shortest Path Algorithms. Example. Graphs and Matrices. Setting: Dr Kieran T. Herley.

Opportunistic Flooding in Low-Duty-Cycle Wireless Sensor Networks with Unreliable Links

Polling Efficiently on Stock Hardware

Restorable Dynamic Quality of Service Routing

Connections, displays and operating elements. Status LEDs (next to the keys)

Simple Network Management Based on PHP and SNMP

Communication Networks

Image segmentation. Motivation. Objective. Definitions. A classification of segmentation techniques. Assumptions for thresholding

Chapter 4 Sequential Instructions

Fill in the following table for the functions shown below.

C 1. Last Time. CSE 490/590 Computer Architecture. Cache I. Branch Delay Slots (expose control hazard to software)

This is the published version of a paper presented at The 2013 IEEE International Conference on Internet of Things, Beijing, China, August 2013.

Connections, displays and operating elements. 3 aux. 5 aux.

CENG 477 Introduction to Computer Graphics. Modeling Transformations

Analyzing of RESPIRE, a novel approach to automatically blocking SYN flooding attacks

Transcription:

nnouncemens TCP Congesion Conrol Projec #3 should be ou onigh Can do individual or in a eam of 2 people Firs phase due November 16 - no slip days Exercise good (beer) ime managemen EE 122: Inro o Communicaion Neworks Fall 2006 (MW 4-5:30 in Donner 155) Vern Paxson Ts: Dilip nony Joseph and Sukun Kim hp://ins.eecs.berkeley.edu/~ee122/ Maerials wih hanks o Jennifer Rexford, Ion Soica, and colleagues a Princeon and UC Berkeley 1 2 Goals of Today s Lecure Sae diagrams Tool for undersanding complex proocols Principles of congesion conrol Learning ha congesion is occurring daping o alleviae he congesion TCP congesion conrol ddiive-increase, muliplicaive-decrease NCK- ( fas reransmission ) and imeou-based deecion Slow sar and slow-sar resar 3 Sae Diagrams For complicaed proocols, operaion depends criically on curren mode of operaion Imporan ool for capure his: sae diagram any given ime, proocol endpoin is in a paricular sae Dicaes is curren behavior Endpoin ransiions o oher saes on evens Ineracion wih lower layer Recepion of cerain ypes of packes Ineracion wih upper layer New daa arrives o send, or received daa is consumed Timers 4 TCP Sae Diagram 5 6 1

How Fas Should TCP Send? Flow Conrol 7 8 Sliding llow a larger amoun of daa in fligh llow sender o ge ahead of he receiver hough no oo far ahead TCP Sending process Las bye wrien TCP Receiving process Las bye read TCP Header for Receiver Buffering dverised window informs sender of receiver s buffer space HdrLen Source por 0 Checksum Sequence number cknowledgmen Flags Desinaion por dverised window Opions (variable) Urgen poiner Daa Nex bye expeced Las bye CKed Sender Receiver Las bye received Las bye sen 9 10 dverised Limis Rae If he window is W, hen sender can send no faser han W/RTT byes/sec Receiver implicily limis sender o rae ha receiver can susain If sender is going o fas, window adverisemens ge smaller & smaller Termed Flow Conrol In original TCP design, ha was i - sole proocol mechanism conrolling sender s rae How Fas Should TCP Send? Congesion Conrol Wha s missing? 12 11 2

I s No Jus The Sender & Receiver Congesion is Unavoidable Flow conrol keeps one fas sender from overwhelming a slow receiver Congesion conrol keeps a se of senders from overloading he nework Three congesion conrol problems: djusing o boleneck bandwidh Wihou any a priori knowledge Could be a Gbps link; could be a modem djusing o variaions in bandwidh Sharing bandwidh beween flows 13 Two packes arrive a he same ime The node can only ransmi one and eiher buffers or drops he oher If many packes arrive in a shor period of ime The node canno keep up wih he arriving raffic and he buffer may evenually overflow 14, Delay, and Power Typical behavior of queuing sysems wih bursy arrivals: verage Packe delay simple meric of how well he nework is performing: Power Power = Delay opimal load Congesion Collapse Definiion: Increase in nework load resuls in a decrease of useful work done Due o: Undelivered packes Packes consume resources and are dropped laer in nework Spurious reransmissions of packes sill in fligh Unnecessary reransmissions lead o more load! Pouring gasoline on a fire Mid-1980s: Inerne grinds o a hal Unil Jacobson/Karels devise TCP congesion conrol Goal: maximize power 15 16 View from a Single Flow General pproaches Knee poin afer which Throughpu increases very slowly Delay increases quickly Cliff poin afer which Throughpu sars o decrease very fas o zero (congesion collapse) Delay approaches infiniy Throughpu Delay knee cliff packe loss congesion collapse 17 Send wihou care Many packe drops Disaser: leads o congesion collapse (1) Reservaions Pre-arrange bandwidh allocaions Requires negoiaion before sending packes Poenially low uilizaion (difficul o sa-mux) (2) Pricing Don drop packes for he highes bidders Requires paymen model 18 3

General pproaches (con d) (3) Dynamic djusmen Probe nework o es level of congesion Speed up when no congesion Slow down when congesion Drawbacks: Subopimal Messy dynamics Seems complicaed o implemen Bu clever algorihms acually prey simple (Jacobson/Karels 88) ll hree echniques have heir place Bu for generic Inerne usage, dynamic adjusmen is he mos appropriae due o pricing srucure, raffic characerisics, and good ciizenship 19 Idea of TCP Congesion Conrol Each source deermines he available capaciy so i knows how many packes o have in fligh Congesion window (CWND) Maximum # of unacknowledged byes o have in fligh Congesion-conrol equivalen of receiver window Max = min{congesion window, receiver window} Send a he rae of he slowes componen daping he congesion window Decrease upon deecing congesion Increase upon lack of congesion: opimisic exploraion 20 Deecing Congesion How can a TCP sender deermine ha nework is under sress? Nework could ell i (ICMP Source Quench) Risky, because during imes of overload he signal iself could be dropped! Packe delays go up (knee of load-delay curve) Tricky, because a noisy signal (delay ofen varies considerably) Packe loss Fail-safe signal ha TCP already has o deec Complicaion: non-congesive loss (checksum errors) 21 5 Minue Break Quesions Before We Proceed? 22 ddiive Increase, Muliplicaive Decrease Leads o he TCP Sawooh How much o increase and decrease? Increase linearly, decrease muliplicaively (IMD) Necessary condiion for sabiliy of TCP Consequences of over-sized window much worse han having an under-sized window Over-sized window: packes dropped and reransmied Under-sized window: somewha lower hroughpu Loss ddiive increase On success for las window of daa, increase linearly One packe (MSS) per RTT Muliplicaive decrease On loss of packe, divide congesion window in half 23 halved 24 4

Managing he Congesion Increasing CWND Increase by MSS on success (= no loss) for las window of daa One approach: rack firs packe in fligh, new window sars when i s ack d, a which poin: CWND += MSS noher: increase a fracion of MSS per received CK # packes (and hus CKs) per window: CWND / MSS Incremen per CK: CWND += MSS * (MSS / CWND) Is acually slighly super-linear Decreasing he congesion window Cu in half on loss deeced by NCK ( fas reransmi ) Cu all he way o 1 MSS on loss deeced by imeou Never drop CWND below 1 MSS 25 Geing Sared Need o sar wih a small CWND o avoid overloading he nework. Bu, could ake a long ime o ge sared! 26 Slow Sar Phase Sar wih a small congesion window Iniially, CWND is 1 MSS (*) So, iniial sending rae is MSS/RTT Tha could be prey waseful Migh be much less han he acual bandwidh Linear increase akes a long ime o accelerae Slow-sar phase (acually fas sar ) Sender sars a a slow rae (hence he name) bu increases he rae exponenially Slow Sar in cion Src Des Double CWND per round-rip ime Simple implemenaion: on each ack, CWND += MSS 1 2 4 8 D D D D D D D unil he firs loss even 27 28 Slow Sar and he TCP Sawooh Loss Exponenial slow sar Why is i called slow-sar? Because TCP originally had no congesion conrol mechanism. The source would jus sar by sending a whole window s worh of daa. 29 Loss Deecion in TCP, Scheme #1 Quick NCK-based deecion Triple duplicae CK ( hree dups ) Packe n is los, bu packes n+1, n+2,, arrive On each arrival of a packe no in sequence, receiver generaes an CK s always, CK is for seq.no. jus beyond highes in-sequence So as n+1, n+2, arrive, receiver generaes repeaed CKs for seq.no. n duplicae acknowledgmens since hey all look he same Sender sees hree of hese and immediaely reransmis packe n (and only n) Muliplicaive decrease and keep going Termed Fas Reransmission 30 5

Fas Reransmission Loss Deecion in TCP, Scheme #2 Resend a segmen afer 3 duplicae CKs Duplicae CK means ha an ou-of sequence segmen was received cwnd = 1 cwnd = 2 cwnd = 3 cwnd = 4 Noes: 3 duplicae CKs are for nex CKs expeced packe cwnd = 2 Packe reordering can cause duplicae CKs may be oo small o generae enough duplicae CKs CK 2 CK 3 CK 4 CK 4 CK 4 CK 4 segmen 1 segmen 2 segmen 3 segmen 4 segmen 5 segmen 6 segmen 7 segmen 4 31 Timeou Sender sars a imer ha runs for RTO seconds Every ime ack for new daa arrives, resar imer If imer expires: Se SSTHRESH CWND ( Slow-Sar Threshold ) Se CWND MSS (avoid a burs) Reransmi firs los packe Execue Slow Sar unil CWND > SSTHRESH fer which swich o ddiive Increase Termed: Congesion voidance 32 Repeaing Slow Sar fer Timeou Summary Fas Reransmission Slow sar in operaion unil i reaches half of previous CWND, I.e., SSTHRESH Timeou SSThresh Se o Here Slow-sar resar: Go back o CWND of 1, bu ake advanage of knowing he previous value of CWND. 33 Congesion is ineviable Inerne does no reserve resources in advance TCP acively ries o grab capaciy Congesion conrol criical for avoiding collapse IMD: ddiive increase, muliplicaive decrease Congesion deeced via packe loss (fail-safe) NCK-based fas reransmission on hree dups Timeou Slow sar o find iniial sending rae & o resar afer imeou Nex class TCP performance 34 6