› Module 2: Network Reference Models › 2.3 OSI vs TCP/IP — A Detailed Comparison
M O D U L E

Module 2: Network Reference Models

OSI 7-layer architecture, TCP/IP 4-layer model, encapsulation, and model comparison

2.1 The OSI Reference Model (7 Layers)

The Open Systems Interconnection (OSI) model, defined by the International Organization for Standardization (ISO), is a conceptual 7-layer architectural framework that decomposes computer communication into standardized, modular functional tiers.

Figure 2.1: The Seven Layers of the OSI Reference Model Layer 7: Application HTTP, DNS, SMTP, FTP Layer 6: Presentation Encryption (TLS), Compression, ASCII Layer 5: Session RPC, Sockets, Session Sync Layer 4: Transport TCP, UDP • Segments Layer 3: Network IP, ICMP, Routers • Packets Layer 2: Data Link MAC, Switches, Ethernet • Frames Layer 1: Physical Cables, Radio, Hubs • Bits Sender: Encapsulation ↓ Receiver: Decapsulation ↑

Figure 2.1: The 7-layer OSI model showing top-to-bottom encapsulation during transmission and bottom-up decapsulation upon receipt.

2.2 The TCP/IP Reference Model (4 Layers)

The TCP/IP Protocol Suite (Internet protocol model) was designed by DARPA and serves as the real-world operational architecture of the Internet. Rather than 7 theoretical layers, TCP/IP condenses functionality into 4 pragmatic layers.

Figure 2.2: The Four Layers of the TCP/IP Reference Model Application Layer HTTP, HTTPS, FTP, SMTP, DNS, SSH Transport Layer TCP (Reliable) • UDP (Fast Best-Effort) Internet Layer IPv4, IPv6, ICMP, ARP • Routing Network Access (Link) Layer Ethernet (802.3), Wi-Fi (802.11), PPP, Fiber

Figure 2.2: The four practical layers of the TCP/IP suite upon which the global Internet operates.

2.3 OSI vs TCP/IP — A Detailed Comparison

While the OSI model serves as the standard theoretical teaching tool, TCP/IP was deployed earlier in practice and became the de facto world standard.

Figure 2.3: Side-by-Side Mapping: 7 OSI Layers to 4 TCP/IP Layers OSI Model (7 Layers) 7. Application 6. Presentation 5. Session 4. Transport 3. Network 2. Data Link 1. Physical TCP/IP Model (4 Layers) Application Layer (Combines OSI L5, L6, L7) Transport Layer Internet Layer Network Access Layer (Combines OSI L1 & L2)

Figure 2.3: Direct layer-by-layer correspondence between the 7-layer OSI conceptual model and the 4-layer TCP/IP Internet suite.

MODULE COMPREHENSIVE QUIZ

Module 2 Final Quiz

Test your understanding across all 3 topics of this module with interview-grade questions, tricky edge cases, and code output predictions.

Take Module 2 Final Quiz →
Yukti Mascot