Javatpoint Logo
Javatpoint Logo

Session Layer in OSI Model

The session layer is Layer 5 layer from the bottom in the OSI model. The job of the session layer is to control and maintain connections between systems to share data. It establishes, maintains, and ends sessions across all channels. In case of a network error, it checks the authenticity and provides recovery options for active sessions. It manages sessions and synchronizes data flow.

Basically, this layer regulates when computers can send data and how much data they can send. Essentially it coordinates communication between devices.

Session Layer in OSI Model

Functions of the Session Layer:

  • Session Establishment: The session layer establishes connections between devices which is known as sessions. The session which is created allows users to share data, remote access, and file management. When the session is released, the transport connection is mapped. The ways in which transport connection maps are one-to-many, one-to-one, and many-to-one.
  • Data Transfer: It is the very basic function of the session layer, which handles the exchange of data between systems in a full-duplex or half-duplex mode of transmission. The session layer allows only one user to transmit data in half-duplex as well as exchange data in full-duplex mode.
  • Dialog Management: The session layer keeps log data on which connections are established to transmit and receive data, which is called dialog management. It is accountable for establishing, synchronizing, preserving, and ending the conversation between the sender and the receiver. It uses a token mechanism in which the user sharing the data is given a token in case of half duplex mode and, after the exchange, transfers it to another device. The token method maintains the efficiency of the connection.
  • Synchronization: The session maintains proper connectivity between systems, and if any error occurs, then it provides a recovery option which is called a known state. The session layer adds synchronization bits to the message to use the known state in the event of an error. These bits can be used as checkpoints. It adds synchronization points or checkpoints to the data stream for longer communication. It ensures that the data streams are successfully received and acknowledged up to the checkpoints. In case of any failure, only the stream needs to be retransmitted after the checkpoints.
  • Authentication: The process of identification is known as authentication. It takes a guarantee from the user to permit them access to the data. Authentication is very important because it provides security.
  • Authorization: It grants privileges after authentication of the user. Authorization means providing access to the data that is authorized to the specific user.

Protocols of the Session Layer:

The session layer offers many network protocols for the safety, security, and efficiency of communication between devices.

Some of these protocols are discussed below:

  • RTCP: It is an abbreviation for Real-time Transport Control Protocol. It is used to provide audio and video over the Internet. Basically, it periodically transmits control packets to all participants in the session. It provides feedback on QoS (Quality of Service) to all participants in the session. It is used in video conferencing, television services, etc.
  • PPTP: It is the full form of Point-to-Point Tunneling Protocol. This is the technology used to implement VPN. With the help of PPTP, data can be transmitted securely from one node to another through a tunnel.
  • PAP: It is an abbreviation for Password Authentication Protocol. The point-to-point protocol uses it to authenticate the user. It takes care of whether the user is authentic or not and then grants access. It works in such a way that the user will enter the id and password, then after the authentication, the server will reply with a confirmation. It is a weak type of authentication system as it is highly vulnerable to attackers.
  • ADSP: It is an abbreviation for AppleTalk Data Stream Protocol. It is a networking protocol that was introduced 38 years ago, in 1985, and was created for Apple Macintosh networks. It allows users to share printers and folders for access by other network users.
  • RPC: It is an abbreviation for Remote Procedure Call Protocol. It helps in communication between processes that are residing in different systems connected over a network. It helps one program to request a service from another program located on another computer on a network. The processes that are communicating do not need to comprehend the details of the network.
  • iSNS: It is an abbreviation for Internet Storage Name Service. It manages and configures Fibre Channel and iSCSI devices. This protocol is used by many platforms.
  • SDP: It is an abbreviation for Sockets Direct Protocol. It is a standard wire protocol that supports stream sockets on RDMA (Remote Direct Memory Access) fabrics.

Conclusion:

  • In this article, you have gained knowledge of the session layer in the OSI model. It is the fifth layer of the OSI model. The work of this layer is to open, maintain and end the session for safe and secure communication.
  • You have studied the various functions of the session layer in OSI model, such as session establishment, dialog management, data transfer, synchronization, authentication, and authorization.
  • You have read some of the protocols used in the session layer like Real-time Transport Control Protocol (RTCP), Point-to-Point Tunneling Protocol (PPTP), AppleTalk Data Stream Protocol (ADSP), Remote Procedure Call Protocol (RPC), Password Authentication Protocol (PAP), Sockets Direct Protocol (SDP), and Internet Storage Name Service (iSNS).

Next TopicSUBNET MASK





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA