Topic 4

The OSI 7-Layer Reference Model

3 min read1 question to test yourself

1Definition

The OSI (Open System Interconnection) Reference Model is a standardized 7-layer architectural framework developed by ISO for understanding and implementing network communications between open systems.

2Simple Explanation

The OSI model acts as a 7-step assembly line for sending mail internationally. Each step (layer) has one specific job—from writing the letter (Application), formatting and sealing it (Presentation/Session), tracking package integrity (Transport/Network), putting it into an addressed envelope (Data Link), to physically putting it onto a delivery truck (Physical).

3Real-Life Example / Analogy

Imagine sending a physical letter overseas:

  • Layer 7 (App): You write the message.
  • Layer 6 (Pres): You translate it into English and compress the pages.
  • Layer 5 (Sess): You dial the recipient to make sure they are ready to receive.
  • Layer 4 (Trans): You register mail tracking and demand delivery receipt.
  • Layer 3 (Net): You write the global postal zip code.
  • Layer 2 (Data Link): You write the specific house street door number.
  • Layer 1 (Phys): The paper travels via optical fiber cable or delivery truck.

4Diagram / Visual Representation

7 · APPLICATION
HTTP · DNS · FTP · SMTP

6 · PRESENTATION
Encryption · Compression

5 · SESSION
Session management

4 · TRANSPORT
TCP · UDP · Segments

3 · NETWORK
IP · ICMP · Packets

2 · DATA LINK
MAC · Frames

1 · PHYSICAL
Bits · Cables · Signals

5Working / How It Works

  1. Data Encapsulation (Sender Side): Data originates at Layer 7 and moves down to Layer 1. Each layer attaches its own protocol header (PDU creation: Data →\rightarrow Segment →\rightarrow Packet →\rightarrow Frame →\rightarrow Bits).
  2. Physical Transmission: Layer 1 converts bits into electrical/optical signals over physical media.
  3. Data Decapsulation (Receiver Side): As bits arrive at the receiver, data moves up from Layer 1 to Layer 7, with each layer inspecting and stripping off its respective header before passing the payload upward.

6Types / Components / Characteristics

  1. Physical Layer (Layer 1): Transmits raw, unstructured bit streams over physical media (twisted-pair, fiber-optic, wireless).
  2. Data Link Layer (Layer 2): Transfers data frames between adjacent nodes. Functions include Frame synchronization, Flow control, Error control, Physical addressing (MAC), and Link management.
  3. Network Layer (Layer 3): Translates logical addresses to physical addresses and determines the best route (Routing). Functions include Routing, Logical addressing, Packetizing, Internetworking, and Fragmentation.
  4. Transport Layer (Layer 4): Ensures end-to-end message delivery and error checking. Offers Connection-oriented (TCP) and Connectionless (UDP) transmissions.
  5. Session Layer (Layer 5): Establishes, maintains, and terminates communication sessions between applications.
  6. Presentation Layer (Layer 6 / Translation Layer): Translates data formats, handles Data Compression, and performs Data Encryption/Decryption.
  7. Application Layer (Layer 7): Topmost layer allowing user applications to access network services (HTTP, DNS, SMTP, FTP).

7Solved Examples / Problems

Question: Map the following network functions to their exact OSI layer: (a) Encryption, (b) MAC addressing & framing, (c) Path selection / Routing, (d) Three-way handshake / End-to-end reliability.

Solution:

  • (a) Encryption →\rightarrow Layer 6 (Presentation Layer)
  • (b) MAC addressing & framing →\rightarrow Layer 2 (Data Link Layer)
  • (c) Path selection / Routing →\rightarrow Layer 3 (Network Layer)
  • (d) Three-way handshake / End-to-end reliability →\rightarrow Layer 4 (Transport Layer)

8Advantages, Disadvantages & Applications

  • Advantages: Provides a clear standard for hardware/software interoperability; simplifies network troubleshooting by isolating issues to specific layers.
  • Disadvantages: Theoretical model; actual commercial internet implementation uses the streamlined 4-layer TCP/IP model.

9Important Points to Remember

  • Mnemonic to remember layers bottom-to-top: Please Do Not Throw Sausage Pizza Away (Physical, Data Link, Network, Transport, Session, Presentation, Application).
  • Data Link Layer deals with Frames and MAC addresses.
  • Network Layer deals with Packets, IP addresses, and Routing.
  • Transport Layer deals with Segments and Port numbers.

10Test Your Understanding

  1. Multiple Choice: Which OSI layer is responsible for data compression and character code translation?
    • a) Application Layer
    • b) Presentation Layer
    • c) Session Layer
    • d) Transport Layer
    Show answer
    b) Presentation Layer.
  2. Short Answer: State the five primary functions of the Data Link Layer.

Finished this topic?

0 of 10 topics read in Computer Networks & Security

Handwritten notes for the exam

Unit-wise SPPU notes and PYQs for this subject.

Helpful? Share it with your class

Free for everyone, no login needed.

Share topic