Osi Model
Osi Model
• A layer should only be created where the definite levels of abstraction are needed.
• The function of each layer should be selected as per the internationally standardized protocols.
• The number of layers should be large so that separate functions should not be put in the same layer. At the same
time, it should be small enough so that architecture doesn't become very complicated.
• In the OSI model, each layer relies on the next lower layer to perform primitive functions. Every level should
able to provide services to the next higher layer
• Changes made in one layer should not need changes in other lavers.
7. Physical Layer
The physical layer helps you to define the electrical and physical specifications of the data connection. This level
establishes the relationship between a device and a physical transmission medium. The physical layer is not concerned
with protocols or other such higher-layer items.
Examples of hardware in the physical layer are network adapters, ethernet, repeaters, networking hubs, etc.
5. Transport Layer:
The transport layer builds on the network layer to provide data transport from a process on a source machine to a process
on a destination machine. It is hosted using single or multiple networks, and also maintains the quality of service
functions.
It determines how much data should be sent where and at what rate. This layer builds on the message which are received
from the application layer. It helps ensure that data units are delivered error-free and in sequence.
Transport layer helps you to control the reliability of a link through flow control, error control, and segmentation or de-
segmentation.
The transport layer also offers an acknowledgment of the successful data transmission and sends the next data in case
no errors occurred. TCP is the best-known example of the transport layer.
Important functions of Transport Layers:
• It divides the message received from the session layer into segments and numbers them to make a sequence.
• Transport layer makes sure that the message is delivered to the correct process on the destination machine.
• It also makes sure that the entire message arrives without any error else it should be retransmitted.
4. Network Layer:
The network layer provides the functional and procedural means of transferring variable length data sequences from
one node to another connected in "different networks".
Message delivery at the network layer does not give any guaranteed to be reliable network layer protocol.
Layer-management protocols that belong to the network layer are:
1. routing protocols
2. multicast group management
3. network-layer address assignment.
3. Session Layer
Session Layer controls the dialogues between computers. It helps you to establish starting and terminating the
connections between the local and remote application.
This layer request for a logical connection which should be established on end user's requirement. This layer handles all
the important log-on or password validation.
Session layer offers services like dialog discipline, which can be duplex or half-duplex. It is mostly implemented in
application environments that use remote procedure calls.
Important function of Session Layer:
• It establishes, maintains, and ends a session.
• Session layer enables two systems to enter into a dialog
• It also allows a process to add a checkpoint to steam of data.
2. Presentation Layer
Presentation layer allows you to define the form in which the data is to exchange between the two communicating
entities. It also helps you to handles data compression and data encryption.
This layer transforms data into the form which is accepted by the application. It also formats and encrypts data which
should be sent across all the networks. This layer is also known as a syntax layer.
The function of Presentation Layers:
• Character code translation from ASCII to EBCDIC.
• Data compression: Allows to reduce the number of bits that needs to be transmitted on the network.
• Data encryption: Helps you to encrypt data for security purposes — for example, password encryption.
• It provides a user interface and support for services like email and file transfer.
1. Application Layer
Application layer interacts with an application program, which is the highest level of OSI model. The application layer
is the OSI layer, which is closest to the end-user. It means OSI application layer allows users to interact with other
software application.
Application layer interacts with software applications to implement a communicating component. The interpretation of
data by the application program is always outside the scope of the OSI model.
Example of the application layer is an application such as file transfer, email, remote login, etc.
The functions of the Application Layers are:
• Application-layer helps you to identify communication partners, determining resource availability, and
synchronizing communication.
• It allows users to log on to a remote host
• This layer provides various e-mail services
• This application offers distributed database sources and access for global information about various objects and
services.
Layer-2 Data Link RAPA, PPP, Frame Relay, ATM, Fiber Cable
Here, are some important differences between the OSI & TCP/IP model:
OSI Model TCP/IP model
OSI model provides a clear distinction between TCP/IP doesn't offer any clear distinguishing points
interfaces, services, and protocols. between services, interfaces, and protocols.
OSI uses the network layer to define routing standards TCP/IP uses only the Internet layer.
and protocols.
OSI model use two separate layers physical and data link TCP/IP uses only one layer (link).
to define the functionality of the bottom layers
OSI model, the transport layer is only connection- A layer of the TCP/IP model is both connection-oriented
oriented. and connectionless.
In OSI model, data link layer and physical are separate In TCP data link layer and physical layer are combined as
layers. a single host-to-network layer.
The minimum size of the OSI header is 5 bytes. Minimum header size is 20 bytes.
Advantages of the OSI Model
Here, are major benefits/pros of using the OSI model:
• It helps you to standardize router, switch, motherboard, and other hardware
• Reduces complexity and standardizes interfaces
• Facilitates modular engineering
• Helps you to ensure interoperable technology
• Helps you to accelerate the evolution
• Protocols can be replaced by new protocols when technology changes.
• Provide support for connection-oriented services as well as connectionless service.
• It is a standard model in computer networking.
• Supports connectionless and connection-oriented services.
• Offers flexibility to adapt to various types of protocols