McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)

Slides:



Advertisements
Similar presentations
Transmission Control Protocol (TCP)
Advertisements

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
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Transport Layer PART V.
Provides a reliable unicast end-to-end byte stream over an unreliable internetwork.
TCP/IP Protocol Suite 1 Chapter 13 Upon completion you will be able to: Stream Control Transmission Protocol Be able to name and understand the services.
TCP/IP Protocol Suite 1 Chapter 13 Upon completion you will be able to: Stream Control Transmission Protocol Be able to name and understand the services.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 13 Introduction to the Transport.
UNIT 07 Process – to – Process Delivery: UDP,TCP and SCTP
Chapter 15 Transmission Control Protocol (TCP)
Chapter 14 User Datagram Program (UDP)
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:
Chapter 16 Stream Control Transmission Protocol (SCTP)
1 Transport Layer Computer Networks. 2 Where are we?
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.
Networked & Distributed Systems TCP/IP Transport Layer Protocols UDP and TCP University of Glamorgan.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
Chapter 12 Transmission Control Protocol (TCP)
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
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.
Chapter 13 The Internet.
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
NET 221D:COMPUTER NETWORKS FUNDAMENTALS Lecture : Transport Layer: Behrouz A. Forouzan” Data communications and Networking 1.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 10 Internet Group Management Protocol (IGMP)
ECE 4110 – Internetwork Programming
Chapter 13 Introduction to the Transport Layer
Stream Control Transmission Protocol
TCP Transmission Control Protocol Part 2 CH 23 Aseel Alturki.
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.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 16 Stream Control Transmission.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
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 Transmission Control Protocol (TCP) RFC: Introduction The TCP is intended to provide a reliable process-to-process communication service in a.
Process-to-Process Delivery:
TCP/IP Protocol Suite 1 Chapter 12 Upon completion you will be able to: Transmission Control Protocol Be able to name and understand the services offered.
Ch23 Ameera Almasoud 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
Chapter 15 Transmission Control Protocol (TCP)
Chapter 15 Transmission Control Protocol (TCP)
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Process-to-Process Delivery
PART 5 Transport Layer Computer Networks.
TCP Transport layer Er. Vikram Dhiman LPU.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 15 Transmission Control Protocol.
Process-to-Process Delivery:
Dr. John P. Abraham Professor UTPA
Dr. John P. Abraham Professor UTPA
Chapter 15 Transmission Control Protocol (TCP)
PART V Transport Layer.
Chapter 14 User Datagram Program (UDP)
PART 5 Transport Layer.
Process-to-process delivery UDP TCP SCTP
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONTENTS PROCESS-TO-PROCESS COMMUNICATION TCP SERVICES NUMBERING BYTES FLOW CONTROL SILLY WINDOW SYNDROME ERROR CONTROL TCP TIMERS

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONTENTS (continued) CONGESTION CONTROL SEGMENT OPTIONS CHECKSUM CONNECTION STATE TRANSITION DIAGRAM TCP OERATION TCP PACKAGE

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-1 Position of TCP in TCP/IP protocol suite

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PROCESS TO PROCESS COMMUNICATION 12.1

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-2 TCP versus IP

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-3 Port numbers

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 TCP SERVICES 12.2

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-4 Stream delivery

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-5 Sending and receiving buffers

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-6 TCP segments

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 NUMBERING BYTES 12.3

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 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 is sent in five segments with the first four segments carrying 1,000 bytes and the last segment carrying 2,000 bytes?

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Solution The following shows the sequence number for each segment: Segment 1  10,010 (10,010 to 11,009) Segment 2  11,010 (11,010 to 12,009) Segment 3  12,010 (12,010 to 13,009) Segment 4  13,010 (13,010 to 14,009) Segment 5  14,010 (14,010 to 16,009)

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

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 FLOW CONTROL 12.4

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 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.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-7 Sender buffer

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-8 Receiver window

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 12-9 Sender buffer and sender window

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

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

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 In TCP, the sender window size is totally controlled by the receiver window value. However, the actual window size can be smaller if there is congestion in the network.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Some Points about TCP’s Sliding Windows: 1. The source does not have to send a full window’s worth of data. 2. The size of the window can be increased or decreased by the destination. 3. The destination can send an acknowledgment at any time.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SILLY WINDOW SYNDROME 12.5

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 ERROR CONTROL 12.6

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Corrupted segment

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

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 TCP TIMERS 12.7

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONGESTION CONTROL 12.8

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 TCP assumes that the cause of a lost segment is due to congestion in the network.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 If the cause of the lost segment is congestion, retransmission of the segment not only does not remove the cause, it aggravates it.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Multiplicative decrease

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Congestion avoidance strategies

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SEGMENT 12.9

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

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 OPTIONS 12.10

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Options

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure End of option option

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure No operation option

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Maximum segment size option

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Window scale factor option

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Timestamp option

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CHECKSUM 12.11

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Pseudoheader added to the TCP datagram

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONNECTION 12.12

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Three-way handshaking

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Four-way handshaking

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 STATE TRANSITION DIAGRAM 12.13

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Client states

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Server states

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 TCP OPERATION 12.14

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Encapsulation and decapsulation

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

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 TCP PACKAGE 12.15

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure TCP package

McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure TCBs Transmission control blocks