Logical addressing in the network layer of a computer network refers to the use of unique, virtual
addresses to identify devices on different networks. These addresses are designed to provide a way
for devices to communicate across interconnected networks, regardless of their physical location.
Here’s a simple explanation of how it works:
1. What is a Logical Address?
A logical address is an identifier assigned to a device (like a computer or a router) that enables it to
be uniquely identified on a network. The most common example of a logical address is an IP
address (e.g., IPv4 or IPv6).
• IPv4 Address: Written in the format [Link] (32 bits).
• IPv6 Address: Written in the format
[Link] (128 bits).
2. Why is Logical Addressing Needed?
Physical addresses (like MAC addresses) are tied to the hardware of a device and are only useful
within a local network. Logical addressing is needed to:
• Identify devices uniquely across different networks.
• Enable communication between devices on different networks by routing data efficiently.
3. Functions of Logical Addressing in the Network Layer
• Global Uniqueness: Ensures each device in a networked system has a unique address for
identification.
• Routing: Logical addresses are used by routers to determine the best path to deliver data
packets to the destination.
• Hierarchy: Logical addressing often includes hierarchical components (e.g., network and
host portions in an IP address) to simplify routing.
4. How Logical Addressing Works
• When a device sends data, the network layer encapsulates it into a packet and assigns a
source and destination logical address.
• Routers in the network use the destination logical address to forward the packet to the
correct network.
• Once the packet reaches the destination network, the local address (like MAC) is used to
deliver it to the specific device.
Example Scenario:
Imagine sending a letter:
• The logical address (IP) is like the full postal address (city, street, house number) that
allows the letter to be delivered across countries.
• The physical address (MAC) is like the name on the mailbox that ensures the letter gets to
the right person at that house.
5. Conclusion
Logical addressing is essential for large-scale communication between devices on interconnected
networks. Without it, the internet and other wide-area networks (WANs) would not function
efficiently. It allows devices to communicate globally while abstracting away physical hardware
details.