What is the differences between physical and logical address,and why do we need logical addresses?

Discuss IPv4 and IPv6 according to it capabilities to address asingle device on any network in the world and how it correlates tothe Internet of Things (IoT).