Difference between OSI and TCP IP model

Difference between OSI and TCP IP model

The differences between the OSI and TCP/IP models:

FeatureOSI ModelTCP/IP Model
Number of Layers7: Physical, Data Link, Network, Transport, Session, Presentation, Application.4: Network Access, Internet, Transport, Application.
PurposeTheoretical, for understanding networks.Practical, used in real-world networking (e.g., the internet).
DevelopmentBy ISO to standardize communication systems.By DARPA to connect military and academic networks.
Protocol DependencyProtocol-independent, abstract functionality.Protocol-specific, integrates TCP, IP, HTTP, etc.
ModularityHighly modular, easier to update.Less modular, layers depend on each other.
Layer FunctionsSeparate Session and Presentation layers.No separate Session/Presentation layers (handled in Application).
AddressingUses logical (IP) and physical (MAC) addressing.Uses real-world IP addresses and port numbers.
ExamplesEthernet, ATM (conceptual examples).HTTP, FTP, SMTP, TCP, IP (real-world examples).
ApproachTop-down: Application to Physical.Bottom-up: Network to Application.
RelevanceTeaching/reference model.Used in actual internet technologies.

Key Takeaways:

  • OSI = Reference model, 7 layers, teaching-oriented.
  • TCP/IP = Practical model, 4 layers, real-world networking.

Difference between OSI and TCP/IP modelsMCQ


Basic Structure

  1. How many layers does the OSI model have?
    a) 4
    b) 5
    c) 7
    d) 8
    Answer: c) 7
  2. Which of the following is a layer in the TCP/IP model but not in the OSI model?
    a) Network Access
    b) Presentation
    c) Session
    d) Physical
    Answer: a) Network Access
  3. Which OSI layer is responsible for translating and encrypting data?
    a) Session Layer
    b) Presentation Layer
    c) Application Layer
    d) Transport Layer
    Answer: b) Presentation Layer
  4. In the TCP/IP model, which layer corresponds to the OSI Application, Presentation, and Session layers?
    a) Transport
    b) Network
    c) Application
    d) Internet
    Answer: c) Application
  5. The TCP/IP model was developed by:
    a) ISO
    b) DARPA
    c) IEEE
    d) IETF
    Answer: b) DARPA

Purpose and Development

  1. Which model is primarily used as a reference for understanding networks?
    a) TCP/IP
    b) OSI
    c) Both
    d) Neither
    Answer: b) OSI
  2. Why was the OSI model developed?
    a) To implement internet technologies
    b) To standardize communication systems
    c) To replace TCP/IP
    d) For hardware design
    Answer: b) To standardize communication systems
  3. What was the main objective behind the development of the TCP/IP model?
    a) To create an abstract networking framework
    b) To enable communication between military and academic systems
    c) To ensure reliable hardware functionality
    d) To design hardware protocols
    Answer: b) To enable communication between military and academic systems

Protocol Dependency

  1. The OSI model is:
    a) Protocol-dependent
    b) Protocol-independent
    c) Application-specific
    d) Hardware-specific
    Answer: b) Protocol-independent
  2. Which model integrates specific protocols like TCP, IP, and UDP?
    a) OSI
    b) TCP/IP
    c) Both
    d) None
    Answer: b) TCP/IP

Flexibility and Modularity

  1. Which model is more modular and allows easier updates?
    a) OSI
    b) TCP/IP
    c) Both
    d) None
    Answer: a) OSI
  2. In the TCP/IP model, changes to one layer may affect:
    a) Only that layer
    b) The entire stack
    c) Only adjacent layers
    d) None of the layers
    Answer: b) The entire stack

Layer Functions

  1. Which of the following layers is NOT a part of the TCP/IP model?
    a) Application Layer
    b) Transport Layer
    c) Session Layer
    d) Internet Layer
    Answer: c) Session Layer
  2. Which OSI layer is responsible for maintaining connections and sessions?
    a) Application Layer
    b) Session Layer
    c) Presentation Layer
    d) Data Link Layer
    Answer: b) Session Layer
  3. The functions of the Presentation Layer in the OSI model are handled in the TCP/IP model by:
    a) Transport Layer
    b) Internet Layer
    c) Application Layer
    d) Data Link Layer
    Answer: c) Application Layer

Addressing and Examples

  1. Which type of addressing is used by the OSI model?
    a) Logical and Physical addressing
    b) Only Logical addressing
    c) Port numbers
    d) Domain names
    Answer: a) Logical and Physical addressing
  2. In the TCP/IP model, addressing includes:
    a) IP addresses and port numbers
    b) Only MAC addresses
    c) Only logical addresses
    d) Only domain names
    Answer: a) IP addresses and port numbers
  3. Which of the following protocols belongs to the TCP/IP model?
    a) Ethernet
    b) ATM
    c) HTTP
    d) Token Ring
    Answer: c) HTTP

Approach and Real-World Relevance

  1. The OSI model follows which approach?
    a) Bottom-up
    b) Top-down
    c) Hybrid
    d) None of the above
    Answer: b) Top-down
  2. Which model is widely implemented in the design of internet technologies?
    a) OSI
    b) TCP/IP
    c) Both
    d) None
    Answer: b) TCP/IP
  3. What is the primary use of the OSI model today?
    a) Designing internet protocols
    b) Teaching and as a reference model
    c) Replacing TCP/IP
    d) Developing real-world hardware
    Answer: b) Teaching and as a reference model