Layer 4 of the OSI model is the Transport Layer. It provides end-to-end communication services, including error recovery and flow control. Layers from bottom to top: Physical (1), Data Link (2), Network (3), Transport (4), Session (5), Presentation (6), Application (7).