Skip to content
Home » TCP/IP Model

TCP/IP Model

1. Introduction

TCP/IP Model stands for Transmission Control Protocol / Internet Protocol Model.

It is a network communication model used to explain how data is transmitted from one computer to another over a network, especially the Internet.

TCP/IP is the practical model on which the Internet is based.

Simple definition:
The TCP/IP model is a set of communication protocols organized into layers that allows different computers and networks to communicate with each other.


2. Layers of TCP/IP Model

The TCP/IP model is commonly explained using 4 layers:

LayerMain FunctionExamples
4. ApplicationProvides network services to users/applicationsHTTP, HTTPS, FTP, SMTP, DNS
3. TransportEnd-to-end communicationTCP, UDP
2. InternetLogical addressing and routingIP, ICMP
1. Network AccessTransmission of frames/bits over networkEthernet, Wi-Fi, PPP

Easy diagram

        TCP/IP MODEL

┌─────────────────────────────┐
│  4. APPLICATION LAYER       │
│  HTTP, HTTPS, FTP, SMTP, DNS│
└─────────────────────────────┘
              ↓
┌─────────────────────────────┐
│  3. TRANSPORT LAYER         │
│  TCP, UDP                   │
└─────────────────────────────┘
              ↓
┌─────────────────────────────┐
│  2. INTERNET LAYER          │
│  IP, ICMP                   │
└─────────────────────────────┘
              ↓
┌─────────────────────────────┐
│  1. NETWORK ACCESS LAYER    │
│  Ethernet, Wi-Fi, PPP       │
└─────────────────────────────┘

3. Application Layer

The Application Layer is the top layer of the TCP/IP model.

It provides network services directly to applications used by users.

Main functions

  1. Provides services to application programs.
  2. Supports communication between applications.
  3. Handles data formatting required by applications.
  4. Provides services such as web browsing, email, file transfer and name resolution.

Important protocols

ProtocolPurpose
HTTP/HTTPSWeb browsing
FTPFile transfer
SMTPSending email
POP3Receiving/downloading email
IMAPAccessing/synchronizing email
DNSDomain name to IP address
DHCPAutomatic IP configuration
SSHSecure remote access

Example

When you open:

https://www.example.com

HTTP/HTTPS works at the Application Layer.


4. Transport Layer

The Transport Layer provides communication between processes/applications running on different computers.

Its main purpose is to provide end-to-end delivery.

Main functions

  • Segmentation
  • Reassembly
  • Flow control
  • Error control
  • Reliability
  • Connection management
  • Multiplexing and demultiplexing

The two most important protocols are:

TCP — Transmission Control Protocol

TCP is:

  • Connection-oriented
  • Reliable
  • Provides error control
  • Provides flow control
  • Ensures data arrives correctly and in order

Example: Web pages, email, file transfer where reliable delivery is important.

UDP — User Datagram Protocol

UDP is:

  • Connectionless
  • Faster
  • Less overhead
  • Does not guarantee delivery or ordering

Example: Online gaming, live streaming, DNS queries, voice/video applications where speed is important.

Simple memory

TCP = Reliable
UDP = Fast


5. Internet Layer

The Internet Layer is responsible for delivering packets from the source network to the destination network.

Its major function is logical addressing and routing.

Main functions

  1. Logical addressing
  2. Routing
  3. Packet forwarding
  4. Internetworking
  5. Fragmentation and reassembly in relevant IP versions/scenarios

Important protocols

IP — Internet Protocol

IP provides logical addresses such as:

192.168.1.10

It helps identify the source and destination of packets.

There are two major versions:

  • IPv4
  • IPv6

ICMP — Internet Control Message Protocol

Used for network error reporting and diagnostic messages.

For example:

ping

uses ICMP.

Network device

The main device associated with this layer is the:

Router

A router examines IP addresses and decides where packets should go.


6. Network Access Layer

The Network Access Layer is the lowest layer of the TCP/IP model.

It is responsible for transferring data over the actual physical network.

It combines functions related to the Data Link and Physical layers of the OSI model.

Main functions

  • Framing
  • MAC addressing
  • Access to transmission medium
  • Error detection at the link level
  • Transmission of bits/signals
  • Communication over Ethernet, Wi-Fi, etc.

Examples

  • Ethernet
  • Wi-Fi
  • PPP
  • Ethernet MAC
  • Fiber/copper physical transmission technologies

Devices

Examples include:

  • Switch
  • Network interface card (NIC)
  • Wireless access point
  • Physical transmission equipment

7. How Data Travels Through TCP/IP

Suppose you send a message from Computer A to Computer B.

Computer A
    ↓
Application Layer
    ↓
Transport Layer
    ↓
Internet Layer
    ↓
Network Access Layer
    ↓
Network
    ↓
Network Access Layer
    ↓
Internet Layer
    ↓
Transport Layer
    ↓
Application Layer
    ↓
Computer B

Encapsulation

At the sender side, each layer adds its own information.

Application
    ↓
     DATA
    ↓
Transport
    ↓
   SEGMENT
    ↓
Internet
    ↓
   PACKET
    ↓
Network Access
    ↓
   FRAME
    ↓
Bits/Signals

At the receiver side, the process is reversed. This is called decapsulation.


8. Example of TCP/IP Working

Suppose you open a website.

Step 1 — Application Layer

Your browser creates an HTTP/HTTPS request.

Step 2 — Transport Layer

TCP establishes communication and divides the data into smaller units called segments.

Step 3 — Internet Layer

IP adds source and destination IP addresses and creates packets.

Example:

Source IP:      192.168.1.10
Destination IP: 93.184.216.34

Step 4 — Network Access Layer

The packet is placed inside a frame and transmitted through Ethernet or Wi-Fi.

Step 5 — Network

Routers forward the packet toward its destination.

Step 6 — Receiver

The receiving computer removes the headers layer by layer and finally delivers the data to the browser.


9. TCP/IP Model Diagram with Data Units

┌───────────────────────────────┐
│ APPLICATION                   │
│ HTTP, FTP, SMTP, DNS          │
│              DATA             │
└───────────────┬───────────────┘
                ↓
┌───────────────────────────────┐
│ TRANSPORT                     │
│ TCP, UDP                      │
│            SEGMENT            │
└───────────────┬───────────────┘
                ↓
┌───────────────────────────────┐
│ INTERNET                      │
│ IP, ICMP                      │
│             PACKET            │
└───────────────┬───────────────┘
                ↓
┌───────────────────────────────┐
│ NETWORK ACCESS                │
│ Ethernet, Wi-Fi, PPP          │
│             FRAME             │
└───────────────┬───────────────┘
                ↓
              BITS

Remember:

Data → Segment → Packet → Frame → Bits


10. Advantages of TCP/IP Model

  1. Open standard — widely used and publicly standardized.
  2. Internet compatible — forms the foundation of Internet communication.
  3. Scalable — works for small LANs as well as large global networks.
  4. Interoperability — different hardware and operating systems can communicate.
  5. Routing support — IP allows communication across multiple interconnected networks.
  6. Reliable communication — TCP provides reliable delivery.
  7. Flexible — supports different network technologies.
  8. Widely supported — supported by almost all modern operating systems and network devices.

11. Disadvantages of TCP/IP Model

  1. It can be complex to configure and manage.
  2. TCP can introduce overhead because of reliability mechanisms.
  3. IP itself does not guarantee reliable delivery.
  4. Security was not the original primary design goal; additional security mechanisms are required.
  5. Different protocols and technologies can make troubleshooting complex.

12. TCP/IP Model vs OSI Model

TCP/IP ModelOSI Model
Usually 4 layers7 layers
Developed around Internet protocolsDeveloped as a general reference model
Practical and widely implementedMainly a reference/teaching model
Application layer combines OSI Application, Presentation and SessionThese are separate layers
Network Access combines OSI Data Link and PhysicalThese are separate layers
Internet layer corresponds mainly to OSI Network layerNetwork is a separate layer
TCP/IP is the foundation of Internet communicationOSI is mainly used for conceptual understanding

Layer mapping

OSI MODEL                 TCP/IP MODEL

Application ───────┐
Presentation ──────┼──→ Application
Session ───────────┘

Transport ─────────────→ Transport

Network ───────────────→ Internet

Data Link ──────────┐
Physical ───────────┴──→ Network Access

13. Quick Revision

LayerRemember
ApplicationUser/network services
TransportEnd-to-end delivery
InternetIP addressing + routing
Network AccessFrames + physical transmission

Important protocols

Application → HTTP, HTTPS, FTP, SMTP, DNS
Transport   → TCP, UDP
Internet    → IP, ICMP
Access      → Ethernet, Wi-Fi, PPP

Easy memory trick

A-T-I-N

Application
Transport
Internet
Network Access


Conclusion

The TCP/IP model is a four-layer networking model that forms the basis of communication over the Internet. The Application Layer provides network services, the Transport Layer provides end-to-end communication, the Internet Layer handles IP addressing and routing, and the Network Access Layer handles communication over the actual network medium. Together, these layers allow different computers and networks to communicate reliably and efficiently.