Updated April 1, 2023
Introduction to Logical Address
Whenever a program is running, an address is generated by the Central Processing Unit called Logical Address which do not exist physically, it only exists virtually and hence it is also called as a virtual address. The central processing unit’s physical memory location can be accessed by using this virtual address as a reference and the set of all the logical addresses generated by the central processing unit is called logical address space and the mapping of these logical addresses to the physical addresses is done using a hardware device called memory management unit.
Functions of Logical Address
In any business, there may be multiple networks. There may be a single website with multiple VLAN’s associated with it and each of those VLAN will be connected to a different network. Or there may be multiple websites and each of these sites may be connected to a different network or multiple networks depending on the requirements. There will be hosts connected to the networks and each of these hosts is associated with NIC and the physical addresses are referred to as the MAC addresses burned into the NIC’s. The data frames from one host to another host on the same network are delivered using the physical addresses which is used by the second layer. The third layer consists of logical addresses and they are assigned to the third layer through DHCP. The third layer addresses will be used by the host of one network to communicate with the hosts of other networks. If a host of one network is trying to communicate with the host of other network, it will check for the third layer address of the destination host and compare it with the third layer address of its own. If the addresses are found to be on the same network, then the host will try to spot the second layer address of the destination network and send the data frame directly to the second layer of the destination host. And if the destination host is found on a different network, then o configures a gateway to send the data frame to the second layer of the destination host in a different network. The gateway finds a path destination host on a different network by using third layer address and the packet is forwarded to the destination network through this gateway. The physical addresses do not that survive when the data frames are moved across different networks. The frame headers hold the physical addresses and the logical address is used to remove the physical address from the header and discards it thereby making way for logical addresses to forward the data frames to the destination network.
Declaration of Logical Addresses Using Different Methods
The communication of computers happens through the internet. The data that is transmitted from one computer will have to pass through several local area networks (LAN) and wide area networks (WAN) before reaching the destination computer. For such communications to take place between the computers, we need a scheme of addressing called global addressing scheme which is also called logical addressing or logical address. The logical addresses in any network of the TCP or IP layer is referred using internet protocol (IP) address. The length of the addresses in the internet are 32 bits long. Therefore, there are maximum of 2 raise to the power of 32 addresses and these addresses are referred to as internet protocol version 4 (IP version 4/ IPv4) addresses and popularly known as internet protocol (IP) addresses.
An IPv4 address is used to define the connection of the device to the internet in a unique and a universal manner. Because they are unique, one IPv4 address defines just one connection of the computer the internet. There can never be more than one IPv4 address for two devices connected to the internet at the same time. If a device is connected to the internet through n connections, it is supposed to have n logical addresses. The IPv4 addresses are universal because the this particular system of addressing must be accepted by the all the hosts looking to connect to the internet which is also called as global addressing.
The total number of addresses used by the protocol constitutes the address space for IPv4 and it has a specific address space. If N bits are used to define the address in a protocol, then 2 raised to the power of N is the address space. 32-bit address format is used by IPv4 which means 2 raised to the power of 32 or 4,294,967,296 is the address space.
There are two methods to declare an IPv4 address. They are:
- IPv4 address is displayed in the form of 32 bits in binary notation. Each octet is refereed to as byte in binary notation.
- An example of IPv4 address in binary notation is 10001000 01101010 11111110 11111100.
Dotted Decimal Notation
- A decimal point or a dot is used to separate the bytes when the IPv4 addresses are represented in the form of decimals because IPv4 addresses are more compatible when written in the form of decimals.
- An example of IPv4 address in dotted decimal notation is 220.127.116.11. Every number in a decimal dotted notation is a value in the range 0 to 255.
- The logical addresses are generated by the central processing unit.
- The logical addresses can be accessed by the users directly. The physical addresses can be accessed through logical addresses.
- Corresponding to the programs running on the operating system, a set of logical addresses are generated by the central processing unit which is called logical address space.
- The logical addresses can be viewed by the users directly.
- There can be several variations of logical addresses.
- Changes can be made to logical addresses.
This is a guide to Logical Address. Here we also discuss the Introduction and working of logical address along with features and methods. You may also have a look at the following articles to learn more –