Chapters List
- A Mental Model for Networking
- How Data Travels Across the Internet
- Why Networking Uses Layers
- The OSI Model
- The TCP/IP Model
- IP Addresses
- Understanding DNS (Domain Name System)
- TCP vs UDP: Reliable vs Fast Communication
- Ports and Sockets: Connecting Network Traffic to Applications
- How the Web Works (HTTP/HTTPS)
- Routers and NAT: Connecting Local Networks to the Internet
- Modern Networking Systems
computer networking
The TCP/IP Model
Learn about the TCP/IP model, the networking architecture that powers the modern internet.
In the previous chapter we explored the OSI Model, which divides networking communication into seven conceptual layers.
The OSI model is extremely useful for understanding how networking responsibilities are organized. However, the internet itself was not built using the OSI model.
Instead, the modern internet is based on a simpler and more practical architecture known as the TCP/IP Model.
This model describes how real-world networking systems communicate across the internet.
What Is the TCP/IP Model?
The TCP/IP Model is a framework that describes how data moves through networks on the internet.
It is named after two of the most important protocols it uses:
- TCP (Transmission Control Protocol)
- IP (Internet Protocol)
Unlike the OSI model, which has seven layers, the TCP/IP model typically describes networking using four layers.
These layers group related responsibilities together while still separating the major parts of the communication process.
graph TD
A[Application Layer]
B[Transport Layer]
C[Internet Layer]
D[Network Access Layer]
A --> B --> C --> D
Each layer builds upon the services provided by the layer below it.
The Four Layers of the TCP/IP Model
Let’s explore what each layer does.
Network Access Layer
The Network Access Layer (sometimes called the Link Layer) is responsible for the physical transmission of data across a local network.
This layer includes technologies that allow devices to send data over physical connections.
Examples include:
- Ethernet
- WiFi
- fiber optic communication
This layer handles tasks such as:
- transmitting electrical or radio signals
- framing data for local network communication
- interacting with network hardware
It is the lowest layer in the TCP/IP model and deals directly with the physical network infrastructure.
Internet Layer
The Internet Layer is responsible for addressing and routing packets across different networks.
This layer ensures that packets can travel from one network to another until they reach their destination.
The most important protocol at this layer is:
- Internet Protocol (IP)
IP provides each device with an IP address, which uniquely identifies it on a network.
Routers operate at this layer, examining packet addresses and forwarding them along the correct path.
Transport Layer
The Transport Layer manages communication between applications running on different computers.
Its responsibilities include:
- splitting data into smaller segments
- ensuring reliable delivery of data
- controlling the rate of data transmission
- detecting and recovering from lost packets
Two of the most important transport protocols are:
- TCP (Transmission Control Protocol) – provides reliable, ordered communication
- UDP (User Datagram Protocol) – provides faster, connectionless communication
Applications choose between these protocols depending on their needs.
Application Layer
The Application Layer is where user-facing network communication occurs.
This layer contains protocols used directly by applications.
Examples include:
- HTTP – used for web communication
- HTTPS – secure web communication
- DNS – domain name resolution
- SMTP – email transmission
- FTP – file transfers
When you browse the web, send email, or connect to an online service, your application interacts with protocols in this layer.
How Data Moves Through the TCP/IP Layers
When an application sends data across the internet, the information moves down through the TCP/IP layers before being transmitted.
Each layer adds information that helps the data reach its destination.
graph TD
A[Application Data]
B[Transport Segment]
C[IP Packet]
D[Network Frame]
E[Physical Transmission]
A --> B --> C --> D --> E
The receiving system processes the data in reverse order, removing each layer’s information until the original application data is delivered.
This layered process allows networking systems to remain organized and modular.
Comparing the TCP/IP and OSI Models
Although the TCP/IP model has fewer layers, the ideas behind both models are similar.
| OSI Model Layer | TCP/IP Equivalent |
|---|---|
| Application | Application |
| Presentation | Application |
| Session | Application |
| Transport | Transport |
| Network | Internet |
| Data Link | Network Access |
| Physical | Network Access |
The TCP/IP model combines several OSI layers into broader categories.
This simpler structure better reflects how the internet was actually designed and implemented.
Why the TCP/IP Model Matters
The TCP/IP model is important because it describes the architecture that powers the global internet.
Every time you:
- open a website
- send a message
- stream a video
- download a file
your device is using protocols built on top of the TCP/IP stack.
Understanding this model helps explain how billions of devices are able to communicate reliably across networks all over the world.
Key Ideas to Remember
The TCP/IP model describes the real networking architecture used on the internet.
Important ideas from this chapter include:
- The TCP/IP model divides networking into four layers.
- Each layer handles a specific part of communication.
- The model is named after two key protocols: TCP and IP.
- Data moves down through the layers when sent and up through the layers when received.
- The TCP/IP model reflects how the modern internet actually operates.
What Comes Next
Now that we understand the architecture used by the internet, we can explore one of its most fundamental components.
In the next chapter we will learn about IP addresses, which allow computers to identify and locate each other across networks.