Which layer of the OSI model is responsible for logical addressing and best path selection to endpoint networks?