Skip to content
Home » OSI Reference Model

OSI Reference Model

1. Introduction

OSI stands for Open Systems Interconnection. The OSI model is a reference model developed by ISO (International Organization for Standardization) to standardize how different computer systems communicate over a network.

The OSI model divides network communication into 7 layers. Each layer performs a specific function and provides services to the layer above it.

The 7 OSI Layers

        +---------------------------+
        |  7. Application           |
        +---------------------------+
        |  6. Presentation          |
        +---------------------------+
        |  5. Session               |
        +---------------------------+
        |  4. Transport             |
        +---------------------------+
        |  3. Network               |
        +---------------------------+
        |  2. Data Link             |
        +---------------------------+
        |  1. Physical              |
        +---------------------------+

Easy way to remember:

A P S T N D P
Application → Presentation → Session → Transport → Network → Data Link → Physical

Or from bottom to top:

Please Do Not Throw Sausage Pizza Away


2. Need for the OSI Model

Before standard networking models, different manufacturers used different communication systems. This created compatibility problems.

The OSI model was introduced to:

  1. Standardize network communication.
  2. Allow different systems to communicate.
  3. Divide complex networking into manageable layers.
  4. Make network development easier.
  5. Simplify troubleshooting.
  6. Encourage interoperability between different vendors.
  7. Provide a common framework for understanding network protocols.

3. Seven Layers of the OSI Model

Layer 1 — Physical Layer

The Physical Layer is the lowest layer of the OSI model.

It is responsible for transmitting raw bits (0s and 1s) over a physical communication medium.

Main functions

  • Transmission of bits
  • Defines cables and connectors
  • Defines voltage levels
  • Data rate
  • Signal characteristics
  • Physical topology
  • Transmission mode

Examples

  • Twisted-pair cable
  • Coaxial cable
  • Fiber-optic cable
  • Radio signals

Devices

  • Hub
  • Repeater
  • Cables

Data unit: Bits


4. Layer 2 — Data Link Layer

The Data Link Layer provides node-to-node delivery of data.

It takes the raw bits from the Physical Layer and organizes them into frames.

Main functions

  • Framing
  • Physical addressing
  • Error detection
  • Error correction
  • Flow control
  • Access control

Example protocols

  • Ethernet
  • HDLC
  • PPP

Device

Switch primarily operates at this layer.

Data unit: Frame


5. Layer 3 — Network Layer

The Network Layer is responsible for source-to-destination delivery across multiple networks.

Its major function is routing.

Main functions

  • Logical addressing
  • Routing
  • Packet forwarding
  • Internetworking
  • Congestion-related functions

Example

IP (Internet Protocol)

Device

Router

Data unit: Packet


6. Layer 4 — Transport Layer

The Transport Layer provides end-to-end communication between applications running on different devices.

Main functions

  • Segmentation
  • Reassembly
  • End-to-end delivery
  • Flow control
  • Error control
  • Connection management
  • Multiplexing and demultiplexing

Two important transport protocols are:

  • TCP — reliable and connection-oriented
  • UDP — connectionless and faster

Data unit: Segment (commonly for TCP)


7. Layer 5 — Session Layer

The Session Layer establishes, manages and terminates communication sessions between applications.

Main functions

  • Session establishment
  • Session maintenance
  • Session termination
  • Dialog control
  • Synchronization

For example, when two applications communicate for a long period, the Session Layer can help manage that communication session.

Data unit: Data


8. Layer 6 — Presentation Layer

The Presentation Layer is concerned with the format and representation of data.

It makes sure that data sent by one system can be understood by another system.

Main functions

1. Translation

Converts data between different formats.

2. Encryption

Provides data encryption and decryption.

3. Compression

Reduces the size of data before transmission.

Examples of data representation technologies include:

  • ASCII
  • Unicode
  • JPEG
  • MPEG

Data unit: Data


9. Layer 7 — Application Layer

The Application Layer is the top layer of the OSI model.

It provides network services directly to user applications.

Main functions

  • Web access
  • E-mail services
  • File transfer
  • Remote access
  • Network resource sharing

Examples of protocols

  • HTTP/HTTPS
  • FTP
  • SMTP
  • DNS

Data unit: Data


10. OSI Model Diagram

λobservation point\(v = f\lambda\)

The OSI layers can be summarized as:

+------------------------------------------------+
| 7. APPLICATION  | Network services             |
+------------------------------------------------+
| 6. PRESENTATION | Translation, encryption,     |
|                  | compression                  |
+------------------------------------------------+
| 5. SESSION      | Session management            |
+------------------------------------------------+
| 4. TRANSPORT    | End-to-end delivery          |
+------------------------------------------------+
| 3. NETWORK      | Routing and logical address  |
+------------------------------------------------+
| 2. DATA LINK    | Frames, MAC, error control   |
+------------------------------------------------+
| 1. PHYSICAL     | Bits and physical signals    |
+------------------------------------------------+

Note: The available learning visual is useful for the physical-layer signal concept; the OSI layer diagram above is the direct exam diagram to reproduce.

11. Data Units at Different Layers

OSI LayerData Unit
ApplicationData
PresentationData
SessionData
TransportSegment
NetworkPacket
Data LinkFrame
PhysicalBits

A very important sequence to remember is:

Data → Segment → Packet → Frame → Bits


12. How Data Travels Through OSI Layers

Suppose a user sends an e-mail.

At the sender:

Application
     ↓
Presentation
     ↓
Session
     ↓
Transport
     ↓
Network
     ↓
Data Link
     ↓
Physical
     ↓
Communication Medium

At the receiver, the process happens in reverse:

Physical
     ↓
Data Link
     ↓
Network
     ↓
Transport
     ↓
Session
     ↓
Presentation
     ↓
Application

The process of adding headers as data moves down the layers is called encapsulation.

Removing these headers at the receiver is called decapsulation.


13. Important Devices and OSI Layers

DeviceMain OSI Layer
RepeaterPhysical
HubPhysical
BridgeData Link
SwitchData Link
RouterNetwork
GatewayCan operate across multiple layers

14. Advantages of OSI Model

1. Simplifies Networking

Complex communication is divided into seven smaller layers.

2. Standardization

It provides a common framework for network communication.

3. Easy Troubleshooting

Network problems can be isolated to a particular layer.

4. Interoperability

Different vendors can develop systems that follow common networking concepts.

5. Modular Design

Changes in one layer generally do not require redesigning the entire network.

6. Easier Learning

Students and network professionals can study networking layer by layer.


15. Disadvantages / Limitations

  1. The OSI model is mainly a reference model, rather than the exact architecture used by the Internet.
  2. Some functions overlap between layers.
  3. Some modern protocols do not fit perfectly into one particular OSI layer.
  4. The seven-layer structure can sometimes be more complex than necessary.

16. Easy Way to Remember the Seven Layers

From Top to Bottom:

A P S T N D P

All
People
Seem
To
Need
Data
Processing

From Bottom to Top:

P D N T S P A

Please
Do
Not
Throw
Sausage
Pizza
Away


Conclusion

The OSI Reference Model divides computer network communication into seven layers: Physical, Data Link, Network, Transport, Session, Presentation and Application. Each layer performs specific functions and communicates with the layers above and below it. The model provides a standard framework that helps in network design, protocol development, troubleshooting and understanding computer communication.

⭐ Important 10-Mark MCA Question

Q. Explain the OSI reference model. Describe all seven layers with their functions, protocols, devices and data units.

For an exam, draw the 7-layer diagram first, then explain each layer with 2–5 functions and examples.