Transport Layer in OSI Model (original) (raw)

Last Updated : 9 Jan, 2026

The Transport Layer is the OSI Layer 4 responsible for providing reliable, efficient, and ordered end-to-end communication between applications on different hosts.

28

Transport Layer in OSI Model

Functions of Transport Layer

The Transport Layer is responsible for end-to-end communication of data packets. It provides a number of important functions that are responsible for reliable, efficient, and organized data transfer between host systems in a networked environment.

The primary functions of the Transport Layer are:

To read in detail about services offered by transport layer, refer to Transport Layer Services

Working of Transport Layer

The Transport Layer provides logical communication between processes on different hosts meaning that even though data travels across various physical networks, the communicating applications perceive a direct, reliable link.

Working of Transport-layer

3-Way Handshake

The 3-Way Handshake ensures both client and server are ready before data transmission begins:

**Step 1: SYN (Client -> Server)

**Step 2: SYN‑ACK (Server -> Client)

**Step 3: ACK (Client -> Server)

**Why not just two steps?

With only SYN and SYN-ACK, neither the client nor the server can be sure that the other has successfully received the messages. The third ACK provides mutual confirmation, ensuring both sides are ready before data transfer begins.

Transport Layer Protocols

Transport Layer Protocol uses different protocol for the better communication between two ends uses of protocol may differ from specifications. Below mention are some protocols used in Transport Layer

1. Transmission Control Protocol(TCP)

2. User Datagram Protocol (UDP)

3. Stream Control Transmission Protocol (SCTP)

Difference Between TCP and UDP at Transport Layer

Choosing between TCP and UDP depends on the application's need for reliability versus speed and efficiency.

transport_layer_protocols

TCP vs UDP

TCP UDP
TCP is a connection-oriented protocol UDP is the connection-less protocol
TCP supports error-checking mechanisms. UDP has only the basic error-checking mechanism using checksums.
An acknowledgment segment is present. No acknowledgment segment.
TCP is slower than UDP UDP is faster, simpler, and more efficient than TCP.
Retransmission of lost packets is possible in TCP, but not in UDP. There is no retransmission of lost packets in the User Datagram Protocol (UDP)
TCP has a (20-60) bytes variable length header. The header length is fixed of 8 bytes.