OSI and TCP-IP model

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

The OSI (Open Systems Interconnection) Model and the TCP/IP (Transmission Control

Protocol/Internet Protocol) Model are two conceptual frameworks that describe how different
network protocols interact to enable communication between devices over a network. While the OSI
model is more theoretical and provides a comprehensive view of how networks should function, the
TCP/IP model is more practical and closely mirrors the actual functioning of the internet. Below is a
detailed explanation of the OSI model and a comparison with the TCP/IP model.

OSI Model (Open Systems Interconnection)

The OSI model was developed by the International Organization for Standardization (ISO) in 1984 to
create a universal framework for data communication systems. It divides network functions into 7
layers, each with a specific role in the communication process.

Layer 1: Physical Layer

 Function: The physical layer deals with the transmission of raw binary data (bits) over a
physical medium, such as cables, fiber optics, or radio waves.

 Responsibilities:

o Specifies the electrical, mechanical, and procedural interface to the transmission


medium.

o Converts bits into electrical signals (or optical/light pulses in fiber optics) for
transmission.

o Handles physical hardware aspects like voltage levels, timing, pin layouts, and signal
encoding.

 Devices: Hubs, cables, repeaters, network interface cards (NICs).

Layer 2: Data Link Layer

 Function: Responsible for node-to-node data transfer, error detection and correction, and
flow control. It prepares data packets for transfer to the physical layer.

 Responsibilities:

o Breaks down packets into frames and handles their transmission.

o Error detection via Cyclic Redundancy Check (CRC).

o Ensures reliable transfer of frames between two adjacent nodes on the same
network.

o Manages physical addressing (MAC addresses).

 Sub-layers:

o Logical Link Control (LLC): Handles flow control, multiplexing, and error checking.

o Media Access Control (MAC): Manages access to the physical medium (controls how
devices in a network gain access to the data and permission to transmit).

 Devices: Switches, bridges, NICs.


Layer 3: Network Layer

 Function: Handles the routing of data packets between devices on different networks (inter-
networking). This is where logical addressing and routing occur.

 Responsibilities:

o Routing: Determines the best path for data to travel across multiple networks.

o Logical Addressing: Assigns IP addresses for devices.

o Fragmentation and Reassembly: Breaks down large packets into smaller ones and
reassembles them at the destination.

 Protocols: IP (Internet Protocol), ICMP (Internet Control Message Protocol).

 Devices: Routers, Layer 3 switches.

Layer 4: Transport Layer

 Function: Ensures reliable data transmission between host devices. It manages flow control,
error correction, and segmentation.

 Responsibilities:

o Segmentation: Breaks down data into smaller segments.

o Flow Control: Manages the rate of data transmission between the sender and
receiver.

o Error Correction: Ensures that lost or damaged segments are retransmitted.

o Port Addressing: Uses port numbers to ensure data is sent to the correct application.

 Protocols: TCP (Transmission Control Protocol), UDP (User Datagram Protocol).

 Devices: Gateways, firewalls.

Layer 5: Session Layer

 Function: Manages and controls the establishment, maintenance, and termination of


communication sessions between applications.

 Responsibilities:

o Session Management: Controls dialogues between computers, maintaining sessions


as long as needed.

o Synchronization: Implements checkpoints or synchronization points within a data


stream, ensuring communication can resume if interrupted.

o Session Termination: Gracefully closes sessions once communication is complete.

 Protocols: NetBIOS, PPTP (Point-to-Point Tunneling Protocol).

Layer 6: Presentation Layer

 Function: Responsible for the translation of data between the application layer and the
lower layers. It ensures that data is presented in a readable format for the application.
 Responsibilities:

o Data Translation: Converts data between different formats (e.g., from ASCII to
EBCDIC).

o Data Compression: Reduces the size of the data to optimize bandwidth usage.

o Data Encryption/Decryption: Ensures data security through encryption and


decryption.

 Protocols: SSL/TLS (Secure Sockets Layer / Transport Layer Security).

Layer 7: Application Layer

 Function: Provides network services directly to the user applications. It’s the closest layer to
the end-user and provides the interface between the user and the network.

 Responsibilities:

o Manages network services like file transfers, email, and remote access.

o Ensures that data is properly formatted for the end user’s application.

 Protocols: HTTP, FTP, SMTP, DNS, SNMP.

 Devices: Firewalls, proxies.

TCP/IP Model (Transmission Control Protocol / Internet Protocol)

The TCP/IP model, also known as the Internet Protocol Suite, was developed by the U.S. Department
of Defense to describe the protocols used in the internet. It is more practical and consists of 4 layers:

1. Link Layer (Network Interface Layer)

 Corresponds to both the Physical and Data Link layers in the OSI model.

 Function: Deals with the physical transmission of data, as well as MAC addressing and error
correction for data frames.

 Protocols: ARP (Address Resolution Protocol), Ethernet.

 Devices: Network adapters, switches, hubs.

2. Internet Layer

 Corresponds to the Network Layer in the OSI model.

 Function: Handles logical addressing (IP addresses) and routing, ensuring data is transferred
across multiple networks.

 Protocols: IP (IPv4/IPv6), ICMP, ARP.

 Devices: Routers, Layer 3 switches.

3. Transport Layer

 Directly maps to the Transport Layer of the OSI model.


 Function: Ensures reliable communication between devices by managing the segmentation
of data, flow control, and error checking.

 Protocols: TCP (ensures reliability), UDP (used for faster, connectionless communication).

 Devices: Gateways, firewalls.

4. Application Layer

 Combines the functions of the Session, Presentation, and Application layers from the OSI
model.

 Function: Provides protocols that applications use to interact with the network, and
manages session control, data formatting, and encryption.

 Protocols: HTTP, FTP, SMTP, DNS, SNMP, TLS/SSL.

 Devices: Firewalls, proxies.

Comparison of OSI Model vs. TCP/IP Model

Feature OSI Model TCP/IP Model

4 Layers (Link, Internet, Transport,


Layers 7 Layers (Physical to Application)
Application)

More practical and closely reflects


Conceptual vs More conceptual and theoretical, designed
real-world protocols used on the
Practical as a standard reference model
internet

Developed by ISO (International Standard Developed by the U.S. Department


Development
Organization) of Defense

Combines certain layers (e.g.,


Layering
Clearly separates each layer's functions Application includes Session and
Approach
Presentation)

Theoretically defines what protocols should Focuses on specific protocols used


Protocols
do at each layer for networking (e.g., TCP, IP)

Used as the foundation for the


Mainly used as a reference model for
Usage internet and networking
teaching and network design
technologies

Addressed at multiple layers (Data Link, Primarily handled in the Transport


Error Handling
Transport) layer (TCP)

More flexible, combining layers to


Flexibility More rigid layer separation
suit practical needs

Security OSI doesn’t have a dedicated security layer, Security mechanisms like SSL/TLS
Consideration though security mechanisms are part of are part of the Application layer
Feature OSI Model TCP/IP Model

various layers

Key Differences:

1. Number of Layers: The OSI model has 7 layers, while the TCP/IP model has 4 layers.

2. Layer Merging: The OSI model’s Application, Presentation, and Session layers are combined
into a single Application layer in the TCP/IP model.

3. Purpose: OSI is primarily a theoretical model used as a teaching tool, whereas TCP/IP is a
practical framework used in real-world networking, particularly the internet.

4. Protocol Orientation: TCP/IP model is protocol-specific (e.g., TCP, IP), whereas OSI is more
abstract and not tied to specific protocols.

5. Development History: OSI was developed by an international standards organization, while


TCP/IP was developed by the U.S. Department of Defense for the ARPANET, the predecessor
of the modern internet.

You might also like