TCP/IP Model Overview
TCP/IP Model and Protocol Suite
Protocols and Standards
A protocol is a set of rules defining how data should be communicated between devices over a network. Protocols are the languages that computers use to communicate — just as humans need a common language, computers that speak different protocols cannot exchange data.
In the early days of networking, vendors developed their own proprietary protocols (e.g., IBM). This made communication between different vendors' products difficult or impossible. The solution is standards — agreed-upon specifications that describe how a protocol or technology should work. When devices follow vendor-neutral standards, devices of all types can communicate. For example, an Apple MacBook can access a website hosted on a Linux server, and a Windows PC can send email readable on an Android smartphone.
History of TCP/IP
1960s: Early work on computer networks that would evolve into the Internet began, mainly in the US.
1969: ARPANET came online, funded by the US Department of Defense's ARPA (Advanced Research Projects Agency). It connected mainframes at universities and labs. ARPANET originally used NCP (Network Control Program).
1974: Vint Cerf and Bob Kahn began developing TCP (Transmission Control Program) as an internetworking protocol.
TCP went through revisions and was later split into two protocols: TCP (Transmission Control Protocol) and IP (Internet Protocol). These form the foundation of the TCP/IP protocol suite.
January 1, 1983: ARPANET fully switched to TCP/IP.
TCP/IP became dominant because it was published as open standards that any vendor could implement, and it could run over many types of networks.
Standards Organizations
IEEE (Institute of Electrical and Electronics Engineers) develops many LAN technologies:
Ethernet — defined in 802.3 standards (physical specs and message formatting)
Wi-Fi — defined in 802.11 standards
IETF (Internet Engineering Task Force) defines many Internet protocols:
TCP, IP, UDP, HTTP, DNS
Publishes standards in documents called RFCs (Requests for Comments), all freely available.
The IEEE and IETF create standards; vendors like Cisco implement them so devices from different companies can work together.
Layered Model — The Mail System Analogy
Networks perform many different jobs: physical transmission, local delivery, routing between networks, end-to-end conversations, and applications. A layered model groups related jobs into layers. Each layer has a specific role, uses services of the layer below, and provides services to the layer above.
Analogy: Sending a Letter
Layer | Letter System Role | TCP/IP Equivalent |
|---|---|---|
Top | Content (what you want to say) | Application layer |
Next | Recipient (who should read it) | Transport layer |
Next | Address (house destination) | Internet layer |
Next | Local delivery (moving envelope to next stop) | Local Network layer |
Bottom | Infrastructure (roads, vehicles) | Physical layer |
The bottom two layers are closely related; the same letter may travel by ground, air, then ground again. This is why some models use 4 layers and some use 5.
Key benefit: layers are separate yet work together. Changing content doesn't change delivery steps; changing the delivery path doesn't affect the content itself.
5-Layer TCP/IP Model (Detailed)
Layer 1: Physical Layer
Role: Sends and receives bits as electrical, optical, or radio signals over the physical medium. Defines cables, connectors, signal levels, link speeds.
Examples:
Copper UTP cables
Fiber-optic cables
Wi-Fi radios and antennas
Network Interface Cards (NICs)
Network engineers typically don't need to know low-level electrical/optical engineering details.
Layer 2: Local Network Layer (also called Data Link Layer)
Role: Provides hop-to-hop delivery within a local network using MAC addresses and switches. A hop is one step along the path between two devices (from one router/host to the next). Switches do not count as hops — they extend the local network.
Key concepts:
Uses MAC addresses (Media Access Control) to identify interfaces on a LAN
Protocols: Ethernet and Wi-Fi
Adds a header and a trailer (trailer used for error checking)
Layer 3: Internet Layer (also called Network Layer)
Role: Provides end-to-end delivery between hosts across multiple networks (internetwork). Uses IP addresses to identify hosts, like a home address. Routers operate mainly at this layer.
Key protocols:
IP (version 4 and version 6)
ICMP (Internet Control Message Protocol)
When PC1 sends to SRV1 at IP address 10.1.1.1, it addresses the message to that IP. Routers forward based on destination IP.
Layer 4: Transport Layer
Role: Provides end-to-end communication between application processes (process-to-process/service-to-service communication). Uses port numbers to identify processes on each host (e.g., port 80 for web server, port 21 for file server).
Layer 4 runs primarily on the communicating hosts (PC1 and SRV1), not on routers (with exceptions).
Key protocols:
TCP (Transmission Control Protocol) — creates segments
UDP (User Datagram Protocol) — creates datagrams
Layer 5: Application Layer (often called Layer 7)
Role: Defines how application processes format, send, and interpret data. This is where network communications meet applications. Only the communicating hosts look at application-layer data; routers and switches just move messages.
Examples of protocols:
HTTP / HTTPS (web browsing)
FTP, TFTP (file transfer)
Email protocols
Encapsulation and Decapsulation
When a message moves down the stack on the sending host, each layer encapsulates the data by adding a header (and sometimes a trailer) containing the information needed by that layer.
Encapsulation Process (Sending Host)
Application layer prepares data (e.g., HTTP request).
Transport layer adds Layer 4 header (source/destination port numbers) → creates segment (TCP) or datagram (UDP).
Internet layer adds Layer 3 header (source/destination IP addresses) → creates packet.
Local Network layer adds Layer 2 header and trailer (MAC addresses, error-checking trailer) → creates frame.
Physical layer transmits bits as signals over the medium.
Decapsulation Process (Receiving Host)
Physical layer receives bits and passes them up.
Local Network layer examines and removes Layer 2 header and trailer → extracts packet.
Internet layer examines and removes Layer 3 header → extracts segment or datagram.
Transport layer examines and removes Layer 4 header → delivers data to the correct application process.
Application layer processes the data.
Protocol Data Units (PDUs)
Layer | Name | Also Called |
|---|---|---|
Layer 4 (TCP) | Segment | L4PDU |
Layer 4 (UDP) | Datagram | L4PDU |
Layer 3 | Packet | L3PDU |
Layer 2 | Frame | L2PDU |
Payload is the contents of each PDU — everything encapsulated by that layer's header and trailer. For example, a packet's payload is the segment or datagram (including Layer 4 header and data). A frame's payload is the packet (including Layer 3 and 4 headers and data).
Layer Interaction
Adjacent-Layer Interaction
Each layer provides a service to the layer above and is serviced by the layer below:
Layer 5 → Layer 4: Transport delivers data to correct application using port numbers.
Layer 4 → Layer 3: Internet delivers segments/datagrams to correct destination host using IP addresses.
Layer 3 → Layer 2: Local Network delivers packets to the next hop using MAC addresses.
Layer 2 → Layer 1: Physical sends/receives frame bits as signals over the medium.
Same-Layer Interaction
Each layer communicates with its counterpart on another device:
Application layer talks to application layer on the other host.
Transport layer addresses segments/datagrams to the destination's port number.
Internet layer addresses packets to the destination's IP address.
Local Network layer addresses frames to the next hop's MAC address.
Physical layer signals are received by the connected device's physical port.
This layered cooperation makes network communication possible. Because layers are modular, protocols at one layer can be swapped without changing others. For example, using FTP over UDP instead of HTTP over TCP; or changing wired Ethernet to wireless Wi-Fi at layers 1 and 2 without affecting upper layers.
Comparison with the OSI Model
The OSI model (Open Systems Interconnection) was designed by ISO in the late 1970s/1980s as a 7-layer model with a matching protocol suite. It aimed to be international and vendor-neutral.
7-Layer OSI Model (top to bottom):
Application
Presentation
Session
Transport
Network
Data Link
Physical
Why OSI didn't win:
Developed too late
Too complex
Bureaucratic, top-down approach
TCP/IP used a more practical bottom-up approach
Today, TCP/IP is the dominant protocol stack, but the OSI model survives as a reference and teaching tool. Many resources use a 5-layer model with names borrowed from OSI:
My 5-Layer Model | Common 5-Layer Model (OSI-based names) |
|---|---|
Application | Application (Layer 7) |
Transport | Transport (Layer 4) |
Internet | Network (Layer 3) |
Local Network | Data Link (Layer 2) |
Physical | Physical (Layer 1) |
In practice, people often refer to "Layer 2" and "Layer 3" regardless of the exact names. The CCNA exam does not quiz on layer names specifically.
Key Concepts to Remember
TCP/IP Model: Know the general purpose of each of the five layers.
Encapsulation/Decapsulation: Understand how headers (and trailers) are added and removed as data moves through the stack.
PDU Names:
Layer 4: segment (TCP) or datagram (UDP)
Layer 3: packet
Layer 2: frame — what is actually transmitted over the medium
Adjacent-layer interaction: Each layer provides a service to the layer above and uses the layer below.
Same-layer interaction: Each layer communicates with its counterpart on the destination device.
The TCP/IP model is not a law — real protocols don't always fit neatly into a single layer. It is a tool to help think about what happens in a network. Each new topic (Ethernet, IP addressing, TCP, routing) can be placed at the appropriate layer to see how it fits into the bigger picture.

Ask anything
We've read this whole study set, so questions about it get the best answers.