CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 26 Introduction to Computer Networks.

Slides:



Advertisements
Similar presentations
Chapter 6 The Transport Layer.
Advertisements

Transportation Layer (2). TCP full duplex data: – bi-directional data flow in same connection – MSS: maximum segment size connection-oriented: – handshaking.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 6 Transport Layer.
Chapter 6 The 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.
Transmission Control Protocol (TCP)
Intermediate TCP/IP TCP Operation.
TELE202 Lecture 13 TCP/UDP (1) 1 Lecturer Dr Z. Huang Overview ¥This Lecture »Internet Protocols (4) »Source: chapter 15 ¥This Lecture »TCP/UDP (1) »Source:
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.
Lecture 7 Transport Layer
Copyright 1999, S.D. Personick. All Rights Reserved. Telecommunications Networking II Lecture 32 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
EEC-484/584 Computer Networks Lecture 15 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Winter CMPE 155 Week 3. Winter Project 3: Basic Servers Telnet Rlogin FTP Web In this context, let’s look at the underlying protocols…
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Spring 2003 Week 8 Introduction to Networks and the Internet.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 27 Introduction to Computer Networks.
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Transport Layer TCP and UDP IS250 Spring 2010
1 Computer Networks Transport Layer Protocols. 2 Application-layer Protocols Application-layer protocols –one “piece” of an app –define messages exchanged.
CMPE 150 – Winter 2009 Lecture 15 February 26, 2009 P.E. Mantey.
Gursharan Singh Tatla Transport Layer 16-May
What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host IP treats a computer as an endpoint of communication Best.
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.
The Transport Layer.
1 Transport Layer Computer Networks. 2 Where are we?
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Transport Layer Protocols – UDP and TCP Asst.
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.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_a Transport Protocols - UDP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
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 All.
Chapter 6 The Transport Layer.
Transport Layer and UDP Tahir Azim Ref:
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 3 Transport Layer.
Transport Layer Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
The Transport Layer.
ECE453 – Introduction to Computer Networks Lecture 14 – Transport Layer (I)
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Transport Layer Overview (§ )
The Transport Layer Chapter 6. The Transport Service The transport layer is the heart of the whole protocol hierarchy It provides reliable data transport.
TCP/IP Transport and Application (Topic 6)
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 End-user Protocols, Services and QoS. 2 Layering: logical communication application transport network link physical application transport network link.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
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.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Network Communications A Brief Introduction. 2 Network Communications.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
2: Transport Layer 11 Transport Layer 1. 2: Transport Layer 12 Part 2: Transport Layer Chapter goals: r understand principles behind transport layer services:
The Transport Layer Dr. ir. S.S. Msanjila RIS 251.
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
Unit-7 The Transport Layer.
Process-to-Process Delivery:
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 26 Introduction to Computer Networks

CMPE 150- Introduction to Computer Networks 2 Announcements Homework 5 posted. –Due, Mon, There will be a lab this week. –Wed session will be looonger! Final exam: December 7 th. 4-7pm –In class. –Closed books/notes. Course evaluation. –Last day of class. CE 151 will be offered in Winter 06!

CMPE 150- Introduction to Computer Networks 3 Today Transport Layer! –Chapter 6 of Tanenbaum.

CMPE 150- Introduction to Computer Networks 4 The Transport Layer End-to-end. –Communication from source to destination host. –Only hosts run transport-level protocols. –Under user’s control as opposed to network layer which is controlled/owned by carrier.

CMPE 150- Introduction to Computer Networks 5 The Transport Service Service provided to application layer. Transport entity: process that implements the transport protocol running on a host. –Typically at OS kernel, or user-level process.

CMPE 150- Introduction to Computer Networks 6 The Transport Layer Transport Entity Application Layer Network Layer Transport address Network Address Transport/ network interface Application/ transport interface Transport Entity Application Layer Network Layer TPDU Source host Destination host TPDU = Transport Protocol Data Unit

CMPE 150- Introduction to Computer Networks 7 Types of Transport Services Connection-less versus connection-oriented. Connection-less service: no logical connections, no flow or error control. Connection-oriented: –Based on logical connections: connection setup, data transfer, connection teardown. –Flow and error control.

CMPE 150- Introduction to Computer Networks 8 Transport Protocol Issues: Addressing Address of the transport-level entity. TSAP: transport service access point (analogous to NSAP). –Internet TSAP: (IP address, local port). –Internet NSAP: IP address. –There may be multiple TSAPs on one host. –Typically, only one NSAP.

CMPE 150- Introduction to Computer Networks 9 Addressing: Example TSAPs, NSAPs and transport connections.

CMPE 150- Introduction to Computer Networks 10 Finding Services Well-known TSAP. –Time-of-day server has been using TSAP 1522 forever so every users know it.

CMPE 150- Introduction to Computer Networks 11 Finding Services Alternative Name or directory service. –Name server listens to well-known TSAP. –User sends service name and name server responds with service’s TSAP. –New services need to register with name server.

CMPE 150- Introduction to Computer Networks 12 The Internet Transport Layer Two main protocols: –TCP: Transmission Control Protocol. –UDP: User Datagram Protocol.

CMPE 150- Introduction to Computer Networks 13 UDP

CMPE 150- Introduction to Computer Networks 14 UDP RFC 768. No connection establishment. No reliability. No ordering. No flow- or congestion control.

CMPE 150- Introduction to Computer Networks 15 The UDP Header 8 bytes. Optional checksum.

CMPE 150- Introduction to Computer Networks 16 TCP

CMPE 150- Introduction to Computer Networks 17 Transmission Control Protocol RFCs 793, 1122, and Reliable end-to-end. Expects unreliable network.

CMPE 150- Introduction to Computer Networks 18 The TCP Service Model Ports below 1024 are reserved. Some assigned ports (for more look at PortProtocol Use 21 FTP File transfer 23 Telnet Remote login 25 SMTP 69 TFTP Trivial File Transfer Protocol 79 FingerLookup info about a user 80 HTTP World Wide Web 110 POP-3 Remote access 119 NNTP USENET news

CMPE 150- Introduction to Computer Networks 19 TCP Connections Point-to-point. Full duplex. Byte stream.

CMPE 150- Introduction to Computer Networks 20 The TCP Service Model (2) (a) Four 512-byte segments sent as separate IP datagrams. (b) The 2048 bytes of data delivered to the application in a single READ CALL.

CMPE 150- Introduction to Computer Networks 21 TCP Segment Header: –20 bytes mandatory. –Options. Payload: –Up to (64 Kbytes – ) of data.

CMPE 150- Introduction to Computer Networks 22 The TCP Header

CMPE 150- Introduction to Computer Networks 23 Connection Establishment

CMPE 150- Introduction to Computer Networks 24 Three-Way Handshake Solves the problem of getting 2 sides to agree on initial sequence number. CR (seq=x) ACK(seq=y,ACK=x) DATA(seq=x, ACK=y) CR: connection request. 1 2

CMPE 150- Introduction to Computer Networks 25 Delayed Duplicates. Old duplicate CR.. The ACK from host 2 tries to verify if host 1 was trying to open a new connection with seq=x.. Host 1 rejects host 2’s attempt to establish. Host 2 realizes it was a duplicate CR and aborts connection. CR(seq=x) * ACK(seq=y, ACK=x) REJECT(ACK=y) 1 2

CMPE 150- Introduction to Computer Networks 26 Delayed Duplicates. Old duplicate CR and ACK to connection accepted. CR(seq=x) * ACK(seq=y, ACK=x) REJECT(ACK=y) 1 2 DATA(seq=x, ACK=z)

CMPE 150- Introduction to Computer Networks 27 TCP Connection Establishment 6-31

CMPE 150- Introduction to Computer Networks 28 Sequence Numbers versus Time 1 Seq. #’s Time. Linear relation between time and initial sequence number.

CMPE 150- Introduction to Computer Networks 29 Connection Release Asymmetric release: telephone system. –When one party hangs up, connection breaks. –May cause data loss. Symmetric release: –Treats connection as 2 separate unidirectional connections. –Requires each to be released separately.

CMPE 150- Introduction to Computer Networks 30 Symmetric Release How to determine when all data has been sent and connection could be released? 2-army problem: Blue army 1 White army Blue army 2. White army larger than either blue armies.. Blue army together is larger.. If each blue army attacks, it’ll be defeated. They win if attack together.

CMPE 150- Introduction to Computer Networks 31 2-Army Problem To synchronize attack, they must use messengers that need to cross valley: unreliable. Is there a protocol that allows blue army to win? No. –Blue army 1 sends message to blue army 2. –Blue army 2 sends ACK back. –Blue army 2 is not sure whether ACK was received.

CMPE 150- Introduction to Computer Networks 32 2-Army Problem (Cont’d) Use 2-way handshake. –Blue army 1 ACKs back but it’ll never know if the ACK was received. Applying to connection release: –Neither side is prepared to disconnect until convinced other side is prepared to disconnect. –In practice, hosts are willing to take risks.

CMPE 150- Introduction to Computer Networks 33 Connection Release Protocol DR ACK DR: disconnection request. Send DR+ start timer Send DR+ start timer Release connection Send ACK Release connection

CMPE 150- Introduction to Computer Networks 34 Connection Release: Scenario 1 DR ACK DR: disconnection request. Send DR+ start timer Send DR+ start timer Release connection Send ACK Timeout: Release connection

CMPE 150- Introduction to Computer Networks 35 Connection Release: Scenario 2 DR DR: disconnection request. Send DR+ start timer Send DR+ start timer Timeout: send DR+ start timer Release connection DR Send DR+ start timer DR ACK

CMPE 150- Introduction to Computer Networks 36 TCP Connection Release Each side released independently. –TCP segment with FIN bit set. –Means that side has no more data to send. When both sides have shutdown, connection is released,

CMPE 150- Introduction to Computer Networks 37 TCP Connection Release FIN FIN ACK FIN FIN ACK Timers to avoid 2-army problem.