Layer 4

February 19, 2024
The fourth of the seven layers of the OSI (Open System Interconnection) model is designed to transmit data over the network. Therefore, this layer is called the "transport layer".

Layer 4 is between the application that the user interacts with and the network of computers that receive data generated by the client.

Data from the previous layers comes into this layer to be categorized into individual segments.

A segment is a block of data that passes through the transport layer. It includes application data and a specific set of parameters: source port, destination port.

The layer includes the TCP and UDP protocols, which can be thought of as a software password on the machine involved in the data exchange.

  • TCP – ensures the delivery of data in a correct form, which uses different methods of checks. TCP is more accurate but slower than UDP, so it is used for example in authorization.
  • UDP – transfers data from one device to another without checking the integrity of the bits in the minimum time. It is used where a small loss of data is not critical. For example, for video or audio.
We use cookies to optimize site functionality and give you the best possible experience. To learn more about the cookies we use, please visit our Cookies Policy. By clicking ‘Okay’, you agree to our use of cookies. Learn more.