Select Page

The OSI (Open Systems Interconnection) model is a standardized reference model for network communication, consisting of seven distinct layers, each with a specific role. The layers are as follows:

1. Physical Layer: This layer is responsible for transmitting raw bits over a physical medium. It defines the electrical, mechanical, and functional specifications of the interface between the computer and the transmission medium.

The Physical Layer  is responsible for the following three main functions:

  • Transmission of bits: The Physical Layer is responsible for transmitting raw bits over a physical medium, such as a network cable, without any error.
  • Physical Characteristics: The Physical Layer defines the electrical, mechanical, and functional specifications for the physical medium. This includes the type of physical connection, voltage levels, timing of voltage changes, and physical data rates.
  • Data Rate and Signal Quality: The Physical Layer determines the data rate at which data is transmitted and the quality of the signal that is transmitted. It ensures that the signal meets the minimum required quality specifications and is transmitted at the specified data rate.

In summary, the Physical Layer is responsible for transmitting data over the physical medium, defining the physical specifications of the communication channel, and ensuring that the transmitted data is received accurately.

2.Data Link Layer: This layer is responsible for providing reliable data transfer over the physical layer by dividing the data into frames, adding error detection and correction codes, and managing the flow control of data.

Main Function of Data Link Layer: The Data Link Layer is the second layer in the OSI (Open Systems Interconnection) model, and it is responsible for the following three main functions:

  • Framing: The Data Link Layer is responsible for breaking down the data from the higher layer into smaller pieces (frames) and adding a header and trailer to each frame. The header includes source and destination addresses, error detection information, and other control information. The trailer includes a cyclic redundancy check (CRC) or a checksum to detect errors.
  • Error Detection and Correction: The Data Link Layer provides error detection and correction mechanisms to ensure that the data is transmitted accurately. It uses techniques such as cyclic redundancy check (CRC) or checksum to detect errors in the transmitted data and, if necessary, request retransmission.
  • Media Access Control (MAC): The Data Link Layer provides Media Access Control (MAC) services to ensure that the devices on the network can access the physical medium in a controlled and orderly manner. This includes the use of media access protocols such as Carrier Sense Multiple Access (CSMA) or Token Passing to prevent collisions on the network.

 

 

Data: Data from upper layer
Header (H2): Control Information, such addressing.
Trailer (T2): Control Information, such as error detection

The Data Link Layer provides reliable data transfer between devices on the same network segment and ensures that the data is transmitted without errors.

3.Network Layer: This layer is responsible for routing packets of data between different devices and networks, using logical addressing and performing error checking to ensure the data reaches its destination.

The Network Layer, also known as the third layer in the OSI (Open Systems Interconnection) model, is responsible for the following five main functions:

  1. Routing: The Network Layer is responsible for routing packets from the source to the destination. It uses routing algorithms to determine the best path for each packet to take through the network and forwards the packet to the next hop along the path.
  2. Addressing: The Network Layer assigns unique addresses to devices on the network, allowing them to be identified and located. This enables packets to be delivered to the correct destination.
  3. Subnetting: The Network Layer is responsible for subdividing a large network into smaller subnets, allowing for more efficient use of network resources and improved security.
  4. Congestion Control: The Network Layer is responsible for managing network congestion by controlling the rate at which data is transmitted. It uses techniques such as flow control and congestion avoidance to prevent overloading of network links.
  5. Quality of Service (QoS): The Network Layer provides Quality of Service (QoS) by prioritizing different types of network traffic, such as voice and video, and providing differentiated services for each type. This helps to ensure that time-sensitive applications receive the bandwidth they need to function effectively.

In summary, the Network Layer provides routing, addressing, subnetting, congestion control, and Quality of Service (QoS) to enable efficient and reliable communication between devices on a network.

4. Transport Layer: This layer is responsible for the reliable delivery of data between applications, breaking data into segments and managing flow control, retransmission of lost data, and error checking.

The Transport Layer, also known as the fourth layer in the OSI (Open Systems Interconnection) model, is responsible for the following three main functions:

  1. End-to-end Communication: The Transport Layer provides end-to-end communication between applications running on different devices. It establishes and maintains a virtual connection between the devices, ensuring that data is delivered reliably and in the correct order.
  2. Segmentation and Reassembly: The Transport Layer is responsible for breaking down data from the higher layer into smaller segments, called transport layer protocol data units (PDUs), and reassembling the data at the receiving device. This helps to improve the efficiency of data transmission and reduce the impact of network congestion.
  3. Flow Control and Congestion Management: The Transport Layer provides flow control and congestion management to ensure that data is transmitted at a rate that the receiving device can handle. It uses techniques such as window-based flow control to regulate the amount of data that can be transmitted at any given time and prevent overloading the receiving device.

Data segmentation is the process of dividing data into smaller segments/chunks to improve the efficiency and reliability of data transmission over a network.

In summary, the Transport Layer provides end-to-end communication, segmentation and reassembly of data, and flow control and congestion management to enable reliable and efficient data transmission between applications on different devices.

5. Session Layer: This layer is responsible for establishing, maintaining, and managing sessions between applications, such as ensuring the correct sequence of data packets.

The Session Layer, also known as the fifth layer in the OSI (Open Systems Interconnection) model, is responsible for the following three main functions:

  1. Session Establishment and Management: The Session Layer is responsible for establishing, maintaining, and terminating sessions between applications on different devices. A session is a logical connection between two devices that allows for the exchange of data.
  2. Synchronization: The Session Layer provides synchronization between the devices participating in a session. This helps to ensure that the data is transmitted in the correct order and at the correct pace, reducing the risk of data loss or corruption.
  3. Data Exchange: The Session Layer is responsible for coordinating the exchange of data between applications on different devices. It monitors the session to ensure that the data is transmitted correctly and resolves any issues that may arise, such as lost data or disconnected sessions.

In summary, the Session Layer provides session establishment and management, synchronization, and data exchange services to enable reliable and efficient communication between applications on different devices.

6. Presentation Layer: This layer is responsible for converting data into a standard format for the application layer and for the reverse, from the application to the network. It also performs encryption/decryption, compression, and data conversion functions.

The Presentation Layer, also known as the sixth layer in the OSI (Open Systems Interconnection) model, is responsible for the following three main functions:

  1. Data Formatting: The Presentation Layer is responsible for formatting data in a manner that is suitable for transmission and storage. This includes converting data into a common format that can be understood by both the sending and receiving devices.
  2. Data Encryption and Compression: The Presentation Layer is responsible for encrypting and compressing data to enhance the security and efficiency of data transmission. Data encryption helps to protect the data from unauthorized access, while data compression helps to reduce the size of the data, making it faster and more efficient to transmit.
  3. Data Translation: The Presentation Layer is responsible for translating data between different data formats and protocols, allowing different applications and systems to communicate with each other. This helps to ensure that data is transmitted accurately and completely between devices, even if they use different data formats or protocols.

In summary, the Presentation Layer provides data formatting, encryption and compression, and translation services to enable secure and efficient communication between applications and devices.

7. Application Layer: This layer is responsible for providing network services to the user applications, such as email, file transfer, and remote login.

The Application Layer, also known as the seventh layer in the OSI (Open Systems Interconnection) model, is responsible for the following three main functions:

  1. Application Services: The Application Layer provides a range of services that are directly accessible to the user. These services can include file transfer, email, web browsing, and other applications that are used by the end-user to interact with the network.
  2. Network Services: The Application Layer provides network services that support the operation of other applications. This can include directory services, name resolution, and authentication services.
  3. Communication Services: The Application Layer provides communication services between applications running on different devices. This can include the exchange of data and messages, as well as the coordination of activities between the devices.

In summary, the Application Layer provides application, network, and communication services to support the interaction of users with the network and the exchange of data between applications.

Each layer in the OSI model communicates only with the layer directly above and below it, and provides services to the layer above it while using the services of the layer below it. This modular design allows for network protocols and technologies to be added or changed at any layer without affecting the other layers, ensuring compatibility and flexibility.