Skip to main content
CSNetworkingDiagramBeginner

OSI 7-Layer Model

KO: OSI 7계층 모델·EN: OSI 7-Layer Model·JA: OSI 7階層モデル·OSI

A conceptual 7-layer networking reference model from Physical (L1) to Application (L7) that modularizes protocols and structures fault isolation

Table of Contents

Structure Diagram

OSI 7-Layer Protocol Stack & EncapsulationTap a node
+Segment+Packet+Frame/BitL7-L5 App…L4 Transp…L3 Networ…L2-L1 Lin…
ROOTL7-L5 App (HTTP·DNS·TLS)
1 link
Quick Answer

What is OSI 7-Layer Model?

A conceptual 7-layer networking reference model from Physical (L1) to Application (L7) that modularizes protocols and structures fault isolation. It is a core concept in Networking within CS.

Core Principles

The OSI 7-Layer Model modularizes network communication into seven distinct responsibilities. Outbound data is wrapped with headers down the stack (encapsulation) and unwrapped upward on arrival (decapsulation).

  • L1–L2 (Physical & Data Link): Bits on wire/radio and local LAN MAC frames (Ethernet, Wi-Fi, Switches).
  • L3 (Network): Cross-network IP routing (IPv4/IPv6, Routers).
  • L4 (Transport): End-to-end ports and delivery guarantees (TCP, UDP).
  • L5–L7 (Session, Presentation, Application): TLS, serialization, HTTP, DNS, gRPC (merged as Application in TCP/IP).

Practical Takeaways

  • Layer-by-layer debugging: Isolate outages systematically—L2 link/ARP → L3 ping/traceroute → L4 nc port reachability → L7 curl -v HTTP/TLS.
  • L4 vs L7 Load Balancers: L4 forwards raw TCP/UDP streams at line rate; L7 inspects HTTP paths, hosts, and headers for smart routing.
  • Protocol independence: Swapping Ethernet for Wi-Fi (L2) leaves HTTP applications (L7) untouched.

Notable Examples

  • Cloud Load Balancing: AWS NLB (L4) vs ALB (L7).
  • Diagnostic Toolkit: arp (L2), traceroute (L3), ss (L4), curl & Wireshark (L7).