23
Transport Layer Layer #4 (OSI-RM)

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

Embed Size (px)

Citation preview

Page 1: 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

Transport LayerLayer #4 (OSI-RM)

Page 2: 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

Transport Layer

Main function of OSI Transport layer:

Accept data from the Application layer and prepare it for addressing at the Network layer. The Transport layer is responsible for the overall end-to-end transfer of application data.

Page 3: 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

Transport Layer

Functions of OSI Transport layer:

Segmentation of application data and reassemble these pieces into the various communication streams .

Enables multiple applications to communicate over the network at the same time on a single device.

Ensures that, if required, all the data is received reliably and in order by the correct application.

Employs error handling mechanisms.

Page 4: 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

Transport Layer services

Two types of transport layer services:

Connection oriented Connection Establishment Reliable Data Transfer Connection Termination

Protocol example: TCP

Connectionless (datagram) Unreliable Data Transfer

Protocol example: UDP

Page 5: 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

Transmission Control Protocol (TCP)

TCP is a connection-oriented protocol, described in RFC 793.

Functions of TCP:

1. Connection establishment2. Segmentation and reassembly of application data3. Multiplexing of more than one applications4. Error control5. Flow Control6. Connection termination

Page 6: 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

TCP Header

Page 7: 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

Connection establishment(Three way handshaking)

Page 8: 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

Connection establishment

The 3 way handshake role: • Establishes that the destination device is present on the network.

• Verifies that the destination device has an active service and is accepting requests on the destination port number.

• Informs the destination device that the source client intends to establish a communication session on that port number

Page 9: 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

Connection termination(Four way handshaking)

Page 10: 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

Segmentation and reassembly of application data

Page 11: 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

Error Recovery (Reliability)

Page 12: 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

Error Recovery (Reliability)

Page 13: 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

TCP Congestion and Flow Control

Page 14: 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

TCP Congestion and Flow Control

Page 15: 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

Port addressing

Port numbers – unique application identifiers

• Well known ports (Numbers 0 to 1023) : Assigned by The Internet Assigned Numbers Authority (IANA)

• Registered Ports (Numbers 1024 to 49151)

• Dynamic or Private Ports: Also known as Ephemeral Ports (Numbers 49152 to 65535)

Page 16: 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

TCP Ports

Page 17: 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

UDP Ports

Page 18: 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

TCP and UDP Protocols

Page 19: 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

Socket

A socket is an IP address, a colon, and a port number.

Example: 128.171.17.13:80

For servers, specifies a specific application on a specific server.

For clients, specifies a specific connection on a specific client.

Page 20: 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

Multiplexing of more than one applications

Page 21: 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

User Datagram Protocol (UDP)

UDP is a simple, connectionless protocol, described in RFC 768. It has the advantage of providing for low overhead data delivery. The pieces of communication in UDP are called datagrams. These datagrams are sent as "best effort" by this Transport layer protocol

Functions of UDP:

1. Segmentation and reassembly of application data2. Multiplexing of more than one applications

Page 22: 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

UDP Header

Applications that use UDP include:

Domain Name System (DNS)Video StreamingVoice over IP (VoIP)

Page 23: 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

TCP/UDP Comparison

TCP UDP

Connection-oriented delivery Connectionless delivery, faster

Uses windows and ACKs No windows or ACKs

Full header Smaller header, less overhead

Sequencing No sequencing

Provides reliability Relies on app layer protocols for reliability

FTP, HTTP, SMTP, and DNS DNS, TFTP, SNMP, and DHCP