CampusFlow
EssentialLayer 1–7

OSI Model

The Open Systems Interconnection (OSI) model is a conceptual framework that standardizes network communication into 7 distinct layers. Each layer has specific responsibilities and communicates with adjacent layers.

Try Simulation

Memory Trick (Top → Bottom)

All People Seem To Need Data Processing

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

L7

Application Layer

PDU: Data

Provides network services directly to end-user applications. This is the layer users interact with.

Protocols

HTTPHTTPSFTPSMTPDNSDHCPTelnetSSH

Key Functions

  • File transfer
  • Email
  • Web browsing

Devices

Web browsersEmail clientsFTP clients
L6

Presentation Layer

PDU: Data

Translates data between application and network formats. Handles encryption, compression and encoding.

Protocols

SSL/TLSJPEGMPEGASCIIEBCDICGIF

Key Functions

  • Data translation
  • Encryption/Decryption
  • Compression

Devices

GatewaysRedirectors
L5

Session Layer

PDU: Data

Manages sessions between applications. Establishes, maintains and terminates communication sessions.

Protocols

NetBIOSRPCPPTPSAPL2TP

Key Functions

  • Session establishment
  • Session maintenance
  • Session termination

Devices

Gateways
L4

Transport Layer

PDU: Segment (TCP) / Datagram (UDP)

Provides end-to-end communication, error recovery and flow control between hosts.

Protocols

TCPUDPSCTPSPX

Key Functions

  • Segmentation
  • Flow control
  • Error control

Devices

GatewaysLoad balancers
L3

Network Layer

PDU: Packet

Handles logical addressing and routing of packets between different networks.

Protocols

IPICMPOSPFBGPRIPARP

Key Functions

  • Logical addressing (IP)
  • Routing
  • Path determination

Devices

RoutersLayer-3 switches
L2

Data Link Layer

PDU: Frame

Provides node-to-node data transfer and handles error detection in the physical layer.

Protocols

EthernetWi-Fi (802.11)PPPHDLCFrame Relay

Key Functions

  • MAC addressing
  • Error detection (CRC)
  • Flow control

Devices

SwitchesBridgesNICs
L1

Physical Layer

PDU: Bits

Transmits raw bits over a physical medium. Defines electrical, mechanical and timing specifications.

Protocols

Ethernet (physical)USBBluetoothDSLSONET

Key Functions

  • Bit transmission
  • Physical topology
  • Signal encoding

Devices

HubsRepeatersCablesModems

OSI vs TCP/IP Model

FeatureOSI ModelTCP/IP Model
Layers7 layers4 layers
TypeReference/ConceptualPractical/Implementation
Developed byISO (1984)DARPA (1970s)
UsageTeaching & troubleshootingInternet communication
Transport protocolsTCP, UDP, SCTPTCP, UDP
Session & PresentationSeparate layers (5 & 6)Merged into Application

Viva / Interview Questions

Q: What does OSI stand for?

Open Systems Interconnection

Q: Which layer is responsible for routing?

Network Layer (Layer 3)

Q: What PDU does the Transport layer use?

Segment (TCP) or Datagram (UDP)

Q: Which layer handles encryption?

Presentation Layer (Layer 6)

Q: What devices operate at Layer 2?

Switches and Bridges

Q: What is the mnemonic for OSI layers (top to bottom)?

All People Seem To Need Data Processing