Sunday 27 July 2014

Functions of OSI MODEL - Session Layer

Functions of OSI MODEL - Session Layer

This layer allows users on different machines to establish session between them. A session allows ordinary data transport but it also provides enhanced services useful in some applications. A session may be used to allow a user to log into a remote time-sharing machine or to transfer a file between two machines. Some of the session related services are:
1. This layer manages Dialogue Control. Session can allow traffic to go in both direction at the same time, or in only one direction at one time.
2. Token management. For some protocols, it is required that both sides don't attempt same operation at the same time. To manage these activities, the session layer provides tokens that can be exchanged. Only one side that is holding token can perform the critical operation. This concept can be seen as entering into a critical section in operating system using semaphores.
3. Synchronization. Consider the problem that might occur when trying to transfer a 4-hour file transfer with a 2-hour mean time between crashes. After each transfer was aborted, the whole transfer has to start again and again would probably fail. To Eliminate this problem, Session layer provides a way to insert checkpoints into data streams, so that after a crash, only the data transferred after the last checkpoint have to be repeated.

No comments:

Post a Comment