Chapter 05 of 12

Network Models

When computers communicate over a network, a lot of things happen behind the scenes. Data needs to be prepared, addressed, transmitted, delivered, and interpreted correctly.

To make this complicated process easier to understand and manage, networking is divided into different layers. These layers are organized using network models.

A network model is a framework that explains how different networking tasks are divided into layers and how those layers work together to enable communication between devices.

The two most important network models you will come across are:

  1. OSI Model

  2. TCP/IP Model


Why Do We Need Network Models?

Imagine trying to understand the entire process of sending a message over the Internet as one huge process. It would be difficult to understand and troubleshoot.

Instead, networking tasks are divided into layers.

For example:

Application
     ↓
Transport
     ↓
Network
     ↓
Data Link
     ↓
Physical

Each layer has a specific responsibility.

This layered approach provides several benefits:

  • Makes networking easier to understand

  • Helps different technologies work together

  • Makes troubleshooting easier

  • Allows individual layers to be developed or changed independently

  • Provides a common way to describe network communication


OSI Model

OSI stands for Open Systems Interconnection.

The OSI model is a seven-layer reference model developed by the International Organization for Standardization (ISO) to describe how network communication works.

The seven layers are:

Layer

Name

Main Responsibility

7

Application

Provides network services to applications

6

Presentation

Data formatting, encryption, compression

5

Session

Establishes and manages communication sessions

4

Transport

End-to-end delivery and reliability

3

Network

Logical addressing and routing

2

Data Link

Frames and local network delivery

1

Physical

Transmission of raw bits

Let's understand them from the bottom.

1. Physical Layer

The Physical Layer deals with the actual transmission of bits through a physical medium.

It is concerned with things such as:

  • Cables

  • Electrical or optical signals

  • Radio signals

  • Connectors

  • Transmission speed

For example, when data travels through an Ethernet cable, the Physical Layer deals with how the bits are represented and transmitted.

Main idea: How are bits physically transmitted?


The Data Link Layer provides communication between devices on the same local network.

It deals with frames and MAC addresses and helps detect certain transmission errors.

Ethernet and Wi-Fi operate primarily at this layer.

Main idea: How is data delivered across the local network?


3. Network Layer

The Network Layer is responsible for logical addressing and routing.

This is where IP addresses become important.

Routers operate primarily at this layer because they determine where packets should be forwarded.

Main idea: Where should the packet go?


4. Transport Layer

The Transport Layer provides end-to-end communication between applications running on different devices.

It can provide reliability, flow control, and other delivery services.

Two important transport protocols are:

  • TCP – reliable, connection-oriented communication

  • UDP – lightweight, connectionless communication

Main idea: How should data be delivered between applications?


5. Session Layer

The Session Layer is responsible for establishing, managing, and terminating communication sessions between applications.

For example, it can help manage an ongoing communication session between two systems.

Main idea: How is a communication session managed?


6. Presentation Layer

The Presentation Layer deals with how data is represented.

Its responsibilities can include:

  • Data formatting

  • Data translation

  • Encryption and decryption

  • Compression and decompression

For example, two systems may represent data differently, and this layer provides a way to make the data understandable between them.

Main idea: How should the data be represented?


7. Application Layer

The Application Layer is the layer closest to the user and provides network-related services to applications.

Common protocols associated with this layer include:

  • HTTP/HTTPS

  • DNS

  • FTP

  • SMTP

For example, when you use a web browser to access a website, application-layer protocols such as HTTP or HTTPS are involved.

Main idea: What network service does the application need?


TCP/IP Model

The TCP/IP model is the networking model closely associated with the Internet.

Unlike the OSI model's seven layers, the commonly taught TCP/IP model has four layers.

TCP/IP Layer

Main Responsibility

Application

Network services for applications

Transport

End-to-end communication

Internet

IP addressing and routing

Network Access

Local delivery and physical transmission

1. Application Layer

This layer combines the responsibilities of the Application, Presentation, and Session layers of the OSI model.

Protocols such as HTTP, DNS, and SMTP operate here.

2. Transport Layer

This layer handles end-to-end communication.

Important protocols include TCP and UDP.

3. Internet Layer

This layer handles logical addressing and routing using IP.

Routers are heavily involved in this part of networking.

4. Network Access Layer

This layer handles communication over the local network and the physical transmission of data.

It roughly corresponds to the Data Link and Physical layers of the OSI model.


OSI vs TCP/IP Model

OSI Model

TCP/IP Model

7 layers

4 layers

Mainly a reference model

Practical model used for Internet networking

Developed by ISO

Developed from the TCP/IP protocol suite

Separates Session and Presentation layers

Combines them into Application

Separates Physical and Data Link layers

Combines them into Network Access

A simple comparison is:

OSI Model                 TCP/IP Model

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

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

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

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

Why Is the OSI Model Still Important?

You might wonder: if the Internet uses TCP/IP, why do we study the OSI model?

The main reason is that the OSI model provides a clear way to understand networking concepts layer by layer.

For example, if a network connection isn't working, thinking in layers can help narrow down the problem:

  • Is the cable connected? → Physical

  • Is the local network working? → Data Link

  • Is the IP configuration correct? → Network

  • Is the application communicating correctly? → Transport/Application

So, even though the OSI model is mainly a reference model, it is extremely useful for learning, designing, and troubleshooting networks.

Conclusion

Network models divide the complex process of network communication into manageable layers.

The two important models are the OSI model, which has seven layers, and the TCP/IP model, which has four commonly taught layers.

The most important thing for beginners is not just memorizing the layer names. Try to understand what each layer is responsible for. Once that becomes clear, many advanced networking topics become much easier to understand.