Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
What are the functions of Network Layer?
The network layer is the third layer in the OSI model that provides services to the transport layer above it while utilizing services from the data link layer below. It operates by adding a header containing Protocol Control Information (PCI) to every Network Service Data Unit (N-SDU), forming a Network Protocol Data Unit (N-PDU) that is transported over data link connections.
The network layer is responsible for end-to-end packet delivery across multiple networks and performs several critical functions to ensure reliable data transmission between source and destination devices.
Network Connection
When the network layer receives a connection request from the transport layer, it establishes a network connection across the subnetwork infrastructure. This process involves utilizing existing data link connections and coordinating between the end system's network layer and the network layer of subnetwork access points to create a communication path.
Routing
The network layer determines the optimal path for data transmission between source and destination devices. This routing decision can be made either at the beginning of communication or dynamically for each N-SDU, depending on the type of service required. The routing functionality is enhanced through sub-layering within the network layer architecture.
Multiplexing
To optimize the utilization of data link connections, the network layer supports multiplexing, where multiple network connections can share a single data link connection. A network entity manages this multiplexing process, allowing efficient use of available bandwidth and reducing the number of physical connections required.
Error Detection and Recovery
The network layer implements error detection mechanisms to maintain the quality of service over network connections. While most errors are detected and corrected at the data link layer, the network layer handles residual errors that escape lower-layer detection. It incorporates error recovery mechanisms based on the required quality of service level.
Additional Functions
The network layer performs several other important functions:
-
Segmentation and Blocking − Network Service Data Units are segmented and blocked to create Network Protocol Data Units (N-PDUs) while preserving NSDU delimiters.
-
Flow Control − Manages the flow of network service data units upon request from the transport layer.
-
Sequencing − Ensures proper ordering of data units during transmission.
-
Connection Reset − Provides the ability to reset network connections when requested by the transport layer.
Conclusion
The network layer serves as a crucial intermediary that enables end-to-end communication across multiple networks through routing, connection management, and error handling. Its functions ensure reliable packet delivery while optimizing network resource utilization through multiplexing and flow control mechanisms.
