ISO-OSI Model and Functions of Different Layers
Definition
The ISO-OSI Model (International Organization for Standardization - Open Systems Interconnection Model) is a 7-layer conceptual framework that standardizes how data is transmitted and received over a network. It describes the functions of each layer involved in communication between two systems, from the physical transmission of bits to the application-level interaction used by end users.
In simple words, the OSI model acts as a universal guide for network communication. It does not represent a specific network technology; rather, it provides a reference model that helps different networking systems work together efficiently.
Main Content
1. The Seven Layers of the OSI Model
Physical Layer
This is the lowest layer of the OSI model and is responsible for transmitting raw bits over a communication channel. It deals with electrical, mechanical, and procedural aspects of communication. It defines things like cable types, signal strength, pin layouts, voltage levels, and data rates. Examples include Ethernet cables, hubs, repeaters, and radio signals. If a bit is transmitted as 1 or 0, the physical layer determines how that bit is represented in the medium.
Data Link Layer
This layer ensures reliable communication between two directly connected nodes. It converts raw bits from the physical layer into frames and provides error detection and flow control. It also manages MAC addressing, which helps identify devices on the same network. This layer is divided into two sublayers: Logical Link Control (LLC) and Media Access Control (MAC). Common devices associated with this layer are switches and bridges. For example, when a device sends data to another device in the same LAN, the data link layer handles frame creation and delivery.
2. Upper Layers and Their Role in End-to-End Communication
Network Layer
The network layer is responsible for logical addressing and routing. It determines the best path for data to travel from the source to the destination across multiple networks. It uses IP addresses and routers to move packets from one network to another. This layer also handles packet forwarding, congestion control, and fragmentation when data must be split to pass through networks with different maximum sizes. For example, when you access a website, the network layer ensures packets travel through the internet to the correct server.
Transport Layer
This layer provides end-to-end communication between devices. It breaks data into segments, ensures reliable delivery, and manages error recovery, flow control, and sequencing. The two major protocols here are TCP and UDP. TCP is connection-oriented and reliable, while UDP is faster but does not guarantee delivery. For instance, TCP is used in web browsing and email, whereas UDP is used in online gaming and video streaming where speed is more important than perfect reliability.
Session Layer
The session layer establishes, maintains, and terminates communication sessions between applications. It controls dialogue between systems and may support full-duplex or half-duplex communication. It also helps with session checkpoints, which allow recovery if communication is interrupted. For example, during a video conference, this layer helps maintain the active session until the call ends.
3. User-Oriented Layers and Their Practical Use
Presentation Layer
This layer prepares data for the application layer and ensures that data from one system is understandable by another. It handles translation, encryption, decryption, compression, and formatting. For example, if one system uses ASCII and another uses Unicode, the presentation layer helps convert the data into a common format. It also secures data by encrypting sensitive information like passwords or banking details before transmission.
Application Layer
This is the topmost layer and directly interacts with end users through network applications. It provides services such as file transfer, email, web browsing, remote login, and network management. Common protocols include HTTP, FTP, SMTP, DNS, and Telnet. When you open a website in a browser, the application layer is involved in communicating with the web server and presenting the requested content to the user.
Encapsulation and Decapsulation Across Layers
As data moves from the application layer down to the physical layer, each layer adds its own header, and in some cases a trailer, to the data. This process is called encapsulation. At the receiving end, the reverse process occurs, called decapsulation, where each layer removes its corresponding header and passes the data upward. This systematic process ensures that the data reaches the correct destination in the correct form. For example, a message sent over the internet is first converted into segments, packets, frames, and finally bits before transmission.
Working / Process
1. Data Creation at the Source
The process begins when a user enters data in an application such as a browser, email client, or file-sharing tool. The application layer creates the message and passes it downward through the OSI layers.
2. Encapsulation and Transmission
As the data travels down the layers, each layer adds control information. The transport layer adds segment information, the network layer adds logical addressing, the data link layer adds frame details, and the physical layer converts the data into signals for transmission through cables or wireless media.
3. Reception and Decapsulation at the Destination
The receiving device accepts the signals, and the data moves upward through the layers. Each layer removes its specific header, checks the information, and passes the remaining data to the next layer until the application layer delivers the final message to the user.
Advantages / Applications
Standardization and Interoperability
The OSI model provides a universal standard that allows different devices and network technologies to communicate effectively, even if they are made by different vendors.
Easy Learning and Troubleshooting
Since networking functions are divided into separate layers, it becomes easier to understand, design, test, and troubleshoot networks by isolating problems to a particular layer.
Wide Practical Use in Networking Concepts
The model is used in studying protocols, designing network systems, understanding internet communication, and explaining the roles of devices like routers, switches, and hubs in different layers.
Summary
- The ISO-OSI model is a seven-layer reference model used to understand network communication.
- Each layer performs a specific function, from physical transmission to user-level services.
- The model simplifies networking by dividing communication into manageable layers.
- Important terms to remember: Physical Layer, Data Link Layer, Network Layer, Transport Layer, Session Layer, Presentation Layer, Application Layer, encapsulation, decapsulation, protocol, packet, frame, and signal.