Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.

Slides:



Advertisements
Similar presentations
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Advertisements

TCP/IP Christopher Zacky. lolwut Decimal Numbers.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Intermediate TCP/IP TCP Operation.
Guide to TCP/IP, Third Edition
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
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.
Networks I Transmission Control Protocol Instituto Tecnológico y de Estudios Superiores de Monterrey Campus Estado de México Prof. MSc. Ivan A. Escobar.
Instructor: Sam Nanavaty TCP/IP protocol. Instructor: Sam Nanavaty Version – Allows for the evolution of the protocol IHL (Internet header length) – Length.
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.
Chapter 7 – Transport Layer Protocols
Copyright 1999, S.D. Personick. All Rights Reserved. Telecommunications Networking II Lecture 32 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
EEC-484/584 Computer Networks Lecture 15 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
IP Basics. Physical Link Network IP ARP ICMP RoutingTables.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
© 2009 Pearson Education, Inc. Publishing as Prentice Hall More on TCP/IP Module A Updated January 2009 Raymond Panko’s Business Data Networks and Telecommunications,
Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if.
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Transport Layer TCP and UDP IS250 Spring 2010
Gursharan Singh Tatla Transport Layer 16-May
More on TCP/IP Module A Copyright 2001 Prentice Hall.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
More on TCP/IP Module A Panko’s Business Data Networks and Telecommunications, 6th edition Copyright 2007 Prentice-Hall May only be used by adopters of.
Module A Panko and Panko Business Data Networks and Telecommunications, 8 th Edition © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
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.
TCP: A Closer Look Transmission Control Protocol.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
26-TCP Dr. John P. Abraham Professor UTPA. TCP  Transmission control protocol, another transport layer protocol.  Reliable delivery  Tcp must compensate.
University of the Western Cape Chapter 12: The Transport Layer.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Copyright 2002, S.D. Personick. All Rights Reserved.1 Telecommunications Networking II Topic 20 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
Transmission Control Protocol
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Networking Basics CCNA 1 Chapter 11.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
© Jörg Liebeherr (modified by Malathi Veeraraghavan) 1 Overview Formats, Data Transfer, etc. Connection Management.
Hour 6 The Transport Layer 1. What You'll Learn in This Hour Connections oriented and connectionless protocols Ports and sockets TCP UDP 2.
Transport Protocols.
1 Version 3.1 Module 10 Intermediate TCP/IP (Layer 4)
1 Transmission Control Protocol (TCP) RFC: Introduction The TCP is intended to provide a reliable process-to-process communication service in a.
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Introduction to TCP/IP networking
Multiplexing.
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Process-to-Process Delivery
TCP.
© 2003, Cisco Systems, Inc. All rights reserved.
More on TCP/IP Module A Copyright 2004 Prentice Hall Panko’s Business Data Networking and Telecommunications, 5th edition.
Standards Basics.
Module A Updated January 2009
TCP - Part I Karim El Defrawy
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transport Protocols: TCP Segments, Flow control and Connection Setup
Network Architecture Models: Layered Communications
Transport Layer 9/22/2019.
Presentation transcript:

Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson

 TCP is reliable. ◦ IP packets carrying TCP segments may arrive out of order. ◦ TCP must put the TCP segments in order © 2013 Pearson

 TCP is reliable. ◦ Each correct TCP segment is acknowledged by the receiver. 3 Source Transport Process Source Transport Process Destination Transport Process Destination Transport Process TCP Segment ACK © 2013 Pearson

 Each TCP segment sent by a side must have a sequence number. ◦ Simplest approach to sequence numbers: 1,2,3,4,5,6,7, and so on ◦ To detect lost or out-of-sequence messages ◦ (TCP uses a more complex approach than this, as we will see) ? © 2013 Pearson

 TCP header has a 32-bit sequence number field. 5 Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if any)PAD Reserved (6) TCP Checksum (16)Urgent Pointer (16) Data Field © 2013 Pearson

 Initial Sequence Number is randomly selected by the sender; say, 79.  Sent in the sequence number field of the first TCP segment TCP Data Field TCP Header Sequence Number Field with Initial Sequence Number (79) © 2013 Pearson

 Data octets in data fields of all segments in a connection are viewed as a long string.  TCP Segment 179  TCP Segment  TCP Segment Octets in Data Field 2 Octets in Data Field ISN © 2013 Pearson

 Supervisory segments, which contain a header but no data, are treated as carrying a single octet of data.  TCP seg  TCP seg 2900  TCP seg … 8 Supervisory Segment Carries Data © 2013 Pearson

 Sequence number field gets the value of the first octet in the data field.  TCP 179  TCP  TCP is SeqNum Field Value 83 is SeqNum Field Value 79 is SeqNum Field Value © 2013 Pearson

 Acknowledgement must indicate which TCP segment is being acknowledged. 10 Source TCP Process Source TCP Process Destination TCP Process Destination TCP Process TCP Segment ACK © 2013 Pearson

 TCP header contains a 32-bit Acknowledgement Number field to designate the TCP segment being acknowledged. 11 Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if any)PAD Reserved (6) TCP Checksum (16)Urgent Pointer (16) Data Field © 2013 Pearson

 Acknowledgement Number field contains the next byte expected—the last byte of the segment being acknowledged, plus one.  TCP 179  TCP  TCP is AckNum Field Value 85 is AckNum Field Value 80 is AckNum Field Value © 2013 Pearson

 Quiz: A TCP segment contains the following data octets: ◦ 567, 568, 569, 570, 571, 572, 573, 574  What will be in the sequence number field of the TCP segment delivering the data?  What will be in the acknowledgement number field of the TCP segment acknowledging the TCP segment that delivers these octets? 13 © 2013 Pearson

 Flow Control ◦ One TCP process transmits too fast. ◦ Other TCP process is overwhelmed. ◦ Receiver must control transmission rate. ◦ This is flow control. 14 TCP Process Too Much Data Flow Control Message © 2013 Pearson

 A TCP segment has a Window Size field. ◦ Used in acknowledgements 15 Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6) Window Size (16) Options (if any)PAD Reserved (6) TCP Checksum (16)Urgent Pointer (16) Data Field © 2013 Pearson

 A TCP segment has a Window Size field. ◦ Tell how many more octets the sender can send beyond the segment being acknowledged 16 TCP Process Data Acknowledgement with Window Size Field © 2013 Pearson

 Example ◦ TCP segment contained octets 45–89 ◦ Acknowledgement number for TCP segment acknowledging the segment is 90 ◦ If Window Size field value is 50, then ◦ Sender may send through octet 140 ◦ Must then stop unless the window has been extended in another acknowledgement 17 © 2013 Pearson

 Each Acknowledgement extends the window of octets that may be sent. ◦ Called a sliding window protocol 18 1–4445 – 7980 – – May send through – 4445 – 7980 – – May send through 920 © 2013 Pearson

 TCP Segments have maximum data field sizes. ◦ (Size limit details are discussed later.) ◦ What if an application layer message is too large? 19 TCP HeaderTCP Data Field Max Application Layer Message © 2013 Pearson

 Application layer message must be fragmented. ◦ Broken into several pieces ◦ Delivered in separate TCP segments 20 TCP HeaderTCP Data Field Max App Frag 1App Frag 2App Frag 3 © 2013 Pearson

 Note that, in TCP fragmentation, the TCP segment is not fragmented. ◦ The application layer message is fragmented. 21 TCP HeaderTCP Data Field Max App Frag 1App Frag 2App Frag 3 © 2013 Pearson

 Transport layer process on the source host does the fragmentation. ◦ Application layer on the source host is not involved ◦ Transparent to the application layer 22 Application Transport Internet Application Message TCP Segment © 2013 Pearson

 Transport layer process on the destination host does the reassembly. ◦ Application layer on the destination host is not involved; gets original application layer message. 23 Application Transport Internet Application Message TCP Segment © 2013 Pearson

 What is the maximum TCP data field size? ◦ Complex  Maximum Segment Size (MSS) ◦ Maximum size of a TCP segment’s data field ◦ NOT maximum size of the segment as its name would suggest!!! 24 © 2013 Pearson

 MSS Default is 536 octets. ◦ Maximum IP packet size any network must support is 576 octets.  Larger IP packets MAY be fragmented ◦ IP and TCP headers are 20 octets each if there are no options. ◦ This gives the default MSS of 536. ◦ Smaller if there are options in the IP or TCP header. 25 © 2013 Pearson

 MSS Default is 536 octets. ◦ Suppose the application layer process is 1,000 octets long. ◦ Two TCP segments will be needed to send the data. ◦ The first can send the first 536 octets. ◦ The second can carry the remaining 464 octets of the application layer message. 26 © 2013 Pearson

 Each side may announce a larger MSS. ◦ An option usually used in the initial SYN message it sends to the other. ◦ If announces MSS of 2,048, this many octets of data may be sent in each TCP segment. ◦ 536 is only the default—the value to use if no other value is specified by the other side. 27 © 2013 Pearson

28 © 2013 Pearson