Addressing in network lets the two remote nodes in the network to communicate with each other. The communicating system in the network using TCP/IP protocols use four types of addressing one at each layer of TCP/IP architecture.
Consider the real-world situation that you want to send some parcel to your friend living in a different geographical area as that of yours. Then you must know his/her country, city, area, street and his house number.
Similarly, when you want to communicate with a remote node in a network then you need the address of that particular node. Systems in a network using TCP/IP architecture use four levels of addresses.
In the section further, we will discuss the four types of addresses in a network and we will see which address is used for which layer of TCP/IP architecture.
Types of Addressing in Network:
Whatsoever network you are in LAN or WAN, it provides a different address to all the nodes in the network. This address is a physical address and it is also termed as link address.
The physical address is the lowest level of address. This means the physical address is specifically for intra-networking environment. Using physical addressing a node can send a frame to another node in the same physical network
The data link layer encapsulates the packets it receives from the network layer into frames and the physical address is included in these frames. The type of network decides what will be the length of address and what format it would have?
The physical address can be further classified into unicast, multicast and broadcast address. The physical unicast address is assigned to the frame that has to be sent to a single recipient. Physical multicast address is included in the frame that has to be sent to a group of recipients. The physical broadcast address is included in the frame that has to be sent to all the nodes or all the system connected in the network.
There are some networks that might support all three types of physical addressing like Ethernet, it supports all three types of physical addressing. But there are some networks that only supports unicast addressing in such cases then what if you to send the frame to a group of nodes then you have to send the multiple packets with a unicast address.
Logical addressing has a broader aspect and it is used to send the frame between two different networks which may have different addressing format. Logical addressing is specially designed to identify each node uniquely irrespective of their underlying physical network.
The logical address is the IP address that is provided to the nodes connected to the internet and no two nodes here can have the same IP address. Like physical address, the logical addresses are classified to unicast (single receiver), multicast (multiple receivers) and broadcast (all the nodes of the system). Though broadcasting has some limit on the number of recipients.
Till now we have seen logical and physical address required to send and receive data between two nodes in the same or different network. But t doesn’t end here. Once the data is received at the computer the next stage is to identify to which process in the computer the data has to be supplied.
We all are aware that the computer runs multiple processes at a time. So, to identify for which process the data has arrived we need to label the process to identify each process in a computer uniquely. In TCP/IP architecture the address of a process is termed as port address.
Application-specific addresses are used to identify particular applications. For example, the firstname.lastname@example.org is the address of email, www.beingintelligent.com is the address of a website.
So, these are the four type of addresses used to communicate in the network using TCP/IP protocols.