Guide to TCP/IP, Third Edition

Slides:



Advertisements
Similar presentations
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Advertisements

Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 5 Transport Layer TCP/IP Protocols.
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.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
TCP: Transmission Control Protocol Overview Connection set-up and termination Interactive Bulk transfer Timers Improvements.
Transmission Control Protocol (TCP) Basics
Transport Layer TCP/IP Protocols
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
TRANSPORT LAYER  Session multiplexing  Segmentation  Flow control (TCP)  Connection-oriented (TCP)  Reliability (TCP)
© 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
UDP - User Datagram Protocol UDP – User Datagram Protocol Author : Nir Shafrir Reference The TCP/IP Guide - ( Version Version.
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.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Process-to-Process Delivery:
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.
1 Chapter Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
1 Transport Layer Computer Networks. 2 Where are we?
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
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.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
CS332, Ch. 26: TCP Victor Norman Calvin College 1.
University of the Western Cape Chapter 12: The Transport Layer.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Routers and Routing Basics CCNA 2 Chapter 10.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
23.1 Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Networking Basics CCNA 1 Chapter 11.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
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.
ECE 4110 – Internetwork Programming
Guide to TCP/IP Fourth Edition
1 Version 3.1 Module 10 Intermediate TCP/IP (Layer 4)
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
© 2002, Cisco Systems, Inc. All rights reserved..
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.
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.
1 Transmission Control Protocol (TCP) RFC: Introduction The TCP is intended to provide a reliable process-to-process communication service in a.
1 Chapter 24 Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Chapter 9: Transport Layer
Instructor Materials Chapter 9: Transport Layer
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Process-to-Process Delivery
PART 5 Transport Layer Computer Networks.
Process-to-Process Delivery:
Transport Layer Unit 5.
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
Transport Layer 9/22/2019.
Presentation transcript:

Guide to TCP/IP, Third Edition Chapter 5: Transport Layer TCP/IP Protocols

Objectives Understand the key features and functions of the User Datagram Protocol Explain the mechanisms that drive segmentation, reassembly, and retransmission for the Transmission Control Protocol Choose between using User Datagram Protocol and Transmission Control Protocol Transport Layer TCP/IP Protocols

UDP – A Connectionless Transport Layer Protocol Connectionless protocols Provide the simplest kind of transport services UDP Used by applications that contain their own connection oriented timeout values and retry counters Runs up to 40 percent faster than TCP Transport Layer TCP/IP Protocols

UDP – A Connectionless Transport Layer Protocol (continued) Connectionless protocols handle the following kinds of tasks Message checksum Higher-layer protocol identification Transport Layer TCP/IP Protocols

Overview of UDP UDP limitations No reliability mechanisms No delivery guarantees No connection handling Identifies Application layer protocol conveyed Checksum for entire message carried in UDP header No buffering services No segmentation Transport Layer TCP/IP Protocols

UDP Header Fields and Functions UDP header’s main function To define the process or application that is using the IP and UDP Network and Transport layers UDP header fields Source Port Number field Destination Port Number field Length field Checksum field Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

UDP Header Fields and Functions (continued) Source Port Number field Defines the application or process that sends the packet using the UDP header Well-known port numbers (0 Through 1023) Assigned to core services that systems offer Registered port numbers (1024 Through 49151) Assigned to industry applications and processes Dynamic ports Used as temporary ports for specific communications while they are underway Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

UDP Header Fields and Functions (continued) Destination Port Number Field Defines destination application or process that uses the IP and UDP headers Length field Defines the length of the packet from the UDP header to the end of valid data Checksum field is optional Transport Layer TCP/IP Protocols

UDP Port Numbers and Processes UDP and TCP Use port numbers to define the source and destination processes or applications By default Windows 2000 and Windows XP support up to 5,000 ports Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP – A Connection-Oriented Protocol Functions of connection-oriented protocols Create a logical connection directly between two peers on an internetwork Track the transfer of data and ensure it arrives successfully Use sequence number tracking Have a timeout mechanism Have a retry mechanism Transport Layer TCP/IP Protocols

Overview of TCP TCP offers connection-oriented services with TCP hosts Sequencing, error recovery Sliding window mechanism TCP hosts Create a virtual connection with each other using a handshake process TCP Transfers data as a continuous stream of bytes Maximum TCP segment size is 65,495 bytes Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Startup Connection Process Begins with handshake between two hosts One host initiates the handshake to another host to Ensure the destination host is available Ensure the destination host is listening on the destination port number Inform destination host of initiator’s sequence number Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Half-Open Connections Occur when the handshake process does not end successfully with a final ACK Half-open connection communication sequence occurs in the following order SYN >>>>> <<<<< ACK SYN Transport Layer TCP/IP Protocols

TCP Keep-Alive Process Can maintain connection when there is no data sent across the wire TCP keep-alives Disabled by default on Windows 2000, Windows Server 2003, and Windows XP KeepAliveTime setting Defines how long to wait before sending the first TCP keep-alive packet Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Connection Termination Requires four packets Host 1 Sends a TCP packet with the FIN and ACK flags set Host 2 Sends an ACK in response Then sends a TCP packet with FIN and ACK flags set Returns ACK response Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Sequence and Acknowledgment Process Guarantees that packets are ordered properly and protects against missing segments During handshake process Each side of connection selects its own starting sequence number Each side increments its sequence number value by the amount of data included in the outbound packet Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Error-Detection and Error-Recovery Process Retransmission timer First error-detection and error-recovery mechanism Retransmission timeout (RTO) Value specified by timer Retransmission operation increments 1st retransmit: RTO seconds 2nd retransmit: 2 x RTO seconds 3rd retransmit: 4 x RTO seconds 4th retransmit: 8 x RTO seconds 5th retransmit: 16 x RTO seconds Transport Layer TCP/IP Protocols

TCP Congestion Control The overloading of the network or a receiver Overloading of the network Occurs when there is too much data on the network medium Overloading a receiver Occurs when the number of data bytes is greater than the advertised window Current window Always the lesser of what the network and receiver can handle Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Congestion Control (continued) TCP has four defined congestion control mechanisms Slow Start Congestion Avoidance Fast Retransmit Fast Recovery Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Sliding Window Used to determine the amount of unacknowledged data that can go out on the wire from any sender Nagle algorithm When small data segments are being sent, but not acknowledged, no other small segments can be sent Silly Window Syndrome (SWS) Caused when enough data is sent to a TCP host to fill its receiver buffer Puts receiver in a zero-window state Transport Layer TCP/IP Protocols

TCP Header Fields and Functions Source Port Number Field Destination Port Number Field Sequence Number Field Acknowledgment Number Field Header Length Field Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

TCP Header Fields and Functions (continued) Window Size Field TCP Checksum Field Urgent Pointer Field TCP Options Field(s) Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Transport Layer TCP/IP Protocols

Choosing Between TCP and UDP Because TCP is robust and reliable It carries a lot of baggage, including Additional header fields Explicit meta-messages in the form of TCP messages For some lightweight services, such as Microsoft Messenger Service TCP is overkill and UDP is used instead TCP No longer as important as it once was because Long-haul and local area networks have significantly increased speed, capacity, and reliability Transport Layer TCP/IP Protocols

Summary Transport layer protocols come in two types Connectionless and connection-oriented User Datagram Protocol The connectionless protocol associated with TCP/IP protocol suite UDP header is short and simple, consisting of A protocol identifier in the IP header An optional checksum value Source and destination port addresses Transport Layer TCP/IP Protocols

Summary (continued) Transmission Control Protocol TCP header Heavyweight, connection-oriented protocol that helps name the TCP/IP protocol suite TCP header Longer and more complex, Includes a variety of flags, values, and message types Transport Layer TCP/IP Protocols

Summary (continued) Appropriate (and historical) uses for UDP Concentrate on Application layer services that manage their own reliability and connections Appropriate (and historical) uses for TCP Concentrate on providing reliable delivery of user services Transport Layer TCP/IP Protocols