CPEG514 Advanced Computer Networkst

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.
Transmission Control Protocol (TCP)
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
UNIT 07 Process – to – Process Delivery: UDP,TCP and SCTP
Chapter 3: Transport Layer
Transport Layer3-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
3-1 Transport services and protocols r provide logical communication between app processes running on different hosts r transport protocols run in end.
8-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer m flow.
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.
Review: –What is AS? –What is the routing algorithm in BGP? –How does it work? –Where is “policy” reflected in BGP (policy based routing)? –Give examples.
TCP/IP: Basics1 User Datagram Protocol (UDP) Another protocol at transport layer is UDP. It is Connectionless protocol i.e. no need to establish & terminate.
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.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transport Layer1 Ram Dantu (compiled from various text books)
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
MULTIPLEXING/DEMULTIPLEXING, CONNECTIONLESS TRANSPORT.
1 Kyung Hee University Chapter 11 User Datagram Protocol.
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:
Process-to-Process Delivery:
CSEN 404 Transport Layer I Amr El Mougy Lamia Al Badrawy.
Chapter 7: Transport Layer
Chapter 3 Transport Layer
Introduction to Networks
Chapter 5 Network and Transport Layers
Chapter 3 Transport Layer
Chapter 11 User Datagram Protocol
The Transport Layer Implementation Services Functions Protocols
Transport Layer Slides are originally from instructor: Carey Williamson at University of Calgary Very minor modification are made Notes derived from “Computer.
Chapter 9: Transport Layer
Chapter 3 outline 3.1 Transport-layer services
Instructor Materials 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.
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Transport Layer Transport Services Addressing
Process-to-Process Delivery
06- Transport Layer Transport Layer.
PART 5 Transport Layer Computer Networks.
TCP Transport layer Er. Vikram Dhiman LPU.
CS 1652 Jack Lange University of Pittsburgh
Introduction to Networks
NET323 D: Network Protocols
Process-to-Process Delivery:
Subject Name: Computer Communication Networks Subject Code: 10EC71
Transport Layer Our goals:
September 19th, 2013 CS1652 Jack Lange University of Pittsburgh
NET323 D: Network Protocols
Process-to-Process Delivery:
Transport Layer Our goals:
Chapter 5 Transport Layer Introduction
PART 5 Transport Layer.
Process-to-process delivery UDP TCP SCTP
Transport Protocols: TCP Segments, Flow control and Connection Setup
Chapter 5 Transport Layer Introduction
Introduction to Computer Networks
Transport Protocols: TCP Segments, Flow control and Connection Setup
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
Chapter 3 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.
Transport Layer 9/22/2019.
Transport Layer Our goals:
Presentation transcript:

CPEG514 Advanced Computer Networkst University of Nizwa Faculty of Engineering and Architecture Electrical and Computer Engineering CPEG514 Advanced Computer Networkst Week 12 Atef Abu Salim Spring 2014/2015

Transport Layer Layer 4. The transport layer is responsible for: CPEG514 Advanced Computer Networks Transport Layer Layer 4. The transport layer is responsible for: the delivery of a message from one process to another ( Process-to-Process delivery ). Port addressing : get the message to the correct process on the computer via port address. provides virtual end-to-end links between peer processes. Segmentation and reassembly : a message is divided into transmittable segments each segment containing a sequence no. Connection Control: connection oriented or connectionless. Flow control : Error control:

Process-to-Process delivery CPEG514 Advanced Computer Networks Process-to-Process delivery

Process-to-Process delivery cont. CPEG514 Advanced Computer Networks Process-to-Process delivery cont. The transport layer is responsible for Process-to- Process delivery , the delivery of a packet, part of a message, from one process to another. The process communication in a client/ server relationship.

CPEG514 Advanced Computer Networks Port Address At the transport layer, we need a transport layer address called Port Number, to choose among multiple processes running on the destination. The destination port number is needed for delivery. The source port number is needed for reply. In the internet model , the port numbers are 16- bit integer between 0 and 65535.

CPEG514 Advanced Computer Networks IANA range The IANA(Internet Assigned Number Authority) has divided the port numbers into three ranges: Well known port: 0-1023 (assigned and controlled By IANA). Registered ports :1024 – 49151(registered with IANA). Dynamic ports: 49152 – 65535, they can be used by any process.

CPEG514 Advanced Computer Networks Socket address The socket address is the combination of IP address and UDP/TCP port number.

Connectionless Versus Connection-Oriented Service CPEG514 Advanced Computer Networks Connectionless Versus Connection-Oriented Service A transport layer protocol Can either be connectionless or connection-oriented. Connectionless service: *The packet are sent from one to another with no need for connection establishment or connection release. * The packet are not numbered ; they may be delayed or lost or may arrive out of sequence. * There is no acknowledgment either. UDP is connectionless

Connectionless Versus Connection-Oriented Service cont. CPEG514 Advanced Computer Networks Connectionless Versus Connection-Oriented Service cont. connection-oriented service: *In a connection-oriented service, a connection is first established between the sender and receiver. * Data are transferred. * At the end , the connection is released. TCP and SCTP are connection-oriented protocol.

User Datagram Protocol (UDP) CPEG514 Advanced Computer Networks User Datagram Protocol (UDP)

User Datagram Protocol (UDP) cont. CPEG514 Advanced Computer Networks User Datagram Protocol (UDP) cont. UDP (User Datagram Protocol) creates a transport layer connection between two processes. The UDP is called a connectionless, unreliable transport protocol. It does not add anything to the service of IP except to provide process-to-process communication, also it performs very limited error checking. UDP is a very simple protocol using a minimum of overhead and faster than TCP.

User Datagram Protocol (UDP) cont. CPEG514 Advanced Computer Networks User Datagram Protocol (UDP) cont. If a process wants to send a small message and does not care much about reliability , it can use UDP. Sending a small message by using UDP takes much less interaction between the sender and receiver than using TCP and SCTP. The port number identifies the process, or running application program. So using the port number, UDP directs the packet to the correct location. No flow control. No ack of received packets. Only error control is if a checksum error is detected, it quietly drops the packet.

User Datagram Protocol (UDP) cont CPEG514 Advanced Computer Networks User Datagram Protocol (UDP) cont UDP works well with apps that have their own error and flow control; works well with multicasting, SNMP, FTP,TFTP and RIP. No error control mechanism in UDP except the checksum. When the receiver detect the an error through the checksum, the user datagram is silently discarded.

CPEG514 Advanced Computer Networks Example Example: a user wants to know the day and time from a remote machine. Daytime client port # = 52000, but Daytime server port # = 13.

Well-known ports used with UDP CPEG514 Advanced Computer Networks Well-known ports used with UDP

CPEG514 Advanced Computer Networks User datagram format Checksum : This failed is used to detect errors over the entire user datagram (header and data).

User datagram format cont. CPEG514 Advanced Computer Networks User datagram format cont. Ethernet Frame IP Datagram UDP Datagram Ethernet Header IP Header UDP Header UDP Data UDP Length = IP length – IP header’s length

Multiplexing and De-multiplexing CPEG514 Advanced Computer Networks Multiplexing and De-multiplexing Port 1 Port 2 Port n UDP: Multiplexing IP

Multiplexing and De-multiplexing cont. CPEG514 Advanced Computer Networks Multiplexing and De-multiplexing cont. Port 1 Port 2 Port n UDP: De-multiplexing Based on port number IP

Transmission Control Protocol (TCP) CPEG514 Advanced Computer Networks Transmission Control Protocol (TCP)

Transmission Control Protocol (TCP) cont. CPEG514 Advanced Computer Networks Transmission Control Protocol (TCP) cont. TCP provides a process-to-process (program-to- program) communication service using port numbers. TCP is a connection oriented protocol; it creates a virtual connection between 2 TCPs to send data. TCP uses the flow, error control and congestion control mechanisms at the transport level. The TCP packet is called a segment

Transmission Control Protocol(TCP) cont. CPEG514 Advanced Computer Networks Transmission Control Protocol(TCP) cont. TCP is called reliable transport protocol , it adds connection-oriented and reliability to the services of IP. TCP can create a full-duplex service.

Well-known ports used by TCP CPEG514 Advanced Computer Networks Well-known ports used by TCP

TCP Services: Process-to-process communication: Reliable services: CPEG514 Advanced Computer Networks TCP Services: Process-to-process communication: Reliable services: Connection-Oriented service: Full-Duplex Communication: TCP can create a full-duplex service. Data can flow in both directions at the same time

TCP Services cont. Sending and Receiving Buffers: CPEG514 Advanced Computer Networks TCP Services cont. Sending and Receiving Buffers: Buffers on each side hold the data to be transmitted , sent and received. Stream Delivery service: TCP provides a stream delivery service. It breaks up the data stream into segments of variable size. Each segment receives a header and is handed off to the IP layer.

TCP Services cont. Segments: CPEG514 Advanced Computer Networks TCP Services cont. Segments: breaks up the data stream into segments of variable size. Each segment receives a header and is handed off to the IP layer.

CPEG514 Advanced Computer Networks TCP segments

CPEG514 Advanced Computer Networks TCP segment format