5. The Transport Layer 5.1 Role of Transport Layer It bridge the gab between applications and the network layer. Provides reliable cost-effective data.

Slides:



Advertisements
Similar presentations
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
Advertisements

Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 6 Transport Layer.
CCNA – Network Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
Transmission Control Protocol (TCP)
Intermediate TCP/IP TCP Operation.
Chapter 7: Transport Layer
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking Assist. Prof.
Lecture 7 Transport Layer
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
UNIT 07 Process – to – Process Delivery: UDP,TCP and SCTP
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Transport Layer.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
2: Application Layer 1 1DT066 Distributed Information System Chapter 3 Transport Layer.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
3-1 Transport services and protocols r provide logical communication between app processes running on different hosts r transport protocols run in end.
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
1 Transport Layer Computer Networks. 2 Where are we?
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
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.
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.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
University of the Western Cape Chapter 12: The Transport Layer.
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Part.
The Transmission Control Protocol (TCP) Application Services (Telnet, FTP, , WWW) Reliable Stream Transport (TCP) Connectionless Packet Delivery.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
23.1 Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Networking Basics CCNA 1 Chapter 11.
Chapter 24 Transport Control Protocol (TCP) Layer 4 protocol Responsible for reliable end-to-end transmission Provides illusion of reliable network to.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
Prof. Younghee Lee 1 1 Computer Networks u Lecture 5: Transport services and protocols Prof. Younghee Lee * Some part of this teaching materials are prepared.
MULTIPLEXING/DEMULTIPLEXING, CONNECTIONLESS TRANSPORT.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
UDP: User Datagram Protocol Chapter 12. Introduction Multiple application programs can execute simultaneously on a given computer and can send and receive.
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).
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
The Transport Layer Dr. ir. S.S. Msanjila RIS 251.
Chapter 7: Transport Layer
The Transport Layer Implementation Services Functions Protocols
Chapter 9: Transport Layer
Chapter 3 outline 3.1 Transport-layer services
Instructor Materials Chapter 9: Transport Layer
Process-to-Process Delivery, TCP and UDP protocols
06- Transport Layer Transport Layer.
PART 5 Transport Layer Computer Networks.
Transport Layer Unit 5.
Transport Layer Our goals:
Process-to-Process Delivery:
The Transport Layer Chapter 6.
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
Transport Layer 9/22/2019.
Presentation transcript:

5. The Transport Layer 5.1 Role of Transport Layer It bridge the gab between applications and the network layer. Provides reliable cost-effective data transport from source machine to destination machine independent of the underlying network and their topology. Primary Task Performed by Transport Layer Opening a connection between two hosts. Managing the connection. Terminating an open connection.

The Transport Layer - Features -Segmentation - Flow Control - Connection establishment and breakdown. - Error recovery - connection multiplexing - QoS (Quality of Service) - Reliable and Unreliable connection - Reliable connection – TCP (if packet is small) - Unreliable connection – UDP (if packet is big) Which protocol is used to transfer AUDIO OR VIDEO data, why?

5.2 Addressing Transport layer addresses ports. when an application on one machine tries to communicate to an application on another machine, it must be able to specify which application it wants to talk. The process is done by channel number, also known as, Ports. For Instance: for web application service – port 80. Further, for every network application there might not be dedicated ports assigned, …hence PROCESS SERVERS comes to play role. Every client request have to pass through this Process Server, which helps client to communicate with desired application.

5.3 A Simple Transport Protocol IDLE PEND oPEND i CONN CR TR CC TR CR TR DATA IncomingOutgoing Network to Transport Transport to Application Figure: State Diagram for Simple Transport Protocol Module CR – connection Request TR – Terminate Request CC – Connection Confirmed

5.4 Setting up a Connection Transport layer connects two computers using protocol that depends on “Number of Handshakes.”. It is required, because the underlying network can lose or duplicate messages and the transport layer modules could get stuck. Scenario: If one host sends CR request, while the receiving host gets crashed, then the sender would be stuck forever in the PEND o state. The situation of the sender host is also known as DEAD LOCK.

Past Year Questions from Chapter 5 1.State 3-way handshaking process with state diagrams or event diagram? 2.With aid of diagrams, describe differences between Event and State diagrams? (6m) 3.How Transport layer guarantee the data it sends will deliver if the underlying network is unreliable? (2m) 4.With aid of diagrams, explain Deadlock and Live lock situation? (6m) 5.With aid of diagram, describe 3-way handshake process? (7m) 6.List the cases that have to be handled during terminating the connection? (3m) 7.Two approaches of congestion control is packet elimination and relying on flow control, describe each. (4m) 8.How Selective Repeat Receiver enhances flow control compared to GO-BACK-N scheme? (2m)

Two-way Handshake Two-way handshake is the oldest process used by Transport layer during the connection sessions between two hosts. IDLE CONN CR CC Host A Host B

Two-way Handshake Two-way Handshake Failure IDLE CONN CR CC Host A Host B Lost Stays on IDLE state Stays on CONN state This is also known as DEADLOCKED state

Naive Three-way Handshake It is the process used by Transport layer to eradicate the problem found in Two-way Handshake using Timer and Acknowledgement concepts. IDLE ACKCONN CR CC Host A Host B WACK o WACK i CONN

Naive Three-way Handshake Naïve Three-way Handshake Failure IDLE Host A Host B WACK o WACK i IDLE WACK o IDLE WACK i This Process could go on indefinitely, and is also known as LIVELOCK.

Three-way Handshake with Sequence Number It eradicates all problems found in naive handshaking method with the use of Sequence Numbers to differentiate between the request that is passed on. Data (seq = x+1 ; ack = y) CR (seq = x) CC (seq = y ; ack = x) Host A Host B

5.5 Terminating a Connection There are three obvious cases that have to handled during connection termination. A issues a TR (Termination Request) message. A and B issue TR simultaneously. Transport Layer detects networks has problems and informs A and B.

5.5 Managing a Connection Buffering As underlying Network is unreliable it is good practice to adopt Buffering. Buffering means, to temporarily store the data that are be transmitted from the sender until they are acknowledged by the receiver. As the traffic in the internet is very high, the storage requirement of buffer might increase significantly, hence proper buffer management is required. Alternatively, a common buffer pool, or a per-connection buffer pool can be used. Further, the size of the buffer pool can also be varied as the traffic pattern changes.

5.5 Managing a Connection (contd) Flow Control It is required where a fast sender is sending to a slow receiver. Since, once the receiver buffers are full, additional messages sent are lost and is required to send once again. Sliding Window Protocol It uses sequence number from 0 to n to denote specific messages. The sender maintains list of consecutive sequence numbers corresponding to messages it is permitted to send (THE SENDING WINDOW) While, the receiver maintains a list of messages it is prepared to accept (THE RECEIVING WINDOW).

5.5 Managing a Connection (contd) Go-Back-N It also uses basic Sliding Window Protocol, where receiver will acknowledge each message before sender will send next one. It allows sender to send N-1 more packets before an acknowledge received for sent packets. Selective Repeat Receiver Unlike Go-Back-N, this method not all messages, rather buffer correct messages from bad ones. Further, the sender will have to sent only the damaged message and receives an acknowledgement for it. If the damaged message arrives at the receiver, it will trash all subsequent messages so that sender has to sent all again.

5.5.3 Multiplexing Upwards Multiplexing A transport layer can reduce network costs by having several transport layer connections share the same network layer connection. Downwards Multiplexing If a transport user needs a high bandwidth connection, but each network connection is of limited bandwidth, then the transport layer connection can be spread over several network layer connections Network Crash Recovery – will be discussed in TCP chapter as it provides the solution with half-open connection.