Transport Layer of the OSI ModelFitness Equipment
Transport Layer of the OSI Model
This is the fourth layer of the OSI model. The data unit at this layer is known as segment. The network layer deals with source-to-destination delivery of individual packets and does not recognize any relationship between them. On the other hand, the transport layer ensures that the entire message reaches in order and handles error control and flow control at the source-to destination level.
Transport layer receives data from the session layer. It divides the data into segments with each segment having its own header and passes these segments to the network layer. At the receiver side, transport layer receives packets from the network layer. It detaches headers from them and then reassembles the segments into original message and passes that message to the session layer.
Service-point Addressing - There may be number of programs running at the same time on a computer. For this purpose, source-to-destination delivery should also include process-to-process delivery. Data must be transferred from a specific process (running program) on one computer to a specific process or another computer and to accomplish this, port address is required. Thus, transport layer includes service-point address (also referred to as port address) in the header. Using these port addresses transport layer delivers the packets to the correct process.
Segmentation and Reassembly - A message is divided into segments with each segment having a sequence number. When the message arrives at the destination, with the help of these sequence numbers, the transport layer reassembles the message correctly. Sequence numbers also enable transport layer to determine and replace the segments that were lost in the transmission.
Connection Control - Transport layer provides either connection-oriented or connectionless service. In connection-oriented service, transport layer establishes a connection with the transport layer at the destination before transmitting segments and terminates the connection when all the data is transferred. In connectionless service, transport layer treats each segment as individual packet and transmits it to the transport layer at destination.
Flow Control - Data link layer provides flow control of data across a single link. Transport layer, on the other hand is also responsible for flow control which is performed end to end.
Error Control - Transport layer also performs error checking. Error control takes place end to end. Transport layer at the sending machine ensures that the entire message is delivered at the receiving machine without an error. Segments are retransmitted to achieve error correction. Transport layer is concerned with delivering the entire message from source-to-destination.
You may also be interested in understanding the other seven layers of the OSI Model