Open In App

OSI and TCP/IP Model

Last Updated : 09 Dec, 2025
Comments
Improve
Suggest changes
44 Likes
Like
Report

OSI and TCP/IP are both logical models. One of the main similarities between the OSI and TCP/IP models is that they both describe how information is transmitted between two devices across a network.

frame_19

OSI Model

The OSI (Open Systems Interconnection) Model is a 7-layer conceptual framework used to understand and design network communication. Each layer has a clearly defined function and works independently of the others.

1. Physical Layer

Transmits raw bits over physical media.

  • Deals with cables, connectors, voltages, signals
  • Converts digital data into electrical/optical signals
  • Defines hardware specifications (NICs, hubs, repeaters)
  • Handles data rate, modulation, and physical topology

Provides reliable node-to-node data transfer.

  • Uses MAC addresses for device identification
  • Performs error detection and correction (Frame Check Sequence)
  • Breaks data into frames
  • Manages access to the physical medium (Ethernet, switches)

3. Network Layer

Handles logical addressing and routing of packets.

  • Uses IP addresses for routing decisions
  • Determines the best path to the destination
  • Manages packet forwarding and routing tables
  • Supports routers and Layer 3 protocols (IP, ICMP)

4. Transport Layer

Ensures reliable or fast delivery of data.

  • Uses TCP (reliable) and UDP (fast, connectionless)
  • Handles segmentation and reassembly of data
  • Provides flow control (sliding window)
  • Ensures error recovery and end-to-end communication

5. Session Layer

Establishes, manages, and terminates sessions.

  • Controls dialog between devices (duplex/half-duplex)
  • Maintains session checkpoints and recovery
  • Handles session authentication and reconnection
  • Used in RPC, SQL sessions, NetBIOS

6. Presentation Layer

Translates, encrypts, and formats data.

  • Converts data formats (encoding/decoding)
  • Applies encryption and decryption (SSL/TLS)
  • Handles compression for efficient transmission
  • Makes data readable for the application layer

7. Application Layer

Provides services to end-user applications.

  • Supports protocols like HTTP, FTP, SMTP, DNS
  • Provides network services such as email, web access, file transfer
  • Interacts directly with user applications
  • Identifies communication partners and resource availability

TCP/IP Model

The TCP/IP (Transmission Control Protocol/Internet Protocol) Model is a 5-layer practical networking framework used for real-world communication, especially on the Internet. It defines how data is packaged, addressed, transmitted, routed, and received across networks.

1. Physical Layer

Transmits raw bits over physical media.

  • Deals with physical hardware: cables, signals, connectors
  • Converts digital data into electrical/optical/radio signals
  • Defines data transmission rate and physical topologies
  • Supported devices include hubs, repeaters, and NICs

Provides node-to-node communication and framing.

  • Uses MAC addresses for device identification
  • Responsible for framing, error detection (FCS), and flow control
  • Handles access to the transmission medium (Ethernet, Wi-Fi)
  • Switches operate at this layer

3. Network (Internet) Layer

Handles logical addressing and packet routing.

  • Uses IP addressing (IPv4/IPv6)
  • Determines the best path to destination
  • Performs packet routing and fragmentation
  • Includes protocols: IP, ICMP, ARP, RARP

4. Transport Layer

Provides end-to-end communication and reliability.

  • Uses TCP for reliable, connection-oriented communication
  • Uses UDP for fast, connectionless, low-overhead delivery
  • Handles segmentation, sequencing, and reassembly
  • Provides error detection, correction, and flow control

5. Application Layer

Provides network services to end-user applications.

  • Supports protocols like HTTP, FTP, SMTP, DNS, DHCP, SNMP
  • Responsible for data formatting and communication services
  • Directly interacts with user applications
  • Handles resource sharing, remote file access, email, web browsing

Difference Between OSI Model and TCP/IP Model

Below are the main differences between OSI and TCP/IP model:

OSI ModelTCP/IP Model
7 layers: Physical, Data Link, Network, Transport, Session, Presentation, Application5 layers: Physical, Data Link, Network/Internet, Transport, Application
Separate Session layer manages connections/synchronizationNo separate Session layer; handled in Application layer
Presentation layer handles data formatting/encryptionData formatting/encryption done within Application layer
Theoretical model developed by ISO for standardizationPractical model developed by DoD for Internet use
Each layer strictly independent with clear interfacesLayers more integrated, less strict boundaries
No specific protocols defined, just functionsDefines specific protocols: TCP, UDP, IP, HTTP, etc.
Used as reference for teaching/network designActual protocol stack used by Internet globally
Developed before widespread Internet useDeveloped specifically for ARPANET/Internet implementation
Suggested Quiz
5 Questions

What does the Session Layer mainly provide?

  • A

    Encryption and Compression

  • B

    Dialog control and synchronization

  • C

    Address resolution

  • D

    Routing decision

Explanation:

Session Layer sets up, manages, and terminates sessions. Encryption/compression are done in the Presentation Layer.

Which OSI layer is also called the Translation Layer?

  • A

    Network Layer

  • B

    Presentation Layer

  • C

    Transport Layer

  • D

    Application Layer

Explanation:

The Presentation Layer translates formats (ASCII ↔ EBCDIC), handles encryption/decryption, and compression.

In the OSI model, the PDU (Protocol Data Unit) of the Transport Layer is:

  • A

    Frame

  • B

    Packet

  • C

    Segment/Datagram

  • D

    Bit

Explanation:
  • Physical = Bits
  • Data Link = Frames
  • Network = Packets
  • Transport = Segments (TCP) or Datagrams (UDP).

Which of the following is a key difference between OSI and TCP/IP models?

  • A

    TCP/IP has more layers than OSI

  • B

    OSI was designed before TCP/IP

  • C

    OSI is a theoretical framework, TCP/IP is practical

  • D

    TCP/IP does not support error handling

Explanation:

OSI has 7 layers and is used for learning and design, while TCP/IP (4 layers) is used in real networking.


Which TCP/IP layer is responsible for routing, addressing, and fragmentation?

  • A

    Application Layer

  • B

    Internet Layer

  • C

    Network Access Layer

  • D

    Transport Layer

Explanation:

The Internet Layer uses IP addressing and routing to forward packets between networks.

Quiz Completed Successfully
Your Score :   2/5
Accuracy :  0%
Login to View Explanation
1/5 1/5 < Previous Next >

Explore