Transport Layer: TCP and UDP. Overview of TCP/IP protocols Comparing TCP and UDP TCP connection: establishment, data transfer, and termination Allocation.

Slides:



Advertisements
Similar presentations
TCP/IP Christopher Zacky. lolwut Decimal Numbers.
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.
Laboratório de Teleprocessamento e Redes1 Unix Network Programming Prof. Nelson Fonseca
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
CCNA – Network Fundamentals
Transmission Control Protocol (TCP)
Fundamentals of Computer Networks ECE 478/578 Lecture #20: Transmission Control Protocol Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
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.
Provides a reliable unicast end-to-end byte stream over an unreliable internetwork.
Netprog: TCP Details1 TCP Details. Netprog: TCP Details2 TCP Lingo When a client requests a connection, it sends a “SYN” segment (a special TCP segment)
TCP© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
1 Transport Layer Computer Networks. 2 Where are we?
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
UNIX Network Programming1 UNIX Network Programming 2nd Edition.
© 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.
The Transport Layer: TCP and UDP Chap 2. Basic Philosophy of TCP/IP  Simple core, complex edge  Edge can be hosts, edge routers, network boundaries,
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Transport Layer: TCP and UDP
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Routers and Routing Basics CCNA 2 Chapter 10.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)
Networking Basics CCNA 1 Chapter 11.
Chapter 24 Transport Control Protocol (TCP) Layer 4 protocol Responsible for reliable end-to-end transmission Provides illusion of reliable network to.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
ECE 4110 – Internetwork Programming
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 12 Transmission Control Protocol (TCP)
Transport Protocols.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
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).
Computer Networks 1000-Transport layer, TCP Gergely Windisch v spring.
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
1 Chapter 24 Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Introduction to Networks
5. End-to-end protocols (part 1)
Chapter 17 and 18: TCP is connection oriented
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
TCP.
Understand the OSI Model Part 2
Magda El Zarki Professor, ICS UC, Irvine
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.
Process-to-Process Delivery:
Wide Area Networks and Internet CT1403
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
TRANSMISSION CONTROL PROTOCOL
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
Transport Protocols: TCP Segments, Flow control and Connection Setup
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:

Transport Layer: TCP and UDP

Overview of TCP/IP protocols Comparing TCP and UDP TCP connection: establishment, data transfer, and termination Allocation of port numbers Size matters: MTU, datagram, MSS, buffer Standard Internet services and applications Debugging techniques and tools

Overview of TCP/IP Protocols

Comparing TCP and UDP

TCP Connection: Establishment Three-way handshake

TCP Options Three common TCP options (sent in SYN) : MSS option: The maximum segment size that can be received 65,535 (16 bits for the widow size field in the TCP header) is the upper limit Window scale option: To allow the advertised widow size to be scaled (left-shift) 0-14 bits. MSS can thus reach up to 65,355 x 2 14 bytes Timestamp option: May be used for high-speed connections to prevent possible data corruption caused by old, delayed, or duplicated segments

TCP Connection: Data Transfer

TCP Connection: Termination Four-way handshake

TCP State Transition Diagram

TIME_WAIT State Its duration is twice the MSL (maximum segment lifetime), sometimes called 2MSL MSL may be 30 seconds, 1 minute, or 2 minutes Two reasons for the TIME_WAIT state : To implement TCP ’ s full duplex connection termination reliably To give TCP enough time to handle the loss of any of the last four segments To allow old duplicate segments to expire in the network To prevent old duplicates being misinterpreted as belonging to a new incarnation of the same connection 10

Illustrating the First Reason

Allocation of Port Numbers

Socket Pair 4-tuple that defines the two endpoints of a connection The local IP address, local TCP port, foreign IP address, and foreign TCP port Uniquely identifies every TCP connection on the Internet

A Concurrent Server Server ’ s socket pair

Connect Request from Client to Sever

TCP must look at all four elements in the socket pair to determine which endpoint receives an arriving segment

TCP Output and UDP Output 17

Size Matters Maximum IP datagrams : IPv4: 65,535; IPv6: 65,575 (without jumbo payload option) Link MTU (maximum transmission unit) : Ethernet: 1,500; FDDI: 4,325; PPP: configurable Path MTU: The smallest MTU in the path between two hosts 1,500 is the popular one today Path MTU may be asymmetric between two hosts, due to possibly different route in each direction TCP MSS (maximum segment size) It is subject to the reassembly buffer size at two hosts However, it is often the link MTU minus IP & TCP headers 18

Buffer Sizes and Limitations Link MTU (maximum transmission unit): Ethernet MTU: 1500 bytes, PPP MTU: configurable Path MTU: the smallest link MTU in the path, can be discovered by IPv4 DF (don ’ t fragment) bit

TCP Output and UDP Output

TCP Output The write blocks if no room in the socket send buffer The kernel will not return from the write until the final byte in the application buffer has been copied into the socket send buffer Successful return from a write only tells us that we can reuse our application buffer TCP must keep a copy of our data until it is acknowledged by the peer

UDP Outputs UDP socket has a send buffer size but no real buffer If application ’ s datagram > send buffer size, an error message is returned UDP need not keep a copy of our data A successful return from a write to a UDP socket tells us the datagram has been added to the data link output queue An error message will be generated if there is no room in the data link output queue

Standard Internet Services and Applications

Protocol Usage of Various Common Applications