❖ Key Points on the OSI Model:
• OSI Model: Stands for Open Systems Interconnection.
• Developed by: The International Organization for Standardization
(ISO) in 1984.
• Purpose: Provides a framework for understanding how data is
transmitted across networks in a structured, layered approach.
• Structure: The OSI model is divided into 7 layers, each responsible
for distinct network functions and designed to work together to
facilitate data transmission between computers globally.
❖ OSI Model Layers (Top-Down Order):
1. Physical Layer
2. Data Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
❖ Physical Layer (Layer 1) Summary:
• Position: Lowest layer of the OSI model.
• Primary Role: Manages the actual physical connection between
devices.
• Data Form: Bits.
• Functions:
Bit Synchronization: Synchronizes bits between sender and
receiver using a clock.
Bit Rate Control: Sets the transmission rate (bits per second).
Physical Topologies: Defines network layout types (e.g., bus,
star, mesh).
Transmission Modes: Specifies data flow modes (Simplex,
Half-duplex, Full-duplex).
• Devices: Includes hubs, repeaters, modems, and cables.
• Lower Layers: Network Layer, Data Link Layer, and Physical Layer
are collectively known as Lower Layers or Hardware Layers.
❖ Data Link Layer (DLL) – Layer 2 Summary:
• Role: Ensures error-free node-to-node message delivery over the
physical layer.
• Functions:
o Framing: Defines frames by adding special bit patterns at start
and end.
o Physical Addressing: Adds MAC addresses of sender/receiver
in frame headers.
o Error Control: Detects and retransmits damaged/lost frames.
o Flow Control: Synchronizes data rates between sender and
receiver to prevent corruption.
o Access Control: The MAC sub-layer manages device access to
shared communication channels.
• Sublayers:
1. Logical Link Control (LLC)
2. Media Access Control (MAC)
• Data Flow:
o Frames contain MAC addresses obtained via ARP requests.
o Network layer packets are divided into frames by DLL based on
NIC frame size.
• Devices: Switches and bridges operate at this layer.
• Notes:
o Packet at the Data Link Layer is called a Frame.
o Managed by NIC and device drivers.
❖ Network Layer – Layer 3 Summary:
• Role: Manages data transmission between hosts on different
networks and selects the shortest path for packet routing.
• Functions:
o Routing: Determines the best path for packet travel from
source to destination.
o Logical Addressing: Assigns unique IP addresses to the
sender and receiver in the packet header for universal
identification.
• Notes:
o The data unit at the Network Layer is called a Packet.
o Routers and some switches operate at this layer.
❖ Transport Layer – Layer 4 Summary:
• Role: Provides end-to-end data delivery, error checking, and flow
control, ensuring complete message delivery between applications.
• Data Unit: Segments.
• Functions:
o Segmentation and Reassembly: Breaks down and
reassembles messages, adding headers for each segment.
o Service Point Addressing: Uses port addresses (e.g., port 80
for web servers) to direct data to the correct application.
• Services:
1. Connection-Oriented Service: Three phases – Connection
Establishment, Data Transfer, and Termination, with
acknowledgments for secure and reliable transmission.
2. Connectionless Service: Data Transfer without
acknowledgments, allowing faster, less secure
communication.
• Notes:
o Managed by the Operating System and interacts with the
Application Layer via system calls.
o Known as the "Heart" of the OSI model.
o Devices/Protocols: TCP, UDP, NetBIOS, PPTP.
❖ Session Layer – Layer 5 Summary:
• Role: Manages connection establishment, session maintenance,
authentication, and security.
• Functions:
o Session Establishment, Maintenance, and Termination:
Enables connection creation, usage, and termination between
processes.
o Synchronization: Adds checkpoints for error detection and re-
synchronization to prevent data loss.
o Dialog Controller: Supports half-duplex or full-duplex
communication modes.
• Notes:
o Combined with the Presentation and Application Layers into a
single Application Layer in the TCP/IP model.
o These layers are integrated into network applications and known
as Upper or Software Layers.
o Devices/Protocols: NetBIOS, PPTP.
Example: In a messaging application, the Session Layer maintains the
session, handles secure data encryption, and converts data into bits for
transmission.
❖ Presentation Layer – Layer 6 Summary:
• Role: Known as the Translation Layer; extracts and formats data
from the Application Layer for network transmission.
• Functions:
o Translation: Converts data formats, e.g., ASCII to EBCDIC.
o Encryption/Decryption: Secures data using a key for
encryption (ciphertext) and decryption (plain text).
o Compression: Reduces data size for efficient network
transmission.
• Notes:
o Devices/Protocols: Common protocols include JPEG,
MPEG, and GIF.
❖ Application Layer – Layer 7 Summary:
• Role: Top layer of the OSI model; implemented by network
applications that generate data for transfer and provide user access
to network services.
• Examples: Browsers, Skype Messenger.
• Alternate Name: Also referred to as the Desktop Layer.
• Key Protocol: SMTP (Simple Mail Transfer Protocol) for sending
and relaying email messages.
• Functions:
o Network Virtual Terminal: Enables user login to a remote
host.
o FTAM (File Transfer Access and Management):
Facilitates file access, retrieval, and management on a remote
host.
o Mail Services: Provides email functionality.
o Directory Services: Offers access to distributed database
sources for global information on various objects and
services.
• Note: The OSI model serves as a reference model and is not used on
the Internet; the prevailing model is the TCP/IP model.
❖ Comparing the OSI Model to the TCP/IP Model
• The TCP/IP model evolved faster and is more practical for network
communication.
• OSI model details functions at the upper layers (application,
presentation, session) in hosts, while networking functions are
mainly in the lower layers.
• In the TCP/IP model:
o The application, presentation, and session layers of OSI are
combined into a single application layer.
o Transport and network layers remain distinct, with TCP at the
transport layer and IP at the Internet layer.
o Data link and physical layers of OSI merge into the network
access layer in TCP/IP.
This covers the essential points comparing OSI and TCP/IP models.
Comparing the OSI and TCP/IP Models