OSI - Transport layer

Post on 17-Aug-2015

52 views 1 download

Tags:

Transcript of OSI - Transport layer

Transport Layer

Sohag University

Computer Science

M.KARAM

17.11.2014

17.11.2014 M.KARAM 2

Transport Layer Role and Services

17.11.2014 M.KARAM 3

Transport Layer Role and Services cont.

The transport layer is concerned with the actual end-to-end transfer of the data across the network.

This layer establishes a logical connection between the two communicating hosts and provides reliable or unreliable data delivery and can provide flow control and error recovery.

The transport layer segments and reassembles data.

17.11.2014 M.KARAM 4

Its Protocols

This layer have two protocols :

17.11.2014 M.KARAM 5

Connection Types

1- Connection-oriented

In case of connection-oriented the hosts must establish connection before sending any data.It use TCP ( Transmission Control Protocol ) protocol.

2- Connectionless

In case of connectionless the hosts start sending data without establish connection.It use UDP ( User Datagram Protocol ) protocol.

17.11.2014 M.KARAM 6

Connection-oriented

The connection will be connection-oriented if it have some conditions :

1- A virtual circuit is set up such as( A three-way handshake )

2- It uses acknowledgments 3- It uses sequencing4- It uses flow control

The connection that have this four conditions called “ A reliable connection “ .

17.11.2014 M.KARAM 7

A virtual circuit

Before transmitting any segment of data the

sender's TCP process contacts the destination's

TCP process to establish the connection.

What is creates is known as “ a virtual circuit “ .

But how it was created ?

By using A three-way handshake

17.11.2014 M.KARAM 8

A virtual circuit cont. (A three-way handshake)

17.11.2014 M.KARAM 9

Acknowledgment

17.11.2014 M.KARAM 10

Sequencing

17.11.2014 M.KARAM 11

Flow control

Flow control is a function for the control of the data flow within an OSI layer or between adjacent layers. In other words it limits the amount of data transmitted by the sending transport entity to a level, or rate, that the receiver can manage.

17.11.2014 M.KARAM 12

Windowing

17.11.2014 M.KARAM 13

Connectionless

Connectionless using UDP Protocol.

17.11.2014 M.KARAM 14

Connectionless cont.

17.11.2014 M.KARAM 15

Port number

In computer networking, a port is an application-specific or process-specific software construct serving as a communications endpoint in a computer's host operating system.

The purpose of ports is to uniquely identify different applications or processes running on a single computer and thereby enable them to share a single physical connection to a packet-switched network like the Internet.

A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535.

17.11.2014 M.KARAM 16

Port number cont.

Well-known ports :

The port numbers in the range from 0 to 1023 are the well-known ports or system ports.They are used by system processes that provide widely used types of network services.

Examples :

23 → telnet22 → SSH (Secure Shell)80 → HTTP

17.11.2014 M.KARAM 17

Transport Layer Header

17.11.2014 M.KARAM 18

The role of port numbers

the role of port numbers in establishing TCP sessions and directing segments to server process.

17.11.2014 M.KARAM 19

The role of port numbers cont.

17.11.2014 M.KARAM 20

Thank you