Detailed Comparison of TCP/IP and OSI Model

 

Detailed Comparison of TCP/IP and OSI Model

Introduction

The two most important networking models are:

  1. OSI Model
  2. TCP/IP Protocol Suite

Both models use layered architecture to describe network communication, but they differ in:

  • Design
  • Number of layers
  • Purpose
  • Protocol implementation

The OSI model is mainly a reference model, while TCP/IP is the practical protocol suite used in the Internet.


Basic Overview

FeatureOSI ModelTCP/IP Model
Developed By      ISO         DARPA/DoD
Full Form    Open Systems Interconnection        Control Protocol / Internet                           
Type    Reference model        Protocol suite
Number of Layers    7            5 (or originally 4)
Main Purpose    Standardization and             understanding        Practical Internet communication
Usage    Educational/reference        Real-world networking

Layers of Both Models


OSI Model           TCP/IP Model
Application           Application
Presentation          Application
Session                 Application
Transport              Transport ( TCP)
Network                Network ( IP)
Data Link              Data Link
Physical                Physical

Layer-by-Layer Comparison


1. Application Layer

OSI Model

The OSI model separates upper-layer functions into:

  • Application layer
  • Presentation layer
  • Session layer

Functions

  • User services
  • Data formatting
  • Encryption/decryption
  • Session management

TCP/IP Model

TCP/IP combines all these functions into a single:

Application Layer

Reason

TCP/IP designers believed:

  • These functions can be handled by application software itself.
  • Different applications may require different implementations.

2. Presentation Layer (OSI Only)

Function

Responsible for:

  • Data translation
  • Encryption
  • Compression

In TCP/IP

No separate presentation layer exists.

These functions are handled:

  • Inside application programs
  • Or by application protocols

Example

  • HTTPS encryption
  • JPEG image encoding

3. Session Layer (OSI Only)

Function

Responsible for:

  • Session establishment
  • Session maintenance
  • Session termination
  • Dialog control

In TCP/IP

No separate session layer exists.

Some session functions are provided by:

  • TCP
  • Application software

4. Transport Layer

OSI Transport Layer

Provides:

  • End-to-end delivery
  • Flow control
  • Error control

TCP/IP Transport Layer

Provides similar functions using:

  • TCP
  • UDP
  • SCTP

TCP

  • Connection-oriented
  • Reliable

UDP

  • Connectionless
  • Faster but less reliable

5. Network Layer

OSI Network Layer

Responsible for:

  • Routing
  • Logical addressing

TCP/IP Network Layer

Performs:

  • Host-to-host communication
  • Routing using IP

Main Protocol

  • IP

6. Data-Link Layer

Both Models

Responsible for:

  • Framing
  • MAC addressing
  • Error detection
  • Link-level communication

7. Physical Layer

Both Models

Responsible for:

  • Transmission of bits
  • Electrical/optical signaling
  • Physical media

Architectural Differences

OSI ModelTCP/IP Model
Strictly layered    More flexible
Clear separation of services, interfaces, and protocols    Less strict separation
Protocol-independent    Protocol-oriented
Designed before protocols    Protocols existed before model


Conclusion

The OSI model is mainly a theoretical framework used for understanding network communication, whereas the TCP/IP model is a practical protocol suite used for real Internet communication.The OSI model is a seven-layer conceptual framework for understanding networking, while the TCP/IP model is a five-layer practical protocol suite used in the Internet. TCP/IP combines the application, presentation, and session layers of OSI into a single application layer.

Comments

Popular posts from this blog

Computer Networks PCCST501 Semester 5 KTU CS 2024 Scheme - Dr Binu V P

Introduction to Computer Networks

Introduction to Local Area Network (LAN)