TCP/IP Model: Four and Five Layers
The model used to explain Internet protocols
TCP/IP is a family of communication protocols, not just TCP plus IP. A common architectural description uses four layers: application, transport, Internet and link. The five-layer teaching model separates the physical and data-link responsibilities. Both describe the same broad communication process at different levels of detail; neither requires every application to use TCP.
What each layer does
Application: defines the meaning of an exchange, for example HTTP requests for web resources or DNS queries for naming information. Transport: connects application endpoints; TCP delivers an ordered byte stream, while UDP sends separate datagrams without promising delivery or ordering. Internet: IP carries packets toward destination IP addresses across networks. Link: moves data across the current local link using technology-specific framing and signals, such as Ethernet or Wi-Fi. A port is a transport endpoint identifier, an IP address supports network delivery, and a MAC address supports local Ethernet delivery. They are not interchangeable. Detailed addressing and ports come later.
Compare OSI and TCP/IP
The table-like diagram shows approximate responsibilities, not exact protocol membership. The upper three OSI roles roughly correspond to the Internet application layer. The OSI network role roughly corresponds to Internet-layer IP delivery. The four-layer link category covers physical and data-link functions in this teaching comparison.
OSI TCP/IP (4) TCP/IP (5)7, 6, 5 Application Application4 Transport Transport3 Internet Network2 Link Data link1 Link PhysicalProtocols and implementations can span roles: TLS secures an application exchange over a transport, and a proxy can inspect application messages while also using lower layers. Do not infer an exact layer for every technology from its name.
Follow an inventory request
Assume A already knows B’s IP address and has an established TCP connection to an HTTP service. A creates an HTTP request, TCP carries its bytes, IP provides destination addressing, and Ethernet carries the IP packet to the next device. A router forwards the packet toward the destination; B receives data through its stack and its application interprets the request. A response travels back using the available return path, which need not be identical. This conceptual example does not require an Internet connection.
Check your understanding
Identify the role responsible for the destination IP, the transport port and the Ethernet destination MAC. Explain why the four-layer model can describe a UDP application too. Next, examine what the transmitted bytes look like when layers wrap data.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
TCP/IP Model: Four and Five Layers — knowledge check
Apply layered networking concepts to offline scenarios.
In the four-layer TCP/IP model, which layer contains IP forwarding?
What changes in the common five-layer teaching model?
Which identifier is primarily used for a local Ethernet delivery decision?
Why can a UDP application fit the TCP/IP model?
Which comparison between OSI and TCP/IP is most accurate?