Introduction
Follow the link, internet, transport and application layers of the Internet protocol suite. In a four-layer Internet-suite description, those functions typically sit in the application layer or its libraries. The four-layer model follows Internet protocol responsibilities.
Method and concepts
Consider a DNS message sent over UDP. DNS defines the question and answer fields. UDP preserves the message boundary and supplies ports. IP carries the datagram toward the remote address. A link mechanism delivers it to the selected next hop.
- Select an entry to isolate the relevant case.
- Read the associated evidence and compare it with your local configuration.
TCP/IP model diagram
- DNS message
- UDP · client port to 53
- IPv4 · client to resolver
- Ethernet · host to next hop
Worked examples
Read the Application entry
- Service semantics
- DNS names and record types, HTTP messages or application framing
TCP/IP model: Build one DNS packet from its payload length
- Assume the DNS message is 32 bytes. Add an eight-byte UDP header. The UDP length field is 40 bytes.
- With an option-free IPv4 header, the IP total length is 20 + 40 = 60 bytes. Set the IPv4 Protocol field to 17 for UDP.
- An untagged Ethernet II frame uses EtherType 0x0800 and carries the 60-byte IP packet. Add 14 header bytes and four FCS bytes for a 78-byte MAC frame. No pad is required.
Reference table
| Internet suite layer | Delivery scope | What to inspect |
|---|---|---|
| Application | Service semantics | DNS names and record types, HTTP messages or application framing |
| Transport | Communication between process endpoints | TCP byte positions and ports, or UDP datagram lengths and ports |
| Internet | Packets between IP endpoints | Addresses, prefix matches, TTL or Hop Limit, and ICMP feedback |
| Link | Delivery to an immediate neighbor | Ethernet MAC addresses, Wi-Fi association, framing and local MTU |
| Encapsulation example | DNS over UDP over IPv4 over Ethernet | A link frame holds an IP packet. The IP payload holds a UDP datagram containing DNS data. |
| Router transition | One link ends and another begins | The router replaces link headers and forwards the IP packet toward its destination. |
Reading the result
The four-layer description in RFC 1122 places link technologies below IP and groups application and support protocols above transport. Some textbooks split the link into data link and physical layers, yielding five layers. Label the convention when discussing a layer number.
Common mistakes
- Assuming every application using Internet protocols runs over TCP.
- Applying an Ethernet frame length as the application payload limit without removing the enclosed headers.
Frequently asked questions
Where do the OSI session and presentation responsibilities go?
In a four-layer Internet-suite description, those functions typically sit in the application layer or its libraries. The four-layer model follows Internet protocol responsibilities.
Where does DNS belong if it can use both TCP and UDP?
DNS has application-layer message semantics. Lower-layer transport choices can change how those messages are delivered while retaining the same question and answer concepts.
Does the receiver always get the same Ethernet header sent by the original host?
Across routers it typically receives the frame transmitted on the last link. The router on that link has selected the relevant local framing and addresses.
How does the TCP/IP model differ from OSI?
TCP/IP groups networking functions into fewer practical layers, while OSI separates them into seven reference layers. The mapping is useful but not one-to-one for every protocol.
Where do TCP and UDP fit?
They are transport-layer protocols in the TCP/IP model. They provide different services to applications above IP.
Where does Ethernet fit in the TCP/IP model?
Ethernet provides link and physical functions below the internet layer. The common four-layer model groups these into a link or network-access layer.
Does an application always use TCP?
No. Applications can use UDP or other transport mechanisms depending on their requirements. Some application protocols use multiple transports or newer transport designs.
Where do DNS and HTTP fit in the model?
They are application-layer protocols in the common TCP/IP model. They rely on transport and IP services below them, even though their behavior can affect how a connection is perceived.
Is ARP an internet-layer protocol?
ARP resolves IPv4 next-hop addresses to link-layer addresses on a local network. It supports delivery across the link and is commonly associated with the network-access layer in the TCP/IP model.
Does the TCP/IP model require Ethernet?
No. IP can run over many link technologies. Ethernet is common on LANs, but the link layer can use other wired, wireless, or point-to-point systems.
Why do TCP/IP and OSI layer diagrams differ?
They group functions for different purposes. OSI separates seven reference layers; TCP/IP's common model groups the implemented Internet suite into fewer layers.
Where does ICMP fit in the TCP/IP model?
ICMP supports control and error reporting for IP, so it is generally treated with the internet layer. It is not a TCP or UDP port-based application service.
Does IP provide reliable delivery?
No. IP provides best-effort packet delivery. Reliability, ordering, or retransmission must be provided by an upper-layer protocol or application when needed.
What is the link layer responsible for?
It moves frames across one local link and handles that medium's addressing and framing. It does not provide an end-to-end route across the internet.
Is the TCP/IP model only about TCP and IP?
No. It describes the wider Internet protocol suite, including UDP, ICMP, DNS, HTTP, Ethernet, Wi-Fi, and many other protocols.
Does a TCP/IP layer map exactly to one OSI layer?
No. The common models group responsibilities differently. A mapping is an explanatory approximation, not a protocol conversion rule.
Further learning and references
- RFC 1122, section 1.1.3 — Internet protocol suite
Reference source for the concepts and service described in this guide.
- RFC 894 — IPv4 encapsulation on Ethernet
- RFC 768 — UDP header format

