Network Layer Services (original) (raw)

Last Updated : 5 Jan, 2026

The network layer is a part of the communication process in computer networks. Its main job is to move data packets between different networks. It helps route these packets from the sender to the receiver across multiple paths and networks. Network-to-network connections enable the Internet to function. These connections happen at the **network layer which sends data packets between different networks.

Services Offered by Network Layer

The **services which are offered by the network layer are as follows:

1. **Assigning Logical Address

Logical addressing is the process of assigning unique IP addresses (IPv4 or IPv6) to devices within a network. Unlike physical addresses (MAC addresses), logical addresses can change based on network configurations. These addresses are hierarchical and help identify both the network and the device within that network. Logical addressing is important for:

**2. Packetizing

The process of encapsulating the data received from the upper layers of the network (also called payload) in a network layer packet at the source and decapsulating the payload from the network layer packet at the destination is known as packetizing.

The source host adds a header that contains the source and destination address and some other relevant information required by the network layer protocol to the payload received from the upper layer protocol and delivers the packet to the data link layer.

The destination host receives the network layer packet from its data link layer, decapsulates the packet, and delivers the payload to the corresponding upper layer protocol. The routers in the path are not allowed to change either the source or the destination address. The routers in the path are not allowed to decapsulate the packets they receive unless they need to be fragmented.

3. **Host-to-Host Delivery

The network layer ensures data is transferred from the source device (host) to the destination device (host) across one or multiple networks. This involves:

Host-to-host delivery is a foundational aspect of communication in large-scale, interconnected systems like the internet.

4. **Forwarding

Forwarding is the process of transferring packets between network devices such as routers, which are responsible for directing the packets toward their destination. When a router receives a packet from one of its attached networks, it needs to forward the packet to another attached network (unicast routing) or to some attached networks (in the case of multicast routing).The router uses:

5. **Fragmentation and Reassembly of Packets

Some networks have a maximum transmission unit (**MTU**)** that defines the largest packet size they can handle. If a packet exceeds the MTU, the network layer:

Read more about Fragmentation at Network Layer.

6. **Logical Subnetting

Logical subnetting involves dividing a large IP network into smaller, more manageable sub-networks (subnets). Subnetting helps:

7. **Network Address Translation (NAT)

NAT allows multiple devices in a private network to share a single public IP address for internet access. This is achieved by:

**8. Routing

Routing is the process of moving data from one device to another device. These are two other services offered by the network layer. In a network, there are a number of routes available from the source to the destination. The network layer specifies some strategies which find out the best possible route. This process is referred to as routing. There are a number of routing protocols that are used in this process and they should be run to help the routers coordinate with each other and help in establishing communication throughout the network.

**Advantages

**Disadvantages