Kahibaro
Discord Login Register

3 OSI Model

A Layered Way to Understand Networks

The OSI model is a conceptual way to describe how data moves from one device to another through a network. It does not describe specific devices or cables or IP addresses in detail. Instead, it gives us a common language to talk about networking tasks and to understand where different technologies belong.

The name OSI comes from “Open Systems Interconnection.” It is a reference model, not a product. In practice, the internet mostly uses the TCP/IP model, but the OSI model is still extremely useful for learning, for design, and especially for troubleshooting.

Later chapters will go into each individual OSI layer in depth. In this chapter, you will focus on what the OSI model is as a whole, what problems it tries to solve, and how it helps you think clearly about networking.

Why a Model Is Needed

When two computers communicate, a lot happens between the application the user sees and the physical wire or wireless signal that carries the bits. If we tried to think about everything at once, networking would quickly become confusing.

The OSI model solves this by separating responsibilities into ordered layers. Each layer has a clear role, and each one uses the services of the layer below it and provides services to the layer above it.

Imagine sending a letter through a postal system. You write a message, put it in an envelope, add an address, drop it in a mailbox, and trucks and sorting facilities move it until it reaches the recipient. At each step, different people and tools are responsible for different tasks. You do not need to understand every part of the logistics system to trust that your letter will arrive. The OSI model brings a similar structure to networks.

Abstraction and Hiding Complexity

The most important idea behind the model is abstraction. Abstraction means hiding unnecessary details so that you can focus on a smaller, clearer piece of the problem.

For example, an application that sends an email does not need to know how voltages change on a cable or how light pulses travel through a fiber. The OSI model places those low level details in a lower layer. The application only sees a clean service: “send this chunk of data reliably to that other machine.”

This idea applies at every step. Each layer has its own view of the network. The layer only worries about its direct responsibilities and assumes that lower layers will deliver their part correctly.

Key idea: Each OSI layer provides services to the layer above it and uses services from the layer below it, while hiding internal details.

This separation makes it easier to design, implement, and troubleshoot networks, because you can focus on one layer at a time.

Standardization and Interoperability

Networking involves many vendors, devices, and protocols. Without a common structure, it would be very hard for devices from different manufacturers to work together.

The OSI model provides a standard way to classify network functions. International standards bodies, such as ISO, can define protocols that fit into specific layers. Vendors can then implement these protocols knowing where they belong.

This helps with interoperability. A switch from one vendor can cooperate with a switch from another vendor because they both implement the same functions in the same layer. Similarly, an email client and an email server from different companies can still communicate, because they follow protocols that fit into the Application layer of the model.

The OSI model itself is not a protocol. It is more like a map that tells you where protocols fit. In later chapters, you will see many protocols placed into the layer where they operate.

Seven Layers as a Common Language

The OSI model divides communication into seven layers. Each one has a name and a number. You will learn their individual tasks later, but for now it is enough to understand that the model runs from the user facing side at the top to the physical transmission at the bottom.

Here is a quick overview, from the user’s perspective down to the medium:

Layer NumberLayer NameGeneral Focus
7ApplicationUser facing network services
6PresentationData format and representation
5SessionManaging sessions between applications
4TransportReliable or best effort delivery
3NetworkLogical addressing and routing
2Data LinkLocal delivery and framing
1PhysicalSignals, bits, and physical media

Remember: The OSI model has exactly 7 layers, numbered from 1 (Physical) up to 7 (Application).

Network engineers often use mnemonics to memorize the order, but the important point is the logical stack of responsibilities, not the words of the mnemonic.

In this chapter, you do not need to master every layer. That will come in the dedicated chapters for each one. Here you only need to see the model as a whole picture.

Vertical Relationships Between Layers

The OSI model is vertical. Each layer communicates directly with its neighbors above and below. This is called an interface between layers.

At each interface, there is an agreement on how to request a service and how to receive a result. For example, a higher layer can ask a lower layer to “send this data to this destination.” The lower layer does not tell the higher layer exactly how it will achieve this. That is its own concern.

Inside one device, this looks like a stack:

Top (Closer to the User)Layer 7Application
Layer 6Presentation
Layer 5Session
Layer 4Transport
Layer 3Network
Layer 2Data Link
Bottom (Closer to the Medium)Layer 1Physical

When data is sent, it travels down this stack, across a physical medium, and then up the stack on the other side. The way this movement is structured is the reason the OSI model is so useful.

Peer to Peer Layers Across Devices

Inside a single device, layers talk to adjacent layers. Across the network, however, it is more helpful to think of each layer talking to its peer on the other device.

For example, the Transport layer on a sender “talks” logically to the Transport layer on a receiver. They use rules called protocols to agree on how to manage the flow of data, detect losses, and so on. In reality, the data is passed down to lower layers, transmitted through cables or wireless, and then passed up to the receiving Transport layer. But conceptually, you can treat it as if the Transport layers are speaking directly.

This is true for other layers as well. The Network layers across devices handle routing logic with each other. Data Link layers handle local delivery between immediate neighbors. Application layers interpret application data on both ends.

This peer to peer idea helps you understand why certain information is added at specific layers and why that same kind of information is read at the corresponding layer on the other side.

Encapsulation as Data Moves Down

When data travels from the top layer to the bottom layer on the sender, each layer adds its own information to the data. This process is called encapsulation.

At the Application layer, the data might just be part of a web page or an email. At the Transport layer, additional information is added that helps with delivery between applications, such as which application should receive the data. At the Network layer, logical addressing information is added so the data can cross multiple networks. At the Data Link layer, local addressing and framing information is added for the next physical hop. Finally, at the Physical layer, the resulting bits are turned into electrical, light, or radio signals.

You can think of encapsulation like placing a letter inside a series of envelopes, each with more delivery information, until it is ready to enter the postal system. Each envelope corresponds to a layer adding a header or other control information.

You will study encapsulation in detail later. For now, you should understand that the OSI model explains where each type of control information belongs and which layer is responsible for it.

Decapsulation as Data Moves Up

On the receiving device, the process is reversed. The Physical layer receives signals, converts them into bits, and passes them to the Data Link layer. The Data Link layer reads its control information, decides if the frame is for this device, and if so removes its own header and passes the remaining data up.

At each step, a layer examines and removes the information that was added by its peer on the sender. This reversing of encapsulation is called decapsulation.

This bottom to top journey continues until the original application data reaches the Application layer, where it is presented to the user’s program in a usable form.

Once again, you will see decapsulation in detail in a later chapter about packet journeys. For this chapter, focus on the idea that each layer only reads and removes the information that belongs to it.

Why the OSI Model Helps Troubleshooting

The OSI model is not just academic. It is a practical tool for diagnosing problems.

When something breaks, you can ask which layer might be responsible. For example, if there is no signal at all, you might suspect a Physical problem such as a damaged cable. If the physical connection seems fine, but devices on the same network cannot reach each other, you may suspect a Data Link issue. If local communication works but remote networks cannot be reached, the problem may be in routing, which is part of the Network layer.

By thinking in layers, you can test, isolate, and fix problems without guessing randomly. You can also communicate more clearly with others. Saying “We have a Layer 1 issue” is more precise than “The network is down.”

Practical rule: When troubleshooting, start by checking lower layers first. Higher layers depend on lower layers working correctly.

This bottom up or top down approach will be covered explicitly in troubleshooting chapters, but the logic comes directly from the OSI model.

OSI as a Teaching and Design Reference

Although modern networks do not follow the OSI model perfectly, it remains the standard way to teach networking concepts to beginners. It is also a useful checklist for network design.

When designing a new network service, you can ask what happens at each layer. How will bits be transmitted physically? How will devices on the same link communicate? How will traffic be routed between networks? How will applications use these capabilities securely and efficiently?

Even advanced topics like virtualization, cloud networking, and security can often be mapped back to OSI layers. Firewalls often operate around the Network and Transport layers. Encryption for web traffic involves the Application and sometimes Presentation layers. Wireless access points primarily affect the Physical and Data Link layers.

The OSI model gives you a mental framework that you can reuse again and again, no matter how technology changes.

Relationship to the TCP/IP Model

In real networks, the TCP/IP model is more directly tied to the internet protocols you use every day. However, the TCP/IP model is smaller and more practical, while the OSI model is larger and more detailed.

Later in the course, you will compare these two models and see how they align. For now, understand that the OSI model is more like a detailed blueprint that helps you think, organize, and learn. The TCP/IP model is more like a simplified view that aligns closely with real protocols such as IP and TCP.

Both models are useful, but for building your foundation, the OSI model gives you a clearer separation of concerns, which helps beginners understand what is happening at each step of communication.

What You Should Take Away

  1. At this stage, you do not need to memorize every protocol or function at each OSI layer. Instead, your main goals are:
  2. You should recognize that network communication is split into seven ordered layers.
  3. You should understand that each layer has its own role, talks to its neighbors inside the same device, and uses rules to interact with its peer layer on another device.
  4. You should know that encapsulation and decapsulation are the processes that move data down and up the stack.
  5. You should see that the OSI model is a tool for thinking, designing, standardizing, and troubleshooting networks.
  6. In the following chapters, each layer of the OSI model will be explored separately, and you will see how the abstract ideas in this chapter become very concrete in real networks.

Views: 45

Comments

Please login to add a comment.

Don't have an account? Register now!