EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Under Reliable Network Service  Design Issues  Under Unreliable.

Slides:



Advertisements
Similar presentations
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 20 – Transport Protocols.
Advertisements

Introduction 1 Lecture 13 Transport Layer (Transmission Control Protocol) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer.
Chapter 06 Transport Protocols
1 Transport Protocols & TCP CSE 3213 Fall April 2015.
Transmission Control Protocol (TCP)
Guide to TCP/IP, Third Edition
XCYANG Transport Protocols XCYANG Department of Computer Science and Technology, Nanjing University 1 Data Communications and Networking Chapter.
Computer Networks with Internet Technology William Stallings
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Transport Layer3-1 TCP. Transport Layer3-2 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data flow in same connection.
1 Transport Layer Lecture 9 Imran Ahmed University of Management & Technology.
TO p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering Lecture 13 Transport Layer.
5/6/2015© 2010 Raymond P. Jefferis IIILect Transport Layer.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth Edition,Peterson.
1 TCP CSE May TCP Services Flow control Connection establishment and termination Congestion control 2.
Computer Networks with Internet Technology William Stallings
Semester Copyright USM EEE442 Computer Networks Transport Protocol En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 20 – Transport Protocols.
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
1 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Computer Networks : TCP Congestion Control1 TCP Congestion Control.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Transport Layer.
Networks : TCP Congestion Control1 TCP Congestion Control.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Reliable Network Service: Design Issues  Unreliable Network.
Gursharan Singh Tatla Transport Layer 16-May
1 Transport Layer Computer Networks. 2 Where are we?
William Stallings Data and Computer Communications Chapter 20 Transport Protocols.
6.1. Transport Control Protocol (TCP) It is the most widely used transport protocol in the world. Provides reliable end to end connection between two hosts.
3: Transport Layer3b-1 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data flow in same connection m MSS: maximum.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_b Transport Protocols - TCP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
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.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
Transport Control Protocol (TCP) Features of TCP, packet loss and retransmission, adaptive retransmission, flow control, three way handshake, congestion.
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
1 15. Transport Protocols. Prof. Sang-Jo Yoo 2 Contents  Transport protocol  Transport Service  Protocol for reliable network service  Protocol for.
Computer Networks with Internet Technology William Stallings Chapter 06 Transport Protocols 1.
Spring 2009CSE Congestion Control Outline Resource Allocation Queuing TCP Congestion Control.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 20 – Transport Protocols.
CS 6401 Congestion Control in TCP Outline Overview of RENO TCP Reacting to Congestion SS/AIMD example.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 3: Transport.
Transport Layer3-1 Transport Layer If you are going through Hell Keep going.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
1 TCP ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
William Stallings Data and Computer Communications Chapter 17 Transport Protocols.
Fast Retransmit For sliding windows flow control we waited for a timer to expire before beginning retransmission of a packet TCP uses an additional mechanism.
William Stallings Data and Computer Communications
9.6 TCP Congestion Control
Introduction to Networks
PART 5 Transport Layer Computer Networks.
Transport Layer Unit 5.
So far, On the networking side, we looked at mechanisms to links hosts using direct linked networks and then forming a network of these networks. We introduced.
Congestion Control in TCP
University of Houston Transport Protocols Datcom II Lecture 9
Chapter 17. Transport Protocols
Week 10 Transport Protocols
Transport Layer 9/22/2019.
EEL 5718 Computer Communications
Presentation transcript:

EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Under Reliable Network Service  Design Issues  Under Unreliable Network Service  Design Issues  TCP & Congestion Control  AIMD  Slow Start Connectionless Transport Protocol: UDP

EE 4272Spring, 2003 Connection-Oriented Transport Protocol Mechanisms Logical connection between TS  end-to-end transport of data, shield TS users from details of underlying systems Reliable Sequencing Network Service  Assume arbitrary length message, reliable  virtually 100% reliable delivery by network service: e.g. reliable packet switched network using X.25  Transport service is end-to-end protocol between two systems on same network  Design Issues  Addressing  Multiplexing  Flow Control  Connection Establishment & Termination Unreliable Network Service  E.g., Internet  More Design Issues

EE 4272Spring, 2003 Design Issue under Reliable Network Service: Addressing Target user specified by:  User identification  Usually (host, port), called a socket in TCP  Port represents a particular transport service (TS) user  Transport entity identification  Generally only one per host, not needed  If more than one, then usually one of each type  Specify type of transport protocol (TCP, UDP)  Host address and Network number  In an internet, a global internet address

EE 4272Spring, 2003 Design Issue under Reliable Network Service (Con’t) Multiplexing  Multiple users employ same transport protocol  User identified by port number or service access point (SAP) Flow Control  Flow need to be controlled  The receiving user can not keep up  The receiving transport entity can not keep up  Challenges:  Longer transmission delay between transport entities (end-to-end) compared with actual transmission time  Delay in communication of flow control info  Variable transmission delay: Difficult to use timeouts

EE 4272Spring, 2003 Coping with Flow Control Requirements Do nothing: Segments that overflow are discarded  Sending transport entity will fail to get ACK and will retransmit  Thus further adding to incoming data Refuse further segments  Backpressure type of Mechanism: clumsy & coarse grained Use fixed sliding window protocol (sequence number /window size/ACK)  Works well on reliable network: failure on ACK is taken as flow control indication  Does not work well on unreliable network  Can not distinguish between lost segment and flow control tactic Use credit scheme  Greater control on reliable network  More effective on unreliable network  Decouples flow control from ACK  May ACK without granting credit and vice versa  Each octet has sequence number  Each transport segment has Seq number, Ack number and window size in header

EE 4272Spring, 2003 Credit Allocation Scheme

EE 4272Spring, 2003 Design Issue under Reliable Network Service: Establishment/Termination By mutual agreement  Allow each end to know the other end exists  Negotiation of optional parameters (e.g., QoS)  Triggers allocation of transport entity resources (e.g., buffer space)

EE 4272Spring, 2003 Internetworking: Unreliable Network Service Unreliable Network Service: e.g. Internet  Segments may get lost  Segments may arrive out of order Design Issues of Transport Protocol  Ordered Delivery  Retransmission strategy  Duplication detection  Flow control (Credit Allocation Scheme)  Connection establishment/termination  Crash recovery

EE 4272Spring, 2003 Design Issues under Unreliable Service Ordered Delivery  Segments may arrive out of order  Number segments sequentially  TCP numbers each byte sequentially  Segments are numbered by the first octet number in the segment Retransmission Strategy  Segment damaged/failed in transit  Transmitter does not know of failure  Receiver must acknowledge successful receipt  Use cumulative acknowledgement  Time out waiting for ACK triggers re-transmission  Fixed timer: Based on understanding of network behavior  Too small leads to unnecessary re-transmissions  Too large and response to lost segments is slow  Should be a bit longer than round trip time  Can not adapt to changing network conditions  Adaptive scheme

EE 4272Spring, 2003 Duplication Detection If ACK lost, segment is re- transmitted -> duplicate Receiver must recognize duplicates Duplicate received prior to closing connection  Receiver assumes ACK lost and ACKs duplicate  Sender must not get confused with multiple ACKs  Sequence number space large enough to not cycle within maximum life of segment Duplicate received after closing connection

EE 4272Spring, 2003 Connection Establishment Two way handshake  A send SYN, B replies with SYN  Lost SYN handled by re- transmission  Can lead to duplicate SYNs  Ignore duplicate SYNs once connected Lost or delayed data segments can cause connection problems  Segment from old connections  Start segment numbers fare removed from previous connection  Use SYN i  Need ACK to include i  Three Way Handshake Two Way Handshake: Obsolete Data Segment

EE 4272Spring, 2003 Three Way Handshake

EE 4272Spring, 2003 Connection Termination Entity in CLOSE WAIT state sends last data segment, followed by FIN FIN arrives before last data segment ?? Remember: Internet Receiver accepts FIN  Closes connection  Loses last data segment Associate sequence number with FIN Receiver waits for all segments before FIN sequence number

EE 4272Spring, 2003 TCP Services Reliable communication between pairs of processes Across variety of reliable and unreliable networks and internets Two labeling facilities  Data stream push (sender side)  TCP user can request transmission of all data with push flag  Avoids waiting for full buffers  Urgent data signal (receiver side)  Indicates urgent data is upcoming in stream  User decides how to handle it

EE 4272Spring, 2003 TCP Mechanisms Connection establishment  Three way handshake  Between pairs of ports Data transfer  Logical stream of octets  Flow control by credit allocation of number of octets  Data buffered at transmitter and receiver Connection termination  TCP users issues CLOSE primitive  Transport entity sets FIN flag on last segment sent

EE 4272Spring, 2003 TCP Congestion Control Window management  AIMD  Slow Start Retransmission timer management  Estimate round trip delay by observing pattern of delay  Set time to value somewhat greater than estimate  Simple average  Exponential average  RTT Variance Estimation (Jacobson’s algorithm)

EE 4272Spring, 2003 Additive Increase/Multiplicative Decrease Objective: adjust to changes in the available capacity New state variable per connection: CongestionWindow  limits how much data source has in transit Note: CongestionWindow is set by TCP source based on the observed congestion level Idea:  increase CongestionWindow when congestion goes down  decrease CongestionWindow when congestion goes up Question: how does the source determine whether or not the network is congested? Answer: a timeout occurs  timeout signals that a packet was lost  packets are seldom lost due to transmission error  lost packet implies congestion

EE 4272Spring, 2003 AIMD (cont) SourceDestination … Algorithm  increment CongestionWindow by one packet per RTT (linear increase)  divide CongestionWindow by two whenever a timeout occurs (multiplicative decrease) Note: In practice: increment a little for each ACK Increment = (MSS * MSS)/CongestionWindow CongestionWindow += Increment

EE 4272Spring, 2003 AIMD (cont) Trace: sawtooth behavior Reason of being conservative: consequences of having too large a window are much worse than those of it being too small Note: the accurate timeout mechanism is desirable Problem: it takes too long to ramp up a connection when it is starting from scratch (cold start) KB Time (seconds)

EE 4272Spring, 2003 Slow Start Slow start increase the congestion window exponentially rather than linearly Idea:  begin with CongestionWindow = 1 packet  double CongestionWindow each RTT (increment by 1 packet for each ACK) Why “slow”?  compare with the original behavior of TCP (advertised window), not compare with “linear growth” of AIMD SourceDestination …

EE 4272Spring, 2003 Slow Start (cont) Exponential growth, but slower than all at once (original TCP) Used…  when first starting connection  when connection goes dead waiting for timeout (more knowledge) Trace of TCP CongestionWindow: interplay of “slow start” & “AIMD” Problem: lose up to half a CongestionWindow ’s worth of data Idea of so called “packet pair”: gap between the ACKs

EE 4272Spring, 2003 UDP User datagram protocol: RFC 768 Connectionless service for application level procedures  Unreliable  Delivery and duplication control not guaranteed  Adds multiplexing Reduced overhead