Skip to Calculator
/24
Subnet Calculator
Networking Basics•10 min read•October 10, 2026

What is the OSI Model? Complete 7 Layers Explained

Master the 7-layer OSI Model from Physical to Application Layer. Understand Protocol Data Units (PDUs), packet encapsulation, and networking hardware.

IP
By Network Engineering Team

1. Introduction to the OSI Model

The Open Systems Interconnection (OSI) Model is a conceptual framework published in 1984 by the International Organization for Standardization (ISO 7498). It characterizes and standardizes the communication functions of a telecommunication or computing system without regard to its underlying internal structure and technology.

In the early days of computing (1970s–1980s), computer networks were proprietary silos. IBM mainframes ran SNA (Systems Network Architecture), DEC computers ran DECnet, and Apple Macintosh networks ran AppleTalk. These systems could not communicate with one another. The OSI model established a vendor-agnostic 7-layer architecture, allowing engineers from different organizations and hardware vendors to build interoperable networking components.

How to Remember the 7 Layers (Mnemonics)

Engineers commonly memorize the layers using two popular mnemonics:

2. Master Summary: The 7 Layers at a Glance

Layer  Layer Name      PDU (Unit)  Primary Hardware        Key Protocols
─────  ──────────      ──────────  ────────────────        ─────────────
L7     Application     Data        Gateway, Proxy, WAF     HTTP/HTTPS, DNS, SSH, SMTP
L6     Presentation    Data        Operating System, TLS   TLS/SSL, JSON, gzip, ASCII
L5     Session         Data        OS, Network Sockets     RPC, NetBIOS, SIP, SOCKS
L4     Transport       Segment     Firewall, L4 Balancer   TCP, UDP, QUIC, SCTP
L3     Network         Packet      Router, Layer 3 Switch  IPv4, IPv6, ICMP, BGP, OSPF
L2     Data Link       Frame       Switch, Bridge, NIC     Ethernet, Wi-Fi, ARP, VLAN
L1     Physical        Bits        Hub, Transceiver, Cable Fiber, RJ45 Cat6, PAM4, RF

3. Layer-by-Layer Breakdown: Layer 1 through Layer 7

Layer 1: The Physical Layer (Bits)

The Physical Layer is responsible for the physical transmission of unstructured raw data bits (0s and 1s) across a physical transmission medium. It specifies electrical, optical, radio frequency, and mechanical interfaces.

Layer 2: The Data Link Layer (Frames)

The Data Link Layer provides node-to-node data transfer across a single physical link or local area network (LAN) segment. It handles framing, physical hardware addressing, and local error detection.

Layer 3: The Network Layer (Packets)

The Network Layer enables host-to-host routing and forwarding across multiple interconnected independent networks (the Internet). It abstracts physical hardware addresses into logical hierarchical network addresses.

Layer 4: The Transport Layer (Segments & Datagrams)

The Transport Layer provides transparent, end-to-end data transfer between specific software processes running on distinct hosts. It introduces the concept of Port Numbers (0 to 65,535) to multiplex simultaneous network conversations on a single machine.

Layer 5: The Session Layer (Data)

The Session Layer manages dialogues and connections (sessions) between local and remote applications. It sets up, maintains, synchronizes, and terminates active communication streams.

Layer 6: The Presentation Layer (Data)

The Presentation Layer (often referred to as the syntax layer) formats and translates data between the application layer format and the network format. It ensures that data sent from one system's application layer is completely readable by another system.

Layer 7: The Application Layer (Data)

The Application Layer directly interfaces with human users and software applications. It provides communication services, protocols, and standard APIs that web browsers, email clients, and cloud servers interact with.

4. Encapsulation & De-Encapsulation in Action

When you load a webpage, data travels down through the layers on your computer (Encapsulation), crosses physical cables, and travels up through the layers on the server (De-encapsulation):

Sending Device (Encapsulation):
[L7 Application]  HTTP GET /index.html
      ▼
[L6 Presentation] TLS Encryption + Brotli Compression
      ▼
[L5 Session]      Session Token & Socket ID
      ▼
[L4 Transport]    TCP Header (Source Port: 52410, Dest Port: 443)  ──► Segment
      ▼
[L3 Network]      IP Header (Source IP: 192.168.1.5, Dest IP: 104.21.52.12) ──► Packet
      ▼
[L2 Data Link]    Ethernet Header (Source MAC, Dest MAC) + FCS CRC  ──► Frame
      ▼
[L1 Physical]     Laser light pulses / electrical voltages          ──► Bits

~~~~~~~~~~~~~~~~~~~~ Physical Undersea Fiber / Cables ~~~~~~~~~~~~~~~~~~~~

Receiving Server (De-Encapsulation):
Bits (L1) ──► Frame (L2) ──► Packet (L3) ──► Segment (L4) ──► Data (L5-L7)

5. The Practical Rule: How Engineers Use OSI for Troubleshooting

The greatest daily utility of the OSI model for network engineers and sysadmins is systematic, bottom-up fault isolation:

  1. Layer 1 Check: Is the ethernet cable plugged in? Is the fiber optic link light green? Is the wireless interface enabled?
  2. Layer 2 Check: Is the switch port up? Do we see the local router's MAC address in arp -a? Is the VLAN configured properly?
  3. Layer 3 Check: Do we have an IP address and valid subnet mask? Can we ping the local default gateway? Can we ping an external IP (ping 8.8.8.8)?
  4. Layer 4 Check: Is the TCP port open and listening? Test with curl -v, nc -zv <ip> 443, or telnet. Is a firewall blocking SYN packets?
  5. Layer 6 Check: Is the TLS/SSL certificate valid? Did the cryptographic handshake fail with a cipher mismatch?
  6. Layer 7 Check: Does the web server return an HTTP 200, 404, or 502 Bad Gateway? Is the application process running?

By diagnosing issues from Layer 1 upward, network engineers avoid wasting hours troubleshooting application code when an unplugged patch cable or misconfigured subnet mask was the culprit all along.

Tags:#OSI Model#Networking Basics#Layer 1 to 7#TCP/IP#Packets#Network Protocols#CCNA

⚡Ready to calculate subnets?

Use our interactive IPv4/IPv6 Subnet Calculator with live 32-bit register analysis, CIDR charts, and VPC carvers.

Open Subnet Calculator →

Related Engineering Guides