Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.

Slides:



Advertisements
Similar presentations
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 5 Transport Layer TCP/IP Protocols.
Advertisements

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)
Guide to TCP/IP, Third Edition
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
TCP: Transmission Control Protocol Overview Connection set-up and termination Interactive Bulk transfer Timers Improvements.
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.
TELE202 Lecture 14 TCP/UDP (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (1) »Source: chapter 17 ¥This Lecture »TCP/UDP (2) »Source: chapter.
Computer Networks 2 Lecture 2 TCP – I - Transport Protocols: TCP Segments, Flow control and Connection Setup.
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.
Transport Layer 3-1 outline r TCP m segment structure m reliable data transfer m flow control m congestion control.
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
Transport Layer 3-1 Outline r TCP m Congestion control m Flow control.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
IP Basics. IP encapsulates TCP IP packets travel through many different routers (hops) before reaching it’s destination MTU variation at the physical.
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Reliable Network Service: Design Issues  Unreliable Network.
Transport Layer TCP and UDP IS250 Spring 2010
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
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.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
1 Transport Layer Computer Networks. 2 Where are we?
1 Chapter 1 OSI Architecture The OSI 7-layer Model OSI – Open Systems Interconnection.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_b Transport Protocols - TCP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
TCP Lecture 13 November 13, TCP Background Transmission Control Protocol (TCP) TCP provides much of the functionality that IP lacks: reliable service.
University of the Western Cape Chapter 12: The Transport Layer.
ECE453 – Introduction to Computer Networks Lecture 14 – Transport Layer (I)
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April 2009.
An introduction to TCP and its modeling By: Amin PourRostami.
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.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
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
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Peer-to-Peer Networks 13 Internet – The Underlay Network
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.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
1 Chapter 24 Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Introduction to TCP/IP networking
Introduction to Networks
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
TCP.
PART 5 Transport Layer Computer Networks.
TCP.
Transport Layer Unit 5.
Process-to-Process Delivery:
Transport Protocols: TCP Segments, Flow control and Connection Setup
Transport Protocols: TCP Segments, Flow control and Connection Setup
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Objectives  Gain an understanding of the basic services provided by TCP, UDP and IP  Explain the congestion control algorithms employed by TCP  Describe protocol details of TCP needed to ensure reliable transfer over unreliable networks

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Contents  TCP services and protocols  UDP services and protocols  IP services and protocols

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP Services  Connection-oriented  Streaming  Full-duplex  Reliable  End-to-end semantic

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP Header Format  Fig. 2.1

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP Header Format (Cont.)  Source Port (16 bits)  Destination Port (16 bits)  Sequence number (32 bits)  Ack number (32 bits)  Header Length (4 bits)  Reserved (6 bits)

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP Header Format (Cont.)  Flags (6 bits)  Receiver window size (16 bits)  Checksum (16 bits)  Urgent Pointer (16 bits)  Options (variable) TCP Header is 20 bytes long (without options).

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Usage of Options:Timestamp

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Tcp connection setup using 3 way handshake

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP data transfer

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP connection termination using 4- way handshake

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Half close

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Encapsulation in IP  Fig. 2.2

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Acknowledgement Mechanism  Cumulative ACK  ACK-only segment and Piggybacking  Delayed ACK  Duplicate ACK

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Retransmission Mechanism  Retransmission timer  Estimation of RTT  Granularity of RTO  Typically 1 sec.  Smaller value used in some implementations (e.g. Solaris)

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Flow Control  Prevent buffer overflow at TCP receiver  Regulate sending rate at TCP sender  Mechanism  Sliding window  (p37, Fig. 2.5)

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Congestion Control  Prevent buffer overflow at routers  Regulate sending rate at TCP sender  Mechanism  Slow-Start  Congestion Avoidance  Additive Increase, Multiplicative Decrease (AIMD)

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP Slow Start  Start with small window  Increased window by 1 each time ACK rcvd  Window increases exponentially

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain TCP Congestion Avoidance  Exponential increase may cause congestion  Force linear increase after a threshold  Linear increase avoids possible congestion

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Congestion control (More)

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain UDP

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain UDP Services  Connectionless  Datagram-oriented  Unreliable  Applications  Multicasting  Network management  Routing Table Update  Real-time multimedia

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Key Differences Between TCP and UDP TCPUDP Connection-orientedConnection-less Stream-orientedDatagram-oriented ReliableUnreliable Flow-ControlNo Flow-Control Congestion controlNo congestion control

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain UDP Header Format  Fig 2.8

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain UDP Header Format (cont.)  Source port (16 bits)  Destination port (16 bits)  Length (16 bits)  Checksum (16 bits) UDP Header is only 8 bytes long!

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Encapsulation in IP  UDP packets are encapsulated in IP payload  Similar to TCP (see Fig 2.2)  First 8 bytes of IP payload contains UDP header

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain IP

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain IP Services  Provides an unreliable datagram service  IP datagrams may arrive out of order, because different datagrams may take different routes in the network  Datagrams may get lost  Duplicates may be received (if one is retransmitted when the original is still in the network)

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Fragmentation and Reassembly  Intermediate routers may fragment an IP datagram into several IP datagrams  If it does not fit in the payload of link layer  Fragmentation increases number of bits transmitted for a given TCP segment  Different fragments may travel different paths  If one fragment is lost, entire IP datagram is discarded at the destination

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain IP Header Fig 2.10

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain IP Header (cont.)  Version  Header Length  Type of Service  Total Length  Identifier  Flags and Fragment Offset

Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain IP Header (cont.)  Time to live  Protocol  Header Checksum  Source and Destination Addresses  Options IP Header is 20 bytes long (without options).