0% found this document useful (0 votes)
15 views7 pages

Understanding the Network Layer Functions

Uploaded by

Kapil Tamang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views7 pages

Understanding the Network Layer Functions

Uploaded by

Kapil Tamang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

What is the Network Layer?

• The Network Layer is the third layer in the OSI (Open Systems Interconnection) Model,
positioned above the Data Link Layer and below the Transport Layer.
• Its primary role is to facilitate the transfer of data from one host to another across multiple
networks, ensuring that the data reaches the correct destination.

Transfer Data Across Networks

Data is sent The Network


from the Layer Data is sent to Data is
Transport determines the Data Link transmitted Data reaches
Layer to the the best path Layer for across the the correct
Network Layer for the data transmission network destination

Importance in the OSI Model:

• The Network Layer is responsible for logical addressing and routing, which are crucial for
moving data between different networks or segments within a larger network.
• It determines the best path for data to travel through the network, which is essential for
efficient communication

Network
Layer

Logical Best Path


Routing
Addressing Determination

Key Functions:
• Logical Addressing: Assigning IP addresses to devices, allowing them to be uniquely
identified on a network.
• Routing: Selecting the best path for data packets to reach their destination across multiple
networks.
• Packet Forwarding: Moving packets from one network to another based on the routing
decision.
• Error Handling: Detecting and managing errors in data transmission, ensuring that data
reaches its destination accurately.
Which networking function to focus
on?

Logical Addressing Routing


Assign IP addresses to Select the best path for data
devices for unique packets to reach their
identification. destination.

Packet Forwarding Error Handling


Move packets between Detect and manage errors in
networks based on routing data transmission.
decision.

How It Works:
• The Network Layer receives data from the Transport Layer, encapsulates it into packets, and
then forwards these packets to the next network node or destination.
• It relies on routing tables and algorithms to make decisions on the best path for data to
travel.

Network Uses
Encapsulates Forwards
Layer Routing
Data into Packets to
Receives Tables and
Packets Next Node
Data Algorithms

5. Examples:
• The most common protocols operating at the Network Layer include IPv4 and IPv6, which
are responsible for addressing and routing packets on the internet.
• Routers operate at this layer, directing data from one network to another based on logical
addressing.

Network
Layer

IPv4 IPv6 Routers

Addressing Directing
and Data
Routing Between
Packets Networks
Role of the Network Layer in the
OSI Model

End-to-End
Forwarding
Data Delivery

Logical
Routing
Addressing

1. Ensures End-to-End Data Delivery:


• The Network Layer is responsible for making sure that data packets are successfully
transmitted from the source device to the destination device, even if the communication
involves passing through multiple networks or hops.
• It enables the communication between devices on different networks, which is essential for
the internet and large-scale networks.
2. Manages Logical Addressing, Routing, and Forwarding:
• Logical Addressing:
• The Network Layer assigns a unique logical address (IP address) to each device on the
network. This addressing system is crucial for identifying the source and destination devices
in a network.
• Routing:
• The Network Layer determines the best route for data packets to travel across networks. It
uses routing algorithms and protocols to find the most efficient path from the source to the
destination.
• Packet Forwarding:
• Once the best route is determined, the Network Layer is responsible for forwarding data
packets from one network to another until they reach the final destination.

Error Handling

Error Detection Logical Addressing


Correction Mechanisms
IP Addresses
Packet Loss
Unique Identifiers
Corruption Core
Functions of
Congestion the Network Routing
Layer
Packet Forwarding Routing Tables
Algorithms
Forwarding Mechanism
Network Segments
Core Functions of the Network Layer:
• Logical Addressing (IP Addresses):
• Provides a unique identifier for each device in the network, enabling the routing of data
packets between source and destination.
• Routing (Selecting the Best Path):
• Utilizes routing tables and algorithms to determine the most efficient path for data delivery,
minimizing latency and ensuring reliability.
• Packet Forwarding (Moving Data Packets):
• Ensures that data packets are forwarded across the network, from one router or network
segment to another, until they reach their destination.
• Error Handling (Ensuring Reliable Delivery):
• The Network Layer implements error detection and correction mechanisms to handle issues
such as packet loss, corruption, and network congestion. It ensures that data packets are
delivered accurately and in the correct order.
Explanation of Virtual Circuits vs. Datagram Subnets
Virtual Circuits:
• Definition:
• A virtual circuit is a logical connection created within a network between two devices. Data
sent over a virtual circuit follows the same predefined path, just like a physical circuit, even
though it may traverse different physical links.
Traversing
Creation of
Predefined Different
Logical
Path Physical
Connection
Links
• How It Works:
• Before data transmission begins, a path is established, and all packets follow this path,
ensuring they arrive in order.
Ensure Data Arrives in Order
Receive Data
Establish Path Transmit Data in Order
• Example:
• Used in technologies like Frame Relay and ATM (Asynchronous Transfer Mode).
Frame Relay
ATM
• Datagram Subnets:
• Definition:
• In a datagram subnet, each data packet is treated independently, with no pre-established
path. Each packet can take any route to the destination, and the order of arrival is not
guaranteed.

datagram data packet independent route


subnet

How It Works:

Choose the best route for the


packet

Forward to next hop Drop the packet


Based on the destination If the destination is
address unreachable or packet is
malformed

Every packet carries the destination address, and routers decide the best route for each
packet based on current network conditions.

Example:

Example
Traditional IP
Used in Networks
Traditional IP
Networks

• Used in traditional IP networks (Internet Protocol).

Advantages and Disadvantages of Each Approach


Virtual Circuits:
• Advantages:
• Reliable and Predictable: Since the path is established beforehand, it provides a
predictable route, making the transmission reliable.
• Ordered Delivery: Packets arrive in the order they were sent, eliminating the need for
reordering at the destination.
• Connection-Oriented: Ideal for applications requiring a steady connection and consistent
data flow, like video conferencing.

Advantages of Virtual Circuits

Connection- Reliable and


Oriented Predictable

Ordered Delivery

Disadvantages
of Virtual
Circuits

Overhead Less Flexible Scalability


Issues

Additional Requires New circuit Can Complex Resource-


control more needed on introduce maintenance intensive
messages resources failure delays

Advantages of Datagram Subnets:

Flexible
Scalability

Datagram
Resilient Failure
Subnets

Simple
Implementation

• Flexible and Scalable: Since no path is established beforehand, the network can handle a
large number of packets dynamically, adapting to network changes.
• Resilient to Failure: If a path becomes unavailable, packets can take alternate routes,
improving reliability.
• Simple to Implement: No need for connection setup or teardown, making it simpler and
quicker to implement.

Disadvantages of Packet Delivery

Unordered
No Guarantees
Delivery

Variable Delays

• Unordered Delivery: Packets may arrive out of order, requiring additional mechanisms to
reorder them at the destination.
• No Guarantees: There are no guarantees for packet delivery, which may lead to data loss if
the network is congested or if errors occur.
• Variable Delays: The path taken by each packet can vary, leading to inconsistent delays

You might also like