logo

Layers of the OSI model

Here’s a detailed breakdown of the 7 OSI Model layers with functions and application examples:


1. Physical Layer

  • Function:
    • Handles the physical transmission of raw data bits over a medium (like cables or radio waves).
    • Defines hardware elements such as cables, switches, voltage levels, and data rates.
  • Key Responsibilities:
    • Data encoding and signaling
    • Transmission medium (wired or wireless)
    • Bit synchronization and error correction at the hardware level
  • Examples:
    • Ethernet cables (Cat5, Cat6)
    • Fiber optic cables
    • Wi-Fi (IEEE 802.11)
    • Network Interface Cards (NICs)
    • Hubs, Repeaters, USB

2. Data Link Layer

  • Function:
    • Ensures error-free data transfer between devices on the same network (local network).
    • Divides data into frames for easy management and handles MAC addressing.
  • Key Responsibilities:
    • Error detection and correction
    • Flow control to manage data speed
    • Organizes bits from the Physical layer into structured frames
  • Examples:
    • Switches (operate at Layer 2)
    • MAC (Media Access Control) addresses
    • VLAN (Virtual LAN)
    • PPP (Point-to-Point Protocol), ARP (Address Resolution Protocol), Ethernet

3. Network Layer

  • Function:
    • Manages routing and forwarding of data between networks.
    • Assigns logical addresses (like IP addresses) to identify devices globally.
  • Key Responsibilities:
    • Routing: Determining the best path for data
    • Logical addressing: IP addressing (IPv4/IPv6)
    • Packet forwarding: Moving data from source to destination
  • Examples:
    • Routers (operate at Layer 3)
    • IP (Internet Protocol) – IPv4, IPv6
    • ICMP (Internet Control Message Protocol) – used for diagnostics (like the ping command)
    • OSPF, BGP (routing protocols)

4. Transport Layer

  • Function:
    • Ensures end-to-end communication with reliable data transfer, error checking, and data flow control.
    • Breaks data into segments and reassembles them at the destination.
  • Key Responsibilities:
    • Reliable delivery using protocols like TCP (ensures data arrives correctly and in order)
    • Unreliable delivery with UDP (faster but no error checking)
    • Port addressing (e.g., HTTP uses port 80, HTTPS uses port 443)
  • Examples:
    • TCP (Transmission Control Protocol): Used for web browsing, emails, file transfers
    • UDP (User Datagram Protocol): Used for streaming, gaming, VoIP (where speed is more critical than reliability)
    • SSL/TLS (involves both Transport and Presentation layers for secure connections)

5. Session Layer

  • Function:
    • Manages sessions or connections between two devices, ensuring smooth data exchange.
    • Establishes, maintains, and terminates communication sessions.
  • Key Responsibilities:
    • Session control: Starting, managing, and ending sessions
    • Synchronization: Adding checkpoints for long data transfers (helps resume after failures)
    • Dialog control: Manages who can send data at a given time (full-duplex, half-duplex communication)
  • Examples:
    • Remote Desktop Protocol (RDP): For remote system access
    • NetBIOS (Network Basic Input/Output System): For file and printer sharing
    • SIP (Session Initiation Protocol): Used in VoIP calls to manage call setup and termination

6. Presentation Layer

  • Function:
    • Formats and translates data so that the application layer can understand it.
    • Handles encryption, decryption, compression, and data conversion between different systems.
  • Key Responsibilities:
    • Data translation: Converts data formats (e.g., from EBCDIC to ASCII)
    • Encryption/Decryption: For secure communication (e.g., HTTPS)
    • Data compression: To reduce file sizes for faster transmission
  • Examples:
    • SSL/TLS (Secure Sockets Layer / Transport Layer Security): For encrypting web traffic
    • JPEG, GIF, PNG: Image formats that require translation
    • MP4, AVI: Video file formats
    • ASCII, EBCDIC: Character encoding schemes

7. Application Layer

  • Function:
    • The closest layer to the user, providing interfaces for software applications to communicate over the network.
    • Facilitates user interaction with the network through applications.
  • Key Responsibilities:
    • Provides services like email, file transfers, web browsing, and DNS resolution
    • Interacts directly with end-user applications
  • Examples:
    • HTTP/HTTPS: For web browsing
    • FTP (File Transfer Protocol): For file transfers
    • SMTP/IMAP/POP3: For sending and receiving emails
    • DNS (Domain Name System): Translates domain names (like google.com) into IP addresses

Summary of OSI Model (7 Layers):

LayerKey FunctionExamples
Application (7)User interaction with network appsHTTP, FTP, SMTP, DNS
Presentation (6)Data translation, encryptionSSL/TLS, JPEG, MP4
Session (5)Session management between devicesRDP, SIP, NetBIOS
Transport (4)Reliable data transferTCP, UDP, SSL
Network (3)Routing, IP addressingIP, ICMP, Routers
Data Link (2)Error-free node-to-node transferMAC, Ethernet, Switches
Physical (1)Transmission of raw bitsCables, Hubs, Wi-Fi, NICs

logo

বিসিএস, ব্যাংক, শিক্ষক নিয়োগ, পিএসসি ও অন্যান্য চাকরির পরীক্ষার জন্য একটি সহায়ক প্লাটফর্ম।

Contact Us

Email: contact@openexamschool.com


© 2025 Open Exam School. All rights reserved. Developed By Nuton.