When it comes to Computer Networks, what is a logical address and physical address

ipv4ipv6mac address

I understand the concept of logical address, and physical address when it comes to computer memory. That is, physical is the actual address and logical address is what the applications think the address is. The operating system that lives between the applications and the physical memory translates between the programs memory and physical memory.

What's the equivalent of this when it comes to networks?

From what I've read, IP addresses are Logical, and MAC addresses are Physical. What does this mean exactly? When I send something to an IP address, I'm really sending to some translator who figures out which MAC address I want to send to? Does this mean that at any given time, every MAC online is assigned to one, and only one IP address?

Can you please clarify and explain, preferably with an example.

Best Answer

Do not try to compare networking to computer hardware. While in some cases this could help, it is comparing apples to oranges and clearly in this case it is causing some confusion. I think it may be best to just give a simple example to show how they are used differently.

Let's say your computer (192.168.10.1) wants to talk to a host (10.1.1.10). In this case, 10.1.1.10 is the logical destination or address you are attempting to send traffic.

Your computer however has no idea about the MAC or physical address of this server, nor does it know how to get to the logical address. However it does have a default gateway and knows 10.1.1.10 is not on the local subnet. So it sends the traffic to the gateway router with the logical destination of 10.1.1.10 and the physical destination of the gateway router's interface.

This router, will see that the logical address of the traffic is bound for another host, and will look up where it needs to send this traffic which indicates router2 is the next hop. It then changes the physical destination to router2's interface and forwards the traffic.

Router2 is directly connected to the server using IP address 10.1.1.10, so it changes the physical destination to the MAC address of the server and again forwards the traffic.

There can be number of additional routers on the path, but all through the process the logical destination address stays the same while the physical destination changes. This is also true for source logical/physical addresses along the route.