The OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. The TCP/IP model has 4 layers: Network Interface, Internet, Transport, and Application.
The OSI model provides a universal framework that standardizes communication functions of a telecommunication or computing system without regard to its underlying internal structure and technology.
The TCP/IP Internet layer corresponds to the OSI Network layer, which is responsible for logical addressing and routing.
TCP/IP was developed earlier and designed for practical use on the internet with fewer layers, making it simpler and more adaptable. OSI is more theoretical and complex, so TCP/IP became the standard.
The OSI Physical layer deals with the physical transmission of data (cables, signals), not routing. Routing is handled by the OSI Network layer and TCP/IP Internet layer.