Lecture 4: The Transport Layer and UDP

Similar documents
Lecture 3: The Transport Layer: UDP and TCP

CMPE 80N: Introduction to Networking and the Internet

CSC 401 Data and Computer Communications Networks

Chapter 11. User Datagram Protocol (UDP)

Chapter 3 Transport Layer

CS 4390 Computer Networks. Transport Services and Protocols

Transport Layer. Chapter 3: Transport Layer

Chapter 3 Transport Layer

TSIN02 - Internetworking

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

TSIN02 - Internetworking

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

CSCE 463/612 Networks and Distributed Processing Spring 2018

TSIN02 - Internetworking

Different Layers Lecture 20

TSIN02 - Internetworking

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

Introduction to the Transport Layer

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

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

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

Transport Layer Overview

Internet and Intranet Protocols and Applications

CSE 461 The Transport Layer

NT1210 Introduction to Networking. Unit 10

Application. Transport. Network. Link. Physical

CMSC 332 Computer Networks Transport Layer

ECE 435 Network Engineering Lecture 15

Chapter 5 End-to-End Protocols

CSE 461 Connections. David Wetherall

CSC 4900 Computer Networks: Transport Layer

EEC-682/782 Computer Networks I

CSCD 330 Network Programming

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

Transport Layer. The transport layer is responsible for the delivery of a message from one process to another. RSManiaol

EEC-484/584 Computer Networks. Lecture 16. Wenbing Zhao

OSI Transport Layer. objectives

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

Layer 4 - Transport Layer

UNIT IV TRANSPORT LAYER

Lecture 10: Protocol Design

CSEP 561 Connections. David Wetherall

Transport Layer. -UDP (User Datagram Protocol) -TCP (Transport Control Protocol)

Lecture 9: Transpor Layer Overview and UDP

Networking Technologies and Applications

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

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

Objectives. Chapter 10. Upon completion you will be able to:

TCP/IP THE TCP/IP ARCHITECTURE

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

(Refer Slide Time: 1:09)

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Chapter 6. The Transport Layer. The Transport Service. Services Provided to the Upper Layers. Transport Service Primitives (3) 10/7/2010

Chapter III: Transport Layer

THE TRANSPORT LAYER UNIT IV

Unit 2.

UDP, TCP, IP multicast

Chapter 3: Transport Layer Part A

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Chapter 7 Transport Layer. 7.0 Introduction 7.1 Transport Layer Protocols 7.2 TCP and UDP 7.3 Summary

Transport Layer. <protocol, local-addr,local-port,foreign-addr,foreign-port> ϒ Client uses ephemeral ports /10 Joseph Cordina 2005

COSC4377. Useful Linux Tool: screen

Module 7 Internet And Internet Protocol Suite

Jaringan Komputer. The Transport Layer

ECE 650 Systems Programming & Engineering. Spring 2018

CS 3516: Computer Networks

Chapter 24. Transport-Layer Protocols

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

CS UDP: User Datagram Protocol, Other Transports, Sockets. congestion worse);

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

CS4700/CS5700 Fundamentals of Computer Networks

ECE697AA Lecture 3. Today s lecture

Transport Over IP. CSCI 690 Michael Hutt New York Institute of Technology

UNIT IV -- TRANSPORT LAYER

Lesson 5 TCP/IP suite, TCP and UDP Protocols. Chapter-4 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Transport Layer. Application / Transport Interface. Transport Layer Services. Transport Layer Connections

Transport Layer (TCP/UDP)

Chapter 3: Transport Layer

CCNA R&S: Introduction to Networks. Chapter 7: The Transport Layer

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

Some slides courtesy David Wetherall. Communications Software. Lecture 4: Connections and Flow Control. CSE 123b. Spring 2003.

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Position of IP and other network-layer protocols in TCP/IP protocol suite

Transport Layer Protocols. Internet Transport Layer. Agenda. TCP Fundamentals

Transport Protocols. Internet has broadly two types of transport protocols as shown in figure below:

Transport Layer TCP & UDP Week 7. Module : Computer Networks Lecturers : Lucy White Office : 324

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

CMPE 150 Winter 2009

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

The Transmission Control Protocol (TCP)

UNIT V. Computer Networks [10MCA32] 1

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

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

The Transport Layer Multiplexing, Error Detection, & UDP

TCP /IP Fundamentals Mr. Cantu

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

The Transport Layer. Antonio Carzaniga. October 27, Faculty of Informatics Università della Svizzera italiana

INTRODUCTORY COMPUTER

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

Transcription:

Lecture 4: The Transport Layer and UDP Prof. Shervin Shirmohammadi SITE, University of Ottawa Prof. Shervin Shirmohammadi CEG 4183 4-1 The Transport Layer Provides efficient and robust end-to-end service to upper layers. Not all services need to be provided! Uses services provided by the network layer. End-to-end delivery of entire message. Connection Prof. Shervin Shirmohammadi CEG 4183 4-2 1

End-to-End Delivery Transport layer Networking layer Services are done from an end-to-end perspective Error control, flow control, Connectionless or connection-oriented Prof. Shervin Shirmohammadi CEG 4183 4-3 Addressing Service Access Point (SAP), also referred to as Ports at the transport layer. Prof. Shervin Shirmohammadi CEG 4183 4-4 2

Reliable Delivery Note that it is not compulsory for a transport layer protocol to provide such services. The idea is that if any of these services are to be provided in an end-to-end sense, then the transport layer is where you would implement them. Prof. Shervin Shirmohammadi CEG 4183 4-5 Error Control Error checking is done for the Transport Layer PDU (T-PDU). Even though T-PDU is put into the N-PDU as payload, the networking layer may or may not provide error control for it. What does IP do? error checked at networking error checked at networking error checked at networking Prof. Shervin Shirmohammadi CEG 4183 4-6 3

Sequence Control Prof. Shervin Shirmohammadi CEG 4183 4-7 Loss Control Prof. Shervin Shirmohammadi CEG 4183 4-8 4

Duplication Control What can cause duplication? Prof. Shervin Shirmohammadi CEG 4183 4-9 Flow Control Controls the flow of information, again from an end-to-end perspective. Factors affecting this are the end host, but also the network. Prof. Shervin Shirmohammadi CEG 4183 4-10 5

Multiplexing and Demultiplexing Data Link Networking Transport Prof. Shervin Shirmohammadi CEG 4183 4-11 App1 App2 App3 Multiplexing data data data 123 250 125 TCP UDP SPort=125 App 3 data SPort=123 App 1 data SPort=250 App 2 data IP Protocol=TCP TCP data Protocol=TCP TCP data Protocol=UDP UDP data to data Link layer Prof. Shervin Shirmohammadi CEG 4183 4-12 Protocol=TCP TCP data 6

App1 App2 App3 Demultiplexing data data data 560 440 1090 TCP UDP DPort=1090 App 3 data DPort=560 App 1 data DPort=440 App 2 data Protocol=TCP IP Protocol=TCP TCP data Protocol=UDP UDP data Protocol=TCP TCP data TCP data From data Link layer Prof. Shervin Shirmohammadi CEG 4183 4-13 Connection Obviously required only if we re talking about a connection-oriented transport protocol. Otherwise just send the packet and hope for the best. Need two protocols really: connection establishment connection release Prof. Shervin Shirmohammadi CEG 4183 4-14 7

Connection Establishment Sounds easy but it s quite a tricky process. Why not just send a Connection Request (CR) message and wait for a Connection Accepted Acknowledgement (ACK)? Problems can happen due to old duplicates of either the CR or the ACK packets. Receiver gets CR packets that have expired, but can be misinterpreted as new requests. Sender gets ACK packets that have expired, but can be misinterpreted as readiness of the receiver to receive. Prof. Shervin Shirmohammadi CEG 4183 4-15 Three-way Handshake Tomlinson 1975 Prof. Shervin Shirmohammadi CEG 4183 4-16 8

Connection Release Two types Asymmetric: either side hangs up and the connection breaks. Might cause data loss Symmetric: each side releases gracefully, waiting until the other side acknowledges disconnection. Prof. Shervin Shirmohammadi CEG 4183 4-17 Problem with Symmetric Release The two-army Problem What s the solution? Prof. Shervin Shirmohammadi CEG 4183 4-18 9

3-way Handshake Release Prof. Shervin Shirmohammadi CEG 4183 4-19 User Datagram Protocol (UDP) Defined in RFC 768. Connectionless service Multiplexing/Demultiplexing Error Detection (not really error control) Detection only, no recovery; and even the detection is optional No flow control No congestion control What does it do then? Used by SNMP, DNS, RTP, Multicasting. Prof. Shervin Shirmohammadi CEG 4183 4-20 10

Multiplexing/Demultiplexing Uses Port numbers Also used for addressing Prof. Shervin Shirmohammadi CEG 4183 4-21 ICANN Ranges Internet Corporation for Assigned Names and Numbers http://www.icann.org/ 13: daytime 53: name server 69: TFTP 111: RPC 161 SNMP Prof. Shervin Shirmohammadi CEG 4183 4-22 11

UDP Packet Format There is also a pseudo-header that is created and computed. The pseudo-header does not really exist as a header! Prof. Shervin Shirmohammadi CEG 4183 4-23 Pseudoheader This is done to detect wrong delivery of the packet by the Networking layer. Prof. Shervin Shirmohammadi CEG 4183 4-24 12

Checksum One s complement of the one s complement sum modulo Prof. Shervin Shirmohammadi CEG 4183 4-25 Queues Prof. Shervin Shirmohammadi CEG 4183 4-26 13

Multicasting The ability to send a packet to more than one destination. (send once, receive at multiple destinations). Uses the IP multicasting (class D) addresses. Interested parties must join a multicast group. Network infrastructure (routers, bridges, ) must support IP Multicast for this to happen Mostly not supported on the Internet. Prof. Shervin Shirmohammadi CEG 4183 4-27 14