You are on page 1of 19

Networking Models

Networking models are conceptual frameworks that define how data is transmitted and
communicated between devices in a computer network.
These models provide a structured approach to understanding and implementing network
communication.
Two of the most widely recognized networking models are the OSI (Open Systems
Interconnection) model and the TCP/IP (Transmission Control Protocol/Internet Protocol)
model.

Open Systems Interconnection (OSI) model


The OSI model is a conceptual framework that standardizes the functions and interactions of a
computer network into seven distinct layers.
 It was developed by the International Organization for Standardization (ISO) to facilitate
communication between different computer systems and devices, ensuring
interoperability and compatibility.

 Each layer in the OSI model performs specific tasks, and these layers work together to
enable data communication between devices in a network.

 Here's the seven layers of OSI model layer, from the top (Layer 7) to the bottom (Layer 1):
 Application Layer (Layer 7)
 Presentation Layer (Layer 6):
 Session Layer (Layer 5):
 Transport Layer (Layer 4):
 Network Layer (Layer 3):
 Data Link Layer (Layer 2):
 Physical Layer (Layer 1):
Application Layer of OSI model
 The Application Layer is the top layer of the OSI model, and its primary role is to provide a
user-friendly interface for software applications to access network services and resources.
 Here's a summary of the functions of the Application Layer:

1. User Interface: It serves as an interface between software applications and the lower
layers of the OSI model, enabling applications to interact with network services.

2. Network Services: The Application Layer offers various network services and protocols that
applications use for tasks such as file transfer, email, web browsing, and more.

3. Application Protocols: It defines specific protocols like HTTP, SMTP, FTP, and others that
govern communication between applications over the network.

4. User Authentication: It provides mechanisms for user authentication and authorization,


ensuring that only authorized users can access network resources.
Interoperability: The Application Layer standardizes communication between applications,
making it possible for diverse systems to work together seamlessly.

The Presentation Layer


 The Presentation Layer is one of the seven layers of the OSI model, and its primary function
is to manage data format translation and data encryption and decryption.
 Here's a summary of the functions of the Presentation Layer:

1. Data Translation: The Presentation Layer is responsible for translating data between the
application layer and the lower layers of the OSI model.
 It deals with issues related to data formats, character encoding, and data conversion.
 This ensures that data from different applications with different data formats can be
exchanged and understood across the network.

2. Data Encryption and Decryption: This layer handles data encryption for secure
communication. It can encrypt data before transmission and decrypt it upon receipt, ensuring
that data remains confidential and secure while traversing the network.
3. Compression: The Presentation Layer can also compress data to reduce the amount of data
transmitted over the network, optimizing bandwidth usage and improving network efficiency.

4. Data Syntax: It defines the syntax for data structures and encoding rules, ensuring that data
is properly formatted and can be correctly interpreted by receiving systems.

5. Character Encoding: This layer deals with character sets and encoding schemes, such as
ASCII, Unicode, and EBCDIC, to ensure that text and character data is correctly represented
and interpreted across different systems.

The Session Layer


 The Session Layer is one of the seven layers of the OSI model, serving as the fifth layer from
the bottom.
 Its primary purpose is to establish, manage, and terminate communication sessions
between devices on a network.
Here's a summary of the functions of the Session Layer:
1. Session Establishment and Termination: The Session Layer is responsible for initiating and
closing communication sessions between devices or applications on a network. A session
refers to a logical connection established between two devices to exchange data.

2. Session Management: Once a session is established, this layer manages it throughout its
lifetime. It ensures that data exchange occurs smoothly and oversees tasks like
synchronization and checkpointing to facilitate reliable communication.

3. Dialog Control: The Session Layer allows for full-duplex (two-way) or half-duplex (one-way
at a time) communication. It manages the dialog between devices, deciding which device can
transmit data at any given moment.

4. Session Identification: The Session Layer assigns unique session IDs or handles to each
communication session, making it possible to differentiate and manage multiple concurrent
sessions.
The Transport Layer
 The Transport Layer is one of the seven layers of the OSI model, situated just above the
Session Layer and below the Network Layer.
 Its primary role is to provide end-to-end communication and data transfer services for
applications running on different devices.
 Here's an overview of the functions of the Transport Layer:

1. End-to-End Communication: The Transport Layer facilitates end-to-end communication


between two devices on a network, ensuring that data is reliably delivered from the sender
to the receiver.
 It abstracts the underlying network complexities, making it easier for applications to
exchange data.

2. Segmentation and Reassembly: The Transport Layer breaks down large messages from the
Application Layer into smaller segments for transmission and reassembles them at the
receiving end.
 This segmentation is important for efficient data transfer and for accommodating network
constraints.
3. Error Detection and Correction: It is responsible for error detection and correction
mechanisms. This layer can check for errors in the received data and request retransmission of
any lost or corrupted segments.

4. Flow Control: The Transport Layer manages the flow of data between sender and receiver to
prevent congestion and ensure efficient data transfer. Flow control mechanisms prevent the
sender from overwhelming the receiver with data.

5. Reliability: It offers reliability through mechanisms like acknowledgment and


retransmission. When data is sent, the sender expects an acknowledgment from the receiver.
If no acknowledgment is received, the sender retransmits the data, ensuring data integrity.

6. Port Addressing: The Transport Layer uses port numbers to differentiate between multiple
applications running on the same device. These port numbers help direct data to the
appropriate application on the receiving device.
7. Transport Layer Protocols: Common Transport Layer protocols include TCP (Transmission
Control Protocol) and UDP (User Datagram Protocol).
 TCP provides connection-oriented, reliable communication, while UDP offers connectionless,
less reliable communication but lower overhead.

8. Multiplexing and Demultiplexing: Multiplexing involves combining data from multiple


applications into a single data stream for transmission.
 Demultiplexing is the process of separating incoming data streams to deliver them to the
correct application.

The Network Layer


 The Network Layer is one of the seven layers of the OSI model, situated just above the Data
Link Layer and below the Transport Layer.
 Its primary function is to facilitate the routing of data packets across interconnected
networks, allowing data to be transmitted from the source device to the destination device.
 Here's a summary of the Network Layer:
1. Routing: The Network Layer is responsible for routing data packets from the source device
to the destination device in the most efficient and appropriate way. It makes routing decisions
based on network topology, addresses, and routing algorithms.

2. Logical Addressing: Devices on a network are assigned logical addresses, often referred to
as IP (Internet Protocol) addresses. These addresses are used by the Network Layer to identify
the source and destination of data packets.

3. Packet Forwarding: The Network Layer divides data into packets, which are small,
manageable units for transmission. It adds headers to these packets, including source and
destination IP addresses, to facilitate their movement through the network.

4. Path Determination: This layer determines the optimal path for data packets to reach their
destination. Routing algorithms, like OSPF (Open Shortest Path First) and BGP (Border
Gateway Protocol), are used to make these decisions.
5. Packet Switching: In packet-switched networks, like the Internet, data packets are
independently routed from source to destination. The Network Layer ensures that packets are
correctly forwarded along their path and reassembled at the destination.

6. Subnetting: The Network Layer supports the concept of subnets, allowing networks to be
divided into smaller, more manageable segments. Subnetting improves network efficiency and
organization.

7. Error Handling: It may include error detection mechanisms to identify and discard or
request retransmission of erroneous packets.

8. Quality of Service (QoS): The Network Layer can also implement QoS features to prioritize
certain types of traffic, ensuring that critical data, like voice or video, receives preferential
treatment in terms of bandwidth and latency.

9. Network Layer Protocols: The primary protocol used at the Network Layer is IP (Internet
Protocol). There are two versions in common use today: IPv4 and IPv6. Additionally, ICMP
(Internet Control Message Protocol) is used for error reporting and diagnostics.
 The Data Link Layer is one of the seven layers of the OSI model, positioned just above the
Physical Layer and below the Network Layer.
 It plays a crucial role in ensuring reliable point-to-point and point-to-multipoint
communication over a physical network medium.
 Here's a summary of the functions of Data Link Layer:

1. Frame Encapsulation: The Data Link Layer encapsulates network layer packets into frames.
These frames contain control information, error checking, and the actual data payload for
transmission over the physical medium.

2. MAC Addressing: Each device connected to a network at this layer is assigned a unique
Media Access Control (MAC) address. The Data Link Layer uses MAC addresses to identify and
address devices within the same local network segment.

3. Error Detection and Correction: This layer includes error-checking mechanisms to detect
and, in some cases, correct errors in data frames. Common error detection techniques include
CRC (Cyclic Redundancy Check).
4. Flow Control: Flow control mechanisms are used to manage the rate of data transmission
between devices to prevent overwhelming the receiver. Flow control can be achieved through
techniques like buffering, acknowledgments, and windowing.

5. Media Access Control: The Data Link Layer manages access to the shared physical medium in
networks where multiple devices contend for transmission rights. Protocols like CSMA/CD
(Carrier Sense Multiple Access with Collision Detection) and CSMA/CA (Carrier Sense Multiple
Access with Collision Avoidance) are used for medium access control.

6. Frame Addressing: In addition to MAC addresses, frames often include source and
destination addresses, allowing devices to determine if a received frame is intended for them.

7. Error Handling: When errors are detected, the Data Link Layer may request retransmission
of frames, ensuring the reliability of data transmission.

8. Ethernet: Ethernet is one of the most common Data Link Layer technologies, used in wired
LANs (Local Area Networks) for connecting devices within the same physical network segment.
10. Wireless Data Link Layer: In wireless networks, this layer manages unique challenges
related to the medium's nature, including signal interference and collision avoidance. Wi-Fi is
a widely used wireless Data Link Layer technology.

11. Switching: Data Link Layer switches operate at this layer and use MAC addresses to
forward frames between devices within the same network segment.

The Physical Layer


 The Physical Layer is the lowest and foundational layer in the OSI model, responsible for
the actual transmission of raw binary data over a physical medium.
 It deals with the physical characteristics of the network, including the electrical,
mechanical, and functional aspects. Here's a summary of the Physical.

1. Physical Medium: This layer defines the physical medium through which data is
transmitted, whether it's copper wires, fiber optic cables, wireless signals, or any other
transmission medium. It specifies how data is transmitted as electrical or optical signals.
2. Physical Topology: It describes the physical arrangement of devices and cables in the
network, including the topology (e.g., bus, star, ring) and the physical connections between
devices.

3. Bit Encoding: The Physical Layer determines how binary data (0s and 1s) are represented as
physical signals. This includes modulation techniques for analog signals and encoding schemes
for digital signals.

4. Signal Transmission: It specifies the voltage levels, frequencies, and waveforms used to
transmit data over the physical medium. This layer is concerned with ensuring that the signals
are robust and can travel the required distance without significant degradation.

5. Transmission Rate: The Physical Layer defines the data transmission rate (bit rate or baud
rate), which indicates how many bits can be transmitted per unit of time. It sets the maximum
achievable data rate for a given medium.
6. Transmission Mode: This layer specifies the transmission mode, which can be simplex (one-
way transmission), half-duplex (two-way, but only one direction at a time), or full-duplex (two-
way simultaneous transmission).

7. Physical Connectors and Pinouts: It defines the types of connectors, cables, and physical
interfaces used for connecting devices to the network medium. Examples include Ethernet
connectors, USB connectors, and RJ45 connectors.

8. Signal Regeneration: In long-distance communication, the Physical Layer may include signal
repeaters or amplifiers to boost the strength of signals and extend transmission distances.

9. Error Detection: Some error detection mechanisms, such as parity bits, may be
implemented at this layer to detect simple transmission errors.
TCP/IP Model

 The TCP/IP (Transmission Control Protocol/Internet Protocol) model is a networking model


that provides a practical framework for the design and implementation of the Internet and
most modern networking systems.
 Unlike the OSI model, which has seven layers, the TCP/IP model consists of four layers, each
responsible for specific functions in data communication.

 Here are the four layers of the TCP/IP model, from top to bottom:

1. Application Layer:
 The top layer of the TCP/IP model is similar to the OSI's Application Layer.
 It interacts directly with end-user applications and provides various application-level
protocols and services.
 Examples of protocols and services at this layer include HTTP (web browsing), FTP (file
transfer), SMTP (email), and DNS (domain name resolution).
2. Transport Layer:
 This layer is responsible for end-to-end communication and data flow control.
 It ensures the reliable delivery of data between devices and may use either the TCP
(Transmission Control Protocol) or UDP (User Datagram Protocol) depending on the
requirements.
 TCP provides reliable, connection-oriented communication with error checking and
correction, while UDP offers connectionless, faster data transmission.

3. Internet Layer:
 The Internet Layer corresponds to the OSI Network Layer.
 Its primary function is to handle routing and forwarding of data packets across different
networks.
 The Internet Protocol (IP) is the primary protocol at this layer and is responsible for
addressing and packet routing.
4. Link Layer (also known as Network Interface Layer):
 This layer is responsible for the physical transmission of data on the local network
segment.
 It deals with hardware addressing (e.g., MAC addresses) and the actual transmission
medium, such as Ethernet or Wi-Fi.
 The Link Layer ensures that data packets are properly formatted for transmission over the
physical medium.

You might also like