© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Transport Layer Protocols – UDP and TCP Asst.

Slides:



Advertisements
Similar presentations
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Advertisements

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.
Intermediate TCP/IP TCP Operation.
Chapter 7: Transport Layer
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking Assist. Prof.
Lecture 7 Transport Layer
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.
Chapter 7 – Transport Layer Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
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.
Transport Layer TCP and UDP IS250 Spring 2010
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.
Lesson 24. Protocols and the OSI Model. Objectives At the end of this Presentation, you will be able to:
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
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.
1 Version 3.0 Module 11 TCP Application and Transport.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 3 Transport Layer.
TCP/IP Transport and Application (Topic 6)
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
The Transport Layer application transport network data link physical application transport network data link physical application transport network data.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 End-user Protocols, Services and QoS. 2 Layering: logical communication application transport network link physical application transport network link.
Networking Basics CCNA 1 Chapter 11.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 10 Intermediate TCP/IP.
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)
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 3 Transport Layer.
© 2002, Cisco Systems, Inc. All rights reserved..
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.
2: Transport Layer 11 Transport Layer 1. 2: Transport Layer 12 Part 2: Transport Layer Chapter goals: r understand principles behind transport layer services:
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Process-to-Process Delivery:
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
Introduction to Networks
The Transport Layer Implementation Services Functions Protocols
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, TCP and UDP protocols
TCP Transport layer Er. Vikram Dhiman LPU.
Introduction to Networks
CCNA 2 v3.1 Module 10 Intermediate TCP/IP
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:
CPEG514 Advanced Computer Networkst
PART 5 Transport Layer.
Process-to-Process Delivery: UDP, TCP
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:

© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Transport Layer Protocols – UDP and TCP Asst. Prof. Chaiporn Jaikaeo, Ph.D. Computer Engineering Department Kasetsart University, Bangkok, Thailand Adapted from the notes by Lami Kaya and lecture slides from Anan Phonphoem

2 Outline Transport Layer User Datagram Protocol (UDP) Transmission Control Protocol (TCP)

3 Application Transport Network TCP/IP protocol Suite Application Transport Network Data Link Physical Data Phy Data Phy Physical Data Link

4 Issues in Network Layer No/Little error detection No attempt to correct Retransmission Point-to-point (connectionless) No handshaking No verification No flow control

5 Transport Protocol Set of rules for exchange control message / data End-to-End Application may by-pass Transport Layer build functions on top of IP reduce overhead application run on switch/router that has no Transport Layer

6 Transport Protocols User Datagram Protocol (UDP) Transmission Control Protocol (TCP) Stream Control Transmission Protocol (SCTP) Real-Time Transport Protocol (RTP)

7 Ports and Addresses IP address is the end point of identifier source / destination On same machine (same IP) needs identifier for each application multiple applications (e.g. 3 ftp sessions) “Port” 16-bit number (65,356 ports) for each IP

8 Ports and Addresses IP address: Unique connection identifier [source IP] + [source port] + [dest. IP] + [dest. port] Web #1 [Src :3213, Dst :80] Web #2 [Src :4121, Dst :80] Ftp [Src :9785, Dst :21]

9 Ports and Addresses Known destination IP Concern Issues destination port ? listen port ? IANA * divides ports into three ranges well-known ports registered ports dynamic / private ports *IANA – The Internet Assigned Numbers Authority

10 Well-known ports 0 – 1023 Used by server applications Use with restricted privileges (root)

11 Registered Ports 1024 – 49,151 Assigned by IANA Used for server applications Allow client to make contact Can be used by ordinary users

12 Dynamic / Private ports 49,152 – 65,535 Ephemeral (temporary) ports as-needed basis freed up when done Assigned by local machines Cannot be registered with IANA

13 Connection-Oriented Transport Advantages easy to communicate (if receiver is there!) verify the real receiver agree on some protocols error correction Disadvantages heavier-weight protocol sophisticated implementation (keep state) consume high bandwidth for management TCP – Transmission Control Protocol establish connection transfer data tear down connection

14 Connectionless Transport Datagram approach Advantages rapid data transfer no connection setup no need for connection maintenances Disadvantages not reliable (losses are expected) out of order packets application more complex (takes precautions) UDP – User Datagram Protocol transfer data

15 Outline Transport Layer User Datagram Protocol (UDP) Transmission Control Protocol (TCP)

16 User Datagram Protocol (UDP) Characteristics No error detection/recovery No flow control No checking for existing of destination Simple services Very useful protocol

17 UDP Basic Functions Provides basic functions above raw IP Port addressing – to specific application Data integrity verification – checksum

18 UDP Message Format Total length = UDP header+ Payload ≤ 2 16 bytes

19 UDP Message Fragmentation UDP HeaderData IP Header Data IP Header UDP Header PayloadData Transport Layer IP Layer

20 Protocols that use UDP TFTP (trivial FTP) BOOTP (for diskless station) Network Time Protocol (NTP) need basic delivery and checksum Network File System (NFS) need low overhead Many multimedia applications need low latency losses are acceptable

21 Outline Transport Layer User Datagram Protocol (UDP) Transmission Control Protocol (TCP)

22 Transmission Control Protocol (TCP) Most popular/important in Internet Reliable transport protocol Connection-oriented need connection establishment [IP+source port]  [IP+destination port] guarantee error-free / in-order delivery

23 TCP Messages (Segment)

24 Making connection Application on server passive receive mode listening by issue Listen request to socket locally Application on Client request to socket API locally with destination IP destination port (source port: if not specify, TCP assigns private port) Server Client

25 TCP Connection Establishment Application TCP stack Application Server Client Internet Passive Open Active Open Synchronize Ack and Synchronize Ack Open Req Open Ready 3-way Handshake

26 TCP Segments Segment size at source node = MTU local link fit in IP packet may be fragmented along the way IP Header PayloadData TCP HeaderData Transport Layer IP Layer

27 Data Transmission (I) Server Client Internet Send Req bytes Seq. 1 ; length 1000 Rec bytes Seq ; length 500 Push Ack 1001 Ack 1501 Application TCP stack Application Rec. 500 bytes

28 Flow Control A process of managing rate of data transmission between two devices Make sure fast sender does not overwhelm slow receiver TCP uses Windowing Flow Control I'm running out of buffer! Take this :

29 TCP Window Control Send BufferRecv. Buffer Win

30 Closing Connection (By either end) Server Client Internet Data Last Data Segment Data Fin Flag; Ack = n+2; Seq.= m + 1 Ack (Empty Data) Fin Flag ; Seq.= n + 1 Application TCP stack Application Close Close req Close Ack = m + 2 Close Resp 3-way Handshake 1 byte

31 Protocols that use TCP File Transfer Protocol (FTP) Hypertext Transfer Protocol (HTTP) Simple Mail Transfer Protocol (SMTP) Post Office Protocol (POP3) Telnet

32 Choosing between TCP and UDP TCP reliable transport services UDP non-reliable transport services only delivery data to specific port

33 Summary Transport Layer port & IP address User Datagram Protocol (UDP) packet format (8-byte header) functions Transmission Control Protocol (TCP) packet format (  20-byte header) connection establishment / tear down window control