Networked & Distributed Systems TCP/IP Transport Layer Protocols UDP and TCP University of Glamorgan.

Slides:



Advertisements
Similar presentations
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
Advertisements

Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
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.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
2: Application Layer 1 1DT066 Distributed Information System Chapter 3 Transport Layer.
3-1 Transport services and protocols r provide logical communication between app processes running on different hosts r transport protocols run in end.
Process-to-Process Delivery:
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
1 Chapter Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
1 Transport Layer Computer Networks. 2 Where are we?
Transport Layer Layer #4 (OSI-RM). Transport Layer Main function of OSI Transport layer: Accept data from the Application layer and prepare it for addressing.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_a Transport Protocols - UDP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
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.
University of the Western Cape Chapter 12: The Transport Layer.
Transport Layer Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
23.1 Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
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.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
1 Version 3.1 Module 10 Intermediate TCP/IP (Layer 4)
4343 X2 – The Transport Layer Tanenbaum Ch.6.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
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).
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
2: Transport Layer 11 Transport Layer 1. 2: Transport Layer 12 Part 2: Transport Layer Chapter goals: r understand principles behind transport layer services:
Process-to-Process Delivery:
Application – Transport – Network
Introduction to Networks
The Transport Layer Implementation Services Functions Protocols
Chapter 9: Transport Layer
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
5. End-to-end protocols (part 1)
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
PART 5 Transport Layer Computer Networks.
TCP Transport layer Er. Vikram Dhiman LPU.
Magda El Zarki Professor, ICS UC, Irvine
Introduction to Networks
Introduction of Transport Protocols
Transport Layer Unit 5.
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 Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Process-to-Process Delivery:
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
CPEG514 Advanced Computer Networkst
Chapter 17. Transport Protocols
PART V Transport Layer.
Process-to-process delivery UDP TCP SCTP
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
The TCP/IP Model.
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:

Networked & Distributed Systems TCP/IP Transport Layer Protocols UDP and TCP University of Glamorgan

What do I cover? what is left from TCP/IP Protocols: n Transport Layer Protocols ä UDP ä TCP in more details n Upper layer protocols ä (RARP), BOOTP, DHCP ä DNS n Application Layer Protocols ä Telnet, FTP (TFTP), SMTP (POP3)

Transport Layer Protocols TCP and UDP

Transport Layer Protocols n 2 main protocols TCP & UDP n TCP – transmission control protocol ä Connection oriented ä Reliable –sequence of numbered segments & acknowledgments with any required re- transmissions ä Flow control – sliding windows n UDP – user datagram protocol ä Connectionless ä Unreliable delivery of single segments (datagrams) ä Errors detected but not corrected (No acks)

TCP/UDP analogies n TCP as a telephone call ä Make a connection – ring number –Verifies connectivity ä Use connection – communicate –Reliability “can you repeat that please?” –Flow control – normal human courtesy ä Close connection – receiver down n UDP as a letter ä Write it, address it, post it, hope it gets there

TCP vs UDP n Relative merits n TCP ä Reliable ä High network overheads ä Complex and large software n UDP ä Unreliable (may not be a problem) ä Low network overheads ä Simple and small software

When to use UDP n Use TCP unless there is a reason for UDP n Possible reasons to use UDP ä When the network efficiency is needed (SNMP) ä When the sw simplicity is needed (Bootstrap loading) ä When the reliability of TCP is counter- productive (Stream audio/video)

User Datagram Protocol (UDP) n UDP and the TCP/IP layered model n UDP message format n UDP and encapsulation n UDP checksum

UDP And The TCP/IP Layered Model

Multiplexing and Demultiplexing – 1

Multiplexing and Demultiplexing – 2

How Do We Allocate Port Numbers? n Well known port numbers n Dynamic binding

Port numbers n 0 to 255public port numbers n 256 to 1023assigned to companies for n their own marketable apps n 1024+unregulated

Examples of public ports

UDP Message Format

UDP and Encapsulation

UDP Checksum n Optional checksum calculated on ä UDP datagram ä UDP pseudo-header ä Does this violate layering?

UDP Checksum

Differences between TCP & UDP FeatureUDPTCP AnalogyLetter PostPhone Call Connection PhaseNoneYes MessagesIndividual, unrelatedSequence Lost MessageUser has to deal with loss Protocol tries to recover Message Order Maintained? NoYes Disconnection PhaseNoYes Duplicate MessagesMaybeNo ComplexityLowHigh

Properties of a Reliable Delivery Service n Stream Orientation – Application just transfers a stream of bytes n Virtual Circuit Connection – Is TCP VC? n Buffered Transfer – TCP decides what size TCP messages are, not user n Unstructured Stream – There is no structure in the stream of bytes as far as TCP is concerned n Full Duplex Connection – Can transfer data in both directions simultaneously and independently

Positive Acknowledgement A Simple Example

Positive Acknowledgement Packet Doesn’t Arrive

Positive Acknowledgement ACK Doesn’t Arrive

Round Trip Time (RTT)

Round Trip Time (RTT) Estimate too low

Round Trip Time (RTT) Estimate too high

Sending Multiple Packets n Receiver may not be able to process packets as fast as they arrive n In fact ACK’s serve at least 3 different purposes ä Recovery from lost packets ä Limit the rate at which sender can send packets ä Control congestion in the network n Compromise solution is required: The Sliding Window

Sliding Windows – Example n Given a window size = 6 packets n A has sent packets 1 to 7 n A has received ACK’s 1 to 4

Sliding Windows ACK Received n A receives ACK 5 and the window slides to the right

Sliding Windows Packet 8 sent n A sends Packet 8 and the window remain unchanged

Sliding Windows Packet 9 sent n A sends Packet 9 and the window remain unchanged

Sliding Windows Packet 6 ACK-ed n A receives ACK for Packet 6 and the window slides to the right

Sliding Windows Packet 6 ACK-ed n A sends packets 10, 11, and 12. No ACK received  no more packets can be sent.

Sliding Windows Window size? Different protocols fix the window size in different ways ä Fixed by protocol specification ä Agreed when connection established ä Adjusted whilst connection in progress (Demo is given later)

Sliding Windows Missing ACK’s ? n With just one outstanding ACK it was easy. If A doesn’t get an ACK it sends the packet again n With several ACK’s outstanding it gets much more complicated n What does A do when it detects a missing ACK? n What does B do when it detects a missing packet? n Different protocols use different solutions

Sliding Windows Missing ACK’s ? n There are two “extreme” positions ä When something goes missing A resends every packet starting with the first unacknowledged packet. This is called Go-Back-N. ä When something goes missing A & B co- operate to just resend those packets B hasn’t received. This is called Selective Retransmission.

TCP Encapsulation

TCP Header

TCP Header Fields n Source Port : Port number of sender of segment n Destination Port : Port number of intended recipient n Sequence Number : TCP uses byte numbers not packet numbers n Acknowledgement Number : Number of the byte the sender of this segment expects next n Window : The size of the sliding window in bytes n Checksum : Just like the UDP checksum n Control bits : Special purpose bits n Data: User data

Usage of SEQ-ACK-WIN Fields Example

TCP is Complicated n RFC 793 is over 90 pages long – but doesn’t cover everything n There are a number of additional RFC’s covering various aspects of TCP n There are a number of “reference implementations” which have performance enhancing features n There is no single TCP specification

Next : TCP continues n Establishing A TCP Connection n Timeouts and Retransmission n Congestion n Push n Silly Window Syndrome n Closing A TCP Connection