Skip to content

Lesson 02 β€” The OSI Model

Imagine trying to build a city without any rules or standards.

Roads would connect randomly, buildings would use different measurements, and communication would be chaotic.

Computer networking would face the same challenge without standards.

The OSI (Open Systems Interconnection) Model provides a standard framework that explains how data moves from one device to another across a network.

Although modern networks primarily use the TCP/IP model, the OSI Model remains one of the most important concepts in networking because it helps engineers understand communication, troubleshoot issues, and design reliable networks.

Whether you’re working in Cloud Computing, Cybersecurity, DevOps, Networking, or Enterprise IT, you’ll use the OSI Model throughout your career.


After completing this lesson, you will be able to:

  • Explain what the OSI Model is.
  • Identify all seven OSI layers.
  • Understand the responsibility of each layer.
  • Follow how data travels through the OSI Model.
  • Use the OSI Model for troubleshooting.
  • Understand why the OSI Model is important in enterprise environments.

The OSI (Open Systems Interconnection) Model is a conceptual framework that describes how devices communicate across a network.

Instead of treating communication as one large process, the OSI Model divides it into seven separate layers, each responsible for a specific task.

Each layer communicates only with the layer directly above and below it.

This layered approach makes networks easier to design, maintain, troubleshoot, and improve.


The OSI Model consists of seven layers.

Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 2 Data Link
Layer 1 Physical

Data travels down these layers when it is sent and up these layers when it is received.


Imagine you open your web browser and visit:

https://www.gohackerscloud.com

The data follows this path:

Application
↓
Presentation
↓
Session
↓
Transport
↓
Network
↓
Data Link
↓
Physical
═══════════════════════
Network Cable
═══════════════════════
Physical
↑
Data Link
↑
Network
↑
Transport
↑
Session
↑
Presentation
↑
Application

Every layer performs a specific function before passing the data to the next layer.


The Application Layer is where users interact with network services.

It provides the interface between applications and the network.

Examples include:

  • Web Browsers
  • Email Clients
  • File Transfer Applications
  • Remote Desktop
  • Video Conferencing

Common protocols:

  • HTTP
  • HTTPS
  • FTP
  • SMTP
  • DNS

This layer is closest to the user.


The Presentation Layer ensures that data is presented in a format both devices can understand.

Responsibilities include:

  • Data formatting
  • Encryption
  • Decryption
  • Compression
  • Character encoding

Examples:

  • SSL/TLS Encryption
  • JPEG Images
  • PNG Images
  • MP4 Videos

Without this layer, devices may interpret data differently.


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

Responsibilities include:

  • Session creation
  • Session management
  • Session synchronization
  • Session termination

Examples include:

  • User logins
  • Video conferencing sessions
  • Database connections

Think of this layer as the meeting organizer that starts and ends conversations.


The Transport Layer ensures reliable communication between devices.

Responsibilities include:

  • Segmentation
  • Error detection
  • Flow control
  • Reliable delivery
  • Port numbers

Common protocols:

  • TCP
  • UDP

Reliable communication.

Used for:

  • Websites
  • Email
  • Banking
  • File Transfers

Fast communication.

Used for:

  • Video Streaming
  • Gaming
  • Voice Calls
  • Live Broadcasting

The Network Layer determines how data travels between different networks.

Responsibilities include:

  • Logical addressing
  • Routing
  • Path selection
  • Packet forwarding

Common protocols:

  • IPv4
  • IPv6
  • ICMP

Networking devices:

  • Routers
  • Layer 3 Switches

Without this layer, the Internet could not exist.


The Data Link Layer enables communication within the same local network.

Responsibilities include:

  • MAC Addresses
  • Frame creation
  • Error detection
  • Switching
  • Local delivery

Networking devices:

  • Switches
  • Bridges

Protocols include:

  • Ethernet
  • Wi-Fi (802.11)

The Physical Layer transmits raw electrical, optical, or wireless signals.

Responsibilities include:

  • Cables
  • Connectors
  • Wireless Signals
  • Fibre Optics
  • Electrical Transmission

Examples:

  • Ethernet Cable
  • Fibre Cable
  • Wireless Radio Signals

Without the Physical Layer, data cannot move between devices.


Layer Common Devices
Layer 7 Web Servers, Browsers
Layer 6 SSL/TLS Services
Layer 5 Session Services
Layer 4 Firewalls, Load Balancers
Layer 3 Routers
Layer 2 Switches
Layer 1 Cables, Fibre, Wireless

Understanding which devices operate at each layer helps troubleshoot network problems more efficiently.


As data travels down the OSI Model, each layer adds its own information.

This process is called Encapsulation.

Application Data
↓
Segment
↓
Packet
↓
Frame
↓
Bits

When the receiving device processes the data, each layer removes its information.

This process is called Decapsulation.


Although modern networks use the TCP/IP Model, the OSI Model remains valuable because it provides a structured approach to understanding communication.

IT professionals use it to:

  • Troubleshoot network issues.
  • Design enterprise networks.
  • Understand protocols.
  • Secure communications.
  • Identify where failures occur.

The OSI Model provides a common language for networking professionals worldwide.


Imagine a user cannot access a website.

An engineer might troubleshoot layer by layer.

Layer Example Question
7 Is the web application running?
6 Is the SSL certificate valid?
5 Is the session established?
4 Is TCP port 443 open?
3 Can the server be reached by IP?
2 Is the switch forwarding traffic?
1 Is the cable connected?

Following the OSI Model helps isolate issues quickly.


Even in cloud environments, the OSI Model remains relevant.

Examples include:

  • AWS VPC Networking
  • Azure Virtual Networks
  • Load Balancers
  • VPN Connections
  • Security Groups
  • Firewalls
  • Kubernetes Networking

Cloud networking follows the same communication principles.


Security professionals use the OSI Model to understand how attacks occur at different layers.

Examples include:

  • Layer 7 – Web Application Attacks
  • Layer 4 – TCP Flood Attacks
  • Layer 3 – IP Spoofing
  • Layer 2 – ARP Spoofing
  • Layer 1 – Physical Tampering

Understanding the affected layer helps determine the appropriate defense.


Many networking professionals remember the OSI layers using the following phrase:

All
People
Seem
To
Need
Data
Processing

Which represents:

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

Use whichever mnemonic works best for you.


As an IT professional:

  • Learn the purpose of every OSI layer.
  • Use the OSI Model when troubleshooting.
  • Understand which protocols operate at each layer.
  • Recognize which networking devices function at each layer.
  • Practice identifying problems layer by layer.

Mastering the OSI Model will make learning networking much easier.


After completing this lesson, you should understand:

  • What the OSI Model is.
  • The seven layers of the OSI Model.
  • The responsibilities of each layer.
  • How data travels across a network.
  • How the OSI Model supports troubleshooting.
  • Why the OSI Model remains relevant in Cloud Computing and Cybersecurity.

The OSI Model is one of the most important networking concepts every IT professional should understand.

Although it is a conceptual model, it provides a structured way to visualize network communication, identify problems, and understand how different networking technologies work together.

As you continue through this module, you’ll build upon the OSI Model while learning TCP/IP, IP addressing, routing, DNS, firewalls, VPNs, enterprise networking, and cloud networking.

A strong understanding of the OSI Model will make every advanced networking topic easier to learn.


➑️ Lesson 03 β€” TCP/IP Model

In the next lesson, you’ll explore the TCP/IP Model, understand how it differs from the OSI Model, and learn why it forms the foundation of the modern Internet and cloud networking.