McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Transport Layer PART V.

Slides:



Advertisements
Similar presentations
School of Information Technologies
Advertisements

ICE 302 T RANSPORT LAYER 1 Thanks to A. B. Forouzan Md. Asif Hossain Term # 2 Lecture # 2.
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transmission Control Protocol (TCP)
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
1 CS 4396 Computer Networks Lab Transmission Control Protocol (TCP) Part I.
Transmission Control Protocol (TCP) Basics
Chapter 12 Transmission Control Protocol (TCP)
PART V Transport Layer.
Datornätverk A – lektion 8 Kapitel 11: Flow control and Error control. (Kapitel 12: Point-to-point access PPP. Översiktligt.)
Transmission Control Protocol (TCP)
UNIT 07 Process – to – Process Delivery: UDP,TCP and SCTP
TCP© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
6/9/2015 Unit-4 : Transport Layer 1 CS 1302 Computer Networks — Unit - 4 — — Transport Layer — Text Book Behrouz.A. Forouzan, “Data communication and Networking”,
1 K. Salah Module 6.0: Transport Layer Protocols UDP & TCP Chapter 23 & 24.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Process-to-Process Delivery:
Ch 23 Ameera Almasoud Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
Process-to-Process Delivery:
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.
Transmission Control Protocol (TCP)
Chapter 11 User Datagram Protocol (UDP)
Hyung-Min Lee©Networking Lab., 2001 Chapter 11 User Datagram Protocol (UDP)
User Datagram Protocol, UDP 指導老師:梁德昭 老師 學生:吳雅真 學號: 日期:
26-TCP Dr. John P. Abraham Professor UTPA. TCP  Transmission control protocol, another transport layer protocol.  Reliable delivery  Tcp must compensate.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 3 Transport Layer.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transport Layer3-1 Chapter 3 Transport Layer These ppt slides are originally from the Kurose and Ross’s book. But some slides are deleted and added for.
Multimedie- och kommunikationssystem Föreläsning 11 Kapitel 12: Transportprotokoll. Flödesstyrning och trafikstocknings­hantering. Sliding window.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Transmission Control Protocol (TCP)
23.1 Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 12 Transmission Control Protocol (TCP). Outline  PROCESS-TO-PROCESS COMMUNICATION  TCP SERVICES  NUMBERING BYTES  FLOW CONTROL  SILLY WINDOW.
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
Datornätverk A – lektion 13 Kapitel 19: Routing. Kapitel 21: Routing Protocols Forts. kapitel 22: UDP och TCP. (Kapitel 23: Congestion control and QoS.
NET 221D:COMPUTER NETWORKS FUNDAMENTALS Lecture : Transport Layer: Behrouz A. Forouzan” Data communications and Networking 1.
ECE 4110 – Internetwork Programming
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)
1 Kyung Hee University PART 5 Transport Layer. 2 Kyung Hee University Role of position of Transport Layer  Overseeing the delivery of data from a process,
TCP/IP Protocol Suite 1 Chapter 11 Upon completion you will be able to: User Datagram Protocol Be able to explain process-to-process communication Know.
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 3 Transport Layer.
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.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
Process-to-Process Delivery:
02/10/20161 Chapter 3 Transport layer Erman Hamid.
(Kapitel 23: Congestion control and QoS översiktligt.)
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Process-to-Process Delivery
TCP.
PART 5 Transport Layer Computer Networks.
TCP Transport layer Er. Vikram Dhiman LPU.
Process-to-Process Delivery:
TCP - Part I Karim El Defrawy
Process-to-Process Delivery:
PART V Transport Layer.
PART 5 Transport Layer.
Process-to-process delivery UDP TCP SCTP
CS 1302 Computer Networks — Unit - 4 — — Transport Layer —
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Lecture 21 and 22 5/29/2019.
Process-to-Process Delivery: UDP, TCP
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Layer 9/22/2019.
Presentation transcript:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Transport Layer PART V

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Position of transport layer

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Transport layer duties

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapters Chapter 22 Process-to-Process Delivery Chapter 23 Congestion Control and QoS

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 22 Process-to-Process Delivery: UDP and TCP

McGraw-Hill©The McGraw-Hill Companies, Inc., Process-to-Process Delivery Client-Server Paradigm Addressing Multiplexing and Demultiplexing Connectionless/Connection-Oriented Reliable/Unreliable

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The transport layer is responsible for process-to-process delivery. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.1 Types of data deliveries

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.2 Port numbers

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.3 IP addresses versus port numbers

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.4 IANA ranges

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.5 Socket address

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.6 Multiplexing and demultiplexing

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.7 Connection establishment

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.8 Connection termination

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 22.9 Error control

McGraw-Hill©The McGraw-Hill Companies, Inc., UDP Port Numbers User Datagram Applications

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 UDP is a connectionless, unreliable protocol that has no flow and error control. It uses port numbers to multiplex data from the application layer. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 22.1 Well-known ports used by UDP PortProtocolDescription 7EchoEchoes a received datagram back to the sender 9DiscardDiscards any datagram that is received 11UsersActive users 13DaytimeReturns the date and the time 17QuoteReturns a quote of the day 19ChargenReturns a string of characters 53NameserverDomain Name Service 67BootpsServer port to download bootstrap information 68BootpcClient port to download bootstrap information 69TFTPTrivial File Transfer Protocol 111RPCRemote Procedure Call 123NTPNetwork Time Protocol 161SNMPSimple Network Management Protocol 162SNMPSimple Network Management Protocol (trap)

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure User datagram format

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The calculation of checksum and its inclusion in the user datagram are optional. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 UDP is a convenient transport-layer protocol for applications that provide flow and error control. It is also used by multimedia applications. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., TCP Port Numbers Services Sequence Numbers Segments Connection Transition Diagram Flow and Error Control Silly Window Syndrome

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 22.2 Well-known ports used by TCP PortProtocolDescription 7 EchoEchoes a received datagram back to the sender 9DiscardDiscards any datagram that is received 11UsersActive users 13DaytimeReturns the date and the time 17QuoteReturns a quote of the day 19ChargenReturns a string of characters 20FTP, DataFile Transfer Protocol (data connection) 21FTP, ControlFile Transfer Protocol (control connection) 23TELNETTerminal Network 25SMTPSimple Mail Transfer Protocol 53DNSDomain Name Server 67BOOTPBootstrap Protocol 79Finger 80HTTPHypertext Transfer Protocol 111RPCRemote Procedure Call

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Stream delivery

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Sending and receiving buffers

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure TCP segments

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 1 Imagine a TCP connection is transferring a file of 6000 bytes. The first byte is numbered What are the sequence numbers for each segment if data are sent in five segments with the first four segments carrying 1000 bytes and the last segment carrying 2000 bytes? Solution The following shows the sequence number for each segment: Segment 1 ==> sequence number: 10,010 (range: 10,010 to 11,009) Segment 2 ==> sequence number: 11,010 (range: 11,010 to 12,009) Segment 3 ==> sequence number: 12,010 (range: 12,010 to 13,009) Segment 4 ==> sequence number: 13,010 (range: 13,010 to 14,009) Segment 5 ==> sequence number: 14,010 (range: 14,010 to 16,009)

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The bytes of data being transferred in each connection are numbered by TCP. The numbering starts with a randomly generated number. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The value of the sequence number field in a segment defines the number of the first data byte contained in that segment. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 The value of the acknowledgment field in a segment defines the number of the next byte a party expects to receive. The acknowledgment number is cumulative. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure TCP segment format

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Control field

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 22.3 Description of flags in the control field FlagDescription URGThe value of the urgent pointer field is valid. ACKThe value of the acknowledgment field is valid. PSHPush the data. RSTThe connection must be reset. SYNSynchronize sequence numbers during connection. FINTerminate the connection.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Three-step connection establishment

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Four-step connection termination

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 22.4 States for TCP StateDescription CLOSEDThere is no connection. LISTENThe server is waiting for calls from the client. SYN-SENTA connection request is sent; waiting for acknowledgment. SYN-RCVDA connection request is received. ESTABLISHEDConnection is established. FIN-WAIT-1The application has requested the closing of the connection. FIN-WAIT-2The other side has accepted the closing of the connection. TIME-WAITWaiting for retransmitted segments to die. CLOSE-WAITThe server is waiting for the application to close. LAST-ACKThe server is waiting for the last acknowledgment.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure State transition diagram

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 A sliding window is used to make transmission more efficient as well as to control the flow of data so that the destination does not become overwhelmed with data. TCP’s sliding windows are byte-oriented. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Sender buffer

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Receiver window

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Sender buffer and sender window

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Sliding the sender window

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Expanding the sender window

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Shrinking the sender window

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 In TCP, the sender window size is totally controlled by the receiver window value (the number of empty locations in the receiver buffer). However, the actual window size can be smaller if there is congestion in the network. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Some points about TCP’s sliding windows: Note: The source does not have to send a full window’s worth of data. The size of the window can be increased or decreased by the destination. The destination can send an acknowledgment at any time.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Lost segment

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Lost acknowledgment

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure TCP timers