What is the OSI model?

The OSI model, short for“Open Systems Interconnection” model, is a fundamental framework for communication in networks of different systems. It was developed in the late 1970s by the International Organization for Standardization (ISO) with the aim of standardizing communication processes in multi-layered abstractions and thus promoting interoperability between heterogeneous computer systems.

How is the OSI model structured?

The framework consists of seven layers that build on each other, from the physical implementation of data transmission to the application level at which users can interact with network services. Each of these layers deals with a specific aspect of network communication, with each layer fulfilling a defined function that builds on the results of the layer below and provides the basis for the layer above. This model enables IT architects and developers to create network hardware, network components and software that function independently of each other, but are still able to work together seamlessly through defined interfaces and protocols.

What is the OSI model used for?

The main purpose of the OSI model was to create an open standard that enables communication across different systems without these systems being dependent on a specific manufacturer or hardware platform. This should further advance network technology and facilitate the development of universal communication protocols and network services. The network model is regarded as a decisive breakthrough in the history of network technology, as it laid the foundation for understanding and setting up modern network communication and is still an important basis for training in the field of network engineering today.

Layers of the OSI model

1. physical layer

The physical layer is the lowest level of the OSI model and deals with the physical transmission of data via communication media. It defines the electrical, mechanical, procedural and functional specifications for activating, maintaining and deactivating the physical connections. Examples of standards and technologies on this layer are Ethernet cables (such as Cat5, Cat6), fiber optics, DSL and ISDN. Devices that work on this layer include hubs, repeaters and network cables.

OSI Model - Physical Layer An IT technician works in a large data center and connects various Ethernet cables to a switch.

OSI Model – Physical Layer An IT technician works in a large data center and connects various Ethernet cables to a switch.

2. data link layer (data link layer)

The data security layer ensures reliable data transmission between two directly connected network devices and regulates access to the transmission medium. It is responsible for detecting and correcting errors that may occur during transmission on the physical layer. Protocols and devices that work on this layer are Ethernet, PPP, switches and bridges.

OSI model - Data Link Layer - Laptop with network configuration software for configuring physical network devices

OSI model – Data Link Layer – Laptop with network configuration software for configuring physical network devices

3. network layer

This layer is responsible for the routing of data packets via different routes in an entire network. It takes care of logical addressing and routing, which involves defining paths for data transmission between systems. Well-known protocols of this layer are the Internet Protocol (IP), the Internet Control Message Protocol (ICMP) and the IP router.

OSI Model - Network Layer - A network administrator stands in front of a large digital display board that visualizes a graphical representation of network routing. The network administrator person points to specific routes that data packets take through the network.

OSI Model – Network Layer – A network administrator stands in front of a large digital display panel that visualizes a graphical representation of the network routing. The network administrator person points to specific routes that data packets take through the network.

4th transport layer

The transport layer ensures end-to-end communication between application processes. It is responsible for segmenting the data and controlling the data flow to ensure that the data is transferred efficiently and without errors. Protocols on this layer include TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).

OSI Model - Transport Layer - Two technicians in a control room monitor the data flow on several screens showing data packets and their sequence numbers. The two IT experts discuss specific data information within their organizational network.

OSI Model – Transport Layer – Two technicians in a control room monitor the data flow on several screens showing data packets and their sequence numbers. The two IT experts discuss specific data information within their organizational network.

5th session layer

This layer controls the conversations between computers. It establishes, manages and terminates the connections (sessions) between local and remote applications. Examples of session protocols are NFS (Network File System) and SQL (Structured Query Language) management.

OSI Model Session Layer - A software developer writes code for the modules that are responsible for the session management of the software.

OSI Model Session Layer – A software developer writes code for the modules that are responsible for the session management of the software.

6. presentation layer

The presentation layer is something like the “translator” in communication between the networks. It converts the data into a format that is understood by the application layer and can also include data compression and encryption. The standards that work at this level include ASCII for text data, JPEG for images and MPEG for videos.

OSI Model - Presentation Layer - A software developer is working on an application that compresses and encrypts data.

OSI Model – Presentation Layer – A software developer is working on an application that compresses and encrypts data.

7. application layer

The top layer of the OSI model is assigned to the application layer, where end-user network services such as e-mail and file transfers are located. It provides network services directly to end users and provides the interface between the network applications and the lower layers of the network. Examples of protocols and services on this layer are HTTP for websites, SMTP for sending e-mails and FTP for file transfer.

OSI Model - Application Layer - A group of UX experts test the usability of software in a co-working space on various end devices such as smartphones, tablets and laptops.

OSI Model – Application Layer – A group of UX experts test the usability of software in a co-working space on various end devices such as smartphones, tablets and laptops.

Each layer of the OSI model plays a specific role in network communication and forms a layer of abstraction that helps different network components and protocols to work together seamlessly.

Data flow in the OSI model

The data flow in the OSI model describes the way in which data is transferred from an application on a host system through the network to an application on another host system. The process involves two key operations: encapsulating data when it is sent and decapsulating it when it is received.

Encapsulation

Encapsulation is the process of attaching control information to the data as it flows down through the layers of the OSI model:

  1. Application layer: Application data is provided with a protocol header that contains information specific to the respective application, such as HTTP headers for web data.
  2. Presentation layer: Data may be converted or encrypted to ensure the correct format for transmission.
  3. Session layer: Additional header information is added to enable the control and coordination of communication between the applications.
  4. Transport layer: Here, the data is divided into segments and provided with transport protocol headers containing information such as port numbers and sequence numbers.
  5. Network layer: The segments are packed into packets and provided with network headers that contain logical addresses such as IP addresses.
  6. Data link layer: The packets become frames, with headers and trailers added to each frame containing physical addresses (MAC addresses) and error detection information.
  7. Physical layer: The frames are converted into bits and transmitted via the physical medium.

Decapsulation

Decapsulation is the reverse process of encapsulation and takes place when the data on the receiving device rises from the physical layer:

  1. Physical layer: Bits are received from the physical medium and assembled into frames.
  2. Data backup layer: The frames are checked and the headers and trailers are removed to preserve the original packets.
  3. Network layer: The packets are forwarded and their headers removed to extract the transport segments.
  4. Transport layer: The segments are placed in the correct order and checked before the headers are removed to extract the user data.
  5. Session layer: Checks whether the session is maintained correctly and removes the corresponding session information.
  6. Presentation layer: The data can be decrypted or converted to produce the correct format for the application.
  7. Application layer: The data reaches the application in a form that can be understood and used by it.

This process ensures that the data that started on the application layer of the sending host arrives accurately and securely on the application layer of the receiving host. Each step of encapsulation and decapsulation is crucial to ensure the integrity and successful interpretation of the data.

Comparison with TCP/IP model

In order to understand and evaluate the different approaches to network communication, it is instructive to compare two of the most fundamental network models: the OSI model and the TCP/IP model.

This comparison not only provides insight into the evolution of network protocols, but also into the practical application and theory behind modern Internet and network technologies. While the OSI model is a general reference model that aims to standardize the communication rules of different systems, the TCP/IP model is the basis of the Internet and thus a prime example of implementation and adaptability in the real world.

Comparing these models sharpens our understanding of how abstract concepts of data transmission are translated into IT technologies that shape our everyday lives.

Similarities

Both the OSI model and the TCP/IP model serve to standardize and simplify communication processes in computer networks and are based on a multi-layer architecture. They share some basic concepts, such as the layer hierarchy, the separation of network functionalities into different abstract layers and the use of protocol stacks to enable data communication.

OSI model

The OSI model is a theoretical model with seven layers:

  1. Physical layer
  2. Data link layer (data link layer)
  3. Network layer
  4. Transport layer
  5. Session layer
  6. Presentation layer
  7. Application layer

TCP/IP model

The TCP/IP model, sometimes referred to as the Internet protocol stack, has four layers:

  1. Network access layer (Network Interface Layer)
  2. Internet layer (Internet Layer)
  3. Transport layer
  4. Application layer

Differences

  • Number of layers: The OSI model has seven layers, while the TCP/IP model only has four.
  • Standardization: The OSI model was developed as a strict standard, but the TCP/IP model has evolved organically and is based more on standards shaped by the practice and needs of the early Internet.
  • Layer demarcation: In the OSI model, the layers are strictly defined, which means that each layer has clear and specific functions that are separate from those of the other layers. In the TCP/IP model, the boundaries between the layers are more fluid and the layers can include broader functions.
  • Model flexibility: The TCP/IP model is considered more flexible and was designed to be used in a variety of real network environments. The OSI model is more formalized and less flexible in terms of implementation.
  • Real world application: The TCP/IP model underlies the Internet and is widely used in real-world network environments, while the OSI model is more commonly used for educational and explanatory purposes.
  • Protocols: TCP/IP is not only a model, but also a set of protocols. In contrast, the OSI model is a generic model that supports protocols from different manufacturers and organizations.

The TCP/IP model is the one that is used in real-world applications and has made the Internet possible, while the OSI model plays a role as a guide and teaching tool to help understand the complexity of network communication.

Application areas of the OSI model

The OSI model is more than just a theoretical construct; it is used in various areas of data communication and IT infrastructure and provides a structured approach to understanding and implementing network solutions. Here are some specific areas of application:

Network design and planning

When designing new networks, the OSI model provides a template to determine the required components and protocols for each layer. Network architects use the model to ensure that all aspects from the physical cabling to the application software are covered and work together efficiently.

Error analysis and network management

Network administrators use the OSI model to identify and solve problems within a network. By being able to assign the problem to a specific layer, they can approach troubleshooting systematically, from the physical level of the cables and switches to the application level of the client software.

Development of network hardware and software

Developers of network devices and software refer to the OSI model to ensure that their products are compatible with other products and network standards. For example, a router must support the correct protocols of the network layer, while encryption software must adhere to the standards of the presentation layer.

IT Security

IT security experts use the OSI model to develop and implement security strategies. They implement security mechanisms on different layers – from the physical protection of network access to encryption on the presentation layer and application security.

Standardization and interoperability

The OSI model plays a central role in the development of international communication standards. Organizations such as the ISO and the International Telecommunication Union (ITU) use the OSI model to create guidelines that ensure seamless interoperability between devices and systems from different manufacturers.

Education and training

The OSI model serves as an illustrative model to teach students and IT professionals the basics of network communication, and not only in an academic context. It enables a structured understanding of the complex processes in a computer network.

Protocol development

The OSI model provides a framework for the development of new network protocols. Developers can refer to the specific functions of each layer to ensure that new protocols interact correctly with existing systems and standards.

In these and many other areas of application, the OSI model has proven to be a useful tool that helps to break down the complexity of network systems into manageable and understandable components. Despite the dominance of the TCP/IP model in practical application, the OSI model remains a central educational tool and an important point of reference for the design of network architectures and protocols.

Criticism and limitations of the OSI model

The OSI model, although widely recognized as a teaching and reference tool, is not without criticism and limitations. These aspects influence both the theoretical and practical application of the model in modern network technology.

Overcomplexity and theoretical nature

The OSI model has often been criticized for being too complex and theoretical. With its seven layers, the model offers a very detailed and abstracted view of network communication that is not always directly applicable to real network technologies or implementations. This over-complexity can make practical implementation difficult, as real networks often do not have the clear separation of layers that the model suggests.

Lack of flexibility

The OSI model is very rigid in its layer structure. Each shift has specific and defined tasks that offer little room for customization. In the real world, however, network protocols and technologies often need to be flexible in order to adapt to different requirements and conditions. This rigidity means that the OSI model is often replaced in practice by the more flexible TCP/IP model, especially on the Internet.

Lack of practical relevance

Despite its comprehensive depth of detail, the OSI model is rarely implemented in practice in the pure form envisaged in theory. Many of the protocols used in reality do not fit exactly into the seven-layer scheme. For example, TCP/IP protocols perform functions that are distributed over several layers in the OSI model.

Implementation costs

Implementing network protocols that conform exactly to the specifications of the OSI model can be technically challenging and costly. The need to adhere to strict shift separations can lead to efficiency losses and hinder the development of new technologies.

Influence on protocol development

The strict separation of functions into different layers can inhibit the development of integrated solutions that could combine multiple network functions into a single more efficient protocol. As a result, developers may take less innovative approaches to ensure compliance with the OSI model.

Interim conclusion

Although the OSI model is still valuable as a didactic tool and for the conceptual structuring of network communication, in practice it can be seen that less rigid models based more on real applications, such as the TCP/IP model, are often preferred. The points of criticism of the OSI model show important limitations that must be considered when planning and implementing network technologies. These limitations play a key role in deciding which aspects of the model should be applied or modified in real-life scenarios.

Relevance of the OSI model in the context of IT security

To understand why the OSI model is still relevant, we need to look at the technology world around us, which is increasingly dominated by IOT, i.e. network technologies. It is particularly important to consider the specific strengths in the area of IT security.

Despite existing criticism and the predominant use of the TCP/IP model, the OSI model remains a critical tool, especially for structured approaches to network security. Furthermore, a comparison of the models shows that the OSI model is superior in certain aspects, especially when it comes to implementing comprehensive and cross-layer security strategies.

In this section, we discuss why the OSI model is still very useful despite its limitations and how the TCP/IP model, due to its technical and historical characteristics, may pose certain security risks that are of critical importance today.

OSI model in the context of IT security and with a focus on roles and functions in IT

OSI model in the context of IT security and with a focus on roles and functions in IT

Role-based relevance of the OSI model

Despite its points of criticism and the predominant use of the TCP/IP model in practical applications, the OSI model still retains significant relevance. This is particularly evident in the areas of standardization and IT security.

The clear structure in layers provides a systematic basis for understanding and analyzing networks, which is essential not only in the basic training of new IT specialists, but above all in the development of effective IT security strategies.

Relevance in IT security

The OSI model remains particularly relevant in the area of IT security. It enables security experts to systematically analyze attacks and vulnerabilities and implement appropriate security measures at the right level. Each layer can have specific security protocols and measures adapted to the type of data and the form of communication. For example, encryption measures on the presentation layer can be designed differently from access controls on the application layer.

Criticism of the TCP/IP model and its shortcomings

The TCP/IP model is the backbone of the Internet and has had a decisive influence on the development of digital communication. Despite its widespread acceptance and critical role, this model has specific technical and structural shortcomings that are particularly relevant in the context of modern IT security. These shortcomings of the TCP/IP model are particularly evident in comparison with the OSI model, which offers a stricter and more differentiated layer structure. In this section, we look at why and how the TCP/IP model, due to its historical evolution and certain design decisions, poses security risks that are critical today in the age of cyberthreats and advanced network attacks.

Insufficient separation and protection of shifts

The TCP/IP model, although efficient and widely used, often does not provide the same strict layer separation as the OSI model, which can lead to security risks. For example, vulnerabilities in one layer can more easily affect other layers, as the functions and protocols across the layers are not so clearly delineated.

Historical safety deficiencies

Many of the original Internet protocols included in the TCP/IP model were developed without comprehensive consideration of security aspects. This leads to ongoing challenges, such as the difficulty of retroactively integrating effective encryption and authentication mechanisms into protocols like HTTP and SMTP that were originally designed to be open and freely accessible.

Lack of adaptability to new threats

The Internet and its protocols are constantly evolving, and so is the threat landscape. The TCP/IP model can sometimes be too rigid to respond quickly to new security threats or to implement integrated security solutions that span multiple layers.

Conclusion

Despite its theoretical nature and some practical limitations, the OSI model still offers very valuable insights and methods for the design of secure IT applications and has proven itself in the analysis and, in particular, the security of networks.

It helps to understand the complexity of network communication in a structured way, which is essential for educational purposes, standardization and especially for the implementation and management of network security. In contrast, the TCP/IP model could be considered inadequate in certain security aspects due to its history and structural characteristics.