L4 (Layer 4) refers to the fourth layer of the OSI model, known as the transport layer. Routers and firewalls operating at this layer provide reliable data transmission between endpoints using protocols such as Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). L4 devices control the flow of data, ensure the correct order of packet delivery, and provide services such as congestion control and port-based access control.