OSI Reference Model

Site: Newgate University Minna - Elearning Platform
Course: Fundamental of Computer Networking
Book: OSI Reference Model
Printed by: Guest user
Date: Tuesday, 10 March 2026, 6:36 AM

1. OSI Reference Model

Introduction

The Open Systems Interconnection (OSI) Reference Model, developed by the International Organization for Standardization (ISO) in 1984, is a conceptual framework that standardizes the functions of a communication system into seven distinct layers. It provides a universal blueprint for understanding, designing, and troubleshooting network architectures. Each layer performs specific tasks and interacts with the layers above and below it, ensuring seamless end-to-end communication.

This lecture note outlines the seven layers of the OSI model, their functions, key responsibilities, and examples of protocols, devices, or technologies associated with each layer. It also covers the concept of data encapsulation and the model’s practical applications.


1.1. Question

Have you ever wondered how your phone sends a photo to your friend’s phone across the world? What steps do you think the internet takes to make that happen?

Purpose: Connects the OSI model to a familiar action (sending a photo), prompting students to think about the hidden processes involved.


1.2. WATCH THIS VIDEO FOR MORE UNDERSTANDING

2. Physical Layer

1. Physical Layer (Layer 1)

Function: Responsible for the transmission and reception of raw bits (0s and 1s) over a physical medium, such as cables, fiber optics, or wireless signals.

Key Responsibilities:

Defines physical characteristics: cables, connectors, voltages, and signal timing.

Handles bit-level transmission (e.g., electrical or optical signals).

Specifies network topology (e.g., bus, star, ring).

Manages modulation (e.g., converting digital bits to analog signals for modems).

Examples:

Cables: Ethernet (Cat5e, Cat6), fiber optics (SMF, MMF).

Connectors: RJ45, USB, SC/LC (fiber).

Wireless: Wi-Fi radio signals (IEEE 802.11), Bluetooth.

Devices: Hubs, repeaters, physical ports of modems.

Standards: RS-232, V.35, 10Base-T.

Analogy: The physical layer is like the roads or wires carrying raw signals, unconcerned with their meaning.


2.1. Data Link Layer

2. Data Link Layer (Layer 2)

Function: Ensures reliable data transfer between two directly connected nodes, handling error detection and correction, and managing access to the physical medium.

Key Responsibilities:

Frames data by adding headers and trailers (e.g., Ethernet frames).

Performs error detection (e.g., Cyclic Redundancy Check - CRC).

Manages flow control to prevent overwhelming the receiver.

Uses Media Access Control (MAC) addresses for device identification.

Handles access methods (e.g., CSMA/CD for Ethernet, CSMA/CA for Wi-Fi).

Examples:

Protocols: Ethernet (IEEE 802.3), Point-to-Point Protocol (PPP), HDLC.

Technologies: Wi-Fi (IEEE 802.11), VLANs, Frame Relay.

Devices: Switches, bridges, Network Interface Cards (NICs).

Example: MAC address (e.g., 00:1A:2B:3C:4D:5E).

Analogy: A post office sorting letters for local delivery, ensuring they’re correctly addressed and intact.


2.2. Network Layer

3. Network Layer (Layer 3)

Function: Manages logical addressing and routing of data packets across multiple networks to reach the intended destination.

Key Responsibilities:

Assigns logical addresses (e.g., IP addresses).

Determines optimal paths for data (routing).

Handles packet forwarding, fragmentation, and reassembly.

Supports inter-network communication.

Examples:

Protocols: Internet Protocol (IP - IPv4, IPv6), ICMP, IPsec.

Devices: Routers, Layer 3 switches.

Routing Protocols: OSPF, BGP, RIP.

Example: IP address (e.g., 192.168.1.1).

Analogy: A GPS system finding the best route for packets to travel across networks.


2.3. Transport Layer (Layer

4. Transport Layer (Layer 4)

Function: Provides reliable or unreliable end-to-end data transfer between hosts, ensuring data arrives complete, in order, or quickly as needed.

Key Responsibilities:

Segments and reassembles data for transmission.

Manages flow control (e.g., TCP windowing).

Performs error detection and retransmission (for reliable protocols).

Supports connection-oriented (e.g., TCP) or connectionless (e.g., UDP) communication.

Uses port numbers to identify applications.

Examples:

Protocols: Transmission Control Protocol (TCP), User Datagram Protocol (UDP).

Port Numbers: 80 (HTTP), 443 (HTTPS), 53 (DNS).

Technologies: TCP three-way handshake, UDP for streaming.

Analogy: A courier service ensuring all packages arrive correctly and in order (TCP) or sending them quickly without guarantees (UDP).


2.4. Session Layer

5. Session Layer (Layer 5)

Function: Establishes, manages, and terminates communication sessions between applications on different devices.

Key Responsibilities:

Sets up and maintains sessions (e.g., login sessions).

Synchronizes data exchange (e.g., checkpoints for recovery).

Controls dialogue modes (e.g., full-duplex, half-duplex).

Examples:

Protocols: NetBIOS, Remote Procedure Call (RPC), Server Message Block (SMB).

Technologies: Session Initiation Protocol (SIP) for VoIP, session management in web applications.

Example: Maintaining a user’s session during an online banking transaction.

Analogy: A phone call coordinator, initiating the call, keeping it active, and ending it when complete.


2.5. Presentation Layer

6. Presentation Layer (Layer 6)

Function: Translates data between the application layer and lower layers, ensuring it’s in a usable format. Handles encryption, compression, and data formatting.

Key Responsibilities:

Converts data formats (e.g., ASCII to EBCDIC).

Encrypts and decrypts data (e.g., for secure communication).

Compresses data to reduce transmission size.

Manages character encoding and file formats.

Examples:

Protocols: SSL/TLS, MIME (Multipurpose Internet Mail Extensions).

Formats: JPEG, PNG, GIF, XML, JSON.

Example: Encrypting data for HTTPS or compressing video for streaming.

Analogy: A translator converting a message into the recipient’s language or securing it for privacy.


2.6. Application Layer

7. Application Layer (Layer 7)

Function: Provides network services directly to end-user applications, enabling user interaction with the network.

Key Responsibilities:

Supports application-specific protocols for user services.

Enables resource sharing, remote access, and network-based applications.

Provides user interfaces for network communication.

Examples:

Protocols: HTTP/HTTPS, File Transfer Protocol (FTP), Simple Mail Transfer Protocol (SMTP), Domain Name System (DNS).

Applications: Web browsers (Chrome, Firefox), email clients (Outlook), FTP clients.

Example: Accessing a website via HTTP or sending an email via SMTP.

Analogy: The front desk of a service, where users interact directly (e.g., typing a URL in a browser).


3. Data Encapsulation in the OSI Model

Concept: As data moves from the application layer to the physical layer, each layer adds its own header (and sometimes trailer) to the data, a process called encapsulation. At the receiving end, each layer removes its corresponding header to retrieve the original data.

Process:

1. Application Layer: User data (e.g., an HTTP request) is created.

2. Presentation Layer: Data is formatted or encrypted (e.g., into JSON or TLS-encrypted).

3. Session Layer: Session information is added (e.g., session ID).

4. Transport Layer: Segments data and adds a header (e.g., TCP header with port numbers).

5. Network Layer: Adds a header with logical addresses (e.g., IP header).

6. Data Link Layer: Frames data with a header and trailer (e.g., Ethernet frame with MAC addresses).

Physical Layer: Transmits bits over the medium (e.g., as electrical signals).


Decapsulation: The reverse occurs at the destination, with each layer stripping its header to pass data upward.


4. Practical Applications of the OSI Model

Network Design: Provides a standardized framework for developing interoperable protocols and devices.

Troubleshooting: Helps isolate issues to a specific layer (e.g., Layer 1 for cable issues, Layer 3 for routing problems).

Education: Offers a clear, layered approach to teaching networking concepts.

Protocol Development: Guides the creation of protocols by defining layer-specific functions (e.g., TCP for Layer 4 reliability).

Interoperability: Ensures devices from different vendors work together by adhering to standardized layer functions.


4.1. OSI Layer Function and Example

Layer

Summary Table

Layer

Name

Function

Examples

7

Application

User-facing services

HTTP, FTP, SMTP, DNS

6

Presentation

Data translation, encryption, compression

SSL/TLS, JPEG, PNG, MIME

5

Session

Session management, synchronization

NetBIOS, RPC, SIP, SMB

4

Transport

End-to-end reliability, flow control

TCP, UDP, port numbers

3

Network

Routing, logical addressing

IP, ICMP, routers, OSPF

2

Data Link

Node-to-node transfer, error detection

Ethernet, PPP, MAC, switches

1

Physical

Bit transmission, hardware specs

Cables, hubs, Wi-Fi signals


5. Key Takeaways

The OSI model divides network communication into seven layers, each with specific roles.

It facilitates understanding, designing, and troubleshooting networks by providing a clear, layered structure.

Each layer uses specific protocols and technologies, from physical cables to user applications.

Encapsulation ensures data is properly formatted and delivered across layers.

The model is theoretical but widely used for education, protocol design, and troubleshooting. 

Additional Notes

Relation to TCP/IP: The OSI model is theoretical, while the TCP/IP model (covered later) is practical and used in the internet. OSI’s granularity (seven layers) contrasts with TCP/IP’s streamlined four layers.

Troubleshooting Example: If a website isn’t loading, check:

Layer 1: Is the cable plugged in?

Layer 3: Is the IP configuration correct?

Layer 7: Is the web server (HTTP) responding?

Further Study: Explore specific protocols (e.g., TCP, IP) or compare with the TCP/IP model for deeper insights.