The Transport Layer.

Slides:



Advertisements
Similar presentations
Introduction 1 Lecture 13 Transport Layer (Transmission Control Protocol) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer.
Advertisements

Chapter 6 The Transport Layer.
Computer Networks NYUS FCSIT Spring 2008 Milos STOLIC, Bs.C. Teaching Assistant
Chapter 6 The Transport Layer.
Transmission Control Protocol (TCP)
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
EECC694 - Shaaban #1 lec #12 Spring Internet Transport Protocols Transmission Control Protocol (TCP):Transmission Control Protocol (TCP):
Copyright 1999, S.D. Personick. All Rights Reserved. Telecommunications Networking II Lecture 32 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
Chapter 6 The Transport Layer 2010.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 26 Introduction to Computer Networks.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
Chapter 6 The Transport Layer.
Transport Layer3-1 TCP sender (simplified) NextSeqNum = InitialSeqNum SendBase = InitialSeqNum loop (forever) { switch(event) event: data received from.
Transport Layer Layer #4 (OSI-RM). Transport Layer Main function of OSI Transport layer: Accept data from the Application layer and prepare it for addressing.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
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.
SMUCSE 4344 transport layer. SMUCSE 4344 transport layer end-to-end protocols –transport code runs only on endpoint hosts encapsulates network communications.
The Transport Layer.
ECE453 – Introduction to Computer Networks Lecture 14 – Transport Layer (I)
The Transport Layer Chapter 6. The Transport Service The transport layer is the heart of the whole protocol hierarchy It provides reliable data transport.
Copyright 2002, S.D. Personick. All Rights Reserved.1 Telecommunications Networking II Topic 20 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
(from Tanenabaum: “Computer Networks” Chapter 1) and
Networking Basics CCNA 1 Chapter 11.
The Transport Layer Chapter 6. Transport Service Primitives The primitives for a simple transport service.
The Transport Layer Chapter 6 12/14/2015www.ishuchita.com1.
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
Chapter 6 Transport Layer
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
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).
Transmission Control Protocol (TCP) TCP Flow Control and Congestion Control CS 60008: Internet Architecture and Protocols Department of CSE, IIT Kharagpur.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
1 TCP ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Two Transport Protocols Available Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Provides unreliable transfer Requires minimal – Overhead.
The Transport Layer Dr. ir. S.S. Msanjila RIS 251.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
The Transport Layer Implementation Services Functions Protocols
DMET 602: Networks and Media Lab
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.
TCP Lecture 4.
Unit-7 The Transport Layer.
Introduction to Networks
Transmission Control Protocol (TCP)
5. End-to-end protocols (part 1)
TCP.
PART 5 Transport Layer Computer Networks.
Chapter 6 The Transport Layer.
TCP.
Magda El Zarki Professor, ICS UC, Irvine
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Process-to-Process Delivery:
PART V Transport Layer.
PART 5 Transport Layer.
Transport Protocols: TCP Segments, Flow control and Connection Setup
The Transport Layer Chapter 6.
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

The Transport Layer

The Transport Service Services provided to the application layer by using the network layer service Transport header of a segment exchanged between two users is not read by routers and packet switches.

The nesting of TPDUs, packets, and frames. Transport Service The nesting of TPDUs, packets, and frames.

The socket primitives for TCP. Berkeley Sockets The socket primitives for TCP.

Elements of Transport Protocols Addressing Connection Establishment Connection Release Flow and Congestion Control Buffering Multiplexing, Demultiplexing

UDP and TCP User Datagram Protocol (UDP) provides only of multiplexing/ demultiplexing of data exchange between different applications. It is connectionless service. Transmission Control Protocol (TCP) provides a reliable service to the applications. It is connection oriented service.

UDP and TCP Addressing Whenever a UDP socket is created, an available or a specified port number is assigned to it. The UDP socket is determined only by the destination port number. The source port number serves as a return address. The TCP server application has a “welcoming socket” for accepting connection requests. When a client socket is created, a port number is assigned to it and a connection is requested. TCP server socket is determined by the source IP address, source port number, destination IP address, destination port number.

The TCP Service Model Some assigned ports. Port Protocol Use 21 FTP File transfer 23 Telnet Remote login 25 SMTP E-mail 69 TFTP Trivial File Transfer Protocol 79 Finger Lookup info about a user 80 HTTP World Wide Web 110 POP-3 Remote e-mail access 119 NNTP USENET news Some assigned ports.

UDP Segment Header The UDP header.

Real-Time Transport Protocol (RTP) (a) The position of RTP in the protocol stack. (b) Packet nesting.

RTP Header Add Hdr 4B pad Sources # Coding Type The RTP header.

Transport Control Protocol (TCP) TCP Connection Establishment TCP Connection Release TCP Connection Management Modeling TCP Transmission Policy TCP Flow and Congestion Control TCP Timer Management

The TCP Segment Header TCP Header.

The pseudoheader included in the TCP checksum. The TCP Segment Header The pseudoheader included in the TCP checksum.

TCP Connection Establishment 6-31 (a) TCP connection establishment in the normal case. (b) Call collision.

TCP Connection Management Modeling Client starts TCP Wait 30s CLOSED Send SYN TIME_WAIT SYN_SENT Receive FIN, Send ACK Receive SYN & ACK Send ACK FIN_WAIT_2 ESTABLISHED Send FIN Receive ACK FIN_WAIT_1

TCP Connection Management Modeling Server application creates LISTEN socket Receive ACK CLOSED LAST_ACK LISTEN Send FIN Receive SYN Send SYN & ACK CLOSE_WAIT SYN_RCVD Receive ACK Receive FIN Send ACK ESTABLISHED

TCP Mechanisms TCP is a combination of Go Back N and Selective Repeat protocols. Receiver sends ack with the sequence number of the last received byte. It is cumulative, meaning that it acks all previously received segments. Sender keeps only the info about the first unack-ed segment, and retransmits the previous segment when it the timer expires or when it receives 3 identical ACKs. Receiver has buffer and may receive segments out of order.

TCP ACK Generation When a segment arrives in order and all previous data are acked, receiver waits for 500ms and sends ACK. When a segment arrives in order and there is one segment waiting for ACK, the ACK is sent immediately. When a segment arrives out of order, immediately send ACK with the next expected sequence number. Arrival of segment that fills the gap. Immediately send ACK.

Flow Control Processor of the receiver often handles multiple applications and tasks, so the speed of handling of a specific application is variable and limited. Receiver sends the receive window with each ACK, that specifies the empty space in the receiver buffer. Sender makes sure that the difference between the last byte sent and the last byte acked is smaller than the receive window, so that the receive buffer is not overflowed.

TCP Transmission Policy Window management in TCP.

Congestion Control When a timeout period expires, sender retransmits a packet, and timer is triggered again but it is set to twice the previous value. When a new segment is generated, or when ACK is received, the timer is set to the estimated timeout period. Window size (w) is initially set to 0 and threshold size (t) is set to some large value. When w<t, w grows exponentially fast (incremented by one whenever it receives ACK)-slow-start phase. When w>t, w grows linearly (roughly by 1 once per RTT). When triple ACK occcurs, the t=w/2, w=t. If timeout happens, t=w/2, w=1.

Congestion Control Sender must ensure that: Last byte sent – Last byte ACKed ≤ min{Congestion Window, Received Window}

TCP Congestion Control An example of the Internet congestion algorithm.

TCP Timer Management (a) Probability density of ACK arrival times in the data link layer. (b) Probability density of ACK arrival times for TCP.

Timeout Calculation Timeout is Timeout=2RTT where RTT is a round-trip time: RTT=αRTT+(1-α)M, α=7/8 Alternatively timeout is: Timeout = RTT+4xD where D is estimated variance: D=αD+(1-α)|RTT-M|

TCP Versions TCP Reno TCP Vegas is modification of Reno TCP Tahoe is older version

Splitting a TCP connection into two connections. Wireless TCP and UDP Splitting a TCP connection into two connections.