Transport Layer Overview

Similar documents
CSC 401 Data and Computer Communications Networks

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 3 Transport Layer

Transport Layer. Chapter 3: Transport Layer

CS 4390 Computer Networks. Transport Services and Protocols

Chapter 3 Transport Layer

Development of reliable protocol Sliding window protocols. C = channel capacity in bps I = interrupt/service time + propagation delay

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

CMSC 332 Computer Networks Transport Layer

Announcement. Homework 1 due last night, how is that? Will discuss some problems in the lecture next week

CSC 4900 Computer Networks: Transport Layer

Introduction to the Transport Layer

CSCD 330 Network Programming

Application. Transport. Network. Link. Physical

CS 3516: Computer Networks

Input ports, switching fabric, output ports Switching via memory, bus, crossbar Queueing, head-of-line blocking

Computer Networks. General Course Information. Addressing and Routing. Computer Networks 9/8/2009. Basic Building Blocks for Computer Networks

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CMPE 80N: Introduction to Networking and the Internet

Chapter III: Transport Layer

Chapter 3: Transport Layer Part A

Lecture 9: Transpor Layer Overview and UDP

CSC358 Week 4. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Suprakash Datta. Office: CSEB 3043 Phone: ext Course page:

Internet and Intranet Protocols and Applications

CC451 Computer Networks

of-service Support on the Internet

Congestion Control. Principles of Congestion Control. Network-assisted Congestion Control: ATM. Congestion Control. Computer Networks 10/21/2009

Different Layers Lecture 20

Data Link Layer Overview

Data Link Layer Overview

COSC4377. Useful Linux Tool: screen

Data Link Layer Overview

Chapter 3: Transport Layer. Chapter 3 Transport Layer. Chapter 3 outline. Transport services and protocols

Congestion Control. Principles of Congestion Control. Network assisted congestion. Asynchronous Transfer Mode. Computer Networks 10/23/2013

Announcements Computer Networking. Outline. Transport Protocols. Transport introduction. Error recovery & flow control. Mid-semester grades

CS519: Computer Networks. Lecture 5, Part 1: Mar 3, 2004 Transport: UDP/TCP demux and flow control / sequencing

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 7

Reliable Data Transfer

CSCD 330 Network Programming

Transport services and protocols. Chapter 3 outline. Internet transport-layer protocols Chapter 3 outline. Multiplexing/demultiplexing

Data Link Layer Overview

Lecture 5. Transport Layer. Transport Layer 1-1

More on Link Layer. Recap of Last Class. Interconnecting Nodes in LAN (Local-Area Network) Interconnecting with Hubs. Computer Networks 9/21/2009

TCP. TCP: Overview. TCP Segment Structure. Maximum Segment Size (MSS) Computer Networks 10/19/2009. CSC 257/457 - Fall

LAN Interconnection and Other Link Layer Protocols

CSE 4213: Computer Networks II

Chapter 6 Transport Layer

Chapter 3: Transport Layer

OSI Transport Layer. Network Fundamentals Chapter 4. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

Internet transport-layer protocols. Transport services and protocols. Sending and receiving. Connection-oriented (TCP) Connection-oriented

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

CSE 3214: Computer Network Protocols and Applications Transport Layer (Part 2) Chapter 3 outline. UDP checksum. Port numbers

Addressing: when mobile is moving around. Mobile Registration. Principles of Mobile Routing. Mobility via Indirect Routing

The Transmission Control Protocol (TCP)

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP 23.1

Internet Architecture. Network Layer Overview. Fundamental Network Layer Function. Protocol Layering and Data. Computer Networks 9/23/2009

End-to-End Protocols: UDP and TCP. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

TDTS06: Computer Networks

Different Layers Lecture 21

Transport layer: Outline

Announcements Computer Networking. What was hard. Midterm. Lecture 16 Transport Protocols. Avg: 62 Med: 67 STD: 13.

Lecture 3: The Transport Layer: UDP and TCP

The Transport Layer Multiplexing, Error Detection, & UDP

OSI Transport Layer. objectives

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

Transport layer. Our goals: Understand principles behind transport layer services: Learn about transport layer protocols in the Internet:

CS 3516: Computer Networks

CS 43: Computer Networks. 15: Transport Layer & UDP October 5, 2018

CS457 Transport Protocols. CS 457 Fall 2014

CS 3516: Advanced Computer Networks

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP

Lecture (11) OSI layer 4 protocols TCP/UDP protocols

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control

Lecture 4: The Transport Layer and UDP

Chapter 3 Transport Layer

ECE 333: Introduction to Communication Networks Fall 2002

ECE 650 Systems Programming & Engineering. Spring 2018

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

UNIT 2 TRANSPORT LAYER

ECE697AA Lecture 3. Today s lecture

No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

Computer Networks. Dr. Abdel Ilah ALshbatat Dept. of Communication and Computer Engineering Faculty of Engineering Tafila Technical University

CS4700/CS5700 Fundamentals of Computer Networks

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

Chapter 3 Transport Layer

HW3 and Quiz. P14, P24, P26, P27, P28, P31, P37, P43, P46, P55, due at 3:00pm with both soft and hard copies, 11/11/2013 (Monday) TCP), 20 mins

JAMES F. KUROSE AND KEITH W. ROSS

Transport Layer (TCP/UDP)

Internet Applications and the Application Layer Material from Kurose and Ross, Chapter 2: The Application Layer

INTRODUCTORY COMPUTER

TSIN02 - Internetworking

Lecture 2-ter. 2. A communication example Managing a HTTP v1.0 connection. Managing a HTTP request. transport session. Step 1 - opening transport

MIDTERM EXAMINATION #2 OPERATING SYSTEM CONCEPTS U N I V E R S I T Y O F W I N D S O R S C H O O L O F C O M P U T E R S C I E N C E

TSIN02 - Internetworking

The Transport Layer: TCP & Reliable Data Transfer

L1: Introduction. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Transcription:

Transport Layer Overview Kai Shen Transport-layer Overview Network layer: host-to-host to logical communication between hosts. Transport layer: logical communication between s. multiple comm. s can reside in one host. comm. s can be a Web browser/server, a FTP client/server, etc. 10/12/2009 CSC 257/457 - Fall 2009 1 10/12/2009 CSC 257/457 - Fall 2009 2 Multiplexing/demultiplexing Transport-layer Service Model t Transport layer: logical communication between s. lil i l i l i host A host B = comm. = socket Possible additional services: reliable data transfer (guaranteed arrival, no error, in-order) flow control (keep sender from overrunning receiver): good for myself congestion control (keep sender from overrunning ): good for the community delay/bandwidth guarantee on host A is communicating with on host B; while at the same time, on host A is communicating with on host B. 10/12/2009 CSC 257/457 - Fall 2009 3 10/12/2009 CSC 257/457 - Fall 2009 4 CSC 257/457 - Fall 2009 1

Transport-layer in the Internet Architecture Internet Transport-layer Protocols End-host only implementation Simple layer, complex Benefits: Fast, stable layer Flexible t layer Challenge: Transport functions without router assistance UDP: minimum service error detection TCP: full service error detection reliable data transfer flow control congestion control services not available: delay guarantees bandwidth guarantees why? 10/12/2009 CSC 257/457 - Fall 2009 5 10/12/2009 CSC 257/457 - Fall 2009 6 Connection-oriented /Connectionless Transport What is a connection? logical grouping of data segments for a comm. session between the same pair of end-points state maintained for such session Why is a connection useful? implement lost data detection and retransmission track performance using a history of performance measurement Connection-oriented /Connectionless Transport UDP is connectionless: each UDP segment handled independently of others minimum service TCP is connection-oriented: state information for each TCP connection: buffer of recently transmitted segments performance of recently received segments statistics about the other side additional costs: connection initialization/teardown required at the beginning/end of communications additional space consumption during the communications 10/12/2009 CSC 257/457 - Fall 2009 7 10/12/2009 CSC 257/457 - Fall 2009 8 CSC 257/457 - Fall 2009 2

Outline Overview of -layer services/protocols Multiplexing l and demultiplexing l Connectionless : UDP Principles of reliable data transfer Connection-oriented : TCP reliable data transfer flow control connection management Principles of congestion control Congestion control in TCP 10/12/2009 CSC 257/457 - Fall 2009 9 host A Multiplexing/demultiplexing t = comm. = socket host B on host A is communicating with on host B; while at the same time, on host A is communicating with on host B. 10/12/2009 CSC 257/457 - Fall 2009 10 How multiplexing/demultiplexing works? UDP Demultiplexing: An Example IP header TCP/UDP header data IP packet format using port numbers each IP packet has source IP address, destination IP address each IP packet carries a -layer segment each segment has source, destination port number dest. IP address for routing to the host; IP addresses and port numbers for going to appropriate socket in the dest. host. UDP socket identified by dest. IP address and port number Machine A SP: XXXX port 1234 port 5678 SP: YYYY DP: 1234 DP: 5678 Machine C Machine B 10/12/2009 CSC 257/457 - Fall 2009 11 10/12/2009 CSC 257/457 - Fall 2009 12 CSC 257/457 - Fall 2009 3

TCP Demultiplexing (Connection-oriented) TCP Demultiplexing: An Example Multiple TCP connections may simultaneously share a single port: Example: web server (on default port 80) has multiple connections, one for each client all on port 80 listening socket P5 TCP socket identified by 4-tuple: (source IP address, source port number, dest IP address, dest port number) recv host uses all four values to direct segment to appropriate socket client IP: A SP: 80 DP: 9157 SP: 9157 SP: 9157 DP: 80 DP: 80 connection request server IP: C SP: 80 DP: 5775 SP: 5775 DP: 80 client IP: B 10/12/2009 CSC 257/457 - Fall 2009 13 10/12/2009 CSC 257/457 - Fall 2009 14 UDP: User Datagram Protocol UDP Checksum 32 bits UDP is connectionless Length, in source port # dest port # UDP does bytes of length checksum multiplexing/demultiplex UDP ing segment, including simple error detection header Application UDP does not do data reliable data transfer, (message) flow control, congestion control UDP segment format 10/12/2009 CSC 257/457 - Fall 2009 15 Goal: detect errors (e.g., flipped bits) in transmitted segments Sender: treat segment contents as sequence of 16-bit integers checksum: addition (1 s complement sum) of segment contents sender puts checksum value into UDP checksum field Receiver: compute checksum of received segment check if computed checksum equals checksum field value: NO: error detected t d YES: no error detected. Why are there error detections in,, and layers? 10/12/2009 CSC 257/457 - Fall 2009 16 CSC 257/457 - Fall 2009 4

What is good about UDP? less overhead: no connection establishment (which can add delay) small segment header no space cost for connection state more secure: less susceptible to DoS attacks flexibility in doing things your own way no congestion control: UDP can blast away as fast as desired (may not be good for others, but not bad for my own connection ) simple more robust UDP In Practice When to use UDP? TCP services are not useful, or even hurtful Useful, but in customized ways Used for: routing exchanges between routers performance measurements streaming multimedia apps loss tolerant, rate sensitive flow control and loss recovery sometimes implemented at the level 10/12/2009 CSC 257/457 - Fall 2009 17 10/12/2009 CSC 257/457 - Fall 2009 18 Disclaimer Parts of the lecture slides contain original work of James Kurose, Larry Peterson, and Keith Ross. The slides are intended for the sole purpose of instruction of computer s at the University of Rochester. All copyrighted materials belong to their original owner(s). 10/12/2009 CSC 257/457 - Fall 2009 19 CSC 257/457 - Fall 2009 5